mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-22 17:10:26 +03:00
Replace remaining ramda references with shlinkio/data-manipulation
This commit is contained in:
parent
7ba78fd919
commit
8ad1e7e0d9
7 changed files with 18 additions and 38 deletions
3
.github/dependabot.yml
vendored
3
.github/dependabot.yml
vendored
|
@ -12,6 +12,9 @@ updates:
|
|||
fontawesome:
|
||||
patterns:
|
||||
- '@fortawesome*'
|
||||
shlink:
|
||||
patterns:
|
||||
- '@shlinkio*'
|
||||
ignore:
|
||||
# Bootstrap can introduce visual breaking changes on styles
|
||||
# Ignore it, since the plan is to remove it anyway
|
||||
|
|
40
package-lock.json
generated
40
package-lock.json
generated
|
@ -15,6 +15,7 @@
|
|||
"@fortawesome/react-fontawesome": "^0.2.0",
|
||||
"@json2csv/plainjs": "^7.0.3",
|
||||
"@reduxjs/toolkit": "^1.9.7",
|
||||
"@shlinkio/data-manipulation": "^1.0.1",
|
||||
"@shlinkio/shlink-frontend-kit": "^0.4.0",
|
||||
"@shlinkio/shlink-js-sdk": "^0.1.0",
|
||||
"@shlinkio/shlink-web-component": "^0.3.5",
|
||||
|
@ -24,7 +25,6 @@
|
|||
"compare-versions": "^6.1.0",
|
||||
"csvtojson": "^2.0.10",
|
||||
"date-fns": "^2.30.0",
|
||||
"ramda": "^0.27.2",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-external-link": "^2.2.0",
|
||||
|
@ -46,7 +46,6 @@
|
|||
"@testing-library/react": "^14.0.0",
|
||||
"@testing-library/user-event": "^14.5.1",
|
||||
"@total-typescript/shoehorn": "^0.1.1",
|
||||
"@types/ramda": "^0.27.66",
|
||||
"@types/react": "^18.2.33",
|
||||
"@types/react-dom": "^18.2.14",
|
||||
"@types/uuid": "^9.0.6",
|
||||
|
@ -2790,6 +2789,11 @@
|
|||
"node": ">=14.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@shlinkio/data-manipulation": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/@shlinkio/data-manipulation/-/data-manipulation-1.0.1.tgz",
|
||||
"integrity": "sha512-LYmRXcI2CPi8RZfI5wE7lf0Bg74NiPK+y2wuePvRlQtQud2jDZTbCmCIe6fyQV4NGrpKTn+D4NjcmVT/Iq2InQ=="
|
||||
},
|
||||
"node_modules/@shlinkio/eslint-config-js-coding-standard": {
|
||||
"version": "2.3.0",
|
||||
"resolved": "https://registry.npmjs.org/@shlinkio/eslint-config-js-coding-standard/-/eslint-config-js-coding-standard-2.3.0.tgz",
|
||||
|
@ -3272,15 +3276,6 @@
|
|||
"version": "15.7.3",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@types/ramda": {
|
||||
"version": "0.27.66",
|
||||
"resolved": "https://registry.npmjs.org/@types/ramda/-/ramda-0.27.66.tgz",
|
||||
"integrity": "sha512-i2YW+E2U6NfMt3dp0RxNcejox+bxJUNDjB7BpYuRuoHIzv5juPHkJkNgcUOu+YSQEmaWu8cnAo/8r63C0NnuVA==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"ts-toolbelt": "^6.15.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@types/react": {
|
||||
"version": "18.2.33",
|
||||
"resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.33.tgz",
|
||||
|
@ -9622,11 +9617,6 @@
|
|||
"typescript": ">=4.2.0"
|
||||
}
|
||||
},
|
||||
"node_modules/ts-toolbelt": {
|
||||
"version": "6.15.5",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0"
|
||||
},
|
||||
"node_modules/tsconfig-paths": {
|
||||
"version": "3.14.1",
|
||||
"dev": true,
|
||||
|
@ -12507,6 +12497,11 @@
|
|||
"resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.10.0.tgz",
|
||||
"integrity": "sha512-Lm+fYpMfZoEucJ7cMxgt4dYt8jLfbpwRCzAjm9UgSLOkmlqo9gupxt6YX3DY0Fk155NT9l17d/ydi+964uS9Lw=="
|
||||
},
|
||||
"@shlinkio/data-manipulation": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/@shlinkio/data-manipulation/-/data-manipulation-1.0.1.tgz",
|
||||
"integrity": "sha512-LYmRXcI2CPi8RZfI5wE7lf0Bg74NiPK+y2wuePvRlQtQud2jDZTbCmCIe6fyQV4NGrpKTn+D4NjcmVT/Iq2InQ=="
|
||||
},
|
||||
"@shlinkio/eslint-config-js-coding-standard": {
|
||||
"version": "2.3.0",
|
||||
"resolved": "https://registry.npmjs.org/@shlinkio/eslint-config-js-coding-standard/-/eslint-config-js-coding-standard-2.3.0.tgz",
|
||||
|
@ -12853,15 +12848,6 @@
|
|||
"@types/prop-types": {
|
||||
"version": "15.7.3"
|
||||
},
|
||||
"@types/ramda": {
|
||||
"version": "0.27.66",
|
||||
"resolved": "https://registry.npmjs.org/@types/ramda/-/ramda-0.27.66.tgz",
|
||||
"integrity": "sha512-i2YW+E2U6NfMt3dp0RxNcejox+bxJUNDjB7BpYuRuoHIzv5juPHkJkNgcUOu+YSQEmaWu8cnAo/8r63C0NnuVA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"ts-toolbelt": "^6.15.1"
|
||||
}
|
||||
},
|
||||
"@types/react": {
|
||||
"version": "18.2.33",
|
||||
"resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.33.tgz",
|
||||
|
@ -17115,10 +17101,6 @@
|
|||
"dev": true,
|
||||
"requires": {}
|
||||
},
|
||||
"ts-toolbelt": {
|
||||
"version": "6.15.5",
|
||||
"dev": true
|
||||
},
|
||||
"tsconfig-paths": {
|
||||
"version": "3.14.1",
|
||||
"dev": true,
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
"@fortawesome/react-fontawesome": "^0.2.0",
|
||||
"@json2csv/plainjs": "^7.0.3",
|
||||
"@reduxjs/toolkit": "^1.9.7",
|
||||
"@shlinkio/data-manipulation": "^1.0.1",
|
||||
"@shlinkio/shlink-frontend-kit": "^0.4.0",
|
||||
"@shlinkio/shlink-js-sdk": "^0.1.0",
|
||||
"@shlinkio/shlink-web-component": "^0.3.5",
|
||||
|
@ -40,7 +41,6 @@
|
|||
"compare-versions": "^6.1.0",
|
||||
"csvtojson": "^2.0.10",
|
||||
"date-fns": "^2.30.0",
|
||||
"ramda": "^0.27.2",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-external-link": "^2.2.0",
|
||||
|
@ -62,7 +62,6 @@
|
|||
"@testing-library/react": "^14.0.0",
|
||||
"@testing-library/user-event": "^14.5.1",
|
||||
"@total-typescript/shoehorn": "^0.1.1",
|
||||
"@types/ramda": "^0.27.66",
|
||||
"@types/react": "^18.2.33",
|
||||
"@types/react-dom": "^18.2.14",
|
||||
"@types/uuid": "^9.0.6",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { createAction, createSlice } from '@reduxjs/toolkit';
|
||||
import { memoizeWith } from '@shlinkio/data-manipulation';
|
||||
import type { ShlinkHealth } from '@shlinkio/shlink-web-component/api-contract';
|
||||
import { memoizeWith } from 'ramda';
|
||||
import type { ShlinkApiClientBuilder } from '../../api/services/ShlinkApiClientBuilder';
|
||||
import { createAsyncThunk } from '../../utils/helpers/redux';
|
||||
import { versionToPrintable, versionToSemVer as toSemVer } from '../../utils/helpers/version';
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import type { PayloadAction, PrepareAction } from '@reduxjs/toolkit';
|
||||
import { createSlice } from '@reduxjs/toolkit';
|
||||
import { mergeDeepRight } from '@shlinkio/data-manipulation';
|
||||
import type { Theme } from '@shlinkio/shlink-frontend-kit';
|
||||
import type {
|
||||
Settings,
|
||||
|
@ -8,7 +9,6 @@ import type {
|
|||
TagsSettings,
|
||||
VisitsSettings,
|
||||
} from '@shlinkio/shlink-web-component';
|
||||
import { mergeDeepRight } from 'ramda';
|
||||
import type { Defined } from '../../utils/types';
|
||||
|
||||
type ShortUrlsOrder = Defined<ShortUrlsListSettings['defaultOrdering']>;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { memoizeWith } from '@shlinkio/data-manipulation';
|
||||
import { compare } from 'compare-versions';
|
||||
import { memoizeWith } from 'ramda';
|
||||
|
||||
export type Empty = null | undefined | '' | never[];
|
||||
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
import { range } from 'ramda';
|
||||
import type { SyntheticEvent } from 'react';
|
||||
|
||||
export const handleEventPreventingDefault = <T>(handler: () => T) => (e: SyntheticEvent) => {
|
||||
e.preventDefault();
|
||||
handler();
|
||||
};
|
||||
|
||||
export const rangeOf = <T>(size: number, mappingFn: (value: number) => T, startAt = 1): T[] =>
|
||||
range(startAt, size + 1).map(mappingFn);
|
||||
|
|
Loading…
Reference in a new issue