Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dd7aee01ed | ||
|
|
bf773a58f0 | ||
|
|
ac08aef65c |
No files matched your search
@@ -1,3 +1,9 @@
|
||||
## 0.18.6
|
||||
- Обновлена версия библиотеки isp-ui-kit
|
||||
## 0.18.5
|
||||
- Изолирование стилей в ConfirmConfigModal
|
||||
## 0.18.4
|
||||
- Правка стилей модальных окон
|
||||
## 0.18.3
|
||||
- Изменен репозиторий библиотеки isp-ui-kit
|
||||
- Обновлена версия библиотеки isp-ui-kit
|
||||
|
||||
Generated
+8
-8
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "isp-admin-ui",
|
||||
"version": "0.18.1",
|
||||
"version": "0.18.6",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "isp-admin-ui",
|
||||
"version": "0.18.1",
|
||||
"version": "0.18.6",
|
||||
"dependencies": {
|
||||
"@apidevtools/json-schema-ref-parser": "^9.0.6",
|
||||
"@monaco-editor/react": "^4.6.0",
|
||||
@@ -19,7 +19,7 @@
|
||||
"compare-versions": "^6.1.0",
|
||||
"dayjs": "^1.11.10",
|
||||
"deep-equal": "^2.2.3",
|
||||
"isp-ui-kit": "^0.10.0",
|
||||
"isp-ui-kit": "^0.10.1",
|
||||
"json-schema-view-js": "^2.0.1",
|
||||
"lodash.clonedeep": "^4.5.0",
|
||||
"monaco-editor": "^0.52.0",
|
||||
@@ -8052,14 +8052,12 @@
|
||||
}
|
||||
},
|
||||
"node_modules/isp-ui-kit": {
|
||||
"version": "0.10.0",
|
||||
"resolved": "https://registry.npmjs.org/isp-ui-kit/-/isp-ui-kit-0.10.0.tgz",
|
||||
"integrity": "sha512-VfL1hZ44O9Y3p3A0C4VK0iC3SBi0gLu8fw+gw0IP1W3Po8G782/P8LS1UNUcJ65acnxFr8uGLf6X1KnJtfZBsA==",
|
||||
"version": "0.10.1",
|
||||
"resolved": "https://registry.npmjs.org/isp-ui-kit/-/isp-ui-kit-0.10.1.tgz",
|
||||
"integrity": "sha512-WcDUtS9Gw0mRvLWjytuVT9EY7wZjTSOXKfP2krv4MgeG5Q9eTS36RJ9d2slqS86m5H4PHohMmAJNuomw+sf8Rw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@monaco-editor/react": "^4.6.0",
|
||||
"flux": "^4.0.4",
|
||||
"monaco-editor": "^0.52.0",
|
||||
"react-base16-styling": "^0.10.0",
|
||||
"react-lifecycles-compat": "^3.0.4",
|
||||
"react-resizable": "^3.0.5",
|
||||
@@ -8067,7 +8065,9 @@
|
||||
"simplebar-react": "^3.2.4"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@monaco-editor/react": "^4.6.0",
|
||||
"antd": "^5.12.2",
|
||||
"monaco-editor": "^0.52.0",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-hook-form": "^7.49.1"
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "isp-admin-ui",
|
||||
"private": true,
|
||||
"version": "0.18.3",
|
||||
"version": "0.18.6",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"start": "vite",
|
||||
@@ -25,7 +25,7 @@
|
||||
"compare-versions": "^6.1.0",
|
||||
"dayjs": "^1.11.10",
|
||||
"deep-equal": "^2.2.3",
|
||||
"isp-ui-kit": "^0.10.0",
|
||||
"isp-ui-kit": "^0.10.1",
|
||||
"json-schema-view-js": "^2.0.1",
|
||||
"lodash.clonedeep": "^4.5.0",
|
||||
"monaco-editor": "^0.52.0",
|
||||
|
||||
@@ -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,13 +35,14 @@ const ConfirmConfigModal: FC<ConfirmModalProps> = ({
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="confirm-config-modal">
|
||||
<Modal
|
||||
title="Версия конфигурации была кем-то изменена"
|
||||
open={open}
|
||||
onClose={onClose}
|
||||
>
|
||||
<Button
|
||||
className="confirm-modal-btn danger"
|
||||
className="confirm-btn danger"
|
||||
type="primary"
|
||||
danger
|
||||
onClick={() => {
|
||||
@@ -49,10 +52,11 @@ const ConfirmConfigModal: FC<ConfirmModalProps> = ({
|
||||
>
|
||||
Сохранить принудительно
|
||||
</Button>
|
||||
<Button className="confirm-modal-btn" type="primary" onClick={onConfirmHandler}>
|
||||
<Button className="confirm-btn" type="primary" onClick={onConfirmHandler}>
|
||||
Принять изменения
|
||||
</Button>
|
||||
</Modal>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
export default ConfirmConfigModal
|
||||
@@ -0,0 +1,6 @@
|
||||
.confirm-config-modal {
|
||||
.modal__content {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
}
|
||||
}
|
||||
@@ -129,11 +129,12 @@
|
||||
}
|
||||
|
||||
.modal__wrap {
|
||||
min-height: 100px;
|
||||
min-height: 110px;
|
||||
}
|
||||
|
||||
.confirm-btn {
|
||||
width: 190px;
|
||||
width: auto;
|
||||
min-width: 190px;
|
||||
}
|
||||
|
||||
.error-data {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
border: none;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
padding: 0 !important;
|
||||
padding: 5px !important;
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
right: 8px;
|
||||
|
||||
@@ -40,16 +40,16 @@
|
||||
&__title {
|
||||
color: $grey;
|
||||
font-size: 17px;
|
||||
padding-right: 20px;
|
||||
padding: 0 10px;
|
||||
}
|
||||
&__content {
|
||||
padding: 10px;
|
||||
font-size: 14px;
|
||||
color: #2c3e50;
|
||||
overflow: auto;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
&__footer {
|
||||
padding: 0 10px;
|
||||
display: flex;
|
||||
justify-content: end;
|
||||
margin-top: $basic-margin;
|
||||
|
||||
Reference in new issue
Block a user