Script for building minified javascript using closure compiler

This commit is contained in:
chouseknecht
2013-06-10 18:31:17 -04:00
parent cba55a061a
commit 9e9e41db35
41 changed files with 197 additions and 213 deletions

View File

@@ -4,6 +4,7 @@
* Credentials.js
* Form definition for Credential model
*
*
*
*/
angular.module('CredentialFormDefinition', [])
@@ -58,7 +59,7 @@ angular.module('CredentialFormDefinition', [])
addRequired: false,
editRequired: false,
rows: 10,
class: 'span10'
"class": 'span10'
},
"ssh_key_unlock": {
label: 'Key Password',
@@ -102,32 +103,13 @@ angular.module('CredentialFormDefinition', [])
awPassMatch: true,
associated: 'sudo_password'
}
// ,
// user: {
// label: 'User',
// type: 'lookup',
// sourceModel: 'user',
// sourceField: 'username',
// addRequired: false,
// editRequired: false,
// ngClick: 'lookUpUser()'
// },
// team: {
// label: 'Team',
// type: 'lookup',
// sourceModel: 'team',
// sourceField: 'name',
// addRequired: false,
// editRequired: false,
// ngClick: 'lookUpTeam()'
// }
},
buttons: { //for now always generates <button> tags
save: {
label: 'Save',
icon: 'icon-ok',
class: 'btn-success',
"class": 'btn-success',
ngClick: 'formSave()', //$scope.function to call on click, optional
ngDisabled: true //Disable when $pristine or $invalid, optional
},

View File

@@ -4,7 +4,7 @@
* Groups.js
* Form definition for Group model
*
*
*
*/
angular.module('GroupFormDefinition', [])
.value(
@@ -34,7 +34,7 @@ angular.module('GroupFormDefinition', [])
addRequired: false,
editRequird: false,
rows: 10,
default: "\{\}",
"default": "\{\}",
dataTitle: 'Group Variables',
dataPlacement: 'right',
awPopOver: '<p>Enter variables as JSON. Both the key and value must be wrapped in double quotes. ' +
@@ -49,7 +49,7 @@ angular.module('GroupFormDefinition', [])
save: {
label: 'Save',
icon: 'icon-ok',
class: 'btn btn-success',
"class": 'btn btn-success',
ngClick: 'formSave()', //$scope.function to call on click, optional
ngDisabled: true //Disable when $pristine or $invalid, optional
},

View File

@@ -4,7 +4,7 @@
* Hosts.js
* Form definition for Host model
*
*
*
*/
angular.module('HostFormDefinition', [])
.value(
@@ -39,7 +39,7 @@ angular.module('HostFormDefinition', [])
addRequired: false,
editRequird: false,
rows: 10,
default: "\{\}",
"default": "\{\}",
awPopOver: "<p>Enter variables as JSON. Both the key and value must be wrapped in double quotes. " +
"Separate variables with commas, and wrap the entire string with { }. " +
"&nbsp;For example:</p><p>{<br\>&quot;ntp_server&quot;: &quot;ntp.example.com&quot;,<br \>" +
@@ -54,7 +54,7 @@ angular.module('HostFormDefinition', [])
save: {
label: 'Save',
icon: 'icon-ok',
class: 'btn-success',
"class": 'btn-success',
ngClick: 'formSave()', //$scope.function to call on click, optional
ngDisabled: true //Disable when $pristine or $invalid, optional
},

View File

@@ -4,7 +4,7 @@
* Inventories.js
* Form definition for User model
*
*
*
*/
angular.module('InventoryFormDefinition', [])
.value(
@@ -49,7 +49,7 @@ angular.module('InventoryFormDefinition', [])
save: {
label: 'Save',
icon: 'icon-ok',
class: 'btn-success',
"class": 'btn-success',
ngClick: 'formSave()', //$scope.function to call on click, optional
ngDisabled: true //Disable when $pristine or $invalid, optional
},
@@ -100,14 +100,14 @@ angular.module('InventoryFormDefinition', [])
ngClick: "editHost(\{\{ host.id \}\}, '\{\{ host.name \}\}')",
icon: 'icon-edit',
label: 'Edit',
class: 'btn-success',
"class": 'btn-success',
awToolTip: 'Edit host'
},
delete: {
"delete": {
ngClick: "deleteHost(\{\{ host.id \}\}, '\{\{ host.name \}\}')",
icon: 'icon-remove',
label: 'Delete',
class: 'btn-danger',
"class": 'btn-danger',
awToolTip: 'Remove host'
}
}

View File

@@ -4,7 +4,7 @@
* JobEvents.js
* Form definition for Job Events model
*
*
*
*/
angular.module('JobEventFormDefinition', [])
.value(
@@ -19,7 +19,7 @@ angular.module('JobEventFormDefinition', [])
label: 'Event ID',
type: 'text',
readonly: true,
class: 'span2'
"class": 'span2'
},
event_display: {
label: 'Event',
@@ -30,7 +30,7 @@ angular.module('JobEventFormDefinition', [])
label: 'Created',
type: 'text',
readonly: true,
class: 'span4'
"class": 'span4'
},
host: {
label: 'Host',
@@ -40,13 +40,13 @@ angular.module('JobEventFormDefinition', [])
status: {
label: 'Status',
type: 'text',
class: 'job-\{\{ event_status \}\}',
"class": 'job-\{\{ event_status \}\}',
readonly: true
},
event_data: {
label: 'Event Data',
type: 'textarea',
class: 'span12',
"class": 'span12',
rows: 10,
readonly: true
}

View File

@@ -4,7 +4,7 @@
* JobEvents.js
* Form definition for Job Events model
*
*
* @dict
*/
angular.module('JobEventFormDefinition', [])
.value(

View File

@@ -4,7 +4,7 @@
* JobTemplates.js
* Form definition for Job Template model
*
*
*
*/
angular.module('JobTemplateFormDefinition', [])
.value(
@@ -35,7 +35,7 @@ angular.module('JobTemplateFormDefinition', [])
label: 'Job Type',
type: 'select',
ngOptions: 'type.label for type in job_type_options',
default: 0,
"default": 0,
addRequired: true,
editRequired: true,
column: 1,
@@ -92,8 +92,8 @@ angular.module('JobTemplateFormDefinition', [])
min: 0,
max: 100,
slider: true,
class: 'input-mini',
default: '0',
"class": 'input-mini',
"default": '0',
addRequired: false,
editRequired: false,
column: 2,
@@ -119,7 +119,7 @@ angular.module('JobTemplateFormDefinition', [])
label: 'Verbosity',
type: 'select',
ngOptions: 'v.label for v in verbosity_options',
default: 0,
"default": 0,
addRequired: true,
editRequired: true,
column: 2,
@@ -131,10 +131,10 @@ angular.module('JobTemplateFormDefinition', [])
label: 'Extra Variables',
type: 'textarea',
rows: 6,
class: 'span12',
"class": 'span12',
addRequired: false,
editRequired: false,
default: "\{\}",
"default": "\{\}",
column: 2,
awPopOver: "<p>Enter variables as JSON. Both the key and value must be wrapped in double quotes. " +
"Separate variables with commas, and wrap the entire string with { }. " +
@@ -150,7 +150,7 @@ angular.module('JobTemplateFormDefinition', [])
save: {
label: 'Save',
icon: 'icon-ok',
class: 'btn-success',
"class": 'btn-success',
ngClick: 'formSave()', //$scope.function to call on click, optional
ngDisabled: true //Disable when $pristine or $invalid, optional
},
@@ -190,7 +190,7 @@ angular.module('JobTemplateFormDefinition', [])
icon: 'icon-zoom-in'
}
}
},
}
}
}); //InventoryForm

