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,7 +4,7 @@
* Admins.js
* List view object for Admins data model.
*
*
* @dict
*/
angular.module('AdminListDefinition', [])
.value(

View File

@@ -4,7 +4,7 @@
* Credentials.js
* List view object for Credential data model.
*
*
* @dict
*/
angular.module('CredentialsListDefinition', [])
.value(
@@ -48,7 +48,7 @@ angular.module('CredentialsListDefinition', [])
mode: 'all', // One of: edit, select, all
ngClick: 'addCredential()',
basePaths: ['teams','users'], // base path must be in list, or action not available
class: 'btn-success btn-small',
"class": 'btn-success btn-small',
awToolTip: 'Create a new credential'
}
},
@@ -58,15 +58,15 @@ angular.module('CredentialsListDefinition', [])
ngClick: "editCredential(\{\{ credential.id \}\})",
icon: 'icon-edit',
label: 'Edit',
class: 'btn-small btn-success',
"class": 'btn-small btn-success',
awToolTip: 'View/Edit credential'
},
delete: {
"delete": {
ngClick: "deleteCredential(\{\{ credential.id \}\},'\{\{ credential.name \}\}')",
icon: 'icon-remove',
label: 'Delete',
class: 'btn-small btn-danger',
"class": 'btn-small btn-danger',
awToolTip: 'Delete credential'
}
}

View File

@@ -4,7 +4,7 @@
* Groups.js
* List view object for Group data model.
*
*
*
*/
angular.module('GroupListDefinition', [])
.value(
@@ -34,7 +34,7 @@ angular.module('GroupListDefinition', [])
icon: 'icon-plus',
mode: 'all', // One of: edit, select, all
ngClick: 'createGroup()',
class: 'btn-success btn-small',
"class": 'btn-success btn-small',
awToolTip: 'Create a new group'
}
},
@@ -44,15 +44,15 @@ angular.module('GroupListDefinition', [])
label: 'Edit',
ngClick: "editGroup(\{\{ group.id \}\})",
icon: 'icon-edit',
class: 'btn-small btn-success',
"class": 'btn-small btn-success',
awToolTip: 'View/Edit group'
},
delete: {
"delete": {
label: 'Delete',
ngClick: "deleteGroup(\{\{ group.id \}\},'\{\{ group.name \}\}')",
icon: 'icon-remove',
class: 'btn-small btn-danger',
"class": 'btn-small btn-danger',
awToolTip: 'Delete group'
}
}

View File

@@ -4,7 +4,7 @@
* Hosts.js
* List view object for Users data model.
*
*
*
*/
angular.module('HostListDefinition', [])
.value(
@@ -36,7 +36,7 @@ angular.module('HostListDefinition', [])
mode: 'all', // One of: edit, select, all
ngClick: 'createHost()',
ngHide: 'showAddButton == false',
class: 'btn-success btn-small',
"class": 'btn-success btn-small',
awToolTip: 'Create a new host'
}
},
@@ -46,15 +46,15 @@ angular.module('HostListDefinition', [])
label: 'Edit',
ngClick: "editHost(\{\{ host.id \}\})",
icon: 'icon-edit',
class: 'btn-small btn-success',
"class": 'btn-small btn-success',
awToolTip: 'View/Edit host'
},
delete: {
"delete": {
label: 'Delete',
ngClick: "deleteHost(\{\{ host.id \}\},'\{\{ host.name \}\}')",
icon: 'icon-remove',
class: 'btn-small btn-danger',
"class": 'btn-small btn-danger',
awToolTip: 'Delete host'
}
}

View File

@@ -4,7 +4,7 @@
* Inventories.js
* List view object for Inventories data model.
*
*
*
*/
angular.module('InventoriesListDefinition', [])
.value(
@@ -40,7 +40,7 @@ angular.module('InventoriesListDefinition', [])
icon: 'icon-plus',
mode: 'all', // One of: edit, select, all
ngClick: 'addInventory()',
class: 'btn-small btn-success',
"class": 'btn-small btn-success',
awToolTip: 'Create a new row'
}
},
@@ -50,15 +50,15 @@ angular.module('InventoriesListDefinition', [])
label: 'Edit',
ngClick: "editInventory(\{\{ inventory.id \}\})",
icon: 'icon-edit',
class: 'btn-small btn-success',
"class": 'btn-small btn-success',
awToolTip: 'View/Edit inventory'
},
delete: {
"delete": {
label: 'Delete',
ngClick: "deleteInventory(\{\{ inventory.id \}\},'\{\{ inventory.name \}\}')",
icon: 'icon-remove',
class: 'btn-small btn-danger',
"class": 'btn-small btn-danger',
awToolTip: 'Delete'
}
}

