Skip to content

Commit c2ebd14

Browse files
JohnDupreyredanthrax
authored andcommitted
Merge pull request KelvinTegelaar#3542 from KelvinTegelaar/dev
Dev to hotfix
2 parents 517fc23 + 06213ce commit c2ebd14

File tree

122 files changed

+2648
-938
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+2648
-938
lines changed

Tools/Start-CippDevEmulators.ps1

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1-
Write-Host 'Starting CIPP Dev Emulators'
1+
Get-Command wt -ErrorAction Stop | Out-Null
22
Get-Process node -ErrorAction SilentlyContinue | Stop-Process -ErrorAction SilentlyContinue
33
$Path = (Get-Item $PSScriptRoot).Parent.Parent.FullName
44

5-
$Process = Read-Host -Prompt 'Start Process Function (y/N)?'
5+
pwsh -file (Join-Path $PSScriptRoot 'Start-CippDevInstallation.ps1')
6+
7+
Write-Host 'Starting CIPP Dev Emulators'
8+
9+
if (Test-Path (Join-Path $Path 'CIPP-API-Processor')) {
10+
$Process = Read-Host -Prompt 'Start Process Function (y/N)?'
11+
}
612

713
if ($Process -eq 'y') {
814
wt --title CIPP`; new-tab --title 'Azurite' -d $Path pwsh -c azurite`; new-tab --title 'FunctionApp' -d $Path\CIPP-API pwsh -c func start`; new-tab --title 'CIPP Frontend' -d $Path\CIPP pwsh -c npm run dev`; new-tab --title 'SWA' -d $Path\CIPP pwsh -c npm run start-swa`; new-tab --title 'CIPP-API-Processor' -d $Path\CIPP-API-Processor pwsh -c func start --port 7072

Tools/Start-CippDevInstallation.ps1

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
$Path = (Get-Item $PSScriptRoot).Parent.Parent.FullName
22

3-
if (-not(Get-Command npm)) {
4-
throw 'npm is required to install the CIPP development environment'
3+
if (-not((Get-Command npm -ErrorAction SilentlyContinue) -or (Get-Command yarn -ErrorAction SilentlyContinue))) {
4+
throw 'npm or yarn is required to install the CIPP development environment.'
55
}
66

7-
if (-not(Get-Command azurite)) {
7+
if (-not(Get-Command yarn -ErrorAction SilentlyContinue)) {
8+
Write-Host 'Installing Yarn'
9+
npm install --global yarn
10+
}
11+
12+
if (-not(Get-Command azurite -ErrorAction SilentlyContinue)) {
813
Write-Host 'Installing Azurite'
9-
npm install --global 'azurite'
14+
yarn global add 'azurite'
1015
}
1116

12-
if (-not(Get-Command swa)) {
17+
if (-not(Get-Command swa -ErrorAction SilentlyContinue)) {
1318
Write-Host 'Installing @azure/static-web-apps-cli'
14-
npm install --global '@azure/static-web-apps-cli'
19+
yarn global add '@azure/static-web-apps-cli'
1520
}
1621

17-
if (-not(Get-Command func)) {
22+
if (-not(Get-Command func -ErrorAction SilentlyContinue)) {
1823
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
24+
yarn global add 'azure-functions-core-tools@4'
2525
}
2626

27-
if (-not(yarn list --global --pattern 'next' | Select-String -Pattern 'next')) {
27+
if (-not(yarn global list | Select-String -Pattern 'next')) {
2828
Write-Host 'Installing Next.js'
29-
yarn install --global next --network-timeout 500000
29+
yarn global add 'next'
3030
}
3131

3232
yarn install --cwd (Join-Path $Path "CIPP") --network-timeout 500000

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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "cipp",
3-
"version": "7.0.0",
3+
"version": "7.1.3",
44
"author": "CIPP Contributors",
55
"homepage": "https://cipp.app/",
66
"bugs": {
77
"url": "https://github.com/KelvinTegelaar/CIPP/issues"
88
},
99
"license": "AGPL-3.0",
1010
"engines": {
11-
"node": "^18.17.0"
11+
"node": "^20.18.1"
1212
},
1313
"repository": {
1414
"type": "git",

public/assets/integrations/github.png

12.7 KB
Loading
30.4 KB
Loading

public/discord-mark-blue.svg

Lines changed: 1 addition & 0 deletions
Loading

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.1.2"
2+
"version": "7.1.3"
33
}

src/components/CippCards/CippUserInfoCard.jsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ export const CippUserInfoCard = (props) => {
9191
)
9292
}
9393
/>
94+
<PropertyListItem
95+
divider
96+
label="User ID"
97+
value={isFetching ? <Skeleton variant="text" width={120} /> : user?.id || "N/A"}
98+
/>
9499
<PropertyListItem
95100
divider
96101
label="Email Address"

src/components/CippComponents/CippApiDialog.jsx

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ export const CippApiDialog = (props) => {
7979
} else {
8080
Object.keys(dataObject).forEach((key) => {
8181
const value = dataObject[key];
82-
8382
if (typeof value === "string" && value.startsWith("!")) {
8483
newData[key] = value.slice(1);
8584
} else if (typeof value === "string") {
@@ -208,6 +207,40 @@ export const CippApiDialog = (props) => {
208207
const onSubmit = (data) => handleActionClick(row, api, data);
209208
const selectedType = api.type === "POST" ? actionPostRequest : actionGetRequest;
210209

210+
if (api?.setDefaultValues) {
211+
fields.map((field) => {
212+
if (
213+
((typeof row[field.name] === "string" && field.type === "textField") ||
214+
(typeof row[field.name] === "boolean" && field.type === "switch")) &&
215+
row[field.name] !== undefined &&
216+
row[field.name] !== null &&
217+
row[field.name] !== ""
218+
) {
219+
formHook.setValue(field.name, row[field.name]);
220+
} else if (Array.isArray(row[field.name]) && field.type === "autoComplete") {
221+
var values = [];
222+
row[field.name].map((element) => {
223+
values.push({
224+
label: element,
225+
value: element,
226+
});
227+
});
228+
formHook.setValue(field.name, values);
229+
} else if (
230+
field.type === "autoComplete" &&
231+
row[field.name] !== undefined &&
232+
row[field.name] !== null &&
233+
row[field.name] !== "" &&
234+
typeof row[field.name] === "string"
235+
) {
236+
formHook.setValue(field.name, {
237+
label: row[field.name],
238+
value: row[field.name],
239+
});
240+
}
241+
});
242+
}
243+
211244
// Handling link navigation
212245
if (api.link) {
213246
const getNestedValue = (obj, path) => {

0 commit comments

Comments
 (0)