forked from KelvinTegelaar/CIPP
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'KelvinTegelaar:main' into main
- Loading branch information
Showing
29 changed files
with
15,747 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.5.0 | ||
3.6.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import PropTypes from 'prop-types' | ||
import M365Licenses from 'src/data/M365Licenses' | ||
|
||
export function CellLicense({ cell }) { | ||
let licenses = [] | ||
cell?.map((licenseAssignment, idx) => { | ||
for (var x = 0; x < M365Licenses.length; x++) { | ||
if (licenseAssignment.skuId == M365Licenses[x].GUID) { | ||
licenses.push(M365Licenses[x].Product_Display_Name) | ||
break | ||
} | ||
} | ||
}) | ||
return licenses.join(', ') | ||
} | ||
|
||
CellLicense.propTypes = { | ||
cell: PropTypes.object, | ||
} | ||
|
||
export const cellLicenseFormatter = () => (row, index, column, id) => { | ||
const cell = column.selector(row) | ||
return CellLicense({ cell }) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import PropTypes from 'prop-types' | ||
import { CImage } from '@coreui/react' | ||
|
||
export function CellLogo({ cell }) { | ||
if (cell?.logoUrl) { | ||
return <CImage src={cell.logoUrl} height={16} width={16} /> | ||
} else { | ||
return '' | ||
} | ||
} | ||
|
||
CellLogo.propTypes = { | ||
propName: PropTypes.string, | ||
cell: PropTypes.object, | ||
} | ||
|
||
export const cellLogoFormatter = () => (row, index, column, id) => { | ||
const cell = column.selector(row) | ||
return CellLogo({ cell }) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.