2024-06-28 14:52:13: merge [main:483f760b403ae5c9d0cb5ace25a08bf0b5f41799];
This commit is contained in:
1 parent
0dbf4b0b07
commit
2ebeb14f0e
32 files changed
+113
-72
No files matched your search
@@ -3,7 +3,6 @@
|
||||
.app-access-page {
|
||||
display: flex;
|
||||
height: 100%;
|
||||
background: #fff;
|
||||
|
||||
.ant-tree {
|
||||
background: none;
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
.applications-page {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
background: #fff;
|
||||
|
||||
&__list {
|
||||
.ant-list-item {
|
||||
@@ -21,14 +20,7 @@
|
||||
max-height: 100vh;
|
||||
}
|
||||
|
||||
.three-columns {
|
||||
display: flex;
|
||||
background: #fff;
|
||||
box-shadow: inset -1px 0px 0px $border-color;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.modal__wrap{
|
||||
min-width: 350px;
|
||||
min-width: 380px;
|
||||
}
|
||||
}
|
||||
@@ -172,7 +172,7 @@ const ApplicationsPage = () => {
|
||||
}
|
||||
|
||||
return (
|
||||
<main className="applications-page three-columns">
|
||||
<main className="applications-page">
|
||||
<Column
|
||||
title="Группы приложений"
|
||||
onUpdateItem={updateApplicationModal}
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
.configuration-editor-page {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: white;
|
||||
-ms-overflow-style: none; /* IE и Edge */
|
||||
scrollbar-width: none;
|
||||
border-left: 1px solid $border-color;
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
&__inner-marker {
|
||||
font-size: 11px;
|
||||
border: 1px solid #15D1E6;
|
||||
border: 1px solid var(--ant-color-border);
|
||||
border-radius: 12px;
|
||||
padding: 0 4px;
|
||||
margin: 4px
|
||||
|
||||
@@ -188,7 +188,7 @@ const ModulesPage = () => {
|
||||
}
|
||||
|
||||
return (
|
||||
<section className="modules-page three-columns">
|
||||
<section className="modules-page">
|
||||
<Column
|
||||
items={filterFirstColumnItems(ModulesList, searchValue)}
|
||||
showAddBtn={false}
|
||||
|
||||
@@ -2,9 +2,11 @@
|
||||
|
||||
.modules-page {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
&__tabs {
|
||||
padding: 0 $basic-padding*2;
|
||||
width: 100%;
|
||||
overflow-x: scroll;
|
||||
}
|
||||
|
||||
.ant-tag {
|
||||
@@ -43,10 +45,3 @@
|
||||
width: fit-content !important;
|
||||
}
|
||||
}
|
||||
|
||||
.three-columns {
|
||||
display: flex;
|
||||
background: #fff;
|
||||
box-shadow: inset -1px 0px 0px $border-color;
|
||||
height: 100%;
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Button, Descriptions, Popconfirm } from 'antd'
|
||||
import { useState } from 'react'
|
||||
import { useContext, useEffect, useState } from 'react'
|
||||
|
||||
import PermissionList from '@widgets/PermissionList'
|
||||
|
||||
@@ -9,13 +9,23 @@ import RoleList from '@components/RoleList'
|
||||
import { useAppSelector } from '@hooks/redux.ts'
|
||||
import useLogout from '@hooks/useLogout.tsx'
|
||||
|
||||
import './profile-page.scss'
|
||||
import { Context } from '@stores/index.tsx'
|
||||
|
||||
import './profile-page.scss'
|
||||
|
||||
const ProfilePage = () => {
|
||||
const [isModalOpen, setIsModalOpen] = useState<boolean>(false)
|
||||
const { profile } = useAppSelector((state) => state.profileReducer)
|
||||
const { logoutUser, isLoading } = useLogout()
|
||||
const { changeTheme, setChangeTheme } = useContext(Context)
|
||||
|
||||
const onChangeTheme = () => {
|
||||
setChangeTheme((prev: any) => !prev)
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
localStorage.setItem('theme', JSON.stringify(changeTheme))
|
||||
}, [changeTheme])
|
||||
|
||||
return (
|
||||
<section className="profile-page">
|
||||
@@ -23,7 +33,10 @@ const ProfilePage = () => {
|
||||
onClose={() => setIsModalOpen(false)}
|
||||
open={isModalOpen}
|
||||
/>
|
||||
<h1 className="profile-page__title">{`${profile.lastName} ${profile.firstName}`}</h1>
|
||||
<header className="profile-page__header">
|
||||
<h1 className="profile-page__title">{`${profile.lastName} ${profile.firstName}`}</h1>
|
||||
<Button onClick={onChangeTheme}>Сменить тему</Button>
|
||||
</header>
|
||||
<div className="profile-page__user-info">
|
||||
<div className="profile-page__user-info__email-wrapper">
|
||||
<Descriptions>
|
||||
|
||||
@@ -3,13 +3,18 @@
|
||||
.profile-page {
|
||||
height: 100vh;
|
||||
overflow: auto;
|
||||
border: 1px solid #F0F0F0;
|
||||
border: 1px solid var(--ant-color-border);
|
||||
padding: $basic-padding * 2;
|
||||
background: #fff;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: start;
|
||||
|
||||
&__header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
&__title {
|
||||
font-size: $text-size-header1;
|
||||
}
|
||||
|
||||
@@ -25,7 +25,6 @@ import { NewRoleType, PermissionKeysType, RoleType } from '@type/roles.type.ts'
|
||||
|
||||
import './roles-page.scss'
|
||||
|
||||
|
||||
const { Column, EmptyData, NoData } = Layout
|
||||
|
||||
const RolesPage = () => {
|
||||
@@ -191,7 +190,7 @@ const RolesPage = () => {
|
||||
}
|
||||
|
||||
return (
|
||||
<section className="roles-page three-columns">
|
||||
<section className="roles-page">
|
||||
<Column
|
||||
showUpdateBtn={false}
|
||||
items={filterFirstColumnItems(data, searchValue)}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
.roles-page {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
|
||||
.role-item {
|
||||
&__id {
|
||||
@@ -14,10 +15,3 @@
|
||||
width: 100%
|
||||
}
|
||||
}
|
||||
|
||||
.three-columns {
|
||||
display: flex;
|
||||
background: #fff;
|
||||
box-shadow: inset -1px 0px 0px $border-color;
|
||||
height: 100%;
|
||||
}
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
.security-log-page {
|
||||
height: 100%;
|
||||
background: #fff;
|
||||
border: 1px solid $border-color;
|
||||
|
||||
&__header {
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
.sessions-page {
|
||||
height: 100%;
|
||||
background: #fff;
|
||||
border: 1px solid $border-color;
|
||||
|
||||
&__header {
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
@import "../../constants/style/styleConst";
|
||||
|
||||
.user-editor {
|
||||
background: #fff;
|
||||
height: 100%;
|
||||
border: 1px solid $border-color;
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
.users-page {
|
||||
height: 100%;
|
||||
background: #fff;
|
||||
border: 1px solid $border-color;
|
||||
.ant-btn-group >.ant-btn:first-child {
|
||||
z-index: 2;
|
||||
|
||||
Reference in new issue
Block a user