-
Notifications
You must be signed in to change notification settings - Fork 4
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 #93 from Smithsonian/develop
v0.5.0
- Loading branch information
Showing
280 changed files
with
26,124 additions
and
5,774 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,30 @@ | ||
# NODE | ||
NODE_ENV= | ||
|
||
# DB | ||
MYSQL_ROOT_PASSWORD= | ||
DATABASE_URL= | ||
PACKRAT_CLIENT_PORT= | ||
PACKRAT_SERVER_PORT= | ||
PACKRAT_DB_PORT= | ||
|
||
# CLIENT | ||
PACKRAT_CLIENT_PORT= | ||
REACT_APP_SERVER_ENDPOINT= | ||
|
||
# SERVER | ||
PACKRAT_SERVER_PORT= | ||
DATABASE_URL= | ||
CLIENT_ENDPOINT= | ||
SESSION_SECRET= | ||
EDAN_AUTH_KEY= | ||
EDAN_SERVER= | ||
EDAN_APPID= | ||
OCFL_STORAGE_ROOT= | ||
OCFL_STAGING_ROOT= | ||
|
||
# SOLR | ||
PACKRAT_SOLR_PORT= | ||
PACKRAT_SOLR_HOST= | ||
|
||
|
||
|
||
|
||
|
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 |
---|---|---|
@@ -1,3 +1,10 @@ | ||
/** | ||
* Config Overrides | ||
* | ||
* This config is used for overriding default webpack config of CRA without | ||
* ejecting. | ||
*/ | ||
const { override, addExternalBabelPlugin } = require('customize-cra'); | ||
const { addReactRefresh } = require('customize-cra-react-refresh'); | ||
|
||
module.exports = override(addExternalBabelPlugin('react-activation/babel')); | ||
module.exports = override(addExternalBabelPlugin('react-activation/babel'), addReactRefresh()); |
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
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,44 @@ | ||
/** | ||
* CheckboxField | ||
* | ||
* This component renders checkbox field used in ingestion and repository UI. | ||
*/ | ||
import { Checkbox } from '@material-ui/core'; | ||
import React from 'react'; | ||
import { ViewableProps } from '../../types/repository'; | ||
import { getUpdatedCheckboxProps } from '../../utils/repository'; | ||
import { withDefaultValueBoolean } from '../../utils/shared'; | ||
import FieldType from '../shared/FieldType'; | ||
|
||
interface CheckboxFieldProps extends ViewableProps { | ||
label: string; | ||
name: string; | ||
value: boolean | null; | ||
onChange: ((event: React.ChangeEvent<HTMLInputElement>, checked: boolean) => void) | undefined; | ||
required?: boolean; | ||
} | ||
|
||
function CheckboxField(props: CheckboxFieldProps): React.ReactElement { | ||
const { label, name, value, onChange, required = false, viewMode = false, disabled = false, updated = false } = props; | ||
const rowFieldProps = { alignItems: 'center', justifyContent: 'space-between', style: { borderRadius: 0 } }; | ||
|
||
return ( | ||
<FieldType | ||
required={required} | ||
label={label} | ||
direction='row' | ||
containerProps={rowFieldProps} | ||
width={viewMode ? 'auto' : undefined} | ||
> | ||
<Checkbox | ||
name={name} | ||
disabled={disabled} | ||
checked={withDefaultValueBoolean(value, false)} | ||
onChange={onChange} | ||
{...getUpdatedCheckboxProps(updated)} | ||
/> | ||
</FieldType> | ||
); | ||
} | ||
|
||
export default CheckboxField; |
Oops, something went wrong.