Skip to content

Commit

Permalink
Merge pull request #2871 from KelvinTegelaar/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
KelvinTegelaar authored Aug 30, 2024
2 parents 51b2170 + 46b15c7 commit 3439e33
Show file tree
Hide file tree
Showing 40 changed files with 849 additions and 215 deletions.
2 changes: 1 addition & 1 deletion deployment/AzureDeploymentTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
"name": "[variables('funcStorageName')]",
"location": "[resourceGroup().location]",
"tags": {
"displayName": "funStorageName"
"displayName": "funcStorageName"
},
"sku": {
"name": "Standard_LRS"
Expand Down
6 changes: 3 additions & 3 deletions deployment/AzureDeploymentTemplate_regionoptions.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"defaultValue": "CIPP",
"type": "string",
"metadata": {
"description": "Name use as base-template to named the resources deployed in Azure."
"description": "Name used as base-template to name the resources deployed in Azure."
}
},
"GithubRepository": {
Expand All @@ -20,7 +20,7 @@
"defaultValue": "GeneratedPassword",
"type": "string",
"metadata": {
"description": "Your Github Repository token (see https://docs.microsoft.com/en-us/azure/static-web-apps/publish-azure-resource-manager?tabs=azure-cli#create-a-github-personal-access-token"
"description": "Your Github Repository token (see https://docs.microsoft.com/en-us/azure/static-web-apps/publish-azure-resource-manager?tabs=azure-cli#create-a-github-personal-access-token)"
}
},
"GithubAPIRepository": {
Expand Down Expand Up @@ -197,7 +197,7 @@
"name": "[variables('funcStorageName')]",
"location": "[resourceGroup().location]",
"tags": {
"displayName": "funStorageName"
"displayName": "funcStorageName"
},
"sku": {
"name": "Standard_LRS"
Expand Down
6 changes: 3 additions & 3 deletions deployment/DevAzureDeploymentTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"defaultValue": "CIPPDev",
"type": "string",
"metadata": {
"description": "Name use as base-template to named the resources deployed in Azure."
"description": "Name used as base-template to name the resources deployed in Azure."
}
},
"TenantID": {
Expand Down Expand Up @@ -48,7 +48,7 @@
"defaultValue": "GeneratedPassword",
"type": "string",
"metadata": {
"description": "Your Github Repository token (see https://docs.microsoft.com/en-us/azure/static-web-apps/publish-azure-resource-manager?tabs=azure-cli#create-a-github-personal-access-token"
"description": "Your Github Repository token (see https://docs.microsoft.com/en-us/azure/static-web-apps/publish-azure-resource-manager?tabs=azure-cli#create-a-github-personal-access-token)"
}
},
"GithubAPIRepository": {
Expand Down Expand Up @@ -250,7 +250,7 @@
"name": "[variables('funcStorageName')]",
"location": "[resourceGroup().location]",
"tags": {
"displayName": "funStorageName"
"displayName": "funcStorageName"
},
"sku": {
"name": "Standard_LRS"
Expand Down
4 changes: 2 additions & 2 deletions deployment/DevAzureDeploymentTemplate_regionoptions.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"defaultValue": "CIPP",
"type": "string",
"metadata": {
"description": "Name use as base-template to named the resources deployed in Azure."
"description": "Name used as base-template to name the resources deployed in Azure."
}
},
"TenantID": {
Expand Down Expand Up @@ -48,7 +48,7 @@
"defaultValue": "GeneratedPassword",
"type": "string",
"metadata": {
"description": "Your Github Repository token (see https://docs.microsoft.com/en-us/azure/static-web-apps/publish-azure-resource-manager?tabs=azure-cli#create-a-github-personal-access-token"
"description": "Your Github Repository token (see https://docs.microsoft.com/en-us/azure/static-web-apps/publish-azure-resource-manager?tabs=azure-cli#create-a-github-personal-access-token)"
}
},
"GithubAPIRepository": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cipp",
"version": "6.3.0",
"version": "6.4.0",
"description": "The CyberDrain Improved Partner Portal is a portal to help manage administration for Microsoft Partners.",
"homepage": "https://cipp.app/",
"bugs": {
Expand Down
17 changes: 17 additions & 0 deletions public/img/RoB-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions public/img/RoB.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/img/datto.png
Binary file not shown.
2 changes: 1 addition & 1 deletion public/version_latest.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.3.0
6.4.0
10 changes: 7 additions & 3 deletions src/components/layout/AppFooter.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const AppFooter = () => {
const isDark =
currentTheme === 'impact' || (currentTheme === 'default' && preferredTheme === 'impact')

const datto = isDark ? '/img/datto.png' : '/img/datto.png'
const RoB = isDark ? '/img/RoB.svg' : '/img/RoB-light.svg'
const huntress = isDark ? '/img/huntress_teal.png' : '/img/huntress_teal.png'
const rewst = isDark ? '/img/rewst_dark.png' : '/img/rewst.png'
const ninjaone = isDark ? '/img/ninjaone_dark.png' : '/img/ninjaone.png'
Expand All @@ -24,8 +24,12 @@ const AppFooter = () => {
<CLink className="mx-2" href="https://www.huntress.com/" target="_blank">
<CImage src={huntress} alt="Huntress" />
</CLink>
<CLink className="me-2" href="https://datto.com/" target="_blank">
<CImage src={datto} alt="Datto" />
<CLink
className="me-2"
href="https://www.rightofboom.com/rob-2025/register?promo=EarlyBird2025#register"
target="_blank"
>
<CImage src={RoB} alt="RoB" />
</CLink>
<CLink className="me-2" href="https://rewst.io/" target="_blank">
<CImage src={rewst} alt="Rewst" />
Expand Down
10 changes: 6 additions & 4 deletions src/components/tables/CippDatatable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,18 @@ export default function CippDatatable({ path, params, ...rest }) {
refetch,
} = useListDatatableQuery({ path, params: { $filter: graphFilter, ...params } })

let anonimized = false // Assuming default value is false
let anonymized = false // Assuming default value is false
const regex = new RegExp('^[A-Z0-9]+$')
const principalNameOrUPN =
data[0]?.userPrincipalName ??
data[0]?.UPN ??
data[0]?.Owner ??
data.Results?.[0]?.upn ??
data.Results?.[0]?.userPrincipalName
data.Results?.[0]?.userPrincipalName ??
data.Results?.[0]?.Owner

if (principalNameOrUPN && regex.test(principalNameOrUPN)) {
anonimized = true
anonymized = true
}

var defaultFilterText = ''
Expand All @@ -32,7 +34,7 @@ export default function CippDatatable({ path, params, ...rest }) {
}
return (
<>
{anonimized && (
{anonymized && (
<CCallout color="info">
This table might contain anonymized data. Please check this
<a
Expand Down
Loading

0 comments on commit 3439e33

Please sign in to comment.