Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bf773a58f0 | ||
|
|
ac08aef65c | ||
|
|
03fa976526 | ||
|
|
64852bca9f | ||
|
|
fbad913311 | ||
|
|
685a32ee30 | ||
|
|
75f491520b |
No files matched your search
@@ -1,3 +1,23 @@
|
||||
## 0.18.5
|
||||
- Изолирование стилей в ConfirmConfigModal
|
||||
## 0.18.4
|
||||
- Правка стилей модальных окон
|
||||
## 0.18.3
|
||||
- Изменен репозиторий библиотеки isp-ui-kit
|
||||
- Обновлена версия библиотеки isp-ui-kit
|
||||
## 0.18.2
|
||||
- Добавлено закрытие модального окна после изменения пароля
|
||||
- Добавлен рефеч данных профиля пос после обновления роли
|
||||
- Исправлена верстка модального окна
|
||||
- Добавлено отправка формы на странице логина по нажатии Enter
|
||||
## 0.18.1
|
||||
- В разделе модули в таблице подключений модуля для key строк в таблице добавлено id
|
||||
## 0.18.0
|
||||
- Исправлено редактирование JSON в конфиге
|
||||
## 0.17.3
|
||||
- Обновлены зависимости в package.json
|
||||
## 0.17.1
|
||||
- Обновлена библиотека isp-ui-kit
|
||||
## 0.17.0
|
||||
- Codemirror заменен на MonacoEditor
|
||||
## 0.16.0
|
||||
|
||||
Generated
+241
-447
File diff suppressed because it is too large.
Load diff
+5
-5
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "isp-admin-ui",
|
||||
"private": true,
|
||||
"version": "0.17.0",
|
||||
"version": "0.18.5",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"start": "vite",
|
||||
@@ -20,12 +20,12 @@
|
||||
"@rjsf/antd": "^5.21.2",
|
||||
"@rjsf/core": "^5.21.2",
|
||||
"@rjsf/validator-ajv8": "^5.21.2",
|
||||
"axios": "^1.6.8",
|
||||
"axios": "^1.7.7",
|
||||
"clipboard": "^2.0.11",
|
||||
"compare-versions": "^6.1.0",
|
||||
"dayjs": "^1.11.10",
|
||||
"deep-equal": "^2.2.3",
|
||||
"isp-ui-kit": "github:txix-open/isp-ui-kit",
|
||||
"isp-ui-kit": "^0.10.0",
|
||||
"json-schema-view-js": "^2.0.1",
|
||||
"lodash.clonedeep": "^4.5.0",
|
||||
"monaco-editor": "^0.52.0",
|
||||
@@ -63,10 +63,10 @@
|
||||
"eslint-plugin-react-refresh": "^0.4.6",
|
||||
"husky": "^9.0.11",
|
||||
"prettier": "^3.2.5",
|
||||
"sass": "^1.74.1",
|
||||
"sass": "1.74.1",
|
||||
"terser": "^5.30.3",
|
||||
"typescript": "^5.4.3",
|
||||
"vite": "^5.2.8",
|
||||
"vite": "^5.4.10",
|
||||
"vite-bundle-visualizer": "^1.2.1",
|
||||
"vite-plugin-node-polyfills": "^0.21.0",
|
||||
"vite-plugin-style-import": "^2.0.0",
|
||||
|
||||
@@ -47,6 +47,7 @@ const ChangePasswordModal: FC<ChangePasswordModalProps> = ({
|
||||
await logoutUser()
|
||||
message.success('Пароль успешно изменен')
|
||||
clearErrors('oldPassword')
|
||||
onClose()
|
||||
} catch (error: any) {
|
||||
if (error.response.data.errorCode === 1001) {
|
||||
setError('oldPassword', {
|
||||
|
||||
@@ -4,12 +4,10 @@ import { FC, useContext } from 'react'
|
||||
|
||||
import { ConfigurationEditorPropsType } from '@pages/ConfigurationEditorPage/ConfigurationEditor.type.ts'
|
||||
|
||||
import { cleanEmptyParamsObject } from '@utils/objectUtils.ts'
|
||||
|
||||
import { Context } from '@stores/index.tsx'
|
||||
|
||||
const ConfigurationEditorJson: FC<ConfigurationEditorPropsType> = ({
|
||||
bufConfig = {},
|
||||
bufConfig,
|
||||
setBufConfig,
|
||||
isCurrentConfigLoading
|
||||
}) => {
|
||||
@@ -23,7 +21,7 @@ const ConfigurationEditorJson: FC<ConfigurationEditorPropsType> = ({
|
||||
...bufConfig,
|
||||
data: { ...updated_src }
|
||||
}
|
||||
setBufConfig(cleanEmptyParamsObject(newData))
|
||||
setBufConfig(newData)
|
||||
}
|
||||
|
||||
return (
|
||||
@@ -37,7 +35,7 @@ const ConfigurationEditorJson: FC<ConfigurationEditorPropsType> = ({
|
||||
enableClipboard={true}
|
||||
iconStyle="square"
|
||||
onEdit={({ updated_src }: any) => handleEdit(updated_src)}
|
||||
src={bufConfig.data}
|
||||
src={bufConfig?.data}
|
||||
sortKeys={true}
|
||||
collapsed={1}
|
||||
/>
|
||||
|
||||
@@ -9,6 +9,8 @@ import { ConfigType } from '@pages/ModulesPage/module.type.ts'
|
||||
|
||||
import configServiceApi from '@services/configService.ts'
|
||||
|
||||
import './confirm-config-modal.scss'
|
||||
|
||||
interface ConfirmModalProps extends Omit<ModalPropsType, 'title' | 'children'> {
|
||||
handleSaveClick: (upVersion?: number, unsafe?: boolean) => void
|
||||
setBufConfig: Dispatch<SetStateAction<ConfigType | undefined>>
|
||||
@@ -33,6 +35,7 @@ const ConfirmConfigModal: FC<ConfirmModalProps> = ({
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="confirm-config-modal">
|
||||
<Modal
|
||||
title="Версия конфигурации была кем-то изменена"
|
||||
open={open}
|
||||
@@ -53,6 +56,7 @@ const ConfirmConfigModal: FC<ConfirmModalProps> = ({
|
||||
Принять изменения
|
||||
</Button>
|
||||
</Modal>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
export default ConfirmConfigModal
|
||||
@@ -0,0 +1,6 @@
|
||||
.confirm-config-modal {
|
||||
.modal__content {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
}
|
||||
}
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
|
||||
export interface ConfigurationEditorPropsType {
|
||||
jsonSchema?: ResponseSchemaType
|
||||
bufConfig?: ConfigType
|
||||
bufConfig: ConfigType
|
||||
setBufConfig: Dispatch<SetStateAction<ConfigType | undefined>>
|
||||
isCurrentConfigLoading: boolean
|
||||
setDisableBtn?: Dispatch<SetStateAction<boolean>>
|
||||
|
||||
@@ -113,9 +113,6 @@
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
.ant-btn-group {
|
||||
@@ -136,11 +133,8 @@
|
||||
}
|
||||
|
||||
.confirm-btn {
|
||||
width: 190px;
|
||||
}
|
||||
|
||||
.confirm-btn, .danger {
|
||||
margin-right: $basic-margin;
|
||||
width: auto;
|
||||
min-width: 190px;
|
||||
}
|
||||
|
||||
.error-data {
|
||||
|
||||
@@ -130,7 +130,7 @@ const ConfigurationEditorPage: FC = () => {
|
||||
return (
|
||||
<ConfigurationEditorForm
|
||||
submitRef={submitRef}
|
||||
bufConfig={bufConfig}
|
||||
bufConfig={bufConfig as ConfigType}
|
||||
setBufConfig={setBufConfig}
|
||||
jsonSchema={jsonSchema}
|
||||
isCurrentConfigLoading={isCurrentConfigLoading}
|
||||
@@ -140,7 +140,7 @@ const ConfigurationEditorPage: FC = () => {
|
||||
case jsonRadio:
|
||||
return (
|
||||
<ConfigurationEditorJson
|
||||
bufConfig={bufConfig}
|
||||
bufConfig={bufConfig as ConfigType}
|
||||
setBufConfig={setBufConfig}
|
||||
isCurrentConfigLoading={isCurrentConfigLoading}
|
||||
/>
|
||||
@@ -149,7 +149,7 @@ const ConfigurationEditorPage: FC = () => {
|
||||
return (
|
||||
<ConfigurationEditorCode
|
||||
setDisableBtn={setDisableBtn}
|
||||
bufConfig={bufConfig}
|
||||
bufConfig={bufConfig as ConfigType}
|
||||
setBufConfig={setBufConfig}
|
||||
isCurrentConfigLoading={isCurrentConfigLoading}
|
||||
/>
|
||||
|
||||
@@ -60,11 +60,6 @@ const Connections = () => {
|
||||
const formatFullDate = (obj: string) =>
|
||||
dayjs(obj).format(dateFormats.fullFormat)
|
||||
|
||||
const keySelector = ({
|
||||
address: { ip, port },
|
||||
establishedAt
|
||||
}: ModuleStatusType) => ip + port + establishedAt
|
||||
|
||||
const renderEndpoints = ({ endpoints }: ModuleStatusType) => {
|
||||
if (endpoints && endpoints.length) {
|
||||
return (
|
||||
@@ -144,7 +139,7 @@ const Connections = () => {
|
||||
<div className="connection-page__content">
|
||||
<div className="connection-page__content__wrap-table">
|
||||
<Table
|
||||
rowKey={keySelector}
|
||||
rowKey={(record) => record.id}
|
||||
pagination={false}
|
||||
dataSource={obj}
|
||||
columns={columns}
|
||||
|
||||
@@ -96,6 +96,7 @@ const LoginPage = () => {
|
||||
type="primary"
|
||||
className="login-page__content__submit-btn"
|
||||
onClick={handleSubmit(handleSubmitForm)}
|
||||
htmlType="submit"
|
||||
>
|
||||
Войти
|
||||
</Button>
|
||||
|
||||
@@ -24,6 +24,8 @@ import { routePaths } from '@routes/routePaths.ts'
|
||||
import { NewRoleType, PermissionKeysType, RoleType } from '@type/roles.type.ts'
|
||||
|
||||
import './roles-page.scss'
|
||||
import { useAppDispatch } from '@hooks/redux.ts'
|
||||
import { fetchProfile } from '@stores/redusers/ActionCreators.ts'
|
||||
|
||||
const { Column, EmptyData, NoData } = Layout
|
||||
|
||||
@@ -34,6 +36,7 @@ const RolesPage = () => {
|
||||
const fromApp = location.state?.fromApp || false
|
||||
const { role, hasPermission } = useRole()
|
||||
const [searchParams, setSearchParams] = useSearchParams()
|
||||
const dispatch = useAppDispatch()
|
||||
const searchValue = searchParams.get('search') || ''
|
||||
const { data: permissionList = [], isLoading: isPermissionLoading } =
|
||||
userServiceApi.useGetAllPermissionsQuery()
|
||||
@@ -97,6 +100,7 @@ const RolesPage = () => {
|
||||
updateRole(formValue as RoleType)
|
||||
.unwrap()
|
||||
.then(() => {
|
||||
dispatch(fetchProfile())
|
||||
message.success('Элемент успешно добавлен').then()
|
||||
})
|
||||
.catch((error) => {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
.close-btn {
|
||||
border: none;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
padding: 5px !important;
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
|
||||
@@ -49,6 +49,7 @@
|
||||
overflow: auto;
|
||||
}
|
||||
&__footer {
|
||||
padding: 0 10px;
|
||||
display: flex;
|
||||
justify-content: end;
|
||||
margin-top: $basic-margin;
|
||||
|
||||
+5
-2
@@ -5,7 +5,6 @@ import svgr from 'vite-plugin-svgr'
|
||||
|
||||
import tsconfigPaths from 'vite-tsconfig-paths'
|
||||
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig(({ mode }) => {
|
||||
const env = loadEnv(mode, process.cwd(), '')
|
||||
@@ -17,10 +16,14 @@ export default defineConfig(({ mode }) => {
|
||||
},
|
||||
build: {
|
||||
minify: 'esbuild',
|
||||
sourcemap: true,
|
||||
sourcemap: mode !== 'production',
|
||||
outDir: 'build',
|
||||
chunkSizeWarningLimit: 1600,
|
||||
commonjsOptions: { transformMixedEsModules: true },
|
||||
esbuild: {
|
||||
target: 'es2020',
|
||||
legalComments: 'none'
|
||||
}
|
||||
},
|
||||
server: {
|
||||
watch: {
|
||||
|
||||
Reference in new issue
Block a user