chore(cleanup): Remove persistent-session package
This commit is contained in:
parent
c3565cd687
commit
5dec28ba8c
@ -59,7 +59,5 @@ aldeed:simple-schema # Third party package to deal with schemas
|
|||||||
aldeed:template-extension@4.0.0
|
aldeed:template-extension@4.0.0
|
||||||
aldeed:collection2
|
aldeed:collection2
|
||||||
zuuk:stale-session
|
zuuk:stale-session
|
||||||
johdirr:meteor-git-rev
|
|
||||||
cultofcoders:persistent-session@0.4.4
|
|
||||||
shell-server@0.3.1
|
shell-server@0.3.1
|
||||||
underscore
|
underscore
|
||||||
|
|||||||
@ -31,7 +31,6 @@ clinical:router-location@2.1.0
|
|||||||
clinical:router-middleware-stack@2.1.2
|
clinical:router-middleware-stack@2.1.2
|
||||||
clinical:router-url@2.1.0
|
clinical:router-url@2.1.0
|
||||||
clinical:theming@0.4.10
|
clinical:theming@0.4.10
|
||||||
cultofcoders:persistent-session@0.4.5
|
|
||||||
ddp@1.4.0
|
ddp@1.4.0
|
||||||
ddp-client@2.3.3
|
ddp-client@2.3.3
|
||||||
ddp-common@1.4.0
|
ddp-common@1.4.0
|
||||||
|
|||||||
@ -91,9 +91,6 @@ Template.viewer.onCreated(() => {
|
|||||||
OHIF.viewer.data.loadedSeriesData = {};
|
OHIF.viewer.data.loadedSeriesData = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
// Store the viewer data in session for further user
|
|
||||||
Session.setPersistent('ViewerData', OHIF.viewer.data);
|
|
||||||
|
|
||||||
Session.set('activeViewport', OHIF.viewer.data.activeViewport || false);
|
Session.set('activeViewport', OHIF.viewer.data.activeViewport || false);
|
||||||
|
|
||||||
// Set lesion tool buttons as disabled if pixel spacing is not available for active element
|
// Set lesion tool buttons as disabled if pixel spacing is not available for active element
|
||||||
|
|||||||
@ -46,7 +46,6 @@ fortawesome:fontawesome
|
|||||||
momentjs:moment@2.15.1
|
momentjs:moment@2.15.1
|
||||||
aldeed:simple-schema # Third party package to deal with schemas
|
aldeed:simple-schema # Third party package to deal with schemas
|
||||||
aldeed:template-extension
|
aldeed:template-extension
|
||||||
cultofcoders:persistent-session
|
|
||||||
underscore@1.0.10
|
underscore@1.0.10
|
||||||
meteortesting:mocha
|
meteortesting:mocha
|
||||||
react-template-helper
|
react-template-helper
|
||||||
|
|||||||
@ -23,7 +23,6 @@ clinical:router@2.0.19
|
|||||||
clinical:router-location@2.1.0
|
clinical:router-location@2.1.0
|
||||||
clinical:router-middleware-stack@2.1.2
|
clinical:router-middleware-stack@2.1.2
|
||||||
clinical:router-url@2.1.0
|
clinical:router-url@2.1.0
|
||||||
cultofcoders:persistent-session@0.4.5
|
|
||||||
ddp@1.4.0
|
ddp@1.4.0
|
||||||
ddp-client@2.3.3
|
ddp-client@2.3.3
|
||||||
ddp-common@1.4.0
|
ddp-common@1.4.0
|
||||||
@ -37,7 +36,6 @@ ecmascript-runtime-client@0.8.0
|
|||||||
ecmascript-runtime-server@0.7.1
|
ecmascript-runtime-server@0.7.1
|
||||||
ejson@1.1.0
|
ejson@1.1.0
|
||||||
es5-shim@4.8.0
|
es5-shim@4.8.0
|
||||||
fastclick@1.0.13
|
|
||||||
fetch@0.1.0
|
fetch@0.1.0
|
||||||
fortawesome:fontawesome@4.7.0
|
fortawesome:fontawesome@4.7.0
|
||||||
geojson-utils@1.0.10
|
geojson-utils@1.0.10
|
||||||
|
|||||||
@ -1,21 +0,0 @@
|
|||||||
<template name="viewer">
|
|
||||||
{{#if and Template.subscriptionsReady}}
|
|
||||||
<div class="viewerDialogs-react">
|
|
||||||
{{> React component=CineDialog}}
|
|
||||||
</div>
|
|
||||||
<div class="viewerDialogs">
|
|
||||||
{{>layoutChooser}}
|
|
||||||
{{>annotationDialogs}}
|
|
||||||
</div>
|
|
||||||
<div id="viewer">
|
|
||||||
<div>
|
|
||||||
{{>toolbarSection (clone this state=state)}}
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
{{> React component=FlexboxLayout studies=this.studies}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{{else}}
|
|
||||||
{{>loadingText}}
|
|
||||||
{{/if}}
|
|
||||||
</template>
|
|
||||||
@ -39,7 +39,8 @@ export class HotkeysManager {
|
|||||||
} else if (OHIF.user.userLoggedIn()) {
|
} else if (OHIF.user.userLoggedIn()) {
|
||||||
OHIF.user.setData(storageKey, definitions).then(resolve).catch(reject);
|
OHIF.user.setData(storageKey, definitions).then(resolve).catch(reject);
|
||||||
} else {
|
} else {
|
||||||
Session.setPersistent(storageKey, definitions);
|
const definitionsJSON = JSON.stringify(definitions);
|
||||||
|
localStorage.setItem(storageKey, definitionsJSON);
|
||||||
resolve();
|
resolve();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -57,7 +58,9 @@ export class HotkeysManager {
|
|||||||
reject(error);
|
reject(error);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
resolve(Session.get(storageKey));
|
const definitionsJSON = localStorage.getItem(storageKey) || '';
|
||||||
|
const definitions = JSON.parse(definitionsJSON) || undefined;
|
||||||
|
resolve(definitions);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -18,8 +18,7 @@ Package.onUse(function(api) {
|
|||||||
'stylus',
|
'stylus',
|
||||||
'reactive-var',
|
'reactive-var',
|
||||||
'session',
|
'session',
|
||||||
'clinical:router',
|
'clinical:router'
|
||||||
'cultofcoders:persistent-session'
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// OHIF dependencies
|
// OHIF dependencies
|
||||||
|
|||||||
@ -143,7 +143,8 @@ class WindowLevelPresetsManager {
|
|||||||
} else if (OHIF.user.userLoggedIn()) {
|
} else if (OHIF.user.userLoggedIn()) {
|
||||||
OHIF.user.setData(WL_STORAGE_KEY, wlPresets).then(resolve).catch(reject);
|
OHIF.user.setData(WL_STORAGE_KEY, wlPresets).then(resolve).catch(reject);
|
||||||
} else {
|
} else {
|
||||||
Session.setPersistent(WL_STORAGE_KEY, wlPresets);
|
const wlPresetsJSON = JSON.stringify(wlPresets);
|
||||||
|
localStorage.setItem(WL_STORAGE_KEY, wlPresetsJSON);
|
||||||
resolve();
|
resolve();
|
||||||
}
|
}
|
||||||
}).then(() => this.setOHIFWLPresets.call(this, wlPresets));
|
}).then(() => this.setOHIFWLPresets.call(this, wlPresets));
|
||||||
@ -160,7 +161,9 @@ class WindowLevelPresetsManager {
|
|||||||
reject(error);
|
reject(error);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
resolve(Session.get(WL_STORAGE_KEY));
|
const wlPresetsJSON = localStorage.getItem(WL_STORAGE_KEY) || '';
|
||||||
|
const wlPresets = JSON.parse(wlPresetsJSON) || undefined;
|
||||||
|
resolve(wlPresets);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -25,7 +25,6 @@ Package.onUse(function(api) {
|
|||||||
'jquery',
|
'jquery',
|
||||||
'stylus',
|
'stylus',
|
||||||
'momentjs:moment',
|
'momentjs:moment',
|
||||||
'cultofcoders:persistent-session'
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// OHIF dependencies
|
// OHIF dependencies
|
||||||
@ -199,7 +198,6 @@ Package.onTest(function(api) {
|
|||||||
'jquery',
|
'jquery',
|
||||||
'mongo',
|
'mongo',
|
||||||
'momentjs:moment',
|
'momentjs:moment',
|
||||||
'cultofcoders:persistent-session'
|
|
||||||
], 'client');
|
], 'client');
|
||||||
|
|
||||||
// OHIF dependencies
|
// OHIF dependencies
|
||||||
|
|||||||
@ -35,7 +35,6 @@ aldeed:simple-schema@1.5.3
|
|||||||
stylus@=2.513.14
|
stylus@=2.513.14
|
||||||
clinical:router
|
clinical:router
|
||||||
session@1.2.0-beta181.7
|
session@1.2.0-beta181.7
|
||||||
cultofcoders:persistent-session
|
|
||||||
reactive-dict@1.3.0-beta181.7
|
reactive-dict@1.3.0-beta181.7
|
||||||
fortawesome:fontawesome
|
fortawesome:fontawesome
|
||||||
mrt:moment
|
mrt:moment
|
||||||
|
|||||||
@ -23,7 +23,6 @@ clinical:router@2.0.19
|
|||||||
clinical:router-location@2.1.0
|
clinical:router-location@2.1.0
|
||||||
clinical:router-middleware-stack@2.1.2
|
clinical:router-middleware-stack@2.1.2
|
||||||
clinical:router-url@2.1.0
|
clinical:router-url@2.1.0
|
||||||
cultofcoders:persistent-session@0.4.5
|
|
||||||
ddp@1.4.0
|
ddp@1.4.0
|
||||||
ddp-client@2.3.3
|
ddp-client@2.3.3
|
||||||
ddp-common@1.4.0
|
ddp-common@1.4.0
|
||||||
|
|||||||
@ -110,9 +110,6 @@ Template.viewer.onCreated(() => {
|
|||||||
OHIF.viewer.data.activeViewport = 0;
|
OHIF.viewer.data.activeViewport = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Store the viewer data in session for further user
|
|
||||||
Session.setPersistent('ViewerData', OHIF.viewer.data);
|
|
||||||
|
|
||||||
Session.set('activeViewport', OHIF.viewer.data.activeViewport || 0);
|
Session.set('activeViewport', OHIF.viewer.data.activeViewport || 0);
|
||||||
|
|
||||||
// @TypeSafeStudies
|
// @TypeSafeStudies
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user