feat(user preferences) Add User Preferences & Theming to Standalone Viewer (closes #117). Update Standalone to Meteor 1.7
This commit is contained in:
1 parent
7090b4f3e0
commit
de7135f3b8
32 files changed
+337
-250
No files matched your search
@@ -63,5 +63,5 @@ aldeed:collection2
|
||||
zuuk:stale-session
|
||||
dangrossman:bootstrap-daterangepicker
|
||||
johdirr:meteor-git-rev
|
||||
u2622:persistent-session@0.4.4
|
||||
cultofcoders:persistent-session@0.4.4
|
||||
shell-server@0.3.0
|
||||
@@ -27,6 +27,7 @@ clinical:fonts@1.1.6
|
||||
clinical:hipaa-audit-log@2.4.2
|
||||
clinical:hipaa-logger@1.3.0
|
||||
clinical:theming@0.4.10
|
||||
cultofcoders:persistent-session@0.4.5
|
||||
dangrossman:bootstrap-daterangepicker@2.1.13
|
||||
ddp@1.4.0
|
||||
ddp-client@2.2.0
|
||||
@@ -137,7 +138,6 @@ templating-runtime@1.3.2
|
||||
templating-tools@1.1.2
|
||||
tracker@1.1.3
|
||||
twbs:bootstrap@3.3.6
|
||||
u2622:persistent-session@0.4.4
|
||||
ui@1.0.13
|
||||
underscore@1.0.10
|
||||
url@1.1.0
|
||||
|
||||
@@ -12,19 +12,19 @@ Template.app.onCreated(() => {
|
||||
action: OHIF.user.audit,
|
||||
text: 'View Audit Log',
|
||||
iconClasses: 'log',
|
||||
iconSvgUse: 'packages/ohif_user-management/assets/user-menu-icons.svg#log',
|
||||
iconSvgUse: 'packages/ohif_viewerbase/assets/icons.svg#log',
|
||||
separatorAfter: true
|
||||
}, {
|
||||
action: () => OHIF.ui.showDialog('themeSelectorModal'),
|
||||
text: 'Themes',
|
||||
iconClasses: 'theme',
|
||||
iconSvgUse: 'packages/ohif_user-management/assets/user-menu-icons.svg#theme',
|
||||
iconSvgUse: 'packages/ohif_viewerbase/assets/icons.svg#theme',
|
||||
separatorAfter: true
|
||||
}, {
|
||||
action: () => OHIF.ui.showDialog('serverInformationModal'),
|
||||
text: 'Server Information',
|
||||
iconClasses: 'server',
|
||||
iconSvgUse: 'packages/ohif_user-management/assets/user-menu-icons.svg#server',
|
||||
iconSvgUse: 'packages/ohif_viewerbase/assets/icons.svg#server',
|
||||
separatorAfter: true
|
||||
}, {
|
||||
action: () => OHIF.ui.showDialog('userPreferencesDialog'),
|
||||
@@ -35,12 +35,12 @@ Template.app.onCreated(() => {
|
||||
action: OHIF.user.changePassword,
|
||||
text: 'Change Password',
|
||||
iconClasses: 'password',
|
||||
iconSvgUse: 'packages/ohif_user-management/assets/user-menu-icons.svg#password'
|
||||
iconSvgUse: 'packages/ohif_viewerbase/assets/icons.svg#password'
|
||||
}, {
|
||||
action: OHIF.user.logout,
|
||||
text: 'Logout',
|
||||
iconClasses: 'logout',
|
||||
iconSvgUse: 'packages/ohif_user-management/assets/user-menu-icons.svg#logout'
|
||||
iconSvgUse: 'packages/ohif_viewerbase/assets/icons.svg#logout'
|
||||
}]);
|
||||
|
||||
instance.autorun(() => {
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
<template name="userPreferencesDialog">
|
||||
{{#dialogSimple (extend this class='themed' dialogClass='dialog-user-preferences modal-lg' title='User Preferences')}}
|
||||
<ul class="nav nav-tabs">
|
||||
<li role="presentation" class="{{tabClasses 'hotkeys'}}">
|
||||
<a href="#" data-id="hotkeys">Keyboard Shortcuts</a>
|
||||
</li>
|
||||
<li role="presentation" class="{{tabClasses 'wwwc'}}">
|
||||
<a href="#" data-id="wwwc">Window W/L</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="{{#unless eq instance.activeTab.get 'hotkeys'}}hidden{{/unless}}">
|
||||
{{>hotkeysForm (extend contextName='viewer')}}
|
||||
</div>
|
||||
<div class="{{#unless eq instance.activeTab.get 'wwwc'}}hidden{{/unless}}">
|
||||
{{>windowLevelPresetsForm}}
|
||||
</div>
|
||||
{{/dialogSimple}}
|
||||
</template>
|
||||
@@ -1,22 +0,0 @@
|
||||
import { Template } from 'meteor/templating';
|
||||
import { ReactiveVar } from 'meteor/reactive-var';
|
||||
|
||||
Template.userPreferencesDialog.onCreated(() => {
|
||||
const instance = Template.instance();
|
||||
instance.activeTab = new ReactiveVar('hotkeys');
|
||||
});
|
||||
|
||||
Template.userPreferencesDialog.events({
|
||||
'click .nav-tabs li a'(event, instance) {
|
||||
const tabId = $(event.currentTarget).attr('data-id');
|
||||
instance.activeTab.set(tabId);
|
||||
}
|
||||
});
|
||||
|
||||
Template.userPreferencesDialog.helpers({
|
||||
tabClasses(tabId) {
|
||||
const instance = Template.instance();
|
||||
const activeTab = instance.activeTab.get();
|
||||
return tabId === activeTab ? 'active' : '';
|
||||
}
|
||||
});
|
||||
@@ -1,17 +0,0 @@
|
||||
@require '{ohif:design}/app'
|
||||
|
||||
.dialog-user-preferences
|
||||
|
||||
.modal-body
|
||||
overflow: hidden
|
||||
|
||||
.form-content
|
||||
margin-bottom: 10px
|
||||
margin-left: -15px
|
||||
margin-right: -15px
|
||||
max-height: 70vh
|
||||
overflow-y: auto
|
||||
padding: 15px
|
||||
|
||||
.popover
|
||||
width: 300px
|
||||
Reference in new issue
Block a user