Try to fix missing icons

This commit is contained in:
Erik Ziegler 2019-01-07 11:18:59 +01:00
parent 2b8dfa4468
commit cb43d379b1
5 changed files with 12 additions and 10 deletions

View File

@ -3,7 +3,7 @@
"version": "0.0.0", "version": "0.0.0",
"license": "MIT", "license": "MIT",
"private": true, "private": true,
"homepage": "https://docs.ohif.org/viewer", "homepage": "http://localhost:5000/",
"dependencies": { "dependencies": {
"cornerstone-core": "2.2.8", "cornerstone-core": "2.2.8",
"cornerstone-math": "0.1.7", "cornerstone-math": "0.1.7",

View File

@ -8,7 +8,7 @@
<link rel="manifest" href="%PUBLIC_URL%/manifest.json"> <link rel="manifest" href="%PUBLIC_URL%/manifest.json">
<title>react-cornerstone-viewport</title> <title>OHIF Viewer</title>
<!-- Latest compiled and minified CSS --> <!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

View File

@ -4,6 +4,7 @@ import ConnectedLayoutButton from './ConnectedLayoutButton';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import { RoundedButtonGroup } from 'react-viewerbase'; import { RoundedButtonGroup } from 'react-viewerbase';
import './ToolbarRow.css'; import './ToolbarRow.css';
import Icons from "../images/icons.svg"
class ToolbarRow extends Component { class ToolbarRow extends Component {
static propTypes = { static propTypes = {
@ -27,7 +28,7 @@ class ToolbarRow extends Component {
render() { render() {
const leftSidebarToggle = [{ const leftSidebarToggle = [{
value: 'studies', value: 'studies',
svgLink: '/icons.svg#icon-studies', svgLink: `${Icons}#icon-studies`,
svgWidth: 15, svgWidth: 15,
svgHeight: 13, svgHeight: 13,
bottomLabel: 'Series', bottomLabel: 'Series',

View File

@ -7,6 +7,7 @@ import App from './App.js';
import OHIF from 'ohif-core'; import OHIF from 'ohif-core';
import './config'; import './config';
import ui from './redux/ui.js' import ui from './redux/ui.js'
import Icons from "./images/icons.svg"
const reducers = OHIF.redux.reducers; const reducers = OHIF.redux.reducers;
reducers.ui = ui; reducers.ui = ui;
@ -19,42 +20,42 @@ const defaultButtons = [
command: 'Pan', command: 'Pan',
type: 'tool', type: 'tool',
text: 'Pan', text: 'Pan',
svgUrl: '/icons.svg#icon-tools-pan', svgUrl: `${Icons}#icon-tools-pan`,
active: false active: false
}, },
{ {
command: 'Zoom', command: 'Zoom',
type: 'tool', type: 'tool',
text: 'Zoom', text: 'Zoom',
svgUrl: '/icons.svg#icon-tools-zoom', svgUrl: `${Icons}#icon-tools-zoom`,
active: false active: false
}, },
{ {
command: 'Bidirectional', command: 'Bidirectional',
type: 'tool', type: 'tool',
text: 'Bidirectional', text: 'Bidirectional',
svgUrl: '/icons.svg#icon-tools-measure-target', svgUrl: `${Icons}#icon-tools-measure-target`,
active: false active: false
}, },
{ {
command: 'StackScroll', command: 'StackScroll',
type: 'tool', type: 'tool',
text: 'Stack Scroll', text: 'Stack Scroll',
svgUrl: '/icons.svg#icon-tools-stack-scroll', svgUrl: `${Icons}#icon-tools-stack-scroll`,
active: false active: false
}, },
{ {
command: 'reset', command: 'reset',
type: 'command', type: 'command',
text: 'Reset', text: 'Reset',
svgUrl: '/icons.svg#icon-tools-reset', svgUrl: `${Icons}#icon-tools-reset`,
active: false active: false
}, },
{ {
command: 'Wwwc', command: 'Wwwc',
type: 'tool', type: 'tool',
text: 'Manual', text: 'Manual',
svgUrl: '/icons.svg#icon-tools-levels', svgUrl: `${Icons}#icon-tools-levels`,
active: true active: true
}, },
]; ];

View File

@ -1 +1 @@
export default 'b84fd28dc262d3d3c569b38ac9e386857cced3e2'; export default '2b8dfa4468036e027380513dc6a7c51a70be5752';