View File

@@ -4,7 +4,7 @@
* Jobs.js
* List view object for Team data model.
*
*
*
*/
angular.module('JobEventsListDefinition', [])
.value(
@@ -28,7 +28,7 @@ angular.module('JobEventsListDefinition', [])
link: true
},
created: {
label: 'Creation Date',
label: 'Creation Date'
},
host: {
label: 'Host',
@@ -40,7 +40,7 @@ angular.module('JobEventsListDefinition', [])
status: {
label: 'Status',
icon: 'icon-circle',
class: 'job-\{\{ jobevent.status \}\}',
"class": 'job-\{\{ jobevent.status \}\}',
searchField: 'failed',
searchType: 'boolean',
searchOptions: [{ name: "success", value: 0 }, { name: "error", value: 1 }]
@@ -53,14 +53,14 @@ angular.module('JobEventsListDefinition', [])
icon: 'icon-refresh',
label: 'Refresh',
awToolTip: 'Refresh the page',
class: 'btn-small btn-success',
"class": 'btn-small btn-success',
mode: 'all'
},
edit: {
label: 'Edit',
ngClick: "jobDetails()",
icon: 'icon-edit',
class: 'btn-small btn-success',
"class": 'btn-small btn-success',
awToolTip: 'Edit job details',
mode: 'all'
},
@@ -68,7 +68,7 @@ angular.module('JobEventsListDefinition', [])
label: 'Hosts',
icon: 'icon-th-large',
ngClick: "jobSummary()",
class: 'btn-info btn-small',
"class": 'btn-info btn-small',
awToolTip: 'View host summary',
mode: 'all'
}
@@ -79,8 +79,8 @@ angular.module('JobEventsListDefinition', [])
label: 'View',
ngClick: "editJobEvent(\{\{ jobevent.id \}\})",
icon: 'icon-zoom-in',
class: 'btn-small',
awToolTip: 'View event details',
},
"class": 'btn-small',
awToolTip: 'View event details'
}
}
});

View File

@@ -4,7 +4,7 @@
* JobHosts.js
* List view object for Job Host Summary data model.
*
*
*
*/
angular.module('JobHostDefinition', [])
.value(
@@ -53,7 +53,7 @@ angular.module('JobHostDefinition', [])
label: 'Refresh',
icon: 'icon-refresh',
ngClick: "refresh()",
class: 'btn-success btn-small',
"class": 'btn-success btn-small',
awToolTip: 'Refresh the page',
mode: 'all'
},
@@ -61,7 +61,7 @@ angular.module('JobHostDefinition', [])
label: 'Edit',
icon: 'icon-edit',
ngClick: "jobDetails()",
class: 'btn-success btn-small',
"class": 'btn-success btn-small',
awToolTip: 'Edit job details',
mode: 'all'
},
@@ -69,9 +69,9 @@ angular.module('JobHostDefinition', [])
label: 'Events',
icon: 'icon-list-ul',
ngClick: "jobEvents()",
class: 'btn-info btn-small',
"class": 'btn-info btn-small',
awToolTip: 'View job events',
mode: 'all',
mode: 'all'
}
},

View File

