diff --git a/app/.meteor/packages b/app/.meteor/packages index 3ecb10c..594f251 100644 --- a/app/.meteor/packages +++ b/app/.meteor/packages @@ -1,78 +1,77 @@ # Meteor packages used by this project, one per line. # Check this file (and the other files in this directory) into your repository. # # 'meteor add' and 'meteor remove' will edit this file for you, # but you can also edit it by hand. coffeescript@1.2.4_1 accounts-password@1.3.0 alanning:roles aldeed:autoform aldeed:collection2 drskullster:bootstrap jabbslad:basic-auth less@2.7.5 meteorhacks:aggregate iron:router ian:accounts-ui-bootstrap-3 sacha:spin matb33:collection-hooks fortawesome:fontawesome mistereo:identicon aslagle:reactive-table mizzao:user-status aldeed:autoform-bs-datetimepicker aldeed:autoform-bs-datepicker rajit:bootstrap3-datepicker tsega:bootstrap3-datetimepicker@=3.1.3_3 mrt:jquery-ui-sortable d3js:d3 workman:x-editable-reactive-template cfs:standard-packages frozeman:template-var peppelg:bootstrap-3-modal reactive-var@1.0.10 mizzao:timesync reywood:publish-composite q42:autoform-markdown aldeed:template-extension meteor-base@1.0.4 mobile-experience@1.0.4 mongo@1.1.12 blaze-html-templates@1.0.4 session@1.1.6 jquery@1.11.9 tracker@1.1.0 logging@1.1.15 reload@1.1.10 random@1.0.10 ejson@1.0.12 spacebars@1.0.12 check@1.2.3 joshowens:accounts-entry-1.2 chriswessels:hammer ajduke:bootstrap-tagsinput sergeyt:typeahead jesperwe:bootstrap-select percolate:migrations sujith3g:jstree cfs:gridfs percolate:synced-cron zuuk:stale-session kevohagan:sweetalert rzymek:moment rzymek:moment-locale-es rzymek:moment-locale-it rzymek:moment-locale-fr rzymek:moment-locale-de standard-minifier-css@1.2.0 standard-minifier-js@1.2.0 underscore@1.0.9 -hitchcott:app-dump shell-server diff --git a/app/.meteor/versions b/app/.meteor/versions index bc06f5b..7051ad0 100644 --- a/app/.meteor/versions +++ b/app/.meteor/versions @@ -1,165 +1,164 @@ accounts-base@1.2.11 accounts-password@1.3.0 ajduke:bootstrap-tagsinput@0.7.1 alanning:roles@1.2.15 aldeed:autoform@5.8.1 aldeed:autoform-bs-datepicker@1.1.1 aldeed:autoform-bs-datetimepicker@1.0.6 aldeed:collection2@2.10.0 aldeed:collection2-core@1.2.0 aldeed:schema-deny@1.1.0 aldeed:schema-index@1.1.0 aldeed:simple-schema@1.5.3 aldeed:template-extension@4.0.0 allow-deny@1.0.5 anti:i18n@0.4.3 aslagle:reactive-table@0.8.34 autoupdate@1.3.11 babel-compiler@6.9.1 babel-runtime@0.1.11 base64@1.0.9 binary-heap@1.0.9 blaze@2.1.8 blaze-html-templates@1.0.4 blaze-tools@1.0.9 boilerplate-generator@1.0.9 caching-compiler@1.1.7 caching-html-compiler@1.0.6 callback-hook@1.0.9 cfs:access-point@0.1.49 cfs:base-package@0.0.30 cfs:collection@0.5.5 cfs:collection-filters@0.2.4 cfs:data-man@0.0.6 cfs:file@0.1.17 cfs:gridfs@0.0.33 cfs:http-methods@0.0.32 cfs:http-publish@0.0.13 cfs:power-queue@0.9.11 cfs:reactive-list@0.0.9 cfs:reactive-property@0.0.4 cfs:standard-packages@0.5.9 cfs:storage-adapter@0.2.3 cfs:tempstore@0.1.5 cfs:upload-http@0.0.20 cfs:worker@0.1.4 check@1.2.3 chriswessels:hammer@4.0.2 coffeescript@1.2.4_1 d3js:d3@3.5.8 ddp@1.2.5 ddp-client@1.3.1 ddp-common@1.2.6 ddp-rate-limiter@1.0.5 ddp-server@1.3.10 deps@1.0.12 diff-sequence@1.0.6 drskullster:bootstrap@3.3.1_1 ecmascript@0.5.8 ecmascript-runtime@0.3.14 ejson@1.0.12 email@1.1.17 fastclick@1.0.12 fortawesome:fontawesome@4.5.0 frozeman:template-var@1.3.0 geojson-utils@1.0.9 handlebars@1.0.7 -hitchcott:app-dump@0.4.2 hot-code-push@1.0.4 html-tools@1.0.10 htmljs@1.0.10 http@1.2.9 ian:accounts-ui-bootstrap-3@1.2.89 id-map@1.0.8 iron:controller@1.0.12 iron:core@1.0.11 iron:dynamic-template@1.0.12 iron:layout@1.0.12 iron:location@1.0.11 iron:middleware-stack@1.1.0 iron:router@1.0.13 iron:url@1.0.11 jabbslad:basic-auth@0.2.2 jesperwe:bootstrap-select@1.7.4_4 joshowens:accounts-entry-1.2@1.0.3 joshowens:simple-form@0.2.1 jquery@1.11.9 kevohagan:sweetalert@1.0.0 launch-screen@1.0.12 less@2.7.5 livedata@1.0.18 localstorage@1.0.11 logging@1.1.15 matb33:collection-hooks@0.8.4 mdg:validation-error@0.5.1 meteor@1.2.17 meteor-base@1.0.4 meteorhacks:aggregate@1.3.0 meteorhacks:collection-utils@1.2.0 minifier-css@1.2.14 minifier-js@1.2.14 minimongo@1.0.17 mistereo:identicon@1.0.0 mizzao:timesync@0.4.0 mizzao:user-status@0.6.6 mobile-experience@1.0.4 mobile-status-bar@1.0.12 modules@0.7.6 modules-runtime@0.7.6 momentjs:moment@2.14.4 mongo@1.1.12 mongo-id@1.0.5 mongo-livedata@1.0.12 mrt:jquery-ui-sortable@1.10.3 mrt:underscore-string-latest@2.3.3 nemo64:bootstrap-data@3.3.5 npm-bcrypt@0.9.1 npm-mongo@1.5.48 observe-sequence@1.0.12 ordered-dict@1.0.8 peppelg:bootstrap-3-modal@1.0.4 perak:markdown@1.0.5 percolate:migrations@0.9.8 percolate:synced-cron@1.3.2 promise@0.8.4 q42:autoform-markdown@1.0.0 raix:eventemitter@0.1.3 rajit:bootstrap3-datepicker@1.5.1 random@1.0.10 rate-limit@1.0.5 reactive-dict@1.1.8 reactive-var@1.0.10 reload@1.1.10 retry@1.0.8 reywood:publish-composite@1.4.2 routepolicy@1.0.11 rzymek:moment@2.8.3_10 rzymek:moment-locale-de@2.12.0 rzymek:moment-locale-es@2.12.0 rzymek:moment-locale-fr@2.12.0 rzymek:moment-locale-it@2.12.0 sacha:spin@2.3.1 sergeyt:typeahead@0.11.1_9 service-configuration@1.0.10 session@1.1.6 sha@1.0.8 shell-server@0.2.1 softwarerero:accounts-t9n@1.3.4 spacebars@1.0.12 spacebars-compiler@1.0.12 srp@1.0.9 standard-minifier-css@1.2.0 standard-minifier-js@1.2.0 stylus@2.513.5 sujith3g:jstree@0.0.6 templating@1.2.14 templating-tools@1.0.4 tracker@1.1.0 tsega:bootstrap3-datetimepicker@3.1.3_3 ui@1.0.11 underscore@1.0.9 url@1.0.10 webapp@1.3.11 webapp-hashing@1.0.9 workman:x-editable-reactive-template@1.0.2 zuuk:stale-session@1.0.8 diff --git a/app/client/views/backup/backup.html b/app/client/views/backup/backup.html deleted file mode 100644 index 6a4dd02..0000000 --- a/app/client/views/backup/backup.html +++ /dev/null @@ -1,10 +0,0 @@ - diff --git a/app/lib/router.coffee b/app/lib/router.coffee index 4d5399a..d1190d0 100644 --- a/app/lib/router.coffee +++ b/app/lib/router.coffee @@ -1,125 +1,122 @@ Router.configure layoutTemplate: "layout" loadingTemplate: "loading" notFoundTemplate: "not_found" # automatically render notFoundTemplate if data is null #Router.onBeforeAction('dataNotFound') Router.onBeforeAction( -> AccountsEntry.signInRequired(this) , {except: ["entrySignIn", "entrySignUp", "entryForgotPassword", "entrySignOut", "entryResetPassword", "appDumpHTTP"] }) #Router.plugin('ensureSignedIn', # except: ["entrySignIn", "entrySignUp", "entryForgotPassword", "entrySignOut", "entryResetPassword"] #) previousPage = null Router.map -> @route "root", path: "/" onBeforeAction: (pause)-> @redirect "/patients" @route "dashboard", path: "dashboard" @route "patients", path: "patients" waitOn: -> [ Meteor.subscribe("patients") ] @route "questionnaires", path: "questionnaires" waitOn: -> [ Meteor.subscribe("questionnaires") Meteor.subscribe("questions") Meteor.subscribe("userProfiles") ] @route "editQuestionnaire", path: "questionnaires/edit/:_id" waitOn: -> [ Meteor.subscribe("questionnaires") Meteor.subscribe("questionsForQuestionnaire", @params._id) ] data: -> Questionnaires.findOne {_id: @params._id} @route "translateQuestionnaire", path: "questionnaires/translate/:_id" waitOn: -> [ Meteor.subscribe("questionnaires") Meteor.subscribe("questionsForQuestionnaire", @params._id) ] data: -> Questionnaires.findOne {_id: @params._id} @route "studies", path: "studies" waitOn: -> [ Meteor.subscribe("studies") Meteor.subscribe("userProfiles") ] @route "editStudy", path: "studies/edit/:_id/:page?" waitOn: -> [ Meteor.subscribe("study", @params._id ) Meteor.subscribe("patientsForStudy", @params._id ) Meteor.subscribe("caseManagers") Meteor.subscribe("studyDesignsForStudy", @params._id ) Meteor.subscribe("questionnaires") ] data: -> Studies.findOne {_id: @params._id} @route "export", path: "export" waitOn: -> [ Meteor.subscribe("questionnaires") Meteor.subscribe("questions") Meteor.subscribe("studies") Meteor.subscribe("studyDesigns") Meteor.subscribe("patients") Meteor.subscribe("visits") Meteor.subscribe("caseManagers") Meteor.subscribe("exportTables") ] @route "users", path: "users" waitOn: -> [ Meteor.subscribe("users") ] @route "activities", path: "activities" waitOn: -> [ Meteor.subscribe("users") Meteor.subscribe("activities") ] - @route "backup", - path: "backup" - if Meteor.isClient Accounts.ui.config passwordSignupFields: 'USERNAME_AND_EMAIL' Meteor.startup -> AccountsEntry.config homeRoute: '/' #redirect to this path after sign-out dashboardRoute: '/patients' #redirect to this path after sign-in passwordSignupFields: 'USERNAME_AND_EMAIL' diff --git a/app/server/app_dump.coffee b/app/server/app_dump.coffee deleted file mode 100644 index aa03767..0000000 --- a/app/server/app_dump.coffee +++ /dev/null @@ -1,5 +0,0 @@ -appDump.allow = -> - if @user? and Roles.userIsInRole(@user, 'admin') - true - else - false