Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
685a32ee30 | ||
|
|
75f491520b |
No files matched your search
@@ -1,3 +1,9 @@
|
|||||||
|
## 0.18.0
|
||||||
|
- Исправлено редактирование JSON в конфиге
|
||||||
|
## 0.17.3
|
||||||
|
- Обновлены зависимости в package.json
|
||||||
|
## 0.17.1
|
||||||
|
- Обновлена библиотека isp-ui-kit
|
||||||
## 0.17.0
|
## 0.17.0
|
||||||
- Codemirror заменен на MonacoEditor
|
- Codemirror заменен на MonacoEditor
|
||||||
## 0.16.0
|
## 0.16.0
|
||||||
|
|||||||
Generated
+266
-522
File diff suppressed because it is too large.
Load diff
+4
-4
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "isp-admin-ui",
|
"name": "isp-admin-ui",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.17.0",
|
"version": "0.18.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "vite",
|
"start": "vite",
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
"@rjsf/antd": "^5.21.2",
|
"@rjsf/antd": "^5.21.2",
|
||||||
"@rjsf/core": "^5.21.2",
|
"@rjsf/core": "^5.21.2",
|
||||||
"@rjsf/validator-ajv8": "^5.21.2",
|
"@rjsf/validator-ajv8": "^5.21.2",
|
||||||
"axios": "^1.6.8",
|
"axios": "^1.7.7",
|
||||||
"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",
|
||||||
@@ -63,10 +63,10 @@
|
|||||||
"eslint-plugin-react-refresh": "^0.4.6",
|
"eslint-plugin-react-refresh": "^0.4.6",
|
||||||
"husky": "^9.0.11",
|
"husky": "^9.0.11",
|
||||||
"prettier": "^3.2.5",
|
"prettier": "^3.2.5",
|
||||||
"sass": "^1.74.1",
|
"sass": "1.74.1",
|
||||||
"terser": "^5.30.3",
|
"terser": "^5.30.3",
|
||||||
"typescript": "^5.4.3",
|
"typescript": "^5.4.3",
|
||||||
"vite": "^5.2.8",
|
"vite": "^5.4.10",
|
||||||
"vite-bundle-visualizer": "^1.2.1",
|
"vite-bundle-visualizer": "^1.2.1",
|
||||||
"vite-plugin-node-polyfills": "^0.21.0",
|
"vite-plugin-node-polyfills": "^0.21.0",
|
||||||
"vite-plugin-style-import": "^2.0.0",
|
"vite-plugin-style-import": "^2.0.0",
|
||||||
|
|||||||
@@ -4,12 +4,10 @@ import { FC, useContext } from 'react'
|
|||||||
|
|
||||||
import { ConfigurationEditorPropsType } from '@pages/ConfigurationEditorPage/ConfigurationEditor.type.ts'
|
import { ConfigurationEditorPropsType } from '@pages/ConfigurationEditorPage/ConfigurationEditor.type.ts'
|
||||||
|
|
||||||
import { cleanEmptyParamsObject } from '@utils/objectUtils.ts'
|
|
||||||
|
|
||||||
import { Context } from '@stores/index.tsx'
|
import { Context } from '@stores/index.tsx'
|
||||||
|
|
||||||
const ConfigurationEditorJson: FC<ConfigurationEditorPropsType> = ({
|
const ConfigurationEditorJson: FC<ConfigurationEditorPropsType> = ({
|
||||||
bufConfig = {},
|
bufConfig,
|
||||||
setBufConfig,
|
setBufConfig,
|
||||||
isCurrentConfigLoading
|
isCurrentConfigLoading
|
||||||
}) => {
|
}) => {
|
||||||
@@ -23,7 +21,7 @@ const ConfigurationEditorJson: FC<ConfigurationEditorPropsType> = ({
|
|||||||
...bufConfig,
|
...bufConfig,
|
||||||
data: { ...updated_src }
|
data: { ...updated_src }
|
||||||
}
|
}
|
||||||
setBufConfig(cleanEmptyParamsObject(newData))
|
setBufConfig(newData)
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -37,7 +35,7 @@ const ConfigurationEditorJson: FC<ConfigurationEditorPropsType> = ({
|
|||||||
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}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import {
|
|||||||
|
|
||||||
export interface ConfigurationEditorPropsType {
|
export interface ConfigurationEditorPropsType {
|
||||||
jsonSchema?: ResponseSchemaType
|
jsonSchema?: ResponseSchemaType
|
||||||
bufConfig?: ConfigType
|
bufConfig: ConfigType
|
||||||
setBufConfig: Dispatch<SetStateAction<ConfigType | undefined>>
|
setBufConfig: Dispatch<SetStateAction<ConfigType | undefined>>
|
||||||
isCurrentConfigLoading: boolean
|
isCurrentConfigLoading: boolean
|
||||||
setDisableBtn?: Dispatch<SetStateAction<boolean>>
|
setDisableBtn?: Dispatch<SetStateAction<boolean>>
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ const ConfigurationEditorPage: FC = () => {
|
|||||||
return (
|
return (
|
||||||
<ConfigurationEditorForm
|
<ConfigurationEditorForm
|
||||||
submitRef={submitRef}
|
submitRef={submitRef}
|
||||||
bufConfig={bufConfig}
|
bufConfig={bufConfig as ConfigType}
|
||||||
setBufConfig={setBufConfig}
|
setBufConfig={setBufConfig}
|
||||||
jsonSchema={jsonSchema}
|
jsonSchema={jsonSchema}
|
||||||
isCurrentConfigLoading={isCurrentConfigLoading}
|
isCurrentConfigLoading={isCurrentConfigLoading}
|
||||||
@@ -140,7 +140,7 @@ const ConfigurationEditorPage: FC = () => {
|
|||||||
case jsonRadio:
|
case jsonRadio:
|
||||||
return (
|
return (
|
||||||
<ConfigurationEditorJson
|
<ConfigurationEditorJson
|
||||||
bufConfig={bufConfig}
|
bufConfig={bufConfig as ConfigType}
|
||||||
setBufConfig={setBufConfig}
|
setBufConfig={setBufConfig}
|
||||||
isCurrentConfigLoading={isCurrentConfigLoading}
|
isCurrentConfigLoading={isCurrentConfigLoading}
|
||||||
/>
|
/>
|
||||||
@@ -149,7 +149,7 @@ const ConfigurationEditorPage: FC = () => {
|
|||||||
return (
|
return (
|
||||||
<ConfigurationEditorCode
|
<ConfigurationEditorCode
|
||||||
setDisableBtn={setDisableBtn}
|
setDisableBtn={setDisableBtn}
|
||||||
bufConfig={bufConfig}
|
bufConfig={bufConfig as ConfigType}
|
||||||
setBufConfig={setBufConfig}
|
setBufConfig={setBufConfig}
|
||||||
isCurrentConfigLoading={isCurrentConfigLoading}
|
isCurrentConfigLoading={isCurrentConfigLoading}
|
||||||
/>
|
/>
|
||||||
|
|||||||
+5
-2
@@ -5,7 +5,6 @@ import svgr from 'vite-plugin-svgr'
|
|||||||
|
|
||||||
import tsconfigPaths from 'vite-tsconfig-paths'
|
import tsconfigPaths from 'vite-tsconfig-paths'
|
||||||
|
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig(({ mode }) => {
|
export default defineConfig(({ mode }) => {
|
||||||
const env = loadEnv(mode, process.cwd(), '')
|
const env = loadEnv(mode, process.cwd(), '')
|
||||||
@@ -17,10 +16,14 @@ export default defineConfig(({ mode }) => {
|
|||||||
},
|
},
|
||||||
build: {
|
build: {
|
||||||
minify: 'esbuild',
|
minify: 'esbuild',
|
||||||
sourcemap: true,
|
sourcemap: mode !== 'production',
|
||||||
outDir: 'build',
|
outDir: 'build',
|
||||||
chunkSizeWarningLimit: 1600,
|
chunkSizeWarningLimit: 1600,
|
||||||
commonjsOptions: { transformMixedEsModules: true },
|
commonjsOptions: { transformMixedEsModules: true },
|
||||||
|
esbuild: {
|
||||||
|
target: 'es2020',
|
||||||
|
legalComments: 'none'
|
||||||
|
}
|
||||||
},
|
},
|
||||||
server: {
|
server: {
|
||||||
watch: {
|
watch: {
|
||||||
|
|||||||
Reference in new issue
Block a user