Add ohif-viewer package to work on sharing components across viewers and test the standalone viewer via script tag
This commit is contained in:
1 parent
6e291a18b8
commit
6e91df26ee
118 files changed
+122549
-871
No files matched your search
@@ -5,17 +5,19 @@ import { Provider } from 'react-redux';
|
||||
import { createStore, combineReducers } from 'redux';
|
||||
import { loadUser, reducer as oidcReducer, OidcProvider} from 'redux-oidc';
|
||||
import OHIF from 'ohif-core';
|
||||
|
||||
import OHIFCornerstoneViewportPlugin from "./connectedComponents/OHIFCornerstoneViewportPlugin/OHIFCornerstoneViewportPlugin.js";
|
||||
import './config';
|
||||
import ui from './redux/ui.js';
|
||||
import App from './App.js';
|
||||
import ui from './redux/ui.js'
|
||||
import userManager from './userManager.js';
|
||||
import Icons from "./images/icons.svg"
|
||||
import ConnectedExampleViewportPlugin from './components/ConnectedExampleViewportPlugin.js';
|
||||
|
||||
const reducers = OHIF.redux.reducers;
|
||||
reducers.ui = ui;
|
||||
reducers.oidc = oidcReducer;
|
||||
|
||||
const Icons = '/icons.svg';
|
||||
|
||||
const combined = combineReducers(reducers)
|
||||
|
||||
const store = createStore(combined);
|
||||
@@ -87,11 +89,26 @@ const defaultButtons = [
|
||||
},
|
||||
];
|
||||
|
||||
store.dispatch({
|
||||
type: 'SET_AVAILABLE_BUTTONS',
|
||||
buttons: defaultButtons
|
||||
const buttonsAction = OHIF.redux.actions.setAvailableButtons(defaultButtons);
|
||||
|
||||
store.dispatch(buttonsAction);
|
||||
|
||||
// Uncomment this and comment the Cornerstone version to see how the
|
||||
// example plugin works
|
||||
/*const pluginAction = OHIF.redux.actions.addPlugin({
|
||||
id: 'example',
|
||||
type: 'viewport',
|
||||
component: ConnectedExampleViewportPlugin
|
||||
});*/
|
||||
|
||||
const pluginAction = OHIF.redux.actions.addPlugin({
|
||||
id: 'cornerstone',
|
||||
type: 'viewport',
|
||||
component: OHIFCornerstoneViewportPlugin
|
||||
});
|
||||
|
||||
store.dispatch(pluginAction);
|
||||
|
||||
const servers = {
|
||||
dicomWeb: [
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user