-
Notifications
You must be signed in to change notification settings - Fork 7
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 #4697 from beyondessential/release-2023-27
Release 2023-27
- Loading branch information
Showing
535 changed files
with
4,089 additions
and
3,514 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
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
76 changes: 76 additions & 0 deletions
76
packages/admin-panel/src/pages/resources/DhisInstancesPage.js
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,76 @@ | ||
/** | ||
* Tupaia | ||
* Copyright (c) 2017 - 2023 Beyond Essential Systems Pty Ltd | ||
*/ | ||
|
||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { ResourcePage } from './ResourcePage'; | ||
|
||
const FIELDS = [ | ||
{ | ||
Header: 'Code', | ||
source: 'code', | ||
}, | ||
{ | ||
Header: 'Readonly', | ||
source: 'readonly', | ||
type: 'boolean', | ||
editConfig: { | ||
type: 'boolean', | ||
}, | ||
}, | ||
{ | ||
Header: 'Config', | ||
source: 'config', | ||
type: 'jsonTooltip', | ||
editConfig: { | ||
type: 'jsonEditor', | ||
default: '{}', | ||
}, | ||
}, | ||
]; | ||
|
||
const COLUMNS = [ | ||
...FIELDS, | ||
{ | ||
Header: 'Edit', | ||
type: 'edit', | ||
source: 'id', | ||
actionConfig: { | ||
editEndpoint: 'dhisInstances', | ||
fields: FIELDS, | ||
}, | ||
}, | ||
{ | ||
Header: 'Delete', | ||
source: 'id', | ||
type: 'delete', | ||
actionConfig: { | ||
endpoint: `dhisInstances`, | ||
}, | ||
}, | ||
]; | ||
|
||
const CREATE_CONFIG = { | ||
title: 'New Dhis Instance', | ||
actionConfig: { | ||
editEndpoint: 'dhisInstances', | ||
fields: FIELDS, | ||
}, | ||
}; | ||
|
||
export const DhisInstancesPage = ({ getHeaderEl, ...props }) => ( | ||
<ResourcePage | ||
title="DHIS Instances" | ||
endpoint="dhisInstances" | ||
columns={COLUMNS} | ||
createConfig={CREATE_CONFIG} | ||
getHeaderEl={getHeaderEl} | ||
{...props} | ||
/> | ||
); | ||
|
||
DhisInstancesPage.propTypes = { | ||
getHeaderEl: PropTypes.func.isRequired, | ||
}; |
68 changes: 68 additions & 0 deletions
68
packages/admin-panel/src/pages/resources/SupersetInstancesPage.js
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,68 @@ | ||
/** | ||
* Tupaia MediTrak | ||
* Copyright (c) 2017 Beyond Essential Systems Pty Ltd | ||
*/ | ||
|
||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { ResourcePage } from './ResourcePage'; | ||
|
||
const FIELDS = [ | ||
{ | ||
Header: 'Code', | ||
source: 'code', | ||
}, | ||
{ | ||
Header: 'Config', | ||
source: 'config', | ||
type: 'jsonTooltip', | ||
editConfig: { | ||
type: 'jsonEditor', | ||
default: '{}', | ||
}, | ||
}, | ||
]; | ||
|
||
const COLUMNS = [ | ||
...FIELDS, | ||
{ | ||
Header: 'Edit', | ||
type: 'edit', | ||
source: 'id', | ||
actionConfig: { | ||
editEndpoint: 'supersetInstances', | ||
fields: FIELDS, | ||
}, | ||
}, | ||
{ | ||
Header: 'Delete', | ||
source: 'id', | ||
type: 'delete', | ||
actionConfig: { | ||
endpoint: `supersetInstances`, | ||
}, | ||
}, | ||
]; | ||
|
||
const CREATE_CONFIG = { | ||
title: 'New Superset Instance', | ||
actionConfig: { | ||
editEndpoint: 'supersetInstances', | ||
fields: FIELDS, | ||
}, | ||
}; | ||
|
||
export const SupersetInstancesPage = ({ getHeaderEl, ...props }) => ( | ||
<ResourcePage | ||
title="mSupply Superset Instances" | ||
endpoint="supersetInstances" | ||
columns={COLUMNS} | ||
createConfig={CREATE_CONFIG} | ||
getHeaderEl={getHeaderEl} | ||
{...props} | ||
/> | ||
); | ||
|
||
SupersetInstancesPage.propTypes = { | ||
getHeaderEl: PropTypes.func.isRequired, | ||
}; |
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
1 change: 0 additions & 1 deletion
1
packages/central-server/src/apiV2/import/importEntities/getEntityMetadata.js
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,4 +1,3 @@ | ||
|
||
/** | ||
* Tupaia | ||
* Copyright (c) 2017 - 2021 Beyond Essential Systems Pty Ltd | ||
|
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
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
Oops, something went wrong.