Skip to content

Commit bb28245

Browse files
committed
Merge branch 'dev' of https://github.com/KelvinTegelaar/CIPP into dev
2 parents be8d2cf + 9a403c2 commit bb28245

File tree

30 files changed

+235
-269
lines changed

30 files changed

+235
-269
lines changed

generate-placeholders.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ const pages = [
3535
{ title: "Backup Wizard", path: "/tenant/backup/backup-wizard" },
3636
{ title: "Restore Wizard", path: "/tenant/backup/restore-wizard" },
3737
{ title: "Tools", path: "/tenant/administration" },
38-
{ title: "Graph Explorer", path: "/tenant/administration/graph-explorer" },
39-
{ title: "Application Approval", path: "/tenant/administration/appapproval" },
38+
{ title: "Graph Explorer", path: "/tenant/tools/graph-explorer" },
39+
{ title: "Application Approval", path: "/tenant/tools/appapproval" },
4040
{ title: "IP Database", path: "/tenant/tools/geoiplookup" },
4141
{ title: "Tenant Lookup", path: "/tenant/administration/tenantlookup" },
42-
{ title: "Individual Domain Check", path: "/tenant/standards/individual-domains" },
42+
{ title: "Individual Domain Check", path: "/tenant/tools/individual-domains" },
4343
{ title: "BPA Report Builder", path: "/tenant/tools/bpa-report-builder" },
4444
{ title: "Standards", path: "/tenant/standards" },
4545
{ title: "Edit Standards", path: "/tenant/standards/list-applied-standards" },
@@ -82,7 +82,7 @@ const pages = [
8282
{ title: "Add Profile", path: "/endpoint/autopilot/add-profile" },
8383
{ title: "Status Pages", path: "/endpoint/autopilot/list-status-pages" },
8484
{ title: "Add Status Page", path: "/endpoint/autopilot/add-status-page" },
85-
{ title: "Devices", path: "/endpoint/reports/devices" },
85+
{ title: "Devices", path: "/endpoint/MEM/devices" },
8686
{ title: "Configuration Policies", path: "/endpoint/MEM/list-policies" },
8787
{ title: "Compliance Policies", path: "/endpoint/MEM/list-compliance-policies" },
8888
{ title: "Protection Policies", path: "/endpoint/MEM/list-appprotection-policies" },
@@ -108,9 +108,9 @@ const pages = [
108108
{ title: "Transport rules", path: "/email/transport/list-rules" },
109109
{ title: "Deploy Transport rule", path: "/email/transport/deploy-rules" },
110110
{ title: "Transport Templates", path: "/email/transport/list-templates" },
111-
{ title: "Connectors", path: "/email/connectors/list-connectors" },
111+
{ title: "Connectors", path: "/email/transport/list-connectors" },
112112
{ title: "Deploy Connector Templates", path: "/email/connectors/deploy-connector" },
113-
{ title: "Connector Templates", path: "/email/connectors/list-connector-templates" },
113+
{ title: "Connector Templates", path: "/email/transport/list-connector-templates" },
114114
{ title: "Spamfilter", path: "/email/spamfilter/list-spamfilter" },
115115
{ title: "Apply Spamfilter Template", path: "/email/spamfilter/deploy" },
116116
{ title: "Templates", path: "/email/spamfilter/list-templates" },

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"license": "AGPL-3.0",
1010
"engines": {
11-
"node": "^18.17.0"
11+
"node": "^20.18.2"
1212
},
1313
"repository": {
1414
"type": "git",

src/components/CippComponents/CippUserActions.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ export const CippUserActions = () => {
9898
{ label: "Disabled", value: "Disabled" },
9999
],
100100
multiple: false,
101+
creatable: false,
101102
},
102103
],
103104
confirmText: "Are you sure you want to set per-user MFA for these users?",

src/layouts/config.js

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -154,15 +154,15 @@ export const nativeMenuItems = [
154154
items: [
155155
{
156156
title: "Licence Report",
157-
path: "/tenant/administration/list-licenses",
157+
path: "/tenant/reports/list-licenses",
158158
},
159159
{
160160
title: "Sherweb Licence Report",
161-
path: "/tenant/administration/list-csp-licenses",
161+
path: "/tenant/reports/list-csp-licenses",
162162
},
163163
{
164164
title: "Consented Applications",
165-
path: "/tenant/administration/application-consent",
165+
path: "/tenant/reports/application-consent",
166166
},
167167
],
168168
},
@@ -244,7 +244,7 @@ export const nativeMenuItems = [
244244
title: "Device Management",
245245
path: "/endpoint/MEM",
246246
items: [
247-
{ title: "Devices", path: "/endpoint/reports/devices" },
247+
{ title: "Devices", path: "/endpoint/MEM/devices" },
248248
{ title: "Configuration Policies", path: "/endpoint/MEM/list-policies" },
249249
{ title: "Compliance Policies", path: "/endpoint/MEM/list-compliance-policies" },
250250
{ title: "Protection Policies", path: "/endpoint/MEM/list-appprotection-policies" },
@@ -300,7 +300,7 @@ export const nativeMenuItems = [
300300
items: [
301301
{
302302
title: "Administration",
303-
path: "/email/Administration",
303+
path: "/email/administration",
304304
items: [
305305
{ title: "Mailboxes", path: "/email/administration/mailboxes" },
306306
{ title: "Deleted Mailboxes", path: "/email/administration/deleted-mailboxes" },
@@ -315,17 +315,17 @@ export const nativeMenuItems = [
315315
},
316316
{
317317
title: "Transport",
318-
path: "/email/Transport",
318+
path: "/email/transport",
319319
items: [
320320
{ title: "Transport rules", path: "/email/transport/list-rules" },
321321
{
322322
title: "Transport Templates",
323323
path: "/email/transport/list-templates",
324324
},
325-
{ title: "Connectors", path: "/email/connectors/list-connectors" },
325+
{ title: "Connectors", path: "/email/transport/list-connectors" },
326326
{
327327
title: "Connector Templates",
328-
path: "/email/connectors/list-connector-templates",
328+
path: "/email/transport/list-connector-templates",
329329
},
330330
],
331331
},
@@ -335,8 +335,11 @@ export const nativeMenuItems = [
335335
items: [
336336
{ title: "Spamfilter", path: "/email/spamfilter/list-spamfilter" },
337337
{ title: "Spamfilter templates", path: "/email/spamfilter/list-templates" },
338-
{ title: "Connection filter", path: "/email/connectionfilter/list-connectionfilter" },
339-
{ title: "Connection filter templates", path: "/email/connectionfilter/list-templates" },
338+
{ title: "Connection filter", path: "/email/spamfilter/list-connectionfilter" },
339+
{
340+
title: "Connection filter templates",
341+
path: "/email/spamfilter/list-connectionfilter-templates",
342+
},
340343
],
341344
},
342345
{
@@ -399,19 +402,19 @@ export const nativeMenuItems = [
399402
items: [
400403
{
401404
title: "Graph Explorer",
402-
path: "/tenant/administration/graph-explorer",
405+
path: "/tenant/tools/graph-explorer",
403406
},
404407
{
405408
title: "Application Approval",
406-
path: "/tenant/administration/appapproval",
409+
path: "/tenant/tools/appapproval",
407410
},
408411
{ title: "Tenant Lookup", path: "/tenant/tools/tenantlookup" },
409412

410413
{ title: "IP Database", path: "/tenant/tools/geoiplookup" },
411414

412415
{
413416
title: "Individual Domain Check",
414-
path: "/tenant/standards/individual-domains",
417+
path: "/tenant/tools/individual-domains",
415418
},
416419
],
417420
},

src/pages/email/connectionfilter/deploy/index.js

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/pages/email/connectors/deploy-connector/index.js

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/pages/email/spamfilter/deploy/index.js

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/pages/email/connectionfilter/list-connectionfilter/index.js renamed to src/pages/email/spamfilter/list-connectionfilter/index.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Layout as DashboardLayout } from "/src/layouts/index.js";
22
import { CippTablePage } from "/src/components/CippComponents/CippTablePage.jsx";
33
import { Button } from "@mui/material";
4+
import { Book } from "@mui/icons-material";
45
import Link from "next/link";
56

67
const Page = () => {
@@ -14,6 +15,7 @@ const Page = () => {
1415
dataFunction: (data) => {
1516
return { ...data };
1617
},
18+
icon: <Book />,
1719
confirmText: "Are you sure you want to create a template based on this rule?",
1820
},
1921
];
@@ -32,13 +34,7 @@ const Page = () => {
3234
actions: actions,
3335
};
3436

35-
const simpleColumns = [
36-
"Name",
37-
"IsDefault",
38-
"IPAllowList",
39-
"IPBlockList",
40-
"EnableSafeList",
41-
];
37+
const simpleColumns = ["Name", "IsDefault", "IPAllowList", "IPBlockList", "EnableSafeList"];
4238

4339
return (
4440
<CippTablePage
@@ -49,7 +45,7 @@ const Page = () => {
4945
simpleColumns={simpleColumns}
5046
cardButton={
5147
<>
52-
<Button component={Link} href="/email/connectionfilter/list-connectionfilter/add">
48+
<Button component={Link} href="/email/spamfilter/list-connectionfilter/add">
5349
Deploy ConnectionFilter
5450
</Button>
5551
</>

src/pages/email/connectors/list-connectors/index.js renamed to src/pages/email/transport/list-connectors/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ const Page = () => {
8383
}}
8484
cardButton={
8585
<>
86-
<Button component={Link} href="/email/connectors/list-connectors/add">
86+
<Button component={Link} href="/email/transport/list-connectors/add">
8787
Deploy Connector
8888
</Button>
8989
</>

src/pages/endpoint/autopilot/add-status-page/index.js

Lines changed: 112 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,120 @@
1-
1+
import React from "react";
2+
import { Grid, Divider } from "@mui/material";
3+
import { useForm, useWatch } from "react-hook-form";
24
import { Layout as DashboardLayout } from "/src/layouts/index.js";
5+
import CippFormPage from "/src/components/CippFormPages/CippFormPage";
6+
import CippFormComponent from "/src/components/CippComponents/CippFormComponent";
7+
import { CippFormTenantSelector } from "/src/components/CippComponents/CippFormTenantSelector";
38

49
const Page = () => {
5-
const pageTitle = "Add Status Page";
10+
const formControl = useForm({
11+
mode: "onChange",
12+
defaultValues: {
13+
TimeOutInMinutes: "",
14+
ErrorMessage: "",
15+
ShowProgress: false,
16+
EnableLog: false,
17+
OBEEOnly: false,
18+
blockDevice: false,
19+
Allowretry: false,
20+
AllowReset: false,
21+
AllowFail: false,
22+
},
23+
});
624

725
return (
8-
<div>
9-
<h1>{pageTitle}</h1>
10-
<p>This is a placeholder page for the add status page section.</p>
11-
</div>
26+
<CippFormPage
27+
resetForm={false}
28+
queryKey="Autopilot Status Pages"
29+
title="Autopilot Status Page Wizard"
30+
formControl={formControl}
31+
postUrl="/api/AddEnrollment"
32+
backButtonTitle="Autopilot Status Pages"
33+
>
34+
<Grid container spacing={2}>
35+
{/* Tenant Selector */}
36+
<Grid item xs={12}>
37+
<CippFormTenantSelector
38+
label="Select Tenants"
39+
formControl={formControl}
40+
name="selectedTenants"
41+
type="multiple"
42+
allTenants={true}
43+
validators={{ required: "At least one tenant must be selected" }}
44+
/>
45+
</Grid>
46+
47+
<Divider sx={{ my: 2 }} />
48+
49+
{/* Form Fields */}
50+
<Grid item xs={12} md={6}>
51+
<CippFormComponent
52+
type="textField"
53+
label="Timeout in minutes"
54+
name="TimeOutInMinutes"
55+
formControl={formControl}
56+
placeholder="60"
57+
validators={{ required: "Timeout is required" }}
58+
/>
59+
</Grid>
60+
61+
<Grid item xs={12}>
62+
<CippFormComponent
63+
type="textField"
64+
label="Custom Error Message"
65+
name="ErrorMessage"
66+
formControl={formControl}
67+
placeholder="Leave blank to not set."
68+
/>
69+
</Grid>
70+
71+
{/* Switches */}
72+
<Grid item xs={12}>
73+
<CippFormComponent
74+
type="switch"
75+
label="Show progress to users"
76+
name="ShowProgress"
77+
formControl={formControl}
78+
/>
79+
<CippFormComponent
80+
type="switch"
81+
label="Turn on log collection"
82+
name="EnableLog"
83+
formControl={formControl}
84+
/>
85+
<CippFormComponent
86+
type="switch"
87+
label="Show status page only with OOBE setup"
88+
name="OBEEOnly"
89+
formControl={formControl}
90+
/>
91+
<CippFormComponent
92+
type="switch"
93+
label="Block device usage during setup"
94+
name="blockDevice"
95+
formControl={formControl}
96+
/>
97+
<CippFormComponent
98+
type="switch"
99+
label="Allow retry"
100+
name="Allowretry"
101+
formControl={formControl}
102+
/>
103+
<CippFormComponent
104+
type="switch"
105+
label="Allow reset"
106+
name="AllowReset"
107+
formControl={formControl}
108+
/>
109+
<CippFormComponent
110+
type="switch"
111+
label="Allow users to use device if setup fails"
112+
name="AllowFail"
113+
formControl={formControl}
114+
/>
115+
</Grid>
116+
</Grid>
117+
</CippFormPage>
12118
);
13119
};
14120

0 commit comments

Comments
 (0)