Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
23b9e1a1f0 | ||
|
|
dd7aee01ed | ||
|
|
bf773a58f0 | ||
|
|
ac08aef65c |
No files matched your search
@@ -1,3 +1,12 @@
|
|||||||
|
## 0.18.7
|
||||||
|
- Включена поддержка кэширования зависимостей через Docker
|
||||||
|
- Добавлен файл конфигурации nginx
|
||||||
|
## 0.18.6
|
||||||
|
- Обновлена версия библиотеки isp-ui-kit
|
||||||
|
## 0.18.5
|
||||||
|
- Изолирование стилей в ConfirmConfigModal
|
||||||
|
## 0.18.4
|
||||||
|
- Правка стилей модальных окон
|
||||||
## 0.18.3
|
## 0.18.3
|
||||||
- Изменен репозиторий библиотеки isp-ui-kit
|
- Изменен репозиторий библиотеки isp-ui-kit
|
||||||
- Обновлена версия библиотеки isp-ui-kit
|
- Обновлена версия библиотеки isp-ui-kit
|
||||||
|
|||||||
+22
-7
@@ -1,13 +1,28 @@
|
|||||||
FROM node:20-alpine as build-deps
|
ARG NODE_VERSION=lts
|
||||||
|
|
||||||
|
FROM node:${NODE_VERSION}-alpine as base
|
||||||
|
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
COPY . ./
|
|
||||||
RUN apk add git
|
FROM base as deps
|
||||||
RUN npm install
|
|
||||||
|
RUN --mount=type=bind,source=package.json,target=package.json \
|
||||||
|
--mount=type=bind,source=package-lock.json,target=package-lock.json \
|
||||||
|
--mount=type=cache,target=/root/.npm \
|
||||||
|
npm ci --omit=dev
|
||||||
|
|
||||||
|
FROM deps as build
|
||||||
|
|
||||||
|
RUN --mount=type=bind,source=package.json,target=package.json \
|
||||||
|
--mount=type=bind,source=package-lock.json,target=package-lock.json \
|
||||||
|
--mount=type=cache,target=/root/.npm \
|
||||||
|
npm ci
|
||||||
|
|
||||||
|
COPY . .
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
FROM nginx:1.25-alpine-slim
|
FROM nginx:alpine-slim as final
|
||||||
EXPOSE 8001
|
|
||||||
RUN rm -f /etc/nginx/conf.d/default.conf
|
RUN rm -f /etc/nginx/conf.d/default.conf
|
||||||
COPY cfg/80_isp-admin-ui.conf /etc/nginx/conf.d/80_isp-admin-ui.conf
|
COPY cfg/80_isp-admin-ui.conf /etc/nginx/conf.d/80_isp-admin-ui.conf
|
||||||
COPY --from=build-deps /usr/src/app/build /opt/msp/isp-admin-ui
|
COPY --from=build /usr/src/app/build /opt/msp/isp-admin-ui
|
||||||
|
|
||||||
Generated
+8
-8
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "isp-admin-ui",
|
"name": "isp-admin-ui",
|
||||||
"version": "0.18.1",
|
"version": "0.18.6",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "isp-admin-ui",
|
"name": "isp-admin-ui",
|
||||||
"version": "0.18.1",
|
"version": "0.18.6",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@apidevtools/json-schema-ref-parser": "^9.0.6",
|
"@apidevtools/json-schema-ref-parser": "^9.0.6",
|
||||||
"@monaco-editor/react": "^4.6.0",
|
"@monaco-editor/react": "^4.6.0",
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
"compare-versions": "^6.1.0",
|
"compare-versions": "^6.1.0",
|
||||||
"dayjs": "^1.11.10",
|
"dayjs": "^1.11.10",
|
||||||
"deep-equal": "^2.2.3",
|
"deep-equal": "^2.2.3",
|
||||||
"isp-ui-kit": "^0.10.0",
|
"isp-ui-kit": "^0.10.1",
|
||||||
"json-schema-view-js": "^2.0.1",
|
"json-schema-view-js": "^2.0.1",
|
||||||
"lodash.clonedeep": "^4.5.0",
|
"lodash.clonedeep": "^4.5.0",
|
||||||
"monaco-editor": "^0.52.0",
|
"monaco-editor": "^0.52.0",
|
||||||
@@ -8052,14 +8052,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/isp-ui-kit": {
|
"node_modules/isp-ui-kit": {
|
||||||
"version": "0.10.0",
|
"version": "0.10.1",
|
||||||
"resolved": "https://registry.npmjs.org/isp-ui-kit/-/isp-ui-kit-0.10.0.tgz",
|
"resolved": "https://registry.npmjs.org/isp-ui-kit/-/isp-ui-kit-0.10.1.tgz",
|
||||||
"integrity": "sha512-VfL1hZ44O9Y3p3A0C4VK0iC3SBi0gLu8fw+gw0IP1W3Po8G782/P8LS1UNUcJ65acnxFr8uGLf6X1KnJtfZBsA==",
|
"integrity": "sha512-WcDUtS9Gw0mRvLWjytuVT9EY7wZjTSOXKfP2krv4MgeG5Q9eTS36RJ9d2slqS86m5H4PHohMmAJNuomw+sf8Rw==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@monaco-editor/react": "^4.6.0",
|
|
||||||
"flux": "^4.0.4",
|
"flux": "^4.0.4",
|
||||||
"monaco-editor": "^0.52.0",
|
|
||||||
"react-base16-styling": "^0.10.0",
|
"react-base16-styling": "^0.10.0",
|
||||||
"react-lifecycles-compat": "^3.0.4",
|
"react-lifecycles-compat": "^3.0.4",
|
||||||
"react-resizable": "^3.0.5",
|
"react-resizable": "^3.0.5",
|
||||||
@@ -8067,7 +8065,9 @@
|
|||||||
"simplebar-react": "^3.2.4"
|
"simplebar-react": "^3.2.4"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
|
"@monaco-editor/react": "^4.6.0",
|
||||||
"antd": "^5.12.2",
|
"antd": "^5.12.2",
|
||||||
|
"monaco-editor": "^0.52.0",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
"react-hook-form": "^7.49.1"
|
"react-hook-form": "^7.49.1"
|
||||||
|
|||||||
+3
-3
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "isp-admin-ui",
|
"name": "isp-admin-ui",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.18.3",
|
"version": "0.18.7",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "vite",
|
"start": "vite",
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
"fix:prettier": "prettier --write \"src/**/*.{ts,tsx, js}\"",
|
"fix:prettier": "prettier --write \"src/**/*.{ts,tsx, js}\"",
|
||||||
"lint:fix": "eslint --fix .",
|
"lint:fix": "eslint --fix .",
|
||||||
"analyze": "source-map-explorer 'build/static/js/*.js'",
|
"analyze": "source-map-explorer 'build/static/js/*.js'",
|
||||||
"prepare": "husky install"
|
"prepare": "husky || true"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@apidevtools/json-schema-ref-parser": "^9.0.6",
|
"@apidevtools/json-schema-ref-parser": "^9.0.6",
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
"compare-versions": "^6.1.0",
|
"compare-versions": "^6.1.0",
|
||||||
"dayjs": "^1.11.10",
|
"dayjs": "^1.11.10",
|
||||||
"deep-equal": "^2.2.3",
|
"deep-equal": "^2.2.3",
|
||||||
"isp-ui-kit": "^0.10.0",
|
"isp-ui-kit": "^0.10.1",
|
||||||
"json-schema-view-js": "^2.0.1",
|
"json-schema-view-js": "^2.0.1",
|
||||||
"lodash.clonedeep": "^4.5.0",
|
"lodash.clonedeep": "^4.5.0",
|
||||||
"monaco-editor": "^0.52.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 configServiceApi from '@services/configService.ts'
|
||||||
|
|
||||||
|
import './confirm-config-modal.scss'
|
||||||
|
|
||||||
interface ConfirmModalProps extends Omit<ModalPropsType, 'title' | 'children'> {
|
interface ConfirmModalProps extends Omit<ModalPropsType, 'title' | 'children'> {
|
||||||
handleSaveClick: (upVersion?: number, unsafe?: boolean) => void
|
handleSaveClick: (upVersion?: number, unsafe?: boolean) => void
|
||||||
setBufConfig: Dispatch<SetStateAction<ConfigType | undefined>>
|
setBufConfig: Dispatch<SetStateAction<ConfigType | undefined>>
|
||||||
@@ -33,13 +35,14 @@ const ConfirmConfigModal: FC<ConfirmModalProps> = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<div className="confirm-config-modal">
|
||||||
<Modal
|
<Modal
|
||||||
title="Версия конфигурации была кем-то изменена"
|
title="Версия конфигурации была кем-то изменена"
|
||||||
open={open}
|
open={open}
|
||||||
onClose={onClose}
|
onClose={onClose}
|
||||||
>
|
>
|
||||||
<Button
|
<Button
|
||||||
className="confirm-modal-btn danger"
|
className="confirm-btn danger"
|
||||||
type="primary"
|
type="primary"
|
||||||
danger
|
danger
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
@@ -49,10 +52,11 @@ const ConfirmConfigModal: FC<ConfirmModalProps> = ({
|
|||||||
>
|
>
|
||||||
Сохранить принудительно
|
Сохранить принудительно
|
||||||
</Button>
|
</Button>
|
||||||
<Button className="confirm-modal-btn" type="primary" onClick={onConfirmHandler}>
|
<Button className="confirm-btn" type="primary" onClick={onConfirmHandler}>
|
||||||
Принять изменения
|
Принять изменения
|
||||||
</Button>
|
</Button>
|
||||||
</Modal>
|
</Modal>
|
||||||
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
export default ConfirmConfigModal
|
export default ConfirmConfigModal
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
.confirm-config-modal {
|
||||||
|
.modal__content {
|
||||||
|
display: flex;
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -129,11 +129,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.modal__wrap {
|
.modal__wrap {
|
||||||
min-height: 100px;
|
min-height: 110px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.confirm-btn {
|
.confirm-btn {
|
||||||
width: 190px;
|
width: auto;
|
||||||
|
min-width: 190px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.error-data {
|
.error-data {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
border: none;
|
border: none;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
padding: 0 !important;
|
padding: 5px !important;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 8px;
|
top: 8px;
|
||||||
right: 8px;
|
right: 8px;
|
||||||
|
|||||||
@@ -40,16 +40,16 @@
|
|||||||
&__title {
|
&__title {
|
||||||
color: $grey;
|
color: $grey;
|
||||||
font-size: 17px;
|
font-size: 17px;
|
||||||
padding-right: 20px;
|
padding: 0 10px;
|
||||||
}
|
}
|
||||||
&__content {
|
&__content {
|
||||||
|
padding: 10px;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #2c3e50;
|
color: #2c3e50;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
}
|
}
|
||||||
&__footer {
|
&__footer {
|
||||||
|
padding: 0 10px;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: end;
|
justify-content: end;
|
||||||
margin-top: $basic-margin;
|
margin-top: $basic-margin;
|
||||||
|
|||||||
Reference in new issue
Block a user