View File

@@ -4,7 +4,7 @@
* Jobs.js
* Form definition for Jobs model
*
*
* @dict
*/
angular.module('JobFormDefinition', [])
.value(
@@ -35,7 +35,7 @@ angular.module('JobFormDefinition', [])
label: 'Job Type',
type: 'select',
ngOptions: 'type.label for type in job_type_options',
default: 'run',
"default": 'run',
addRequired: true,
editRequired: true,
column: 1
@@ -87,8 +87,8 @@ angular.module('JobFormDefinition', [])
min: 0,
max: 100,
slider: true,
class: 'input-mini',
default: '0',
"class": 'input-mini',
"default": '0',
addRequired: false,
editRequired: false,
column: 2,
@@ -114,7 +114,7 @@ angular.module('JobFormDefinition', [])
label: 'Verbosity',
type: 'select',
ngOptions: 'v.label for v in verbosity_options',
default: 0,
"default": 0,
addRequired: true,
editRequired: true,
column: 2,
@@ -126,7 +126,7 @@ angular.module('JobFormDefinition', [])
label: 'Extra Variables',
type: 'textarea',
rows: 6,
class: 'span12',
"class": 'span12',
addRequired: false,
editRequired: false,
column: 2
@@ -137,7 +137,7 @@ angular.module('JobFormDefinition', [])
save: {
label: 'Save',
icon: 'icon-ok',
class: 'btn-success',
"class": 'btn-success',
ngClick: 'formSave()', //$scope.function to call on click, optional
ngDisabled: true //Disable when $pristine or $invalid, optional
},
@@ -161,14 +161,14 @@ angular.module('JobFormDefinition', [])
type: 'textarea',
readonly: true,
rows: 20,
class: 'span12'
"class": 'span12'
},
result_traceback: {
label: 'Traceback',
type: 'textarea',
readonly: true,
rows: 10,
class: 'span12',
"class": 'span12',
ngShow: "result_traceback != ''"
}
},
@@ -178,7 +178,7 @@ angular.module('JobFormDefinition', [])
label: 'Refresh',
icon: 'icon-refresh',
ngClick: "refresh()",
class: 'btn-small btn-success',
"class": 'btn-small btn-success',
awToolTip: 'Refresh job status &amp; output',
mode: 'all'
},
@@ -186,7 +186,7 @@ angular.module('JobFormDefinition', [])
label: 'Hosts',
icon: 'icon-th-large',
ngClick: "jobSummary()",
class: 'btn-info btn-small',
"class": 'btn-info btn-small',
awToolTip: 'View host summary',
mode: 'all'
},
@@ -194,9 +194,9 @@ angular.module('JobFormDefinition', [])
label: 'Events',
icon: 'icon-list-ul',
ngClick: "jobEvents()",
class: 'btn-info btn-small',
"class": 'btn-info btn-small',
awToolTip: 'Edit job events',
mode: 'all',
mode: 'all'
}
},

