diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e275b7..5a60ea6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,17 +1,14 @@ +## 0.2.4 +- Изменен Layout +## 0.2.3 +- Добавлен экран входа ## 0.2.2 - - Добавлен редирект после логина - ## 0.2.1 - - ThemeProvider заменен на ConfigProvider в компоненте - ## 0.2.0 - - Добавлены роли и приватный роутер - ## 0.1.0 - - Инициализирован проект - Добавлена темная тема antd - Добавлен layout diff --git a/package.json b/package.json index 5d3f423..0878cf9 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "unsubscribe_landing", "private": true, - "version": "0.2.2", + "version": "0.2.4", "type": "module", "scripts": { "start": "vite", @@ -17,9 +17,10 @@ "@reduxjs/toolkit": "^2.2.3", "@types/react-router-dom": "^5.3.3", "axios": "^1.6.8", - "isp-ui-kit": "https://github.com/integration-system/isp-ui-kit.git", + "isp-ui-kit": "https://github.com/txix-open/isp-ui-kit", "react": "^18.2.0", "react-dom": "^18.2.0", + "react-hook-form": "^7.51.2", "react-redux": "^9.1.0", "react-router-dom": "^6.22.3" }, diff --git a/src/assets/icon/default-user.svg b/src/assets/icon/default-user.svg new file mode 100644 index 0000000..67e0de6 --- /dev/null +++ b/src/assets/icon/default-user.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/src/assets/icon/search-icon.svg b/src/assets/icon/search-icon.svg new file mode 100644 index 0000000..f5ce949 --- /dev/null +++ b/src/assets/icon/search-icon.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/images/home-background.png b/src/assets/images/home-background.png new file mode 100644 index 0000000..54c4290 Binary files /dev/null and b/src/assets/images/home-background.png differ diff --git a/src/components/Layout/index.tsx b/src/components/Layout/index.tsx index 8927615..c8f52cb 100644 --- a/src/components/Layout/index.tsx +++ b/src/components/Layout/index.tsx @@ -1,54 +1,76 @@ -import { Menu } from 'antd' +import { ProfileOutlined } from '@ant-design/icons' +import { Layout, Menu, Spin } from 'antd' import { useEffect, useState } from 'react' -import { Navigate, Outlet, useNavigate } from 'react-router-dom' +import { Navigate, Outlet, useLocation } from 'react-router-dom' -import Header from '@components/Header' +import { localStorageKeys } from '@constants/localStorageKeys.ts' -import { useAppSelector } from '@hooks/redux.ts' -import { useRole } from '@hooks/useRole.tsx' +import { + MenuItemKeys, + MenuItemType, + menuKeys +} from '@components/Layout/layout.type.ts' +import UserMenu from '@components/UserMenu' +import { LocalStorage } from '@utils/localStorageUtils.ts' + +import { useAppDispatch, useAppSelector } from '@hooks/redux.ts' +import useRole from '@hooks/useRole.tsx' + +import { fetchProfile } from '@stores/redusers/ActionCreators.ts' import { StateProfileStatus } from '@stores/redusers/ProfileSlice.ts' import { routePaths } from '@routes/routePaths.ts' import { PermissionKeys } from '@type/roles.type.ts' -import { MenuItemKeys, menuKeys } from './layout.type.ts' - import './layout.scss' -const Layout = () => { - const { hasPermission } = useRole() - const navigate = useNavigate() - const { status } = useAppSelector((state) => state.profileReducer) +const { Header, Content, Sider } = Layout - const [openKeys, setOpenKeys] = useState([]) +const LayoutComponent = () => { + const [collapsed, setCollapsed] = useState(false) const [selectedMenuKeys, setSelectedMenuKeys] = useState([]) + const [openKeys, setOpenKeys] = useState([]) + const dispatch = useAppDispatch() + const { status } = useAppSelector((state) => state.profileReducer) + const location = useLocation() + const userToken = LocalStorage.get(localStorageKeys.USER_TOKEN) + + const { hasPermission } = useRole() const hideItem = (permission: PermissionKeys | PermissionKeys[]) => { if (Array.isArray(permission)) { const result = permission.reduce((acc, currentValue) => { - const isHasPermission = hasPermission(currentValue) - return isHasPermission || acc + const hasPermissionFunc = hasPermission(currentValue) + return hasPermissionFunc || acc }, false) return result ? '' : 'hide-item' } return hasPermission(permission) ? '' : 'hide-item' } - - const menuItems = [ + const menuItems: MenuItemType[] = [ { - label: 'Profile', - key: 'users', - className: hideItem(PermissionKeys.user_view) - }, - { - label: 'Profile2', - key: 'roles', - className: hideItem(PermissionKeys.user_view) + label: 'Пользователи и роли', + key: 'sessionManagement', + className: hideItem([PermissionKeys.user_view]), + icon: , + children: [ + { + label: 'Пользователи', + key: 'users', + className: hideItem(PermissionKeys.user_view) + } + ] } ] + useEffect(() => { + if (userToken) { + dispatch(fetchProfile()) + } + }, []) + useEffect(() => { const menuKey = location.pathname.split('/')[1] as MenuItemKeys @@ -62,12 +84,6 @@ const Layout = () => { const handlerOnClickMenu = ({ key }: any): void => { switch (key) { - case MenuItemKeys.roles: - navigate(routePaths.error) - break - case MenuItemKeys.users: - navigate(routePaths.home) - break default: } } @@ -77,20 +93,41 @@ const Layout = () => { } return ( -
-
- setOpenKeys(keys)} - openKeys={openKeys} - selectedKeys={selectedMenuKeys} - onClick={handlerOnClickMenu} - theme="light" - mode="inline" - items={menuItems} - /> - -
+ + {status === StateProfileStatus.pending ? ( + + ) : ( + <> + setCollapsed(value)} + > + setOpenKeys(keys)} + openKeys={openKeys} + selectedKeys={selectedMenuKeys} + onClick={handlerOnClickMenu} + theme="light" + mode="inline" + items={menuItems} + /> + + +
+ +
+ + + +
+ + )} + ) } -export default Layout +export default LayoutComponent diff --git a/src/components/Layout/layout.scss b/src/components/Layout/layout.scss index cdfbc06..3f59ccb 100644 --- a/src/components/Layout/layout.scss +++ b/src/components/Layout/layout.scss @@ -1,4 +1,65 @@ + .layout { - min-height: calc(100vh - 96px); - width: 100%; + min-height: 100vh !important; + position: relative; + + .hide-item { + display: none !important; + } + + .ant-spin { + position: absolute; + top: 50%; + left: 50%; + } + .header { + display: flex; + align-items: center; + justify-content: flex-end; + line-height: 18px; + background: #fff; + padding: 0; + &__search { + max-width: 300px; + border: none; + margin-right: auto; + padding-right: 40px; + position: relative; + &:after { + content: ''; + background: url("/src/assets/icon/search-icon.svg"); + width: 13px; + height: 13px; + position: absolute; + right: 45px; + top: 50%; + transform: translateY(-50%); + } + .ant-input-search .ant-input:focus, .ant-input-search .ant-input:hover { + border-color: red !important; + } + & .ant-input { + border: none; + } + & button { + border: none; + display: none; + } + } + & .user { + padding-right: 34px; + } + } + .ant-menu { + border-inline-end: none !important; + } + .ant-layout-sider { + padding-top: 64px; + } + .ant-menu-title-content { + color: #1B1B1B; + padding-left: 15px; + + } + } diff --git a/src/components/Layout/layout.type.ts b/src/components/Layout/layout.type.ts index b588fc5..414fad7 100644 --- a/src/components/Layout/layout.type.ts +++ b/src/components/Layout/layout.type.ts @@ -1,8 +1,7 @@ import { MenuProps } from 'antd' export enum MenuItemKeys { - users = 'users', - roles = 'roles' + users = 'users' } type MenuItem = { @@ -13,10 +12,6 @@ export const menuKeys: Record = { [MenuItemKeys.users]: { key: MenuItemKeys.users, parent: ['sessionManagement'] - }, - [MenuItemKeys.roles]: { - key: MenuItemKeys.roles, - parent: ['sessionManagement'] } } diff --git a/src/components/UserMenu/index.tsx b/src/components/UserMenu/index.tsx new file mode 100644 index 0000000..37b51db --- /dev/null +++ b/src/components/UserMenu/index.tsx @@ -0,0 +1,70 @@ +import { LogoutOutlined, ProfileOutlined } from '@ant-design/icons' +import { Dropdown, MenuProps } from 'antd' +import { useAuth } from 'isp-ui-kit' +import { useNavigate } from 'react-router-dom' + +import { apiPaths } from '@constants/api/apiPaths.ts' +import { localStorageKeys } from '@constants/localStorageKeys.ts' + +import { UserMenuKeys } from '@components/UserMenu/user-menu.type.ts' + +import { getConfigProperty } from '@utils/configUtils.ts' +import { LocalStorage } from '@utils/localStorageUtils.ts' + +import { useAppSelector } from '@hooks/redux.ts' + +import { routePaths } from '@routes/routePaths.ts' + +import './user.scss' + +const items: MenuProps['items'] = [ + { + label: 'Профиль', + key: 'profile', + icon: + }, + { + label: 'Выход', + key: 'logout', + icon: + } +] + +export default function UserMenu() { + const navigate = useNavigate() + const { logout } = useAuth() + const headerName = LocalStorage.get(localStorageKeys.HEADER_NAME) + const { + profile: { firstName } + } = useAppSelector((state) => state.profileReducer) + const handlerDropDownClick = (e: any) => { + if ((e.key as UserMenuKeys) === 'logout') { + logout(apiPaths.logout, { + 'X-APPLICATION-TOKEN': getConfigProperty( + 'APP_TOKEN', + import.meta.env.VITE_APP_TOKEN + ), + [headerName]: LocalStorage.get(localStorageKeys.USER_TOKEN) + }) + .then(() => { + LocalStorage.remove(localStorageKeys.USER_TOKEN) + LocalStorage.remove(localStorageKeys.HEADER_NAME) + navigate(routePaths.login, { replace: true }) + }) + .catch(() => {}) + } + } + + return ( + +
e.preventDefault()}> + + {firstName || ''} +
+
+ ) +} diff --git a/src/components/UserMenu/user-menu.type.ts b/src/components/UserMenu/user-menu.type.ts new file mode 100644 index 0000000..2f5ac06 --- /dev/null +++ b/src/components/UserMenu/user-menu.type.ts @@ -0,0 +1 @@ +export type UserMenuKeys = 'logout' | 'profile' diff --git a/src/components/UserMenu/user.scss b/src/components/UserMenu/user.scss new file mode 100644 index 0000000..cd88116 --- /dev/null +++ b/src/components/UserMenu/user.scss @@ -0,0 +1,16 @@ +@import "src/constants/styleConstants"; +.user { + cursor: pointer; + display: flex; + align-items: center; + background: transparent; + border: none; + &__avatar { + width: 24px; + height: 24px; + background: url("/src/assets/icon/default-user.svg") no-repeat, center left; + } + &__name { + margin-left: $basic-margin; + } +} \ No newline at end of file diff --git a/src/components/app.scss b/src/components/app.scss index ae9c42c..d5cbfe7 100644 --- a/src/components/app.scss +++ b/src/components/app.scss @@ -1,4 +1,13 @@ -#root { - width: 100%; - text-align: center; +@import "src/constants/styleConstants"; + +*, html { + margin:0; + padding:0; + box-sizing: border-box; +} + +.app{ + padding: 0 $basic-padding; + min-height: 0; + min-width: 500px; } diff --git a/src/constants/api/apiPaths.ts b/src/constants/api/apiPaths.ts index 9a646a1..24bc0d9 100644 --- a/src/constants/api/apiPaths.ts +++ b/src/constants/api/apiPaths.ts @@ -1,5 +1,7 @@ -type PathKeys = 'baseUrl' +type PathKeys = 'baseUrl' | 'login' | 'logout' export const apiPaths: Record = { - baseUrl: '/' + baseUrl: '/', + login: '/api/admin/auth/login', + logout: '/api/admin/auth/logout' } diff --git a/src/constants/form/validationRules.ts b/src/constants/form/validationRules.ts new file mode 100644 index 0000000..c3edf39 --- /dev/null +++ b/src/constants/form/validationRules.ts @@ -0,0 +1,5 @@ +type ValidationRulesKeys = 'required' + +export const ValidationRules: Record = { + required: { value: true, message: 'Поле не может быть пустым' } +} diff --git a/src/constants/messages.ts b/src/constants/messages.ts new file mode 100644 index 0000000..9f1a579 --- /dev/null +++ b/src/constants/messages.ts @@ -0,0 +1,6 @@ +type MessagesKey = 'serverError' | 'loginError' + +export const messages: Record = { + serverError: 'Внутренняя ошибка сервиса', + loginError: 'Неверный логин или пароль' +} diff --git a/src/constants/styleConstants.scss b/src/constants/styleConstants.scss new file mode 100644 index 0000000..a1f21b7 --- /dev/null +++ b/src/constants/styleConstants.scss @@ -0,0 +1,18 @@ +$background-color: #F0F2F5; +$text-color-gray: var(--ant-primary-color); +$text-color-blue: #1890FF; + +$basic-margin: 8px; +$basic-padding: 8px; + +$text-size: 14px; + +$border-color: #F0F0F0; + +$blue-color: #40A9FF; +$blue-light: #E6F7FF; + +$grey:#606060; +$red: #FF4D4F; +$green: #52C41A; +$yellow: #FAAD14; diff --git a/src/index.css b/src/index.css deleted file mode 100644 index 10afaa5..0000000 --- a/src/index.css +++ /dev/null @@ -1,4 +0,0 @@ -body { - margin: 0; - min-height: 100vh; -} diff --git a/src/index.tsx b/src/index.tsx index 0bf6353..73f7703 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -5,7 +5,6 @@ import { BrowserRouter } from 'react-router-dom' import App from './components/App.tsx' -import './index.css' import { setupStore } from './stores' const store = setupStore() diff --git a/src/pages/HomePage/home-page.scss b/src/pages/HomePage/home-page.scss new file mode 100644 index 0000000..800dd35 --- /dev/null +++ b/src/pages/HomePage/home-page.scss @@ -0,0 +1,13 @@ +.home-page { + height: 100%; + display: flex; + justify-content: center; + align-items: center; + + background-image: url("/src/assets/images/home-background.png"); + font-size: calc(1.5vw + 1.5vh); + font-family: 'Roboto',sans-serif; + font-style: normal; + font-weight: 400; + line-height: 56px; +} diff --git a/src/pages/HomePage/home.scss b/src/pages/HomePage/home.scss deleted file mode 100644 index 778decf..0000000 --- a/src/pages/HomePage/home.scss +++ /dev/null @@ -1,5 +0,0 @@ -.main { - min-height: 100vh; - display: flex; - justify-content: center; -} diff --git a/src/pages/HomePage/index.tsx b/src/pages/HomePage/index.tsx index c5553ff..7e844ac 100644 --- a/src/pages/HomePage/index.tsx +++ b/src/pages/HomePage/index.tsx @@ -1,29 +1,5 @@ -import { Button, theme } from 'antd' +import './home-page.scss' -import { useRole } from '@hooks/useRole.tsx' - -import { PermissionKeys } from '@type/roles.type.ts' - -import './home.scss' - -const HomePages = () => { - const { hasPermission } = useRole() - const { useToken } = theme - const { token } = useToken() - - const isPageAvailable = hasPermission(PermissionKeys.user_view) - - return ( -
- {isPageAvailable && ( - - )} -
Проверка шрифтов
- -
- ) +export default function HomePage() { + return
Добро пожаловать!
} - -export default HomePages diff --git a/src/pages/LoginPage/index.tsx b/src/pages/LoginPage/index.tsx index fb45451..891d6c8 100644 --- a/src/pages/LoginPage/index.tsx +++ b/src/pages/LoginPage/index.tsx @@ -1,21 +1,118 @@ +import { LockOutlined, UserOutlined } from '@ant-design/icons' +import { Button, Divider } from 'antd' +import { AxiosError } from 'axios' +import { FormComponents, useAuth } from 'isp-ui-kit' +import { useForm } from 'react-hook-form' import { useNavigate } from 'react-router-dom' +import { apiPaths } from '@constants/api/apiPaths.ts' +import { ValidationRules } from '@constants/form/validationRules.ts' +import { localStorageKeys } from '@constants/localStorageKeys.ts' +import { messages } from '@constants/messages.ts' + +import { getConfigProperty } from '@utils/configUtils.ts' +import { LocalStorage } from '@utils/localStorageUtils.ts' + +import { routePaths } from '@routes/routePaths.ts' + +import { MSPError } from '@type/index.ts' +import { LoginRequest } from '@type/login.type.ts' + +import './login-page.scss' + +const passwordLoginEnabled = getConfigProperty('ENABLE_PASSWORD_LOGIN', true) + const LoginPage = () => { + const { login, isLoading } = useAuth() + const { handleSubmit, control, setError } = useForm({ + mode: 'onChange' + }) const navigate = useNavigate() + const setFormError = (statusText: string, message: string): void => { + setError('email', {}) + setError('password', { + message, + type: statusText + }) + } + + const handleError = (err: AxiosError): void => { + const { response } = err + if (response && response.status === 401) { + setFormError(response.statusText, messages.loginError) + } else { + setFormError('serverError', messages.serverError) + } + } + + const handleSubmitForm = (data: LoginRequest): void => { + login(apiPaths.login, data, { + 'X-APPLICATION-TOKEN': getConfigProperty( + 'APP_TOKEN', + import.meta.env.VITE_APP_TOKEN + ) + }) + .then((response) => { + LocalStorage.set(localStorageKeys.HEADER_NAME, response.headerName) + LocalStorage.set(localStorageKeys.USER_TOKEN, response.token) + const redirectUrl = + localStorage.getItem('redirectUrl') || routePaths.home + navigate(redirectUrl, { replace: true }) + localStorage.removeItem('redirectUrl') + }) + .catch((err: any) => handleError(err)) + } + + const renderInternalAuthForm = () => { + if (!passwordLoginEnabled) { + return null + } + + return ( + <> + } + placeholder="Логин" + rules={{ required: ValidationRules.required }} + /> + } + type="password" + placeholder="Пароль" + rules={{ required: ValidationRules.required }} + /> + + + ) + } + return (
- +
+

+ Вход в систему +

+ + {renderInternalAuthForm()} +
) } diff --git a/src/pages/LoginPage/login-page.scss b/src/pages/LoginPage/login-page.scss new file mode 100644 index 0000000..41265c6 --- /dev/null +++ b/src/pages/LoginPage/login-page.scss @@ -0,0 +1,52 @@ +@import "src/constants/styleConstants"; + +.login-page { + height: 100vh; + background: $background-color; + + display: flex; + + .ant-input { + width: 300px; + text-align: center; + } + + .ant-divider-horizontal { + margin-top: $basic-margin !important; + } + + .ant-form-item-explain-error { + margin-bottom: $basic-margin; + } + + .color { + color: $text-color-gray; + } + + &__content { + max-width: 360px; + margin: auto; + display: flex; + flex-direction: column; + + &__title { + text-align: center; + font-family: 'Roboto', sans-serif; + font-size: 14px; + line-height: 20px; + color: $text-color-gray; + } + + &__submit-sudir-btn { + background: #0000000f; + margin-top: 4 * $basic-margin; + &:hover { + background: rgba(0, 0, 0, 0.09) !important; + } + } + } + + .requiredInput::after { + content: ""; + } +} diff --git a/src/pages/LoginPage/login.scss b/src/pages/LoginPage/login.scss deleted file mode 100644 index 8acac89..0000000 --- a/src/pages/LoginPage/login.scss +++ /dev/null @@ -1,4 +0,0 @@ -.login-page { - display: flex; - justify-content: center; -} diff --git a/src/routes/Routers/index.tsx b/src/routes/Routers/index.tsx index af8aeac..9b31425 100644 --- a/src/routes/Routers/index.tsx +++ b/src/routes/Routers/index.tsx @@ -1,28 +1,50 @@ -import { App } from 'antd' +import { Spin } from 'antd' +import { Suspense, lazy } from 'react' import { Route, Routes } from 'react-router-dom' -import ErrorPage from '@components/ErrorPage' import Layout from '@components/Layout' -import HomePages from '@pages/HomePage' -import LoginPage from '@pages/LoginPage' +import HomePage from '@pages/HomePage' import PrivateRoute from '@routes/PrivateRoute' import { routePaths } from '@routes/routePaths.ts' +const LoginPage = lazy(() => import('@pages/LoginPage')) + +const ErrorPage = lazy(() => import('@components/ErrorPage')) + const Routers = () => { return ( - - - }> - }> - } /> - + + }> + }> + }> + + + } + /> - } /> - } /> - - + + }> + + + } + /> + }> + + + } + /> + ) } diff --git a/src/stores/redusers/ActionCreators.ts b/src/stores/redusers/ActionCreators.ts index 0c17a60..9ccad9a 100644 --- a/src/stores/redusers/ActionCreators.ts +++ b/src/stores/redusers/ActionCreators.ts @@ -1,8 +1,10 @@ import { createAsyncThunk } from '@reduxjs/toolkit' -import { apiPaths } from '../../constants/api/apiPaths.ts' -import { apiService } from '../../services/apiService.ts' -import { ProfileDataType } from '../../type/profile.type.ts' +import { apiPaths } from '@constants/api/apiPaths.ts' + +import { apiService } from '@services/apiService.ts' + +import { ProfileDataType } from '@type/profile.type.ts' export const fetchProfile = createAsyncThunk( 'profile/fetchProfile', diff --git a/src/stores/redusers/ProfileSlice.ts b/src/stores/redusers/ProfileSlice.ts index d806756..0bdd9e0 100644 --- a/src/stores/redusers/ProfileSlice.ts +++ b/src/stores/redusers/ProfileSlice.ts @@ -4,7 +4,8 @@ import { createSlice } from '@reduxjs/toolkit' -import { ProfileDataType, ProfileType } from '../../type/profile.type.ts' +import { ProfileDataType, ProfileType } from '@type/profile.type.ts' + import { fetchProfile } from './ActionCreators.ts' export enum StateProfileStatus { diff --git a/src/type/login.type.ts b/src/type/login.type.ts new file mode 100644 index 0000000..017e375 --- /dev/null +++ b/src/type/login.type.ts @@ -0,0 +1,9 @@ +export interface LoginRequest { + email: string + password: string +} +export interface LoginResponse { + expired: string + headerName: string + token: string +} diff --git a/src/type/roles.type.ts b/src/type/roles.type.ts index 12f924c..bf9e13e 100644 --- a/src/type/roles.type.ts +++ b/src/type/roles.type.ts @@ -5,7 +5,10 @@ export enum RoleKeys { export enum PermissionKeys { user_view = 'user_view', // Просмотр списка пользователей - admin_view = 'admin_view' // роль суперадмина, требуется для интерфейса + admin_view = 'admin_view', // роль суперадмина, требуется для интерфейса + session_view = 'session_view', // Просмотр списка пользовательских сессий + security_log_view = 'security_log_view', // Просмотр журналов ИБ + role_view = 'role_view', // Просмотр экрана ролей } export type ConfigRoles = { diff --git a/yarn.lock b/yarn.lock index 60ae8b9..637d1f0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -40,7 +40,7 @@ resolved "https://registry.yarnpkg.com/@ant-design/icons-svg/-/icons-svg-4.4.2.tgz#ed2be7fb4d82ac7e1d45a54a5b06d6cecf8be6f6" integrity sha512-vHbT+zJEVzllwP+CM+ul7reTEfBR0vgxFe7+lREAsAA7YGsYpboiq2sQNeQeRvh09GfQgs/GyFEvZpJ9cLXpXA== -"@ant-design/icons@^5.3.5": +"@ant-design/icons@^5.3.5", "@ant-design/icons@^5.3.6": version "5.3.6" resolved "https://registry.yarnpkg.com/@ant-design/icons/-/icons-5.3.6.tgz#172bbcfcfa39f9a1d9ef73ad5cf98c6184fb83f8" integrity sha512-JeWsgNjvkTTC73YDPgWOgdScRku/iHN9JU0qk39OSEmJSCiRghQMLlxGTCY5ovbRRoXjxHXnUKgQEgBDnQfKmA== @@ -51,7 +51,7 @@ classnames "^2.2.6" rc-util "^5.31.1" -"@ant-design/react-slick@~1.1.1": +"@ant-design/react-slick@~1.1.1", "@ant-design/react-slick@~1.1.2": version "1.1.2" resolved "https://registry.yarnpkg.com/@ant-design/react-slick/-/react-slick-1.1.2.tgz#f84ce3e4d0dc941f02b16f1d1d6d7a371ffbb4f1" integrity sha512-EzlvzE6xQUBrZuuhSAFTdsr4P2bBBHGZwKFemEfq8gIGyIQCxalYfZW/T2ORbtQx5rU69o+WycP3exY/7T1hGA== @@ -1035,14 +1035,14 @@ resolved "https://registry.yarnpkg.com/@babel/regjsgen/-/regjsgen-0.8.0.tgz#f0ba69b075e1f05fb2825b7fad991e7adbb18310" integrity sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA== -"@babel/runtime@^7.10.1", "@babel/runtime@^7.10.4", "@babel/runtime@^7.11.1", "@babel/runtime@^7.11.2", "@babel/runtime@^7.12.5", "@babel/runtime@^7.16.7", "@babel/runtime@^7.18.0", "@babel/runtime@^7.18.3", "@babel/runtime@^7.18.6", "@babel/runtime@^7.20.0", "@babel/runtime@^7.20.7", "@babel/runtime@^7.21.0", "@babel/runtime@^7.22.5", "@babel/runtime@^7.23.2", "@babel/runtime@^7.23.6", "@babel/runtime@^7.23.9", "@babel/runtime@^7.24.1": +"@babel/runtime@^7.10.1", "@babel/runtime@^7.10.4", "@babel/runtime@^7.11.1", "@babel/runtime@^7.11.2", "@babel/runtime@^7.12.5", "@babel/runtime@^7.16.7", "@babel/runtime@^7.18.0", "@babel/runtime@^7.18.3", "@babel/runtime@^7.20.0", "@babel/runtime@^7.20.7", "@babel/runtime@^7.21.0", "@babel/runtime@^7.22.5", "@babel/runtime@^7.23.2", "@babel/runtime@^7.23.6", "@babel/runtime@^7.23.9", "@babel/runtime@^7.24.1": version "7.24.1" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.24.1.tgz#431f9a794d173b53720e69a6464abc6f0e2a5c57" integrity sha512-+BIznRzyqBf+2wCTxcKE3wDjfGeCoVE61KSHGpkzqrLi8qxqFwBeUFyId2cxkTmm55fzDGnm0+yCxaxygrLUnQ== dependencies: regenerator-runtime "^0.14.0" -"@babel/runtime@^7.8.4": +"@babel/runtime@^7.18.6", "@babel/runtime@^7.24.4", "@babel/runtime@^7.8.4": version "7.24.4" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.24.4.tgz#de795accd698007a66ba44add6cc86542aff1edd" integrity sha512-dkxf7+hn8mFBwKjs9bvBlArzLVxVbS8usaPUDd5p2a9JCL9tB8OaOVN1isD4+Xyk4ns89/xeOmbQvgdK7IIVdA== @@ -2145,7 +2145,7 @@ ansi-styles@^4.1.0: dependencies: color-convert "^2.0.1" -antd@5.16.0, antd@^5.12.2: +antd@5.16.0: version "5.16.0" resolved "https://registry.yarnpkg.com/antd/-/antd-5.16.0.tgz#6173057ecc9fbf917aa3518c9d55d409e407f754" integrity sha512-2JcZSxTcX5J2Faro5PB85ETAP64cuU91pBqQ2NVHWelmhLXvN3q70R5Qht+E9k3WVsVO8ZbqBJciYqj8K/RbZw== @@ -2199,6 +2199,60 @@ antd@5.16.0, antd@^5.12.2: scroll-into-view-if-needed "^3.1.0" throttle-debounce "^5.0.0" +antd@^5.12.2: + version "5.16.1" + resolved "https://registry.yarnpkg.com/antd/-/antd-5.16.1.tgz#a258e73cac8c6e63c4ec44588e5474f0403cd33a" + integrity sha512-XAlLRrgYV+nj9FHnkXEPS6HNcKcluEa8v44e7Cixjlp8aOXRhUI6IfZaKpc2MPGjQ+06rp62/dsxOUNJW9kfLA== + dependencies: + "@ant-design/colors" "^7.0.2" + "@ant-design/cssinjs" "^1.18.5" + "@ant-design/icons" "^5.3.6" + "@ant-design/react-slick" "~1.1.2" + "@babel/runtime" "^7.24.4" + "@ctrl/tinycolor" "^3.6.1" + "@rc-component/color-picker" "~1.5.3" + "@rc-component/mutate-observer" "^1.1.0" + "@rc-component/tour" "~1.14.2" + "@rc-component/trigger" "^2.0.0" + classnames "^2.5.1" + copy-to-clipboard "^3.3.3" + dayjs "^1.11.10" + qrcode.react "^3.1.0" + rc-cascader "~3.24.0" + rc-checkbox "~3.2.0" + rc-collapse "~3.7.3" + rc-dialog "~9.4.0" + rc-drawer "~7.1.0" + rc-dropdown "~4.2.0" + rc-field-form "~1.44.0" + rc-image "~7.6.0" + rc-input "~1.4.5" + rc-input-number "~9.0.0" + rc-mentions "~2.11.1" + rc-menu "~9.13.0" + rc-motion "^2.9.0" + rc-notification "~5.4.0" + rc-pagination "~4.0.4" + rc-picker "~4.3.0" + rc-progress "~4.0.0" + rc-rate "~2.12.0" + rc-resize-observer "^1.4.0" + rc-segmented "~2.3.0" + rc-select "~14.13.0" + rc-slider "~10.5.0" + rc-steps "~6.0.1" + rc-switch "~4.1.0" + rc-table "~7.45.4" + rc-tabs "~14.1.1" + rc-textarea "~1.6.3" + rc-tooltip "~6.2.0" + rc-tree "~5.8.5" + rc-tree-select "~5.19.0" + rc-upload "~4.5.2" + rc-util "^5.39.1" + scroll-into-view-if-needed "^3.1.0" + throttle-debounce "^5.0.0" + anymatch@~3.1.2: version "3.1.3" resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.3.tgz#790c58b19ba1720a84205b57c618d5ad8524973e" @@ -3687,9 +3741,9 @@ isexe@^2.0.0: resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== -"isp-ui-kit@https://github.com/integration-system/isp-ui-kit.git": - version "0.3.0" - resolved "https://github.com/integration-system/isp-ui-kit.git#0f4f9b29fb3311cb63c46029082ba2591feb0ca3" +"isp-ui-kit@https://github.com/txix-open/isp-ui-kit": + version "0.3.3" + resolved "https://github.com/txix-open/isp-ui-kit#508a5bd9cb4efac0e9389ad2f9f8c60683d1712e" dependencies: "@codemirror/lang-javascript" "^6.2.1" "@codemirror/lang-json" "^6.0.1" @@ -4486,6 +4540,18 @@ rc-table@~7.45.0: rc-util "^5.37.0" rc-virtual-list "^3.11.1" +rc-table@~7.45.4: + version "7.45.4" + resolved "https://registry.yarnpkg.com/rc-table/-/rc-table-7.45.4.tgz#8657450d836f691e94ff2282a1c8ee344fe551e6" + integrity sha512-6aSbGrnkN2GLSt3s1x+wa4f3j/VEgg1uKPpaLY5qHH1/nFyreS2V7DFJ0TfUb18allf2FQl7oVYEjTixlBXEyQ== + dependencies: + "@babel/runtime" "^7.10.1" + "@rc-component/context" "^1.4.0" + classnames "^2.2.5" + rc-resize-observer "^1.1.0" + rc-util "^5.37.0" + rc-virtual-list "^3.11.1" + rc-tabs@~14.1.1: version "14.1.1" resolved "https://registry.yarnpkg.com/rc-tabs/-/rc-tabs-14.1.1.tgz#f49467feb69af0156c7864d04c21396e4c5c7911" @@ -4576,7 +4642,7 @@ react-dom@^18.2.0: loose-envify "^1.1.0" scheduler "^0.23.0" -react-hook-form@^7.49.1: +react-hook-form@^7.49.1, react-hook-form@^7.51.2: version "7.51.2" resolved "https://registry.yarnpkg.com/react-hook-form/-/react-hook-form-7.51.2.tgz#79f7f72ee217c5114ff831012d1a7ec344096e7f" integrity sha512-y++lwaWjtzDt/XNnyGDQy6goHskFualmDlf+jzEZvjvz6KWDf7EboL7pUvRCzPTJd0EOPpdekYaQLEvvG6m6HA==