WIP reorganization

This commit is contained in:
Erik Ziegler committed 2018-12-12 09:10:39 +01:00
1 parent 6706dfe634
commit 054e37dfb7
266 files changed
+98 -620

No files matched your search

@@ -0,0 +1,23 @@
import { Meteor } from 'meteor/meteor';
import { OHIF } from 'meteor/ohif:core';
Meteor.startup(function() {
if (Meteor.isClient){
ActiveEntry.configure({
logo: {
url: OHIF.utils.absoluteUrl('/images/logo.png'),
displayed: true
},
signIn: {
displayFullName: true,
destination: '/'
},
signUp: {
destination: '/'
},
themeColors: {
primary: ''
}
});
}
});
@@ -0,0 +1,26 @@
@import "{ohif:design}/app.styl"
#entrySignIn.entryPage,
#entrySignUp.entryPage,
#changePassword,
#forgotPassword,
#resetPassword
.wrapper-auth
.title-auth
color: white
.entryLogo
margin-top: 50px
height: 50px
width: 50px
.input-symbol
.fa
color: #333333
button
&.btn-main
padding-left: 0
.entryPage .wrapper-auth,.subtitle-auth
theme('color', '$textPrimaryColor')
@@ -0,0 +1,29 @@
import { Template } from 'meteor/templating';
import { ActiveEntry } from 'meteor/clinical:active-entry';
Template.entrySignIn.hooks({
rendered: function () {
if (!Meteor.settings.public.demoUserEnabled) {
return;
}
// Create Test Drive button dynamically
let btnTestDrive = $('<button/>', {
id: 'btnTestDrive',
text: 'Test Drive',
class: 'btn btn-primary',
style: 'position: absolute; width: 150px; top: 20px; right: 20px; padding-left: 0;',
title: 'Login with Demo User',
click: function () {
// Login with demo user
ActiveEntry.signIn('demo@ohif.org', '12345678aA*');
}
});
const entrySignIn = this.find('#entrySignIn');
$(entrySignIn).append(btnTestDrive);
}
});
@@ -0,0 +1,3 @@
import './activeEntry.styl';
import './activeEntry.js';
import './activeEntrySignIn.js';