Merge pull request #63 from lalop/fix-html2js

Fix html2js
This commit is contained in:
David Baldwynn 2016-04-27 14:19:07 -07:00
commit 16d23fb4f2
13 changed files with 72 additions and 3107 deletions

View file

@ -227,7 +227,7 @@ module.exports = function(grunt) {
}, },
html2js: { html2js: {
options: { options: {
base: 'NodeForm', base: 'public',
watch: true, watch: true,
module: 'NodeForm.templates', module: 'NodeForm.templates',
singleModule: true, singleModule: true,
@ -294,7 +294,7 @@ module.exports = function(grunt) {
grunt.registerTask('lint:tests', ['jshint:allTests']); grunt.registerTask('lint:tests', ['jshint:allTests']);
// Build task(s). // Build task(s).
grunt.registerTask('build', ['lint', 'loadConfig', 'cssmin', 'ngAnnotate', 'uglify', 'html2js:main']); grunt.registerTask('build', ['lint', 'loadConfig', 'cssmin', 'html2js:main', 'ngAnnotate', 'uglify']);
// Test task(s). // Test task(s).
grunt.registerTask('test', ['lint:tests', 'test:server', 'test:client']); grunt.registerTask('test', ['lint:tests', 'test:server', 'test:client']);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,7 +1,8 @@
'use strict'; 'use strict';
// Setting up route // Setting up route
angular.module('forms').config(['$stateProvider', angular.module('forms').config([
'$stateProvider',
function($stateProvider) { function($stateProvider) {
// Forms state routing // Forms state routing
@ -45,7 +46,7 @@ angular.module('forms').config(['$stateProvider',
templateUrl: 'modules/forms/views/adminTabs/design.html' templateUrl: 'modules/forms/views/adminTabs/design.html'
}).state('viewForm.analyze', { }).state('viewForm.analyze', {
url: '/analyze', url: '/analyze',
templateUrl: 'modules/forms/views/adminTabs/analyze.html', templateUrl: 'modules/forms/views/adminTabs/analyze.html'
}).state('viewForm.create', { }).state('viewForm.create', {
url: '/create', url: '/create',
templateUrl: 'modules/forms/views/adminTabs/create.html' templateUrl: 'modules/forms/views/adminTabs/create.html'

View file

@ -1,8 +1,12 @@
'use strict'; 'use strict';
// Forms controller // Forms controller
angular.module('forms').controller('AdminFormController', ['$rootScope', '$scope', '$stateParams', '$state', 'Forms', 'CurrentForm', '$http', '$uibModal', 'myForm', angular.module('forms').controller('AdminFormController', [
function($rootScope, $scope, $stateParams, $state, Forms, CurrentForm, $http, $uibModal, myForm) { '$rootScope', '$scope', '$stateParams', '$state', 'Forms',
'CurrentForm', '$http', '$uibModal', 'myForm',
function($rootScope, $scope, $stateParams, $state, Forms,
CurrentForm, $http, $uibModal, myForm) {
$scope = $rootScope; $scope = $rootScope;
$scope.animationsEnabled = true; $scope.animationsEnabled = true;

View file

@ -1,6 +1,7 @@
'use strict'; 'use strict';
angular.module('forms').directive('configureFormDirective', ['$rootScope', '$http', 'Upload', 'CurrentForm', angular.module('forms').directive('configureFormDirective', [
'$rootScope', '$http', 'Upload', 'CurrentForm',
function ($rootScope, $http, Upload, CurrentForm) { function ($rootScope, $http, Upload, CurrentForm) {
return { return {
templateUrl: 'modules/forms/views/directiveViews/form/configure-form.client.view.html', templateUrl: 'modules/forms/views/directiveViews/form/configure-form.client.view.html',

View file

@ -1,6 +1,7 @@
'use strict'; 'use strict';
angular.module('forms').directive('editFormDirective', ['$rootScope', 'FormFields', angular.module('forms').directive('editFormDirective', [
'$rootScope', 'FormFields',
function ($rootScope, FormFields) { function ($rootScope, FormFields) {
return { return {
templateUrl: 'modules/forms/views/directiveViews/form/edit-form.client.view.html', templateUrl: 'modules/forms/views/directiveViews/form/edit-form.client.view.html',

View file

@ -1,6 +1,7 @@
'use strict'; 'use strict';
angular.module('forms').directive('editSubmissionsFormDirective', ['$rootScope', '$http', angular.module('forms').directive('editSubmissionsFormDirective', [
'$rootScope', '$http',
function ($rootScope, $http) { function ($rootScope, $http) {
return { return {
templateUrl: 'modules/forms/views/directiveViews/form/edit-submissions-form.client.view.html', templateUrl: 'modules/forms/views/directiveViews/form/edit-submissions-form.client.view.html',

View file

@ -33,7 +33,7 @@ angular.module('forms').directive('fieldDirective', ['$http', '$compile', '$root
templateUrl = templateUrl+type+'.html'; templateUrl = templateUrl+type+'.html';
} }
return $templateCache.get('../public/'+templateUrl); return $templateCache.get(templateUrl);
}; };
return { return {

View file

@ -1,7 +1,8 @@
'use strict'; 'use strict';
// Setting up route // Setting up route
angular.module('users').config(['$stateProvider', angular.module('users').config([
'$stateProvider',
function($stateProvider) { function($stateProvider) {
var checkLoggedin = function($q, $timeout, $state, User, Auth) { var checkLoggedin = function($q, $timeout, $state, User, Auth) {

File diff suppressed because one or more lines are too long