{
- handleSaveClick()
- navigate(`/modules/${moduleId}/configurations`)
- }}
+ onClick={() => handleSaveClick()}
disabled={disableBtn}
type="primary"
className="configuration-editor-page__save-btn"
@@ -175,10 +186,12 @@ const ConfigurationEditorPage: FC = () => {
-
- Форма
- JSON
- Редактор кода
+
+ Форма
+
+ JSON
+
+ Редактор кода
{renderContent()}
@@ -186,7 +199,7 @@ const ConfigurationEditorPage: FC = () => {
setShowSchemeModal(false)}
/>
diff --git a/src/pages/ConfigurationsPage/index.tsx b/src/pages/ConfigurationsPage/index.tsx
index 66b170f..4d36b18 100644
--- a/src/pages/ConfigurationsPage/index.tsx
+++ b/src/pages/ConfigurationsPage/index.tsx
@@ -20,7 +20,6 @@ import { PermissionKeysType } from '@type/roles.type.ts'
import './configurations.scss'
-
const Configurations = () => {
const {
data: modulesList = [],
diff --git a/src/pages/ConnectionsPage/index.tsx b/src/pages/ConnectionsPage/index.tsx
index 639de4d..d796d2c 100644
--- a/src/pages/ConnectionsPage/index.tsx
+++ b/src/pages/ConnectionsPage/index.tsx
@@ -1,9 +1,18 @@
import { Spin, Table, Tag, Tooltip } from 'antd'
import { ColumnsType } from 'antd/es/table'
+import dayjs from 'dayjs'
+import relativeTime from 'dayjs/plugin/relativeTime'
import { memo, useEffect, useState } from 'react'
import { useNavigate, useParams } from 'react-router-dom'
-import { AddressType, EndpointType, ModuleStatusType, ModuleType } from '@pages/ModulesPage/module.type.ts'
+import { dateFormats } from '@constants/date.ts'
+
+import {
+ AddressType,
+ EndpointType,
+ ModuleStatusType,
+ ModuleType
+} from '@pages/ModulesPage/module.type.ts'
import useRole from '@hooks/useRole.tsx'
@@ -14,9 +23,6 @@ import { routePaths } from '@routes/routePaths.ts'
import { PermissionKeysType } from '@type/roles.type.ts'
import './connections.scss'
-import dayjs from 'dayjs'
-import relativeTime from 'dayjs/plugin/relativeTime'
-import { dateFormats } from '@constants/date.ts'
const Connections = () => {
const { data: ConnectionsList = [], isLoading: isModulesLoading } =
@@ -55,9 +61,9 @@ const Connections = () => {
dayjs(obj).format(dateFormats.fullFormat)
const keySelector = ({
- address: { ip, port },
- establishedAt
- }: ModuleStatusType) => ip + port + establishedAt
+ address: { ip, port },
+ establishedAt
+ }: ModuleStatusType) => ip + port + establishedAt
const renderEndpoints = ({ endpoints }: ModuleStatusType) => {
if (endpoints && endpoints.length) {
@@ -67,7 +73,11 @@ const Connections = () => {
{path}
{inner && (
-
+
Внутренний
)}
diff --git a/src/pages/ModulesPage/index.tsx b/src/pages/ModulesPage/index.tsx
index 261b3cf..f51df34 100644
--- a/src/pages/ModulesPage/index.tsx
+++ b/src/pages/ModulesPage/index.tsx
@@ -27,7 +27,6 @@ import { PermissionKeysType } from '@type/roles.type.ts'
import './modules-page.scss'
-
const { Column } = Layout
const ModulesPage = () => {
@@ -133,58 +132,58 @@ const ModulesPage = () => {
)
const renderItems = (item: ModuleType) => {
- const isSame = versionCompare(item?.status?.map((i) => i.version))
- const textTooltip = isSame
- ? 'Активны экземпляры одинаковых версий'
- : 'Активны экземпляры разных версий'
- const lastVersion = getLastVersion(item.status?.map((i) => i.version))
+ const isSame = versionCompare(item?.status?.map((i) => i.version))
+ const textTooltip = isSame
+ ? 'Активны экземпляры одинаковых версий'
+ : 'Активны экземпляры разных версий'
+ const lastVersion = getLastVersion(item.status?.map((i) => i.version))
- const renderVersion = () => {
- if (!isSame && lastVersion) {
- return (
- } color="warning">
- {lastVersion}
-
- )
- }
- if (isSame && lastVersion) {
- return {lastVersion}
- }
- return ''
+ const renderVersion = () => {
+ if (!isSame && lastVersion) {
+ return (
+ } color="warning">
+ {lastVersion}
+
+ )
}
+ if (isSame && lastVersion) {
+ return {lastVersion}
+ }
+ return ''
+ }
- return (
-
-
-
- {item.name}
-
- {renderVersion()}
-
-
- }
- description={
-
+ return (
+
+
+
+ {item.name}
+
+ {renderVersion()}
+
+
+ }
+ description={
+
активные экземпляры:
-
-
- }
- />
-
-
- )
+
+