diff --git a/.travis.yml b/.travis.yml index 70cfdb4f..6f32b723 100755 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,7 @@ dist: trusty sudo: false node_js: - "5.0.0" - - "6.0.0" + - "6.11.1" env: - NODE_ENV=travis TRAVIS=travis CXX=g++-4.8 services: diff --git a/README.md b/README.md index 5f10a98f..719eef1f 100755 --- a/README.md +++ b/README.md @@ -84,9 +84,9 @@ PRERENDER_TOKEN=yourPrerender.ioToken COVERALLS_REPO_TOKEN=yourCoveralls.ioToken MAILER_EMAIL_ID=SMTP_Injection MAILER_FROM=noreply@yourdomain.com -MAILER_PASSWORD=your_sparkpost_apikey -MAILER_SERVICE_PROVIDER=SparkPost -BASE_URL=yourdomain.com +MAILER_PASSWORD=your_sendgrid_apikey +MAILER_SERVICE_PROVIDER=SendGrid +BASE_URL=localhost DSN_KEY=yourPrivateRavenKey ``` @@ -113,7 +113,7 @@ Then run these commands ``` $ docker run -p 27017:27017 -d --name some-mongo mongo $ docker run -p 127.0.0.1:6379:6379 -d --name some-redis redis -$ docker run --rm -p 3000:3000 --link some-redis:redis-db --link some-mongo:db tellform/development -e MAILER_EMAIL_ID='mailer_username' -p 80:80 +$ docker run --rm -p 3000:3000 --link some-redis:redis-db --link some-mongo:db -e "MAILER_EMAIL_ID=" -e "MAILER_FROM=" -e "MAILER_SERVICE_PROVIDER=" -e "MAILER_PASSWORD=" -e "BASE_URL=localhost" -p 80:80 tellform/development ``` diff --git a/app/tests/form_submission.routes.test.js b/app/tests/form_submission.routes.test.js index bf1e5e99..9cde8744 100644 --- a/app/tests/form_submission.routes.test.js +++ b/app/tests/form_submission.routes.test.js @@ -144,7 +144,7 @@ describe('Form Submission Routes Unit tests', function() { // Handle signin error should.not.exist(signinErr); - var submission_ids = _.pluck([submission], '_id'); + var submission_ids = _.map([submission], '_id'); //Delete form submissions submissionSession.delete('/forms/' + FormObj._id + '/submissions') @@ -182,7 +182,7 @@ describe('Form Submission Routes Unit tests', function() { SubmissionObj.save(function (err, submission) { should.not.exist(err); - var submission_ids = _.pluck([submission], '_id'); + var submission_ids = _.map([submission], '_id'); // Attempt to delete form submissions submissionSession.delete('/forms/' + FormObj._id + '/submissions') diff --git a/package.json b/package.json index d00e3819..64967ac2 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ }, "engines": { "node": ">=5.0.0", - "npm": ">=2.11.2" + "npm": ">=3.3.6" }, "scripts": { "addcontrib": "all-contributors add", diff --git a/public/modules/forms/admin/views/adminTabs/design.html b/public/modules/forms/admin/views/adminTabs/design.html deleted file mode 100644 index eb042deb..00000000 --- a/public/modules/forms/admin/views/adminTabs/design.html +++ /dev/null @@ -1,71 +0,0 @@ -
-
-
-
-
-
{{ 'BACKGROUND_COLOR' | translate }}
-
-
- -
-
- -
-
-
{{ 'QUESTION_TEXT_COLOR' | translate }}
-
- -
- -
-
- -
-
-
{{ 'ANSWER_TEXT_COLOR' | translate }}
-
- -
- -
-
- -
-
-
{{ 'BTN_BACKGROUND_COLOR' | translate }}
-
- -
- -
-
-
-
-
{{ 'BTN_TEXT_COLOR' | translate }}
-
- -
- -
-
-
-
- -
-
- -
-
- -
-
- -
-
-
diff --git a/public/modules/users/controllers/authentication.client.controller.js b/public/modules/users/controllers/authentication.client.controller.js index f075f817..7bc9c342 100755 --- a/public/modules/users/controllers/authentication.client.controller.js +++ b/public/modules/users/controllers/authentication.client.controller.js @@ -24,26 +24,23 @@ angular.module('users').controller('AuthenticationController', ['$scope', '$loca $scope.user = $rootScope.user; $scope.error = error; - console.log('loginError: '+error); + console.error('loginError: '+error); } ); }; $scope.signup = function() { - console.log($scope.credentials); User.signup($scope.credentials).then( function(response) { - console.log('signup-success'); $state.go('signup-success'); }, function(error) { - console.log('Error: '); - console.log(error); + console.error(error); if(error) { $scope.error = error; - console.log(error); - }else { - console.log('No response received'); + console.error(error); + } else { + console.error('No response received'); } } );