Skip to content

Commit f87a5fa

Browse files
Merge branch 'interface-rewrite' of https://github.com/KelvinTegelaar/CIPP into interface-rewrite
2 parents 3f4315e + 5927d58 commit f87a5fa

3 files changed

Lines changed: 188 additions & 22 deletions

File tree

‎src/data/standards.json‎

Lines changed: 122 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,26 @@
99
{
1010
"type": "textField",
1111
"name": "standards.MailContacts.GeneralContact",
12-
"label": "General Contact"
12+
"label": "General Contact",
13+
"required": false
1314
},
1415
{
1516
"type": "textField",
1617
"name": "standards.MailContacts.SecurityContact",
17-
"label": "Security Contact"
18+
"label": "Security Contact",
19+
"required": false
1820
},
1921
{
2022
"type": "textField",
2123
"name": "standards.MailContacts.MarketingContact",
22-
"label": "Marketing Contact"
24+
"label": "Marketing Contact",
25+
"required": false
2326
},
2427
{
2528
"type": "textField",
2629
"name": "standards.MailContacts.TechContact",
27-
"label": "Technical Contact"
30+
"label": "Technical Contact",
31+
"required": false
2832
}
2933
],
3034
"label": "Set contact e-mails",
@@ -71,12 +75,14 @@
7175
{
7276
"type": "textField",
7377
"name": "standards.Branding.signInPageText",
74-
"label": "Sign-in page text"
78+
"label": "Sign-in page text",
79+
"required": false
7580
},
7681
{
7782
"type": "textField",
7883
"name": "standards.Branding.usernameHintText",
79-
"label": "Username hint Text"
84+
"label": "Username hint Text",
85+
"required": false
8086
},
8187
{
8288
"type": "switch",
@@ -547,7 +553,8 @@
547553
{
548554
"type": "textField",
549555
"name": "standards.DisableSelfServiceLicenses.Exclusions",
550-
"label": "License Ids to exclude from this standard"
556+
"label": "License Ids to exclude from this standard",
557+
"required": false
551558
}
552559
],
553560
"label": "Disable Self Service Licensing",
@@ -578,7 +585,8 @@
578585
{
579586
"type": "textField",
580587
"name": "standards.OauthConsent.AllowedApps",
581-
"label": "Allowed application IDs, comma separated"
588+
"label": "Allowed application IDs, comma separated",
589+
"required": false
582590
}
583591
],
584592
"label": "Require admin consent for applications (Prevent OAuth phishing)",
@@ -1660,7 +1668,8 @@
16601668
{
16611669
"type": "textField",
16621670
"name": "standards.SafeAttachmentPolicy.RedirectAddress",
1663-
"label": "Redirect Address"
1671+
"label": "Redirect Address",
1672+
"required": false
16641673
}
16651674
],
16661675
"label": "Default Safe Attachment Policy",
@@ -1977,7 +1986,8 @@
19771986
{
19781987
"type": "textField",
19791988
"name": "standards.intuneBrandingProfile.displayName",
1980-
"label": "Organization name"
1989+
"label": "Organization name",
1990+
"required": false
19811991
},
19821992
{
19831993
"type": "switch",
@@ -1987,42 +1997,50 @@
19871997
{
19881998
"type": "switch",
19891999
"name": "standards.intuneBrandingProfile.showDisplayNameNextToLogo",
1990-
"label": "Show organization name next to logo"
2000+
"label": "Show organization name next to logo",
2001+
"required": false
19912002
},
19922003
{
19932004
"type": "textField",
19942005
"name": "standards.intuneBrandingProfile.contactITName",
1995-
"label": "Contact IT name"
2006+
"label": "Contact IT name",
2007+
"required": false
19962008
},
19972009
{
19982010
"type": "textField",
19992011
"name": "standards.intuneBrandingProfile.contactITPhoneNumber",
2000-
"label": "Contact IT phone number"
2012+
"label": "Contact IT phone number",
2013+
"required": false
20012014
},
20022015
{
20032016
"type": "textField",
20042017
"name": "standards.intuneBrandingProfile.contactITEmailAddress",
2005-
"label": "Contact IT email address"
2018+
"label": "Contact IT email address",
2019+
"required": false
20062020
},
20072021
{
20082022
"type": "textField",
20092023
"name": "standards.intuneBrandingProfile.contactITNotes",
2010-
"label": "Contact IT notes"
2024+
"label": "Contact IT notes",
2025+
"required": false
20112026
},
20122027
{
20132028
"type": "textField",
20142029
"name": "standards.intuneBrandingProfile.onlineSupportSiteName",
2015-
"label": "Online support site name"
2030+
"label": "Online support site name",
2031+
"required": false
20162032
},
20172033
{
20182034
"type": "textField",
20192035
"name": "standards.intuneBrandingProfile.onlineSupportSiteUrl",
2020-
"label": "Online support site URL"
2036+
"label": "Online support site URL",
2037+
"required": false
20212038
},
20222039
{
20232040
"type": "textField",
20242041
"name": "standards.intuneBrandingProfile.privacyUrl",
2025-
"label": "Privacy statement URL"
2042+
"label": "Privacy statement URL",
2043+
"required": false
20262044
}
20272045
],
20282046
"label": "Set Intune Company Portal branding profile",
@@ -2471,7 +2489,8 @@
24712489
{
24722490
"type": "textField",
24732491
"name": "standards.sharingDomainRestriction.Domains",
2474-
"label": "Domains to allow/block, comma separated"
2492+
"label": "Domains to allow/block, comma separated",
2493+
"required": false
24752494
}
24762495
],
24772496
"label": "Restrict sharing to a specific domain",
@@ -2701,7 +2720,8 @@
27012720
{
27022721
"type": "textField",
27032722
"name": "standards.TeamsFederationConfiguration.DomainList",
2704-
"label": "Domains, Comma separated"
2723+
"label": "Domains, Comma separated",
2724+
"required": false
27052725
}
27062726
],
27072727
"label": "Federation Configuration for Microsoft Teams",
@@ -2710,6 +2730,88 @@
27102730
"powershellEquivalent": "Set-CsTenantFederationConfiguration",
27112731
"recommendedBy": []
27122732
},
2733+
{
2734+
"name": "standards.TeamsMessagingPolicy",
2735+
"cat": "Teams Standards",
2736+
"tag": ["mediumimpact"],
2737+
"helpText": "Sets the properties of the Global messaging policy.",
2738+
"docsDescription": "Sets the properties of the Global messaging policy. Messaging policies control which chat and channel messaging features are available to users in Teams.",
2739+
"addedComponent": [
2740+
{
2741+
"type": "switch",
2742+
"name": "standards.TeamsMessagingPolicy.AllowOwnerDeleteMessage",
2743+
"label": "Allow Owner to Delete Messages",
2744+
"default": false
2745+
},
2746+
{
2747+
"type": "switch",
2748+
"name": "standards.TeamsMessagingPolicy.AllowUserDeleteMessage",
2749+
"label": "Allow User to Delete Messages",
2750+
"default": true
2751+
},
2752+
{
2753+
"type": "switch",
2754+
"name": "standards.TeamsMessagingPolicy.AllowUserEditMessage",
2755+
"label": "Allow User to Edit Messages",
2756+
"default": true
2757+
},
2758+
{
2759+
"type": "switch",
2760+
"name": "standards.TeamsMessagingPolicy.AllowUserDeleteChat",
2761+
"label": "Allow User to Delete Chats",
2762+
"default": true
2763+
},
2764+
{
2765+
"type": "autoComplete",
2766+
"multiple": false,
2767+
"name": "standards.TeamsMessagingPolicy.ReadReceiptsEnabledType",
2768+
"label": "Read Receipts Enabled Type",
2769+
"options": [
2770+
{
2771+
"label": "User controlled",
2772+
"value": "UserPreference"
2773+
},
2774+
{
2775+
"label": "Turned on for everyone",
2776+
"value": "Everyone"
2777+
},
2778+
{
2779+
"label": "Turned off for everyone",
2780+
"value": "None"
2781+
}
2782+
]
2783+
},
2784+
{
2785+
"type": "switch",
2786+
"name": "standards.TeamsMessagingPolicy.CreateCustomEmojis",
2787+
"label": "Allow Creating Custom Emojis",
2788+
"default": true
2789+
},
2790+
{
2791+
"type": "switch",
2792+
"name": "standards.TeamsMessagingPolicy.DeleteCustomEmojis",
2793+
"label": "Allow Deleting Custom Emojis",
2794+
"default": false
2795+
},
2796+
{
2797+
"type": "switch",
2798+
"name": "standards.TeamsMessagingPolicy.AllowSecurityEndUserReporting",
2799+
"label": "Allow reporting message as security concern",
2800+
"default": true
2801+
},
2802+
{
2803+
"type": "switch",
2804+
"name": "standards.TeamsMessagingPolicy.AllowCommunicationComplianceEndUserReporting",
2805+
"label": "Allow reporting message as inappropriate content",
2806+
"default": true
2807+
}
2808+
],
2809+
"label": "Global Messaging Policy for Microsoft Teams",
2810+
"impact": "Medium Impact",
2811+
"impactColour": "warning",
2812+
"powershellEquivalent": "Set-CsTeamsMessagingPolicy",
2813+
"recommendedBy": []
2814+
},
27132815
{
27142816
"name": "standards.AutopilotStatusPage",
27152817
"cat": "Device Management Standards",

‎src/pages/email/resources/management/room-lists/index.js‎

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,45 @@ import { CippTablePage } from "/src/components/CippComponents/CippTablePage.jsx"
33

44
const Page = () => {
55
const pageTitle = "Room Lists";
6+
const apiUrl = "/api/ListRoomLists"
7+
8+
const actions = [
9+
{
10+
label: "View included Rooms",
11+
link: `/email/resources/management/room-lists/list/view?roomAddress=[emailAddress]`,
12+
color: "info",
13+
},
14+
];
15+
16+
const offCanvas = {
17+
extendedInfoFields: [
18+
"id",
19+
"emailAddress",
20+
"displayName",
21+
"phone",
22+
"placeId",
23+
"geoCoordinates",
24+
"address.city",
25+
"address.countryOrRegion",
26+
],
27+
actions: actions,
28+
};
29+
30+
const simpleColumns = [
31+
"displayName",
32+
"geoCoordinates",
33+
"placeId",
34+
"address.city",
35+
"address.countryOrRegion",
36+
];
637

738
return (
839
<CippTablePage
940
title={pageTitle}
10-
apiUrl="/api/ListRoomLists"
11-
simpleColumns={["displayName", "geoCoordinates", "placeId"]}
41+
apiUrl={apiUrl}
42+
actions={actions}
43+
offCanvas={offCanvas}
44+
simpleColumns={simpleColumns}
1245
/>
1346
);
1447
};
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import { Layout as DashboardLayout } from "/src/layouts/index.js";
2+
import { useRouter } from "next/router";
3+
import { useSettings } from "/src/hooks/use-settings";
4+
import { CippTablePage } from "/src/components/CippComponents/CippTablePage.jsx";
5+
6+
const Page = () => {
7+
const userSettingsDefaults = useSettings();
8+
const router = useRouter();
9+
const { roomAddress } = router.query;
10+
const pageTitle = `Rooms included in ${roomAddress}`;
11+
12+
return (
13+
<CippTablePage
14+
title={pageTitle}
15+
apiUrl= "/api/ListGraphRequest"
16+
apiData={{
17+
Endpoint: `/places/${roomAddress}/microsoft.graph.roomlist/rooms`,
18+
tenantFilter: userSettingsDefaults.currentTenant,
19+
AsApp: true,
20+
manualPagination: true,
21+
$count: true,
22+
$top: 999,
23+
}}
24+
apiDataKey="Results"
25+
/>
26+
);
27+
};
28+
29+
Page.getLayout = (page) => <DashboardLayout>{page}</DashboardLayout>;
30+
31+
export default Page;

0 commit comments

Comments
 (0)