View File

@@ -4,7 +4,7 @@
* Organization.js
* Form definition for Organization model
*
*
*
*/
angular.module('OrganizationFormDefinition', [])
.value(
@@ -35,7 +35,7 @@ angular.module('OrganizationFormDefinition', [])
save: {
label: 'Save',
icon: 'icon-ok',
class: 'btn-success',
"class": 'btn-success',
ngClick: 'formSave()', //$scope.function to call on click, optional
ngDisabled: true //Disable when $pristine or $invalid, optional
},
@@ -61,7 +61,7 @@ angular.module('OrganizationFormDefinition', [])
label: 'Add',
icon: 'icon-plus',
awToolTip: 'Add a new user'
},
}
},
fields: {
@@ -82,14 +82,14 @@ angular.module('OrganizationFormDefinition', [])
label: 'Edit',
ngClick: "edit('users', \{\{ user.id \}\}, '\{\{ user.username \}\}')",
icon: 'icon-edit',
class: 'btn-success',
"class": 'btn-success',
awToolTip: 'Edit user'
},
delete: {
"delete": {
label: 'Delete',
ngClick: "delete('users', \{\{ user.id \}\}, '\{\{ user.username \}\}', 'users')",
icon: 'icon-remove',
class: 'btn-danger',
"class": 'btn-danger',
awToolTip: 'Remove user'
}
}
@@ -126,14 +126,14 @@ angular.module('OrganizationFormDefinition', [])
label: 'Edit',
ngClick: "edit('users', \{\{ admin.id \}\}, '\{\{ admin.username \}\}')",
icon: 'icon-edit',
class: 'btn-success',
"class": 'btn-success',
awToolTip: 'Edit administrator'
},
delete: {
"delete": {
label: 'Delete',
ngClick: "delete('admins', \{\{ admin.id \}\}, '\{\{ admin.username \}\}', 'administrators')",
icon: 'icon-remove',
class: 'btn-danger',
"class": 'btn-danger',
awToolTip: 'Remove administrator'
}
}

View File

