@canmingir/link 1.2.27 → 1.2.30
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/package.json +9 -5
- package/src/assets/illustrations/avatar-shape.jsx +6 -7
- package/src/assets/illustrations/booking-illustration.jsx +4 -14
- package/src/assets/illustrations/check-in-illustration.jsx +4 -10
- package/src/assets/illustrations/check-out-illustration.jsx +4 -3
- package/src/assets/illustrations/coming-soon-illustration.jsx +4 -17
- package/src/assets/illustrations/forbidden-illustration.jsx +4 -12
- package/src/assets/illustrations/maintenance-illustration.jsx +4 -24
- package/src/assets/illustrations/motivation-illustration.jsx +4 -9
- package/src/assets/illustrations/order-complete-illustration.jsx +4 -12
- package/src/assets/illustrations/page-not-found-illustration.jsx +4 -9
- package/src/assets/illustrations/seo-illustration.jsx +4 -16
- package/src/assets/illustrations/sever-error-illustration.jsx +4 -21
- package/src/assets/illustrations/upgrade-storage-illustration.jsx +4 -20
- package/src/assets/illustrations/upload-illustration.jsx +4 -81
- package/src/components/TopNavBar/TopNavBar.jsx +6 -2
- package/src/components/file-thumbnail/file-thumbnail.jsx +5 -6
- package/src/components/label/label.jsx +0 -4
- package/src/components/nav-section/horizontal/nav-section-horizontal.jsx +5 -6
- package/src/components/settings/drawer/layout-options.jsx +5 -4
- package/src/components/settings/drawer/presets-options.jsx +6 -5
- package/src/components/settings/drawer/settings-drawer.jsx +7 -4
- package/src/components/settings/drawer/stretch-options.jsx +5 -5
- package/src/layouts/DashboardLayout/header.jsx +5 -4
- package/src/layouts/DashboardLayout/nav-mini.jsx +5 -7
- package/src/layouts/DashboardLayout/nav-vertical.jsx +11 -11
- package/src/layouts/FullScreenLayout/FullScreenLayout.jsx +5 -1
- package/src/layouts/FullScreenLayout/nav-vertical.jsx +11 -11
- package/src/layouts/MainLayout/footer.jsx +7 -7
- package/src/layouts/MainLayout/header.jsx +3 -2
- package/src/layouts/MainLayout/nav/desktop/nav-list.jsx +8 -8
- package/src/layouts/MainLayout/nav/mobile/index.jsx +7 -6
- package/src/layouts/TwoSideLayout/TwoSideLayout.jsx +9 -3
- package/src/layouts/auth/classic.jsx +6 -6
- package/src/layouts/auth/modern.jsx +3 -4
- package/src/layouts/common/ProjectBar/index.jsx +13 -11
- package/src/layouts/common/header-sim.jsx +3 -2
- package/src/layouts/common/header-simple.jsx +6 -3
- package/src/layouts/common/notifications-popover/index.jsx +18 -13
- package/src/layouts/common/notifications-popover/notification-item.jsx +28 -16
- package/src/lib/APIPath/APIPath.jsx +2 -2
- package/src/lib/APITree/APITree.jsx +3 -1
- package/src/lib/AddItemWizard/AddItemWizard.jsx +21 -10
- package/src/lib/CustomBreadcrumbs/CustomBreadcrumbs.jsx +3 -2
- package/src/lib/Flow/layouts/CardLayout.jsx +4 -3
- package/src/lib/Flow/nodes/DefaultCard.jsx +6 -8
- package/src/lib/IconSelector/IconSelector.jsx +5 -1
- package/src/lib/ItemSummary/ItemSummary.jsx +11 -6
- package/src/lib/ItemSummary/ItemsSummary.jsx +38 -26
- package/src/lib/Label/Label.jsx +0 -4
- package/src/lib/ResourceMenu/ResourceMenu.jsx +3 -1
- package/src/lib/SparkleInput/SparkleInput.jsx +31 -28
- package/src/lib/TableSelectedAction/TableSelectedAction.jsx +7 -8
- package/src/pages/ConfigError.jsx +3 -1
- package/src/theme/index.jsx +47 -48
- package/src/theme/overrides/components/loading-button.js +5 -5
- package/src/theme/overrides/default-props.jsx +17 -11
- package/src/widgets/Login/CognitoLogin.jsx +61 -53
- package/src/widgets/Login/DemoLogin.jsx +34 -31
- package/src/widgets/SettingsDialog.jsx +45 -19
|
@@ -7,11 +7,12 @@ import { presetOptions } from "../../../theme/options/presets";
|
|
|
7
7
|
export default function PresetsOptions({ value, onChange }) {
|
|
8
8
|
return (
|
|
9
9
|
<Box
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
sx={{
|
|
11
|
+
columnGap: 2,
|
|
12
|
+
rowGap: 1.5,
|
|
13
|
+
display: "grid",
|
|
14
|
+
gridTemplateColumns: "repeat(3, 1fr)"
|
|
15
|
+
}}>
|
|
15
16
|
{presetOptions.map((option) => {
|
|
16
17
|
const selected = value === option.name;
|
|
17
18
|
|
|
@@ -32,10 +32,13 @@ export default function SettingsDrawer() {
|
|
|
32
32
|
const renderHead = (
|
|
33
33
|
<Stack
|
|
34
34
|
direction="row"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
sx={{
|
|
36
|
+
alignItems: "center",
|
|
37
|
+
justifyContent: "space-between",
|
|
38
|
+
py: 2,
|
|
39
|
+
pr: 1,
|
|
40
|
+
pl: 2.5
|
|
41
|
+
}}>
|
|
39
42
|
<Typography variant="h6" sx={{ flexGrow: 1 }}>
|
|
40
43
|
Settings
|
|
41
44
|
</Typography>
|
|
@@ -30,16 +30,16 @@ export default function StretchOptions({ value, onChange }) {
|
|
|
30
30
|
>
|
|
31
31
|
<Stack
|
|
32
32
|
direction="row"
|
|
33
|
-
alignItems="center"
|
|
34
|
-
justifyContent="space-between"
|
|
35
33
|
sx={{
|
|
34
|
+
alignItems: "center",
|
|
35
|
+
justifyContent: "space-between",
|
|
36
36
|
width: 0.24,
|
|
37
37
|
transition: (theme) => theme.transitions.create(["width"]),
|
|
38
|
+
|
|
38
39
|
...(value && {
|
|
39
40
|
width: 0.5,
|
|
40
|
-
})
|
|
41
|
-
}}
|
|
42
|
-
>
|
|
41
|
+
})
|
|
42
|
+
}}>
|
|
43
43
|
<Iconify
|
|
44
44
|
icon={
|
|
45
45
|
value ? "eva:arrow-ios-back-fill" : "eva:arrow-ios-forward-fill"
|
|
@@ -46,12 +46,13 @@ export default function Header({ onOpenNav }) {
|
|
|
46
46
|
{projectBar && <ProjectBar />}
|
|
47
47
|
|
|
48
48
|
<Stack
|
|
49
|
-
flexGrow={1}
|
|
50
49
|
direction="row"
|
|
51
|
-
alignItems="center"
|
|
52
|
-
justifyContent="flex-end"
|
|
53
50
|
spacing={{ xs: 0.5, sm: 1 }}
|
|
54
|
-
|
|
51
|
+
sx={{
|
|
52
|
+
flexGrow: 1,
|
|
53
|
+
alignItems: "center",
|
|
54
|
+
justifyContent: "flex-end"
|
|
55
|
+
}}>
|
|
55
56
|
<NotificationsPopover />
|
|
56
57
|
|
|
57
58
|
<SettingsButton />
|
|
@@ -39,7 +39,6 @@ export default function NavMini({ only }) {
|
|
|
39
39
|
}}
|
|
40
40
|
/>
|
|
41
41
|
)}
|
|
42
|
-
|
|
43
42
|
<Stack
|
|
44
43
|
sx={{
|
|
45
44
|
pb: 2,
|
|
@@ -60,16 +59,15 @@ export default function NavMini({ only }) {
|
|
|
60
59
|
<Box sx={{ flexGrow: 1 }} />
|
|
61
60
|
<Stack
|
|
62
61
|
direction={"column"}
|
|
63
|
-
alignItems={"center"}
|
|
64
|
-
justifyItems={"center"}
|
|
65
62
|
sx={{
|
|
63
|
+
alignItems: "center",
|
|
64
|
+
justifyItems: "center",
|
|
65
|
+
gap: 2,
|
|
66
66
|
marginBottom: 0,
|
|
67
67
|
position: lgUp ? "static" : "fixed",
|
|
68
68
|
bottom: lgUp ? "auto" : 66,
|
|
69
|
-
width: "100%"
|
|
70
|
-
}}
|
|
71
|
-
gap={2}
|
|
72
|
-
>
|
|
69
|
+
width: "100%"
|
|
70
|
+
}}>
|
|
73
71
|
{actionButtons &&
|
|
74
72
|
actionButtons.map((Action, index) => (
|
|
75
73
|
<Box key={index} component={Action}></Box>
|
|
@@ -123,16 +123,15 @@ export default function NavVertical({ openNav, onCloseNav }) {
|
|
|
123
123
|
<Box sx={{ flexGrow: 1 }} />
|
|
124
124
|
<Stack
|
|
125
125
|
direction={"column"}
|
|
126
|
-
alignItems={"center"}
|
|
127
|
-
justifyItems={"center"}
|
|
128
126
|
sx={{
|
|
127
|
+
alignItems: "center",
|
|
128
|
+
justifyItems: "center",
|
|
129
|
+
gap: 2,
|
|
129
130
|
marginBottom: lgUp ? 3 : 0,
|
|
130
131
|
position: lgUp ? "static" : "fixed",
|
|
131
132
|
bottom: lgUp ? "auto" : 66,
|
|
132
|
-
width: "100%"
|
|
133
|
-
}}
|
|
134
|
-
gap={2}
|
|
135
|
-
>
|
|
133
|
+
width: "100%"
|
|
134
|
+
}}>
|
|
136
135
|
{actionButtons &&
|
|
137
136
|
actionButtons?.map((Action, index) => (
|
|
138
137
|
<Box key={index} component={Action}></Box>
|
|
@@ -171,7 +170,6 @@ export default function NavVertical({ openNav, onCloseNav }) {
|
|
|
171
170
|
}}
|
|
172
171
|
>
|
|
173
172
|
<NavToggleButton />
|
|
174
|
-
|
|
175
173
|
{lgUp ? (
|
|
176
174
|
<Stack
|
|
177
175
|
sx={{
|
|
@@ -187,10 +185,12 @@ export default function NavVertical({ openNav, onCloseNav }) {
|
|
|
187
185
|
<Drawer
|
|
188
186
|
open={openNav}
|
|
189
187
|
onClose={onCloseNav}
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
188
|
+
slotProps={{
|
|
189
|
+
paper: {
|
|
190
|
+
sx: {
|
|
191
|
+
width: NAV.W_VERTICAL,
|
|
192
|
+
},
|
|
193
|
+
}
|
|
194
194
|
}}
|
|
195
195
|
>
|
|
196
196
|
{renderContent}
|
|
@@ -62,16 +62,15 @@ export default function NavVertical({ openNav, onCloseNav }) {
|
|
|
62
62
|
<Box sx={{ flexGrow: 1 }} />
|
|
63
63
|
<Stack
|
|
64
64
|
direction={"column"}
|
|
65
|
-
alignItems={"center"}
|
|
66
|
-
justifyItems={"center"}
|
|
67
65
|
sx={{
|
|
66
|
+
alignItems: "center",
|
|
67
|
+
justifyItems: "center",
|
|
68
|
+
gap: 2,
|
|
68
69
|
marginBottom: lgUp ? 3 : 0,
|
|
69
70
|
position: lgUp ? "static" : "fixed",
|
|
70
71
|
bottom: lgUp ? "auto" : 66,
|
|
71
|
-
width: "100%"
|
|
72
|
-
}}
|
|
73
|
-
gap={2}
|
|
74
|
-
>
|
|
72
|
+
width: "100%"
|
|
73
|
+
}}>
|
|
75
74
|
{actionButtons &&
|
|
76
75
|
actionButtons.map((Action, index) => (
|
|
77
76
|
<Box key={index} component={Action}></Box>
|
|
@@ -105,7 +104,6 @@ export default function NavVertical({ openNav, onCloseNav }) {
|
|
|
105
104
|
}}
|
|
106
105
|
>
|
|
107
106
|
<NavToggleButton />
|
|
108
|
-
|
|
109
107
|
{lgUp ? (
|
|
110
108
|
<Stack
|
|
111
109
|
sx={{
|
|
@@ -121,10 +119,12 @@ export default function NavVertical({ openNav, onCloseNav }) {
|
|
|
121
119
|
<Drawer
|
|
122
120
|
open={openNav}
|
|
123
121
|
onClose={onCloseNav}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
122
|
+
slotProps={{
|
|
123
|
+
paper: {
|
|
124
|
+
sx: {
|
|
125
|
+
width: NAV.W_VERTICAL,
|
|
126
|
+
},
|
|
127
|
+
}
|
|
128
128
|
}}
|
|
129
129
|
>
|
|
130
130
|
{renderContent}
|
|
@@ -104,12 +104,11 @@ export default function Footer() {
|
|
|
104
104
|
|
|
105
105
|
<Stack
|
|
106
106
|
direction="row"
|
|
107
|
-
justifyContent={{ xs: "center", md: "flex-start" }}
|
|
108
107
|
sx={{
|
|
108
|
+
justifyContent: { xs: "center", md: "flex-start" },
|
|
109
109
|
mt: 3,
|
|
110
|
-
mb: { xs: 5, md: 0 }
|
|
111
|
-
}}
|
|
112
|
-
></Stack>
|
|
110
|
+
mb: { xs: 5, md: 0 }
|
|
111
|
+
}}></Stack>
|
|
113
112
|
</Grid>
|
|
114
113
|
|
|
115
114
|
<Grid xs={12} md={6}>
|
|
@@ -118,9 +117,10 @@ export default function Footer() {
|
|
|
118
117
|
<Stack
|
|
119
118
|
key={list.headline}
|
|
120
119
|
spacing={2}
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
120
|
+
sx={{
|
|
121
|
+
alignItems: { xs: "center", md: "flex-start" },
|
|
122
|
+
width: 1
|
|
123
|
+
}}>
|
|
124
124
|
<Typography component="div" variant="overline">
|
|
125
125
|
{list.headline}
|
|
126
126
|
</Typography>
|
|
@@ -61,8 +61,10 @@ export default function Header() {
|
|
|
61
61
|
{mdUp && <NavDesktop data={topMenu} />}
|
|
62
62
|
|
|
63
63
|
<Stack
|
|
64
|
-
alignItems="center"
|
|
65
64
|
direction={{ xs: "row", md: "row-reverse" }}
|
|
65
|
+
sx={{
|
|
66
|
+
alignItems: "center"
|
|
67
|
+
}}
|
|
66
68
|
>
|
|
67
69
|
<NotificationsPopover />
|
|
68
70
|
|
|
@@ -74,7 +76,6 @@ export default function Header() {
|
|
|
74
76
|
</Stack>
|
|
75
77
|
</Container>
|
|
76
78
|
</Toolbar>
|
|
77
|
-
|
|
78
79
|
{offsetTop && <HeaderShadow />}
|
|
79
80
|
</AppBar>
|
|
80
81
|
);
|
|
@@ -103,18 +103,19 @@ function NavSubList({ data, subheader, sx, ...other }) {
|
|
|
103
103
|
return (
|
|
104
104
|
<Stack
|
|
105
105
|
spacing={2}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
{...other}
|
|
107
|
+
sx={[{
|
|
108
|
+
flexGrow: 1,
|
|
109
|
+
alignItems: "flex-start",
|
|
109
110
|
pb: 2,
|
|
111
|
+
|
|
110
112
|
...(dashboard && {
|
|
111
113
|
pb: 0,
|
|
112
114
|
maxWidth: { md: 1 / 3, lg: 540 },
|
|
113
115
|
}),
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
>
|
|
116
|
+
|
|
117
|
+
...sx
|
|
118
|
+
}, ...(Array.isArray(other.sx) ? other.sx : [other.sx])]}>
|
|
118
119
|
<ListSubheader
|
|
119
120
|
disableSticky
|
|
120
121
|
sx={{
|
|
@@ -126,7 +127,6 @@ function NavSubList({ data, subheader, sx, ...other }) {
|
|
|
126
127
|
>
|
|
127
128
|
{subheader}
|
|
128
129
|
</ListSubheader>
|
|
129
|
-
|
|
130
130
|
{data.map((item) =>
|
|
131
131
|
dashboard ? (
|
|
132
132
|
<NavItemDashboard key={item.title} path={item.path} />
|
|
@@ -36,15 +36,16 @@ export default function NavMobile({ data }) {
|
|
|
36
36
|
<IconButton onClick={handleOpenMenu} sx={{ ml: 1 }}>
|
|
37
37
|
<SvgColor src="/assets/icons/navbar/ic_menu_item.svg" />
|
|
38
38
|
</IconButton>
|
|
39
|
-
|
|
40
39
|
<Drawer
|
|
41
40
|
open={openMenu}
|
|
42
41
|
onClose={handleCloseMenu}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
42
|
+
slotProps={{
|
|
43
|
+
paper: {
|
|
44
|
+
sx: {
|
|
45
|
+
pb: 5,
|
|
46
|
+
width: 260,
|
|
47
|
+
},
|
|
48
|
+
}
|
|
48
49
|
}}
|
|
49
50
|
>
|
|
50
51
|
<Scrollbar>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Container from "@mui/material/Container";
|
|
2
|
-
import Grid from "@mui/material/
|
|
2
|
+
import Grid from "@mui/material/Grid";
|
|
3
3
|
import React from "react";
|
|
4
4
|
import Typography from "@mui/material/Typography";
|
|
5
5
|
// ----------------------------------------------------------------------
|
|
@@ -12,14 +12,20 @@ export default function TwoSideLayout({ rows, title }) {
|
|
|
12
12
|
<Typography variant="h4" sx={{ mb: 5 }}>
|
|
13
13
|
{title}
|
|
14
14
|
</Typography>
|
|
15
|
-
|
|
16
15
|
{Object.values(rowData).map((array, index) => {
|
|
17
16
|
const eleman_sayisi = array.length;
|
|
18
17
|
const grid_sayisi = 12 / eleman_sayisi;
|
|
19
18
|
return (
|
|
20
19
|
<Grid container spacing={3} key={index}>
|
|
21
20
|
{array.map((component, i) => (
|
|
22
|
-
<Grid
|
|
21
|
+
<Grid
|
|
22
|
+
key={i}
|
|
23
|
+
size={{
|
|
24
|
+
xs: 12,
|
|
25
|
+
sm: 6,
|
|
26
|
+
md: grid_sayisi,
|
|
27
|
+
}}
|
|
28
|
+
>
|
|
23
29
|
{component}
|
|
24
30
|
</Grid>
|
|
25
31
|
))}
|
|
@@ -44,20 +44,20 @@ export default function AuthClassicLayout({ image, title }) {
|
|
|
44
44
|
|
|
45
45
|
const renderSection = (
|
|
46
46
|
<Stack
|
|
47
|
-
flexGrow={1}
|
|
48
47
|
spacing={10}
|
|
49
|
-
alignItems="center"
|
|
50
|
-
justifyContent="center"
|
|
51
48
|
sx={{
|
|
49
|
+
flexGrow: 1,
|
|
50
|
+
alignItems: "center",
|
|
51
|
+
justifyContent: "center",
|
|
52
|
+
|
|
52
53
|
...bgGradient({
|
|
53
54
|
color: alpha(
|
|
54
55
|
theme.palette.background.default,
|
|
55
56
|
theme.palette.mode === "light" ? 0.88 : 0.94
|
|
56
57
|
),
|
|
57
58
|
imgUrl: "https://minimals.cc/assets/background/overlay_2.jpg",
|
|
58
|
-
})
|
|
59
|
-
}}
|
|
60
|
-
>
|
|
59
|
+
})
|
|
60
|
+
}}>
|
|
61
61
|
<Typography variant="h3" sx={{ maxWidth: 480, textAlign: "center" }}>
|
|
62
62
|
{title || "Hi, Welcome back"}
|
|
63
63
|
</Typography>
|
|
@@ -175,10 +175,11 @@ function ProjectBar() {
|
|
|
175
175
|
const renderButton = (
|
|
176
176
|
<Stack
|
|
177
177
|
direction="row"
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
178
|
+
sx={{
|
|
179
|
+
alignItems: "center",
|
|
180
|
+
justifyContent: "flex-start",
|
|
181
|
+
width: "100%"
|
|
182
|
+
}}>
|
|
182
183
|
<IconButton
|
|
183
184
|
data-cy="open-select-bar-button"
|
|
184
185
|
onClick={search.onTrue}
|
|
@@ -270,7 +271,6 @@ function ProjectBar() {
|
|
|
270
271
|
return (
|
|
271
272
|
<>
|
|
272
273
|
{renderButton}
|
|
273
|
-
|
|
274
274
|
<Dialog
|
|
275
275
|
data-cy="select-bar-dialog"
|
|
276
276
|
fullWidth={true}
|
|
@@ -281,17 +281,19 @@ function ProjectBar() {
|
|
|
281
281
|
enter: theme.transitions.duration.shortest,
|
|
282
282
|
exit: 0,
|
|
283
283
|
}}
|
|
284
|
-
PaperProps={{
|
|
285
|
-
sx: {
|
|
286
|
-
mt: 15,
|
|
287
|
-
overflow: "unset",
|
|
288
|
-
},
|
|
289
|
-
}}
|
|
290
284
|
sx={{
|
|
291
285
|
[`& .${dialogClasses.container}`]: {
|
|
292
286
|
alignItems: "flex-start",
|
|
293
287
|
},
|
|
294
288
|
}}
|
|
289
|
+
slotProps={{
|
|
290
|
+
paper: {
|
|
291
|
+
sx: {
|
|
292
|
+
mt: 15,
|
|
293
|
+
overflow: "unset",
|
|
294
|
+
},
|
|
295
|
+
}
|
|
296
|
+
}}
|
|
295
297
|
>
|
|
296
298
|
<Box sx={{ p: 3, borderBottom: `solid 1px gray` }}>
|
|
297
299
|
<InputBase
|
|
@@ -41,11 +41,12 @@ export default function HeaderSim() {
|
|
|
41
41
|
>
|
|
42
42
|
<Logo />
|
|
43
43
|
|
|
44
|
-
<Stack direction="row"
|
|
44
|
+
<Stack direction="row" spacing={1} sx={{
|
|
45
|
+
alignItems: "center"
|
|
46
|
+
}}>
|
|
45
47
|
<SettingsButton />
|
|
46
48
|
</Stack>
|
|
47
49
|
</Toolbar>
|
|
48
|
-
|
|
49
50
|
{offsetTop && <HeaderShadow />}
|
|
50
51
|
</AppBar>
|
|
51
52
|
);
|
|
@@ -52,7 +52,9 @@ export default function HeaderSimple({
|
|
|
52
52
|
}),
|
|
53
53
|
}}
|
|
54
54
|
>
|
|
55
|
-
<Stack direction="row"
|
|
55
|
+
<Stack direction="row" spacing={5} sx={{
|
|
56
|
+
alignItems: "center"
|
|
57
|
+
}}>
|
|
56
58
|
<Logo />
|
|
57
59
|
<ProjectBar
|
|
58
60
|
handleItemSelect={handleItemSelect}
|
|
@@ -60,7 +62,9 @@ export default function HeaderSimple({
|
|
|
60
62
|
setSelectedItem={setSelectedItem}
|
|
61
63
|
/>
|
|
62
64
|
</Stack>
|
|
63
|
-
<Stack direction="row"
|
|
65
|
+
<Stack direction="row" spacing={1} sx={{
|
|
66
|
+
alignItems: "center"
|
|
67
|
+
}}>
|
|
64
68
|
{mdUp && <NavDesktop data={topMenu} />}
|
|
65
69
|
<NotificationsPopover />
|
|
66
70
|
|
|
@@ -69,7 +73,6 @@ export default function HeaderSimple({
|
|
|
69
73
|
<AccountPopover />
|
|
70
74
|
</Stack>
|
|
71
75
|
</Toolbar>
|
|
72
|
-
|
|
73
76
|
{offsetTop && <HeaderShadow />}
|
|
74
77
|
</AppBar>
|
|
75
78
|
);
|
|
@@ -69,9 +69,13 @@ export default function NotificationsPopover() {
|
|
|
69
69
|
const renderHead = (
|
|
70
70
|
<Stack
|
|
71
71
|
direction="row"
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
sx={{
|
|
73
|
+
alignItems: "center",
|
|
74
|
+
py: 2,
|
|
75
|
+
pl: 2.5,
|
|
76
|
+
pr: 1,
|
|
77
|
+
minHeight: 68
|
|
78
|
+
}}>
|
|
75
79
|
<Typography variant="h6" sx={{ flexGrow: 1 }}>
|
|
76
80
|
Notifications
|
|
77
81
|
</Typography>
|
|
@@ -140,28 +144,29 @@ export default function NotificationsPopover() {
|
|
|
140
144
|
<Iconify icon="solar:bell-bing-bold-duotone" width={24} />
|
|
141
145
|
</Badge>
|
|
142
146
|
</IconButton>
|
|
143
|
-
|
|
144
147
|
<Drawer
|
|
145
148
|
open={drawer.value}
|
|
146
149
|
onClose={drawer.onFalse}
|
|
147
150
|
anchor="right"
|
|
148
151
|
slotProps={{
|
|
149
152
|
backdrop: { invisible: true },
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
|
|
154
|
+
paper: {
|
|
155
|
+
sx: { width: 1, maxWidth: 420 },
|
|
156
|
+
}
|
|
157
|
+
}}>
|
|
155
158
|
{renderHead}
|
|
156
159
|
|
|
157
160
|
<Divider />
|
|
158
161
|
|
|
159
162
|
<Stack
|
|
160
163
|
direction="row"
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
164
|
+
sx={{
|
|
165
|
+
alignItems: "center",
|
|
166
|
+
justifyContent: "space-between",
|
|
167
|
+
pl: 2.5,
|
|
168
|
+
pr: 1
|
|
169
|
+
}}>
|
|
165
170
|
{renderTabs}
|
|
166
171
|
<IconButton onClick={handleMarkAllAsRead}>
|
|
167
172
|
<Iconify icon="solar:settings-bold-duotone" />
|
|
@@ -23,15 +23,14 @@ export default function NotificationItem({ notification }) {
|
|
|
23
23
|
/>
|
|
24
24
|
) : (
|
|
25
25
|
<Stack
|
|
26
|
-
alignItems="center"
|
|
27
|
-
justifyContent="center"
|
|
28
26
|
sx={{
|
|
27
|
+
alignItems: "center",
|
|
28
|
+
justifyContent: "center",
|
|
29
29
|
width: 40,
|
|
30
30
|
height: 40,
|
|
31
31
|
borderRadius: "50%",
|
|
32
|
-
bgcolor: "background.neutral"
|
|
33
|
-
}}
|
|
34
|
-
>
|
|
32
|
+
bgcolor: "background.neutral"
|
|
33
|
+
}}>
|
|
35
34
|
<Box
|
|
36
35
|
component="img"
|
|
37
36
|
src={`/assets/icons/notification/${
|
|
@@ -54,8 +53,6 @@ export default function NotificationItem({ notification }) {
|
|
|
54
53
|
secondary={
|
|
55
54
|
<Stack
|
|
56
55
|
direction="row"
|
|
57
|
-
alignItems="center"
|
|
58
|
-
sx={{ typography: "caption", color: "text.disabled" }}
|
|
59
56
|
divider={
|
|
60
57
|
<Box
|
|
61
58
|
sx={{
|
|
@@ -67,7 +64,11 @@ export default function NotificationItem({ notification }) {
|
|
|
67
64
|
}}
|
|
68
65
|
/>
|
|
69
66
|
}
|
|
70
|
-
|
|
67
|
+
sx={{
|
|
68
|
+
alignItems: "center",
|
|
69
|
+
typography: "caption",
|
|
70
|
+
color: "text.disabled"
|
|
71
|
+
}}>
|
|
71
72
|
{fToNow(notification.createdAt)}
|
|
72
73
|
{notification.category}
|
|
73
74
|
</Stack>
|
|
@@ -101,7 +102,9 @@ export default function NotificationItem({ notification }) {
|
|
|
101
102
|
);
|
|
102
103
|
|
|
103
104
|
const projectAction = (
|
|
104
|
-
<Stack
|
|
105
|
+
<Stack sx={{
|
|
106
|
+
alignItems: "flex-start"
|
|
107
|
+
}}>
|
|
105
108
|
<Box
|
|
106
109
|
sx={{
|
|
107
110
|
p: 1.5,
|
|
@@ -142,9 +145,10 @@ export default function NotificationItem({ notification }) {
|
|
|
142
145
|
<Stack
|
|
143
146
|
spacing={1}
|
|
144
147
|
direction={{ xs: "column", sm: "row" }}
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
+
sx={{
|
|
149
|
+
flexGrow: 1,
|
|
150
|
+
minWidth: 0
|
|
151
|
+
}}>
|
|
148
152
|
<ListItemText
|
|
149
153
|
disableTypography
|
|
150
154
|
primary={
|
|
@@ -160,8 +164,6 @@ export default function NotificationItem({ notification }) {
|
|
|
160
164
|
secondary={
|
|
161
165
|
<Stack
|
|
162
166
|
direction="row"
|
|
163
|
-
alignItems="center"
|
|
164
|
-
sx={{ typography: "caption", color: "text.disabled" }}
|
|
165
167
|
divider={
|
|
166
168
|
<Box
|
|
167
169
|
sx={{
|
|
@@ -173,7 +175,11 @@ export default function NotificationItem({ notification }) {
|
|
|
173
175
|
}}
|
|
174
176
|
/>
|
|
175
177
|
}
|
|
176
|
-
|
|
178
|
+
sx={{
|
|
179
|
+
alignItems: "center",
|
|
180
|
+
typography: "caption",
|
|
181
|
+
color: "text.disabled"
|
|
182
|
+
}}>
|
|
177
183
|
<span>2.3 GB</span>
|
|
178
184
|
<span>30 min ago</span>
|
|
179
185
|
</Stack>
|
|
@@ -188,7 +194,13 @@ export default function NotificationItem({ notification }) {
|
|
|
188
194
|
);
|
|
189
195
|
|
|
190
196
|
const tagsAction = (
|
|
191
|
-
<Stack
|
|
197
|
+
<Stack
|
|
198
|
+
direction="row"
|
|
199
|
+
spacing={0.75}
|
|
200
|
+
sx={{
|
|
201
|
+
flexWrap: "wrap",
|
|
202
|
+
mt: 1.5
|
|
203
|
+
}}>
|
|
192
204
|
<Label variant="outlined" color="info">
|
|
193
205
|
Design
|
|
194
206
|
</Label>
|
|
@@ -37,8 +37,8 @@ const APIPath = ({
|
|
|
37
37
|
return (
|
|
38
38
|
<Grid container sx={styles.root} data-cy="api-path">
|
|
39
39
|
<Grid sx={styles.firstElement} />
|
|
40
|
-
<Grid
|
|
41
|
-
<Grid container
|
|
40
|
+
<Grid>
|
|
41
|
+
<Grid container sx={styles.content}>
|
|
42
42
|
{isMethodDisabled ? (
|
|
43
43
|
<Typography data-cy="method-text">{method}</Typography>
|
|
44
44
|
) : (
|