-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #770 from KelvinTegelaar/dev
Pushing dev to release
- Loading branch information
Showing
32 changed files
with
1,034 additions
and
500 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
Large diffs are not rendered by default.
Oops, something went wrong.
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 @@ | ||
2.1.2 | ||
2.2.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
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,51 @@ | ||
import React from 'react' | ||
import PropTypes from 'prop-types' | ||
import { CListGroup, CListGroupItem } from '@coreui/react' | ||
import { CippOffcanvas } from '.' | ||
|
||
export default function CippListOffcanvas(props) { | ||
return ( | ||
<CippOffcanvas | ||
placement={props.placement} | ||
title={props.title} | ||
visible={props.visible} | ||
id={props.id} | ||
hideFunction={props.hideFunction} | ||
> | ||
{props.groups.map((group, key) => ( | ||
<OffcanvasListSection title={group.title} items={group.items} key={key} /> | ||
))} | ||
</CippOffcanvas> | ||
) | ||
} | ||
|
||
CippListOffcanvas.propTypes = { | ||
groups: PropTypes.array, | ||
placement: PropTypes.string.isRequired, | ||
title: PropTypes.string.isRequired, | ||
visible: PropTypes.bool, | ||
id: PropTypes.string.isRequired, | ||
hideFunction: PropTypes.func.isRequired, | ||
} | ||
|
||
export function OffcanvasListSection({ title, items }) { | ||
return ( | ||
<> | ||
<h4 className="mt-4">{title}</h4> | ||
{items.length > 0 && ( | ||
<CListGroup className="my-3"> | ||
{items.map((item, key) => ( | ||
<CListGroupItem className="d-flex justify-content-between align-items-center" key={key}> | ||
{item.heading && <h6 className="w-50 mb-0">{item.heading}</h6>} | ||
{item.content} | ||
</CListGroupItem> | ||
))} | ||
</CListGroup> | ||
)} | ||
</> | ||
) | ||
} | ||
OffcanvasListSection.propTypes = { | ||
title: PropTypes.string, | ||
items: PropTypes.array, | ||
} |
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
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,20 @@ | ||
import { baseApi } from 'src/store/api/baseApi' | ||
|
||
export const adconnectApi = baseApi.injectEndpoints({ | ||
endpoints: (builder) => ({ | ||
listAdConnectSettings: builder.query({ | ||
query: ({ tenantDomain }) => ({ | ||
path: '/api/ListAzureADConnectStatus', | ||
params: { TenantFilter: tenantDomain, DataToReturn: 'AzureADConnectSettings' }, | ||
}), | ||
transformResponse: (response) => { | ||
if (!response) { | ||
return [] | ||
} | ||
return response | ||
}, | ||
}), | ||
}), | ||
}) | ||
|
||
export const { useListAdConnectSettingsQuery } = adconnectApi |
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
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.