Skip to content

Commit f0bda19

Browse files
Merge pull request #29 from KelvinTegelaar/dev
[pull] dev from KelvinTegelaar:dev
2 parents 9a16b87 + 6808f9c commit f0bda19

File tree

71 files changed

+3795
-1039
lines changed

Some content is hidden

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

71 files changed

+3795
-1039
lines changed

.github/workflows/Close_Stale_Issues_and_PRs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ jobs:
1313
stale-issue-message: 'This issue is stale because it has been open 10 days with no activity. We will close this issue soon. If you want this feature implemented you can contribute it. See: https://docs.cipp.app/dev-documentation/contributing-to-the-code . Please notify the team if you are working on this yourself.'
1414
close-issue-message: 'This issue was closed because it has been stalled for 14 days with no activity.'
1515
stale-issue-label: 'no-activity'
16-
exempt-issue-labels: 'planned'
16+
exempt-issue-labels: 'planned,bug,roadmap'
1717
days-before-stale: 9
18-
days-before-close: 14
18+
days-before-close: 5

.github/workflows/Label_Issues.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Label Issues
1515
uses: andymckay/labeler@5c59dabdfd4dd5bd9c6e6d255b01b9d764af4414
1616
with:
17-
add-labels: 'unconfirmed-by-user'
17+
add-labels: 'not-assigned'
1818
repo-token: ${{ secrets.GITHUB_TOKEN }}
1919
label_issues_frs:
2020
if: github.repository_owner == 'KelvinTegelaar' && contains(github.event.issue.title, 'Feature')
@@ -25,5 +25,5 @@ jobs:
2525
- name: Label Issues
2626
uses: andymckay/labeler@5c59dabdfd4dd5bd9c6e6d255b01b9d764af4414
2727
with:
28-
add-labels: 'enhancement, no-priority'
28+
add-labels: 'enhancement, not-assigned'
2929
repo-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/dev_deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
2626
app_location: '/' # App source code path
2727
api_location: '' # Api source code path - optional
28-
output_location: 'out' # Built app content directory - optional
28+
output_location: '/out' # Built app content directory - optional
2929
###### End of Repository/Build Configurations ######
3030

3131
close_pull_request_job:

.vscode/extensions.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"recommendations": [
3+
"editorconfig.editorconfig",
4+
"streetsidesoftware.code-spell-checker",
5+
]
6+
}

cspell.json

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
{
2+
"version": "0.2",
3+
"ignorePaths": [],
4+
"dictionaryDefinitions": [],
5+
"dictionaries": [],
6+
"words": [
7+
"ADMS",
8+
"AITM",
9+
"Augmentt",
10+
"Autotask",
11+
"Choco",
12+
"CIPP",
13+
"CIPP-API",
14+
"Datto",
15+
"Entra",
16+
"ESET",
17+
"GDAP",
18+
"HIBP",
19+
"Hudu",
20+
"ImmyBot",
21+
"Intune",
22+
"LCID",
23+
"OBEE",
24+
"Passwordless",
25+
"pwpush",
26+
"Rewst",
27+
"Sherweb",
28+
"Syncro",
29+
"Yubikey"
30+
],
31+
"ignoreWords": [
32+
"Addins",
33+
"CIPPAPI",
34+
"PSTN",
35+
"TNEF",
36+
"exo_individualsharing",
37+
"exo_mailboxaudit",
38+
"exo_mailtipsenabled",
39+
"exo_outlookaddins",
40+
"exo_storageproviderrestricted",
41+
"locationcipp",
42+
"mdo_antiphishingpolicies",
43+
"mdo_autoforwardingmode",
44+
"mdo_blockmailforward",
45+
"mdo_commonattachmentsfilter",
46+
"mdo_highconfidencephishaction",
47+
"mdo_highconfidencespamaction",
48+
"mdo_phishthresholdlevel",
49+
"mdo_phisspamacation",
50+
"mdo_safeattachmentpolicy",
51+
"mdo_safeattachments",
52+
"mdo_safedocuments",
53+
"mdo_safelinksforOfficeApps",
54+
"mdo_safelinksforemail",
55+
"mdo_spam_notifications_only_for_admins",
56+
"mdo_zapmalware",
57+
"mdo_zapphish",
58+
"mdo_zapspam",
59+
"microsoftonline",
60+
"mip_search_auditlog",
61+
"winmail"
62+
],
63+
"import": []
64+
}

next.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const config = {
1515
return [];
1616
},
1717
output: "export",
18-
distDir: "/out",
18+
distDir: "./out",
1919
};
2020

