Merge branch 'master' of github.com:whitef0x0/tellform
This commit is contained in:
commit
6afa2b5e24
|
@ -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:
|
||||
|
|
|
@ -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=<YourEmailAPI_ID>" -e "MAILER_FROM=<noreply@yourdomain.com>" -e "MAILER_SERVICE_PROVIDER=<YourEmailAPIProvider>" -e "MAILER_PASSWORD=<YourAPIKey>" -e "BASE_URL=localhost" -p 80:80 tellform/development
|
||||
```
|
||||
|
||||
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
},
|
||||
"engines": {
|
||||
"node": ">=5.0.0",
|
||||
"npm": ">=2.11.2"
|
||||
"npm": ">=3.3.6"
|
||||
},
|
||||
"scripts": {
|
||||
"addcontrib": "all-contributors add",
|
||||
|
|
|
@ -1,71 +0,0 @@
|
|||
<div class="config-form design container">
|
||||
<div class="row">
|
||||
<div class="col-md-4 col-sm-12 container">
|
||||
<div class="row field">
|
||||
<div class="field-title col-sm-3">
|
||||
<h5>{{ 'BACKGROUND_COLOR' | translate }}</h5>
|
||||
</div>
|
||||
<div class="field-input col-sm-6">
|
||||
<input ng-change="refreshIframe()" class="form-control" colorpicker="hex" type="text" ng-model="myform.design.colors.backgroundColor" ng-style="{ 'background-color': myform.design.colors.backgroundColor }"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row field">
|
||||
<div class="field-title col-sm-3">
|
||||
<h5>{{ 'QUESTION_TEXT_COLOR' | translate }}</h5>
|
||||
</div>
|
||||
|
||||
<div class="field-input col-sm-6">
|
||||
<input ng-change="refreshIframe()" class="form-control" colorpicker="hex" type="text" ng-model="myform.design.colors.questionColor" ng-style="{ 'background-color': myform.design.colors.questionColor }"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row field">
|
||||
<div class="field-title col-sm-3">
|
||||
<h5>{{ 'ANSWER_TEXT_COLOR' | translate }}</h5>
|
||||
</div>
|
||||
|
||||
<div class="field-input col-sm-6">
|
||||
<input ng-change="refreshIframe()" class="form-control" colorpicker="hex" type="text" ng-model="myform.design.colors.answerColor" ng-style="{ 'background-color': myform.design.colors.answerColor }"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row field">
|
||||
<div class="field-title col-sm-3">
|
||||
<h5>{{ 'BTN_BACKGROUND_COLOR' | translate }}</h5>
|
||||
</div>
|
||||
|
||||
<div class="field-input col-sm-6">
|
||||
<input ng-change="refreshIframe()" class="form-control" colorpicker="hex" type="text"
|
||||
ng-model="myform.design.colors.buttonColor"
|
||||
ng-style="{ 'background-color': myform.design.colors.buttonColor }"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row field">
|
||||
<div class="field-title col-sm-3">
|
||||
<h5>{{ 'BTN_TEXT_COLOR' | translate }}</h5>
|
||||
</div>
|
||||
|
||||
<div class="field-input col-sm-6">
|
||||
<input ng-change="refreshIframe()" class="form-control" colorpicker="hex" type="text"
|
||||
ng-model="myform.design.colors.buttonTextColor"
|
||||
ng-style="{ 'background-color': myform.design.colors.buttonTextColor }"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-8 hide-md hide-lg">
|
||||
<iframe refreshable="refreshDesign" ng-if="!!form_url" src="{{form_url}}" style="border: none; box-shadow: 0px 0px 10px 0px grey; overflow: hidden; height: 95vh; width: 90%; position: absolute;"></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-offset-4 col-sm-2">
|
||||
<button class="btn btn-signup btn-rounded" type="button" ng-click="update(false, myform, false, false, null)">
|
||||
<i class="icon-arrow-left icon-white"></i>
|
||||
{{ 'SAVE_CHANGES' | translate }}</button>
|
||||
</div>
|
||||
<div class="col-sm-1">
|
||||
<button class="btn btn-secondary btn-rounded" type="button" ng-click="resetForm()"><i class="icon-eye-open icon-white"></i>{{ 'CANCEL' | translate }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -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);
|
||||
console.error(error);
|
||||
} else {
|
||||
console.log('No response received');
|
||||
console.error('No response received');
|
||||
}
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue