Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fbad913311 | ||
|
|
685a32ee30 |
No files matched your search
@@ -1,3 +1,7 @@
|
|||||||
|
## 0.18.1
|
||||||
|
- В разделе модули в таблице подключений модуля для key строк в таблице добавлено id
|
||||||
|
## 0.18.0
|
||||||
|
- Исправлено редактирование JSON в конфиге
|
||||||
## 0.17.3
|
## 0.17.3
|
||||||
- Обновлены зависимости в package.json
|
- Обновлены зависимости в package.json
|
||||||
## 0.17.1
|
## 0.17.1
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "isp-admin-ui",
|
"name": "isp-admin-ui",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.17.3",
|
"version": "0.18.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "vite",
|
"start": "vite",
|
||||||
|
|||||||
@@ -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}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -60,11 +60,6 @@ const Connections = () => {
|
|||||||
const formatFullDate = (obj: string) =>
|
const formatFullDate = (obj: string) =>
|
||||||
dayjs(obj).format(dateFormats.fullFormat)
|
dayjs(obj).format(dateFormats.fullFormat)
|
||||||
|
|
||||||
const keySelector = ({
|
|
||||||
address: { ip, port },
|
|
||||||
establishedAt
|
|
||||||
}: ModuleStatusType) => ip + port + establishedAt
|
|
||||||
|
|
||||||
const renderEndpoints = ({ endpoints }: ModuleStatusType) => {
|
const renderEndpoints = ({ endpoints }: ModuleStatusType) => {
|
||||||
if (endpoints && endpoints.length) {
|
if (endpoints && endpoints.length) {
|
||||||
return (
|
return (
|
||||||
@@ -144,7 +139,7 @@ const Connections = () => {
|
|||||||
<div className="connection-page__content">
|
<div className="connection-page__content">
|
||||||
<div className="connection-page__content__wrap-table">
|
<div className="connection-page__content__wrap-table">
|
||||||
<Table
|
<Table
|
||||||
rowKey={keySelector}
|
rowKey={(record) => record.id}
|
||||||
pagination={false}
|
pagination={false}
|
||||||
dataSource={obj}
|
dataSource={obj}
|
||||||
columns={columns}
|
columns={columns}
|
||||||
|
|||||||
Reference in new issue
Block a user