@@ -4,7 +4,7 @@
* JobTemplates.js
* List view object for Job Templates data model.
*
*
*
*/
angular.module('JobTemplatesListDefinition', [])
.value(
@@ -34,7 +34,7 @@ angular.module('JobTemplatesListDefinition', [])
icon: 'icon-plus',
mode: 'all', // One of: edit, select, all
ngClick: 'addJobTemplate()',
class: 'btn-success btn-small',
"class": 'btn-success btn-small',
basePaths: ['job_templates'],
awToolTip: 'Create a new template'
}
@@ -46,21 +46,21 @@ angular.module('JobTemplatesListDefinition', [])
ngClick: "editJobTemplate(\{\{ job_template.id \}\})",
icon: 'icon-edit',
awToolTip: 'Edit template',
class: 'btn-small btn-success'
"class": 'btn-small btn-success'
},
submit: {
label: 'Launch',
icon: 'icon-rocket',
mode: 'all',
class: 'btn-small btn-success',
"class": 'btn-small btn-success',
ngClick: 'submitJob(\{\{ job_template.id \}\})',
awToolTip: 'Start a job using this template'
},
delete: {
"delete": {
label: 'Delete',
ngClick: "deleteJobTemplate(\{\{ job_template.id \}\},'\{\{ job_template.name \}\}')",
icon: 'icon-remove',
class: 'btn-danger btn-small',
"class": 'btn-danger btn-small',
awToolTip: 'Delete template'
}
}

View File

@@ -4,7 +4,7 @@
* Jobs.js
* List view object for Team data model.
*
*
*
*/
angular.module('JobsListDefinition', [])
.value(
@@ -15,7 +15,7 @@ angular.module('JobsListDefinition', [])
editTitle: 'Jobs',
index: false,
hover: true,
class: 'jobs-table',
"class": 'jobs-table',
fields: {
id: {
@@ -26,7 +26,7 @@ angular.module('JobsListDefinition', [])
},
name: {
label: 'Name',
link: true,
link: true
},
created: {
label: 'Creation Date',
@@ -35,7 +35,7 @@ angular.module('JobsListDefinition', [])
status: {
label: 'Status',
icon: 'icon-circle',
class: 'job-\{\{ job.status \}\}',
"class": 'job-\{\{ job.status \}\}',
searchType: 'select',
searchOptions: [
{ name: "new", value: "new" },
@@ -51,7 +51,7 @@ angular.module('JobsListDefinition', [])
actions: {
refresh: {
label: 'Refresh',
class: 'btn-success btn-small',
"class": 'btn-success btn-small',
ngClick: "refreshJob(\{\{ job.id \}\})",
icon: 'icon-refresh',
awToolTip: 'Refresh the page',
@@ -64,7 +64,7 @@ angular.module('JobsListDefinition', [])
label: 'Hosts',
icon: 'icon-th-large',
ngClick: "viewSummary(\{{ job.id \}\}, '\{\{ job.name \}\}')",
class: 'btn-info btn-small',
"class": 'btn-info btn-small',
awToolTip: 'View host summary',
ngDisabled: "job.status == 'new'"
},
@@ -73,7 +73,7 @@ angular.module('JobsListDefinition', [])
icon: 'icon-list-ul',
mode: 'all',
ngClick: "viewEvents(\{{ job.id \}\}, '\{\{ job.name \}\}')",
class: 'btn-info btn-small',
"class": 'btn-info btn-small',
awToolTip: 'View events',
ngDisabled: "job.status == 'new'"
},
@@ -81,23 +81,23 @@ angular.module('JobsListDefinition', [])
icon: 'icon-edit',
label: 'Edit',
ngClick: "editJob(\{\{ job.id \}\}, '\{\{ job.name \}\}')",
class: 'btn-success btn-small',
awToolTip: 'Edit job details',
"class": 'btn-success btn-small',
awToolTip: 'Edit job details'
},
rerun: {
icon: 'icon-retweet',
mode: 'all',
ngClick: "submitJob(\{\{ job.id \}\}, '\{\{ job.summary_fields.job_template.name \}\}' )",
class: 'btn-success btn-small',
awToolTip: 'Re-run this job',
"class": 'btn-success btn-small',
awToolTip: 'Re-run this job'
},
cancel: {
icon: 'icon-minus-sign',
mode: 'all',
ngClick: 'deleteJob(\{\{ job.id \}\})',
class: 'btn-danger btn-small',
"class": 'btn-danger btn-small',
awToolTip: 'Cancel job',
ngDisabled: "job.status != 'new' && job.status != 'pending' && job.status != 'running'"
},
}
}
});

View File

