fix(lesion-tracker): Fix routing and package building issues with Lesion Tracker
This commit is contained in:
parent
539c8af98b
commit
a70f1547a3
@ -3,10 +3,26 @@ import { Router } from 'meteor/clinical:router';
|
|||||||
import { OHIF } from 'meteor/ohif:core';
|
import { OHIF } from 'meteor/ohif:core';
|
||||||
|
|
||||||
Router.configure({
|
Router.configure({
|
||||||
layoutTemplate: 'layout',
|
loadingTemplate: 'loading'
|
||||||
loadingTemplate: 'layout'
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// If we are running a disconnected client similar to the StandaloneViewer
|
||||||
|
// (see https://docs.ohif.org/standalone-viewer/usage.html) we don't want
|
||||||
|
// our routes to get stuck while waiting for Pub / Sub.
|
||||||
|
//
|
||||||
|
// In this case, the developer is required to add Servers and specify
|
||||||
|
// a CurrentServer with some other approach (e.g. a separate script).
|
||||||
|
if (Meteor.settings &&
|
||||||
|
Meteor.settings.public &&
|
||||||
|
Meteor.settings.public.clientOnly !== true) {
|
||||||
|
Router.waitOn(function() {
|
||||||
|
return [
|
||||||
|
Meteor.subscribe('servers'),
|
||||||
|
Meteor.subscribe('currentServer')
|
||||||
|
];
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
Router.onBeforeAction('loading');
|
Router.onBeforeAction('loading');
|
||||||
|
|
||||||
Router.onBeforeAction(function() {
|
Router.onBeforeAction(function() {
|
||||||
|
|||||||
2144
LesionTracker/package-lock.json
generated
2144
LesionTracker/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -9,20 +9,20 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.0.0-beta.54",
|
"@babel/runtime": "7.0.0-beta.51",
|
||||||
"bcrypt": "^0.8.7",
|
"bcrypt": "^3.0.1",
|
||||||
"loglevel": "^1.6.1",
|
"loglevel": "^1.6.1",
|
||||||
"url": "^0.11.0"
|
"url": "^0.11.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"babel-eslint": "^6.1.2",
|
"babel-eslint": "^10.0.1",
|
||||||
"eslint": "^3.7.0",
|
"eslint": "^5.6.0",
|
||||||
"eslint-config-airbnb": "^12.0.0",
|
"eslint-config-airbnb": "^17.1.0",
|
||||||
"eslint-import-resolver-meteor": "^0.3.3",
|
"eslint-import-resolver-meteor": "^0.4.0",
|
||||||
"eslint-plugin-import": "^1.16.0",
|
"eslint-plugin-import": "^2.14.0",
|
||||||
"eslint-plugin-jsx-a11y": "^2.2.2",
|
"eslint-plugin-jsx-a11y": "^6.1.1",
|
||||||
"eslint-plugin-meteor": "^4.0.0",
|
"eslint-plugin-meteor": "^5.1.0",
|
||||||
"eslint-plugin-react": "^6.3.0"
|
"eslint-plugin-react": "^7.11.1"
|
||||||
},
|
},
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user