Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fe295beb7f | ||
|
|
39cf7159e4 | ||
|
|
e87ed7cd68 |
No files matched your search
@@ -13,7 +13,12 @@
|
|||||||
"plugin:@typescript-eslint/recommended",
|
"plugin:@typescript-eslint/recommended",
|
||||||
"plugin:import/typescript"
|
"plugin:import/typescript"
|
||||||
],
|
],
|
||||||
"ignorePatterns": ["node_modules", "build", "generateVersionFile.cjs"],
|
"ignorePatterns": [
|
||||||
|
"node_modules",
|
||||||
|
"build",
|
||||||
|
"generateVersionFile.cjs",
|
||||||
|
"config.template.js"
|
||||||
|
],
|
||||||
"parser": "@typescript-eslint/parser",
|
"parser": "@typescript-eslint/parser",
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
"ecmaFeatures": {
|
"ecmaFeatures": {
|
||||||
@@ -33,28 +38,48 @@
|
|||||||
],
|
],
|
||||||
"rules": {
|
"rules": {
|
||||||
"import/default": "off",
|
"import/default": "off",
|
||||||
"import/no-named-as-default":"off",
|
"import/no-named-as-default": "off",
|
||||||
"prettier/prettier": "off",
|
"prettier/prettier": "off",
|
||||||
"quotes": ["error", "single"],
|
"quotes": [
|
||||||
|
"error",
|
||||||
|
"single"
|
||||||
|
],
|
||||||
"react/jsx-filename-extension": [
|
"react/jsx-filename-extension": [
|
||||||
1,
|
1,
|
||||||
{
|
{
|
||||||
"extensions": [".js", ".jsx", ".tsx"]
|
"extensions": [
|
||||||
|
".js",
|
||||||
|
".jsx",
|
||||||
|
".tsx"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"react/jsx-one-expression-per-line": "off",
|
"react/jsx-one-expression-per-line": "off",
|
||||||
"react/prop-types": 0,
|
"react/prop-types": 0,
|
||||||
"react/react-in-jsx-scope": "off",
|
"react/react-in-jsx-scope": "off",
|
||||||
"semi": ["error", "never"],
|
"semi": [
|
||||||
"@typescript-eslint/no-unused-vars": ["off"],
|
"error",
|
||||||
"@typescript-eslint/no-explicit-any": ["off", null],
|
"never"
|
||||||
"@typescript-eslint/no-non-null-assertion": ["off"],
|
],
|
||||||
|
"@typescript-eslint/no-unused-vars": [
|
||||||
|
"off"
|
||||||
|
],
|
||||||
|
"@typescript-eslint/no-explicit-any": [
|
||||||
|
"off",
|
||||||
|
null
|
||||||
|
],
|
||||||
|
"@typescript-eslint/no-non-null-assertion": [
|
||||||
|
"off"
|
||||||
|
],
|
||||||
"import/no-unresolved": "error",
|
"import/no-unresolved": "error",
|
||||||
"no-unused-vars": "off"
|
"no-unused-vars": "off"
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
"import/parsers": {
|
"import/parsers": {
|
||||||
"@typescript-eslint/parser": [".ts", ".tsx"]
|
"@typescript-eslint/parser": [
|
||||||
|
".ts",
|
||||||
|
".tsx"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"react": {
|
"react": {
|
||||||
"version": "detect"
|
"version": "detect"
|
||||||
@@ -64,8 +89,16 @@
|
|||||||
"alwaysTryTypes": true
|
"alwaysTryTypes": true
|
||||||
},
|
},
|
||||||
"node": {
|
"node": {
|
||||||
"extensions": [".js", ".jsx", ".ts", ".tsx"],
|
"extensions": [
|
||||||
"moduleDirectory": ["node_modules", "src/"]
|
".js",
|
||||||
|
".jsx",
|
||||||
|
".ts",
|
||||||
|
".tsx"
|
||||||
|
],
|
||||||
|
"moduleDirectory": [
|
||||||
|
"node_modules",
|
||||||
|
"src/"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
build
|
||||||
|
cfg
|
||||||
|
/config.template.js
|
||||||
@@ -1,3 +1,7 @@
|
|||||||
|
## 0.20.0
|
||||||
|
- Добавлена страница работы с переменными
|
||||||
|
## 0.19.1
|
||||||
|
- Обновлена версия ui библиотек
|
||||||
## 0.19.0
|
## 0.19.0
|
||||||
- Замена компонента App на компонент AdminBase из библиотеки
|
- Замена компонента App на компонент AdminBase из библиотеки
|
||||||
- Удален весь код, дублирующий компонент AdminBase
|
- Удален весь код, дублирующий компонент AdminBase
|
||||||
|
|||||||
@@ -26,3 +26,5 @@ RUN rm -f /etc/nginx/conf.d/default.conf
|
|||||||
COPY cfg/80_isp-admin-ui.conf /etc/nginx/conf.d/80_isp-admin-ui.conf
|
COPY cfg/80_isp-admin-ui.conf /etc/nginx/conf.d/80_isp-admin-ui.conf
|
||||||
COPY --from=build /usr/src/app/build /opt/msp/isp-admin-ui
|
COPY --from=build /usr/src/app/build /opt/msp/isp-admin-ui
|
||||||
|
|
||||||
|
COPY entrypoint.sh /opt/msp/isp-admin-ui/entrypoint.sh
|
||||||
|
ENTRYPOINT ["/opt/msp/isp-admin-ui/entrypoint.sh"]
|
||||||
Executable
+16
@@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
CONFIG_PATH="/opt/msp/isp-admin-ui/config.js"
|
||||||
|
|
||||||
|
cat <<EOF > $CONFIG_PATH
|
||||||
|
// DON'T TOUCH
|
||||||
|
// THIS FILE FOR PRODUCTION BUILD
|
||||||
|
|
||||||
|
window.config = {
|
||||||
|
ENABLE_PASSWORD_LOGIN: ${ENABLE_PASSWORD_LOGIN:-true},
|
||||||
|
APP_TOKEN: '${APP_TOKEN:-"default_token"}',
|
||||||
|
};
|
||||||
|
EOF
|
||||||
|
|
||||||
|
|
||||||
|
exec nginx -g "daemon off;"
|
||||||
+1
-1
@@ -8,7 +8,7 @@
|
|||||||
<script type="module">
|
<script type="module">
|
||||||
window.AppVersion = APP_VERSION
|
window.AppVersion = APP_VERSION
|
||||||
</script>
|
</script>
|
||||||
<script type="module" src="/config.js"></script>
|
<script src="/config.js"></script>
|
||||||
<title>Панель администратора</title>
|
<title>Панель администратора</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
Generated
+32
-22
@@ -1,19 +1,19 @@
|
|||||||
{
|
{
|
||||||
"name": "isp-admin-ui",
|
"name": "isp-admin-ui",
|
||||||
"version": "0.19.0",
|
"version": "0.20.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "isp-admin-ui",
|
"name": "isp-admin-ui",
|
||||||
"version": "0.19.0",
|
"version": "0.20.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@monaco-editor/react": "^4.6.0",
|
"@monaco-editor/react": "^4.6.0",
|
||||||
"@reduxjs/toolkit": "^2.2.3",
|
"@reduxjs/toolkit": "^2.2.3",
|
||||||
"axios": "^1.7.7",
|
"axios": "^1.7.7",
|
||||||
"dayjs": "^1.11.10",
|
"dayjs": "^1.11.10",
|
||||||
"isp-admin-ui-kit": "^0.3.1",
|
"isp-admin-ui-kit": "^0.4.4",
|
||||||
"isp-ui-kit": "^0.12.3",
|
"isp-ui-kit": "^0.17.1",
|
||||||
"monaco-editor": "^0.52.0",
|
"monaco-editor": "^0.52.0",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
@@ -5757,9 +5757,10 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/dayjs": {
|
"node_modules/dayjs": {
|
||||||
"version": "1.11.10",
|
"version": "1.11.13",
|
||||||
"resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.10.tgz",
|
"resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.13.tgz",
|
||||||
"integrity": "sha512-vjAczensTgRcqDERK0SR2XMwsF/tSvnvlv6VcF2GIhg6Sx4yOIt/irsr1RDJsKiIyBzJDpCoXiWWq28MqH2cnQ=="
|
"integrity": "sha512-oaMBel6gjolK862uaPQOVTA7q3TZhuSvuMQAAglQDOWYO9A91IrAOUJEyKVlqJlHE0vq5p5UXxzdPfMH/x6xNg==",
|
||||||
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/debug": {
|
"node_modules/debug": {
|
||||||
"version": "4.3.4",
|
"version": "4.3.4",
|
||||||
@@ -7977,9 +7978,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/isp-admin-ui-kit": {
|
"node_modules/isp-admin-ui-kit": {
|
||||||
"version": "0.3.1",
|
"version": "0.4.4",
|
||||||
"resolved": "https://registry.npmjs.org/isp-admin-ui-kit/-/isp-admin-ui-kit-0.3.1.tgz",
|
"resolved": "https://registry.npmjs.org/isp-admin-ui-kit/-/isp-admin-ui-kit-0.4.4.tgz",
|
||||||
"integrity": "sha512-Hm855/ivVV6KGgrNb2pqrKrA7FnG7bkf2vuOwNIBjZ9+qa5pzQMucQmQUZzV6OcuVM0TMvgr1AIwzaiXzebvnw==",
|
"integrity": "sha512-lI/LP8daos8jXXGUjIkJVFaeWaf5hdNfuQzsYQCknxapBtZrER2jZWmVTb5a+vw16D2BFQxwT8gWxcnw3q9FRQ==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@apidevtools/json-schema-ref-parser": "^9.0.6",
|
"@apidevtools/json-schema-ref-parser": "^9.0.6",
|
||||||
"@rjsf/antd": "^5.21.2",
|
"@rjsf/antd": "^5.21.2",
|
||||||
@@ -7995,38 +7996,43 @@
|
|||||||
"simplebar-react": "^3.2.4"
|
"simplebar-react": "^3.2.4"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"@rollup/rollup-linux-x64-gnu": "^4.32.1"
|
"@rollup/rollup-linux-x64-gnu": "^4.37.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@monaco-editor/react": "^4.6.0",
|
"@monaco-editor/react": "^4.6.0",
|
||||||
"antd": "^5.12.2",
|
"@reduxjs/toolkit": "^2.2.3",
|
||||||
|
"antd": ">=5.12.2",
|
||||||
"axios": "^1.7.7",
|
"axios": "^1.7.7",
|
||||||
"dayjs": "^1.11.10",
|
"dayjs": "^1.11.10",
|
||||||
"isp-ui-kit": "^0.12.3",
|
"isp-ui-kit": ">=0.14.0",
|
||||||
"monaco-editor": "^0.52.0",
|
"monaco-editor": "^0.52.0",
|
||||||
"react": ">=18.2.0",
|
"react": ">=18.2.0",
|
||||||
"react-dom": ">=18.2.0",
|
"react-dom": ">=18.2.0",
|
||||||
"react-hook-form": "^7.54.0",
|
"react-hook-form": "^7.54.0",
|
||||||
|
"react-redux": "^9.1.0",
|
||||||
"react-router-dom": "^6.22.3"
|
"react-router-dom": "^6.22.3"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/isp-admin-ui-kit/node_modules/@rollup/rollup-linux-x64-gnu": {
|
"node_modules/isp-admin-ui-kit/node_modules/@rollup/rollup-linux-x64-gnu": {
|
||||||
"version": "4.32.1",
|
"version": "4.37.0",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.32.1.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.37.0.tgz",
|
||||||
"integrity": "sha512-WQFLZ9c42ECqEjwg/GHHsouij3pzLXkFdz0UxHa/0OM12LzvX7DzedlY0SIEly2v18YZLRhCRoHZDxbBSWoGYg==",
|
"integrity": "sha512-pKivGpgJM5g8dwj0ywBwe/HeVAUSuVVJhUTa/URXjxvoyTT/AxsLTAbkHkDHG7qQxLoW2s3apEIl26uUe08LVQ==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
|
"license": "MIT",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"os": [
|
"os": [
|
||||||
"linux"
|
"linux"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/isp-ui-kit": {
|
"node_modules/isp-ui-kit": {
|
||||||
"version": "0.12.3",
|
"version": "0.17.1",
|
||||||
"resolved": "https://registry.npmjs.org/isp-ui-kit/-/isp-ui-kit-0.12.3.tgz",
|
"resolved": "https://registry.npmjs.org/isp-ui-kit/-/isp-ui-kit-0.17.1.tgz",
|
||||||
"integrity": "sha512-7WK90Y43VvDNzEen6Ycd4vOEzoKjwVfqUJroPbBfTcv6cd5Z2TBTKqt8s4IGXMKXiX2CFxKGxHVhCIVzalSifQ==",
|
"integrity": "sha512-YyRuFiblx2ba9IX4yMPPIt9ReA7+j+HT+jpA3pFd/9P2hdlrSvyP5z8BCbJf/L3U1dqumNlnIEUrLwetXg+ryw==",
|
||||||
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"dayjs": "^1.11.13",
|
||||||
"react-base16-styling": "~0.10.0",
|
"react-base16-styling": "~0.10.0",
|
||||||
"react-lifecycles-compat": "~3.0.4",
|
"react-lifecycles-compat": "~3.0.4",
|
||||||
"react-resizable": "^3.0.5",
|
"react-resizable": "^3.0.5",
|
||||||
@@ -9889,9 +9895,10 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/react-textarea-autosize": {
|
"node_modules/react-textarea-autosize": {
|
||||||
"version": "8.5.7",
|
"version": "8.5.8",
|
||||||
"resolved": "https://registry.npmjs.org/react-textarea-autosize/-/react-textarea-autosize-8.5.7.tgz",
|
"resolved": "https://registry.npmjs.org/react-textarea-autosize/-/react-textarea-autosize-8.5.8.tgz",
|
||||||
"integrity": "sha512-2MqJ3p0Jh69yt9ktFIaZmORHXw4c4bxSIhCeWiFwmJ9EYKgLmuNII3e9c9b2UO+ijl4StnpZdqpxNIhTdHvqtQ==",
|
"integrity": "sha512-iUiIj70JefrTuSJ4LbVFiSqWiHHss5L63L717bqaWHMgkm9sz6eEvro4vZ3uQfGJbevzwT6rHOszHKA8RkhRMg==",
|
||||||
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.20.13",
|
"@babel/runtime": "^7.20.13",
|
||||||
"use-composed-ref": "^1.3.0",
|
"use-composed-ref": "^1.3.0",
|
||||||
@@ -11240,6 +11247,7 @@
|
|||||||
"version": "1.4.0",
|
"version": "1.4.0",
|
||||||
"resolved": "https://registry.npmjs.org/use-composed-ref/-/use-composed-ref-1.4.0.tgz",
|
"resolved": "https://registry.npmjs.org/use-composed-ref/-/use-composed-ref-1.4.0.tgz",
|
||||||
"integrity": "sha512-djviaxuOOh7wkj0paeO1Q/4wMZ8Zrnag5H6yBvzN7AKKe8beOaED9SF5/ByLqsku8NP4zQqsvM2u3ew/tJK8/w==",
|
"integrity": "sha512-djviaxuOOh7wkj0paeO1Q/4wMZ8Zrnag5H6yBvzN7AKKe8beOaED9SF5/ByLqsku8NP4zQqsvM2u3ew/tJK8/w==",
|
||||||
|
"license": "MIT",
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
|
||||||
},
|
},
|
||||||
@@ -11253,6 +11261,7 @@
|
|||||||
"version": "1.2.0",
|
"version": "1.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/use-isomorphic-layout-effect/-/use-isomorphic-layout-effect-1.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/use-isomorphic-layout-effect/-/use-isomorphic-layout-effect-1.2.0.tgz",
|
||||||
"integrity": "sha512-q6ayo8DWoPZT0VdG4u3D3uxcgONP3Mevx2i2b0434cwWBoL+aelL1DzkXI6w3PhTZzUeR2kaVlZn70iCiseP6w==",
|
"integrity": "sha512-q6ayo8DWoPZT0VdG4u3D3uxcgONP3Mevx2i2b0434cwWBoL+aelL1DzkXI6w3PhTZzUeR2kaVlZn70iCiseP6w==",
|
||||||
|
"license": "MIT",
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
|
||||||
},
|
},
|
||||||
@@ -11266,6 +11275,7 @@
|
|||||||
"version": "1.3.0",
|
"version": "1.3.0",
|
||||||
"resolved": "https://registry.npmjs.org/use-latest/-/use-latest-1.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/use-latest/-/use-latest-1.3.0.tgz",
|
||||||
"integrity": "sha512-mhg3xdm9NaM8q+gLT8KryJPnRFOz1/5XPBhmDEVZK1webPzDjrPk7f/mbpeLqTgB9msytYWANxgALOCJKnLvcQ==",
|
"integrity": "sha512-mhg3xdm9NaM8q+gLT8KryJPnRFOz1/5XPBhmDEVZK1webPzDjrPk7f/mbpeLqTgB9msytYWANxgALOCJKnLvcQ==",
|
||||||
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"use-isomorphic-layout-effect": "^1.1.1"
|
"use-isomorphic-layout-effect": "^1.1.1"
|
||||||
},
|
},
|
||||||
|
|||||||
+4
-4
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "isp-admin-ui",
|
"name": "isp-admin-ui",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.19.0",
|
"version": "0.20.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "vite",
|
"start": "vite",
|
||||||
@@ -15,18 +15,18 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"dayjs": "^1.11.10",
|
"dayjs": "^1.11.10",
|
||||||
"isp-ui-kit": "^0.12.3",
|
"isp-ui-kit": "^0.17.1",
|
||||||
"axios": "^1.7.7",
|
"axios": "^1.7.7",
|
||||||
"react-router-dom": "^6.22.3",
|
|
||||||
"react-hook-form": "^7.51.2",
|
"react-hook-form": "^7.51.2",
|
||||||
"react-dom": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"monaco-editor": "^0.52.0",
|
"monaco-editor": "^0.52.0",
|
||||||
"@monaco-editor/react": "^4.6.0",
|
"@monaco-editor/react": "^4.6.0",
|
||||||
"@reduxjs/toolkit": "^2.2.3",
|
"@reduxjs/toolkit": "^2.2.3",
|
||||||
"isp-admin-ui-kit": "^0.3.1",
|
"isp-admin-ui-kit": "^0.4.4",
|
||||||
"react-redux": "^9.1.0",
|
"react-redux": "^9.1.0",
|
||||||
"react-resizable": "^3.0.5",
|
"react-resizable": "^3.0.5",
|
||||||
|
"react-router-dom": "^6.22.3",
|
||||||
"simplebar": "^6.2.5",
|
"simplebar": "^6.2.5",
|
||||||
"simplebar-react": "^3.2.4"
|
"simplebar-react": "^3.2.4"
|
||||||
},
|
},
|
||||||
|
|||||||
Whitespace-only changes.
Reference in new issue
Block a user