Revert "Fix html2js"

This commit is contained in:
David Baldwynn 2016-04-28 16:47:50 -07:00
parent e269fd8756
commit 79de5038ac
13 changed files with 3107 additions and 72 deletions

View file

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

2713
public/dist/application.js vendored Normal file

File diff suppressed because one or more lines are too long

4
public/dist/application.min.css vendored Normal file

File diff suppressed because one or more lines are too long

4
public/dist/application.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View file

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

View file

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

View file

@ -1,7 +1,6 @@
'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) {
return {
templateUrl: 'modules/forms/views/directiveViews/form/configure-form.client.view.html',

View file

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

View file

@ -1,7 +1,6 @@
'use strict';
angular.module('forms').directive('editSubmissionsFormDirective', [
'$rootScope', '$http',
angular.module('forms').directive('editSubmissionsFormDirective', ['$rootScope', '$http',
function ($rootScope, $http) {
return {
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';
}
return $templateCache.get(templateUrl);
return $templateCache.get('../public/'+templateUrl);
};
return {

View file

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

File diff suppressed because one or more lines are too long