2121
module.exports = config;

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
},
99
"license": "AGPL-3.0",
1010
"engines": {
11-
"node": "^20.18.3"
11+
"node": "^22.13.0"
1212
},
1313
"repository": {
1414
"type": "git",
1515
"url": "git@github.com:KelvinTegelaar/CIPP.git"
1616
},
1717
"scripts": {
1818
"dev": "next -H 127.0.0.1",
19-
"build": "next build",
19+
"build": "next build && rm -rf package.json yarn.lock",
2020
"start": "next start",
2121
"export": "next export",
2222
"lint": "next lint",
@@ -71,6 +71,7 @@
7171
"nprogress": "0.2.0",
7272
"numeral": "2.0.6",
7373
"prop-types": "15.8.1",
74+
"punycode": "^2.3.1",
7475
"react": "19.0.0",
7576
"react-apexcharts": "1.7.0",
7677
"react-beautiful-dnd": "13.1.1",

public/version.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"version": "7.4.0"
3-
}
2+
"version": "7.5.3"
3+
}

src/components/CippCards/CippDomainCards.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import { CippCodeBlock } from "/src/components/CippComponents/CippCodeBlock";
2828
import { CippOffCanvas } from "../CippComponents/CippOffCanvas";
2929
import { CippPropertyListCard } from "./CippPropertyListCard";
3030
import { getCippFormatting } from "../../utils/get-cipp-formatting";
31+
import punycode from "punycode";
3132

3233
const ResultList = ({ passes = [], warns = [], fails = [] }) => (
3334
<Stack direction="column" sx={{ mt: 1 }}>
@@ -395,7 +396,8 @@ export const CippDomainCards = ({ domain: propDomain = "", fullwidth = false })
395396
}, [propDomain, setValue]);
396397

397398
const onSubmit = (values) => {
398-
setDomain(values.domain);
399+
const punycodedDomain = punycode.toASCII(values.domain);
400+
setDomain(punycodedDomain);
399401
setSelector(values.dkimSelector);
400402
setSpfRecord(values.spfRecord);
401403
setSubdomains(values.subdomains);

src/components/CippCards/CippExchangeInfoCard.jsx

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,17 @@ export const CippExchangeInfoCard = (props) => {
2929
{ name: "ActiveSync", enabled: exchangeData?.MailboxActiveSyncEnabled },
3030
];
3131

32+
// Define mailbox hold types array
33+
const holds = [
34+
{ name: "Compliance Tag Hold", enabled: exchangeData?.ComplianceTagHold },
35+
{ name: "Retention Hold", enabled: exchangeData?.RetentionHold },
36+
{ name: "Litigation Hold", enabled: exchangeData?.LitigationHold },
37+
{ name: "In-Place Hold", enabled: exchangeData?.InPlaceHold },
38+
{ name: "eDiscovery Hold", enabled: exchangeData?.EDiscoveryHold },
39+
{ name: "Purview Retention Hold", enabled: exchangeData?.PurviewRetentionHold },
40+
{ name: "Excluded from Org-Wide Hold", enabled: exchangeData?.ExcludedFromOrgWideHold },
41+
];
42+
3243
return (
3344
<Card {...other}>
3445
<CardHeader
@@ -71,7 +82,7 @@ export const CippExchangeInfoCard = (props) => {
7182
<LinearProgressWithLabel
7283
sx={{ width: "100%" }}
7384
variant="determinate"
74-
addedLabel={`(${Math.round(exchangeData.TotalItemSize)}/${Math.round(
85+
addedLabel={`(${Math.round(exchangeData.TotalItemSize)} GB of ${Math.round(
7586
exchangeData?.ProhibitSendReceiveQuota
7687
)}GB)`}
7788
value={
@@ -164,14 +175,27 @@ export const CippExchangeInfoCard = (props) => {
164175
)
165176
}
166177
/>
178+
{/* Combine all mailbox hold types into a single PropertyListItem */}
167179
<PropertyListItem
168180
divider
169-
label="Litigation Hold"
181+
label="Mailbox Holds"
170182
value={
171183
isLoading ? (
172-
<Skeleton variant="text" width={60} />
184+
<Skeleton variant="text" width={200} />
173185
) : (
174-
getCippFormatting(exchangeData?.LitigationHold, "LitigationHold")
186+
<div>
187+
{holds.map((hold) => (
188+
<Chip
189+
key={hold.name}
190+
label={hold.name}
191+
icon={hold.enabled ? <CheckIcon /> : <CloseIcon />}
192+
color={hold.enabled ? "success" : "default"}
193+
variant="outlined"
194+
size="small"
195+
sx={{ mr: 1, mb: 1 }}
196+
/>
197+
))}
198+
</div>
175199
)
176200
}
177201
/>

0 commit comments

Comments
 (0)