Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev to release #835

Merged
merged 60 commits into from
Mar 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
c278ca3
Add slightly more spacing to sidebar menu. Reintroduce rounded borders.
homotechsual Feb 18, 2022
5f9d680
added edge debugging
KelvinTegelaar Feb 18, 2022
9ac8aa6
fixes external link bug #773
KelvinTegelaar Feb 23, 2022
b3b35d3
ENHANCEMENT: URL Fixed, file count sort, added root template
gavsto Feb 25, 2022
4282648
Merge pull request #788 from gavsto/dev
gavsto Feb 25, 2022
6c6423f
ENHANCEMENT: Added display name instead of SKU to BPA
gavsto Feb 25, 2022
23c1865
Merge pull request #790 from gavsto/dev
gavsto Feb 25, 2022
ceaaeee
FEATURE: Token Verification
JohnDuprey Feb 26, 2022
ae21556
Update launch.json
JohnDuprey Feb 26, 2022
a1310d4
Update CIPPSettings.js
JohnDuprey Feb 27, 2022
a4fbe3e
Update CIPPSettings.js
JohnDuprey Feb 27, 2022
bd15107
Merge pull request #792 from johnduprey/dev
KelvinTegelaar Feb 27, 2022
1253ef6
Make app registration link to azure
JohnDuprey Feb 27, 2022
c9aa421
Merge branch 'dev' of https://github.com/homotechsual/CIPP into dev
homotechsual Feb 28, 2022
dea7693
Fix border radius issues and fix BEC (#799).
homotechsual Feb 28, 2022
30324bc
Remove unused components.
homotechsual Feb 28, 2022
9ccb7c9
Merge pull request #800 from homotechsual/dev
KelvinTegelaar Mar 1, 2022
b8c8e6a
ENHANCEMENT: Wrapped licenses column in user to prevent cut off
gavsto Mar 2, 2022
f877b9a
ENHANCEMENT: Tweaked group columns for better display
gavsto Mar 2, 2022
b2a4402
Merge remote-tracking branch 'upstream/dev' into dev
JohnDuprey Mar 2, 2022
a20747b
ENHANCEMENT: Expanded the size of the UPN in MFA Report
gavsto Mar 2, 2022
49610af
Merge pull request #803 from gavsto/dev
gavsto Mar 2, 2022
4e217a1
Merge remote-tracking branch 'upstream/dev' into dev
JohnDuprey Mar 2, 2022
5f363bd
Add UPN to user selection. Update node deps.
homotechsual Mar 3, 2022
dbd1cf1
Fix user select list.
homotechsual Mar 3, 2022
270abb0
Merge pull request #807 from homotechsual/dev
KelvinTegelaar Mar 3, 2022
2cd493f
Allow licenses column to be sorted.
homotechsual Mar 3, 2022
871fae8
Fix CSS linting issue.
homotechsual Mar 3, 2022
66e433b
Merge pull request #808 from homotechsual/dev
gavsto Mar 4, 2022
7e827b0
fixes#785
KelvinTegelaar Mar 7, 2022
dfb9b99
first beta graph explorer
KelvinTegelaar Mar 7, 2022
4ccf985
Merge remote-tracking branch 'upstream/dev' into dev
JohnDuprey Mar 7, 2022
e1cda81
Minor correction to bec load
KelvinTegelaar Mar 9, 2022
6167c02
added graph report options
KelvinTegelaar Mar 9, 2022
2cffb73
added catch if the returned data is blank.
KelvinTegelaar Mar 9, 2022
fca577c
renamed and different ID
KelvinTegelaar Mar 9, 2022
4ba934f
Merge remote-tracking branch 'upstream/dev' into dev
JohnDuprey Mar 9, 2022
e893dfb
Change ExecDnsHelper to ListDomainHealth
JohnDuprey Mar 9, 2022
b763c79
Fix api references in individualdomain.js
JohnDuprey Mar 10, 2022
300c6ed
Merge pull request #816 from johnduprey/dev
KelvinTegelaar Mar 10, 2022
4e92e2e
removed old flattendata.
KelvinTegelaar Mar 10, 2022
1689b0d
removed console.log
KelvinTegelaar Mar 11, 2022
b192623
changed linters to only run on PRs and not each push.
KelvinTegelaar Mar 13, 2022
5719763
improvements to AlertWizard
KelvinTegelaar Mar 13, 2022
49471f0
Improvements to alerts
KelvinTegelaar Mar 13, 2022
cde4b4c
fixes interface bug mailboxes
KelvinTegelaar Mar 14, 2022
9cf425d
added date of apply
KelvinTegelaar Mar 14, 2022
e444657
changed list of applied standards to a column per standard.
KelvinTegelaar Mar 14, 2022
99c75af
Feedback on tenants and standards selected.
KelvinTegelaar Mar 14, 2022
dd1285f
cleaned up standards screen
KelvinTegelaar Mar 15, 2022
092b4ca
added standard to enable TAP
KelvinTegelaar Mar 15, 2022
f3c207f
added create TAP
KelvinTegelaar Mar 15, 2022
4022211
fixed sorting of table
KelvinTegelaar Mar 15, 2022
a12288b
Add Job Title to User Details
AdamWillford Mar 16, 2022
fc31fe4
Added Calender editing. Fixes #573
KelvinTegelaar Mar 16, 2022
4d85836
Fix some unused vars
AdamWillford Mar 16, 2022
c4f33cc
Merge pull request #830 from AdamWillford/dev
KelvinTegelaar Mar 16, 2022
208739d
changed homepage
KelvinTegelaar Mar 18, 2022
f547819
upped version
KelvinTegelaar Mar 18, 2022
9edbba3
removed isSucces
KelvinTegelaar Mar 18, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/workflows/CodeQL_Analyser.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
---
name: 'CodeQL'
on: # yamllint disable-line rule:truthy
push:
branches: [master, main, dev, react]
on: # yamllint disable-line rule:truthy
pull_request:
branches: [master, main, dev, react]
schedule:
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/Node_Project_Check.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
name: NodeJS Project Check
on: # yamllint disable-line rule:truthy
push:
branches:
- main
- dev
on: # yamllint disable-line rule:truthy
pull_request:
branches:
- main
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/Run_Linters.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
---
name: Lint Code Base
on: # yamllint disable-line rule:truthy
push:
branches:
- master
- main
- dev
on: # yamllint disable-line rule:truthy
pull_request_target:
branches:
- master
Expand Down
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,21 @@
"type": "node-terminal",
"preLaunchTask": "RunAllTasks",
"resolveSourceMapLocations": ["${workspaceFolder}/**", "!**/node_modules/**"]
},
{
"name": "Launch Edge",
"request": "launch",
"type": "pwa-msedge",
"url": "https://localhost:4280",
"webRoot": "${workspaceFolder}"
},
{
"name": "Attach to Edge",
"port": 9222,
"request": "attach",
"type": "pwa-msedge",
"urlFilter": "https://localhost:4280/*",
"webRoot": "${workspaceFolder}"
}
],
"compounds": [
Expand Down
4,678 changes: 2,456 additions & 2,222 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/version_latest.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.2.0
2.3.0
40 changes: 27 additions & 13 deletions src/_nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,26 +105,40 @@ const _nav = [
},
{
component: CNavItem,
name: 'List Licences',
name: 'Alerts Wizard',
to: '/tenant/administration/alertswizard',
},

{
component: CNavItem,
name: 'List Scheduled Alerts',
to: '/tenant/administration/alertsqueue',
},
],
},
{
component: CNavGroup,
name: 'Reports',
section: 'Reports',
to: '/tenant/reports',
icon: <FontAwesomeIcon icon={faChartBar} className="nav-icon" />,
items: [
{
component: CNavItem,
name: 'Graph Explorer',
to: '/tenant/administration/graph-explorer',
},
{
component: CNavItem,
name: 'Licence Report',
to: '/tenant/administration/list-licenses',
},

{
component: CNavItem,
name: 'Conditional Access Policies',
to: '/tenant/administration/conditional-access-policies',
},
// Temp removed due to not ready for release
// {
// component: CNavItem,
// name: 'Alerts Wizard',
// to: '/tenant/administration/alertswizard',
// },
// Temp removed due to not ready for release
// {
// component: CNavItem,
// name: 'List Scheduled Alerts',
// to: '/tenant/administration/alertsqueue',
// },
],
},
{
Expand Down
3 changes: 3 additions & 0 deletions src/components/layout/CippContentCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export default function CippContentCard({
title,
children,
icon,
button,
bodyClass = null,
className = null,
}) {
Expand All @@ -15,6 +16,7 @@ export default function CippContentCard({
<CCardHeader className="d-flex justify-content-between align-items-center">
<CCardTitle>{title}</CCardTitle>
{icon ? <FontAwesomeIcon icon={icon} /> : null}
{button ? button : null}
</CCardHeader>
<CCardBody className={bodyClass}>{children}</CCardBody>
</CCard>
Expand All @@ -25,6 +27,7 @@ CippContentCard.propTypes = {
title: PropTypes.string.isRequired,
children: PropTypes.arrayOf(PropTypes.element).isRequired,
icon: PropTypes.object,
button: PropTypes.element,
bodyClass: PropTypes.string,
className: PropTypes.string,
}
45 changes: 42 additions & 3 deletions src/components/layout/CippMasonry.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ import { CContainer, CCol } from '@coreui/react'

export function CippMasonryItem({ size, children, className = null }) {
const columnSizes = {
card: {
xs: 12,
lg: 2,
xl: 3,
},
single: {
xs: 12,
lg: 6,
Expand All @@ -20,6 +25,16 @@ export function CippMasonryItem({ size, children, className = null }) {
lg: 12,
xl: 12,
},
full: {
xs: 12,
lg: 12,
xl: 12,
},
half: {
xs: 12,
lg: 6,
xl: 6,
},
}

return (
Expand All @@ -30,12 +45,35 @@ export function CippMasonryItem({ size, children, className = null }) {
}

CippMasonryItem.propTypes = {
size: PropTypes.oneOf(['single', 'double', 'triple']),
size: PropTypes.oneOf(['single', 'double', 'triple', 'full', 'half']),
children: PropTypes.object,
className: PropTypes.string,
}

export function CippMasonry({ children, className = null }) {
export function CippMasonry({ columns = 3, children, className = null }) {
const numberOfColumns = {
1: {
xs: 12,
lg: 12,
xl: 12,
},
2: {
xs: 12,
lg: 6,
xl: 6,
},
3: {
xs: 12,
lg: 4,
xl: 4,
},
4: {
xs: 12,
lg: 3,
xl: 3,
},
}

const CippMasonryOptions = {
transitionDuration: 0,
percentPosition: true,
Expand All @@ -50,14 +88,15 @@ export function CippMasonry({ children, className = null }) {
options={CippMasonryOptions}
enableResizableChildren={true}
>
<CCol className="cipp-masonry-sizer" xl={4} lg={6} xs={12}></CCol>
<CCol className="cipp-masonry-sizer" {...numberOfColumns[columns]}></CCol>
{children}
</Masonry>
</CContainer>
)
}

CippMasonry.propTypes = {
columns: PropTypes.oneOf([1, 2, 3]),
children: PropTypes.array,
className: PropTypes.string,
}
17 changes: 5 additions & 12 deletions src/components/tables/CippTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,15 @@ const customSort = (rows, selector, direction) => {
// use the selector to resolve your field names by passing the sort comparitors
let aField
let bField
if (typeof selector(a) === 'string') {
aField = selector(a).toLowerCase()
} else {
aField = selector(a)
}
if (typeof selector(b) === 'string') {
bField = selector(b).toLowerCase()
} else {
bField = selector(b)
}

aField = selector(a)
bField = selector(b)

let comparison = 0

if (aField > bField) {
if (aField?.toString().localeCompare(bField, 'en', { numeric: true }) > 0) {
comparison = 1
} else if (aField < bField) {
} else if (aField?.toString().localeCompare(bField, 'en', { numeric: true }) < 0) {
comparison = -1
}

Expand Down
45 changes: 29 additions & 16 deletions src/components/utilities/CippActionsOffcanvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ import { useNavigate } from 'react-router-dom'
export default function CippActionsOffcanvas(props) {
const [genericGetRequest, getResults] = useLazyGenericGetRequestQuery()
const handleLink = useNavigate()
const handleExternalLink = (link) => {
window.open(link, '_blank')
}
const handleModal = (modalMessage, modalUrl) => {
ModalService.confirm({
body: (
Expand All @@ -21,28 +24,37 @@ export default function CippActionsOffcanvas(props) {
onConfirm: () => genericGetRequest({ path: modalUrl }),
})
}
const handleOnClick = (link, modal, modalMessage, modalUrl) => {
const handleOnClick = (link, modal, modalMessage, modalUrl, external) => {
if (link) {
handleLink(link)
if (external) {
handleExternalLink(link)
} else {
handleLink(link)
}
} else if (modal) {
handleModal(modalMessage, modalUrl)
}
}
const extendedInfoContent = <CippOffcanvasTable rows={props.extendedInfo} guid={props.id} />
const actionsContent = props.actions.map((action, index) => (
<CListGroup layout="horizontal-md" key={index}>
<CListGroupItem
className="cipp-action"
component="button"
color={action.color}
onClick={() =>
handleOnClick(action.link, action.modal, action.modalMessage, action.modalUrl)
}
>
{action.icon}
{action.label}
</CListGroupItem>
</CListGroup>
<CListGroupItem
className="cipp-action"
component="button"
color={action.color}
onClick={() =>
handleOnClick(
action.link,
action.modal,
action.modalMessage,
action.modalUrl,
action.external,
)
}
key={index}
>
{action.icon}
{action.label}
</CListGroupItem>
))
return (
<CippOffcanvas
Expand All @@ -64,7 +76,7 @@ export default function CippActionsOffcanvas(props) {
<COffcanvasTitle>Extended Information</COffcanvasTitle>
{extendedInfoContent}
{<COffcanvasTitle>Actions</COffcanvasTitle>}
{actionsContent}
<CListGroup layout="verical-md">{actionsContent}</CListGroup>
</CippOffcanvas>
)
}
Expand All @@ -86,6 +98,7 @@ const CippActionsOffcanvasPropTypes = {
modal: PropTypes.bool,
modalUrl: PropTypes.string,
modalMessage: PropTypes.string,
external: PropTypes.bool,
}),
).isRequired,
rowIndex: PropTypes.number,
Expand Down
14 changes: 14 additions & 0 deletions src/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const MFAReport = React.lazy(() => import('src/views/identity/reports/MFAReport'
const Tenants = React.lazy(() => import('src/views/tenant/administration/Tenants'))
const AlertWizard = React.lazy(() => import('src/views/tenant/administration/AlertWizard'))
const AlertsQueue = React.lazy(() => import('src/views/tenant/administration/ListAlertsQueue'))
const GraphExplorer = React.lazy(() => import('src/views/tenant/administration/GraphExplorer'))

const Domains = React.lazy(() => import('src/views/tenant/administration/Domains'))
const EditTenant = React.lazy(() => import('src/views/tenant/administration/EditTenant'))
Expand Down Expand Up @@ -103,6 +104,9 @@ const EditContact = React.lazy(() => import('src/views/email-exchange/administra
const EditMailboxPermissions = React.lazy(() =>
import('src/views/email-exchange/administration/EditMailboxPermissions'),
)
const EditCalendarPermissions = React.lazy(() =>
import('src/views/email-exchange/administration/EditCalendarPermissions'),
)
const ViewMobileDevices = React.lazy(() =>
import('src/views/email-exchange/administration/ViewMobileDevices'),
)
Expand Down Expand Up @@ -166,6 +170,11 @@ const routes = [
{ path: '/tenant/administration/domains', name: 'Domains', component: Domains },
{ path: '/tenant/administration/alertswizard', name: 'Alerts Wizard', component: AlertWizard },
{ path: '/tenant/administration/alertsqueue', name: 'Alerts Queue', component: AlertsQueue },
{
path: '/tenant/administration/graph-explorer',
name: 'Graph Explorer',
component: GraphExplorer,
},

{
path: '/tenant/administration/conditional-access-policies',
Expand Down Expand Up @@ -285,6 +294,11 @@ const routes = [
path: '/email/administration/edit-mailbox-permissions',
component: EditMailboxPermissions,
},
{
name: 'Edit Calendar Permissions',
path: '/email/administration/edit-calendar-permissions',
component: EditCalendarPermissions,
},
{
name: 'View Mobile Devices',
path: '/email/administration/view-mobile-devices',
Expand Down
10 changes: 9 additions & 1 deletion src/scss/_custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@

.card-header {
&:first-child {
border-radius: var(--cipp-border-radius);
background-clip: border-box;
border-radius: 3px 3px 0 0;
overflow: hidden;
}
}

Expand Down Expand Up @@ -387,3 +389,9 @@
margin-left: 1rem;
}
}

/* Sidebar */

.sidebar-nav .nav-link {
margin: 0.25rem 0;
}
Loading