Switch to react app with dependencies on ohif-core and react-viewerbase

This commit is contained in:
Erik Ziegler committed 2018-12-17 17:23:03 +01:00
1 parent fc5bd73c1e
commit 11d36a4e6b
24 files changed
+1689 -88

No files matched your search

+24 -1
View File
@@ -4,11 +4,34 @@ import { BrowserRouter } from 'react-router-dom';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import App from './App.js';
import { OHIF } from 'ohif-core';
import OHIF from 'ohif-core';
import './config';
const store = createStore(OHIF.redux.combinedReducer);
const servers = {
dicomWeb: [
{
"name": "DCM4CHEE",
"wadoUriRoot": "http://localhost:8080/dcm4chee-arc/aets/DCM4CHEE/wado",
"qidoRoot": "http://localhost:8080/dcm4chee-arc/aets/DCM4CHEE/rs",
"wadoRoot": "http://localhost:8080/dcm4chee-arc/aets/DCM4CHEE/rs",
"qidoSupportsIncludeField": true,
"imageRendering": "wadors",
"thumbnailRendering": "wadors",
"requestOptions": {
"requestFromBrowser": true,
"logRequests": true,
"logResponses": false,
"logTiming": true,
"auth": "admin:admin"
}
}
]
};
OHIF.utils.addServers(servers, store);
// TODO[react] Use a provider when the whole tree is React
window.store = store;