Skip to content

Dev to release #1587

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

Merged
merged 24 commits into from
Jul 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
4456db2
User License Fix
JohnDuprey Jun 9, 2023
08ed857
nested property export
JohnDuprey Jun 10, 2023
d51139e
Replaced Endpoint portal link with Intune
rvdwegen Jun 14, 2023
df4b52a
Merge pull request #1570 from rvdwegen/patch-5
KelvinTegelaar Jun 14, 2023
ee7427f
Merge pull request #1571 from johnduprey/dev
KelvinTegelaar Jun 14, 2023
436e713
Footer spacing fix
rvdwegen Jun 16, 2023
4520c75
Added List Devices link to dashboard
rvdwegen Jun 18, 2023
6ae37fc
Merge pull request #1572 from rvdwegen/patch-6
KelvinTegelaar Jun 22, 2023
6923d0d
Merge pull request #1574 from rvdwegen/patch-8
KelvinTegelaar Jun 22, 2023
fe66988
Add Sharepoint Quota to dashboard
rvdwegen Jun 23, 2023
8d9c7b2
Updated Intune wipe actions
gigacodedev Jun 26, 2023
fe7fe8c
GDAP Relationship tweak
JohnDuprey Jun 28, 2023
93a29de
Merge pull request #1580 from rvdwegen/patch-10
KelvinTegelaar Jun 29, 2023
2bc8ac2
Merge remote-tracking branch 'upstream/dev' into dev
JohnDuprey Jun 29, 2023
9fe9a36
Update BestPracticeAnalyser.js
BNWEIN Jun 29, 2023
d45fa28
alert popups better
KelvinTegelaar Jun 29, 2023
45896cb
made toasts prettier
KelvinTegelaar Jun 29, 2023
c5aecb9
Corrected messages in Device actions, signed commit
gigacodedev Jun 29, 2023
0071517
Merge pull request #1584 from gigacodedev/dev
KelvinTegelaar Jun 29, 2023
62b513e
Merge pull request #1583 from BNWEIN/dev
KelvinTegelaar Jun 29, 2023
34c8bd5
Merge remote-tracking branch 'upstream/dev' into dev
JohnDuprey Jun 30, 2023
6033d91
added device validation
KelvinTegelaar Jun 30, 2023
3e83623
upped version, removed old references to files and cleared up lic con…
KelvinTegelaar Jul 3, 2023
9983bb6
Merge pull request #1585 from johnduprey/dev
KelvinTegelaar Jul 3, 2023
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
1 change: 1 addition & 0 deletions LICENSE.CustomLicenses
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Custom licenses are available upon agreement via Github Sponsorships. Custom licenses will not have to be published in this repository. All contributors automatically agree with this provision.
3 changes: 3 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import routes from 'src/routes'
import { Helmet } from 'react-helmet'
import adminRoutes from './adminRoutes'
import Skeleton from 'react-loading-skeleton'
import TimeAgo from 'javascript-time-ago'
import en from 'javascript-time-ago/locale/en.json'
TimeAgo.addDefaultLocale(en)

// Containers
const DefaultLayout = React.lazy(() => import('./layout/DefaultLayout'))
Expand Down
2 changes: 1 addition & 1 deletion src/components/layout/AppFooter.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const AppFooter = () => {
</CLink>{' '}
<CLink href="https://datto.com/">
<CImage src={dattoLogo} alt="Datto" />
</CLink>
</CLink>{' '}
<CLink href="https://rewst.io/">
<CImage src={rewstLogo} alt="Datto" />
</CLink>
Expand Down
1 change: 1 addition & 0 deletions src/components/layout/AppHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ const AppHeader = () => {
</CHeader>

{dashboard &&
dashboard.length >= 1 &&
dashboard.map((item, index) => (
<div
className="mb-3"
Expand Down
3 changes: 0 additions & 3 deletions src/components/tables/CellDate.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import React from 'react'
import moment from 'moment'
import PropTypes from 'prop-types'
import { CTooltip } from '@coreui/react'
import TimeAgo from 'javascript-time-ago'
import en from 'javascript-time-ago/locale/en.json'
TimeAgo.addDefaultLocale(en)
import ReactTimeAgo from 'react-time-ago'

/**
Expand Down
23 changes: 16 additions & 7 deletions src/components/tables/CippTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,10 @@ export default function CippTable({

if (!disablePDFExport || !disableCSVExport) {
const keys = []
const exportFormatter = {}
columns.map((col) => {
if (col.exportSelector) keys.push(col.exportSelector)
if (col.exportFormatter) exportFormatter[col.exportSelector] = col.exportFormatter
return null
})

Expand All @@ -340,15 +342,22 @@ export default function CippTable({
keys.reduce((acc, curr) => {
const key = curr.split('/')
if (key.length > 1) {
const parent = key[0]
const subkey = key[1]
if (obj[parent] !== null && obj[parent][subkey] !== null) {
acc[curr] = obj[parent][subkey]
} else {
acc[curr] = 'n/a'
var property = obj
for (var x = 0; x < key.length; x++) {
if (property[key[x]] !== null) {
property = property[key[x]]
} else {
property = 'n/a'
break
}
}
acc[curr] = property
} else {
acc[curr] = obj[curr]
if (typeof exportFormatter[curr] === 'function') {
acc[curr] = exportFormatter[curr]({ cell: obj[curr] })
} else {
acc[curr] = obj[curr]
}
}
return acc
}, {}),
Expand Down
4 changes: 0 additions & 4 deletions src/components/utilities/CippActionsOffcanvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ import { CippOffcanvasTable } from 'src/components/tables'
import { useLazyGenericGetRequestQuery, useLazyGenericPostRequestQuery } from 'src/store/api/app'
import { Link, useNavigate } from 'react-router-dom'
import { stringCamelCase } from 'src/components/utilities/CippCamelCase'
import TimeAgo from 'javascript-time-ago'

import en from 'javascript-time-ago/locale/en.json'
TimeAgo.addDefaultLocale(en)
import ReactTimeAgo from 'react-time-ago'

export default function CippActionsOffcanvas(props) {
Expand Down
16 changes: 3 additions & 13 deletions src/components/utilities/Toasts.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,20 +45,10 @@ const Toast = ({ message, title, onClose, error }) => {
<CToastBody>
<div className="d-flex justify-content-between align-items-center text-danger">
<strong>{message}</strong>
<CButton size="sm" variant="outline" color="primary" onClick={() => setVisible(!visible)}>
Details
<FontAwesomeIcon
className="ms-1"
size="1x"
icon={visible ? faCompressAlt : faExpandAlt}
/>
</CButton>
</div>
<CCollapse visible={visible}>
<pre>
{error?.status} - {error?.message}
</pre>
</CCollapse>
<pre>
{error?.status} - {error?.message}
</pre>
</CToastBody>
</CToast>
)
Expand Down
Loading