Work on refactoring measurements out of Lesion Tracker package
- Removed AssociatedStudies Collection - Measurement API is generated from configuration files - Data exchange methods are defined in configuration
This commit is contained in:
1 parent
c511edd419
commit
ab4d4c9008
537 files changed
+5122
-3545
No files matched your search
@@ -0,0 +1,36 @@
|
||||
Meteor.startup(function() {
|
||||
if (Meteor.isClient){
|
||||
ActiveEntry.configure({
|
||||
logo: {
|
||||
url: '/images/logo.png',
|
||||
displayed: true
|
||||
},
|
||||
signIn: {
|
||||
displayFullName: true,
|
||||
destination: '/'
|
||||
},
|
||||
signUp: {
|
||||
destination: '/'
|
||||
},
|
||||
themeColors: {
|
||||
primary: ''
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (Meteor.isServer){
|
||||
Accounts.emailTemplates.siteName = 'AwesomeSite';
|
||||
Accounts.emailTemplates.from = 'AwesomeSite Admin <accounts@example.com>';
|
||||
Accounts.emailTemplates.enrollAccount.subject = function(user) {
|
||||
return 'Welcome to Awesome Town, ' + user.profile.name;
|
||||
};
|
||||
|
||||
Accounts.emailTemplates.enrollAccount.text = function(user, url) {
|
||||
return 'You have been selected to participate in building a better future!'
|
||||
+ ' To activate your account, simply click the link below:\n\n'
|
||||
+ url;
|
||||
};
|
||||
|
||||
process.env.MAIL_URL = 'smtp://sandboxid.mailgun.org:mypassword@smtp.mailgun.org:587';
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,16 @@
|
||||
#entrySignIn.entryPage,
|
||||
#entrySignUp.entryPage,
|
||||
#changePassword,
|
||||
#forgotPassword,
|
||||
#resetPassword
|
||||
.wrapper-auth
|
||||
.title-auth
|
||||
color: white
|
||||
.entryLogo
|
||||
margin-top: 50px
|
||||
height: 50px
|
||||
width: 50px
|
||||
|
||||
// TODO: Fix theming in active-entry so we don't have to do this
|
||||
.entryPage .wrapper-auth,.subtitle-auth
|
||||
color: white !important
|
||||
@@ -0,0 +1,25 @@
|
||||
import { Template } from 'meteor/templating';
|
||||
import { ActiveEntry } from 'meteor/clinical:active-entry';
|
||||
|
||||
|
||||
Template.entrySignIn.hooks({
|
||||
|
||||
rendered: function () {
|
||||
// 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);
|
||||
}
|
||||
|
||||
});
|
||||
Reference in new issue
Block a user