Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
709e14e501 | ||
|
|
fe295beb7f | ||
|
|
39cf7159e4 |
No files matched your search
@@ -13,7 +13,12 @@
|
||||
"plugin:@typescript-eslint/recommended",
|
||||
"plugin:import/typescript"
|
||||
],
|
||||
"ignorePatterns": ["node_modules", "build", "generateVersionFile.cjs"],
|
||||
"ignorePatterns": [
|
||||
"node_modules",
|
||||
"build",
|
||||
"generateVersionFile.cjs",
|
||||
"config.template.js"
|
||||
],
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"parserOptions": {
|
||||
"ecmaFeatures": {
|
||||
@@ -33,28 +38,48 @@
|
||||
],
|
||||
"rules": {
|
||||
"import/default": "off",
|
||||
"import/no-named-as-default":"off",
|
||||
"import/no-named-as-default": "off",
|
||||
"prettier/prettier": "off",
|
||||
"quotes": ["error", "single"],
|
||||
"quotes": [
|
||||
"error",
|
||||
"single"
|
||||
],
|
||||
"react/jsx-filename-extension": [
|
||||
1,
|
||||
{
|
||||
"extensions": [".js", ".jsx", ".tsx"]
|
||||
"extensions": [
|
||||
".js",
|
||||
".jsx",
|
||||
".tsx"
|
||||
]
|
||||
}
|
||||
],
|
||||
"react/jsx-one-expression-per-line": "off",
|
||||
"react/prop-types": 0,
|
||||
"react/react-in-jsx-scope": "off",
|
||||
"semi": ["error", "never"],
|
||||
"@typescript-eslint/no-unused-vars": ["off"],
|
||||
"@typescript-eslint/no-explicit-any": ["off", null],
|
||||
"@typescript-eslint/no-non-null-assertion": ["off"],
|
||||
"semi": [
|
||||
"error",
|
||||
"never"
|
||||
],
|
||||
"@typescript-eslint/no-unused-vars": [
|
||||
"off"
|
||||
],
|
||||
"@typescript-eslint/no-explicit-any": [
|
||||
"off",
|
||||
null
|
||||
],
|
||||
"@typescript-eslint/no-non-null-assertion": [
|
||||
"off"
|
||||
],
|
||||
"import/no-unresolved": "error",
|
||||
"no-unused-vars": "off"
|
||||
},
|
||||
"settings": {
|
||||
"import/parsers": {
|
||||
"@typescript-eslint/parser": [".ts", ".tsx"]
|
||||
"@typescript-eslint/parser": [
|
||||
".ts",
|
||||
".tsx"
|
||||
]
|
||||
},
|
||||
"react": {
|
||||
"version": "detect"
|
||||
@@ -64,8 +89,16 @@
|
||||
"alwaysTryTypes": true
|
||||
},
|
||||
"node": {
|
||||
"extensions": [".js", ".jsx", ".ts", ".tsx"],
|
||||
"moduleDirectory": ["node_modules", "src/"]
|
||||
"extensions": [
|
||||
".js",
|
||||
".jsx",
|
||||
".ts",
|
||||
".tsx"
|
||||
],
|
||||
"moduleDirectory": [
|
||||
"node_modules",
|
||||
"src/"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
build
|
||||
cfg
|
||||
/config.template.js
|
||||
@@ -1,3 +1,7 @@
|
||||
## 0.21.0
|
||||
- Добавлены разрешения для страниц проекта
|
||||
## 0.20.0
|
||||
- Добавлена страница работы с переменными
|
||||
## 0.19.1
|
||||
- Обновлена версия ui библиотек
|
||||
## 0.19.0
|
||||
|
||||
@@ -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 --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">
|
||||
window.AppVersion = APP_VERSION
|
||||
</script>
|
||||
<script type="module" src="/config.js"></script>
|
||||
<script src="/config.js"></script>
|
||||
<title>Панель администратора</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Generated
+4721
-2785
File diff suppressed because it is too large.
Load diff
+3
-3
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "isp-admin-ui",
|
||||
"private": true,
|
||||
"version": "0.19.1",
|
||||
"version": "0.21.0",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"start": "vite",
|
||||
@@ -17,16 +17,16 @@
|
||||
"dayjs": "^1.11.10",
|
||||
"isp-ui-kit": "^0.17.1",
|
||||
"axios": "^1.7.7",
|
||||
"react-router-dom": "^6.22.3",
|
||||
"react-hook-form": "^7.51.2",
|
||||
"react-dom": "^18.2.0",
|
||||
"react": "^18.2.0",
|
||||
"monaco-editor": "^0.52.0",
|
||||
"@monaco-editor/react": "^4.6.0",
|
||||
"@reduxjs/toolkit": "^2.2.3",
|
||||
"isp-admin-ui-kit": "^0.4.3",
|
||||
"isp-admin-ui-kit": "^0.4.6",
|
||||
"react-redux": "^9.1.0",
|
||||
"react-resizable": "^3.0.5",
|
||||
"react-router-dom": "^6.22.3",
|
||||
"simplebar": "^6.2.5",
|
||||
"simplebar-react": "^3.2.4"
|
||||
},
|
||||
|
||||
Whitespace-only changes.
Reference in new issue
Block a user