From 57d2ae23ae8f3fcbddc6f2be37d9456fd9e7e810 Mon Sep 17 00:00:00 2001 From: Erik Ziegler Date: Sun, 30 Jun 2019 23:33:04 +0200 Subject: [PATCH] ci(package.json): Change settings for viewer.ohif.org to use Locize CDN --- package.json | 2 +- public/config/demo.js | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 public/config/demo.js diff --git a/package.json b/package.json index e77a2f153..b6afc2d75 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "build:package:ci": "yarn run preBuild && node --max-old-space-size=4096 node_modules/rollup/bin/rollup -c", "build:web": "yarn run preBuild && react-scripts --max_old_space_size=4096 build", "build:web:ci": "yarn run preBuild && cross-env PUBLIC_URL=/demo REACT_APP_CONFIG=config/netlify.js react-scripts --max_old_space_size=4096 build && cpx 'build/**/*' docs/latest/_book/demo --verbose", - "build:demo:ci": "yarn run preBuild && cross-env PUBLIC_URL=/ REACT_APP_CONFIG=config/public_dicomweb.js react-scripts --max_old_space_size=4096 build", + "build:demo:ci": "yarn run preBuild && cross-env PUBLIC_URL=/ REACT_APP_CONFIG=config/demo.js react-scripts --max_old_space_size=4096 build", "lint": "eslint -c .eslintrc --fix src && prettier --single-quote --write src/**/*.{js,jsx,json,css}", "test:unit": "jest", "test:unit:ci": "jest --ci --runInBand --collectCoverage --reporters=default --reporters=jest-junit && codecov", diff --git a/public/config/demo.js b/public/config/demo.js new file mode 100644 index 000000000..23fc3a805 --- /dev/null +++ b/public/config/demo.js @@ -0,0 +1,24 @@ +window.config = { + routerBasename: '/', + servers: { + dicomWeb: [ + { + name: 'DCM4CHEE', + wadoUriRoot: 'https://server.dcmjs.org/dcm4chee-arc/aets/DCM4CHEE/wado', + qidoRoot: 'https://server.dcmjs.org/dcm4chee-arc/aets/DCM4CHEE/rs', + wadoRoot: 'https://server.dcmjs.org/dcm4chee-arc/aets/DCM4CHEE/rs', + qidoSupportsIncludeField: true, + imageRendering: 'wadors', + thumbnailRendering: 'wadors', + requestOptions: { + requestFromBrowser: true, + }, + }, + ], + }, + i18n: { + LOCIZE_PROJECTID: 'a8da3f9a-e467-4dd6-af33-474d582a0294', + LOCIZE_API_KEY: null, // Developers can use this to do in-context editing. DO NOT COMMIT THIS KEY! + USE_LOCIZE: true + } +}