@canmingir/link 1.2.56 → 1.2.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +0 -1
- package/LICENSE +201 -0
- package/package.json +2 -1
- package/src/RouteManager/RouteManager.jsx +8 -2
- package/src/assets/illustrations/avatar-shape.jsx +10 -8
- package/src/assets/illustrations/background-shape.jsx +0 -2
- package/src/assets/illustrations/booking-illustration.jsx +8 -6
- package/src/assets/illustrations/check-in-illustration.jsx +8 -6
- package/src/assets/illustrations/check-out-illustration.jsx +8 -6
- package/src/assets/illustrations/coming-soon-illustration.jsx +8 -6
- package/src/assets/illustrations/forbidden-illustration.jsx +8 -6
- package/src/assets/illustrations/maintenance-illustration.jsx +8 -6
- package/src/assets/illustrations/motivation-illustration.jsx +8 -6
- package/src/assets/illustrations/order-complete-illustration.jsx +8 -6
- package/src/assets/illustrations/page-not-found-illustration.jsx +8 -6
- package/src/assets/illustrations/seo-illustration.jsx +8 -6
- package/src/assets/illustrations/sever-error-illustration.jsx +8 -6
- package/src/assets/illustrations/upgrade-storage-illustration.jsx +8 -6
- package/src/assets/illustrations/upload-illustration.jsx +8 -6
- package/src/components/Iconify/Iconify.jsx +0 -1
- package/src/components/chart/chart.js +0 -2
- package/src/components/chart/index.js +0 -2
- package/src/components/chart/use-chart.js +0 -2
- package/src/components/custom-popover/styles.js +0 -2
- package/src/components/custom-popover/use-popover.js +0 -2
- package/src/components/custom-popover/utils.js +0 -2
- package/src/components/file-thumbnail/utils.js +0 -12
- package/src/components/image/utils.js +0 -2
- package/src/components/label/styles.js +0 -2
- package/src/components/logo/logo.jsx +1 -1
- package/src/components/scrollbar/styles.js +0 -2
- package/src/components/settings/context/settings-context.js +0 -2
- package/src/config/schemas.js +1 -1
- package/src/hooks/use-boolean.js +0 -2
- package/src/hooks/use-event-listener.js +0 -2
- package/src/hooks/use-local-storage.js +0 -4
- package/src/hooks/use-off-set-top.js +0 -2
- package/src/hooks/use-responsive.js +0 -4
- package/src/hooks/use-scroll-to-top.js +0 -2
- package/src/layouts/CompactLayout/CompactLayout.jsx +0 -2
- package/src/layouts/DashboardLayout/DashboardLayout.jsx +0 -2
- package/src/layouts/DashboardLayout/main.jsx +0 -2
- package/src/layouts/DashboardLayout/nav-horizontal.jsx +0 -2
- package/src/layouts/DashboardLayout/nav-vertical.jsx +6 -5
- package/src/layouts/FullScreenLayout/FullScreenLayout.jsx +3 -4
- package/src/layouts/FullScreenLayout/nav-horizontal.jsx +0 -2
- package/src/layouts/FullScreenLayout/nav-vertical.jsx +4 -5
- package/src/layouts/MainLayout/header.jsx +1 -3
- package/src/layouts/MainLayout/nav/desktop/index.jsx +0 -2
- package/src/layouts/MainLayout/nav/desktop/nav-item.jsx +0 -6
- package/src/layouts/MainLayout/nav/desktop/nav-list.jsx +16 -16
- package/src/layouts/MainLayout/nav/mobile/index.jsx +1 -3
- package/src/layouts/MainLayout/nav/mobile/nav-item.jsx +0 -4
- package/src/layouts/MainLayout/nav/mobile/nav-list.jsx +0 -2
- package/src/layouts/TwoSideLayout/TwoSideLayout.jsx +0 -1
- package/src/layouts/auth/classic.jsx +3 -4
- package/src/layouts/auth/modern-compact.jsx +0 -2
- package/src/layouts/auth/modern.jsx +0 -2
- package/src/layouts/auth/special.jsx +181 -0
- package/src/layouts/common/ProjectBar/utils.js +0 -10
- package/src/layouts/common/account-popover.jsx +0 -2
- package/src/layouts/common/header-shadow.jsx +0 -2
- package/src/layouts/common/header-sim.jsx +7 -4
- package/src/layouts/common/header-simple.jsx +14 -8
- package/src/layouts/common/nav-toggle-button.jsx +1 -3
- package/src/layouts/common/notifications-popover/index.jsx +9 -10
- package/src/layouts/common/notifications-popover/notification-item.jsx +20 -17
- package/src/layouts/common/settings-button.jsx +0 -2
- package/src/layouts/config-layout.js +0 -2
- package/src/lib/Image/utils.js +0 -2
- package/src/lib/Scrollbar/styles.js +0 -2
- package/src/pages/404.jsx +0 -2
- package/src/routes/components/router-link.jsx +0 -2
- package/src/routes/hooks/use-active-link.js +0 -2
- package/src/routes/hooks/use-pathname.js +0 -2
- package/src/routes/hooks/use-router.js +0 -2
- package/src/theme/css.js +0 -12
- package/src/theme/custom-shadows.js +0 -2
- package/src/theme/options/contrast.js +0 -2
- package/src/theme/options/presets.js +0 -4
- package/src/theme/options/right-to-left.jsx +0 -2
- package/src/theme/overrides/components/accordion.js +0 -2
- package/src/theme/overrides/components/alert.js +0 -4
- package/src/theme/overrides/components/appbar.js +0 -2
- package/src/theme/overrides/components/autocomplete.js +0 -2
- package/src/theme/overrides/components/avatar.js +0 -4
- package/src/theme/overrides/components/backdrop.js +0 -2
- package/src/theme/overrides/components/badge.js +0 -2
- package/src/theme/overrides/components/breadcrumbs.js +0 -2
- package/src/theme/overrides/components/button-group.js +0 -4
- package/src/theme/overrides/components/button.js +0 -4
- package/src/theme/overrides/components/card.js +0 -2
- package/src/theme/overrides/components/checkbox.js +0 -2
- package/src/theme/overrides/components/chip.js +0 -4
- package/src/theme/overrides/components/css-baseline.js +0 -2
- package/src/theme/overrides/components/data-grid.js +0 -2
- package/src/theme/overrides/components/date-picker.jsx +0 -2
- package/src/theme/overrides/components/dialog.js +0 -2
- package/src/theme/overrides/components/drawer.js +0 -2
- package/src/theme/overrides/components/fab.js +0 -4
- package/src/theme/overrides/components/form.js +0 -2
- package/src/theme/overrides/components/list.js +0 -2
- package/src/theme/overrides/components/loading-button.js +0 -2
- package/src/theme/overrides/components/menu.js +0 -2
- package/src/theme/overrides/components/pagination.js +0 -4
- package/src/theme/overrides/components/paper.js +0 -2
- package/src/theme/overrides/components/popover.js +0 -2
- package/src/theme/overrides/components/progress.js +0 -4
- package/src/theme/overrides/components/radio.js +0 -2
- package/src/theme/overrides/components/rating.js +0 -2
- package/src/theme/overrides/components/select.js +0 -2
- package/src/theme/overrides/components/skeleton.js +0 -2
- package/src/theme/overrides/components/slider.js +0 -2
- package/src/theme/overrides/components/stepper.js +0 -2
- package/src/theme/overrides/components/svg-icon.js +0 -2
- package/src/theme/overrides/components/switch.js +0 -2
- package/src/theme/overrides/components/table.js +0 -2
- package/src/theme/overrides/components/tabs.js +0 -2
- package/src/theme/overrides/components/textfield.js +0 -2
- package/src/theme/overrides/components/timeline.js +0 -2
- package/src/theme/overrides/components/toggle-button.js +0 -4
- package/src/theme/overrides/components/tooltip.js +0 -2
- package/src/theme/overrides/components/tree-view.js +0 -2
- package/src/theme/overrides/components/typography.js +0 -2
- package/src/theme/overrides/default-props.jsx +4 -7
- package/src/theme/palette.js +0 -4
- package/src/theme/shadows.js +0 -2
- package/src/theme/typography.js +0 -4
- package/src/utils/flatten-array.js +0 -2
- package/src/utils/format-number.js +0 -2
- package/src/utils/format-time.js +0 -2
- package/src/utils/storage-available.js +0 -2
- package/src/widgets/Login/Login.jsx +0 -2
- package/src/widgets/error/not-found-view.jsx +0 -2
- package/project/.eslintrc.cjs +0 -22
- package/project/config.js +0 -18
- package/project/config.menu.js +0 -39
- package/project/config.template.js +0 -31
- package/project/cypress/e2e/layouts.cy.js +0 -170
- package/project/cypress/e2e/login.cy.js +0 -35
- package/project/cypress/e2e/selectbar.cy.js +0 -80
- package/project/cypress/fixtures/CONFIG/MENU_CONFIG.js +0 -39
- package/project/cypress/fixtures/EMPEROR/EMPERORS_GET.json +0 -51
- package/project/cypress/fixtures/EMPEROR/EMPERORS_POST.json +0 -9
- package/project/cypress/fixtures/OAUTH/GITHUB/user.json +0 -46
- package/project/cypress/fixtures/example.json +0 -5
- package/project/cypress/support/commands.js +0 -104
- package/project/cypress/support/e2e.js +0 -1
- package/project/cypress.config.js +0 -10
- package/project/index.html +0 -12
- package/project/media/ProjectIcons/3d.png +0 -0
- package/project/media/ProjectIcons/box.png +0 -0
- package/project/media/ProjectIcons/cafe.png +0 -0
- package/project/media/ProjectIcons/cargo.png +0 -0
- package/project/media/ProjectIcons/cloud.png +0 -0
- package/project/media/ProjectIcons/code.png +0 -0
- package/project/media/ProjectIcons/company.png +0 -0
- package/project/media/ProjectIcons/conversation.png +0 -0
- package/project/media/ProjectIcons/distributed.png +0 -0
- package/project/media/ProjectIcons/fingerprint.png +0 -0
- package/project/media/ProjectIcons/forest.png +0 -0
- package/project/media/ProjectIcons/headphones.png +0 -0
- package/project/media/ProjectIcons/office.png +0 -0
- package/project/media/ProjectIcons/path.png +0 -0
- package/project/media/ProjectIcons/printer.png +0 -0
- package/project/media/ProjectIcons/project.png +0 -0
- package/project/media/ProjectIcons/resume.png +0 -0
- package/project/media/ProjectIcons/rocket.png +0 -0
- package/project/media/ProjectIcons/rtruck.png +0 -0
- package/project/media/ProjectIcons/sign.png +0 -0
- package/project/media/ProjectIcons/site.png +0 -0
- package/project/media/ProjectIcons/truck.png +0 -0
- package/project/media/logo.png +0 -0
- package/project/package-lock.json +0 -22434
- package/project/package.json +0 -42
- package/project/public/assets/background/overlay_2.jpg +0 -0
- package/project/public/assets/illustrations/illustration_dashboard.png +0 -0
- package/project/public/media/largeLogo.png +0 -0
- package/project/public/media/logo.png +0 -0
- package/project/public/vite.svg +0 -1
- package/project/routes.jsx +0 -47
- package/project/server/mock.json +0 -110
- package/project/server/oauthMock.js +0 -27
- package/project/server/package-lock.json +0 -1505
- package/project/server/package.json +0 -20
- package/project/server/server.js +0 -127
- package/project/src/Container.jsx +0 -7
- package/project/src/components/ActionButton.jsx +0 -18
- package/project/src/hooks/useEmperor.jsx +0 -21
- package/project/src/http/index.js +0 -39
- package/project/src/main.jsx +0 -10
- package/project/src/pages/Battles.jsx +0 -16
- package/project/src/pages/Emperor.jsx +0 -50
- package/project/src/pages/index.jsx +0 -33
- package/project/src/theme.js +0 -151
- package/project/src/widgets/ActionButton.jsx +0 -68
- package/project/src/widgets/AddNewEmperor.jsx +0 -120
- package/project/src/widgets/ProjectContainer.jsx +0 -27
- package/project/vite.config.js +0 -6
- package/project/vite.config.js.timestamp-1709564450418-45fdd27900806.mjs +0 -341
- package/src/layouts/MainLayout/footer.jsx +0 -153
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ThemeProvider,
|
|
3
|
+
alpha,
|
|
4
|
+
createTheme,
|
|
5
|
+
useTheme,
|
|
6
|
+
} from "@mui/material/styles";
|
|
7
|
+
|
|
8
|
+
import Box from "@mui/material/Box";
|
|
9
|
+
import Logo from "../../components/logo";
|
|
10
|
+
import { Outlet } from "react-router";
|
|
11
|
+
import React from "react";
|
|
12
|
+
import Stack from "@mui/material/Stack";
|
|
13
|
+
import Typography from "@mui/material/Typography";
|
|
14
|
+
import config from "../../config/config";
|
|
15
|
+
import { useResponsive } from "../../hooks/use-responsive";
|
|
16
|
+
|
|
17
|
+
const PAPER = "#e7decb";
|
|
18
|
+
const ACCENT = "#ce4a25";
|
|
19
|
+
const ACCENT_DARK = "#8c2f14";
|
|
20
|
+
const ACCENT_LIGHT = "#e8794f";
|
|
21
|
+
const DISPLAY_FONT = '"Poiret One", cursive';
|
|
22
|
+
const TITLE_FONT = '"DM Mono", monospace';
|
|
23
|
+
|
|
24
|
+
export default function AuthSpecialLayout({ image, title }) {
|
|
25
|
+
const { name } = config();
|
|
26
|
+
|
|
27
|
+
const mdUp = useResponsive("up", "md");
|
|
28
|
+
|
|
29
|
+
const outerTheme = useTheme();
|
|
30
|
+
|
|
31
|
+
const loginTheme = React.useMemo(
|
|
32
|
+
() =>
|
|
33
|
+
createTheme(outerTheme, {
|
|
34
|
+
palette: {
|
|
35
|
+
primary: {
|
|
36
|
+
lighter: "#F7DDD2",
|
|
37
|
+
light: ACCENT_LIGHT,
|
|
38
|
+
main: ACCENT,
|
|
39
|
+
dark: ACCENT_DARK,
|
|
40
|
+
darker: "#5c1c07",
|
|
41
|
+
contrastText: "#FFFFFF",
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
customShadows: { primary: `0 8px 16px 0 ${alpha(ACCENT, 0.24)}` },
|
|
45
|
+
}),
|
|
46
|
+
[outerTheme],
|
|
47
|
+
);
|
|
48
|
+
|
|
49
|
+
const renderSection = (
|
|
50
|
+
<Stack
|
|
51
|
+
spacing={6}
|
|
52
|
+
sx={{
|
|
53
|
+
flexGrow: 1,
|
|
54
|
+
alignItems: "center",
|
|
55
|
+
justifyContent: "center",
|
|
56
|
+
position: "relative",
|
|
57
|
+
overflow: "hidden",
|
|
58
|
+
bgcolor: alpha(ACCENT, 0.06),
|
|
59
|
+
borderRight: `1px solid ${alpha(ACCENT, 0.14)}`,
|
|
60
|
+
}}
|
|
61
|
+
>
|
|
62
|
+
<Box
|
|
63
|
+
sx={{
|
|
64
|
+
position: "absolute",
|
|
65
|
+
inset: 0,
|
|
66
|
+
backgroundImage: `radial-gradient(${alpha(
|
|
67
|
+
ACCENT,
|
|
68
|
+
0.14,
|
|
69
|
+
)} 1px, transparent 1px)`,
|
|
70
|
+
backgroundSize: "18px 18px",
|
|
71
|
+
pointerEvents: "none",
|
|
72
|
+
}}
|
|
73
|
+
/>
|
|
74
|
+
|
|
75
|
+
<Stack
|
|
76
|
+
spacing={2}
|
|
77
|
+
sx={{ px: 6, maxWidth: 520, textAlign: "center", zIndex: 1 }}
|
|
78
|
+
>
|
|
79
|
+
<Typography
|
|
80
|
+
sx={{
|
|
81
|
+
fontFamily: DISPLAY_FONT,
|
|
82
|
+
fontSize: { md: "3.25rem", lg: "4rem" },
|
|
83
|
+
lineHeight: 1.05,
|
|
84
|
+
color: ACCENT_DARK,
|
|
85
|
+
}}
|
|
86
|
+
>
|
|
87
|
+
{title || name}
|
|
88
|
+
</Typography>
|
|
89
|
+
|
|
90
|
+
<Typography
|
|
91
|
+
sx={{
|
|
92
|
+
fontFamily: TITLE_FONT,
|
|
93
|
+
fontSize: "0.8rem",
|
|
94
|
+
letterSpacing: "0.18em",
|
|
95
|
+
textTransform: "uppercase",
|
|
96
|
+
color: alpha(ACCENT, 0.75),
|
|
97
|
+
}}
|
|
98
|
+
>
|
|
99
|
+
Learn · Explore · Grow
|
|
100
|
+
</Typography>
|
|
101
|
+
</Stack>
|
|
102
|
+
|
|
103
|
+
{image && (
|
|
104
|
+
<Box
|
|
105
|
+
component="img"
|
|
106
|
+
alt="auth"
|
|
107
|
+
src={image}
|
|
108
|
+
sx={{
|
|
109
|
+
zIndex: 1,
|
|
110
|
+
maxWidth: { md: 360, lg: 440 },
|
|
111
|
+
width: "100%",
|
|
112
|
+
objectFit: "contain",
|
|
113
|
+
}}
|
|
114
|
+
/>
|
|
115
|
+
)}
|
|
116
|
+
</Stack>
|
|
117
|
+
);
|
|
118
|
+
|
|
119
|
+
const renderContent = (
|
|
120
|
+
<Stack
|
|
121
|
+
sx={{
|
|
122
|
+
width: 1,
|
|
123
|
+
mx: "auto",
|
|
124
|
+
maxWidth: 480,
|
|
125
|
+
justifyContent: "center",
|
|
126
|
+
px: { xs: 3, md: 8 },
|
|
127
|
+
py: { xs: 8, md: 0 },
|
|
128
|
+
position: "relative",
|
|
129
|
+
zIndex: 1,
|
|
130
|
+
}}
|
|
131
|
+
>
|
|
132
|
+
<Logo
|
|
133
|
+
isLogin={true}
|
|
134
|
+
maxSize={120}
|
|
135
|
+
sx={{ mb: 4, alignSelf: { xs: "center", md: "flex-start" } }}
|
|
136
|
+
/>
|
|
137
|
+
|
|
138
|
+
<Box
|
|
139
|
+
sx={{
|
|
140
|
+
p: { xs: 3, md: 4 },
|
|
141
|
+
borderRadius: 3,
|
|
142
|
+
bgcolor: alpha("#ffffff", 0.4),
|
|
143
|
+
border: `1px solid ${alpha(ACCENT, 0.18)}`,
|
|
144
|
+
boxShadow: `0 12px 32px -12px ${alpha(ACCENT_DARK, 0.28)}`,
|
|
145
|
+
"& .MuiTypography-root": { fontFamily: TITLE_FONT, color: ACCENT },
|
|
146
|
+
"& .MuiTypography-h3, & .MuiTypography-h4": {
|
|
147
|
+
fontFamily: DISPLAY_FONT,
|
|
148
|
+
color: ACCENT_DARK,
|
|
149
|
+
},
|
|
150
|
+
"& .MuiButtonBase-root": {
|
|
151
|
+
fontFamily: TITLE_FONT,
|
|
152
|
+
color: PAPER,
|
|
153
|
+
backgroundColor: ACCENT,
|
|
154
|
+
"&:hover": {
|
|
155
|
+
backgroundColor: ACCENT_DARK,
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
"& .MuiOutlinedInput-root, & .MuiFilledInput-root": {
|
|
159
|
+
fontFamily: TITLE_FONT,
|
|
160
|
+
},
|
|
161
|
+
}}
|
|
162
|
+
>
|
|
163
|
+
<ThemeProvider theme={loginTheme}>
|
|
164
|
+
<Outlet />
|
|
165
|
+
</ThemeProvider>
|
|
166
|
+
</Box>
|
|
167
|
+
</Stack>
|
|
168
|
+
);
|
|
169
|
+
|
|
170
|
+
return (
|
|
171
|
+
<Stack
|
|
172
|
+
component="main"
|
|
173
|
+
direction="row"
|
|
174
|
+
sx={{ minHeight: "100vh", bgcolor: PAPER }}
|
|
175
|
+
>
|
|
176
|
+
{mdUp && renderSection}
|
|
177
|
+
|
|
178
|
+
{renderContent}
|
|
179
|
+
</Stack>
|
|
180
|
+
);
|
|
181
|
+
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { flattenArray } from "../../../utils/flatten-array";
|
|
2
2
|
|
|
3
|
-
// ----------------------------------------------------------------------
|
|
4
|
-
|
|
5
3
|
export function getAllItems({ data }) {
|
|
6
4
|
const reduceItems = data
|
|
7
5
|
.map((list) => handleLoop(list.items, list.subheader))
|
|
@@ -20,8 +18,6 @@ export function getAllItems({ data }) {
|
|
|
20
18
|
return items;
|
|
21
19
|
}
|
|
22
20
|
|
|
23
|
-
// ----------------------------------------------------------------------
|
|
24
|
-
|
|
25
21
|
export function applyFilter({ inputData, query }) {
|
|
26
22
|
if (query) {
|
|
27
23
|
inputData = inputData.filter(
|
|
@@ -32,8 +28,6 @@ export function applyFilter({ inputData, query }) {
|
|
|
32
28
|
return inputData;
|
|
33
29
|
}
|
|
34
30
|
|
|
35
|
-
// ----------------------------------------------------------------------
|
|
36
|
-
|
|
37
31
|
export function splitPath(array, key) {
|
|
38
32
|
let stack = array.map((item) => ({
|
|
39
33
|
path: [item.title],
|
|
@@ -59,8 +53,6 @@ export function splitPath(array, key) {
|
|
|
59
53
|
return null;
|
|
60
54
|
}
|
|
61
55
|
|
|
62
|
-
// ----------------------------------------------------------------------
|
|
63
|
-
|
|
64
56
|
export function handleLoop(array, subheader) {
|
|
65
57
|
return array?.map((list) => ({
|
|
66
58
|
subheader,
|
|
@@ -71,8 +63,6 @@ export function handleLoop(array, subheader) {
|
|
|
71
63
|
}));
|
|
72
64
|
}
|
|
73
65
|
|
|
74
|
-
// ----------------------------------------------------------------------
|
|
75
|
-
|
|
76
66
|
export function groupedData(array) {
|
|
77
67
|
const group = array.reduce((groups, item) => {
|
|
78
68
|
groups[item.group] = groups[item.group] || [];
|
|
@@ -16,8 +16,6 @@ import { varHover } from "../../components/animate";
|
|
|
16
16
|
|
|
17
17
|
import CustomPopover, { usePopover } from "../../components/custom-popover";
|
|
18
18
|
|
|
19
|
-
// ----------------------------------------------------------------------
|
|
20
|
-
|
|
21
19
|
export default function AccountPopover() {
|
|
22
20
|
const { options } = config().menu;
|
|
23
21
|
const router = useRouter();
|
|
@@ -9,7 +9,6 @@ import Toolbar from "@mui/material/Toolbar";
|
|
|
9
9
|
import { bgBlur } from "../../theme/css";
|
|
10
10
|
import { useOffSetTop } from "../../hooks/use-off-set-top";
|
|
11
11
|
import { useTheme } from "@mui/material/styles";
|
|
12
|
-
// ----------------------------------------------------------------------
|
|
13
12
|
|
|
14
13
|
export default function HeaderSim() {
|
|
15
14
|
const theme = useTheme();
|
|
@@ -41,9 +40,13 @@ export default function HeaderSim() {
|
|
|
41
40
|
>
|
|
42
41
|
<Logo />
|
|
43
42
|
|
|
44
|
-
<Stack
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
<Stack
|
|
44
|
+
direction="row"
|
|
45
|
+
spacing={1}
|
|
46
|
+
sx={{
|
|
47
|
+
alignItems: "center",
|
|
48
|
+
}}
|
|
49
|
+
>
|
|
47
50
|
<SettingsButton />
|
|
48
51
|
</Stack>
|
|
49
52
|
</Toolbar>
|
|
@@ -16,8 +16,6 @@ import { useOffSetTop } from "../../hooks/use-off-set-top";
|
|
|
16
16
|
import { useResponsive } from "../../hooks/use-responsive";
|
|
17
17
|
import { useTheme } from "@mui/material/styles";
|
|
18
18
|
|
|
19
|
-
// ----------------------------------------------------------------------
|
|
20
|
-
|
|
21
19
|
export default function HeaderSimple({
|
|
22
20
|
handleItemSelect,
|
|
23
21
|
selectedItem,
|
|
@@ -52,9 +50,13 @@ export default function HeaderSimple({
|
|
|
52
50
|
}),
|
|
53
51
|
}}
|
|
54
52
|
>
|
|
55
|
-
<Stack
|
|
56
|
-
|
|
57
|
-
|
|
53
|
+
<Stack
|
|
54
|
+
direction="row"
|
|
55
|
+
spacing={5}
|
|
56
|
+
sx={{
|
|
57
|
+
alignItems: "center",
|
|
58
|
+
}}
|
|
59
|
+
>
|
|
58
60
|
<Logo />
|
|
59
61
|
<ProjectBar
|
|
60
62
|
handleItemSelect={handleItemSelect}
|
|
@@ -62,9 +64,13 @@ export default function HeaderSimple({
|
|
|
62
64
|
setSelectedItem={setSelectedItem}
|
|
63
65
|
/>
|
|
64
66
|
</Stack>
|
|
65
|
-
<Stack
|
|
66
|
-
|
|
67
|
-
|
|
67
|
+
<Stack
|
|
68
|
+
direction="row"
|
|
69
|
+
spacing={1}
|
|
70
|
+
sx={{
|
|
71
|
+
alignItems: "center",
|
|
72
|
+
}}
|
|
73
|
+
>
|
|
68
74
|
{mdUp && <NavDesktop data={topMenu} />}
|
|
69
75
|
<NotificationsPopover />
|
|
70
76
|
|
|
@@ -7,8 +7,6 @@ import { useResponsive } from "../../hooks/use-responsive";
|
|
|
7
7
|
import { useSettingsContext } from "../../components/settings";
|
|
8
8
|
import { useTheme } from "@mui/material/styles";
|
|
9
9
|
|
|
10
|
-
// ----------------------------------------------------------------------
|
|
11
|
-
|
|
12
10
|
export default function NavToggleButton({ sx, ...other }) {
|
|
13
11
|
const theme = useTheme();
|
|
14
12
|
|
|
@@ -26,7 +24,7 @@ export default function NavToggleButton({ sx, ...other }) {
|
|
|
26
24
|
onClick={() =>
|
|
27
25
|
settings.onUpdate(
|
|
28
26
|
"themeLayout",
|
|
29
|
-
settings.themeLayout === "vertical" ? "mini" : "vertical"
|
|
27
|
+
settings.themeLayout === "vertical" ? "mini" : "vertical"
|
|
30
28
|
)
|
|
31
29
|
}
|
|
32
30
|
sx={{
|
|
@@ -18,8 +18,6 @@ import { varHover } from "../../../components/animate";
|
|
|
18
18
|
|
|
19
19
|
import { useCallback, useState } from "react";
|
|
20
20
|
|
|
21
|
-
// ----------------------------------------------------------------------
|
|
22
|
-
|
|
23
21
|
const TABS = [
|
|
24
22
|
{
|
|
25
23
|
value: "all",
|
|
@@ -38,8 +36,6 @@ const TABS = [
|
|
|
38
36
|
},
|
|
39
37
|
];
|
|
40
38
|
|
|
41
|
-
// ----------------------------------------------------------------------
|
|
42
|
-
|
|
43
39
|
export default function NotificationsPopover() {
|
|
44
40
|
const drawer = useBoolean();
|
|
45
41
|
|
|
@@ -74,8 +70,9 @@ export default function NotificationsPopover() {
|
|
|
74
70
|
py: 2,
|
|
75
71
|
pl: 2.5,
|
|
76
72
|
pr: 1,
|
|
77
|
-
minHeight: 68
|
|
78
|
-
}}
|
|
73
|
+
minHeight: 68,
|
|
74
|
+
}}
|
|
75
|
+
>
|
|
79
76
|
<Typography variant="h6" sx={{ flexGrow: 1 }}>
|
|
80
77
|
Notifications
|
|
81
78
|
</Typography>
|
|
@@ -153,8 +150,9 @@ export default function NotificationsPopover() {
|
|
|
153
150
|
|
|
154
151
|
paper: {
|
|
155
152
|
sx: { width: 1, maxWidth: 420 },
|
|
156
|
-
}
|
|
157
|
-
}}
|
|
153
|
+
},
|
|
154
|
+
}}
|
|
155
|
+
>
|
|
158
156
|
{renderHead}
|
|
159
157
|
|
|
160
158
|
<Divider />
|
|
@@ -165,8 +163,9 @@ export default function NotificationsPopover() {
|
|
|
165
163
|
alignItems: "center",
|
|
166
164
|
justifyContent: "space-between",
|
|
167
165
|
pl: 2.5,
|
|
168
|
-
pr: 1
|
|
169
|
-
}}
|
|
166
|
+
pr: 1,
|
|
167
|
+
}}
|
|
168
|
+
>
|
|
170
169
|
{renderTabs}
|
|
171
170
|
<IconButton onClick={handleMarkAllAsRead}>
|
|
172
171
|
<Iconify icon="solar:settings-bold-duotone" />
|
|
@@ -11,8 +11,6 @@ import Stack from "@mui/material/Stack";
|
|
|
11
11
|
import Typography from "@mui/material/Typography";
|
|
12
12
|
import { fToNow } from "../../../utils/format-time";
|
|
13
13
|
|
|
14
|
-
// ----------------------------------------------------------------------
|
|
15
|
-
|
|
16
14
|
export default function NotificationItem({ notification }) {
|
|
17
15
|
const renderAvatar = (
|
|
18
16
|
<ListItemAvatar>
|
|
@@ -29,8 +27,9 @@ export default function NotificationItem({ notification }) {
|
|
|
29
27
|
width: 40,
|
|
30
28
|
height: 40,
|
|
31
29
|
borderRadius: "50%",
|
|
32
|
-
bgcolor: "background.neutral"
|
|
33
|
-
}}
|
|
30
|
+
bgcolor: "background.neutral",
|
|
31
|
+
}}
|
|
32
|
+
>
|
|
34
33
|
<Box
|
|
35
34
|
component="img"
|
|
36
35
|
src={`/assets/icons/notification/${
|
|
@@ -67,8 +66,9 @@ export default function NotificationItem({ notification }) {
|
|
|
67
66
|
sx={{
|
|
68
67
|
alignItems: "center",
|
|
69
68
|
typography: "caption",
|
|
70
|
-
color: "text.disabled"
|
|
71
|
-
}}
|
|
69
|
+
color: "text.disabled",
|
|
70
|
+
}}
|
|
71
|
+
>
|
|
72
72
|
{fToNow(notification.createdAt)}
|
|
73
73
|
{notification.category}
|
|
74
74
|
</Stack>
|
|
@@ -102,9 +102,11 @@ export default function NotificationItem({ notification }) {
|
|
|
102
102
|
);
|
|
103
103
|
|
|
104
104
|
const projectAction = (
|
|
105
|
-
<Stack
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
<Stack
|
|
106
|
+
sx={{
|
|
107
|
+
alignItems: "flex-start",
|
|
108
|
+
}}
|
|
109
|
+
>
|
|
108
110
|
<Box
|
|
109
111
|
sx={{
|
|
110
112
|
p: 1.5,
|
|
@@ -147,8 +149,9 @@ export default function NotificationItem({ notification }) {
|
|
|
147
149
|
direction={{ xs: "column", sm: "row" }}
|
|
148
150
|
sx={{
|
|
149
151
|
flexGrow: 1,
|
|
150
|
-
minWidth: 0
|
|
151
|
-
}}
|
|
152
|
+
minWidth: 0,
|
|
153
|
+
}}
|
|
154
|
+
>
|
|
152
155
|
<ListItemText
|
|
153
156
|
disableTypography
|
|
154
157
|
primary={
|
|
@@ -178,8 +181,9 @@ export default function NotificationItem({ notification }) {
|
|
|
178
181
|
sx={{
|
|
179
182
|
alignItems: "center",
|
|
180
183
|
typography: "caption",
|
|
181
|
-
color: "text.disabled"
|
|
182
|
-
}}
|
|
184
|
+
color: "text.disabled",
|
|
185
|
+
}}
|
|
186
|
+
>
|
|
183
187
|
<span>2.3 GB</span>
|
|
184
188
|
<span>30 min ago</span>
|
|
185
189
|
</Stack>
|
|
@@ -199,8 +203,9 @@ export default function NotificationItem({ notification }) {
|
|
|
199
203
|
spacing={0.75}
|
|
200
204
|
sx={{
|
|
201
205
|
flexWrap: "wrap",
|
|
202
|
-
mt: 1.5
|
|
203
|
-
}}
|
|
206
|
+
mt: 1.5,
|
|
207
|
+
}}
|
|
208
|
+
>
|
|
204
209
|
<Label variant="outlined" color="info">
|
|
205
210
|
Design
|
|
206
211
|
</Label>
|
|
@@ -247,8 +252,6 @@ export default function NotificationItem({ notification }) {
|
|
|
247
252
|
);
|
|
248
253
|
}
|
|
249
254
|
|
|
250
|
-
// ----------------------------------------------------------------------
|
|
251
|
-
|
|
252
255
|
function reader(data) {
|
|
253
256
|
return (
|
|
254
257
|
<Box
|
|
@@ -6,8 +6,6 @@ import SettingsDialog from "../../widgets/SettingsDialog";
|
|
|
6
6
|
import { motion } from "framer-motion";
|
|
7
7
|
import { varHover } from "../../components/animate";
|
|
8
8
|
|
|
9
|
-
// ----------------------------------------------------------------------
|
|
10
|
-
|
|
11
9
|
export default function SettingsButton({ sx }) {
|
|
12
10
|
const [settingsOpen, setSettingsOpen] = React.useState(false);
|
|
13
11
|
|
package/src/lib/Image/utils.js
CHANGED
|
@@ -2,8 +2,6 @@ import SimpleBar from "simplebar-react";
|
|
|
2
2
|
|
|
3
3
|
import { alpha, styled } from "@mui/material/styles";
|
|
4
4
|
|
|
5
|
-
// ----------------------------------------------------------------------
|
|
6
|
-
|
|
7
5
|
export const StyledRootScrollbar = styled("div")(() => ({
|
|
8
6
|
flexGrow: 1,
|
|
9
7
|
height: "100%",
|
package/src/pages/404.jsx
CHANGED
|
@@ -2,8 +2,6 @@ import { Link } from "react-router-dom";
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
4
|
|
|
5
|
-
// ----------------------------------------------------------------------
|
|
6
|
-
|
|
7
5
|
const RouterLink = forwardRef(({ href, ...other }, ref) => (
|
|
8
6
|
<Link ref={ref} to={href} {...other} />
|
|
9
7
|
));
|
package/src/theme/css.js
CHANGED
|
@@ -4,8 +4,6 @@ import { checkboxClasses } from "@mui/material/Checkbox";
|
|
|
4
4
|
import { dividerClasses } from "@mui/material/Divider";
|
|
5
5
|
import { menuItemClasses } from "@mui/material/MenuItem";
|
|
6
6
|
|
|
7
|
-
// ----------------------------------------------------------------------
|
|
8
|
-
|
|
9
7
|
export const paper = ({ theme, bgcolor, dropdown }) => ({
|
|
10
8
|
...bgBlur({
|
|
11
9
|
blur: 20,
|
|
@@ -29,8 +27,6 @@ export const paper = ({ theme, bgcolor, dropdown }) => ({
|
|
|
29
27
|
}),
|
|
30
28
|
});
|
|
31
29
|
|
|
32
|
-
// ----------------------------------------------------------------------
|
|
33
|
-
|
|
34
30
|
export const menuItem = (theme) => ({
|
|
35
31
|
...theme.typography.body2,
|
|
36
32
|
padding: theme.spacing(0.75, 1),
|
|
@@ -61,8 +57,6 @@ export const menuItem = (theme) => ({
|
|
|
61
57
|
},
|
|
62
58
|
});
|
|
63
59
|
|
|
64
|
-
// ----------------------------------------------------------------------
|
|
65
|
-
|
|
66
60
|
export function bgBlur(props) {
|
|
67
61
|
const color = props?.color || "#000000";
|
|
68
62
|
const blur = props?.blur || 6;
|
|
@@ -95,8 +89,6 @@ export function bgBlur(props) {
|
|
|
95
89
|
};
|
|
96
90
|
}
|
|
97
91
|
|
|
98
|
-
// ----------------------------------------------------------------------
|
|
99
|
-
|
|
100
92
|
export function bgGradient(props) {
|
|
101
93
|
const direction = props?.direction || "to bottom";
|
|
102
94
|
const startColor = props?.startColor;
|
|
@@ -120,8 +112,6 @@ export function bgGradient(props) {
|
|
|
120
112
|
};
|
|
121
113
|
}
|
|
122
114
|
|
|
123
|
-
// ----------------------------------------------------------------------
|
|
124
|
-
|
|
125
115
|
export function textGradient(value) {
|
|
126
116
|
return {
|
|
127
117
|
background: `-webkit-linear-gradient(${value})`,
|
|
@@ -130,8 +120,6 @@ export function textGradient(value) {
|
|
|
130
120
|
};
|
|
131
121
|
}
|
|
132
122
|
|
|
133
|
-
// ----------------------------------------------------------------------
|
|
134
|
-
|
|
135
123
|
export const hideScroll = {
|
|
136
124
|
x: {
|
|
137
125
|
msOverflowStyle: "none",
|
|
@@ -2,8 +2,6 @@ import { alpha } from "@mui/material/styles";
|
|
|
2
2
|
|
|
3
3
|
import { grey, primary } from "../palette";
|
|
4
4
|
|
|
5
|
-
// ----------------------------------------------------------------------
|
|
6
|
-
|
|
7
5
|
export function createPresets(preset) {
|
|
8
6
|
const primaryColor = getPrimary(preset);
|
|
9
7
|
|
|
@@ -21,8 +19,6 @@ export function createPresets(preset) {
|
|
|
21
19
|
};
|
|
22
20
|
}
|
|
23
21
|
|
|
24
|
-
// ----------------------------------------------------------------------
|
|
25
|
-
|
|
26
22
|
const cyan = {
|
|
27
23
|
lighter: "#CCF4FE",
|
|
28
24
|
light: "#68CDF9",
|
|
@@ -4,8 +4,6 @@ import createCache from "@emotion/cache";
|
|
|
4
4
|
import rtlPlugin from "stylis-plugin-rtl";
|
|
5
5
|
import { useEffect } from "react";
|
|
6
6
|
|
|
7
|
-
// ----------------------------------------------------------------------
|
|
8
|
-
|
|
9
7
|
export default function RTL({ children, themeDirection }) {
|
|
10
8
|
useEffect(() => {
|
|
11
9
|
document.dir = themeDirection;
|
|
@@ -2,8 +2,6 @@ import { accordionClasses } from "@mui/material/Accordion";
|
|
|
2
2
|
import { accordionSummaryClasses } from "@mui/material/AccordionSummary";
|
|
3
3
|
import { typographyClasses } from "@mui/material/Typography";
|
|
4
4
|
|
|
5
|
-
// ----------------------------------------------------------------------
|
|
6
|
-
|
|
7
5
|
export function accordion(theme) {
|
|
8
6
|
return {
|
|
9
7
|
MuiAccordion: {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { alertClasses } from "@mui/material/Alert";
|
|
2
2
|
import { alpha } from "@mui/material/styles";
|
|
3
3
|
|
|
4
|
-
// ----------------------------------------------------------------------
|
|
5
|
-
|
|
6
4
|
const COLORS = ["info", "success", "warning", "error"];
|
|
7
5
|
|
|
8
|
-
// ----------------------------------------------------------------------
|
|
9
|
-
|
|
10
6
|
export function alert(theme) {
|
|
11
7
|
const lightMode = theme.palette.mode === "light";
|
|
12
8
|
|