Skip to content

Commit

Permalink
Merge pull request #195 from ergoplatform/update_dependencies
Browse files Browse the repository at this point in the history
huge update for dependencies and switch to new node versions
  • Loading branch information
deadit authored Sep 5, 2023
2 parents 1d8852f + 823f313 commit 1f2dfb1
Show file tree
Hide file tree
Showing 28 changed files with 5,646 additions and 7,164 deletions.
16 changes: 0 additions & 16 deletions .babelrc

This file was deleted.

38 changes: 0 additions & 38 deletions .eslintrc.json

This file was deleted.

90 changes: 2 additions & 88 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,60 +3,34 @@
"version": "0.1.0",
"private": true,
"scripts": {
"analyze": "source-map-explorer 'build/static/js/*.js'",
"start": "react-scripts start",
"build": "react-scripts build",
"test": "node scripts/test.js --env=jsdom",
"test:coverage": "node scripts/test.js --env=jsdom --coverage"
},
"dependencies": {
"@axetroy/react-download": "^1.1.1",
"@babel/core": "7.9.0",
"@sentry/react": "^5.22.3",
"@sentry/tracing": "^5.22.3",
"@testing-library/jest-dom": "^5.5.0",
"@testing-library/react": "^10.0.4",
"@testing-library/user-event": "^10.1.0",
"@types/jest": "^25.2.1",
"@types/node": "^12.0.0",
"@types/react": "^16.9.0",
"@types/react-copy-to-clipboard": "^4.3.0",
"@types/react-dom": "^16.9.7",
"@typescript-eslint/eslint-plugin": "^2.30.0",
"@typescript-eslint/parser": "^2.30.0",
"axios": "^0.21.2",
"babel-eslint": "10.1.0",
"babel-plugin-named-asset-import": "^0.3.6",
"babel-preset-react-app": "^9.1.2",
"camelcase": "^5.3.1",
"classnames": "^2.2.5",
"cross-env": "^7.0.2",
"dayjs": "^1.6.3",
"eslint-config-airbnb": "18.1.0",
"eslint-config-prettier": "6.11.0",
"eslint-config-react-app": "^5.2.1",
"eslint-loader": "4.0.0",
"eslint-plugin-flowtype": "4.7.0",
"eslint-plugin-import": "2.20.2",
"eslint-plugin-jsx-a11y": "6.2.3",
"eslint-plugin-prettier": "3.1.3",
"eslint-plugin-react": "7.19.0",
"eslint-plugin-react-app": "^6.2.2",
"eslint-plugin-react-hooks": "^4.0.4",
"format-number": "^3.0.0",
"history": "^4.10.1",
"identity-obj-proxy": "^3.0.0",
"lodash.debounce": "^4.0.8",
"node-sass": "^6.0.1",
"node-sass": "9.0.0",
"nprogress": "^0.2.0",
"object-assign": "4.1.1",
"promise": "^8.1.0",
"qrcode.react": "^0.8.0",
"query-string": "^6.1.0",
"react": "^16.13.1",
"react-alert": "^7.0.2",
"react-alert-template-basic": "^1.0.0",
"react-app-polyfill": "^1.0.6",
"react-calendar": "^2.15.1",
"react-copy-to-clipboard": "^5.0.2",
"react-dev-utils": "^11.0.4",
Expand All @@ -70,19 +44,15 @@
"react-router-dom": "5.3.0",
"react-router-hash-link": "~1.2.1",
"react-router-last-location": "^2.0.1",
"react-scripts": "^4.0.3",
"react-scripts": "^5.0.1",
"react-truncate": "^2.4.0",
"recharts": "^1.0.0-beta.10",
"redux": "^4.0.1",
"redux-devtools-extension": "^2.13.8",
"redux-logger": "^3.0.6",
"redux-struct": "^1.3.1",
"redux-thunk": "^2.2.0",
"rfc4648": "^1.3.0",
"source-map-explorer": "^2.4.2",
"ts-sinon": "^1.2.0",
"typescript": "~3.8.3",
"vlq": "^1.0.1",
"whatwg-fetch": "^3.0.0"
},
"devDependencies": {
Expand All @@ -101,11 +71,9 @@
"@types/react-router-dom": "^5.3.2",
"@types/recharts": "^1.0.20",
"@types/redux-logger": "^3.0.6",
"@types/webpack": "^4.41.11",
"axios-mock-adapter": "^1.15.0",
"codecov": "^3.7.1",
"enzyme": "^3.3.0",
"enzyme-adapter-react-16": "^1.1.1",
"prettier": "^2.0.5",
"raf": "3.4.1"
},
Expand All @@ -120,59 +88,5 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"jest": {
"collectCoverageFrom": [
"client/src/**/*.{js,jsx,ts,tsx}",
"!client/src/**/*.{d.ts}",
"!client/src/utils/test-utils.ts",
"server/src/**/*.{js,jsx,ts,tsx}",
"!server/src/**/*.{d.ts}",
"!server/src/utils/test-utils.ts"
],
"setupFiles": [
"<rootDir>/config/polyfills.js",
"<rootDir>/config/enzyme.js"
],
"testMatch": [
"<rootDir>/client/src/**/__tests__/**/*.(j|t)s?(x)",
"<rootDir>/client/src/**/?(*.)(spec|test).(j|t)s?(x)",
"<rootDir>/server/src/**/__tests__/**/*.(j|t)s?(x)",
"<rootDir>/server/src/**/?(*.)(spec|test).(j|t)s?(x)"
],
"testEnvironment": "node",
"testURL": "http://localhost",
"transform": {
"^.+\\.(js|jsx|mjs)$": "babel-jest",
"^.+\\.tsx?$": "<rootDir>/config/jest/typescriptTransform.js",
"^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
"^(?!.*\\.(js|jsx|mjs|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
},
"transformIgnorePatterns": [
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs|ts|tsx)$"
],
"moduleNameMapper": {
".+\\.(svg|png|jpg)$": "identity-obj-proxy",
"^react-native$": "react-native-web",
"^apiSpec$": "<rootDir>/api.yaml"
},
"moduleFileExtensions": [
"web.ts",
"ts",
"web.tsx",
"tsx",
"web.js",
"js",
"web.jsx",
"jsx",
"json",
"node",
"mjs"
],
"globals": {
"ts-jest": {
"tsConfig": "tsconfig.test.json"
}
}
}
}
5 changes: 3 additions & 2 deletions src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { LastLocationProvider } from 'react-router-last-location';

import en from 'react-intl/locale-data/en';
import ru from 'react-intl/locale-data/ru';
import id from 'react-intl/locale-data/id';

import { AppComponent } from './containers/app/app.component';

Expand Down Expand Up @@ -35,7 +36,7 @@ delete window.__PRELOADED_STATE__;

const settings = JSON.parse(localStorage.getItem('settings') as string) || {};

const languages = ['en', 'ru'];
const languages = ['en', 'ru', 'id'];
let locale = languages[0];

const pathLanguage = window.location.pathname.split('/')[1];
Expand All @@ -53,7 +54,7 @@ preloadedState.settings = {

const AppStore = configureStore(preloadedState);

addLocaleData([...en, ...ru]);
addLocaleData([...en, ...ru, ...id]);

export const App = () => {
return (
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 1f2dfb1

Please sign in to comment.