chore(cleanup): Remove persistent-session package

This commit is contained in:
Erik Ziegler 2018-12-11 22:15:14 +01:00
parent c3565cd687
commit 5dec28ba8c
13 changed files with 11 additions and 43 deletions

View File

@ -59,7 +59,5 @@ aldeed:simple-schema # Third party package to deal with schemas
aldeed:template-extension@4.0.0
aldeed:collection2
zuuk:stale-session
johdirr:meteor-git-rev
cultofcoders:persistent-session@0.4.4
shell-server@0.3.1
underscore

View File

@ -31,7 +31,6 @@ clinical:router-location@2.1.0
clinical:router-middleware-stack@2.1.2
clinical:router-url@2.1.0
clinical:theming@0.4.10
cultofcoders:persistent-session@0.4.5
ddp@1.4.0
ddp-client@2.3.3
ddp-common@1.4.0

View File

@ -91,9 +91,6 @@ Template.viewer.onCreated(() => {
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);
// Set lesion tool buttons as disabled if pixel spacing is not available for active element

View File

@ -46,7 +46,6 @@ fortawesome:fontawesome
momentjs:moment@2.15.1
aldeed:simple-schema # Third party package to deal with schemas
aldeed:template-extension
cultofcoders:persistent-session
underscore@1.0.10
meteortesting:mocha
react-template-helper

View File

@ -23,7 +23,6 @@ clinical:router@2.0.19
clinical:router-location@2.1.0
clinical:router-middleware-stack@2.1.2
clinical:router-url@2.1.0
cultofcoders:persistent-session@0.4.5
ddp@1.4.0
ddp-client@2.3.3
ddp-common@1.4.0
@ -37,7 +36,6 @@ ecmascript-runtime-client@0.8.0
ecmascript-runtime-server@0.7.1
ejson@1.1.0
es5-shim@4.8.0
fastclick@1.0.13
fetch@0.1.0
fortawesome:fontawesome@4.7.0
geojson-utils@1.0.10

View File

@ -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>

View File

@ -39,7 +39,8 @@ export class HotkeysManager {
} else if (OHIF.user.userLoggedIn()) {
OHIF.user.setData(storageKey, definitions).then(resolve).catch(reject);
} else {
Session.setPersistent(storageKey, definitions);
const definitionsJSON = JSON.stringify(definitions);
localStorage.setItem(storageKey, definitionsJSON);
resolve();
}
});
@ -57,7 +58,9 @@ export class HotkeysManager {
reject(error);
}
} else {
resolve(Session.get(storageKey));
const definitionsJSON = localStorage.getItem(storageKey) || '';
const definitions = JSON.parse(definitionsJSON) || undefined;
resolve(definitions);
}
});
}

View File

@ -18,8 +18,7 @@ Package.onUse(function(api) {
'stylus',
'reactive-var',
'session',
'clinical:router',
'cultofcoders:persistent-session'
'clinical:router'
]);
// OHIF dependencies

View File

@ -143,7 +143,8 @@ class WindowLevelPresetsManager {
} else if (OHIF.user.userLoggedIn()) {
OHIF.user.setData(WL_STORAGE_KEY, wlPresets).then(resolve).catch(reject);
} else {
Session.setPersistent(WL_STORAGE_KEY, wlPresets);
const wlPresetsJSON = JSON.stringify(wlPresets);
localStorage.setItem(WL_STORAGE_KEY, wlPresetsJSON);
resolve();
}
}).then(() => this.setOHIFWLPresets.call(this, wlPresets));
@ -160,7 +161,9 @@ class WindowLevelPresetsManager {
reject(error);
}
} else {
resolve(Session.get(WL_STORAGE_KEY));
const wlPresetsJSON = localStorage.getItem(WL_STORAGE_KEY) || '';
const wlPresets = JSON.parse(wlPresetsJSON) || undefined;
resolve(wlPresets);
}
});
}

View File

@ -25,7 +25,6 @@ Package.onUse(function(api) {
'jquery',
'stylus',
'momentjs:moment',
'cultofcoders:persistent-session'
]);
// OHIF dependencies
@ -199,7 +198,6 @@ Package.onTest(function(api) {
'jquery',
'mongo',
'momentjs:moment',
'cultofcoders:persistent-session'
], 'client');
// OHIF dependencies

View File

@ -35,7 +35,6 @@ aldeed:simple-schema@1.5.3
stylus@=2.513.14
clinical:router
session@1.2.0-beta181.7
cultofcoders:persistent-session
reactive-dict@1.3.0-beta181.7
fortawesome:fontawesome
mrt:moment

View File

@ -23,7 +23,6 @@ clinical:router@2.0.19
clinical:router-location@2.1.0
clinical:router-middleware-stack@2.1.2
clinical:router-url@2.1.0
cultofcoders:persistent-session@0.4.5
ddp@1.4.0
ddp-client@2.3.3
ddp-common@1.4.0

View File

@ -110,9 +110,6 @@ Template.viewer.onCreated(() => {
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);
// @TypeSafeStudies