Skip to content

Commit b6b04c9

Browse files
authored
Merge pull request #41 from KelvinTegelaar/main
[pull] main from KelvinTegelaar:main
2 parents eda030c + b72010d commit b6b04c9

File tree

12 files changed

+76
-32
lines changed

12 files changed

+76
-32
lines changed
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
Get-Command kitty -ErrorAction Stop | Out-Null
2-
Write-Host 'Starting CIPP Dev Emulators'
32
Get-Process node -ErrorAction SilentlyContinue | Stop-Process -ErrorAction SilentlyContinue
43
$Path = (Get-Item $PSScriptRoot).Parent.Parent.FullName
54

5+
pwsh -file (Join-Path $PSScriptRoot 'Start-CippDevInstallation.ps1')
6+
7+
Write-Host 'Starting CIPP Dev Emulators'
8+
69
if (Test-Path (Join-Path $Path 'CIPP-API-Processor')) {
710
$Process = Read-Host -Prompt 'Start Process Function (y/N)?'
811
}
@@ -11,14 +14,14 @@ if ($Process -eq 'y') {
1114
kitty --detach --title 'CIPP' -o allow_remote_control=yes -- pwsh -c "
1215
kitty @new-window --new-tab --tab-title `"Azurite`" --cwd $Path -- azurite ;
1316
kitty @new-window --new-tab --tab-title `"FunctionApp`" --cwd (Join-Path $Path `"CIPP-API`") -- func start;
14-
kitty @new-window --new-tab --tab-title `"CIPP Frontend`" --cwd (Join-Path $Path `"CIPP`") -- npm run dev ;
17+
kitty @new-window --new-tab --tab-title `"CIPP Frontend`" --cwd (Join-Path $Path `"CIPP`") -- yarn run dev ;
1518
kitty @new-window --new-tab --tab-title `"SWA`" --cwd (Join-Path $Path `"CIPP`") -- npm run start-swa;
1619
kitty @new-window --new-tab --tab-title `"CIPP-API-Processor`" --cwd (Join-Path $Path `"CIPP-API-Processor`") -- func start --port 7072"
1720

1821
} else {
1922
kitty --detach --title 'CIPP' -o allow_remote_control=yes -- pwsh -c "
2023
kitty @new-window --new-tab --tab-title `"Azurite`" --cwd $Path -- azurite ;
2124
kitty @new-window --new-tab --tab-title `"FunctionApp`" --cwd (Join-Path $Path `"CIPP-API`") -- func start;
22-
kitty @new-window --new-tab --tab-title `"CIPP Frontend`" --cwd (Join-Path $Path `"CIPP`") -- npm run dev ;
25+
kitty @new-window --new-tab --tab-title `"CIPP Frontend`" --cwd (Join-Path $Path `"CIPP`") -- yarn run dev ;
2326
kitty @new-window --new-tab --tab-title `"SWA`" --cwd (Join-Path $Path `"CIPP`") -- npm run start-swa"
2427
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
$Path = (Get-Item $PSScriptRoot).Parent.Parent.FullName
2+
3+
if (-not(Get-Command npm)) {
4+
throw 'npm is required to install the CIPP development environment'
5+
}
6+
7+
if (-not(Get-Command azurite)) {
8+
Write-Host 'Installing Azurite'
9+
npm install --global 'azurite'
10+
}
11+
12+
if (-not(Get-Command swa)) {
13+
Write-Host 'Installing @azure/static-web-apps-cli'
14+
npm install --global '@azure/static-web-apps-cli'
15+
}
16+
17+
if (-not(Get-Command func)) {
18+
Write-Host 'Installing Azure Functions Core Tools'
19+
npm install --global 'azure-functions-core-tools@4' --unsafe-perms true
20+
}
21+
22+
if (-not(Get-Command yarn)) {
23+
Write-Host 'Installing Yarn'
24+
npm install --global yarn
25+
}
26+
27+
if (-not(yarn list --global --pattern 'next' | Select-String -Pattern 'next')) {
28+
Write-Host 'Installing Next.js'
29+
yarn install --global next --network-timeout 500000
30+
}
31+
32+
yarn install --cwd (Join-Path $Path "CIPP") --network-timeout 500000

public/version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"version": "7.0.2"
2+
"version": "7.0.3"
33
}

src/components/CippComponents/CippTenantSelector.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ export const CippTenantSelector = (props) => {
228228
},
229229
{
230230
label: "Compliance Portal",
231-
link: `https://compliance.microsoft.com/?tid=${currentTenant?.addedFields?.customerId}`,
231+
link: `https://purview.microsoft.com/?tid=${currentTenant?.addedFields?.customerId}`,
232232
icon: <ShieldMoon />,
233233
},
234234
]}

src/components/CippFormPages/CippExchangeSettingsForm.jsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -244,12 +244,13 @@ const CippExchangeSettingsForm = (props) => {
244244
label="Add Access"
245245
name="calendar.UserToGetPermissions"
246246
isFetching={isFetching || usersList.isFetching}
247-
options={
248-
usersList?.data?.Results?.map((user) => ({
247+
options={[
248+
{ value: "Default", label: "Default (Default)" },
249+
...(usersList?.data?.Results?.map((user) => ({
249250
value: user.userPrincipalName,
250251
label: `${user.displayName} (${user.userPrincipalName})`,
251-
})) || []
252-
}
252+
})) || []),
253+
]}
253254
multiple={false}
254255
formControl={formControl}
255256
/>

src/data/portals.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
{
6666
"label": "Compliance Portal",
6767
"name": "Compliance_Portal",
68-
"url": "https://compliance.microsoft.com/?tid=customerId",
68+
"url": "https://purview.microsoft.com/?tid=customerId",
6969
"variable": "customerId",
7070
"target": "_blank",
7171
"external": true,

src/data/standards.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1827,6 +1827,7 @@
18271827
},
18281828
{
18291829
"type": "autoComplete",
1830+
"multiple": false,
18301831
"label": "High Confidence Spam Action",
18311832
"name": "standards.SpamFilterPolicy.HighConfidenceSpamAction",
18321833
"options": [

src/layouts/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ export const nativeMenuItems = [
263263
],
264264
},
265265
{
266-
title: "Teams & Sharepoint",
266+
title: "Teams & SharePoint",
267267
type: "header",
268268
icon: (
269269
<SvgIcon>

src/pages/cipp/settings/tenants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ const Page = () => {
115115
confirmText:
116116
"This will refresh the tenant and update the tenant details. This can be used to force a tenant to reappear in the list. Run this with no Tenant Filter to refresh all tenants.",
117117
type: "GET",
118-
data: { TriggerRefresh: "!true", TenantFilter: "tenantFilter" },
118+
data: { TriggerRefresh: "!true" },
119119
replacementBehaviour: "removeNulls",
120120
}}
121121
/>

src/pages/email/administration/quarantine/index.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Layout as DashboardLayout } from "/src/layouts/index.js";
22
import { CippTablePage } from "/src/components/CippComponents/CippTablePage.jsx";
33
import { useEffect, useState } from "react";
4-
import { Dialog, DialogTitle, DialogContent, IconButton, Skeleton } from "@mui/material";
4+
import { Dialog, DialogTitle, DialogContent, IconButton, Skeleton, Typography, CircularProgress } from "@mui/material";
55
import { Block, Close, Done, DoneAll, Subject } from "@mui/icons-material";
66
import { CippMessageViewer } from "/src/components/CippComponents/CippMessageViewer.jsx";
77
import { ApiGetCall, ApiPostCall } from "/src/api/ApiCall";
@@ -96,8 +96,7 @@ const Page = () => {
9696
type: "POST",
9797
url: "/api/ExecQuarantineManagement",
9898
data: {
99-
TenantFilter: "TenantFilter",
100-
ID: "id",
99+
Identity: "Identity",
101100
Type: "Release",
102101
},
103102
confirmText: "Are you sure you want to release this message?",
@@ -108,8 +107,7 @@ const Page = () => {
108107
type: "POST",
109108
url: "/api/ExecQuarantineManagement",
110109
data: {
111-
TenantFilter: "TenantFilter",
112-
ID: "id",
110+
Identity: "Identity",
113111
Type: "Deny",
114112
},
115113
confirmText: "Are you sure you want to deny this message?",
@@ -120,8 +118,7 @@ const Page = () => {
120118
type: "POST",
121119
url: "/api/ExecQuarantineManagement",
122120
data: {
123-
TenantFilter: "TenantFilter",
124-
ID: "id",
121+
Identity: "Identity",
125122
Type: "Release",
126123
AllowSender: true,
127124
},

0 commit comments

Comments
 (0)