From 3bdb204285fe4193685122e83843b56838e0a652 Mon Sep 17 00:00:00 2001 From: Alireza Date: Thu, 9 Sep 2021 13:02:33 -0400 Subject: [PATCH] fix: Local viewer demo config (#2541) * fix: Local viewer demo --- platform/viewer/public/config/netlify.js | 40 ++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/platform/viewer/public/config/netlify.js b/platform/viewer/public/config/netlify.js index a20b3ac21..fa6358a54 100644 --- a/platform/viewer/public/config/netlify.js +++ b/platform/viewer/public/config/netlify.js @@ -24,7 +24,47 @@ window.config = { supportsWildcard: true, }, }, + { + friendlyName: 'dicom json', + namespace: 'org.ohif.default.dataSourcesModule.dicomjson', + sourceName: 'dicomjson', + configuration: { + name: 'json', + }, + }, + { + friendlyName: 'dicom local', + namespace: 'org.ohif.default.dataSourcesModule.dicomlocal', + sourceName: 'dicomlocal', + configuration: {}, + }, ], + httpErrorHandler: error => { + // This is 429 when rejected from the public idc sandbox too often. + console.warn(error.status); + + // Could use services manager here to bring up a dialog/modal if needed. + console.warn('test, navigate to https://ohif.org/'); + }, + // whiteLabeling: { + // /* Optional: Should return a React component to be rendered in the "Logo" section of the application's Top Navigation bar */ + // createLogoComponentFn: function (React) { + // return React.createElement( + // 'a', + // { + // target: '_self', + // rel: 'noopener noreferrer', + // className: 'text-purple-600 line-through', + // href: '/', + // }, + // React.createElement('img', + // { + // src: './customLogo.svg', + // className: 'w-8 h-8', + // } + // )) + // }, + // }, defaultDataSourceName: 'dicomweb', hotkeys: [ {