@@ -4,7 +4,7 @@
* Organizations.js
* List view object for Organizations data model.
*
*
*
*/
angular.module('OrganizationListDefinition', [])
.value(
@@ -33,7 +33,7 @@ angular.module('OrganizationListDefinition', [])
icon: 'icon-plus',
mode: 'all', // One of: edit, select, all
ngClick: 'addOrganization()',
class: 'btn-success btn-small',
"class": 'btn-success btn-small',
awToolTip: 'Create a new row'
}
},
@@ -43,15 +43,15 @@ angular.module('OrganizationListDefinition', [])
label: 'Edit',
ngClick: "editOrganization(\{\{ organization.id \}\})",
icon: 'icon-edit',
class: 'btn-small btn-success',
"class": 'btn-small btn-success',
awToolTip: 'View/Edit organization'
},
delete: {
"delete": {
label: 'Delete',
ngClick: "deleteOrganization(\{\{ organization.id \}\},'\{\{ organization.name \}\}')",
icon: 'icon-remove',
class: 'btn-small btn-danger',
"class": 'btn-small btn-danger',
awToolTip: 'Delete organization'
}
}

View File

@@ -34,7 +34,7 @@ angular.module('ProjectsListDefinition', [])
icon: 'icon-plus',
mode: 'all', // One of: edit, select, all
ngClick: 'addProject()',
class: 'btn-success btn-small',
"class": 'btn-success btn-small',
awToolTip: 'Create a new project'
}
},
@@ -44,15 +44,15 @@ angular.module('ProjectsListDefinition', [])
label: 'Edit',
ngClick: "editProject(\{\{ project.id \}\})",
icon: 'icon-edit',
class: 'btn-small btn-success',
"class": 'btn-small btn-success',
awToolTip: 'View/edit project'
},
delete: {
"delete": {
label: 'Delete',
ngClick: "deleteProject(\{\{ project.id \}\},'\{\{ project.name \}\}')",
icon: 'icon-remove',
class: 'btn-small btn-danger',
"class": 'btn-small btn-danger',
awToolTip: 'Delete project'
}
}

View File

@@ -4,7 +4,7 @@
* Teams.js
* List view object for Team data model.
*
*
*
*/
angular.module('TeamsListDefinition', [])
.value(
@@ -40,7 +40,7 @@ angular.module('TeamsListDefinition', [])
icon: 'icon-plus',
mode: 'all', // One of: edit, select, all
ngClick: 'addTeam()',
class: 'btn-success btn-small',
"class": 'btn-success btn-small',
awToolTip: 'Create a new team'
}
},
@@ -50,15 +50,15 @@ angular.module('TeamsListDefinition', [])
label: 'Edit',
ngClick: "editTeam(\{\{ team.id \}\})",
icon: 'icon-edit',
class: 'btn-small btn-success',
"class": 'btn-small btn-success',
awToolTip: 'View/Edit team'
},
delete: {
"delete": {
label: 'Delete',
ngClick: "deleteTeam(\{\{ team.id \}\},'\{\{ team.name \}\}')",
icon: 'icon-remove',
class: 'btn-small btn-danger',
"class": 'btn-small btn-danger',
awToolTip: 'Delete team'
}
}

View File

@@ -4,7 +4,7 @@
* Users.js
* List view object for Users data model.
*
*
*
*/
angular.module('UserListDefinition', [])
.value(
@@ -38,7 +38,7 @@ angular.module('UserListDefinition', [])
mode: 'all', // One of: edit, select, all
ngClick: 'addUser()',
basePaths: ['organizations','users'], // base path must be in list, or action not available
class: 'btn-success btn-small',
"class": 'btn-success btn-small',
awToolTip: 'Create a new user'
}
},
@@ -48,15 +48,15 @@ angular.module('UserListDefinition', [])
label: 'Edit',
ngClick: "editUser(\{\{ user.id \}\})",
icon: 'icon-edit',
class: 'btn-small btn-success',
"class": 'btn-small btn-success',
awToolTip: 'View/Edit user'
},
delete: {
"delete": {
label: 'Delete',
ngClick: "deleteUser(\{\{ user.id \}\},'\{\{ user.username \}\}')",
icon: 'icon-remove',
class: 'btn-small btn-danger',
"class": 'btn-small btn-danger',
awToolTip: 'Delete user'
}
}