@@ -5,6 +5,7 @@
*
* Form definition for Projects model
*
*
*/
angular.module('ProjectFormDefinition', [])
.value(
@@ -41,7 +42,7 @@ angular.module('ProjectFormDefinition', [])
save: {
label: 'Save',
icon: 'icon-ok',
class: 'btn-success',
"class": 'btn-success',
ngClick: 'formSave()', //$scope.function to call on click, optional
ngDisabled: true //Disable when $pristine or $invalid, optional
},

View File

@@ -4,7 +4,7 @@
* Teams.js
* Form definition for Team model
*
*
*
*/
angular.module('TeamFormDefinition', [])
.value(
@@ -44,7 +44,7 @@ angular.module('TeamFormDefinition', [])
save: {
label: 'Save',
icon: 'icon-ok',
class: 'btn-success',
"class": 'btn-success',
ngClick: 'formSave()', //$scope.function to call on click, optional
ngDisabled: true //Disable when $pristine or $invalid, optional
},
@@ -70,7 +70,7 @@ angular.module('TeamFormDefinition', [])
icon: 'icon-plus',
label: 'Add',
awToolTip: 'Add a user'
},
}
},
fields: {
@@ -91,14 +91,14 @@ angular.module('TeamFormDefinition', [])
label: 'Edit',
ngClick: "edit('users', \{\{ user.id \}\}, '\{\{ user.username \}\}')",
icon: 'icon-edit',
class: 'btn-success',
"class": 'btn-success',
awToolTip: 'Edit user'
},
delete: {
"delete": {
label: 'Delete',
ngClick: "delete('users', \{\{ user.id \}\}, '\{\{ user.username \}\}', 'users')",
icon: 'icon-remove',
class: 'btn-danger',
"class": 'btn-danger',
awToolTip: 'Remove user'
}
}
@@ -116,7 +116,7 @@ angular.module('TeamFormDefinition', [])
icon: 'icon-plus',
label: 'Add',
add: 'Add a new credential'
},
}
},
fields: {
@@ -134,14 +134,14 @@ angular.module('TeamFormDefinition', [])
label: 'Edit',
ngClick: "edit('credentials', \{\{ credential.id \}\}, '\{\{ credential.name \}\}')",
icon: 'icon-edit',
class: 'btn-success',
"class": 'btn-success',
awToolTip: 'Modify the credential'
},
delete: {
"delete": {
label: 'Delete',
ngClick: "delete('credentials', \{\{ credential.id \}\}, '\{\{ credential.name \}\}', 'credentials')",
icon: 'icon-remove',
class: 'btn-danger',
"class": 'btn-danger',
awToolTip: 'Remove the credential'
}
}
@@ -158,7 +158,7 @@ angular.module('TeamFormDefinition', [])
ngClick: "add('projects')",
icon: 'icon-plus',
label: 'Add'
},
}
},
fields: {
@@ -176,14 +176,14 @@ angular.module('TeamFormDefinition', [])
label: 'Edit',
ngClick: "edit('projects', \{\{ project.id \}\}, '\{\{ project.name \}\}')",
icon: 'icon-edit',
class: 'btn-success',
"class": 'btn-success',
awToolTip: 'Modify the project'
},
delete: {
"delete": {
label: 'Delete',
ngClick: "delete('projects', \{\{ project.id \}\}, '\{\{ project.name \}\}', 'projects')",
icon: 'icon-remove',
class: 'btn-danger',
"class": 'btn-danger',
awToolTip: 'Remove the project'
}
}

View File

@@ -4,7 +4,7 @@
* Users.js
* Form definition for User model
*
*
*
*/
angular.module('UserFormDefinition', [])
.value(
@@ -72,7 +72,7 @@ angular.module('UserFormDefinition', [])
type: 'checkbox',
trueValue: 'true',
falseValue: 'false',
default: 'false',
"default": 'false',
ngShow: "current_user['is_superuser'] == true"
}
},
@@ -81,7 +81,7 @@ angular.module('UserFormDefinition', [])
save: {
label: 'Save',
icon: 'icon-ok',
class: 'btn-success',
"class": 'btn-success',
ngClick: 'formSave()', //$scope.function to call on click, optional
ngDisabled: true //Disable when $pristine or $invalid, optional
},
@@ -106,7 +106,7 @@ angular.module('UserFormDefinition', [])
icon: 'icon-plus',
label: 'Add',
awToolTip: 'Add a credential for this user'
},
}
},
fields: {
@@ -124,14 +124,14 @@ angular.module('UserFormDefinition', [])
label: 'Edit',
ngClick: "edit('credentials', \{\{ credential.id \}\}, '\{\{ credential.name \}\}')",
icon: 'icon-edit',
class: 'btn-success',
"class": 'btn-success',
awToolTip: 'Edit the credential'
},
delete: {
"delete": {
label: 'Delete',
ngClick: "delete('credentials', \{\{ credential.id \}\}, '\{\{ credential.name \}\}', 'credentials')",
icon: 'icon-remove',
class: 'btn-danger',
"class": 'btn-danger',
awToolTip: 'Delete the credential'
}
}
@@ -152,7 +152,7 @@ angular.module('UserFormDefinition', [])
},
description: {
label: 'Description'
},
}
}
},