Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d9543c4a24 | ||
|
|
3ddbdbda6d | ||
|
|
ae26c073e1 | ||
|
|
1a1d2b594c |
No files matched your search
@@ -1,3 +1,13 @@
|
|||||||
|
## 0.16.0
|
||||||
|
- Добавлена форма на страницу редактора конфигов
|
||||||
|
## 0.15.1
|
||||||
|
- Изменен цвет компонента Tag в ActiveConfigurationsTable
|
||||||
|
- Изменена иконка редакторивания конфига на <FormOutlined />
|
||||||
|
## 0.15.0
|
||||||
|
- Добавлены placeholder для поиска в первом столбце
|
||||||
|
- Добавлен заголовок первого столбца на экране Модули
|
||||||
|
- Изменен интервал поллинга для get_modules на 5 секунд
|
||||||
|
- Изменена логика работы редиректа после окончания сессии
|
||||||
## 0.14.2
|
## 0.14.2
|
||||||
- Исправлено появление экрана после логина
|
- Исправлено появление экрана после логина
|
||||||
- На экране ошибки добавлена кнопка "На главную"
|
- На экране ошибки добавлена кнопка "На главную"
|
||||||
|
|||||||
Generated
+423
-55
@@ -1,22 +1,26 @@
|
|||||||
{
|
{
|
||||||
"name": "isp-admin-ui",
|
"name": "isp-admin-ui",
|
||||||
"version": "0.14.1",
|
"version": "0.16.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "isp-admin-ui",
|
"name": "isp-admin-ui",
|
||||||
"version": "0.14.1",
|
"version": "0.16.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@apidevtools/json-schema-ref-parser": "^9.0.6",
|
"@apidevtools/json-schema-ref-parser": "^9.0.6",
|
||||||
"@codemirror/lang-json": "^6.0.1",
|
"@codemirror/lang-json": "^6.0.1",
|
||||||
"@monaco-editor/react": "^4.6.0",
|
"@monaco-editor/react": "^4.6.0",
|
||||||
"@reduxjs/toolkit": "^2.2.3",
|
"@reduxjs/toolkit": "^2.2.3",
|
||||||
|
"@rjsf/antd": "^5.21.2",
|
||||||
|
"@rjsf/core": "^5.21.2",
|
||||||
|
"@rjsf/validator-ajv8": "^5.21.2",
|
||||||
"@uiw/react-codemirror": "^4.21.25",
|
"@uiw/react-codemirror": "^4.21.25",
|
||||||
"axios": "^1.6.8",
|
"axios": "^1.6.8",
|
||||||
"clipboard": "^2.0.11",
|
"clipboard": "^2.0.11",
|
||||||
"compare-versions": "^6.1.0",
|
"compare-versions": "^6.1.0",
|
||||||
"dayjs": "^1.11.10",
|
"dayjs": "^1.11.10",
|
||||||
|
"deep-equal": "^2.2.3",
|
||||||
"isp-ui-kit": "github:txix-open/isp-ui-kit",
|
"isp-ui-kit": "github:txix-open/isp-ui-kit",
|
||||||
"json-schema-view-js": "^2.0.1",
|
"json-schema-view-js": "^2.0.1",
|
||||||
"lodash.clonedeep": "^4.5.0",
|
"lodash.clonedeep": "^4.5.0",
|
||||||
@@ -33,6 +37,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
|
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
|
||||||
|
"@types/deep-equal": "^1.0.4",
|
||||||
"@types/lodash.clonedeep": "^4.5.9",
|
"@types/lodash.clonedeep": "^4.5.9",
|
||||||
"@types/node": "^20.12.4",
|
"@types/node": "^20.12.4",
|
||||||
"@types/react": "^18.2.74",
|
"@types/react": "^18.2.74",
|
||||||
@@ -3178,6 +3183,166 @@
|
|||||||
"node": ">=14.0.0"
|
"node": ">=14.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@rjsf/antd": {
|
||||||
|
"version": "5.21.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/@rjsf/antd/-/antd-5.21.2.tgz",
|
||||||
|
"integrity": "sha512-B0wP+tKRG1sg5TW9OecWwB5PX9Ko6BdyuS/Fj0L5lG4lIxe6moupWQOApfCOVpOwTwPKsuwodKd2NOPTTtSIuw==",
|
||||||
|
"dependencies": {
|
||||||
|
"classnames": "^2.5.1",
|
||||||
|
"lodash": "^4.17.21",
|
||||||
|
"lodash-es": "^4.17.21",
|
||||||
|
"rc-picker": "2.7.6"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=14"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"@ant-design/icons": "^4.0.0 || ^5.0.0",
|
||||||
|
"@rjsf/core": "^5.20.x",
|
||||||
|
"@rjsf/utils": "^5.20.x",
|
||||||
|
"antd": "^4.24.0 || ^5.8.5",
|
||||||
|
"dayjs": "^1.8.0",
|
||||||
|
"react": "^16.14.0 || >=17"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@rjsf/antd/node_modules/rc-picker": {
|
||||||
|
"version": "2.7.6",
|
||||||
|
"resolved": "https://registry.npmjs.org/rc-picker/-/rc-picker-2.7.6.tgz",
|
||||||
|
"integrity": "sha512-H9if/BUJUZBOhPfWcPeT15JUI3/ntrG9muzERrXDkSoWmDj4yzmBvumozpxYrHwjcKnjyDGAke68d+whWwvhHA==",
|
||||||
|
"dependencies": {
|
||||||
|
"@babel/runtime": "^7.10.1",
|
||||||
|
"classnames": "^2.2.1",
|
||||||
|
"date-fns": "2.x",
|
||||||
|
"dayjs": "1.x",
|
||||||
|
"moment": "^2.24.0",
|
||||||
|
"rc-trigger": "^5.0.4",
|
||||||
|
"rc-util": "^5.37.0",
|
||||||
|
"shallowequal": "^1.1.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=8.x"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"react": ">=16.9.0",
|
||||||
|
"react-dom": ">=16.9.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@rjsf/antd/node_modules/rc-picker/node_modules/rc-trigger": {
|
||||||
|
"version": "5.3.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/rc-trigger/-/rc-trigger-5.3.4.tgz",
|
||||||
|
"integrity": "sha512-mQv+vas0TwKcjAO2izNPkqR4j86OemLRmvL2nOzdP9OWNWA1ivoTt5hzFqYNW9zACwmTezRiN8bttrC7cZzYSw==",
|
||||||
|
"dependencies": {
|
||||||
|
"@babel/runtime": "^7.18.3",
|
||||||
|
"classnames": "^2.2.6",
|
||||||
|
"rc-align": "^4.0.0",
|
||||||
|
"rc-motion": "^2.0.0",
|
||||||
|
"rc-util": "^5.19.2"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=8.x"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"react": ">=16.9.0",
|
||||||
|
"react-dom": ">=16.9.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@rjsf/antd/node_modules/rc-picker/node_modules/rc-trigger/node_modules/rc-align": {
|
||||||
|
"version": "4.0.15",
|
||||||
|
"resolved": "https://registry.npmjs.org/rc-align/-/rc-align-4.0.15.tgz",
|
||||||
|
"integrity": "sha512-wqJtVH60pka/nOX7/IspElA8gjPNQKIx/ZqJ6heATCkXpe1Zg4cPVrMD2vC96wjsFFL8WsmhPbx9tdMo1qqlIA==",
|
||||||
|
"dependencies": {
|
||||||
|
"@babel/runtime": "^7.10.1",
|
||||||
|
"classnames": "2.x",
|
||||||
|
"dom-align": "^1.7.0",
|
||||||
|
"rc-util": "^5.26.0",
|
||||||
|
"resize-observer-polyfill": "^1.5.1"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"react": ">=16.9.0",
|
||||||
|
"react-dom": ">=16.9.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@rjsf/core": {
|
||||||
|
"version": "5.21.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/@rjsf/core/-/core-5.21.2.tgz",
|
||||||
|
"integrity": "sha512-0pTCdAQ1zb68wHPh6CkBFsKF/jgcjtIvBt7wu8BkyJNBkiVz2/XsfenmiqrKUBEyv9mo6sagdsaHxwBmQz8ctw==",
|
||||||
|
"dependencies": {
|
||||||
|
"lodash": "^4.17.21",
|
||||||
|
"lodash-es": "^4.17.21",
|
||||||
|
"markdown-to-jsx": "^7.4.1",
|
||||||
|
"nanoid": "^3.3.7",
|
||||||
|
"prop-types": "^15.8.1"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=14"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"@rjsf/utils": "^5.20.x",
|
||||||
|
"react": "^16.14.0 || >=17"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@rjsf/utils": {
|
||||||
|
"version": "5.21.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/@rjsf/utils/-/utils-5.21.2.tgz",
|
||||||
|
"integrity": "sha512-e/Fn5rOUQCyR+QqK7tyJyleojAOkwa7N606ohiQsq2DebQ4TWuw/PuODCp3HUPAjdiwEVa2fsnGe0rELL5NGLg==",
|
||||||
|
"peer": true,
|
||||||
|
"dependencies": {
|
||||||
|
"json-schema-merge-allof": "^0.8.1",
|
||||||
|
"jsonpointer": "^5.0.1",
|
||||||
|
"lodash": "^4.17.21",
|
||||||
|
"lodash-es": "^4.17.21",
|
||||||
|
"react-is": "^18.2.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=14"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"react": "^16.14.0 || >=17"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@rjsf/utils/node_modules/react-is": {
|
||||||
|
"version": "18.3.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz",
|
||||||
|
"integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==",
|
||||||
|
"peer": true
|
||||||
|
},
|
||||||
|
"node_modules/@rjsf/validator-ajv8": {
|
||||||
|
"version": "5.21.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/@rjsf/validator-ajv8/-/validator-ajv8-5.21.2.tgz",
|
||||||
|
"integrity": "sha512-sm0WCkIRSrKLMPQcuQqZZP4uLKJ3UeI8vtfINyPIddtmCC7lGriCXLBwNANMFv5BPFK5A0CTHol7qyRBNFDlWQ==",
|
||||||
|
"dependencies": {
|
||||||
|
"ajv": "^8.12.0",
|
||||||
|
"ajv-formats": "^2.1.1",
|
||||||
|
"lodash": "^4.17.21",
|
||||||
|
"lodash-es": "^4.17.21"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=14"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"@rjsf/utils": "^5.20.x"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@rjsf/validator-ajv8/node_modules/ajv": {
|
||||||
|
"version": "8.17.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz",
|
||||||
|
"integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==",
|
||||||
|
"dependencies": {
|
||||||
|
"fast-deep-equal": "^3.1.3",
|
||||||
|
"fast-uri": "^3.0.1",
|
||||||
|
"json-schema-traverse": "^1.0.0",
|
||||||
|
"require-from-string": "^2.0.2"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"type": "github",
|
||||||
|
"url": "https://github.com/sponsors/epoberezkin"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@rjsf/validator-ajv8/node_modules/json-schema-traverse": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
|
||||||
|
"integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="
|
||||||
|
},
|
||||||
"node_modules/@rollup/plugin-inject": {
|
"node_modules/@rollup/plugin-inject": {
|
||||||
"version": "5.0.5",
|
"version": "5.0.5",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/plugin-inject/-/plugin-inject-5.0.5.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/plugin-inject/-/plugin-inject-5.0.5.tgz",
|
||||||
@@ -3962,6 +4127,12 @@
|
|||||||
"node": ">=6.9.0"
|
"node": ">=6.9.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@types/deep-equal": {
|
||||||
|
"version": "1.0.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/deep-equal/-/deep-equal-1.0.4.tgz",
|
||||||
|
"integrity": "sha512-tqdiS4otQP4KmY0PR3u6KbZ5EWvhNdUoS/jc93UuK23C220lOZ/9TvjfxdPcKvqwwDVtmtSCrnr0p/2dirAxkA==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"node_modules/@types/estree": {
|
"node_modules/@types/estree": {
|
||||||
"version": "1.0.5",
|
"version": "1.0.5",
|
||||||
"resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz",
|
"resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz",
|
||||||
@@ -4423,6 +4594,42 @@
|
|||||||
"url": "https://github.com/sponsors/epoberezkin"
|
"url": "https://github.com/sponsors/epoberezkin"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/ajv-formats": {
|
||||||
|
"version": "2.1.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz",
|
||||||
|
"integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==",
|
||||||
|
"dependencies": {
|
||||||
|
"ajv": "^8.0.0"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"ajv": "^8.0.0"
|
||||||
|
},
|
||||||
|
"peerDependenciesMeta": {
|
||||||
|
"ajv": {
|
||||||
|
"optional": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/ajv-formats/node_modules/ajv": {
|
||||||
|
"version": "8.17.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz",
|
||||||
|
"integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==",
|
||||||
|
"dependencies": {
|
||||||
|
"fast-deep-equal": "^3.1.3",
|
||||||
|
"fast-uri": "^3.0.1",
|
||||||
|
"json-schema-traverse": "^1.0.0",
|
||||||
|
"require-from-string": "^2.0.2"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"type": "github",
|
||||||
|
"url": "https://github.com/sponsors/epoberezkin"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/ajv-formats/node_modules/json-schema-traverse": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
|
||||||
|
"integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="
|
||||||
|
},
|
||||||
"node_modules/ansi-regex": {
|
"node_modules/ansi-regex": {
|
||||||
"version": "5.0.1",
|
"version": "5.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
|
||||||
@@ -4529,7 +4736,6 @@
|
|||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.1.tgz",
|
||||||
"integrity": "sha512-ahC5W1xgou+KTXix4sAO8Ki12Q+jf4i0+tmk3sC+zgcynshkHxzpXdImBehiUYKKKDwvfFiJl1tZt6ewscS1Mg==",
|
"integrity": "sha512-ahC5W1xgou+KTXix4sAO8Ki12Q+jf4i0+tmk3sC+zgcynshkHxzpXdImBehiUYKKKDwvfFiJl1tZt6ewscS1Mg==",
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"call-bind": "^1.0.5",
|
"call-bind": "^1.0.5",
|
||||||
"is-array-buffer": "^3.0.4"
|
"is-array-buffer": "^3.0.4"
|
||||||
@@ -4747,7 +4953,6 @@
|
|||||||
"version": "1.0.7",
|
"version": "1.0.7",
|
||||||
"resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz",
|
"resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz",
|
||||||
"integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==",
|
"integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==",
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"possible-typed-array-names": "^1.0.0"
|
"possible-typed-array-names": "^1.0.0"
|
||||||
},
|
},
|
||||||
@@ -5120,7 +5325,6 @@
|
|||||||
"version": "1.0.7",
|
"version": "1.0.7",
|
||||||
"resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz",
|
"resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz",
|
||||||
"integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==",
|
"integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==",
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"es-define-property": "^1.0.0",
|
"es-define-property": "^1.0.0",
|
||||||
"es-errors": "^1.3.0",
|
"es-errors": "^1.3.0",
|
||||||
@@ -5474,6 +5678,29 @@
|
|||||||
"resolved": "https://registry.npmjs.org/compare-versions/-/compare-versions-6.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/compare-versions/-/compare-versions-6.1.0.tgz",
|
||||||
"integrity": "sha512-LNZQXhqUvqUTotpZ00qLSaify3b4VFD588aRr8MKFw4CMUr98ytzCW5wDH5qx/DEY5kCDXcbcRuCqL0szEf2tg=="
|
"integrity": "sha512-LNZQXhqUvqUTotpZ00qLSaify3b4VFD588aRr8MKFw4CMUr98ytzCW5wDH5qx/DEY5kCDXcbcRuCqL0szEf2tg=="
|
||||||
},
|
},
|
||||||
|
"node_modules/compute-gcd": {
|
||||||
|
"version": "1.2.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/compute-gcd/-/compute-gcd-1.2.1.tgz",
|
||||||
|
"integrity": "sha512-TwMbxBNz0l71+8Sc4czv13h4kEqnchV9igQZBi6QUaz09dnz13juGnnaWWJTRsP3brxOoxeB4SA2WELLw1hCtg==",
|
||||||
|
"peer": true,
|
||||||
|
"dependencies": {
|
||||||
|
"validate.io-array": "^1.0.3",
|
||||||
|
"validate.io-function": "^1.0.2",
|
||||||
|
"validate.io-integer-array": "^1.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/compute-lcm": {
|
||||||
|
"version": "1.1.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/compute-lcm/-/compute-lcm-1.1.2.tgz",
|
||||||
|
"integrity": "sha512-OFNPdQAXnQhDSKioX8/XYT6sdUlXwpeMjfd6ApxMJfyZ4GxmLR1xvMERctlYhlHwIiz6CSpBc2+qYKjHGZw4TQ==",
|
||||||
|
"peer": true,
|
||||||
|
"dependencies": {
|
||||||
|
"compute-gcd": "^1.2.1",
|
||||||
|
"validate.io-array": "^1.0.3",
|
||||||
|
"validate.io-function": "^1.0.2",
|
||||||
|
"validate.io-integer-array": "^1.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/compute-scroll-into-view": {
|
"node_modules/compute-scroll-into-view": {
|
||||||
"version": "3.1.0",
|
"version": "3.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/compute-scroll-into-view/-/compute-scroll-into-view-3.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/compute-scroll-into-view/-/compute-scroll-into-view-3.1.0.tgz",
|
||||||
@@ -5737,6 +5964,21 @@
|
|||||||
"url": "https://github.com/sponsors/ljharb"
|
"url": "https://github.com/sponsors/ljharb"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/date-fns": {
|
||||||
|
"version": "2.30.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.30.0.tgz",
|
||||||
|
"integrity": "sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==",
|
||||||
|
"dependencies": {
|
||||||
|
"@babel/runtime": "^7.21.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=0.11"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"type": "opencollective",
|
||||||
|
"url": "https://opencollective.com/date-fns"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/dayjs": {
|
"node_modules/dayjs": {
|
||||||
"version": "1.11.10",
|
"version": "1.11.10",
|
||||||
"resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.10.tgz",
|
"resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.10.tgz",
|
||||||
@@ -5759,6 +6001,37 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/deep-equal": {
|
||||||
|
"version": "2.2.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-2.2.3.tgz",
|
||||||
|
"integrity": "sha512-ZIwpnevOurS8bpT4192sqAowWM76JDKSHYzMLty3BZGSswgq6pBaH3DhCSW5xVAZICZyKdOBPjwww5wfgT/6PA==",
|
||||||
|
"dependencies": {
|
||||||
|
"array-buffer-byte-length": "^1.0.0",
|
||||||
|
"call-bind": "^1.0.5",
|
||||||
|
"es-get-iterator": "^1.1.3",
|
||||||
|
"get-intrinsic": "^1.2.2",
|
||||||
|
"is-arguments": "^1.1.1",
|
||||||
|
"is-array-buffer": "^3.0.2",
|
||||||
|
"is-date-object": "^1.0.5",
|
||||||
|
"is-regex": "^1.1.4",
|
||||||
|
"is-shared-array-buffer": "^1.0.2",
|
||||||
|
"isarray": "^2.0.5",
|
||||||
|
"object-is": "^1.1.5",
|
||||||
|
"object-keys": "^1.1.1",
|
||||||
|
"object.assign": "^4.1.4",
|
||||||
|
"regexp.prototype.flags": "^1.5.1",
|
||||||
|
"side-channel": "^1.0.4",
|
||||||
|
"which-boxed-primitive": "^1.0.2",
|
||||||
|
"which-collection": "^1.0.1",
|
||||||
|
"which-typed-array": "^1.1.13"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 0.4"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/sponsors/ljharb"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/deep-is": {
|
"node_modules/deep-is": {
|
||||||
"version": "0.1.4",
|
"version": "0.1.4",
|
||||||
"resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",
|
"resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",
|
||||||
@@ -5769,7 +6042,6 @@
|
|||||||
"version": "1.1.4",
|
"version": "1.1.4",
|
||||||
"resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz",
|
"resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz",
|
||||||
"integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==",
|
"integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==",
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"es-define-property": "^1.0.0",
|
"es-define-property": "^1.0.0",
|
||||||
"es-errors": "^1.3.0",
|
"es-errors": "^1.3.0",
|
||||||
@@ -5795,7 +6067,6 @@
|
|||||||
"version": "1.2.1",
|
"version": "1.2.1",
|
||||||
"resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz",
|
"resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz",
|
||||||
"integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==",
|
"integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==",
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"define-data-property": "^1.0.1",
|
"define-data-property": "^1.0.1",
|
||||||
"has-property-descriptors": "^1.0.0",
|
"has-property-descriptors": "^1.0.0",
|
||||||
@@ -5872,6 +6143,11 @@
|
|||||||
"node": ">=6.0.0"
|
"node": ">=6.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/dom-align": {
|
||||||
|
"version": "1.12.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/dom-align/-/dom-align-1.12.4.tgz",
|
||||||
|
"integrity": "sha512-R8LUSEay/68zE5c8/3BDxiTEvgb4xZTF0RKmAHfiEVN3klfIpXfi2/QCoiWPccVQ0J/ZGdz9OjzL4uJEP/MRAw=="
|
||||||
|
},
|
||||||
"node_modules/domain-browser": {
|
"node_modules/domain-browser": {
|
||||||
"version": "4.23.0",
|
"version": "4.23.0",
|
||||||
"resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-4.23.0.tgz",
|
"resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-4.23.0.tgz",
|
||||||
@@ -6025,7 +6301,6 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz",
|
||||||
"integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==",
|
"integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==",
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"get-intrinsic": "^1.2.4"
|
"get-intrinsic": "^1.2.4"
|
||||||
},
|
},
|
||||||
@@ -6037,11 +6312,29 @@
|
|||||||
"version": "1.3.0",
|
"version": "1.3.0",
|
||||||
"resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
|
||||||
"integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
|
"integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
|
||||||
"dev": true,
|
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 0.4"
|
"node": ">= 0.4"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/es-get-iterator": {
|
||||||
|
"version": "1.1.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/es-get-iterator/-/es-get-iterator-1.1.3.tgz",
|
||||||
|
"integrity": "sha512-sPZmqHBe6JIiTfN5q2pEi//TwxmAFHwj/XEuYjTuse78i8KxaqMTTzxPoFKuzRpDpTJ+0NAbpfenkmH2rePtuw==",
|
||||||
|
"dependencies": {
|
||||||
|
"call-bind": "^1.0.2",
|
||||||
|
"get-intrinsic": "^1.1.3",
|
||||||
|
"has-symbols": "^1.0.3",
|
||||||
|
"is-arguments": "^1.1.1",
|
||||||
|
"is-map": "^2.0.2",
|
||||||
|
"is-set": "^2.0.2",
|
||||||
|
"is-string": "^1.0.7",
|
||||||
|
"isarray": "^2.0.5",
|
||||||
|
"stop-iteration-iterator": "^1.0.0"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/sponsors/ljharb"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/es-iterator-helpers": {
|
"node_modules/es-iterator-helpers": {
|
||||||
"version": "1.0.18",
|
"version": "1.0.18",
|
||||||
"resolved": "https://registry.npmjs.org/es-iterator-helpers/-/es-iterator-helpers-1.0.18.tgz",
|
"resolved": "https://registry.npmjs.org/es-iterator-helpers/-/es-iterator-helpers-1.0.18.tgz",
|
||||||
@@ -6779,8 +7072,7 @@
|
|||||||
"node_modules/fast-deep-equal": {
|
"node_modules/fast-deep-equal": {
|
||||||
"version": "3.1.3",
|
"version": "3.1.3",
|
||||||
"resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
|
"resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
|
||||||
"integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
|
"integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q=="
|
||||||
"dev": true
|
|
||||||
},
|
},
|
||||||
"node_modules/fast-diff": {
|
"node_modules/fast-diff": {
|
||||||
"version": "1.3.0",
|
"version": "1.3.0",
|
||||||
@@ -6828,6 +7120,11 @@
|
|||||||
"integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",
|
"integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"node_modules/fast-uri": {
|
||||||
|
"version": "3.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.0.2.tgz",
|
||||||
|
"integrity": "sha512-GR6f0hD7XXyNJa25Tb9BuIdN0tdr+0BMi6/CJPH3wJO1JjNG3n/VsSw38AwRdKZABm8lGbPfakLRkYzx2V9row=="
|
||||||
|
},
|
||||||
"node_modules/fastq": {
|
"node_modules/fastq": {
|
||||||
"version": "1.17.1",
|
"version": "1.17.1",
|
||||||
"resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz",
|
"resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz",
|
||||||
@@ -6959,7 +7256,6 @@
|
|||||||
"version": "0.3.3",
|
"version": "0.3.3",
|
||||||
"resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz",
|
"resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz",
|
||||||
"integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==",
|
"integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==",
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"is-callable": "^1.1.3"
|
"is-callable": "^1.1.3"
|
||||||
}
|
}
|
||||||
@@ -7015,7 +7311,6 @@
|
|||||||
"version": "1.1.2",
|
"version": "1.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
|
||||||
"integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
|
"integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
|
||||||
"dev": true,
|
|
||||||
"funding": {
|
"funding": {
|
||||||
"url": "https://github.com/sponsors/ljharb"
|
"url": "https://github.com/sponsors/ljharb"
|
||||||
}
|
}
|
||||||
@@ -7042,7 +7337,6 @@
|
|||||||
"version": "1.2.3",
|
"version": "1.2.3",
|
||||||
"resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz",
|
"resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz",
|
||||||
"integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==",
|
"integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==",
|
||||||
"dev": true,
|
|
||||||
"funding": {
|
"funding": {
|
||||||
"url": "https://github.com/sponsors/ljharb"
|
"url": "https://github.com/sponsors/ljharb"
|
||||||
}
|
}
|
||||||
@@ -7069,7 +7363,6 @@
|
|||||||
"version": "1.2.4",
|
"version": "1.2.4",
|
||||||
"resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz",
|
"resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz",
|
||||||
"integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==",
|
"integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==",
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"es-errors": "^1.3.0",
|
"es-errors": "^1.3.0",
|
||||||
"function-bind": "^1.1.2",
|
"function-bind": "^1.1.2",
|
||||||
@@ -7229,7 +7522,6 @@
|
|||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz",
|
||||||
"integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==",
|
"integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==",
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"get-intrinsic": "^1.1.3"
|
"get-intrinsic": "^1.1.3"
|
||||||
},
|
},
|
||||||
@@ -7253,7 +7545,6 @@
|
|||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz",
|
||||||
"integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==",
|
"integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==",
|
||||||
"dev": true,
|
|
||||||
"funding": {
|
"funding": {
|
||||||
"url": "https://github.com/sponsors/ljharb"
|
"url": "https://github.com/sponsors/ljharb"
|
||||||
}
|
}
|
||||||
@@ -7271,7 +7562,6 @@
|
|||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz",
|
||||||
"integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==",
|
"integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==",
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"es-define-property": "^1.0.0"
|
"es-define-property": "^1.0.0"
|
||||||
},
|
},
|
||||||
@@ -7283,7 +7573,6 @@
|
|||||||
"version": "1.0.3",
|
"version": "1.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz",
|
||||||
"integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==",
|
"integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==",
|
||||||
"dev": true,
|
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 0.4"
|
"node": ">= 0.4"
|
||||||
},
|
},
|
||||||
@@ -7295,7 +7584,6 @@
|
|||||||
"version": "1.0.3",
|
"version": "1.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz",
|
||||||
"integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==",
|
"integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==",
|
||||||
"dev": true,
|
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 0.4"
|
"node": ">= 0.4"
|
||||||
},
|
},
|
||||||
@@ -7307,7 +7595,6 @@
|
|||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz",
|
||||||
"integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==",
|
"integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==",
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"has-symbols": "^1.0.3"
|
"has-symbols": "^1.0.3"
|
||||||
},
|
},
|
||||||
@@ -7345,7 +7632,6 @@
|
|||||||
"version": "2.0.2",
|
"version": "2.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
|
||||||
"integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
|
"integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"function-bind": "^1.1.2"
|
"function-bind": "^1.1.2"
|
||||||
},
|
},
|
||||||
@@ -7506,7 +7792,6 @@
|
|||||||
"version": "1.0.7",
|
"version": "1.0.7",
|
||||||
"resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.7.tgz",
|
"resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.7.tgz",
|
||||||
"integrity": "sha512-NGnrKwXzSms2qUUih/ILZ5JBqNTSa1+ZmP6flaIp6KmSElgE9qdndzS3cqjrDovwFdmwsGsLdeFgB6suw+1e9g==",
|
"integrity": "sha512-NGnrKwXzSms2qUUih/ILZ5JBqNTSa1+ZmP6flaIp6KmSElgE9qdndzS3cqjrDovwFdmwsGsLdeFgB6suw+1e9g==",
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"es-errors": "^1.3.0",
|
"es-errors": "^1.3.0",
|
||||||
"hasown": "^2.0.0",
|
"hasown": "^2.0.0",
|
||||||
@@ -7520,7 +7805,6 @@
|
|||||||
"version": "1.1.1",
|
"version": "1.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz",
|
||||||
"integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==",
|
"integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==",
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"call-bind": "^1.0.2",
|
"call-bind": "^1.0.2",
|
||||||
"has-tostringtag": "^1.0.0"
|
"has-tostringtag": "^1.0.0"
|
||||||
@@ -7536,7 +7820,6 @@
|
|||||||
"version": "3.0.4",
|
"version": "3.0.4",
|
||||||
"resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.4.tgz",
|
"resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.4.tgz",
|
||||||
"integrity": "sha512-wcjaerHw0ydZwfhiKbXJWLDY8A7yV7KhjQOpb83hGgGfId/aQa4TOvwyzn2PuswW2gPCYEL/nEAiSVpdOj1lXw==",
|
"integrity": "sha512-wcjaerHw0ydZwfhiKbXJWLDY8A7yV7KhjQOpb83hGgGfId/aQa4TOvwyzn2PuswW2gPCYEL/nEAiSVpdOj1lXw==",
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"call-bind": "^1.0.2",
|
"call-bind": "^1.0.2",
|
||||||
"get-intrinsic": "^1.2.1"
|
"get-intrinsic": "^1.2.1"
|
||||||
@@ -7573,7 +7856,6 @@
|
|||||||
"version": "1.0.4",
|
"version": "1.0.4",
|
||||||
"resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz",
|
"resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz",
|
||||||
"integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==",
|
"integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==",
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"has-bigints": "^1.0.1"
|
"has-bigints": "^1.0.1"
|
||||||
},
|
},
|
||||||
@@ -7597,7 +7879,6 @@
|
|||||||
"version": "1.1.2",
|
"version": "1.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz",
|
||||||
"integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==",
|
"integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==",
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"call-bind": "^1.0.2",
|
"call-bind": "^1.0.2",
|
||||||
"has-tostringtag": "^1.0.0"
|
"has-tostringtag": "^1.0.0"
|
||||||
@@ -7613,7 +7894,6 @@
|
|||||||
"version": "1.2.7",
|
"version": "1.2.7",
|
||||||
"resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz",
|
"resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz",
|
||||||
"integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==",
|
"integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==",
|
||||||
"dev": true,
|
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 0.4"
|
"node": ">= 0.4"
|
||||||
},
|
},
|
||||||
@@ -7652,7 +7932,6 @@
|
|||||||
"version": "1.0.5",
|
"version": "1.0.5",
|
||||||
"resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz",
|
"resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz",
|
||||||
"integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==",
|
"integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==",
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"has-tostringtag": "^1.0.0"
|
"has-tostringtag": "^1.0.0"
|
||||||
},
|
},
|
||||||
@@ -7739,7 +8018,6 @@
|
|||||||
"version": "2.0.3",
|
"version": "2.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.3.tgz",
|
||||||
"integrity": "sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==",
|
"integrity": "sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==",
|
||||||
"dev": true,
|
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 0.4"
|
"node": ">= 0.4"
|
||||||
},
|
},
|
||||||
@@ -7788,7 +8066,6 @@
|
|||||||
"version": "1.0.7",
|
"version": "1.0.7",
|
||||||
"resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz",
|
"resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz",
|
||||||
"integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==",
|
"integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==",
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"has-tostringtag": "^1.0.0"
|
"has-tostringtag": "^1.0.0"
|
||||||
},
|
},
|
||||||
@@ -7812,7 +8089,6 @@
|
|||||||
"version": "1.1.4",
|
"version": "1.1.4",
|
||||||
"resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz",
|
"resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz",
|
||||||
"integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==",
|
"integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==",
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"call-bind": "^1.0.2",
|
"call-bind": "^1.0.2",
|
||||||
"has-tostringtag": "^1.0.0"
|
"has-tostringtag": "^1.0.0"
|
||||||
@@ -7828,7 +8104,6 @@
|
|||||||
"version": "2.0.3",
|
"version": "2.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.3.tgz",
|
||||||
"integrity": "sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg==",
|
"integrity": "sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg==",
|
||||||
"dev": true,
|
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 0.4"
|
"node": ">= 0.4"
|
||||||
},
|
},
|
||||||
@@ -7840,7 +8115,6 @@
|
|||||||
"version": "1.0.3",
|
"version": "1.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.3.tgz",
|
||||||
"integrity": "sha512-nA2hv5XIhLR3uVzDDfCIknerhx8XUKnstuOERPNNIinXG7v9u+ohXF67vxm4TPTEPU6lm61ZkwP3c9PCB97rhg==",
|
"integrity": "sha512-nA2hv5XIhLR3uVzDDfCIknerhx8XUKnstuOERPNNIinXG7v9u+ohXF67vxm4TPTEPU6lm61ZkwP3c9PCB97rhg==",
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"call-bind": "^1.0.7"
|
"call-bind": "^1.0.7"
|
||||||
},
|
},
|
||||||
@@ -7855,7 +8129,6 @@
|
|||||||
"version": "1.0.7",
|
"version": "1.0.7",
|
||||||
"resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz",
|
"resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz",
|
||||||
"integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==",
|
"integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==",
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"has-tostringtag": "^1.0.0"
|
"has-tostringtag": "^1.0.0"
|
||||||
},
|
},
|
||||||
@@ -7870,7 +8143,6 @@
|
|||||||
"version": "1.0.4",
|
"version": "1.0.4",
|
||||||
"resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz",
|
"resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz",
|
||||||
"integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==",
|
"integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==",
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"has-symbols": "^1.0.2"
|
"has-symbols": "^1.0.2"
|
||||||
},
|
},
|
||||||
@@ -7900,7 +8172,6 @@
|
|||||||
"version": "2.0.2",
|
"version": "2.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.2.tgz",
|
||||||
"integrity": "sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==",
|
"integrity": "sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==",
|
||||||
"dev": true,
|
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 0.4"
|
"node": ">= 0.4"
|
||||||
},
|
},
|
||||||
@@ -7924,7 +8195,6 @@
|
|||||||
"version": "2.0.3",
|
"version": "2.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.3.tgz",
|
||||||
"integrity": "sha512-LvIm3/KWzS9oRFHugab7d+M/GcBXuXX5xZkzPmN+NxihdQlZUQ4dWuSV1xR/sq6upL1TJEDrfBgRepHFdBtSNQ==",
|
"integrity": "sha512-LvIm3/KWzS9oRFHugab7d+M/GcBXuXX5xZkzPmN+NxihdQlZUQ4dWuSV1xR/sq6upL1TJEDrfBgRepHFdBtSNQ==",
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"call-bind": "^1.0.7",
|
"call-bind": "^1.0.7",
|
||||||
"get-intrinsic": "^1.2.4"
|
"get-intrinsic": "^1.2.4"
|
||||||
@@ -7951,8 +8221,7 @@
|
|||||||
"node_modules/isarray": {
|
"node_modules/isarray": {
|
||||||
"version": "2.0.5",
|
"version": "2.0.5",
|
||||||
"resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz",
|
"resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz",
|
||||||
"integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==",
|
"integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw=="
|
||||||
"dev": true
|
|
||||||
},
|
},
|
||||||
"node_modules/isexe": {
|
"node_modules/isexe": {
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
@@ -7970,8 +8239,8 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/isp-ui-kit": {
|
"node_modules/isp-ui-kit": {
|
||||||
"version": "0.7.5",
|
"version": "0.8.1",
|
||||||
"resolved": "git+ssh://git@github.com/txix-open/isp-ui-kit.git#040326c756de20d7a4bfad3411c9fa9feb7c4818",
|
"resolved": "git+ssh://git@github.com/txix-open/isp-ui-kit.git#18178ff6af4ea9ee220a3d5eab318e88af7a6b96",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@codemirror/lang-javascript": "^6.2.1",
|
"@codemirror/lang-javascript": "^6.2.1",
|
||||||
@@ -8066,6 +8335,29 @@
|
|||||||
"integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==",
|
"integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"node_modules/json-schema-compare": {
|
||||||
|
"version": "0.2.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/json-schema-compare/-/json-schema-compare-0.2.2.tgz",
|
||||||
|
"integrity": "sha512-c4WYmDKyJXhs7WWvAWm3uIYnfyWFoIp+JEoX34rctVvEkMYCPGhXtvmFFXiffBbxfZsvQ0RNnV5H7GvDF5HCqQ==",
|
||||||
|
"peer": true,
|
||||||
|
"dependencies": {
|
||||||
|
"lodash": "^4.17.4"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/json-schema-merge-allof": {
|
||||||
|
"version": "0.8.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/json-schema-merge-allof/-/json-schema-merge-allof-0.8.1.tgz",
|
||||||
|
"integrity": "sha512-CTUKmIlPJbsWfzRRnOXz+0MjIqvnleIXwFTzz+t9T86HnYX/Rozria6ZVGLktAU9e+NygNljveP+yxqtQp/Q4w==",
|
||||||
|
"peer": true,
|
||||||
|
"dependencies": {
|
||||||
|
"compute-lcm": "^1.1.2",
|
||||||
|
"json-schema-compare": "^0.2.2",
|
||||||
|
"lodash": "^4.17.20"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=12.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/json-schema-traverse": {
|
"node_modules/json-schema-traverse": {
|
||||||
"version": "0.4.1",
|
"version": "0.4.1",
|
||||||
"resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
|
"resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
|
||||||
@@ -8119,6 +8411,15 @@
|
|||||||
"graceful-fs": "^4.1.6"
|
"graceful-fs": "^4.1.6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/jsonpointer": {
|
||||||
|
"version": "5.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-5.0.1.tgz",
|
||||||
|
"integrity": "sha512-p/nXbhSEcu3pZRdkW1OfJhpsVtW1gd4Wa1fnQc9YLiTfAjn0312eMKimbdIQzuZl9aa9xUGaRlP9T/CJE/ditQ==",
|
||||||
|
"peer": true,
|
||||||
|
"engines": {
|
||||||
|
"node": ">=0.10.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/jsx-ast-utils": {
|
"node_modules/jsx-ast-utils": {
|
||||||
"version": "3.3.5",
|
"version": "3.3.5",
|
||||||
"resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.5.tgz",
|
"resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.5.tgz",
|
||||||
@@ -8245,6 +8546,17 @@
|
|||||||
"node": ">=12"
|
"node": ">=12"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/markdown-to-jsx": {
|
||||||
|
"version": "7.5.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/markdown-to-jsx/-/markdown-to-jsx-7.5.0.tgz",
|
||||||
|
"integrity": "sha512-RrBNcMHiFPcz/iqIj0n3wclzHXjwS7mzjBNWecKKVhNTIxQepIix6Il/wZCn2Cg5Y1ow2Qi84+eJrryFRWBEWw==",
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 10"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"react": ">= 0.14.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/md5.js": {
|
"node_modules/md5.js": {
|
||||||
"version": "1.3.5",
|
"version": "1.3.5",
|
||||||
"resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz",
|
"resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz",
|
||||||
@@ -8364,6 +8676,14 @@
|
|||||||
"url": "https://github.com/sponsors/ljharb"
|
"url": "https://github.com/sponsors/ljharb"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/moment": {
|
||||||
|
"version": "2.30.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/moment/-/moment-2.30.1.tgz",
|
||||||
|
"integrity": "sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==",
|
||||||
|
"engines": {
|
||||||
|
"node": "*"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/monaco-editor": {
|
"node_modules/monaco-editor": {
|
||||||
"version": "0.52.0",
|
"version": "0.52.0",
|
||||||
"resolved": "https://registry.npmjs.org/monaco-editor/-/monaco-editor-0.52.0.tgz",
|
"resolved": "https://registry.npmjs.org/monaco-editor/-/monaco-editor-0.52.0.tgz",
|
||||||
@@ -8379,7 +8699,6 @@
|
|||||||
"version": "3.3.7",
|
"version": "3.3.7",
|
||||||
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz",
|
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz",
|
||||||
"integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==",
|
"integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==",
|
||||||
"dev": true,
|
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
"type": "github",
|
"type": "github",
|
||||||
@@ -8499,7 +8818,6 @@
|
|||||||
"version": "1.13.1",
|
"version": "1.13.1",
|
||||||
"resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz",
|
"resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz",
|
||||||
"integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==",
|
"integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==",
|
||||||
"dev": true,
|
|
||||||
"funding": {
|
"funding": {
|
||||||
"url": "https://github.com/sponsors/ljharb"
|
"url": "https://github.com/sponsors/ljharb"
|
||||||
}
|
}
|
||||||
@@ -8508,7 +8826,6 @@
|
|||||||
"version": "1.1.6",
|
"version": "1.1.6",
|
||||||
"resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.6.tgz",
|
"resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.6.tgz",
|
||||||
"integrity": "sha512-F8cZ+KfGlSGi09lJT7/Nd6KJZ9ygtvYC0/UYYLI9nmQKLMnydpB9yvbv9K1uSkEu7FU9vYPmVwLg328tX+ot3Q==",
|
"integrity": "sha512-F8cZ+KfGlSGi09lJT7/Nd6KJZ9ygtvYC0/UYYLI9nmQKLMnydpB9yvbv9K1uSkEu7FU9vYPmVwLg328tX+ot3Q==",
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"call-bind": "^1.0.7",
|
"call-bind": "^1.0.7",
|
||||||
"define-properties": "^1.2.1"
|
"define-properties": "^1.2.1"
|
||||||
@@ -8524,7 +8841,6 @@
|
|||||||
"version": "1.1.1",
|
"version": "1.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz",
|
||||||
"integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==",
|
"integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==",
|
||||||
"dev": true,
|
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 0.4"
|
"node": ">= 0.4"
|
||||||
}
|
}
|
||||||
@@ -8533,7 +8849,6 @@
|
|||||||
"version": "4.1.5",
|
"version": "4.1.5",
|
||||||
"resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.5.tgz",
|
"resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.5.tgz",
|
||||||
"integrity": "sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ==",
|
"integrity": "sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ==",
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"call-bind": "^1.0.5",
|
"call-bind": "^1.0.5",
|
||||||
"define-properties": "^1.2.1",
|
"define-properties": "^1.2.1",
|
||||||
@@ -8893,7 +9208,6 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz",
|
||||||
"integrity": "sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==",
|
"integrity": "sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==",
|
||||||
"dev": true,
|
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 0.4"
|
"node": ">= 0.4"
|
||||||
}
|
}
|
||||||
@@ -9943,7 +10257,6 @@
|
|||||||
"version": "1.5.2",
|
"version": "1.5.2",
|
||||||
"resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.2.tgz",
|
"resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.2.tgz",
|
||||||
"integrity": "sha512-NcDiDkTLuPR+++OCKB0nWafEmhg/Da8aUPLPMQbK+bxKKCm1/S5he+AqYa4PlMCVBalb4/yxIRub6qkEx5yJbw==",
|
"integrity": "sha512-NcDiDkTLuPR+++OCKB0nWafEmhg/Da8aUPLPMQbK+bxKKCm1/S5he+AqYa4PlMCVBalb4/yxIRub6qkEx5yJbw==",
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"call-bind": "^1.0.6",
|
"call-bind": "^1.0.6",
|
||||||
"define-properties": "^1.2.1",
|
"define-properties": "^1.2.1",
|
||||||
@@ -10017,6 +10330,14 @@
|
|||||||
"node": ">=0.10.0"
|
"node": ">=0.10.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/require-from-string": {
|
||||||
|
"version": "2.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",
|
||||||
|
"integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=0.10.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/reselect": {
|
"node_modules/reselect": {
|
||||||
"version": "5.1.0",
|
"version": "5.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/reselect/-/reselect-5.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/reselect/-/reselect-5.1.0.tgz",
|
||||||
@@ -10330,7 +10651,6 @@
|
|||||||
"version": "1.2.2",
|
"version": "1.2.2",
|
||||||
"resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz",
|
"resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz",
|
||||||
"integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==",
|
"integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==",
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"define-data-property": "^1.1.4",
|
"define-data-property": "^1.1.4",
|
||||||
"es-errors": "^1.3.0",
|
"es-errors": "^1.3.0",
|
||||||
@@ -10347,7 +10667,6 @@
|
|||||||
"version": "2.0.2",
|
"version": "2.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.2.tgz",
|
||||||
"integrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==",
|
"integrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==",
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"define-data-property": "^1.1.4",
|
"define-data-property": "^1.1.4",
|
||||||
"es-errors": "^1.3.0",
|
"es-errors": "^1.3.0",
|
||||||
@@ -10376,6 +10695,11 @@
|
|||||||
"sha.js": "bin.js"
|
"sha.js": "bin.js"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/shallowequal": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/shallowequal/-/shallowequal-1.1.0.tgz",
|
||||||
|
"integrity": "sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ=="
|
||||||
|
},
|
||||||
"node_modules/shebang-command": {
|
"node_modules/shebang-command": {
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
|
||||||
@@ -10401,7 +10725,6 @@
|
|||||||
"version": "1.0.6",
|
"version": "1.0.6",
|
||||||
"resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz",
|
"resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz",
|
||||||
"integrity": "sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==",
|
"integrity": "sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==",
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"call-bind": "^1.0.7",
|
"call-bind": "^1.0.7",
|
||||||
"es-errors": "^1.3.0",
|
"es-errors": "^1.3.0",
|
||||||
@@ -10527,6 +10850,17 @@
|
|||||||
"resolved": "https://registry.npmjs.org/state-local/-/state-local-1.0.7.tgz",
|
"resolved": "https://registry.npmjs.org/state-local/-/state-local-1.0.7.tgz",
|
||||||
"integrity": "sha512-HTEHMNieakEnoe33shBYcZ7NX83ACUjCu8c40iOGEZsngj9zRnkqS9j1pqQPXwobB0ZcVTk27REb7COQ0UR59w=="
|
"integrity": "sha512-HTEHMNieakEnoe33shBYcZ7NX83ACUjCu8c40iOGEZsngj9zRnkqS9j1pqQPXwobB0ZcVTk27REb7COQ0UR59w=="
|
||||||
},
|
},
|
||||||
|
"node_modules/stop-iteration-iterator": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.0.0.tgz",
|
||||||
|
"integrity": "sha512-iCGQj+0l0HOdZ2AEeBADlsRC+vsnDsZsbdSiH1yNSjcfKM7fdpCMfqAL/dwF5BLiw/XhRft/Wax6zQbhq2BcjQ==",
|
||||||
|
"dependencies": {
|
||||||
|
"internal-slot": "^1.0.4"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 0.4"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/stream-browserify": {
|
"node_modules/stream-browserify": {
|
||||||
"version": "3.0.0",
|
"version": "3.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-3.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-3.0.0.tgz",
|
||||||
@@ -11214,6 +11548,43 @@
|
|||||||
"resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
|
||||||
"integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="
|
"integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="
|
||||||
},
|
},
|
||||||
|
"node_modules/validate.io-array": {
|
||||||
|
"version": "1.0.6",
|
||||||
|
"resolved": "https://registry.npmjs.org/validate.io-array/-/validate.io-array-1.0.6.tgz",
|
||||||
|
"integrity": "sha512-DeOy7CnPEziggrOO5CZhVKJw6S3Yi7e9e65R1Nl/RTN1vTQKnzjfvks0/8kQ40FP/dsjRAOd4hxmJ7uLa6vxkg==",
|
||||||
|
"peer": true
|
||||||
|
},
|
||||||
|
"node_modules/validate.io-function": {
|
||||||
|
"version": "1.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/validate.io-function/-/validate.io-function-1.0.2.tgz",
|
||||||
|
"integrity": "sha512-LlFybRJEriSuBnUhQyG5bwglhh50EpTL2ul23MPIuR1odjO7XaMLFV8vHGwp7AZciFxtYOeiSCT5st+XSPONiQ==",
|
||||||
|
"peer": true
|
||||||
|
},
|
||||||
|
"node_modules/validate.io-integer": {
|
||||||
|
"version": "1.0.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/validate.io-integer/-/validate.io-integer-1.0.5.tgz",
|
||||||
|
"integrity": "sha512-22izsYSLojN/P6bppBqhgUDjCkr5RY2jd+N2a3DCAUey8ydvrZ/OkGvFPR7qfOpwR2LC5p4Ngzxz36g5Vgr/hQ==",
|
||||||
|
"peer": true,
|
||||||
|
"dependencies": {
|
||||||
|
"validate.io-number": "^1.0.3"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/validate.io-integer-array": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/validate.io-integer-array/-/validate.io-integer-array-1.0.0.tgz",
|
||||||
|
"integrity": "sha512-mTrMk/1ytQHtCY0oNO3dztafHYyGU88KL+jRxWuzfOmQb+4qqnWmI+gykvGp8usKZOM0H7keJHEbRaFiYA0VrA==",
|
||||||
|
"peer": true,
|
||||||
|
"dependencies": {
|
||||||
|
"validate.io-array": "^1.0.3",
|
||||||
|
"validate.io-integer": "^1.0.4"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/validate.io-number": {
|
||||||
|
"version": "1.0.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/validate.io-number/-/validate.io-number-1.0.3.tgz",
|
||||||
|
"integrity": "sha512-kRAyotcbNaSYoDnXvb4MHg/0a1egJdLwS6oJ38TJY7aw9n93Fl/3blIXdyYvPOp55CNxywooG/3BcrwNrBpcSg==",
|
||||||
|
"peer": true
|
||||||
|
},
|
||||||
"node_modules/vinyl": {
|
"node_modules/vinyl": {
|
||||||
"version": "2.2.1",
|
"version": "2.2.1",
|
||||||
"resolved": "https://registry.npmjs.org/vinyl/-/vinyl-2.2.1.tgz",
|
"resolved": "https://registry.npmjs.org/vinyl/-/vinyl-2.2.1.tgz",
|
||||||
@@ -11445,7 +11816,6 @@
|
|||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz",
|
||||||
"integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==",
|
"integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==",
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"is-bigint": "^1.0.1",
|
"is-bigint": "^1.0.1",
|
||||||
"is-boolean-object": "^1.1.0",
|
"is-boolean-object": "^1.1.0",
|
||||||
@@ -11487,7 +11857,6 @@
|
|||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.2.tgz",
|
||||||
"integrity": "sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==",
|
"integrity": "sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==",
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"is-map": "^2.0.3",
|
"is-map": "^2.0.3",
|
||||||
"is-set": "^2.0.3",
|
"is-set": "^2.0.3",
|
||||||
@@ -11505,7 +11874,6 @@
|
|||||||
"version": "1.1.15",
|
"version": "1.1.15",
|
||||||
"resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.15.tgz",
|
"resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.15.tgz",
|
||||||
"integrity": "sha512-oV0jmFtUky6CXfkqehVvBP/LSWJ2sy4vWMioiENyJLePrBO/yKyV9OyJySfAKosh+RYkIl5zJCNZ8/4JncrpdA==",
|
"integrity": "sha512-oV0jmFtUky6CXfkqehVvBP/LSWJ2sy4vWMioiENyJLePrBO/yKyV9OyJySfAKosh+RYkIl5zJCNZ8/4JncrpdA==",
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"available-typed-arrays": "^1.0.7",
|
"available-typed-arrays": "^1.0.7",
|
||||||
"call-bind": "^1.0.7",
|
"call-bind": "^1.0.7",
|
||||||
|
|||||||
+6
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "isp-admin-ui",
|
"name": "isp-admin-ui",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.14.2",
|
"version": "0.16.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "vite",
|
"start": "vite",
|
||||||
@@ -18,11 +18,15 @@
|
|||||||
"@codemirror/lang-json": "^6.0.1",
|
"@codemirror/lang-json": "^6.0.1",
|
||||||
"@monaco-editor/react": "^4.6.0",
|
"@monaco-editor/react": "^4.6.0",
|
||||||
"@reduxjs/toolkit": "^2.2.3",
|
"@reduxjs/toolkit": "^2.2.3",
|
||||||
|
"@rjsf/antd": "^5.21.2",
|
||||||
|
"@rjsf/core": "^5.21.2",
|
||||||
|
"@rjsf/validator-ajv8": "^5.21.2",
|
||||||
"@uiw/react-codemirror": "^4.21.25",
|
"@uiw/react-codemirror": "^4.21.25",
|
||||||
"axios": "^1.6.8",
|
"axios": "^1.6.8",
|
||||||
"clipboard": "^2.0.11",
|
"clipboard": "^2.0.11",
|
||||||
"compare-versions": "^6.1.0",
|
"compare-versions": "^6.1.0",
|
||||||
"dayjs": "^1.11.10",
|
"dayjs": "^1.11.10",
|
||||||
|
"deep-equal": "^2.2.3",
|
||||||
"isp-ui-kit": "github:txix-open/isp-ui-kit",
|
"isp-ui-kit": "github:txix-open/isp-ui-kit",
|
||||||
"json-schema-view-js": "^2.0.1",
|
"json-schema-view-js": "^2.0.1",
|
||||||
"lodash.clonedeep": "^4.5.0",
|
"lodash.clonedeep": "^4.5.0",
|
||||||
@@ -39,6 +43,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
|
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
|
||||||
|
"@types/deep-equal": "^1.0.4",
|
||||||
"@types/lodash.clonedeep": "^4.5.9",
|
"@types/lodash.clonedeep": "^4.5.9",
|
||||||
"@types/node": "^20.12.4",
|
"@types/node": "^20.12.4",
|
||||||
"@types/react": "^18.2.74",
|
"@types/react": "^18.2.74",
|
||||||
|
|||||||
@@ -1,223 +1,227 @@
|
|||||||
import { CheckOutlined, CloseOutlined, EditOutlined } from '@ant-design/icons'
|
import { CheckOutlined, CloseOutlined, EditOutlined } from '@ant-design/icons'
|
||||||
import { Button, message, Table, Tag, Tooltip } from 'antd'
|
import { Button, message, Table, Tag, Tooltip } from 'antd'
|
||||||
|
import { ColumnsType } from 'antd/es/table'
|
||||||
|
import dayjs from 'dayjs'
|
||||||
import { FC, useEffect, useRef, useState } from 'react'
|
import { FC, useEffect, useRef, useState } from 'react'
|
||||||
|
import { useNavigate, useParams } from 'react-router-dom'
|
||||||
|
|
||||||
|
import { dateFormats } from '@constants/date.ts'
|
||||||
|
|
||||||
import ActiveTableActionButtons from '@widgets/ActiveTableActionButtons'
|
import ActiveTableActionButtons from '@widgets/ActiveTableActionButtons'
|
||||||
|
|
||||||
import {
|
import { ActiveConfigurationsTablePropsType } from '@components/ActiveConfigurationsTable/active-configurations-table.type.ts'
|
||||||
ActiveConfigurationsTablePropsType
|
import CanEdit from '@components/CanEdit'
|
||||||
} from '@components/ActiveConfigurationsTable/active-configurations-table.type.ts'
|
|
||||||
|
import { ConfigType } from '@pages/ModulesPage/module.type.ts'
|
||||||
|
|
||||||
import configApi from '@services/configService.ts'
|
import configApi from '@services/configService.ts'
|
||||||
|
|
||||||
import { ConfigType } from '@pages/ModulesPage/module.type.ts'
|
import { routePaths } from '@routes/routePaths.ts'
|
||||||
import { ColumnsType } from 'antd/es/table'
|
|
||||||
|
|
||||||
import './active-configurations-table.scss'
|
import './active-configurations-table.scss'
|
||||||
import dayjs from 'dayjs'
|
|
||||||
import CanEdit from '@components/CanEdit'
|
|
||||||
import { dateFormats } from '@constants/date.ts'
|
|
||||||
import { routePaths } from '@routes/routePaths.ts'
|
|
||||||
import { useNavigate, useParams } from 'react-router-dom'
|
|
||||||
|
|
||||||
|
const ActiveConfigurationsTable: FC<ActiveConfigurationsTablePropsType> = ({
|
||||||
|
isActiveTable = false,
|
||||||
|
handleShowConfig,
|
||||||
|
handleShowCompareModal,
|
||||||
|
data,
|
||||||
|
currentModule = {}
|
||||||
|
}) => {
|
||||||
|
const [editKeyConfig, setEditKeyConfig] = useState<string>('')
|
||||||
|
const [tempEditValues, setTempEditValues] = useState<any>()
|
||||||
|
const inputRefs = useRef<Record<string, HTMLInputElement | null>>({})
|
||||||
|
const [createUpdateConfig] = configApi.useCreateUpdateConfigMutation()
|
||||||
|
const [markConfigAsActive] = configApi.useMarkConfigAsActiveMutation()
|
||||||
|
const [deleteConfig] = configApi.useDeleteConfigMutation()
|
||||||
|
const navigate = useNavigate()
|
||||||
|
const { id: moduleId } = useParams()
|
||||||
|
|
||||||
const ActiveConfigurationsTable: FC<ActiveConfigurationsTablePropsType> =
|
useEffect(() => {
|
||||||
({
|
if (inputRefs.current[editKeyConfig]) {
|
||||||
isActiveTable = false,
|
inputRefs.current[editKeyConfig]?.focus()
|
||||||
handleShowConfig,
|
|
||||||
handleShowCompareModal,
|
|
||||||
data,
|
|
||||||
currentModule = {}
|
|
||||||
}) => {
|
|
||||||
const [editKeyConfig, setEditKeyConfig] = useState<string>('')
|
|
||||||
const [tempEditValues, setTempEditValues] = useState<any>()
|
|
||||||
const inputRefs = useRef<Record<string, HTMLInputElement | null>>({})
|
|
||||||
const [createUpdateConfig] = configApi.useCreateUpdateConfigMutation()
|
|
||||||
const [markConfigAsActive] = configApi.useMarkConfigAsActiveMutation()
|
|
||||||
const [deleteConfig] = configApi.useDeleteConfigMutation()
|
|
||||||
const navigate = useNavigate()
|
|
||||||
const {id: moduleId} = useParams()
|
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
if (inputRefs.current[editKeyConfig]) {
|
|
||||||
inputRefs.current[editKeyConfig]?.focus()
|
|
||||||
}
|
|
||||||
}, [editKeyConfig])
|
|
||||||
const handleEditStart = (record: ConfigType) => {
|
|
||||||
setEditKeyConfig(record.id)
|
|
||||||
setTempEditValues({
|
|
||||||
...tempEditValues,
|
|
||||||
[record.id]: record.name
|
|
||||||
} as ConfigType)
|
|
||||||
}
|
}
|
||||||
|
}, [editKeyConfig])
|
||||||
|
const handleEditStart = (record: ConfigType) => {
|
||||||
|
setEditKeyConfig(record.id)
|
||||||
|
setTempEditValues({
|
||||||
|
...tempEditValues,
|
||||||
|
[record.id]: record.name
|
||||||
|
} as ConfigType)
|
||||||
|
}
|
||||||
|
|
||||||
const handleCancelEdit = (record: ConfigType) => {
|
const handleCancelEdit = (record: ConfigType) => {
|
||||||
setEditKeyConfig('')
|
setEditKeyConfig('')
|
||||||
setTempEditValues({
|
setTempEditValues({
|
||||||
...tempEditValues,
|
...tempEditValues,
|
||||||
[record.id]: record.name
|
[record.id]: record.name
|
||||||
} as ConfigType)
|
} as ConfigType)
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleSaveEdit = (record: ConfigType) => {
|
const handleSaveEdit = (record: ConfigType) => {
|
||||||
const sendData = { ...record, name: tempEditValues[record.id] }
|
const sendData = { ...record, name: tempEditValues[record.id] }
|
||||||
createUpdateConfig(sendData)
|
createUpdateConfig(sendData)
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
message.success('Элемент успешно сохранен')
|
message.success('Элемент успешно сохранен')
|
||||||
setEditKeyConfig('')
|
setEditKeyConfig('')
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
message.error('Не удалось сохранить элемент')
|
message.error('Не удалось сохранить элемент')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
const handleDeleteConfig = (record: ConfigType) => {
|
const handleDeleteConfig = (record: ConfigType) => {
|
||||||
deleteConfig(record.id)
|
deleteConfig(record.id)
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
message.success('Элемент успешно удален')
|
message.success('Элемент успешно удален')
|
||||||
setEditKeyConfig('')
|
setEditKeyConfig('')
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
message.error('Не удалось удалить элемент')
|
message.error('Не удалось удалить элемент')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleMarkConfigActive = (record: ConfigType) => {
|
const handleMarkConfigActive = (record: ConfigType) => {
|
||||||
markConfigAsActive(record.id)
|
markConfigAsActive(record.id)
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
message.success('Элемент успешно обновлен')
|
message.success('Элемент успешно обновлен')
|
||||||
setEditKeyConfig('')
|
setEditKeyConfig('')
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
message.error('Не удалось обновить элемент')
|
message.error('Не удалось обновить элемент')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
const renderNameField = (value: string, record: ConfigType) => {
|
const renderNameField = (value: string, record: ConfigType) => {
|
||||||
const canEdit = editKeyConfig === record.id
|
const canEdit = editKeyConfig === record.id
|
||||||
const inputValue = canEdit ? tempEditValues[record.id] : value
|
const inputValue = canEdit ? tempEditValues[record.id] : value
|
||||||
|
|
||||||
return (
|
|
||||||
<div className="active-configurations-table__table__name-field">
|
|
||||||
<input
|
|
||||||
ref={(inputRef) => (inputRefs.current[record.id] = inputRef)}
|
|
||||||
onChange={(event) => {
|
|
||||||
const { value } = event.target
|
|
||||||
setTempEditValues({ ...tempEditValues, [record.id]: value })
|
|
||||||
}}
|
|
||||||
disabled={!canEdit}
|
|
||||||
value={inputValue}
|
|
||||||
/>
|
|
||||||
{canEdit ? (
|
|
||||||
<div className="active-configurations-table__table__name-field__actions">
|
|
||||||
<Tooltip title="Сохранить">
|
|
||||||
<Button
|
|
||||||
type="primary"
|
|
||||||
onClick={() => handleSaveEdit(record)}
|
|
||||||
icon={<CheckOutlined />}
|
|
||||||
/>
|
|
||||||
</Tooltip>
|
|
||||||
<Tooltip title="Отменить">
|
|
||||||
<Button
|
|
||||||
onClick={() => handleCancelEdit(record)}
|
|
||||||
icon={<CloseOutlined />}
|
|
||||||
/>
|
|
||||||
</Tooltip>
|
|
||||||
</div>
|
|
||||||
) : (
|
|
||||||
<CanEdit>
|
|
||||||
<Tooltip title="Редактировать название">
|
|
||||||
<Button
|
|
||||||
onClick={() => handleEditStart(record)}
|
|
||||||
icon={<EditOutlined />}
|
|
||||||
/>
|
|
||||||
</Tooltip>
|
|
||||||
</CanEdit>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
const columns: ColumnsType<ConfigType> = [
|
|
||||||
{
|
|
||||||
title: 'Наименование',
|
|
||||||
dataIndex: 'name',
|
|
||||||
key: 'name',
|
|
||||||
render: renderNameField,
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: 'Версия',
|
|
||||||
dataIndex: 'version',
|
|
||||||
key: 'version',
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: 'Статус',
|
|
||||||
dataIndex: 'valid',
|
|
||||||
key: 'version',
|
|
||||||
align: 'center',
|
|
||||||
render: (value: boolean) => {
|
|
||||||
if (value) {
|
|
||||||
return <Tag color="#4fc14f">Корректная</Tag>
|
|
||||||
}
|
|
||||||
return <Tag color="red">Некорректная</Tag>
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: 'Дата обновления',
|
|
||||||
dataIndex: 'updatedAt',
|
|
||||||
key: 'updatedAt',
|
|
||||||
align: 'center',
|
|
||||||
render: (value: string) => {
|
|
||||||
return dayjs(value).format(dateFormats.fullFormat)
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: 'Действия',
|
|
||||||
dataIndex: 'actions',
|
|
||||||
key: 'actions',
|
|
||||||
align: 'center',
|
|
||||||
render: (_: unknown, record: ConfigType) => (
|
|
||||||
<ActiveTableActionButtons
|
|
||||||
isActive={isActiveTable}
|
|
||||||
handleShowConfig={handleShowConfig}
|
|
||||||
handleShowCompareModal={handleShowCompareModal}
|
|
||||||
handleDeleteConfig={handleDeleteConfig}
|
|
||||||
handleMarkConfigActive={handleMarkConfigActive}
|
|
||||||
record={record}
|
|
||||||
/>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
]
|
|
||||||
const className = `active-configurations-table__table ${isActiveTable ? 'active-config' : ''}`
|
|
||||||
return (
|
return (
|
||||||
<div className="active-configurations-table">
|
<div className="active-configurations-table__table__name-field">
|
||||||
<div className="active-configurations-table__buttons">
|
<input
|
||||||
<h2 className="active-configurations-table__title">
|
ref={(inputRef) => (inputRefs.current[record.id] = inputRef)}
|
||||||
{isActiveTable ? 'Активная' : 'Остальные'}
|
onChange={(event) => {
|
||||||
</h2>
|
const { value } = event.target
|
||||||
{!isActiveTable && <CanEdit>
|
setTempEditValues({ ...tempEditValues, [record.id]: value })
|
||||||
<Button
|
}}
|
||||||
className="configurations__buttons__new-config-brn"
|
disabled={!canEdit}
|
||||||
onClick={() => navigate(`/${moduleId}/${routePaths.configEditor}/new`, {state: currentModule})}
|
value={inputValue}
|
||||||
>
|
|
||||||
Создать
|
|
||||||
</Button>
|
|
||||||
</CanEdit>}
|
|
||||||
</div>
|
|
||||||
<Table
|
|
||||||
rowHoverable={false}
|
|
||||||
className={className}
|
|
||||||
rowKey={(record) => record.id}
|
|
||||||
pagination={false}
|
|
||||||
columns={columns}
|
|
||||||
dataSource={data}
|
|
||||||
/>
|
/>
|
||||||
|
{canEdit ? (
|
||||||
|
<div className="active-configurations-table__table__name-field__actions">
|
||||||
|
<Tooltip title="Сохранить">
|
||||||
|
<Button
|
||||||
|
type="primary"
|
||||||
|
onClick={() => handleSaveEdit(record)}
|
||||||
|
icon={<CheckOutlined />}
|
||||||
|
/>
|
||||||
|
</Tooltip>
|
||||||
|
<Tooltip title="Отменить">
|
||||||
|
<Button
|
||||||
|
onClick={() => handleCancelEdit(record)}
|
||||||
|
icon={<CloseOutlined />}
|
||||||
|
/>
|
||||||
|
</Tooltip>
|
||||||
|
</div>
|
||||||
|
) : (
|
||||||
|
<CanEdit>
|
||||||
|
<Tooltip title="Редактировать название">
|
||||||
|
<Button
|
||||||
|
onClick={() => handleEditStart(record)}
|
||||||
|
icon={<EditOutlined />}
|
||||||
|
/>
|
||||||
|
</Tooltip>
|
||||||
|
</CanEdit>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const columns: ColumnsType<ConfigType> = [
|
||||||
|
{
|
||||||
|
title: 'Наименование',
|
||||||
|
dataIndex: 'name',
|
||||||
|
key: 'name',
|
||||||
|
render: renderNameField,
|
||||||
|
align: 'center'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Версия',
|
||||||
|
dataIndex: 'version',
|
||||||
|
key: 'version',
|
||||||
|
align: 'center'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Статус',
|
||||||
|
dataIndex: 'valid',
|
||||||
|
key: 'version',
|
||||||
|
align: 'center',
|
||||||
|
render: (value: boolean) => {
|
||||||
|
if (value) {
|
||||||
|
return <Tag color="success">Корректная</Tag>
|
||||||
|
}
|
||||||
|
return <Tag color="error">Некорректная</Tag>
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Дата обновления',
|
||||||
|
dataIndex: 'updatedAt',
|
||||||
|
key: 'updatedAt',
|
||||||
|
align: 'center',
|
||||||
|
render: (value: string) => {
|
||||||
|
return dayjs(value).format(dateFormats.fullFormat)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Действия',
|
||||||
|
dataIndex: 'actions',
|
||||||
|
key: 'actions',
|
||||||
|
align: 'center',
|
||||||
|
render: (_: unknown, record: ConfigType) => (
|
||||||
|
<ActiveTableActionButtons
|
||||||
|
isActive={isActiveTable}
|
||||||
|
handleShowConfig={handleShowConfig}
|
||||||
|
handleShowCompareModal={handleShowCompareModal}
|
||||||
|
handleDeleteConfig={handleDeleteConfig}
|
||||||
|
handleMarkConfigActive={handleMarkConfigActive}
|
||||||
|
record={record}
|
||||||
|
/>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
]
|
||||||
|
const className = `active-configurations-table__table ${isActiveTable ? 'active-config' : ''}`
|
||||||
|
return (
|
||||||
|
<div className="active-configurations-table">
|
||||||
|
<div className="active-configurations-table__buttons">
|
||||||
|
<h2 className="active-configurations-table__title">
|
||||||
|
{isActiveTable ? 'Активная' : 'Остальные'}
|
||||||
|
</h2>
|
||||||
|
{!isActiveTable && (
|
||||||
|
<CanEdit>
|
||||||
|
<Button
|
||||||
|
className="configurations__buttons__new-config-brn"
|
||||||
|
onClick={() =>
|
||||||
|
navigate(`/${moduleId}/${routePaths.configEditor}/new`, {
|
||||||
|
state: currentModule
|
||||||
|
})
|
||||||
|
}
|
||||||
|
>
|
||||||
|
Создать
|
||||||
|
</Button>
|
||||||
|
</CanEdit>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
<Table
|
||||||
|
rowHoverable={false}
|
||||||
|
className={className}
|
||||||
|
rowKey={(record) => record.id}
|
||||||
|
pagination={false}
|
||||||
|
columns={columns}
|
||||||
|
dataSource={data}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
export default ActiveConfigurationsTable
|
export default ActiveConfigurationsTable
|
||||||
@@ -8,6 +8,7 @@ import { darkTheme, lightTheme } from '@constants/theme.ts'
|
|||||||
import { Context } from '@stores/index.tsx'
|
import { Context } from '@stores/index.tsx'
|
||||||
|
|
||||||
import Routers from '@routes/Routers'
|
import Routers from '@routes/Routers'
|
||||||
|
import { routePaths } from '@routes/routePaths.ts'
|
||||||
|
|
||||||
import './app.scss'
|
import './app.scss'
|
||||||
|
|
||||||
@@ -23,7 +24,11 @@ const App = () => {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const prevRoute = sessionStorage.getItem('prevRoute')
|
const prevRoute = sessionStorage.getItem('prevRoute')
|
||||||
if (location.pathname !== prevRoute) {
|
if (
|
||||||
|
location.pathname !== routePaths.error &&
|
||||||
|
location.pathname !== routePaths.login &&
|
||||||
|
location.pathname !== prevRoute
|
||||||
|
) {
|
||||||
sessionStorage.setItem('prevRoute', location.pathname)
|
sessionStorage.setItem('prevRoute', location.pathname)
|
||||||
}
|
}
|
||||||
}, [location])
|
}, [location])
|
||||||
|
|||||||
@@ -2,10 +2,7 @@ import { ModalPropsType } from '@widgets/Modal/modal.type.ts'
|
|||||||
|
|
||||||
import { ApplicationsGroupType } from '@pages/ApplicationsPage/applications.type.ts'
|
import { ApplicationsGroupType } from '@pages/ApplicationsPage/applications.type.ts'
|
||||||
|
|
||||||
export type AppGroupModalType = Omit<
|
export type AppGroupModalType = Omit<ModalPropsType, 'onOk' | 'children'> & {
|
||||||
ModalPropsType,
|
|
||||||
'onOk' | 'children'
|
|
||||||
> & {
|
|
||||||
appGroup?: ApplicationsGroupType
|
appGroup?: ApplicationsGroupType
|
||||||
onOk: (data: ApplicationsGroupType) => void
|
onOk: (data: ApplicationsGroupType) => void
|
||||||
}
|
}
|
||||||
@@ -10,7 +10,6 @@ import { AppGroupModalType } from '@components/AppGroupModal/app-group-modal.typ
|
|||||||
|
|
||||||
import { ApplicationsGroupType } from '@pages/ApplicationsPage/applications.type.ts'
|
import { ApplicationsGroupType } from '@pages/ApplicationsPage/applications.type.ts'
|
||||||
|
|
||||||
|
|
||||||
const { FormInput, FormTextArea } = FormComponents
|
const { FormInput, FormTextArea } = FormComponents
|
||||||
|
|
||||||
const AppGroupModal: FC<AppGroupModalType> = ({
|
const AppGroupModal: FC<AppGroupModalType> = ({
|
||||||
@@ -18,8 +17,7 @@ const AppGroupModal: FC<AppGroupModalType> = ({
|
|||||||
onClose,
|
onClose,
|
||||||
onOk,
|
onOk,
|
||||||
open,
|
open,
|
||||||
appGroup,
|
appGroup
|
||||||
|
|
||||||
}) => {
|
}) => {
|
||||||
const { handleSubmit, control, reset } = useForm<ApplicationsGroupType>({
|
const { handleSubmit, control, reset } = useForm<ApplicationsGroupType>({
|
||||||
mode: 'onChange',
|
mode: 'onChange',
|
||||||
|
|||||||
@@ -10,10 +10,9 @@ import { AppModalType } from '@components/AppModal/app-group-modal.type.ts'
|
|||||||
|
|
||||||
import { ApplicationAppType } from '@pages/ApplicationsPage/applications.type.ts'
|
import { ApplicationAppType } from '@pages/ApplicationsPage/applications.type.ts'
|
||||||
|
|
||||||
|
|
||||||
const { FormInput, FormTextArea } = FormComponents
|
const { FormInput, FormTextArea } = FormComponents
|
||||||
|
|
||||||
const AppModal: FC<AppModalType> = ({ title,onOk, onClose, open, app }) => {
|
const AppModal: FC<AppModalType> = ({ title, onOk, onClose, open, app }) => {
|
||||||
const { handleSubmit, control, reset } = useForm<ApplicationAppType>({
|
const { handleSubmit, control, reset } = useForm<ApplicationAppType>({
|
||||||
mode: 'onChange',
|
mode: 'onChange',
|
||||||
defaultValues: app
|
defaultValues: app
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ import { routePaths } from '@routes/routePaths.ts'
|
|||||||
|
|
||||||
import './applications-content.scss'
|
import './applications-content.scss'
|
||||||
|
|
||||||
|
|
||||||
const { EmptyData, Column } = Layout
|
const { EmptyData, Column } = Layout
|
||||||
|
|
||||||
interface ApplicationsContentPropTypes {
|
interface ApplicationsContentPropTypes {
|
||||||
@@ -134,7 +133,9 @@ const ApplicationsContent: FC<ApplicationsContentPropTypes> = ({
|
|||||||
.unwrap()
|
.unwrap()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
message.success('Элемент удален')
|
message.success('Элемент удален')
|
||||||
navigate(`${routePaths.applicationsGroup}/${selectedItemId}/${routePaths.application}`)
|
navigate(
|
||||||
|
`${routePaths.applicationsGroup}/${selectedItemId}/${routePaths.application}`
|
||||||
|
)
|
||||||
})
|
})
|
||||||
.catch(() => message.error('Ошибка удаления элемента'))
|
.catch(() => message.error('Ошибка удаления элемента'))
|
||||||
|
|
||||||
@@ -142,7 +143,10 @@ const ApplicationsContent: FC<ApplicationsContentPropTypes> = ({
|
|||||||
return (
|
return (
|
||||||
<List.Item>
|
<List.Item>
|
||||||
<Tooltip mouseEnterDelay={1.3} title={item.name}>
|
<Tooltip mouseEnterDelay={1.3} title={item.name}>
|
||||||
<List.Item.Meta title={item.name} description={<span>id: {item.id}</span>}/>
|
<List.Item.Meta
|
||||||
|
title={item.name}
|
||||||
|
description={<span>id: {item.id}</span>}
|
||||||
|
/>
|
||||||
<div
|
<div
|
||||||
className="link-btn"
|
className="link-btn"
|
||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
@@ -171,6 +175,7 @@ const ApplicationsContent: FC<ApplicationsContentPropTypes> = ({
|
|||||||
<section className="applications-content">
|
<section className="applications-content">
|
||||||
<Column
|
<Column
|
||||||
title="Приложения"
|
title="Приложения"
|
||||||
|
searchPlaceholder="Введите имя или id"
|
||||||
onUpdateItem={updateApplicationModal}
|
onUpdateItem={updateApplicationModal}
|
||||||
showUpdateBtn={true}
|
showUpdateBtn={true}
|
||||||
onAddItem={addApplicationModal}
|
onAddItem={addApplicationModal}
|
||||||
|
|||||||
@@ -1,24 +1,28 @@
|
|||||||
|
import { message } from 'antd'
|
||||||
import { FormComponents } from 'isp-ui-kit'
|
import { FormComponents } from 'isp-ui-kit'
|
||||||
import { FC, useEffect, useState } from 'react'
|
import { FC, useEffect, useState } from 'react'
|
||||||
import { useForm } from 'react-hook-form'
|
import { useForm } from 'react-hook-form'
|
||||||
|
|
||||||
|
import { apiPaths } from '@constants/api/apiPaths.ts'
|
||||||
|
|
||||||
import Modal from '@widgets/Modal'
|
import Modal from '@widgets/Modal'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
ChangePasswordModalProps,
|
ChangePasswordModalProps,
|
||||||
ChangePasswordModalType
|
ChangePasswordModalType
|
||||||
} from '@components/ChangePasswordModal/change-password-modal.type.ts'
|
} from '@components/ChangePasswordModal/change-password-modal.type.ts'
|
||||||
import { apiService } from '@services/apiService.ts'
|
|
||||||
import { ChangeProfilePassword } from '@pages/ProfilePage/profile-page.type.ts'
|
import { ChangeProfilePassword } from '@pages/ProfilePage/profile-page.type.ts'
|
||||||
import { apiPaths } from '@constants/api/apiPaths.ts'
|
|
||||||
import { message } from 'antd'
|
|
||||||
import useLogout from '@hooks/useLogout.tsx'
|
import useLogout from '@hooks/useLogout.tsx'
|
||||||
|
|
||||||
|
import { apiService } from '@services/apiService.ts'
|
||||||
|
|
||||||
const { FormInputPassword } = FormComponents
|
const { FormInputPassword } = FormComponents
|
||||||
const ChangePasswordModal: FC<ChangePasswordModalProps> = ({
|
const ChangePasswordModal: FC<ChangePasswordModalProps> = ({
|
||||||
open,
|
open,
|
||||||
onClose
|
onClose
|
||||||
}) => {
|
}) => {
|
||||||
const {
|
const {
|
||||||
control,
|
control,
|
||||||
handleSubmit,
|
handleSubmit,
|
||||||
@@ -36,10 +40,10 @@ const ChangePasswordModal: FC<ChangePasswordModalProps> = ({
|
|||||||
const onSubmit = async (formValue: ChangePasswordModalType) => {
|
const onSubmit = async (formValue: ChangePasswordModalType) => {
|
||||||
setLoading(true)
|
setLoading(true)
|
||||||
try {
|
try {
|
||||||
await apiService.post<ChangeProfilePassword>(
|
await apiService.post<ChangeProfilePassword>(apiPaths.changePassword, {
|
||||||
apiPaths.changePassword,
|
oldPassword: formValue.oldPassword,
|
||||||
{ oldPassword: formValue.oldPassword, newPassword: formValue.newPassword }
|
newPassword: formValue.newPassword
|
||||||
)
|
})
|
||||||
await logoutUser()
|
await logoutUser()
|
||||||
message.success('Пароль успешно изменен')
|
message.success('Пароль успешно изменен')
|
||||||
clearErrors('oldPassword')
|
clearErrors('oldPassword')
|
||||||
@@ -115,4 +119,3 @@ const ChangePasswordModal: FC<ChangePasswordModalProps> = ({
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
export default ChangePasswordModal
|
export default ChangePasswordModal
|
||||||
|
|
||||||
@@ -1,9 +1,12 @@
|
|||||||
import { EditorState, EditorView } from '@uiw/react-codemirror'
|
import { EditorState, EditorView } from '@uiw/react-codemirror'
|
||||||
import { Button, Spin, Table } from 'antd'
|
import { Button, Spin, Table } from 'antd'
|
||||||
import { ColumnsType } from 'antd/es/table'
|
import { ColumnsType } from 'antd/es/table'
|
||||||
|
import dayjs from 'dayjs'
|
||||||
import { FC, memo, useContext, useState } from 'react'
|
import { FC, memo, useContext, useState } from 'react'
|
||||||
import CodeMirrorMerge from 'react-codemirror-merge'
|
import CodeMirrorMerge from 'react-codemirror-merge'
|
||||||
|
|
||||||
|
import { dateFormats } from '@constants/date.ts'
|
||||||
|
|
||||||
import Modal from '@widgets/Modal'
|
import Modal from '@widgets/Modal'
|
||||||
|
|
||||||
import { CompareVersionModalPropsType } from '@components/CompareVersionModal/compare-version-modal.type'
|
import { CompareVersionModalPropsType } from '@components/CompareVersionModal/compare-version-modal.type'
|
||||||
@@ -15,23 +18,21 @@ import { useAppSelector } from '@hooks/redux.ts'
|
|||||||
import configServiceApi from '@services/configService.ts'
|
import configServiceApi from '@services/configService.ts'
|
||||||
import userServiceApi from '@services/userService.ts'
|
import userServiceApi from '@services/userService.ts'
|
||||||
|
|
||||||
|
import { Context } from '@stores/index.tsx'
|
||||||
|
|
||||||
import { VersionType } from '@type/version.type'
|
import { VersionType } from '@type/version.type'
|
||||||
|
|
||||||
import './compare-version-modal.scss'
|
import './compare-version-modal.scss'
|
||||||
import dayjs from 'dayjs'
|
|
||||||
import { dateFormats } from '@constants/date.ts'
|
|
||||||
import { Context } from '@stores/index.tsx'
|
|
||||||
|
|
||||||
|
|
||||||
const Original = CodeMirrorMerge.Original
|
const Original = CodeMirrorMerge.Original
|
||||||
const Modified = CodeMirrorMerge.Modified
|
const Modified = CodeMirrorMerge.Modified
|
||||||
|
|
||||||
const CompareVersionModal: FC<CompareVersionModalPropsType> = ({
|
const CompareVersionModal: FC<CompareVersionModalPropsType> = ({
|
||||||
open,
|
open,
|
||||||
onClose,
|
onClose,
|
||||||
config,
|
config,
|
||||||
currentConfigId
|
currentConfigId
|
||||||
}) => {
|
}) => {
|
||||||
const [selectedItem, setSelectedItem] = useState<VersionType>()
|
const [selectedItem, setSelectedItem] = useState<VersionType>()
|
||||||
const { data: versions = [], isLoading: isVersionLoading } =
|
const { data: versions = [], isLoading: isVersionLoading } =
|
||||||
configServiceApi.useGetAllVersionQuery(currentConfigId)
|
configServiceApi.useGetAllVersionQuery(currentConfigId)
|
||||||
@@ -73,13 +74,21 @@ const CompareVersionModal: FC<CompareVersionModalPropsType> = ({
|
|||||||
]
|
]
|
||||||
return (
|
return (
|
||||||
<div className="compare-version-modal">
|
<div className="compare-version-modal">
|
||||||
<Modal title="Выберите версию для сравнения" open={open} onClose={onClose}>
|
<Modal
|
||||||
|
title="Выберите версию для сравнения"
|
||||||
|
open={open}
|
||||||
|
onClose={onClose}
|
||||||
|
>
|
||||||
{selectedItem ? (
|
{selectedItem ? (
|
||||||
<div className="compare-version-modal__content">
|
<div className="compare-version-modal__content">
|
||||||
<Button onClick={() => setSelectedItem(undefined)}>Назад</Button>
|
<Button onClick={() => setSelectedItem(undefined)}>Назад</Button>
|
||||||
<div className="compare-version-modal__header">
|
<div className="compare-version-modal__header">
|
||||||
<span> Версия: {selectedItem.configVersion}</span>
|
<span> Версия: {selectedItem.configVersion}</span>
|
||||||
<span>{config?.version ? `Текущая версия : ${config?.version}` : `Версия: ${config?.configVersion}`}</span>
|
<span>
|
||||||
|
{config?.version
|
||||||
|
? `Текущая версия : ${config?.version}`
|
||||||
|
: `Версия: ${config?.configVersion}`}
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<CodeMirrorMerge
|
<CodeMirrorMerge
|
||||||
orientation="a-b"
|
orientation="a-b"
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ import { ModalPropsType } from '@widgets/Modal/modal.type.ts'
|
|||||||
|
|
||||||
import { JSONSchema } from '@pages/ModulesPage/module.type.ts'
|
import { JSONSchema } from '@pages/ModulesPage/module.type.ts'
|
||||||
|
|
||||||
|
|
||||||
export interface ConfigSchemaModalPropsType
|
export interface ConfigSchemaModalPropsType
|
||||||
extends Omit<ModalPropsType, 'title' | 'children'> {
|
extends Omit<ModalPropsType, 'title' | 'children'> {
|
||||||
schema?: JSONSchema
|
schema?: JSONSchema
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ const ConfigSchemaModal: FC<ConfigSchemaModalPropsType> = ({
|
|||||||
onClose,
|
onClose,
|
||||||
schema = {}
|
schema = {}
|
||||||
}) => {
|
}) => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="config-schema-modal">
|
<div className="config-schema-modal">
|
||||||
<Modal title="Текущая схема" open={open} onClose={onClose}>
|
<Modal title="Текущая схема" open={open} onClose={onClose}>
|
||||||
|
|||||||
@@ -1,48 +1,53 @@
|
|||||||
import { FC, useContext } from 'react'
|
|
||||||
import { ConfigurationEditorPropsType } from '@pages/ConfigurationEditorPage'
|
|
||||||
import Editor, { loader } from '@monaco-editor/react'
|
import Editor, { loader } from '@monaco-editor/react'
|
||||||
|
import * as monaco from 'monaco-editor'
|
||||||
|
import editorWorker from 'monaco-editor/esm/vs/editor/editor.worker?worker'
|
||||||
|
import cssWorker from 'monaco-editor/esm/vs/language/css/css.worker?worker'
|
||||||
|
import htmlWorker from 'monaco-editor/esm/vs/language/html/html.worker?worker'
|
||||||
|
import jsonWorker from 'monaco-editor/esm/vs/language/json/json.worker?worker'
|
||||||
|
import { FC, useContext } from 'react'
|
||||||
|
|
||||||
|
import { ConfigurationEditorPropsType } from '@pages/ConfigurationEditorPage/ConfigurationEditor.type.ts'
|
||||||
import { ConfigType } from '@pages/ModulesPage/module.type.ts'
|
import { ConfigType } from '@pages/ModulesPage/module.type.ts'
|
||||||
|
|
||||||
import { Context } from '@stores/index.tsx'
|
import { Context } from '@stores/index.tsx'
|
||||||
|
|
||||||
import * as monaco from 'monaco-editor'
|
import tsWorker from 'monaco-editor/esm/vs/language/typescript/ts.worker?worker'
|
||||||
import editorWorker from 'monaco-editor/esm/vs/editor/editor.worker?worker';
|
|
||||||
import jsonWorker from 'monaco-editor/esm/vs/language/json/json.worker?worker';
|
|
||||||
import cssWorker from 'monaco-editor/esm/vs/language/css/css.worker?worker';
|
|
||||||
import htmlWorker from 'monaco-editor/esm/vs/language/html/html.worker?worker';
|
|
||||||
import tsWorker from 'monaco-editor/esm/vs/language/typescript/ts.worker?worker';
|
|
||||||
|
|
||||||
const ConfigurationEditorCode: FC<ConfigurationEditorPropsType> = ({setDisableBtn= () => {}, bufConfig, setBufConfig }) => {
|
const ConfigurationEditorCode: FC<ConfigurationEditorPropsType> = ({
|
||||||
|
setDisableBtn = () => {},
|
||||||
|
bufConfig,
|
||||||
|
setBufConfig
|
||||||
|
}) => {
|
||||||
const { changeTheme } = useContext(Context)
|
const { changeTheme } = useContext(Context)
|
||||||
|
|
||||||
self.MonacoEnvironment = {
|
self.MonacoEnvironment = {
|
||||||
getWorker(_, label) {
|
getWorker(_, label) {
|
||||||
if (label === 'json') {
|
if (label === 'json') {
|
||||||
return new jsonWorker();
|
return new jsonWorker()
|
||||||
}
|
}
|
||||||
if (label === 'css' || label === 'scss' || label === 'less') {
|
if (label === 'css' || label === 'scss' || label === 'less') {
|
||||||
return new cssWorker();
|
return new cssWorker()
|
||||||
}
|
}
|
||||||
if (label === 'html' || label === 'handlebars' || label === 'razor') {
|
if (label === 'html' || label === 'handlebars' || label === 'razor') {
|
||||||
return new htmlWorker();
|
return new htmlWorker()
|
||||||
}
|
}
|
||||||
if (label === 'typescript' || label === 'javascript') {
|
if (label === 'typescript' || label === 'javascript') {
|
||||||
return new tsWorker();
|
return new tsWorker()
|
||||||
}
|
}
|
||||||
return new editorWorker();
|
return new editorWorker()
|
||||||
},
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
loader.config({ monaco });
|
loader.config({ monaco })
|
||||||
|
|
||||||
loader.init().then();
|
loader.init().then()
|
||||||
|
|
||||||
const handleChange = (data: string | undefined) => {
|
const handleChange = (data: string | undefined) => {
|
||||||
|
|
||||||
if (data) {
|
if (data) {
|
||||||
try {
|
try {
|
||||||
const newData = {
|
const newData = {
|
||||||
...bufConfig,
|
...bufConfig,
|
||||||
data: {...JSON.parse(data) }
|
data: { ...JSON.parse(data) }
|
||||||
} as ConfigType
|
} as ConfigType
|
||||||
setDisableBtn(false)
|
setDisableBtn(false)
|
||||||
setBufConfig(newData)
|
setBufConfig(newData)
|
||||||
@@ -52,7 +57,7 @@ const ConfigurationEditorCode: FC<ConfigurationEditorPropsType> = ({setDisableBt
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const editorValue = JSON.stringify(bufConfig?.data, null, '\t')
|
const editorValue = JSON.stringify(bufConfig?.data, null, '\t')
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
@@ -67,12 +72,11 @@ const ConfigurationEditorCode: FC<ConfigurationEditorPropsType> = ({setDisableBt
|
|||||||
minimap: {
|
minimap: {
|
||||||
enabled: false
|
enabled: false
|
||||||
},
|
},
|
||||||
fontSize: 16,
|
fontSize: 16
|
||||||
}}
|
}}
|
||||||
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
export default ConfigurationEditorCode
|
export default ConfigurationEditorCode
|
||||||
@@ -1,30 +1,55 @@
|
|||||||
|
import { DeleteOutlined, PlusOutlined } from '@ant-design/icons'
|
||||||
import { Theme as AntDTheme } from '@rjsf/antd'
|
import { Theme as AntDTheme } from '@rjsf/antd'
|
||||||
import { withTheme } from '@rjsf/core'
|
import { withTheme } from '@rjsf/core'
|
||||||
import { UiSchema } from '@rjsf/utils'
|
import { UiSchema } from '@rjsf/utils'
|
||||||
import validator from '@rjsf/validator-ajv8'
|
import validator from '@rjsf/validator-ajv8'
|
||||||
import { FC, useEffect, useState } from 'react'
|
import {
|
||||||
|
Badge,
|
||||||
import { ConfigurationEditorPropsType } from '@pages/ConfigurationEditorPage'
|
Button,
|
||||||
import { Tabs } from 'antd'
|
Tabs,
|
||||||
import equal from 'deep-equal'
|
Tooltip,
|
||||||
|
Form as FormAntd,
|
||||||
|
Collapse,
|
||||||
|
Typography,
|
||||||
|
Space
|
||||||
|
} from 'antd'
|
||||||
|
import equal from 'deep-equal'
|
||||||
|
import { createRef, FC, memo, useEffect, useState } from 'react'
|
||||||
import { useParams } from 'react-router-dom'
|
import { useParams } from 'react-router-dom'
|
||||||
|
|
||||||
|
import {
|
||||||
|
ArrayFieldTemplatePropsType,
|
||||||
|
ConfigurationEditorPropsType,
|
||||||
|
DescriptionPropsType,
|
||||||
|
ErrorsObjType,
|
||||||
|
FieldTemplatePropsType,
|
||||||
|
ObjectFieldTemplatePropertyType,
|
||||||
|
ObjectFieldTemplatePropsType,
|
||||||
|
SortPropType
|
||||||
|
} from '@pages/ConfigurationEditorPage/ConfigurationEditor.type.ts'
|
||||||
|
import { ResponseSchemaType } from '@pages/ModulesPage/module.type.ts'
|
||||||
|
|
||||||
|
import { cleanEmptyParamsObject } from '@utils/objectUtils.ts'
|
||||||
|
|
||||||
|
const { Text: AntdText } = Typography
|
||||||
|
|
||||||
const ConfigurationEditorForm: FC<ConfigurationEditorPropsType> = ({
|
const ConfigurationEditorForm: FC<ConfigurationEditorPropsType> = ({
|
||||||
bufConfig ={},
|
bufConfig = {},
|
||||||
JsonSchema,
|
jsonSchema = {},
|
||||||
setBufConfig,
|
submitRef
|
||||||
}) => {
|
}) => {
|
||||||
const Form = withTheme(AntDTheme)
|
const Form = withTheme(AntDTheme)
|
||||||
const sortProps = (a, b) => a.name.localeCompare(b.name)
|
const sortProps = (a: SortPropType, b: SortPropType) =>
|
||||||
|
a.name.localeCompare(b.name)
|
||||||
|
|
||||||
const [formState, setFormState] = useState(bufConfig.data)
|
const [formState, setFormState] = useState(bufConfig.data)
|
||||||
const [activeTabKey, setActiveTabKey] = useState()
|
const { id } = useParams()
|
||||||
const {id} = useParams()
|
const formRef = createRef<any>()
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if(!equal(formState, bufConfig.data)) {
|
if (!equal(formState, bufConfig.data)) {
|
||||||
setFormState(bufConfig.data)
|
setFormState(bufConfig.data)
|
||||||
}
|
}
|
||||||
}, [bufConfig.data])
|
}, [bufConfig.data])
|
||||||
|
|
||||||
const uiSchema: UiSchema = {
|
const uiSchema: UiSchema = {
|
||||||
@@ -33,37 +58,206 @@ const ConfigurationEditorForm: FC<ConfigurationEditorPropsType> = ({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const onFormChange = data => {
|
const onSubmit = (data: any) => {
|
||||||
if(!equal(data.formData, bufConfig.data)) {
|
if (!submitRef) return
|
||||||
const newData = {
|
if (
|
||||||
...bufConfig,
|
!formRef.current.validateFormWithFormData(formRef.current.state.formData)
|
||||||
data: { ...data.formData }
|
) {
|
||||||
}
|
submitRef.current = data
|
||||||
if(!equal(newData, bufConfig.data)) {
|
} else {
|
||||||
setBufConfig(newData)
|
submitRef.current = data.formData
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleTabsChange = e => {
|
const forceSubmit = () => {
|
||||||
setActiveTabKey(e)
|
if (formRef.current) {
|
||||||
|
const formData = formRef.current.state.formData
|
||||||
|
|
||||||
|
onSubmit(cleanEmptyParamsObject(formData))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const ObjectFieldTemplate = (props) => {
|
const onFormChange = () => {
|
||||||
|
if (!formRef.current) return
|
||||||
|
if (
|
||||||
|
formRef.current.validateFormWithFormData(formRef.current.state.formData)
|
||||||
|
) {
|
||||||
|
formRef?.current?.submit()
|
||||||
|
} else {
|
||||||
|
forceSubmit()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const Description: FC<DescriptionPropsType> = ({ description }) =>
|
||||||
|
description ? (
|
||||||
|
<span>
|
||||||
|
|
||||||
|
<Tooltip title={description}></Tooltip>
|
||||||
|
</span>
|
||||||
|
) : null
|
||||||
|
|
||||||
|
const getDepth = (id: string) => {
|
||||||
|
if (!id) {
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
return id.split('_').length
|
||||||
|
}
|
||||||
|
|
||||||
|
const getName = (id: string) => {
|
||||||
|
if (!id) {
|
||||||
|
return ''
|
||||||
|
}
|
||||||
|
const arr = id.split('_')
|
||||||
|
return `#${arr[arr.length - 1] || ''}`
|
||||||
|
}
|
||||||
|
|
||||||
|
const FieldTemplate: FC<FieldTemplatePropsType> = (props) => {
|
||||||
|
const {
|
||||||
|
id,
|
||||||
|
classNames,
|
||||||
|
label,
|
||||||
|
rawHelp,
|
||||||
|
required,
|
||||||
|
rawDescription,
|
||||||
|
rawErrors,
|
||||||
|
children,
|
||||||
|
displayLabel,
|
||||||
|
schema
|
||||||
|
} = props
|
||||||
|
|
||||||
|
const isObject = schema.type === 'object'
|
||||||
|
const depth = getDepth(id)
|
||||||
|
const name = label || getName(id)
|
||||||
|
|
||||||
|
// Проверяем на наличие ошибок и формируем их вывод
|
||||||
|
const errorMessages = rawErrors ? rawErrors.join('\n') : null
|
||||||
|
|
||||||
|
// Объекты и массивы - Обработка по глубине
|
||||||
|
if (isObject && depth !== 1) {
|
||||||
|
const title = (
|
||||||
|
<div className={required ? 'ant-form-item-required' : ''}>
|
||||||
|
{depth !== 2 && <AntdText strong>{name}</AntdText>}
|
||||||
|
{errorMessages && (
|
||||||
|
<AntdText type="danger">{` (${errorMessages})`}</AntdText>
|
||||||
|
)}
|
||||||
|
{depth !== 2 && <Description description={rawDescription} />}
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
|
||||||
|
if (depth === 2 || schema.dynamic) {
|
||||||
|
return (
|
||||||
|
<div style={{ width: '100%' }}>
|
||||||
|
{!schema.dynamic && title}
|
||||||
|
{children}
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Collapse className="collapse" defaultActiveKey={depth > 1 ? '' : id}>
|
||||||
|
<Collapse.Panel
|
||||||
|
key={id}
|
||||||
|
className="configEditor_collapseObject"
|
||||||
|
header={title}
|
||||||
|
>
|
||||||
|
{children}
|
||||||
|
</Collapse.Panel>
|
||||||
|
</Collapse>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Для остальных типов возвращаем форму с элементами
|
||||||
|
return (
|
||||||
|
<FormAntd.Item
|
||||||
|
className={classNames}
|
||||||
|
validateStatus={errorMessages ? 'error' : undefined}
|
||||||
|
help={errorMessages || undefined}
|
||||||
|
extra={rawHelp}
|
||||||
|
required={required}
|
||||||
|
label={
|
||||||
|
displayLabel && !schema.dynamic ? (
|
||||||
|
<>
|
||||||
|
{name}
|
||||||
|
<Description description={rawDescription} />
|
||||||
|
</>
|
||||||
|
) : null
|
||||||
|
}
|
||||||
|
>
|
||||||
|
{children}
|
||||||
|
</FormAntd.Item>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
const ArrayFieldTemplate: FC<ArrayFieldTemplatePropsType> = ({
|
||||||
|
items,
|
||||||
|
onAddClick,
|
||||||
|
canAdd,
|
||||||
|
title,
|
||||||
|
idSchema,
|
||||||
|
schema: { description }
|
||||||
|
}) => {
|
||||||
|
return (
|
||||||
|
<Collapse defaultActiveKey={idSchema.$id}>
|
||||||
|
<Collapse.Panel
|
||||||
|
key={idSchema.$id}
|
||||||
|
className="collapseArray"
|
||||||
|
header={
|
||||||
|
<Space
|
||||||
|
direction="horizontal"
|
||||||
|
style={{ justifyContent: 'space-between', width: '100%' }}
|
||||||
|
>
|
||||||
|
<Space direction="horizontal">
|
||||||
|
<AntdText>{title}</AntdText>
|
||||||
|
<Badge count={items ? items.length : 0} showZero />
|
||||||
|
<Description description={description} />
|
||||||
|
</Space>
|
||||||
|
{canAdd && (
|
||||||
|
<Button
|
||||||
|
type="link"
|
||||||
|
icon={<PlusOutlined />}
|
||||||
|
onClick={(e) => {
|
||||||
|
e.stopPropagation()
|
||||||
|
onAddClick(e as unknown as MouseEvent)
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
</Space>
|
||||||
|
}
|
||||||
|
>
|
||||||
|
{items &&
|
||||||
|
items.map((element) => (
|
||||||
|
<div key={element.index} className="collapseArray_item">
|
||||||
|
<div className="collapseArray_item_content">
|
||||||
|
{element.children}
|
||||||
|
</div>
|
||||||
|
<Button
|
||||||
|
type="link"
|
||||||
|
icon={<DeleteOutlined />}
|
||||||
|
onClick={element.onDropIndexClick(element.index)}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
))}
|
||||||
|
</Collapse.Panel>
|
||||||
|
</Collapse>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
const ObjectFieldTemplate: FC<ObjectFieldTemplatePropsType> = (props) => {
|
||||||
const {
|
const {
|
||||||
properties,
|
properties,
|
||||||
idSchema,
|
idSchema,
|
||||||
schema: { properties: schemaProperties }
|
schema: { properties: schemaProperties },
|
||||||
|
activeTabKey,
|
||||||
|
handleTabsChange
|
||||||
} = props
|
} = props
|
||||||
properties.sort(sortProps)
|
|
||||||
|
|
||||||
|
properties.sort(sortProps)
|
||||||
if (idSchema.$id === 'root') {
|
if (idSchema.$id === 'root') {
|
||||||
const propsComplex: [] = []
|
const propsComplex: ObjectFieldTemplatePropertyType[] = []
|
||||||
const propsSimple: [] = []
|
const propsSimple: ObjectFieldTemplatePropertyType[] = []
|
||||||
|
|
||||||
properties.forEach((prop) => {
|
properties.forEach((prop) => {
|
||||||
const fieldType = schemaProperties[prop.name].type
|
const fieldType = schemaProperties[prop.name]?.type
|
||||||
if (!fieldType || fieldType === 'array' || fieldType === 'object') {
|
if (!fieldType || fieldType === 'array' || fieldType === 'object') {
|
||||||
propsComplex.push(prop)
|
propsComplex.push(prop)
|
||||||
} else {
|
} else {
|
||||||
@@ -72,41 +266,67 @@ const ConfigurationEditorForm: FC<ConfigurationEditorPropsType> = ({
|
|||||||
})
|
})
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Tabs activeKey={activeTabKey} tabPosition="right" onChange={handleTabsChange} items={[
|
<Tabs
|
||||||
...(propsSimple.length ? [{
|
activeKey={activeTabKey}
|
||||||
label: 'Остальные',
|
tabPosition="right"
|
||||||
key: 'General',
|
onChange={handleTabsChange}
|
||||||
children: propsSimple.map((element) => element.content),
|
items={[
|
||||||
}] : []),
|
...(propsSimple.length
|
||||||
...propsComplex.map((element) => ({
|
? [
|
||||||
label: schemaProperties[element.name]?.title || element.name,
|
{
|
||||||
key: element.name,
|
label: 'Остальные',
|
||||||
children: element.content,
|
key: 'General',
|
||||||
})),
|
children: propsSimple.map((element) => element.content)
|
||||||
]} />
|
}
|
||||||
|
]
|
||||||
|
: []),
|
||||||
|
...propsComplex.map((element) => ({
|
||||||
|
label: schemaProperties[element.name]?.title || element.name,
|
||||||
|
key: element.name,
|
||||||
|
children: element.content
|
||||||
|
}))
|
||||||
|
]}
|
||||||
|
/>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
return <>{properties.map((element) => element.content)}</>
|
||||||
|
}
|
||||||
|
|
||||||
return properties.map((element) => element.content)
|
const transformErrors = (errors: ErrorsObjType[]): ErrorsObjType[] => {
|
||||||
|
if (errors.length > 0) {
|
||||||
|
errors.forEach((error) => {
|
||||||
|
error.message = 'Поле является обязательным'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
return errors
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<section className="configuration-editor-page__form">
|
<section className="configuration-editor-page__form">
|
||||||
<Form
|
<Form
|
||||||
formContext={{
|
formContext={{
|
||||||
// labelCol: { span: 8 },
|
labelCol: { span: 8 },
|
||||||
// wrapperCol: { span: 30 },
|
wrapperCol: { span: 30 },
|
||||||
// layout: 'horizontal'
|
layout: 'vertical'
|
||||||
}}
|
}}
|
||||||
uiSchema={uiSchema}
|
uiSchema={uiSchema}
|
||||||
templates={{ ObjectFieldTemplate }}
|
templates={{
|
||||||
|
ObjectFieldTemplate: ObjectFieldTemplate as any,
|
||||||
|
FieldTemplate: FieldTemplate as any,
|
||||||
|
ArrayFieldTemplate: ArrayFieldTemplate as any
|
||||||
|
}}
|
||||||
|
ref={formRef}
|
||||||
|
transformErrors={transformErrors as any}
|
||||||
|
schema={jsonSchema?.schema as ResponseSchemaType}
|
||||||
|
onSubmit={onSubmit}
|
||||||
validator={validator}
|
validator={validator}
|
||||||
schema={JsonSchema?.schema}
|
formData={id === 'new' ? {} : formState}
|
||||||
formData={id === 'new' ? {} : formState}
|
|
||||||
onChange={onFormChange}
|
onChange={onFormChange}
|
||||||
|
showErrorList={false}
|
||||||
></Form>
|
></Form>
|
||||||
</section>
|
</section>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
export default ConfigurationEditorForm
|
export default memo(ConfigurationEditorForm)
|
||||||
@@ -1,11 +1,18 @@
|
|||||||
import { FC, useContext } from 'react'
|
import { Spin } from 'antd'
|
||||||
import {ConfigurationEditorPropsType} from '@pages/ConfigurationEditorPage'
|
|
||||||
import { ReactJsonView } from 'isp-ui-kit'
|
import { ReactJsonView } from 'isp-ui-kit'
|
||||||
import {Spin} from 'antd'
|
import { FC, useContext } from 'react'
|
||||||
|
|
||||||
|
import { ConfigurationEditorPropsType } from '@pages/ConfigurationEditorPage/ConfigurationEditor.type.ts'
|
||||||
|
|
||||||
import { cleanEmptyParamsObject } from '@utils/objectUtils.ts'
|
import { cleanEmptyParamsObject } from '@utils/objectUtils.ts'
|
||||||
|
|
||||||
import { Context } from '@stores/index.tsx'
|
import { Context } from '@stores/index.tsx'
|
||||||
|
|
||||||
const ConfigurationEditorJson: FC<ConfigurationEditorPropsType> = ({ bufConfig = {}, setBufConfig, isCurrentConfigLoading}) => {
|
const ConfigurationEditorJson: FC<ConfigurationEditorPropsType> = ({
|
||||||
|
bufConfig = {},
|
||||||
|
setBufConfig,
|
||||||
|
isCurrentConfigLoading
|
||||||
|
}) => {
|
||||||
const { changeTheme } = useContext(Context)
|
const { changeTheme } = useContext(Context)
|
||||||
if (isCurrentConfigLoading) {
|
if (isCurrentConfigLoading) {
|
||||||
return <Spin className="spin" />
|
return <Spin className="spin" />
|
||||||
@@ -21,15 +28,15 @@ const ConfigurationEditorJson: FC<ConfigurationEditorPropsType> = ({ bufConfig =
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<ReactJsonView
|
<ReactJsonView
|
||||||
theme={ changeTheme ? 'twilight' : ''}
|
theme={changeTheme ? 'twilight' : ''}
|
||||||
onAdd={({updated_src}: any) => handleEdit(updated_src)}
|
onAdd={({ updated_src }: any) => handleEdit(updated_src)}
|
||||||
onDelete={({updated_src}: any) => handleEdit(updated_src)}
|
onDelete={({ updated_src }: any) => handleEdit(updated_src)}
|
||||||
displayDataTypes={false}
|
displayDataTypes={false}
|
||||||
displayObjectSize={false}
|
displayObjectSize={false}
|
||||||
name={null}
|
name={null}
|
||||||
enableClipboard={true}
|
enableClipboard={true}
|
||||||
iconStyle="square"
|
iconStyle="square"
|
||||||
onEdit={({updated_src}: any) => handleEdit(updated_src)}
|
onEdit={({ updated_src }: any) => handleEdit(updated_src)}
|
||||||
src={bufConfig.data}
|
src={bufConfig.data}
|
||||||
sortKeys={true}
|
sortKeys={true}
|
||||||
collapsed={1}
|
collapsed={1}
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ import Modal from '@widgets/Modal'
|
|||||||
|
|
||||||
import { ConfigurationPreviewModalPropsType } from '@components/ConfigurationPreviewModal/configuration-preview-modal.type.ts'
|
import { ConfigurationPreviewModalPropsType } from '@components/ConfigurationPreviewModal/configuration-preview-modal.type.ts'
|
||||||
|
|
||||||
import './configuration-preview-modal.scss'
|
|
||||||
import { Context } from '@stores/index.tsx'
|
import { Context } from '@stores/index.tsx'
|
||||||
|
|
||||||
|
import './configuration-preview-modal.scss'
|
||||||
|
|
||||||
const ConfigurationPreviewModal: FC<ConfigurationPreviewModalPropsType> = ({
|
const ConfigurationPreviewModal: FC<ConfigurationPreviewModalPropsType> = ({
|
||||||
versionCompare = false,
|
versionCompare = false,
|
||||||
@@ -24,7 +24,7 @@ const ConfigurationPreviewModal: FC<ConfigurationPreviewModalPropsType> = ({
|
|||||||
<div className="configuration-preview-modal">
|
<div className="configuration-preview-modal">
|
||||||
<Modal title={configName || ''} open={open} onClose={onClose}>
|
<Modal title={configName || ''} open={open} onClose={onClose}>
|
||||||
<ReactJsonView
|
<ReactJsonView
|
||||||
theme={ changeTheme ? 'twilight' : ''}
|
theme={changeTheme ? 'twilight' : ''}
|
||||||
src={data}
|
src={data}
|
||||||
name={false}
|
name={false}
|
||||||
sortKeys={true}
|
sortKeys={true}
|
||||||
|
|||||||
@@ -1,33 +1,31 @@
|
|||||||
import { Button } from 'antd'
|
import { Button } from 'antd'
|
||||||
|
import { Dispatch, FC, SetStateAction } from 'react'
|
||||||
|
import { useParams } from 'react-router-dom'
|
||||||
|
|
||||||
import Modal from '@widgets/Modal'
|
import Modal from '@widgets/Modal'
|
||||||
import { ModalPropsType } from '@widgets/Modal/modal.type.ts'
|
import { ModalPropsType } from '@widgets/Modal/modal.type.ts'
|
||||||
import { Dispatch, FC, SetStateAction } from 'react'
|
|
||||||
import { ConfigType } from '@pages/ModulesPage/module.type.ts'
|
import { ConfigType } from '@pages/ModulesPage/module.type.ts'
|
||||||
import { useParams } from 'react-router-dom'
|
|
||||||
import configServiceApi from '@services/configService.ts'
|
import configServiceApi from '@services/configService.ts'
|
||||||
|
|
||||||
|
interface ConfirmModalProps extends Omit<ModalPropsType, 'title' | 'children'> {
|
||||||
interface ConfirmModalProps
|
|
||||||
extends Omit<ModalPropsType, 'title' | 'children'> {
|
|
||||||
handleSaveClick: (upVersion?: number, unsafe?: boolean) => void
|
handleSaveClick: (upVersion?: number, unsafe?: boolean) => void
|
||||||
setBufConfig: Dispatch<SetStateAction<ConfigType | undefined>>
|
setBufConfig: Dispatch<SetStateAction<ConfigType | undefined>>
|
||||||
currentConfig: ConfigType | undefined
|
currentConfig: ConfigType | undefined
|
||||||
}
|
}
|
||||||
|
|
||||||
const ConfirmConfigModal: FC<ConfirmModalProps> = ({
|
const ConfirmConfigModal: FC<ConfirmModalProps> = ({
|
||||||
currentConfig,
|
currentConfig,
|
||||||
setBufConfig,
|
setBufConfig,
|
||||||
handleSaveClick,
|
handleSaveClick,
|
||||||
onClose = () => null,
|
onClose = () => null,
|
||||||
open
|
open
|
||||||
}) => {
|
}) => {
|
||||||
const { id = '' } = useParams()
|
const { id = '' } = useParams()
|
||||||
const isNew = id === 'new' ? '' : id
|
const isNew = id === 'new' ? '' : id
|
||||||
|
|
||||||
const {
|
const { data } = configServiceApi.useGetConfigByIdQuery(isNew)
|
||||||
data
|
|
||||||
} = configServiceApi.useGetConfigByIdQuery(isNew)
|
|
||||||
|
|
||||||
|
|
||||||
const onConfirmHandler = () => {
|
const onConfirmHandler = () => {
|
||||||
setBufConfig(currentConfig)
|
setBufConfig(currentConfig)
|
||||||
@@ -35,14 +33,26 @@ const ConfirmConfigModal: FC<ConfirmModalProps> = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Modal title="Версия конфигурации была кем-то изменена" open={open}
|
<Modal
|
||||||
onClose={onClose}>
|
title="Версия конфигурации была кем-то изменена"
|
||||||
<Button className="confirm-btn danger" type="primary" danger onClick={() => {
|
open={open}
|
||||||
handleSaveClick(data && data.version)
|
onClose={onClose}
|
||||||
onClose()
|
>
|
||||||
}}>Сохранить принудительно</Button>
|
<Button
|
||||||
<Button className="confirm-btn" type="primary" onClick={onConfirmHandler}>Принять изменения</Button>
|
className="confirm-btn danger"
|
||||||
|
type="primary"
|
||||||
|
danger
|
||||||
|
onClick={() => {
|
||||||
|
handleSaveClick(data && data.version)
|
||||||
|
onClose()
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Сохранить принудительно
|
||||||
|
</Button>
|
||||||
|
<Button className="confirm-btn" type="primary" onClick={onConfirmHandler}>
|
||||||
|
Принять изменения
|
||||||
|
</Button>
|
||||||
</Modal>
|
</Modal>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
export default ConfirmConfigModal
|
export default ConfirmConfigModal
|
||||||
@@ -1,15 +1,19 @@
|
|||||||
|
import { Table } from 'antd'
|
||||||
|
import { FC } from 'react'
|
||||||
|
|
||||||
import Modal from '@widgets/Modal'
|
import Modal from '@widgets/Modal'
|
||||||
import { ModalPropsType } from '@widgets/Modal/modal.type.ts'
|
import { ModalPropsType } from '@widgets/Modal/modal.type.ts'
|
||||||
import { FC } from 'react'
|
|
||||||
import { Table } from 'antd'
|
|
||||||
|
|
||||||
interface ErrorConfigModalProps
|
interface ErrorConfigModalProps
|
||||||
extends Omit<ModalPropsType, 'title' | 'children'> {
|
extends Omit<ModalPropsType, 'title' | 'children'> {
|
||||||
details?: { [key: string]: string }
|
details?: { [key: string]: string }
|
||||||
}
|
}
|
||||||
|
|
||||||
const ErrorConfigModal: FC<ErrorConfigModalProps> = ({ details = {}, onClose, open }) => {
|
const ErrorConfigModal: FC<ErrorConfigModalProps> = ({
|
||||||
|
details = {},
|
||||||
|
onClose,
|
||||||
|
open
|
||||||
|
}) => {
|
||||||
const columns = [
|
const columns = [
|
||||||
{
|
{
|
||||||
dataIndex: 'key',
|
dataIndex: 'key',
|
||||||
@@ -28,13 +32,21 @@ const ErrorConfigModal: FC<ErrorConfigModalProps> = ({ details = {}, onClose, op
|
|||||||
}))
|
}))
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Modal title="Несоотвествия схемы конфигурации" open={open}
|
<Modal
|
||||||
onClose={onClose}>
|
title="Несоотвествия схемы конфигурации"
|
||||||
|
open={open}
|
||||||
|
onClose={onClose}
|
||||||
|
>
|
||||||
<div>
|
<div>
|
||||||
<Table columns={columns} dataSource={data} showHeader={false} pagination={false} />
|
<Table
|
||||||
|
columns={columns}
|
||||||
|
dataSource={data}
|
||||||
|
showHeader={false}
|
||||||
|
pagination={false}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</Modal>
|
</Modal>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
export default ErrorConfigModal
|
export default ErrorConfigModal
|
||||||
@@ -98,29 +98,29 @@ const LayoutComponent = () => {
|
|||||||
className: hideItem([
|
className: hideItem([
|
||||||
PermissionKeysType.user_view,
|
PermissionKeysType.user_view,
|
||||||
PermissionKeysType.session_view,
|
PermissionKeysType.session_view,
|
||||||
PermissionKeysType.role_view,
|
PermissionKeysType.role_view
|
||||||
]),
|
]),
|
||||||
icon: <ProfileOutlined />,
|
icon: <ProfileOutlined />,
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
label: 'Пользователи',
|
label: 'Пользователи',
|
||||||
key: 'users',
|
key: 'users',
|
||||||
className: hideItem(PermissionKeysType.user_view),
|
className: hideItem(PermissionKeysType.user_view)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Пользовательские сессии',
|
label: 'Пользовательские сессии',
|
||||||
key: 'sessions',
|
key: 'sessions',
|
||||||
className: hideItem(PermissionKeysType.session_view),
|
className: hideItem(PermissionKeysType.session_view)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Просмотр журналов ИБ',
|
label: 'Просмотр журналов ИБ',
|
||||||
key: 'securityLog',
|
key: 'securityLog',
|
||||||
className: hideItem(PermissionKeysType.security_log_view),
|
className: hideItem(PermissionKeysType.security_log_view)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Роли',
|
label: 'Роли',
|
||||||
key: 'roles',
|
key: 'roles',
|
||||||
className: hideItem(PermissionKeysType.role_view),
|
className: hideItem(PermissionKeysType.role_view)
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ import ModuleTabContent from '@widgets/ModuleTabContent'
|
|||||||
|
|
||||||
import { ModuleTabsPropsType } from '@components/ModuleTabs/module-tabs.type.ts'
|
import { ModuleTabsPropsType } from '@components/ModuleTabs/module-tabs.type.ts'
|
||||||
|
|
||||||
|
|
||||||
const secondColumnItems = [
|
const secondColumnItems = [
|
||||||
{
|
{
|
||||||
key: 'configurations',
|
key: 'configurations',
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ import roleApi from '@services/roleService.ts'
|
|||||||
|
|
||||||
import './role-list.scss'
|
import './role-list.scss'
|
||||||
|
|
||||||
|
|
||||||
const RoleList = ({ userRoles }: RoleListProps) => {
|
const RoleList = ({ userRoles }: RoleListProps) => {
|
||||||
const { data: roles = [], isLoading, isError } = roleApi.useGetAllRolesQuery()
|
const { data: roles = [], isLoading, isError } = roleApi.useGetAllRolesQuery()
|
||||||
const roleIds = new Set(userRoles)
|
const roleIds = new Set(userRoles)
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ import { PermissionKeysType, RoleType } from '@type/roles.type.ts'
|
|||||||
|
|
||||||
import './roles-content.scss'
|
import './roles-content.scss'
|
||||||
|
|
||||||
|
|
||||||
const newRole: Partial<RoleType> = {
|
const newRole: Partial<RoleType> = {
|
||||||
externalGroup: '',
|
externalGroup: '',
|
||||||
name: '',
|
name: '',
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
type FormattersKey = 'fullFormat'
|
type FormattersKey = 'fullFormat'
|
||||||
|
|
||||||
|
export const dateFormats: Record<FormattersKey, string> = {
|
||||||
export const dateFormats:Record<FormattersKey,string> = {
|
|
||||||
fullFormat: 'DD.MM.YYYY HH:mm:ss'
|
fullFormat: 'DD.MM.YYYY HH:mm:ss'
|
||||||
}
|
}
|
||||||
@@ -9,7 +9,6 @@ import { LocalStorage } from '@utils/localStorageUtils.ts'
|
|||||||
|
|
||||||
import { routePaths } from '@routes/routePaths.ts'
|
import { routePaths } from '@routes/routePaths.ts'
|
||||||
|
|
||||||
|
|
||||||
const useLogout = () => {
|
const useLogout = () => {
|
||||||
const { logout, isLoading } = useAuth()
|
const { logout, isLoading } = useAuth()
|
||||||
const navigate = useNavigate()
|
const navigate = useNavigate()
|
||||||
|
|||||||
+2
-2
@@ -1,4 +1,6 @@
|
|||||||
import { setupListeners } from '@reduxjs/toolkit/query'
|
import { setupListeners } from '@reduxjs/toolkit/query'
|
||||||
|
import dayjs from 'dayjs'
|
||||||
|
import 'dayjs/locale/ru'
|
||||||
import { createRoot } from 'react-dom/client'
|
import { createRoot } from 'react-dom/client'
|
||||||
import { Provider } from 'react-redux'
|
import { Provider } from 'react-redux'
|
||||||
import { BrowserRouter } from 'react-router-dom'
|
import { BrowserRouter } from 'react-router-dom'
|
||||||
@@ -6,11 +8,9 @@ import { BrowserRouter } from 'react-router-dom'
|
|||||||
import App from './components/App.tsx'
|
import App from './components/App.tsx'
|
||||||
|
|
||||||
import { setupStore } from './stores'
|
import { setupStore } from './stores'
|
||||||
import 'dayjs/locale/ru'
|
|
||||||
|
|
||||||
import 'react-resizable/css/styles.css'
|
import 'react-resizable/css/styles.css'
|
||||||
import 'simplebar-react/dist/simplebar.min.css'
|
import 'simplebar-react/dist/simplebar.min.css'
|
||||||
import dayjs from 'dayjs'
|
|
||||||
|
|
||||||
dayjs.locale('ru')
|
dayjs.locale('ru')
|
||||||
const store = setupStore()
|
const store = setupStore()
|
||||||
|
|||||||
@@ -10,6 +10,8 @@ import dayjs from 'dayjs'
|
|||||||
import { useEffect, useState } from 'react'
|
import { useEffect, useState } from 'react'
|
||||||
import { Navigate, useNavigate, useParams } from 'react-router-dom'
|
import { Navigate, useNavigate, useParams } from 'react-router-dom'
|
||||||
|
|
||||||
|
import { dateFormats } from '@constants/date.ts'
|
||||||
|
|
||||||
import CanEdit from '@components/CanEdit'
|
import CanEdit from '@components/CanEdit'
|
||||||
import CompareVersionModal from '@components/CompareVersionModal'
|
import CompareVersionModal from '@components/CompareVersionModal'
|
||||||
import ConfigurationPreviewModal from '@components/ConfigurationPreviewModal'
|
import ConfigurationPreviewModal from '@components/ConfigurationPreviewModal'
|
||||||
@@ -28,8 +30,6 @@ import { PermissionKeysType } from '@type/roles.type.ts'
|
|||||||
import { VersionType } from '@type/version.type.ts'
|
import { VersionType } from '@type/version.type.ts'
|
||||||
|
|
||||||
import './all-versions-page.scss'
|
import './all-versions-page.scss'
|
||||||
import { dateFormats } from '@constants/date.ts'
|
|
||||||
|
|
||||||
|
|
||||||
const AllVersionsPage = () => {
|
const AllVersionsPage = () => {
|
||||||
const [showCompareModal, setShowCompareModal] = useState<boolean>(false)
|
const [showCompareModal, setShowCompareModal] = useState<boolean>(false)
|
||||||
@@ -109,42 +109,42 @@ const AllVersionsPage = () => {
|
|||||||
return (
|
return (
|
||||||
<div className="all-version-page__actions-field">
|
<div className="all-version-page__actions-field">
|
||||||
<Button.Group className="button_group">
|
<Button.Group className="button_group">
|
||||||
<CanEdit>
|
<CanEdit>
|
||||||
<Tooltip title="Установить выбранную версию">
|
<Tooltip title="Установить выбранную версию">
|
||||||
<Popconfirm
|
<Popconfirm
|
||||||
title="Вы действительно хотите установить выбранную версию ?"
|
title="Вы действительно хотите установить выбранную версию ?"
|
||||||
onConfirm={() => handleRevertVersion(record.data)}
|
onConfirm={() => handleRevertVersion(record.data)}
|
||||||
>
|
>
|
||||||
<Button icon={<ReloadOutlined />} />
|
<Button icon={<ReloadOutlined />} />
|
||||||
</Popconfirm>
|
</Popconfirm>
|
||||||
|
</Tooltip>
|
||||||
|
</CanEdit>
|
||||||
|
<Tooltip title="Просмотр версии">
|
||||||
|
<Button
|
||||||
|
onClick={() => {
|
||||||
|
setCurrentClickVersion(record)
|
||||||
|
setShowPreviewModal(true)
|
||||||
|
}}
|
||||||
|
icon={<EyeOutlined />}
|
||||||
|
/>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</CanEdit>
|
<Tooltip title="Сравнение версий">
|
||||||
<Tooltip title="Просмотр версии">
|
<Button
|
||||||
<Button
|
onClick={() => {
|
||||||
onClick={() => {
|
setCurrentClickVersion(record)
|
||||||
setCurrentClickVersion(record)
|
setShowCompareModal(true)
|
||||||
setShowPreviewModal(true)
|
}}
|
||||||
}}
|
icon={<SwapOutlined />}
|
||||||
icon={<EyeOutlined />}
|
/>
|
||||||
/>
|
</Tooltip>
|
||||||
</Tooltip>
|
<CanEdit>
|
||||||
<Tooltip title="Сравнение версий">
|
<Popconfirm
|
||||||
<Button
|
title="Вы действительно хотите удалить выбранную версию ?"
|
||||||
onClick={() => {
|
onConfirm={() => handeRemoveVersion(record.id)}
|
||||||
setCurrentClickVersion(record)
|
>
|
||||||
setShowCompareModal(true)
|
<Button danger icon={<DeleteOutlined />} />
|
||||||
}}
|
</Popconfirm>
|
||||||
icon={<SwapOutlined />}
|
</CanEdit>
|
||||||
/>
|
|
||||||
</Tooltip>
|
|
||||||
<CanEdit>
|
|
||||||
<Popconfirm
|
|
||||||
title="Вы действительно хотите удалить выбранную версию ?"
|
|
||||||
onConfirm={() => handeRemoveVersion(record.id)}
|
|
||||||
>
|
|
||||||
<Button danger icon={<DeleteOutlined />} />
|
|
||||||
</Popconfirm>
|
|
||||||
</CanEdit>
|
|
||||||
</Button.Group>
|
</Button.Group>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -28,7 +28,6 @@ import { PermissionKeysType } from '@type/roles.type.ts'
|
|||||||
|
|
||||||
import './app-access-page.scss'
|
import './app-access-page.scss'
|
||||||
|
|
||||||
|
|
||||||
const { Column, EmptyData } = Layout
|
const { Column, EmptyData } = Layout
|
||||||
|
|
||||||
const firstColumnSearchParam = 'search'
|
const firstColumnSearchParam = 'search'
|
||||||
@@ -82,6 +81,7 @@ const AppAccessPage = () => {
|
|||||||
<section className="app-access-page">
|
<section className="app-access-page">
|
||||||
<Column
|
<Column
|
||||||
title="Приложения"
|
title="Приложения"
|
||||||
|
searchPlaceholder="Введите имя или id"
|
||||||
showUpdateBtn={false}
|
showUpdateBtn={false}
|
||||||
showAddBtn={false}
|
showAddBtn={false}
|
||||||
showRemoveBtn={false}
|
showRemoveBtn={false}
|
||||||
|
|||||||
@@ -4,8 +4,9 @@ import { ColumnItem } from 'isp-ui-kit/dist/Layout/Column/column.type'
|
|||||||
import { useEffect, useMemo, useState } from 'react'
|
import { useEffect, useMemo, useState } from 'react'
|
||||||
import { useNavigate, useParams, useSearchParams } from 'react-router-dom'
|
import { useNavigate, useParams, useSearchParams } from 'react-router-dom'
|
||||||
|
|
||||||
|
import ListItem from '@widgets/ListItem'
|
||||||
|
|
||||||
import ApplicationsContent from '@components/ApplicationsContent'
|
import ApplicationsContent from '@components/ApplicationsContent'
|
||||||
import AppGroupModal from 'src/components/AppGroupModal'
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
ApplicationsGroupType,
|
ApplicationsGroupType,
|
||||||
@@ -23,11 +24,11 @@ import applicationsGroupApi from '@services/applicationsGroupService.ts'
|
|||||||
import { routePaths } from '@routes/routePaths.ts'
|
import { routePaths } from '@routes/routePaths.ts'
|
||||||
|
|
||||||
import { PermissionKeysType } from '@type/roles.type.ts'
|
import { PermissionKeysType } from '@type/roles.type.ts'
|
||||||
import ListItem from '@widgets/ListItem'
|
|
||||||
|
import AppGroupModal from 'src/components/AppGroupModal'
|
||||||
|
|
||||||
import './applications-page.scss'
|
import './applications-page.scss'
|
||||||
|
|
||||||
|
|
||||||
const { Column, EmptyData } = Layout
|
const { Column, EmptyData } = Layout
|
||||||
|
|
||||||
const ApplicationsPage = () => {
|
const ApplicationsPage = () => {
|
||||||
@@ -126,13 +127,18 @@ const ApplicationsPage = () => {
|
|||||||
id: Number(selectedItemId)
|
id: Number(selectedItemId)
|
||||||
}
|
}
|
||||||
|
|
||||||
updateApplicationsGroup(updateService).unwrap().then(()=>{
|
updateApplicationsGroup(updateService)
|
||||||
setShowApplicationsModal({
|
.unwrap()
|
||||||
...showApplicationsModal,
|
.then(() => {
|
||||||
updateModal: false
|
setShowApplicationsModal({
|
||||||
|
...showApplicationsModal,
|
||||||
|
updateModal: false
|
||||||
|
})
|
||||||
|
message.success('Группа приложений успешно отредактирована')
|
||||||
})
|
})
|
||||||
message.success('Группа приложений успешно отредактирована')
|
.catch(() =>
|
||||||
}).catch(()=> message.error('Не удалось отредактировать группу приложений'))
|
message.error('Не удалось отредактировать группу приложений')
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleRemoveApplicationsGtoup = () => {
|
const handleRemoveApplicationsGtoup = () => {
|
||||||
@@ -163,6 +169,7 @@ const ApplicationsPage = () => {
|
|||||||
<main className="applications-page">
|
<main className="applications-page">
|
||||||
<Column
|
<Column
|
||||||
title="Группы приложений"
|
title="Группы приложений"
|
||||||
|
searchPlaceholder="Введите имя или id"
|
||||||
onUpdateItem={updateApplicationModal}
|
onUpdateItem={updateApplicationModal}
|
||||||
showUpdateBtn={true}
|
showUpdateBtn={true}
|
||||||
onAddItem={addApplicationModal}
|
onAddItem={addApplicationModal}
|
||||||
|
|||||||
@@ -0,0 +1,96 @@
|
|||||||
|
import {
|
||||||
|
ComponentType,
|
||||||
|
Dispatch,
|
||||||
|
MutableRefObject,
|
||||||
|
ReactNode,
|
||||||
|
SetStateAction
|
||||||
|
} from 'react'
|
||||||
|
|
||||||
|
import {
|
||||||
|
ConfigType,
|
||||||
|
ResponseSchemaType
|
||||||
|
} from '@pages/ModulesPage/module.type.ts'
|
||||||
|
|
||||||
|
export interface ConfigurationEditorPropsType {
|
||||||
|
jsonSchema?: ResponseSchemaType
|
||||||
|
bufConfig?: ConfigType
|
||||||
|
setBufConfig: Dispatch<SetStateAction<ConfigType | undefined>>
|
||||||
|
isCurrentConfigLoading: boolean
|
||||||
|
setDisableBtn?: Dispatch<SetStateAction<boolean>>
|
||||||
|
submitRef?: MutableRefObject<null>
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface DescriptionPropsType {
|
||||||
|
description?: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface Schema {
|
||||||
|
type: string
|
||||||
|
dynamic?: boolean
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface FieldTemplatePropsType {
|
||||||
|
id: string
|
||||||
|
classNames?: string
|
||||||
|
label?: string
|
||||||
|
rawHelp?: string
|
||||||
|
required?: boolean
|
||||||
|
rawDescription?: string
|
||||||
|
rawErrors?: string[]
|
||||||
|
children: ReactNode
|
||||||
|
displayLabel?: boolean
|
||||||
|
schema: Schema
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ArrayFieldTemplatePropsType {
|
||||||
|
items: {
|
||||||
|
index: number
|
||||||
|
children: ReactNode
|
||||||
|
onDropIndexClick: (index: number) => () => void
|
||||||
|
}[]
|
||||||
|
onAddClick: (event: MouseEvent) => void
|
||||||
|
canAdd: boolean
|
||||||
|
title: string
|
||||||
|
titleField?: ComponentType<any>
|
||||||
|
idSchema: { $id: string }
|
||||||
|
schema: { description?: string }
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ObjectFieldTemplatePropertyType {
|
||||||
|
name: string
|
||||||
|
content: ReactNode
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface SchemaPropertiesType {
|
||||||
|
[key: string]: {
|
||||||
|
type?: string
|
||||||
|
title?: string
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ObjectFieldTemplatePropsType {
|
||||||
|
properties: ObjectFieldTemplatePropertyType[]
|
||||||
|
idSchema: {
|
||||||
|
$id: string
|
||||||
|
}
|
||||||
|
schema: {
|
||||||
|
properties: SchemaPropertiesType
|
||||||
|
}
|
||||||
|
activeTabKey: string
|
||||||
|
handleTabsChange: (key: string) => void
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ErrorsObjType {
|
||||||
|
message: string
|
||||||
|
name: string
|
||||||
|
params: {
|
||||||
|
missingProperty?: string
|
||||||
|
}
|
||||||
|
property: string
|
||||||
|
schemaPath: string
|
||||||
|
stack: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface SortPropType {
|
||||||
|
name: string
|
||||||
|
}
|
||||||
@@ -9,12 +9,15 @@
|
|||||||
height: 100vh;
|
height: 100vh;
|
||||||
overflow: scroll;
|
overflow: scroll;
|
||||||
padding-bottom: 80px;
|
padding-bottom: 80px;
|
||||||
|
|
||||||
&::-webkit-scrollbar {
|
&::-webkit-scrollbar {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.react-json-view {
|
.react-json-view {
|
||||||
margin: $basic-margin *3 0 $basic-margin *2 0;
|
margin: $basic-margin *3 0 $basic-margin *2 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__header {
|
&__header {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
@@ -22,7 +25,8 @@
|
|||||||
padding: $basic-padding *2 $basic-padding;
|
padding: $basic-padding *2 $basic-padding;
|
||||||
border-bottom: 1px solid $border-color;
|
border-bottom: 1px solid $border-color;
|
||||||
}
|
}
|
||||||
&__controll{
|
|
||||||
|
&__controll {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -30,8 +34,9 @@
|
|||||||
width: auto;
|
width: auto;
|
||||||
margin-left: $basic-margin;
|
margin-left: $basic-margin;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__content {
|
&__content {
|
||||||
padding: $basic-padding * 3 $basic-padding;
|
padding: $basic-padding * 3 $basic-padding;
|
||||||
}
|
}
|
||||||
|
|
||||||
.rjsf {
|
.rjsf {
|
||||||
@@ -40,37 +45,104 @@
|
|||||||
.form-group {
|
.form-group {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ant-form-item-label {
|
.ant-form-item-label {
|
||||||
text-align: start;
|
text-align: start;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ant-tabs-right {
|
.ant-tabs-right {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ant-col-8 .ant-form-item-label {
|
.ant-col-8 .ant-form-item-label {
|
||||||
margin-right: $basic-margin *2;
|
margin-right: $basic-margin *2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ant-form-item-row {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.collapseArray_item_content {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ant-collapse-item {
|
||||||
|
margin-bottom: 8px;
|
||||||
|
}
|
||||||
|
.ant-collapse-header {
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.collapseArray_item {
|
||||||
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
.anticon-delete {
|
||||||
|
margin-left: auto;
|
||||||
|
padding-left: 8px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.ant-col-sm-16 {
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ant-col .ant-form-item-control {
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ant-form-item-control-input-content {
|
||||||
|
width: 100%;
|
||||||
|
max-width: 100%;
|
||||||
|
flex: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flex-space-between {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row !important;
|
||||||
|
justify-content: space-between;
|
||||||
|
|
||||||
|
&__plus {
|
||||||
|
margin-left: 8px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.collapseArray_item {
|
||||||
|
align-items: center;
|
||||||
|
.ant-btn-link {
|
||||||
|
margin-bottom: 8px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.ant-btn-group {
|
.ant-btn-group {
|
||||||
margin-top: 40px;
|
margin-top: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ant-row .ant-row-end {
|
.ant-row .ant-row-end {
|
||||||
width: 60px;
|
width: 60px;
|
||||||
margin: 0 0 $basic-margin auto !important;
|
margin: 0 0 $basic-margin auto !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__form {
|
&__form {
|
||||||
padding: $basic-padding;
|
padding: $basic-padding;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal__wrap {
|
.modal__wrap {
|
||||||
min-height: 110px;
|
min-height: 110px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.confirm-btn {
|
.confirm-btn {
|
||||||
width: 190px;
|
width: 190px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.confirm-btn, .danger {
|
.confirm-btn, .danger {
|
||||||
margin-right: $basic-margin;
|
margin-right: $basic-margin;
|
||||||
}
|
}
|
||||||
|
|
||||||
.error-data {
|
.error-data {
|
||||||
color: red;
|
color: red;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { RollbackOutlined } from '@ant-design/icons'
|
import { RollbackOutlined } from '@ant-design/icons'
|
||||||
import { Button, Dropdown, MenuProps, message, Radio, RadioChangeEvent, Spin } from 'antd'
|
import { Button, Dropdown, MenuProps, message, Radio, RadioChangeEvent, Spin } from 'antd'
|
||||||
import { Dispatch, FC, SetStateAction, useEffect, useState } from 'react'
|
import { FC, useEffect, useRef, useState} from 'react'
|
||||||
import { useLocation, useNavigate, useParams } from 'react-router-dom'
|
import { useLocation, useNavigate, useParams } from 'react-router-dom'
|
||||||
|
|
||||||
import ConfigurationEditorCode from '@components/ConfigurationEditorCode'
|
import ConfigurationEditorCode from '@components/ConfigurationEditorCode'
|
||||||
@@ -12,24 +12,19 @@ import modulesServiceApi from '@services/modulesService.ts'
|
|||||||
import './configuration-editor-page.scss'
|
import './configuration-editor-page.scss'
|
||||||
import ConfigSchemaModal from '@components/ConfigSchemaModal'
|
import ConfigSchemaModal from '@components/ConfigSchemaModal'
|
||||||
import { cleanEmptyParamsObject, sortObject } from '@utils/objectUtils.ts'
|
import { cleanEmptyParamsObject, sortObject } from '@utils/objectUtils.ts'
|
||||||
import { ConfigType, ResponseSchemaType } from '@pages/ModulesPage/module.type.ts'
|
import { ConfigType } from '@pages/ModulesPage/module.type.ts'
|
||||||
import ConfirmConfigModal from '@components/ConfirmConfigModal/ConfirmConfigModal.tsx'
|
import ConfirmConfigModal from '@components/ConfirmConfigModal/ConfirmConfigModal.tsx'
|
||||||
import ErrorConfigModal from '@components/ErrorConfigModal/ErrorConfigModal.tsx'
|
import ErrorConfigModal from '@components/ErrorConfigModal/ErrorConfigModal.tsx'
|
||||||
|
import ConfigurationEditorForm from '@components/ConfigurationEditorForm'
|
||||||
|
|
||||||
|
|
||||||
export interface ConfigurationEditorPropsType {
|
|
||||||
JsonSchema?: ResponseSchemaType
|
|
||||||
bufConfig?: ConfigType
|
|
||||||
setBufConfig: Dispatch<SetStateAction<ConfigType | undefined>>
|
|
||||||
isCurrentConfigLoading: boolean
|
|
||||||
setDisableBtn?: Dispatch<SetStateAction<boolean>>
|
|
||||||
}
|
|
||||||
|
|
||||||
const ConfigurationEditorPage: FC = () => {
|
const ConfigurationEditorPage: FC = () => {
|
||||||
const navigate = useNavigate()
|
const navigate = useNavigate()
|
||||||
const { moduleId = '' } = useParams()
|
const { moduleId = '' } = useParams()
|
||||||
const { id = '' } = useParams()
|
const { id = '' } = useParams()
|
||||||
const isNew = id === 'new'
|
const isNew = id === 'new'
|
||||||
const { data: JsonSchema, isLoading: isLoadingJsonSchema } =
|
const { data: jsonSchema, isLoading: isLoadingJsonSchema } =
|
||||||
modulesServiceApi.useGetByModuleIdQuery(moduleId)
|
modulesServiceApi.useGetByModuleIdQuery(moduleId)
|
||||||
const {
|
const {
|
||||||
data: currentConfig,
|
data: currentConfig,
|
||||||
@@ -43,9 +38,14 @@ const ConfigurationEditorPage: FC = () => {
|
|||||||
const [bufConfig, setBufConfig] = useState<ConfigType>()
|
const [bufConfig, setBufConfig] = useState<ConfigType>()
|
||||||
const [detailsErrors, setDetailsError] = useState({ details: {}, isOpenDetailsErrorModal: false })
|
const [detailsErrors, setDetailsError] = useState({ details: {}, isOpenDetailsErrorModal: false })
|
||||||
const [disableBtn, setDisableBtn] = useState(false)
|
const [disableBtn, setDisableBtn] = useState(false)
|
||||||
|
const submitRef = useRef<any>(null)
|
||||||
|
|
||||||
|
const formRadio = 'form'
|
||||||
|
const codeRadio = 'code'
|
||||||
|
const jsonRadio = 'json'
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setBufConfig(isNew ? {} : sortObject(currentConfig))
|
setBufConfig(isNew ? {} : sortObject(currentConfig))
|
||||||
}, [isCurrentConfigLoading])
|
}, [isCurrentConfigLoading])
|
||||||
|
|
||||||
const itemsSaveBtn = [
|
const itemsSaveBtn = [
|
||||||
@@ -61,15 +61,24 @@ const ConfigurationEditorPage: FC = () => {
|
|||||||
|
|
||||||
const onSaveBtn: MenuProps['onClick'] = (e, upVersion = undefined) => {
|
const onSaveBtn: MenuProps['onClick'] = (e, upVersion = undefined) => {
|
||||||
const isUnsafe = e.key === 'unsafe'
|
const isUnsafe = e.key === 'unsafe'
|
||||||
handleSaveClick(upVersion, isUnsafe)
|
handleSaveClick(upVersion, isUnsafe, false)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const onRadioChange = (e: RadioChangeEvent) => {
|
const onRadioChange = (e: RadioChangeEvent) => {
|
||||||
|
if (!bufConfig) return
|
||||||
|
if (submitRef.current && radioValue === formRadio) {
|
||||||
|
setBufConfig({ ...bufConfig, data: { ...submitRef.current } })
|
||||||
|
}
|
||||||
setRadioValue(e.target.value)
|
setRadioValue(e.target.value)
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleSaveClick = (upVersion?: number, unsafe?: boolean) => {
|
const handleSaveClick = (upVersion?: number, unsafe?: boolean, isGoBack?: boolean) => {
|
||||||
let newData = {}
|
let newData = {}
|
||||||
|
const sentData =
|
||||||
|
radioValue === formRadio
|
||||||
|
? { ...bufConfig, data: { ...submitRef.current } }
|
||||||
|
: { ...bufConfig }
|
||||||
if (bufConfig) {
|
if (bufConfig) {
|
||||||
if (isNew) {
|
if (isNew) {
|
||||||
newData = {
|
newData = {
|
||||||
@@ -77,13 +86,13 @@ const ConfigurationEditorPage: FC = () => {
|
|||||||
moduleId: moduleId,
|
moduleId: moduleId,
|
||||||
id: '',
|
id: '',
|
||||||
version: 0,
|
version: 0,
|
||||||
data: bufConfig.data,
|
data: sentData.data,
|
||||||
unsafe: unsafe
|
unsafe: unsafe
|
||||||
} as ConfigType
|
} as ConfigType
|
||||||
}
|
}
|
||||||
if (currentConfig) {
|
if (currentConfig) {
|
||||||
newData = {
|
newData = {
|
||||||
...bufConfig,
|
...sentData,
|
||||||
version: upVersion ? upVersion : currentConfig.version,
|
version: upVersion ? upVersion : currentConfig.version,
|
||||||
unsafe: unsafe
|
unsafe: unsafe
|
||||||
} as ConfigType
|
} as ConfigType
|
||||||
@@ -93,6 +102,7 @@ const ConfigurationEditorPage: FC = () => {
|
|||||||
.unwrap()
|
.unwrap()
|
||||||
.then(({ id }) => {
|
.then(({ id }) => {
|
||||||
isNew && navigate(`/${moduleId}/configEditor/${id}`)
|
isNew && navigate(`/${moduleId}/configEditor/${id}`)
|
||||||
|
isGoBack && navigate(`/modules/${moduleId}/configurations`)
|
||||||
message.success('Конфигурация успешно сохранена')
|
message.success('Конфигурация успешно сохранена')
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
@@ -102,10 +112,12 @@ const ConfigurationEditorPage: FC = () => {
|
|||||||
if (e.data.errorCode === 2003) {
|
if (e.data.errorCode === 2003) {
|
||||||
setDetailsError({ details: e.data.details, isOpenDetailsErrorModal: true })
|
setDetailsError({ details: e.data.details, isOpenDetailsErrorModal: true })
|
||||||
}
|
}
|
||||||
|
if (e.data.errorCode === 400) {
|
||||||
|
message.error('Невалидный JSON объект')
|
||||||
|
}
|
||||||
message.error('Ошибка обновления элемента')
|
message.error('Ошибка обновления элемента')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isLoadingJsonSchema || isCurrentConfigLoading) {
|
if (isLoadingJsonSchema || isCurrentConfigLoading) {
|
||||||
return <Spin className="spin" />
|
return <Spin className="spin" />
|
||||||
}
|
}
|
||||||
@@ -114,15 +126,18 @@ const ConfigurationEditorPage: FC = () => {
|
|||||||
const renderContent = () => {
|
const renderContent = () => {
|
||||||
|
|
||||||
switch (radioValue) {
|
switch (radioValue) {
|
||||||
// case 'form':
|
case formRadio:
|
||||||
// return (
|
return (
|
||||||
// <ConfigurationEditorForm
|
<ConfigurationEditorForm
|
||||||
// bufConfig={bufConfig}
|
submitRef={submitRef}
|
||||||
// setBufConfig={setBufConfig}
|
bufConfig={bufConfig}
|
||||||
// isCurrentConfigLoading={isCurrentConfigLoading}
|
setBufConfig={setBufConfig}
|
||||||
// />
|
jsonSchema={jsonSchema}
|
||||||
// )
|
isCurrentConfigLoading={isCurrentConfigLoading}
|
||||||
case 'json':
|
setDisableBtn={setDisableBtn}
|
||||||
|
/>
|
||||||
|
)
|
||||||
|
case jsonRadio:
|
||||||
return (
|
return (
|
||||||
<ConfigurationEditorJson
|
<ConfigurationEditorJson
|
||||||
bufConfig={bufConfig}
|
bufConfig={bufConfig}
|
||||||
@@ -130,7 +145,7 @@ const ConfigurationEditorPage: FC = () => {
|
|||||||
isCurrentConfigLoading={isCurrentConfigLoading}
|
isCurrentConfigLoading={isCurrentConfigLoading}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
case 'code':
|
case codeRadio:
|
||||||
return (
|
return (
|
||||||
<ConfigurationEditorCode
|
<ConfigurationEditorCode
|
||||||
setDisableBtn={setDisableBtn}
|
setDisableBtn={setDisableBtn}
|
||||||
@@ -153,17 +168,14 @@ const ConfigurationEditorPage: FC = () => {
|
|||||||
<h1>{bufConfig?.name}</h1>
|
<h1>{bufConfig?.name}</h1>
|
||||||
<div className="configuration-editor-page__controll">
|
<div className="configuration-editor-page__controll">
|
||||||
<Button
|
<Button
|
||||||
disabled={!JsonSchema}
|
disabled={!jsonSchema}
|
||||||
className="configurations____buttons__show-schema-btn"
|
className="configurations____buttons__show-schema-btn"
|
||||||
onClick={() => setShowSchemeModal(true)}
|
onClick={() => setShowSchemeModal(true)}
|
||||||
>
|
>
|
||||||
Текущая схема конфигурации
|
Текущая схема конфигурации
|
||||||
</Button>
|
</Button>
|
||||||
<Dropdown.Button
|
<Dropdown.Button
|
||||||
onClick={() => {
|
onClick={() => handleSaveClick(undefined, undefined, true)}
|
||||||
handleSaveClick()
|
|
||||||
navigate(`/modules/${moduleId}/configurations`)
|
|
||||||
}}
|
|
||||||
disabled={disableBtn}
|
disabled={disableBtn}
|
||||||
type="primary"
|
type="primary"
|
||||||
className="configuration-editor-page__save-btn"
|
className="configuration-editor-page__save-btn"
|
||||||
@@ -175,10 +187,12 @@ const ConfigurationEditorPage: FC = () => {
|
|||||||
|
|
||||||
</section>
|
</section>
|
||||||
<div className="configuration-editor-page__content">
|
<div className="configuration-editor-page__content">
|
||||||
<Radio.Group defaultValue="json" size="large" onChange={onRadioChange}>
|
<Radio.Group defaultValue={jsonRadio} disabled={disableBtn} size="large" onChange={onRadioChange}>
|
||||||
<Radio.Button disabled value="form">Форма</Radio.Button>
|
<Radio.Button value={formRadio}>Форма</Radio.Button>
|
||||||
<Radio.Button disabled={disableBtn} value="json">JSON</Radio.Button>
|
<Radio.Button disabled={disableBtn} value={jsonRadio}>
|
||||||
<Radio.Button value="code">Редактор кода</Radio.Button>
|
JSON
|
||||||
|
</Radio.Button>
|
||||||
|
<Radio.Button value={codeRadio}>Редактор кода</Radio.Button>
|
||||||
</Radio.Group>
|
</Radio.Group>
|
||||||
|
|
||||||
{renderContent()}
|
{renderContent()}
|
||||||
@@ -186,7 +200,7 @@ const ConfigurationEditorPage: FC = () => {
|
|||||||
|
|
||||||
|
|
||||||
<ConfigSchemaModal
|
<ConfigSchemaModal
|
||||||
schema={JsonSchema?.schema}
|
schema={jsonSchema?.schema}
|
||||||
open={showSchemeModal}
|
open={showSchemeModal}
|
||||||
onClose={() => setShowSchemeModal(false)}
|
onClose={() => setShowSchemeModal(false)}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ import { PermissionKeysType } from '@type/roles.type.ts'
|
|||||||
|
|
||||||
import './configurations.scss'
|
import './configurations.scss'
|
||||||
|
|
||||||
|
|
||||||
const Configurations = () => {
|
const Configurations = () => {
|
||||||
const {
|
const {
|
||||||
data: modulesList = [],
|
data: modulesList = [],
|
||||||
|
|||||||
@@ -1,9 +1,18 @@
|
|||||||
import { Spin, Table, Tag, Tooltip } from 'antd'
|
import { Spin, Table, Tag, Tooltip } from 'antd'
|
||||||
import { ColumnsType } from 'antd/es/table'
|
import { ColumnsType } from 'antd/es/table'
|
||||||
|
import dayjs from 'dayjs'
|
||||||
|
import relativeTime from 'dayjs/plugin/relativeTime'
|
||||||
import { memo, useEffect, useState } from 'react'
|
import { memo, useEffect, useState } from 'react'
|
||||||
import { useNavigate, useParams } from 'react-router-dom'
|
import { useNavigate, useParams } from 'react-router-dom'
|
||||||
|
|
||||||
import { AddressType, EndpointType, ModuleStatusType, ModuleType } from '@pages/ModulesPage/module.type.ts'
|
import { dateFormats } from '@constants/date.ts'
|
||||||
|
|
||||||
|
import {
|
||||||
|
AddressType,
|
||||||
|
EndpointType,
|
||||||
|
ModuleStatusType,
|
||||||
|
ModuleType
|
||||||
|
} from '@pages/ModulesPage/module.type.ts'
|
||||||
|
|
||||||
import useRole from '@hooks/useRole.tsx'
|
import useRole from '@hooks/useRole.tsx'
|
||||||
|
|
||||||
@@ -14,9 +23,6 @@ import { routePaths } from '@routes/routePaths.ts'
|
|||||||
import { PermissionKeysType } from '@type/roles.type.ts'
|
import { PermissionKeysType } from '@type/roles.type.ts'
|
||||||
|
|
||||||
import './connections.scss'
|
import './connections.scss'
|
||||||
import dayjs from 'dayjs'
|
|
||||||
import relativeTime from 'dayjs/plugin/relativeTime'
|
|
||||||
import { dateFormats } from '@constants/date.ts'
|
|
||||||
|
|
||||||
const Connections = () => {
|
const Connections = () => {
|
||||||
const { data: ConnectionsList = [], isLoading: isModulesLoading } =
|
const { data: ConnectionsList = [], isLoading: isModulesLoading } =
|
||||||
@@ -55,9 +61,9 @@ const Connections = () => {
|
|||||||
dayjs(obj).format(dateFormats.fullFormat)
|
dayjs(obj).format(dateFormats.fullFormat)
|
||||||
|
|
||||||
const keySelector = ({
|
const keySelector = ({
|
||||||
address: { ip, port },
|
address: { ip, port },
|
||||||
establishedAt
|
establishedAt
|
||||||
}: ModuleStatusType) => ip + port + establishedAt
|
}: ModuleStatusType) => ip + port + establishedAt
|
||||||
|
|
||||||
const renderEndpoints = ({ endpoints }: ModuleStatusType) => {
|
const renderEndpoints = ({ endpoints }: ModuleStatusType) => {
|
||||||
if (endpoints && endpoints.length) {
|
if (endpoints && endpoints.length) {
|
||||||
@@ -67,7 +73,11 @@ const Connections = () => {
|
|||||||
<li className="connection-page__endpoint-list__item" key={path}>
|
<li className="connection-page__endpoint-list__item" key={path}>
|
||||||
{path}
|
{path}
|
||||||
{inner && (
|
{inner && (
|
||||||
<Tag className="connection-page__inner-tag" color="processing" bordered={false}>
|
<Tag
|
||||||
|
className="connection-page__inner-tag"
|
||||||
|
color="processing"
|
||||||
|
bordered={false}
|
||||||
|
>
|
||||||
Внутренний
|
Внутренний
|
||||||
</Tag>
|
</Tag>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ const LoginPage = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const handleError = (err: AxiosError<MSPError>): void => {
|
const handleError = (err: AxiosError<MSPError>): void => {
|
||||||
const { response,status } = err
|
const { response, status } = err
|
||||||
if (response && status === 401) {
|
if (response && status === 401) {
|
||||||
setFormError(response.statusText, messages.loginError)
|
setFormError(response.statusText, messages.loginError)
|
||||||
} else {
|
} else {
|
||||||
@@ -57,9 +57,8 @@ const LoginPage = () => {
|
|||||||
LocalStorage.set(localStorageKeys.HEADER_NAME, response.headerName)
|
LocalStorage.set(localStorageKeys.HEADER_NAME, response.headerName)
|
||||||
LocalStorage.set(localStorageKeys.USER_TOKEN, response.token)
|
LocalStorage.set(localStorageKeys.USER_TOKEN, response.token)
|
||||||
const redirectUrl =
|
const redirectUrl =
|
||||||
localStorage.getItem('redirectUrl') || routePaths.home
|
sessionStorage.getItem('prevRoute') || routePaths.home
|
||||||
navigate(redirectUrl, { replace: true })
|
navigate(redirectUrl, { replace: true })
|
||||||
localStorage.removeItem('redirectUrl')
|
|
||||||
})
|
})
|
||||||
.catch((err: AxiosError<MSPError>) => handleError(err))
|
.catch((err: AxiosError<MSPError>) => handleError(err))
|
||||||
}
|
}
|
||||||
@@ -106,15 +105,15 @@ const LoginPage = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Layout>
|
<Layout>
|
||||||
<section className="login-page">
|
<section className="login-page">
|
||||||
<form className="login-page__content">
|
<form className="login-page__content">
|
||||||
<h1 data-cy="login-title" className="login-page__content__title">
|
<h1 data-cy="login-title" className="login-page__content__title">
|
||||||
Вход в систему
|
Вход в систему
|
||||||
</h1>
|
</h1>
|
||||||
<Divider />
|
<Divider />
|
||||||
{renderInternalAuthForm()}
|
{renderInternalAuthForm()}
|
||||||
</form>
|
</form>
|
||||||
</section>
|
</section>
|
||||||
</Layout>
|
</Layout>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ import { PermissionKeysType } from '@type/roles.type.ts'
|
|||||||
|
|
||||||
import './modules-page.scss'
|
import './modules-page.scss'
|
||||||
|
|
||||||
|
|
||||||
const { Column } = Layout
|
const { Column } = Layout
|
||||||
|
|
||||||
const ModulesPage = () => {
|
const ModulesPage = () => {
|
||||||
@@ -38,7 +37,7 @@ const ModulesPage = () => {
|
|||||||
const [searchParams, setSearchParams] = useSearchParams()
|
const [searchParams, setSearchParams] = useSearchParams()
|
||||||
const { data: ModulesList = [], isLoading: isModulesLoading } =
|
const { data: ModulesList = [], isLoading: isModulesLoading } =
|
||||||
modulesServiceApi.useGetModulesQuery('modules', {
|
modulesServiceApi.useGetModulesQuery('modules', {
|
||||||
pollingInterval: 1000,
|
pollingInterval: 5000,
|
||||||
skipPollingIfUnfocused: true
|
skipPollingIfUnfocused: true
|
||||||
})
|
})
|
||||||
const [removeModule] = modulesServiceApi.useRemoveModuleMutation()
|
const [removeModule] = modulesServiceApi.useRemoveModuleMutation()
|
||||||
@@ -133,63 +132,65 @@ const ModulesPage = () => {
|
|||||||
)
|
)
|
||||||
|
|
||||||
const renderItems = (item: ModuleType) => {
|
const renderItems = (item: ModuleType) => {
|
||||||
const isSame = versionCompare(item?.status?.map((i) => i.version))
|
const isSame = versionCompare(item?.status?.map((i) => i.version))
|
||||||
const textTooltip = isSame
|
const textTooltip = isSame
|
||||||
? 'Активны экземпляры одинаковых версий'
|
? 'Активны экземпляры одинаковых версий'
|
||||||
: 'Активны экземпляры разных версий'
|
: 'Активны экземпляры разных версий'
|
||||||
const lastVersion = getLastVersion(item.status?.map((i) => i.version))
|
const lastVersion = getLastVersion(item.status?.map((i) => i.version))
|
||||||
|
|
||||||
const renderVersion = () => {
|
const renderVersion = () => {
|
||||||
if (!isSame && lastVersion) {
|
if (!isSame && lastVersion) {
|
||||||
return (
|
return (
|
||||||
<Tag icon={<ExclamationCircleOutlined />} color="warning">
|
<Tag icon={<ExclamationCircleOutlined />} color="warning">
|
||||||
{lastVersion}
|
{lastVersion}
|
||||||
</Tag>
|
</Tag>
|
||||||
)
|
)
|
||||||
}
|
|
||||||
if (isSame && lastVersion) {
|
|
||||||
return <Tag color="default">{lastVersion}</Tag>
|
|
||||||
}
|
|
||||||
return ''
|
|
||||||
}
|
}
|
||||||
|
if (isSame && lastVersion) {
|
||||||
|
return <Tag color="default">{lastVersion}</Tag>
|
||||||
|
}
|
||||||
|
return ''
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<List.Item>
|
<List.Item>
|
||||||
<Tooltip mouseEnterDelay={1} title={item.name}>
|
<Tooltip mouseEnterDelay={1} title={item.name}>
|
||||||
<List.Item.Meta
|
<List.Item.Meta
|
||||||
title={
|
title={
|
||||||
<div className="module-item__name">
|
<div className="module-item__name">
|
||||||
<span>{item.name}</span>
|
<span>{item.name}</span>
|
||||||
<Tooltip
|
<Tooltip
|
||||||
overlayInnerStyle={{ width: '300px' }}
|
overlayInnerStyle={{ width: '300px' }}
|
||||||
title={textTooltip}
|
title={textTooltip}
|
||||||
>
|
>
|
||||||
{renderVersion()}
|
{renderVersion()}
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
description={
|
description={
|
||||||
<div className="module-item__content">
|
<div className="module-item__content">
|
||||||
<span className="module-item__content__description">
|
<span className="module-item__content__description">
|
||||||
активные экземпляры:
|
активные экземпляры:
|
||||||
</span>
|
</span>
|
||||||
<Badge
|
<Badge
|
||||||
size="small"
|
size="small"
|
||||||
showZero
|
showZero
|
||||||
count={(item.status && item.status.length) || 0}
|
count={(item.status && item.status.length) || 0}
|
||||||
color={!item.status || !item.status.length ? '' : 'cyan'}
|
color={!item.status || !item.status.length ? '' : 'cyan'}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</List.Item>
|
</List.Item>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<section className="modules-page">
|
<section className="modules-page">
|
||||||
<Column
|
<Column
|
||||||
|
title="Модули"
|
||||||
|
searchPlaceholder="Введите имя или id"
|
||||||
items={filterFirstColumnItems(ModulesList, searchValue)}
|
items={filterFirstColumnItems(ModulesList, searchValue)}
|
||||||
showAddBtn={false}
|
showAddBtn={false}
|
||||||
showUpdateBtn={false}
|
showUpdateBtn={false}
|
||||||
|
|||||||
@@ -90,15 +90,15 @@ export interface ModuleType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface ResponseSchemaType {
|
export interface ResponseSchemaType {
|
||||||
createdAt: string,
|
createdAt: string
|
||||||
id: string,
|
id: string
|
||||||
moduleId: string,
|
moduleId: string
|
||||||
schema: JSONSchema,
|
schema: JSONSchema
|
||||||
updatedAt: string,
|
updatedAt: string
|
||||||
version: string
|
version: string
|
||||||
}
|
}
|
||||||
export interface ConfigResponse {
|
export interface ConfigResponse {
|
||||||
originalResponse: ConfigType[]
|
originalResponse: ConfigType[]
|
||||||
activeConfigs: ConfigType[]
|
activeConfigs: ConfigType[]
|
||||||
inactiveConfigs:ConfigType[]
|
inactiveConfigs: ConfigType[]
|
||||||
}
|
}
|
||||||
@@ -4,14 +4,13 @@ import { useNavigate } from 'react-router-dom'
|
|||||||
|
|
||||||
import { routePaths } from '@routes/routePaths.ts'
|
import { routePaths } from '@routes/routePaths.ts'
|
||||||
|
|
||||||
|
|
||||||
const { NotFoundPage } = Layout
|
const { NotFoundPage } = Layout
|
||||||
|
|
||||||
const NotFound = () => {
|
const NotFound = () => {
|
||||||
const navigate = useNavigate()
|
const navigate = useNavigate()
|
||||||
return (
|
return (
|
||||||
<NotFoundPage>
|
<NotFoundPage>
|
||||||
<Button type="primary" onClick={() => navigate(routePaths.modules)}>
|
<Button type="primary" onClick={() => navigate(routePaths.home)}>
|
||||||
На главную
|
На главную
|
||||||
</Button>
|
</Button>
|
||||||
</NotFoundPage>
|
</NotFoundPage>
|
||||||
|
|||||||
@@ -192,6 +192,8 @@ const RolesPage = () => {
|
|||||||
return (
|
return (
|
||||||
<section className="roles-page">
|
<section className="roles-page">
|
||||||
<Column
|
<Column
|
||||||
|
title="Роли пользователей"
|
||||||
|
searchPlaceholder="Введите имя или id"
|
||||||
showUpdateBtn={false}
|
showUpdateBtn={false}
|
||||||
items={filterFirstColumnItems(data, searchValue)}
|
items={filterFirstColumnItems(data, searchValue)}
|
||||||
showAddBtn={isAddRolePermissions}
|
showAddBtn={isAddRolePermissions}
|
||||||
|
|||||||
@@ -1,8 +1,11 @@
|
|||||||
import { Pagination, Spin, Table } from 'antd'
|
import { Pagination, Spin, Table } from 'antd'
|
||||||
import { ColumnsType } from 'antd/es/table'
|
import { ColumnsType } from 'antd/es/table'
|
||||||
|
import dayjs from 'dayjs'
|
||||||
import { useEffect, useState } from 'react'
|
import { useEffect, useState } from 'react'
|
||||||
import { useNavigate } from 'react-router-dom'
|
import { useNavigate } from 'react-router-dom'
|
||||||
|
|
||||||
|
import { dateFormats } from '@constants/date.ts'
|
||||||
|
|
||||||
import { getUserFullName } from '@utils/userUtils/getFullNameUtil'
|
import { getUserFullName } from '@utils/userUtils/getFullNameUtil'
|
||||||
|
|
||||||
import useRole from '@hooks/useRole'
|
import useRole from '@hooks/useRole'
|
||||||
@@ -16,8 +19,6 @@ import { LogType } from '@type/log.type'
|
|||||||
import { PermissionKeysType } from '@type/roles.type'
|
import { PermissionKeysType } from '@type/roles.type'
|
||||||
|
|
||||||
import './security-log-page.scss'
|
import './security-log-page.scss'
|
||||||
import dayjs from 'dayjs'
|
|
||||||
import { dateFormats } from '@constants/date.ts'
|
|
||||||
|
|
||||||
const limit = 10
|
const limit = 10
|
||||||
|
|
||||||
@@ -77,7 +78,7 @@ const SecurityLogPage = () => {
|
|||||||
dataIndex: 'createdAt',
|
dataIndex: 'createdAt',
|
||||||
key: 'createdAt',
|
key: 'createdAt',
|
||||||
render: (value) => {
|
render: (value) => {
|
||||||
return dayjs(value).format(dateFormats.fullFormat)
|
return dayjs(value).format(dateFormats.fullFormat)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,9 +9,11 @@ import {
|
|||||||
Tooltip
|
Tooltip
|
||||||
} from 'antd'
|
} from 'antd'
|
||||||
import { ColumnsType } from 'antd/es/table'
|
import { ColumnsType } from 'antd/es/table'
|
||||||
|
import dayjs from 'dayjs'
|
||||||
import { useEffect, useState } from 'react'
|
import { useEffect, useState } from 'react'
|
||||||
import { useNavigate } from 'react-router-dom'
|
import { useNavigate } from 'react-router-dom'
|
||||||
|
|
||||||
|
import { dateFormats } from '@constants/date.ts'
|
||||||
import { SessionStatusKeysType, sessionStatuses } from '@constants/statuses'
|
import { SessionStatusKeysType, sessionStatuses } from '@constants/statuses'
|
||||||
|
|
||||||
import { getUserFullName } from '@utils/userUtils/getFullNameUtil'
|
import { getUserFullName } from '@utils/userUtils/getFullNameUtil'
|
||||||
@@ -27,8 +29,6 @@ import { PermissionKeysType } from '@type/roles.type.ts'
|
|||||||
import { SessionType } from '@type/session.type'
|
import { SessionType } from '@type/session.type'
|
||||||
|
|
||||||
import './sessions-page.scss'
|
import './sessions-page.scss'
|
||||||
import dayjs from 'dayjs'
|
|
||||||
import { dateFormats } from '@constants/date.ts'
|
|
||||||
|
|
||||||
const limit = 10
|
const limit = 10
|
||||||
|
|
||||||
@@ -97,7 +97,7 @@ const SessionsPage = () => {
|
|||||||
dataIndex: 'createdAt',
|
dataIndex: 'createdAt',
|
||||||
key: 'createdAt',
|
key: 'createdAt',
|
||||||
render: (value) => {
|
render: (value) => {
|
||||||
return dayjs(value).format(dateFormats.fullFormat)
|
return dayjs(value).format(dateFormats.fullFormat)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -105,7 +105,7 @@ const SessionsPage = () => {
|
|||||||
dataIndex: 'expiredAt',
|
dataIndex: 'expiredAt',
|
||||||
key: 'expiredAt',
|
key: 'expiredAt',
|
||||||
render: (value) => {
|
render: (value) => {
|
||||||
return dayjs(value).format(dateFormats.fullFormat)
|
return dayjs(value).format(dateFormats.fullFormat)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -135,7 +135,7 @@ const SessionsPage = () => {
|
|||||||
/>
|
/>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</Popconfirm>
|
</Popconfirm>
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ import { LabelItem } from 'isp-ui-kit/dist/FormComponents/formTypes'
|
|||||||
|
|
||||||
import './user-editor.scss'
|
import './user-editor.scss'
|
||||||
|
|
||||||
|
|
||||||
const UserEditor = () => {
|
const UserEditor = () => {
|
||||||
const location = useLocation()
|
const location = useLocation()
|
||||||
const navigate = useNavigate()
|
const navigate = useNavigate()
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ import { UserType } from '@type/user.type.ts'
|
|||||||
|
|
||||||
import './users-page.scss'
|
import './users-page.scss'
|
||||||
|
|
||||||
|
|
||||||
const UsersPage = () => {
|
const UsersPage = () => {
|
||||||
const { data: allUsers = [], isLoading: isUsersLoading } =
|
const { data: allUsers = [], isLoading: isUsersLoading } =
|
||||||
userServiceApi.useGetAllUsersQuery()
|
userServiceApi.useGetAllUsersQuery()
|
||||||
@@ -131,8 +130,12 @@ const UsersPage = () => {
|
|||||||
dataIndex: 'email',
|
dataIndex: 'email',
|
||||||
key: 'email',
|
key: 'email',
|
||||||
render: (value, record) => {
|
render: (value, record) => {
|
||||||
if(record.blocked){
|
if (record.blocked) {
|
||||||
return <div>{value} <Tag color="red">Заблокирован</Tag></div>
|
return (
|
||||||
|
<div>
|
||||||
|
{value} <Tag color="red">Заблокирован</Tag>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
return value
|
return value
|
||||||
@@ -170,9 +173,9 @@ const UsersPage = () => {
|
|||||||
render: (_, record) => {
|
render: (_, record) => {
|
||||||
return (
|
return (
|
||||||
<div className="users-page__content__table__actions">
|
<div className="users-page__content__table__actions">
|
||||||
<Button.Group className="button_group">
|
<Button.Group className="button_group">
|
||||||
{hasBlockUserPermission && renderBlockButton(record)}
|
{hasBlockUserPermission && renderBlockButton(record)}
|
||||||
{hasUpdateUserPermission && (
|
{hasUpdateUserPermission && (
|
||||||
<Tooltip key="EditOutlined" title="Редактировать пользователя">
|
<Tooltip key="EditOutlined" title="Редактировать пользователя">
|
||||||
<Button
|
<Button
|
||||||
data-cy={`users-page__content__table__actions__edit-btn ${record.id}`}
|
data-cy={`users-page__content__table__actions__edit-btn ${record.id}`}
|
||||||
@@ -185,8 +188,8 @@ const UsersPage = () => {
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
)}
|
)}
|
||||||
{hasDeleteUserPermission && (
|
{hasDeleteUserPermission && (
|
||||||
<Popconfirm
|
<Popconfirm
|
||||||
title="Вы действительно хотите удалить этого пользователя?"
|
title="Вы действительно хотите удалить этого пользователя?"
|
||||||
onConfirm={() => handleDeleteUser(record.id)}
|
onConfirm={() => handleDeleteUser(record.id)}
|
||||||
@@ -199,8 +202,8 @@ const UsersPage = () => {
|
|||||||
/>
|
/>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</Popconfirm>
|
</Popconfirm>
|
||||||
)}
|
)}
|
||||||
</Button.Group>
|
</Button.Group>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ import { LocalStorage } from '@utils/localStorageUtils.ts'
|
|||||||
|
|
||||||
import { routePaths } from '@routes/routePaths.ts'
|
import { routePaths } from '@routes/routePaths.ts'
|
||||||
|
|
||||||
|
|
||||||
const PrivateRoute = () => {
|
const PrivateRoute = () => {
|
||||||
const location = useLocation()
|
const location = useLocation()
|
||||||
const userToken = LocalStorage.get(localStorageKeys.USER_TOKEN)
|
const userToken = LocalStorage.get(localStorageKeys.USER_TOKEN)
|
||||||
|
|||||||
@@ -36,5 +36,5 @@ export const routePaths: Record<RoutePaths, string> = {
|
|||||||
connections: 'connections',
|
connections: 'connections',
|
||||||
configurations: 'configurations',
|
configurations: 'configurations',
|
||||||
allVersions: ':configId/all_versions',
|
allVersions: ':configId/all_versions',
|
||||||
configEditor: 'configEditor',
|
configEditor: 'configEditor'
|
||||||
}
|
}
|
||||||
@@ -10,7 +10,6 @@ import {
|
|||||||
AccessListSetListSetOneRequestType
|
AccessListSetListSetOneRequestType
|
||||||
} from '@type/accessList.type.ts'
|
} from '@type/accessList.type.ts'
|
||||||
|
|
||||||
|
|
||||||
const accessListApi = createApi({
|
const accessListApi = createApi({
|
||||||
reducerPath: 'accessListApi',
|
reducerPath: 'accessListApi',
|
||||||
refetchOnFocus: true,
|
refetchOnFocus: true,
|
||||||
@@ -21,7 +20,10 @@ const accessListApi = createApi({
|
|||||||
query: ({ id }) => ({ url: apiPaths.getById, data: { id } }),
|
query: ({ id }) => ({ url: apiPaths.getById, data: { id } }),
|
||||||
providesTags: () => ['AccessItems']
|
providesTags: () => ['AccessItems']
|
||||||
}),
|
}),
|
||||||
setList: builder.mutation<AccessListMethodType[], AccessListSetListRequestType>({
|
setList: builder.mutation<
|
||||||
|
AccessListMethodType[],
|
||||||
|
AccessListSetListRequestType
|
||||||
|
>({
|
||||||
query: (data) => ({ url: apiPaths.setList, data }),
|
query: (data) => ({ url: apiPaths.setList, data }),
|
||||||
invalidatesTags: () => ['AccessItems']
|
invalidatesTags: () => ['AccessItems']
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -41,8 +41,9 @@ apiService.interceptors.response.use(
|
|||||||
console.error(error)
|
console.error(error)
|
||||||
if (error.response && error.response.status === 401) {
|
if (error.response && error.response.status === 401) {
|
||||||
localClear()
|
localClear()
|
||||||
|
const prevRoute = sessionStorage.getItem('prevRoute') || ''
|
||||||
message.error('Ваша сессия истекла"').then()
|
message.error('Ваша сессия истекла"').then()
|
||||||
LocalStorage.set('redirectUrl', location.pathname)
|
sessionStorage.setItem('prevRoute', prevRoute)
|
||||||
window.location.href = routePaths.login
|
window.location.href = routePaths.login
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,11 +6,10 @@ import { axiosBaseQuery } from '@utils/apiUtils.ts'
|
|||||||
|
|
||||||
import { AppApiResponseType, DomainType } from '@type/app.type.ts'
|
import { AppApiResponseType, DomainType } from '@type/app.type.ts'
|
||||||
|
|
||||||
|
|
||||||
const appApi = createApi({
|
const appApi = createApi({
|
||||||
reducerPath: 'appService',
|
reducerPath: 'appService',
|
||||||
refetchOnFocus: true,
|
refetchOnFocus: true,
|
||||||
tagTypes: ['SystemTreeApps' , 'Application'],
|
tagTypes: ['SystemTreeApps', 'Application'],
|
||||||
baseQuery: axiosBaseQuery({ baseUrl: apiPaths.baseSystemUrl }),
|
baseQuery: axiosBaseQuery({ baseUrl: apiPaths.baseSystemUrl }),
|
||||||
endpoints: (builder) => ({
|
endpoints: (builder) => ({
|
||||||
getSystemTree: builder.query<AppApiResponseType, void>({
|
getSystemTree: builder.query<AppApiResponseType, void>({
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ import { axiosBaseQuery } from '@utils/apiUtils.ts'
|
|||||||
|
|
||||||
import { VersionType } from '@type/version.type.ts'
|
import { VersionType } from '@type/version.type.ts'
|
||||||
|
|
||||||
|
|
||||||
const configServiceApi = createApi({
|
const configServiceApi = createApi({
|
||||||
reducerPath: 'configApi',
|
reducerPath: 'configApi',
|
||||||
tagTypes: ['configs', 'versions', 'config'],
|
tagTypes: ['configs', 'versions', 'config'],
|
||||||
|
|||||||
@@ -1,11 +1,14 @@
|
|||||||
import { createApi } from '@reduxjs/toolkit/query/react'
|
import { createApi } from '@reduxjs/toolkit/query/react'
|
||||||
|
|
||||||
import { apiPaths } from '@constants/api/apiPaths.ts'
|
import { apiPaths } from '@constants/api/apiPaths.ts'
|
||||||
|
|
||||||
import { ModuleType, ResponseSchemaType } from '@pages/ModulesPage/module.type.ts'
|
import {
|
||||||
|
ModuleType,
|
||||||
|
ResponseSchemaType
|
||||||
|
} from '@pages/ModulesPage/module.type.ts'
|
||||||
|
|
||||||
import { axiosBaseQuery } from '@utils/apiUtils.ts'
|
import { axiosBaseQuery } from '@utils/apiUtils.ts'
|
||||||
|
|
||||||
|
|
||||||
const modulesServiceApi = createApi({
|
const modulesServiceApi = createApi({
|
||||||
reducerPath: 'modulesServiceApi',
|
reducerPath: 'modulesServiceApi',
|
||||||
refetchOnFocus: false,
|
refetchOnFocus: false,
|
||||||
@@ -28,9 +31,9 @@ const modulesServiceApi = createApi({
|
|||||||
url: apiPaths.getByModuleId,
|
url: apiPaths.getByModuleId,
|
||||||
data: { moduleId }
|
data: { moduleId }
|
||||||
}),
|
}),
|
||||||
providesTags: () => ['schema'],
|
providesTags: () => ['schema']
|
||||||
}),
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
export default modulesServiceApi
|
export default modulesServiceApi
|
||||||
@@ -10,7 +10,6 @@ import {
|
|||||||
RouteType
|
RouteType
|
||||||
} from '@type/accessList.type.ts'
|
} from '@type/accessList.type.ts'
|
||||||
|
|
||||||
|
|
||||||
const routeApi = createApi({
|
const routeApi = createApi({
|
||||||
reducerPath: 'routeApi',
|
reducerPath: 'routeApi',
|
||||||
refetchOnFocus: true,
|
refetchOnFocus: true,
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ import {
|
|||||||
|
|
||||||
import { fetchProfile } from './ActionCreators.ts'
|
import { fetchProfile } from './ActionCreators.ts'
|
||||||
|
|
||||||
|
|
||||||
export enum StateProfileStatus {
|
export enum StateProfileStatus {
|
||||||
resolved = 'resolved',
|
resolved = 'resolved',
|
||||||
pending = 'pending',
|
pending = 'pending',
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ export enum PermissionKeysType {
|
|||||||
role_add = 'role_add', // Создание роли
|
role_add = 'role_add', // Создание роли
|
||||||
role_update = 'role_update', // Обновление роли
|
role_update = 'role_update', // Обновление роли
|
||||||
role_delete = 'role_delete', // Удаление роли
|
role_delete = 'role_delete', // Удаление роли
|
||||||
security_log_view = 'security_log_view', // Просмотр журналов ИБ
|
security_log_view = 'security_log_view' // Просмотр журналов ИБ
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface RoleType {
|
export interface RoleType {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
declare global {
|
declare global {
|
||||||
interface Window {
|
interface Window {
|
||||||
config: { [key: string]: any };
|
config: { [key: string]: any }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+21
-16
@@ -17,10 +17,16 @@ const sortObject = (obj: any): any => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function isEmpty(value: unknown): boolean {
|
function isEmpty(value: unknown): boolean {
|
||||||
return value === undefined ||
|
return (
|
||||||
|
value === undefined ||
|
||||||
value === null ||
|
value === null ||
|
||||||
(typeof value === 'string' && value.trim() === '') ||
|
(typeof value === 'string' && value.trim() === '') || // Пустые строки
|
||||||
(typeof value === 'object' && !Array.isArray(value) && Object.keys(value).length === 0)
|
(Array.isArray(value) && value.length === 0) ||
|
||||||
|
(typeof value === 'object' &&
|
||||||
|
true &&
|
||||||
|
!Array.isArray(value) &&
|
||||||
|
Object.keys(value).length === 0)
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
function cleanEmptyParamsObject(obj: any): any {
|
function cleanEmptyParamsObject(obj: any): any {
|
||||||
@@ -29,23 +35,22 @@ function cleanEmptyParamsObject(obj: any): any {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (Array.isArray(obj)) {
|
if (Array.isArray(obj)) {
|
||||||
return obj
|
return obj.map(cleanEmptyParamsObject).filter((item) => !isEmpty(item)) // Удаление пустых элементов в массиве
|
||||||
.map(cleanEmptyParamsObject)
|
|
||||||
.filter(item => !isEmpty(item))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return Object.keys(obj).reduce((acc, key) => {
|
return Object.keys(obj).reduce(
|
||||||
if (key === 'data') {
|
(acc, key) => {
|
||||||
acc[key] = obj[key]
|
const value = cleanEmptyParamsObject(obj[key]) // Рекурсивная обработка объектов
|
||||||
} else {
|
|
||||||
const value = cleanEmptyParamsObject(obj[key])
|
|
||||||
if (!isEmpty(value)) {
|
if (!isEmpty(value)) {
|
||||||
acc[key] = value
|
// Проверяем пустоту значения после рекурсивной обработки
|
||||||
|
acc[key] = value // Сохраняем только непустые значения
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return acc
|
return acc
|
||||||
}, {} as Record<string, unknown>)
|
},
|
||||||
|
{} as Record<string, unknown>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export { sortObject, cleanEmptyParamsObject }
|
export { sortObject, cleanEmptyParamsObject }
|
||||||
@@ -2,7 +2,6 @@ import { TreeProps } from 'antd'
|
|||||||
|
|
||||||
import { AccessListMethodType, EndpointType } from '@type/accessList.type.ts'
|
import { AccessListMethodType, EndpointType } from '@type/accessList.type.ts'
|
||||||
|
|
||||||
|
|
||||||
export interface AccessListTreePropsType {
|
export interface AccessListTreePropsType {
|
||||||
searchValue: string
|
searchValue: string
|
||||||
defaultAllRoutes: Record<string, EndpointType[]>
|
defaultAllRoutes: Record<string, EndpointType[]>
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ import { PermissionKeysType } from '@type/roles.type.ts'
|
|||||||
|
|
||||||
import './access-list-tree.scss'
|
import './access-list-tree.scss'
|
||||||
|
|
||||||
|
|
||||||
const unknownMethodKey = 'неизвестные методы'
|
const unknownMethodKey = 'неизвестные методы'
|
||||||
|
|
||||||
const AccessListTree: FC<AccessListTreePropsType> = ({
|
const AccessListTree: FC<AccessListTreePropsType> = ({
|
||||||
@@ -53,7 +52,11 @@ const AccessListTree: FC<AccessListTreePropsType> = ({
|
|||||||
<span className={`${unknown ? 'unknown-label' : ''}`}>
|
<span className={`${unknown ? 'unknown-label' : ''}`}>
|
||||||
{obj.path}
|
{obj.path}
|
||||||
{obj.inner ? (
|
{obj.inner ? (
|
||||||
<Tag className="access-list-tree__inner-tag" color="processing" bordered={false}>
|
<Tag
|
||||||
|
className="access-list-tree__inner-tag"
|
||||||
|
color="processing"
|
||||||
|
bordered={false}
|
||||||
|
>
|
||||||
Внутренний
|
Внутренний
|
||||||
</Tag>
|
</Tag>
|
||||||
) : null}
|
) : null}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import {
|
import {
|
||||||
AlertOutlined,
|
AlertOutlined,
|
||||||
DeleteOutlined,
|
DeleteOutlined,
|
||||||
EditOutlined,
|
FormOutlined,
|
||||||
EyeOutlined,
|
EyeOutlined,
|
||||||
HistoryOutlined,
|
HistoryOutlined,
|
||||||
SwapOutlined,
|
SwapOutlined,
|
||||||
@@ -12,134 +12,146 @@ import { Button, Dropdown, message, Popconfirm, Tooltip } from 'antd'
|
|||||||
import { FC } from 'react'
|
import { FC } from 'react'
|
||||||
import { useNavigate } from 'react-router-dom'
|
import { useNavigate } from 'react-router-dom'
|
||||||
|
|
||||||
|
import CanEdit from '@components/CanEdit'
|
||||||
|
|
||||||
|
import { ConfigType } from '@pages/ModulesPage/module.type.ts'
|
||||||
|
|
||||||
|
import configServiceApi from '@services/configService.ts'
|
||||||
|
|
||||||
|
import { routePaths } from '@routes/routePaths.ts'
|
||||||
|
|
||||||
import { ActiveTableActionButtonsPropsType } from './active-table-action-buttons.type.ts'
|
import { ActiveTableActionButtonsPropsType } from './active-table-action-buttons.type.ts'
|
||||||
|
|
||||||
import './active-table-action-buttons.scss'
|
import './active-table-action-buttons.scss'
|
||||||
import CanEdit from '@components/CanEdit'
|
|
||||||
import { routePaths } from '@routes/routePaths.ts'
|
|
||||||
import configServiceApi from '@services/configService.ts'
|
|
||||||
import { ConfigType } from '@pages/ModulesPage/module.type.ts'
|
|
||||||
|
|
||||||
const ActiveTableActionButtons: FC<ActiveTableActionButtonsPropsType> =
|
const ActiveTableActionButtons: FC<ActiveTableActionButtonsPropsType> = ({
|
||||||
({
|
isActive,
|
||||||
isActive,
|
record,
|
||||||
record,
|
handleShowCompareModal,
|
||||||
handleShowCompareModal,
|
handleShowConfig,
|
||||||
handleShowConfig,
|
handleDeleteConfig,
|
||||||
handleDeleteConfig,
|
handleMarkConfigActive
|
||||||
handleMarkConfigActive
|
}) => {
|
||||||
}) => {
|
const navigate = useNavigate()
|
||||||
const navigate = useNavigate()
|
const [createUpdateConfig] = configServiceApi.useCreateUpdateConfigMutation()
|
||||||
const [createUpdateConfig] = configServiceApi.useCreateUpdateConfigMutation()
|
|
||||||
|
|
||||||
const navigateToAllVersion = () => navigate(`${record.id}/all_versions`)
|
const navigateToAllVersion = () => navigate(`${record.id}/all_versions`)
|
||||||
|
|
||||||
const copyConfig = () => {
|
const copyConfig = () => {
|
||||||
const newConfig = {
|
const newConfig = {
|
||||||
name: `${record.name} (copy)`,
|
name: `${record.name} (copy)`,
|
||||||
moduleId: record.moduleId,
|
moduleId: record.moduleId,
|
||||||
id: '',
|
id: '',
|
||||||
version: 0,
|
version: 0,
|
||||||
data: record.data
|
data: record.data
|
||||||
} as ConfigType
|
} as ConfigType
|
||||||
createUpdateConfig(newConfig)
|
createUpdateConfig(newConfig)
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.then(() => message.success('Конфиг успешно скопирован'))
|
.then(() => message.success('Конфиг успешно скопирован'))
|
||||||
.catch(() => message.error('Не удалось скопировать конфиг'))
|
.catch(() => message.error('Не удалось скопировать конфиг'))
|
||||||
}
|
}
|
||||||
|
|
||||||
const renderDropDownNoActive = (record: any) => {
|
const renderDropDownNoActive = (record: any) => {
|
||||||
return (
|
|
||||||
<div className="dropdown">
|
|
||||||
<Tooltip key="1" title="Сравнение версий">
|
|
||||||
<Button
|
|
||||||
onClick={() => handleShowCompareModal(record)}
|
|
||||||
icon={<SwapOutlined />}
|
|
||||||
/>
|
|
||||||
</Tooltip>
|
|
||||||
<Tooltip key="2" title="Просмотр истории">
|
|
||||||
<Button onClick={navigateToAllVersion} icon={<HistoryOutlined />} />
|
|
||||||
</Tooltip>
|
|
||||||
<CanEdit>
|
|
||||||
<Tooltip key="4" title="Копировать конфиг">
|
|
||||||
<Button icon={<CopyOutlined />} onClick={copyConfig} />
|
|
||||||
</Tooltip>
|
|
||||||
<Popconfirm
|
|
||||||
title="Вы действительно хотите удалить выбранный конфиг?"
|
|
||||||
onConfirm={() => handleDeleteConfig(record)}
|
|
||||||
>
|
|
||||||
<Tooltip key="3" title="Удалить конфиг">
|
|
||||||
<Button danger icon={<DeleteOutlined />} />
|
|
||||||
</Tooltip>
|
|
||||||
</Popconfirm>
|
|
||||||
</CanEdit>
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
const renderDropDownActive = (record: any) => {
|
|
||||||
return (
|
|
||||||
<div className="dropdown">
|
|
||||||
<Tooltip key="1" title="Сравнение версий">
|
|
||||||
<Button
|
|
||||||
onClick={() => handleShowCompareModal(record)}
|
|
||||||
icon={<SwapOutlined />}
|
|
||||||
/>
|
|
||||||
</Tooltip>
|
|
||||||
<Tooltip key="2" title="Просмотр истории">
|
|
||||||
<Button onClick={navigateToAllVersion} icon={<HistoryOutlined />} />
|
|
||||||
</Tooltip>
|
|
||||||
<CanEdit>
|
|
||||||
<Tooltip key="4" title="Копировать конфиг">
|
|
||||||
<Button icon={<CopyOutlined />} onClick={copyConfig} />
|
|
||||||
</Tooltip>
|
|
||||||
</CanEdit>
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
const renderAdditionalButtons = () => {
|
|
||||||
if (isActive) {
|
|
||||||
return (
|
|
||||||
<Dropdown dropdownRender={() => renderDropDownActive(record)}>
|
|
||||||
<Button icon={<EllipsisOutlined />} />
|
|
||||||
</Dropdown>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
|
||||||
<>
|
|
||||||
<CanEdit>
|
|
||||||
<Tooltip key="3" title="Сделать активной">
|
|
||||||
<Button onClick={() => handleMarkConfigActive(record)} icon={<AlertOutlined />} />
|
|
||||||
</Tooltip>
|
|
||||||
</CanEdit>
|
|
||||||
<Dropdown dropdownRender={() => renderDropDownNoActive(record)}>
|
|
||||||
<Button icon={<EllipsisOutlined />} />
|
|
||||||
</Dropdown>
|
|
||||||
</>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
return (
|
return (
|
||||||
<div className="active-configurations-table-actions-field">
|
<div className="dropdown">
|
||||||
<Button.Group className="button_group">
|
<Tooltip key="1" title="Сравнение версий">
|
||||||
<Tooltip title="Просмотр">
|
<Button
|
||||||
<Button
|
onClick={() => handleShowCompareModal(record)}
|
||||||
onClick={() => handleShowConfig(record)}
|
icon={<SwapOutlined />}
|
||||||
icon={<EyeOutlined />}
|
/>
|
||||||
/>
|
</Tooltip>
|
||||||
|
<Tooltip key="2" title="Просмотр истории">
|
||||||
|
<Button onClick={navigateToAllVersion} icon={<HistoryOutlined />} />
|
||||||
|
</Tooltip>
|
||||||
|
<CanEdit>
|
||||||
|
<Tooltip key="4" title="Копировать конфиг">
|
||||||
|
<Button icon={<CopyOutlined />} onClick={copyConfig} />
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
<CanEdit>
|
<Popconfirm
|
||||||
<Tooltip title="Редактировать">
|
title="Вы действительно хотите удалить выбранный конфиг?"
|
||||||
<Button onClick={() => {
|
onConfirm={() => handleDeleteConfig(record)}
|
||||||
navigate(`/${record.moduleId}/${routePaths.configEditor}/${record.id}`, { state: record })
|
>
|
||||||
}} icon={<EditOutlined />} />
|
<Tooltip key="3" title="Удалить конфиг">
|
||||||
|
<Button danger icon={<DeleteOutlined />} />
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</CanEdit>
|
</Popconfirm>
|
||||||
{renderAdditionalButtons()}
|
</CanEdit>
|
||||||
</Button.Group>
|
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const renderDropDownActive = (record: any) => {
|
||||||
|
return (
|
||||||
|
<div className="dropdown">
|
||||||
|
<Tooltip key="1" title="Сравнение версий">
|
||||||
|
<Button
|
||||||
|
onClick={() => handleShowCompareModal(record)}
|
||||||
|
icon={<SwapOutlined />}
|
||||||
|
/>
|
||||||
|
</Tooltip>
|
||||||
|
<Tooltip key="2" title="Просмотр истории">
|
||||||
|
<Button onClick={navigateToAllVersion} icon={<HistoryOutlined />} />
|
||||||
|
</Tooltip>
|
||||||
|
<CanEdit>
|
||||||
|
<Tooltip key="4" title="Копировать конфиг">
|
||||||
|
<Button icon={<CopyOutlined />} onClick={copyConfig} />
|
||||||
|
</Tooltip>
|
||||||
|
</CanEdit>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
const renderAdditionalButtons = () => {
|
||||||
|
if (isActive) {
|
||||||
|
return (
|
||||||
|
<Dropdown dropdownRender={() => renderDropDownActive(record)}>
|
||||||
|
<Button icon={<EllipsisOutlined />} />
|
||||||
|
</Dropdown>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<CanEdit>
|
||||||
|
<Tooltip key="3" title="Сделать активной">
|
||||||
|
<Button
|
||||||
|
onClick={() => handleMarkConfigActive(record)}
|
||||||
|
icon={<AlertOutlined />}
|
||||||
|
/>
|
||||||
|
</Tooltip>
|
||||||
|
</CanEdit>
|
||||||
|
<Dropdown dropdownRender={() => renderDropDownNoActive(record)}>
|
||||||
|
<Button icon={<EllipsisOutlined />} />
|
||||||
|
</Dropdown>
|
||||||
|
</>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
return (
|
||||||
|
<div className="active-configurations-table-actions-field">
|
||||||
|
<Button.Group className="button_group">
|
||||||
|
<Tooltip title="Просмотр">
|
||||||
|
<Button
|
||||||
|
onClick={() => handleShowConfig(record)}
|
||||||
|
icon={<EyeOutlined />}
|
||||||
|
/>
|
||||||
|
</Tooltip>
|
||||||
|
<CanEdit>
|
||||||
|
<Tooltip title="Редактировать">
|
||||||
|
<Button
|
||||||
|
onClick={() => {
|
||||||
|
navigate(
|
||||||
|
`/${record.moduleId}/${routePaths.configEditor}/${record.id}`,
|
||||||
|
{ state: record }
|
||||||
|
)
|
||||||
|
}}
|
||||||
|
icon={<FormOutlined />}
|
||||||
|
/>
|
||||||
|
</Tooltip>
|
||||||
|
</CanEdit>
|
||||||
|
{renderAdditionalButtons()}
|
||||||
|
</Button.Group>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
export default ActiveTableActionButtons
|
export default ActiveTableActionButtons
|
||||||
@@ -3,12 +3,14 @@ import { FC } from 'react'
|
|||||||
|
|
||||||
import { ListItemProps } from '@widgets/ListItem/list-item.type.ts'
|
import { ListItemProps } from '@widgets/ListItem/list-item.type.ts'
|
||||||
|
|
||||||
|
|
||||||
const ListItem: FC<ListItemProps> = ({ item }) => {
|
const ListItem: FC<ListItemProps> = ({ item }) => {
|
||||||
return (
|
return (
|
||||||
<List.Item>
|
<List.Item>
|
||||||
<Tooltip mouseEnterDelay={1} title={item.name}>
|
<Tooltip mouseEnterDelay={1} title={item.name}>
|
||||||
<List.Item.Meta title={item.name} description={<span>id: {item.id}</span>} />
|
<List.Item.Meta
|
||||||
|
title={item.name}
|
||||||
|
description={<span>id: {item.id}</span>}
|
||||||
|
/>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</List.Item>
|
</List.Item>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ import { ModalPropsType } from '@widgets/Modal/modal.type.ts'
|
|||||||
|
|
||||||
import './modal.scss'
|
import './modal.scss'
|
||||||
|
|
||||||
|
|
||||||
const Modal = ({
|
const Modal = ({
|
||||||
open,
|
open,
|
||||||
onOk = () => {},
|
onOk = () => {},
|
||||||
@@ -50,7 +49,7 @@ const Modal = ({
|
|||||||
<div className="modal__content">{children}</div>
|
<div className="modal__content">{children}</div>
|
||||||
{footer && (
|
{footer && (
|
||||||
<div className="modal__footer">
|
<div className="modal__footer">
|
||||||
<Button type="default" onClick={closeModal} >
|
<Button type="default" onClick={closeModal}>
|
||||||
{footer.onCanselText}
|
{footer.onCanselText}
|
||||||
</Button>
|
</Button>
|
||||||
<Button type="primary" onClick={onOk} loading={loading}>
|
<Button type="primary" onClick={onOk} loading={loading}>
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import { Outlet } from 'react-router-dom'
|
|||||||
|
|
||||||
import { ModuleTabContentPropsType } from '@widgets/ModuleTabContent/module-tab-content.type.ts'
|
import { ModuleTabContentPropsType } from '@widgets/ModuleTabContent/module-tab-content.type.ts'
|
||||||
|
|
||||||
|
|
||||||
const { EmptyData, NoData } = Layout
|
const { EmptyData, NoData } = Layout
|
||||||
|
|
||||||
const ModuleTabContent = ({
|
const ModuleTabContent = ({
|
||||||
|
|||||||
@@ -5,13 +5,10 @@ import { PermissionListProps } from './permisiion-list.type.ts'
|
|||||||
|
|
||||||
import './permission-list.scss'
|
import './permission-list.scss'
|
||||||
|
|
||||||
|
|
||||||
const PermissionList: FC<PermissionListProps> = ({ permissions }) => {
|
const PermissionList: FC<PermissionListProps> = ({ permissions }) => {
|
||||||
return (
|
return (
|
||||||
<Descriptions layout="vertical" className="permission-list">
|
<Descriptions layout="vertical" className="permission-list">
|
||||||
<Descriptions.Item
|
<Descriptions.Item label="Список разрешений">
|
||||||
label="Список разрешений"
|
|
||||||
>
|
|
||||||
<ul>
|
<ul>
|
||||||
{permissions.map((permission, index) => {
|
{permissions.map((permission, index) => {
|
||||||
return <li key={`${permission}-${index}`}>{permission}</li>
|
return <li key={`${permission}-${index}`}>{permission}</li>
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
export type PermissionListProps = {
|
export type PermissionListProps = {
|
||||||
permissions:string[];
|
permissions: string[]
|
||||||
}
|
}
|
||||||
@@ -6,7 +6,6 @@ import { AccessListMethodType } from '@type/accessList.type.ts'
|
|||||||
|
|
||||||
import './selected-access-method.scss'
|
import './selected-access-method.scss'
|
||||||
|
|
||||||
|
|
||||||
const SelectedAccessMethod: FC<SelectedAccessMethodPropsType> = ({
|
const SelectedAccessMethod: FC<SelectedAccessMethodPropsType> = ({
|
||||||
unknownMethodKey,
|
unknownMethodKey,
|
||||||
allRoutes,
|
allRoutes,
|
||||||
@@ -20,8 +19,10 @@ const SelectedAccessMethod: FC<SelectedAccessMethodPropsType> = ({
|
|||||||
const renderMethodList = () => {
|
const renderMethodList = () => {
|
||||||
const knownMethods: AccessListMethodType[] = []
|
const knownMethods: AccessListMethodType[] = []
|
||||||
const unknownMethods: AccessListMethodType[] = []
|
const unknownMethods: AccessListMethodType[] = []
|
||||||
const sortAlphabetically = (a: AccessListMethodType, b: AccessListMethodType) =>
|
const sortAlphabetically = (
|
||||||
a.method.localeCompare(b.method)
|
a: AccessListMethodType,
|
||||||
|
b: AccessListMethodType
|
||||||
|
) => a.method.localeCompare(b.method)
|
||||||
methods.forEach((method) => {
|
methods.forEach((method) => {
|
||||||
const isUnknown = checkIsUnknownMethod(method.method)
|
const isUnknown = checkIsUnknownMethod(method.method)
|
||||||
if (isUnknown) {
|
if (isUnknown) {
|
||||||
|
|||||||
Reference in new issue
Block a user