docs(readme): Start adding documentation for React version
This commit is contained in:
1 parent
ec51cb7a6c
commit
6658623f1f
365 files changed
+52155
-15
No files matched your search
@@ -92,6 +92,6 @@
|
||||
"@babel/runtime": "^7.2.0",
|
||||
"classnames": "^2.2.6",
|
||||
"lodash.throttle": "^4.1.1",
|
||||
"react-cornerstone-viewport": "^0.1.20"
|
||||
"react-cornerstone-viewport": "^0.1.21"
|
||||
}
|
||||
}
|
||||
@@ -170,6 +170,22 @@ props.whiteLabelling = {
|
||||
logoComponent: RadicalImagingLogo()
|
||||
};*/
|
||||
|
||||
// Note: Run your build like this:
|
||||
// REACT_APP_CONFIG=$(cat ../config-react/ccc.json) yarn start
|
||||
//
|
||||
// If you change the JSON config, you need to re-run the command!
|
||||
const configString = process.env && process.env && process.env.REACT_APP_CONFIG;
|
||||
if (configString) {
|
||||
const configJSON = JSON.parse(configString);
|
||||
if (configJSON.servers) {
|
||||
props.servers = configJSON.servers;
|
||||
}
|
||||
|
||||
if (configJSON.oidc) {
|
||||
props.oidc = configJSON.oidc;
|
||||
}
|
||||
}
|
||||
|
||||
var app = React.createElement(App, props, null);
|
||||
|
||||
ReactDOM.render(app, document.getElementById('root'));
|
||||
@@ -1 +1 @@
|
||||
export default '932fcea446e27f11483b8dd4a411ada481fcc6ec';
|
||||
export default 'ec51cb7a6cac63c42e38e6f141951cdd6962dda3';
|
||||
Reference in new issue
Block a user