Skip to content

Commit

Permalink
Merge pull request KelvinTegelaar#33 from KelvinTegelaar/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnDuprey committed Aug 3, 2023
2 parents 1f0d42e + 5db8164 commit fceefbb
Show file tree
Hide file tree
Showing 11 changed files with 64 additions and 90 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ PORT=3000
CHOKIDAR_USEPOLLING=true
BROWSER=none
GENERATE_SOURCEMAP=false
WDS_SOCKET_PORT=0
WDS_SOCKET_PORT=3000
23 changes: 0 additions & 23 deletions .vscode/cert.crt

This file was deleted.

28 changes: 0 additions & 28 deletions .vscode/key.key

This file was deleted.

23 changes: 7 additions & 16 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,38 +10,29 @@
},
{
"command": "npm run start-swa",
"name": "Run emulator",
"name": "Run Emulator",
"request": "launch",
"type": "node-terminal"
},
{
"command": "npm start",
"name": "Run frontend",
"name": "Run Frontend",
"request": "launch",
"type": "node-terminal",
"preLaunchTask": "RunAllTasks",
"preLaunchTask": "Run All Tasks",
"resolveSourceMapLocations": ["${workspaceFolder}/**", "!**/node_modules/**"]
},
{
"name": "Launch Edge",
"type": "chrome",
"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}"
"name": "Launch Chrome Debugger",
"url": "http://localhost:4280"
}
],
"compounds": [
{
"name": "Launch it all 🚀",
"configurations": ["Run frontend", "Run emulator"]
"configurations": ["Run Frontend", "Run Emulator"]
}
]
}
10 changes: 5 additions & 5 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
"version": "2.0.0",
"tasks": [
{
"label": "RunAllTasks",
"dependsOn": ["RunAPI", "RunAzurite"]
"label": "Run All Tasks",
"dependsOn": ["Run API", "Run Azurite"]
},
{
"label": "RunAzurite",
"label": "Run Azurite",
"type": "shell",
"command": "azurite",
"command": "azurite --location ../",
"isBackground": true,
"problemMatcher": {
"pattern": [
Expand All @@ -27,7 +27,7 @@
}
},
{
"label": "RunAPI",
"label": "Run API",
"type": "shell",
"command": "func start --verbose",
"isBackground": true,
Expand Down
15 changes: 9 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
"changelog": "auto-changelog --starting-version 3.0.0 --commit-limit false --hide-credit",
"eject": "react-scripts eject",
"lint": "eslint \"src/**/*.js\"",
"start": "set HTTPS=true&&set SSL_CRT_FILE=./.vscode/cert.crt&&set SSL_KEY_FILE=./.vscode/key.key&&react-scripts start",
"start": "react-scripts start",
"test": "react-scripts test",
"test:cov": "npm test -- --coverage --watchAll=false",
"test:debug": "react-scripts --inspect-brk test --runInBand",
"start-swa": "swa start --ssl --ssl-cert ./.vscode/cert.crt --ssl-key ./.vscode/key.key --swa-config-location .vscode https://localhost:3000 --api-location http://localhost:7071",
"start-swa": "swa start --swa-config-location .vscode http://127.0.0.1:3000 --api-location http://localhost:7071",
"prepare": "husky install"
},
"config": {
Expand Down Expand Up @@ -92,7 +92,7 @@
"prettier": "2.4.1",
"react-scripts": "^5.0.0",
"redux-immutable-state-invariant": "^2.1.0",
"sass": "^1.44",
"sass": "^1.64.2",
"stylelint": "^14.3.0",
"stylelint-config-sass-guidelines": "^9.0.1",
"stylelint-order": "^5.0.0"
Expand Down
30 changes: 30 additions & 0 deletions src/views/email-exchange/administration/EditMailboxPermissions.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ const MailboxPermissions = () => {
RemoveFullAccess: values.RemoveFullAccess ? values.RemoveFullAccess : null,
AddSendAs: values.AddSendAs ? values.AddSendAs : null,
RemoveSendAs: values.RemoveSendAs ? values.RemoveSendAs : null,
AddSendOnBehalf: values.AddSendOnBehalf ? values.AddSendOnBehalf : null,
RemoveSendOnBehalf: values.RemoveSendOnBehalf ? values.RemoveSendOnBehalf : null,
}
//window.alert(JSON.stringify(shippedValues))
genericPostRequest({ path: '/api/ExecEditMailboxPermissions', values: shippedValues })
Expand Down Expand Up @@ -250,6 +252,34 @@ const MailboxPermissions = () => {
/>
{usersError && <span>Failed to load list of users</span>}
</CCol>
<CCol md={12}>
<RFFSelectSearch
multi={true}
label="Add Send On Behalf permissions"
disabled={formDisabled}
values={users?.map((user) => ({
value: user.mail,
name: `${user.displayName} - ${user.mail} `,
}))}
placeholder={!usersIsFetching ? 'Select user' : 'Loading...'}
name="AddSendOnBehalf"
/>
{usersError && <span>Failed to load list of users</span>}
</CCol>
<CCol md={12}>
<RFFSelectSearch
multi={true}
label="Remove Send On Behalf permissions"
disabled={formDisabled}
values={users?.map((user) => ({
value: user.mail,
name: `${user.displayName} - ${user.mail} `,
}))}
placeholder={!usersIsFetching ? 'Select user' : 'Loading...'}
name="RemoveSendOnBehalf"
/>
{usersError && <span>Failed to load list of users</span>}
</CCol>
</CRow>
<CRow className="mb-3">
<CCol md={6}>
Expand Down
3 changes: 2 additions & 1 deletion src/views/endpoint/applications/ApplicationsAddChocoApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,8 @@ const ApplyStandard = () => {
Disable Restart: {props.values.DisableRestart ? 'Yes' : 'No'}
</CListGroupItem>
<CListGroupItem className="d-flex justify-content-between align-items-center">
Assign to: {props.values.AssignTo}
Assign to:
{props.values.AssignTo == 'on' ? ' None' : ` ${props.values.AssignTo}`}
</CListGroupItem>
</CListGroup>
</CCol>
Expand Down
10 changes: 5 additions & 5 deletions src/views/endpoint/intune/MEMListPolicyTemplates.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,18 @@ const AutopilotListTemplates = () => {
const columns = [
{
name: 'Display Name',
selector: (row) => row['Displayname'],
selector: (row) => row['displayName'],
sortable: true,
cell: (row) => CellTip(row['Displayname']),
cell: (row) => CellTip(row['displayName']),
exportSelector: 'Displayname',
minWidth: '400px',
maxWidth: '400px',
},
{
name: 'Description',
selector: (row) => row['Description'],
selector: (row) => row['description'],
sortable: true,
cell: (row) => CellTip(row['Description']),
cell: (row) => CellTip(row['description']),
exportSelector: 'Description',
minWidth: '400px',
maxWidth: '400px',
Expand Down Expand Up @@ -124,7 +124,7 @@ const AutopilotListTemplates = () => {
<CippDatatable
keyField="id"
reportName={`${tenant?.defaultDomainName}-MEMPolicyTemplates-List`}
path="/api/ListIntuneTemplates"
path="/api/ListIntuneTemplates?View=true"
columns={columns}
params={{ TenantFilter: tenant?.defaultDomainName }}
/>
Expand Down
4 changes: 2 additions & 2 deletions src/views/tenant/administration/ListLicences.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const columns = [
cell: cellBooleanFormatter(),
},
{
name: 'Time until renewal (days)',
name: 'Days until renewal',
selector: (row) => row['TimeUntilRenew'],
sortable: true,
exportSelector: 'TimeUntilRenew',
Expand All @@ -65,7 +65,7 @@ const columns = [
cell: cellDateFormatter(),
},
{
name: 'Time until renewal (days)',
name: 'Renewal Date',
selector: (row) => row['dateExpires'],
sortable: true,
exportSelector: 'dateExpires',
Expand Down

0 comments on commit fceefbb

Please sign in to comment.