Skip to content

Commit 76d7cb0

Browse files
authored
feat: new design, refactoring (#3)
1 parent 0700e0b commit 76d7cb0

File tree

205 files changed

+7375
-4120
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

205 files changed

+7375
-4120
lines changed

.stylelintrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"extends": [
3+
"@yandex-cloud/stylelint-config",
4+
"@yandex-cloud/stylelint-config/order",
5+
"@yandex-cloud/stylelint-config/prettier"
6+
],
7+
"rules": {
8+
"declaration-colon-space-after": "always-single-line",
9+
"declaration-no-important": null
10+
}
11+
}

config-overrides.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ const _ = require('lodash');
22
const path = require('path');
33

44
const srcRoot = path.resolve(__dirname, 'src');
5-
const commonRoot = path.resolve(__dirname, 'node_modules/@yandex-data-ui/common');
5+
const uiKitRoot = path.resolve(__dirname, 'node_modules/@yandex-cloud/uikit');
66

77
module.exports = function override(config, env) {
88
//do stuff with the webpack config...
99

1010
const oneOfRule = config.module.rules.find((r) => r.oneOf);
1111
oneOfRule.oneOf.splice(0, 0, {
1212
test: /\.svg$/,
13-
include: [path.resolve(srcRoot, 'assets/icons'), path.resolve(commonRoot, 'assets/icons')],
13+
include: [path.resolve(srcRoot, 'assets/icons'), path.resolve(uiKitRoot, 'assets/icons')],
1414
loader: '@svgr/webpack',
1515
options: {dimensions: false},
1616
});

package-lock.json

Lines changed: 1540 additions & 336 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"@testing-library/jest-dom": "^5.15.0",
1313
"@testing-library/react": "^11.2.7",
1414
"@testing-library/user-event": "^12.8.3",
15+
"@types/qs": "^6.9.7",
1516
"@yandex-cloud/i18n": "^0.2.0",
1617
"@yandex-cloud/paranoid": "^1.0.0",
1718
"@yandex-cloud/react-data-table": "^0.2.1",
@@ -30,10 +31,10 @@
3031
"react-redux": "^7.0.3",
3132
"react-router": "^5.0.1",
3233
"react-router-dom": "^5.0.1",
33-
"react-scripts": "^4.0.3",
34+
"react-scripts": "4.0.3",
35+
"react-split": "^2.0.14",
3436
"react-transition-group": "^4.4.2",
3537
"react-treeview": "^0.4.7",
36-
"react-use": "^15.3.4",
3738
"redux": "^4.0.1",
3839
"redux-location-state": "^2.6.0",
3940
"redux-thunk": "^2.3.0",
@@ -43,9 +44,10 @@
4344
},
4445
"scripts": {
4546
"start": "react-app-rewired start",
46-
"dev": "REACT_APP_BACKEND=http://localhost:8765 npm start",
47+
"dev": "DISABLE_ESLINT_PLUGIN=true TSC_COMPILE_ON_ERROR=true REACT_APP_BACKEND=http://localhost:8765 npm start",
4748
"build": "react-app-rewired build",
4849
"build:embedded": "rm -rf build && REACT_APP_BACKEND=http://localhost:8765 npm run build && ./prepare-build.sh",
50+
"lint:styles": "stylelint 'src/**/*.scss'",
4951
"package": "rm -rf dist && copyfiles -u 1 'src/**/*' dist",
5052
"test": "react-app-rewired test",
5153
"eject": "react-scripts eject",
@@ -80,10 +82,12 @@
8082
"@yandex-cloud/uikit": "^1.7.0",
8183
"copyfiles": "^2.4.1",
8284
"eslint-config-prettier": "^8.3.0",
85+
"postcss": "^8.4.6",
8386
"prettier": "^2.5.1",
8487
"react": "^17.0.2",
8588
"react-app-rewired": "^2.1.11",
8689
"react-dom": "^17.0.2",
90+
"stylelint": "^14.3.0",
8791
"typescript": "^4.5.4"
8892
}
8993
}

public/index.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1" />
77
<meta name="theme-color" content="#000000" />
88
<meta
9-
name="description"
10-
content="Web site created using create-react-app"
9+
name="YDB Monitoring"
1110
/>
1211
<!--
1312
Notice the use of %PUBLIC_URL% in the tags above.
@@ -18,7 +17,7 @@
1817
work correctly both with client-side routing and a non-root public URL.
1918
Learn how to configure a non-root public URL by running `npm run build`.
2019
-->
21-
<title>React App</title>
20+
<title>YDB Monitoring</title>
2221
<script>
2322
window.systemSettings = {};
2423
window.userSettings = {};

src/assets/icons/cluster.svg

Lines changed: 1 addition & 0 deletions
Loading

src/assets/icons/hide.svg

Lines changed: 1 addition & 0 deletions
Loading

src/assets/icons/show.svg

Lines changed: 1 addition & 0 deletions
Loading

src/assets/icons/user-check.svg

Lines changed: 1 addition & 1 deletion
Loading

src/assets/icons/user-secret.svg

Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)