adding ngdocs site for tower doc site

This commit is contained in:
Jared Tabor
2014-08-28 10:36:55 -04:00
parent fd97aa85b6
commit ca8e52bfff
106 changed files with 757 additions and 195 deletions

View File

@@ -1,13 +1,22 @@
/************************************ /************************************
* Copyright (c) 2014 AnsibleWorks, Inc. * Copyright (c) 2014 AnsibleWorks, Inc.
* *
*/
/**
* @ngdoc overview
* @name controllers
* @description These are all the controllers that are used throughout the application
* *
*/
/**
* @ngdoc function
* @name controllers.function:Admins
* @description This controller's for administrators
* Admins.js * Admins.js
* *
* Controller functions for ading Admins to an Organization. * Controller functions for ading Admins to an Organization.
* *
*/ */
'use strict'; 'use strict';
function AdminsList($scope, $rootScope, $location, $log, $routeParams, Rest, Alert, AdminList, GenerateList, LoadBreadCrumbs, function AdminsList($scope, $rootScope, $location, $log, $routeParams, Rest, Alert, AdminList, GenerateList, LoadBreadCrumbs,

View File

@@ -7,7 +7,11 @@
* Controller functions for user authentication. * Controller functions for user authentication.
* *
*/ */
/**
* @ngdoc function
* @name controllers.function:Authentication
* @description This controller's for authenticating users
*/
'use strict'; 'use strict';
function Authenticate($log, $cookieStore, $compile, $window, $scope, $rootScope, $location, Authorization, ToggleClass, Alert, Wait, function Authenticate($log, $cookieStore, $compile, $window, $scope, $rootScope, $location, Authorization, ToggleClass, Alert, Wait,

View File

@@ -6,7 +6,11 @@
* Controller functions for the Credential model. * Controller functions for the Credential model.
* *
*/ */
/**
* @ngdoc function
* @name controllers.function:Credentials
* @description This controller's for the credentials page
*/
'use strict'; 'use strict';
function CredentialsList($scope, $rootScope, $location, $log, $routeParams, Rest, Alert, CredentialList, function CredentialsList($scope, $rootScope, $location, $log, $routeParams, Rest, Alert, CredentialList,

View File

@@ -8,8 +8,23 @@
* *
*/ */
/**
* @ngdoc function
* @name controllers.function:Home
* @description This controller's for the dashboard
*/
'use strict'; 'use strict';
/**
* @ngdoc method
* @name controllers.function:Home#Home
* @methodOf controllers.function:Home
* @description this function loads all the widgets on the dashboard.
* dashboardReady (emit) - this is called when the preliminary parts of the dashboard have been loaded, and loads each of the widgets. Note that the
* Host count graph should only be loaded if the user is a super user
*
*/
function Home($scope, $compile, $routeParams, $rootScope, $location, Wait, DashboardCounts, HostGraph, JobStatusGraph, HostPieChart, DashboardJobs, function Home($scope, $compile, $routeParams, $rootScope, $location, Wait, DashboardCounts, HostGraph, JobStatusGraph, HostPieChart, DashboardJobs,
ClearScope, Stream, Rest, GetBasePath, ProcessErrors, Button){ ClearScope, Stream, Rest, GetBasePath, ProcessErrors, Button){
@@ -77,6 +92,8 @@ function Home($scope, $compile, $routeParams, $rootScope, $location, Wait, Dashb
} }
}); });
if ($scope.removeDashboardReady) { if ($scope.removeDashboardReady) {
$scope.removeDashboardReady(); $scope.removeDashboardReady();
} }
@@ -162,6 +179,13 @@ Home.$inject = ['$scope', '$compile', '$routeParams', '$rootScope', '$location',
]; ];
/**
* @ngdoc method
* @name controllers.function:Home#HomeGroups
* @methodOf controllers.function:Home
* @description This controls the 'home/groups' page that is loaded from the dashboard
*
*/
function HomeGroups($log, $scope, $filter, $compile, $location, $routeParams, LogViewer, HomeGroupList, GenerateList, ProcessErrors, LoadBreadCrumbs, ReturnToCaller, ClearScope, function HomeGroups($log, $scope, $filter, $compile, $location, $routeParams, LogViewer, HomeGroupList, GenerateList, ProcessErrors, LoadBreadCrumbs, ReturnToCaller, ClearScope,
GetBasePath, SearchInit, PaginateInit, FormatDate, GetHostsStatusMsg, GetSyncStatusMsg, ViewUpdateStatus, Stream, GroupsEdit, Wait, GetBasePath, SearchInit, PaginateInit, FormatDate, GetHostsStatusMsg, GetSyncStatusMsg, ViewUpdateStatus, Stream, GroupsEdit, Wait,
Alert, Rest, Empty, InventoryUpdate, Find, GroupsCancelUpdate, Store, Socket) { Alert, Rest, Empty, InventoryUpdate, Find, GroupsCancelUpdate, Store, Socket) {
@@ -594,7 +618,13 @@ HomeGroups.$inject = ['$log', '$scope', '$filter', '$compile', '$location', '$ro
'Stream', 'GroupsEdit', 'Wait', 'Alert', 'Rest', 'Empty', 'InventoryUpdate', 'Find', 'GroupsCancelUpdate', 'Store', 'Socket' 'Stream', 'GroupsEdit', 'Wait', 'Alert', 'Rest', 'Empty', 'InventoryUpdate', 'Find', 'GroupsCancelUpdate', 'Store', 'Socket'
]; ];
/**
* @ngdoc method
* @name controllers.function:Home#HomeHosts
* @methodOf controllers.function:Home
* @description This loads the page for 'home/hosts'
*
*/
function HomeHosts($scope, $location, $routeParams, HomeHostList, GenerateList, ProcessErrors, LoadBreadCrumbs, ReturnToCaller, ClearScope, function HomeHosts($scope, $location, $routeParams, HomeHostList, GenerateList, ProcessErrors, LoadBreadCrumbs, ReturnToCaller, ClearScope,
GetBasePath, SearchInit, PaginateInit, FormatDate, SetStatus, ToggleHostEnabled, HostsEdit, Stream, Find, ShowJobSummary, ViewJob) { GetBasePath, SearchInit, PaginateInit, FormatDate, SetStatus, ToggleHostEnabled, HostsEdit, Stream, Find, ShowJobSummary, ViewJob) {

View File

@@ -7,7 +7,11 @@
* Controller functions for the Inventory model. * Controller functions for the Inventory model.
* *
*/ */
/**
* @ngdoc function
* @name controllers.function:Inventories
* @description This controller's for the Inventory page
*/
'use strict'; 'use strict';
function InventoriesList($scope, $rootScope, $location, $log, $routeParams, $compile, $filter, Rest, Alert, InventoryList, GenerateList, function InventoriesList($scope, $rootScope, $location, $log, $routeParams, $compile, $filter, Rest, Alert, InventoryList, GenerateList,

View File

@@ -4,7 +4,11 @@
* JobDetail.js * JobDetail.js
* *
*/ */
/**
* @ngdoc function
* @name controllers.function:JobDetail
* @description This controller's for the Job Detail Page
*/
'use strict'; 'use strict';
function JobDetailController ($location, $rootScope, $scope, $compile, $routeParams, $log, ClearScope, Breadcrumbs, LoadBreadCrumbs, GetBasePath, Wait, Rest, function JobDetailController ($location, $rootScope, $scope, $compile, $routeParams, $log, ClearScope, Breadcrumbs, LoadBreadCrumbs, GetBasePath, Wait, Rest,

View File

@@ -7,15 +7,19 @@
* Controller functions for the Job Events model. * Controller functions for the Job Events model.
* *
*/ */
/**
* @ngdoc function
* @name controllers.function:JobEvent
* @description This controller's for the job event page
*/
'use strict'; 'use strict';
function JobEventsList($sce, $filter, $scope, $rootScope, $location, $log, $routeParams, Rest, Alert, JobEventList, GenerateList, function JobEventsList($sce, $filter, $scope, $rootScope, $location, $log, $routeParams, Rest, Alert, JobEventList, GenerateList,
LoadBreadCrumbs, Prompt, SearchInit, PaginateInit, ReturnToCaller, ClearScope, ProcessErrors, GetBasePath, LookUpInit, ToggleChildren, LoadBreadCrumbs, Prompt, SearchInit, PaginateInit, ReturnToCaller, ClearScope, ProcessErrors, GetBasePath, LookUpInit, ToggleChildren,
FormatDate, EventView, Refresh, Wait) { FormatDate, EventView, Refresh, Wait) {
ClearScope(); ClearScope();
var list = JobEventList, var list = JobEventList,
defaultUrl = GetBasePath('jobs') + $routeParams.id + '/job_events/', //?parent__isnull=1'; defaultUrl = GetBasePath('jobs') + $routeParams.id + '/job_events/', //?parent__isnull=1';
generator = GenerateList, generator = GenerateList,
@@ -44,7 +48,7 @@ function JobEventsList($sce, $filter, $scope, $rootScope, $location, $log, $rout
function formatJSON(eventData) { function formatJSON(eventData) {
//turn JSON event data into an html form //turn JSON event data into an html form
var i, n, rows, fld, txt, var i, n, rows, fld, txt,
html = '', html = '',
found = false; found = false;
@@ -125,9 +129,9 @@ function JobEventsList($sce, $filter, $scope, $rootScope, $location, $log, $rout
} }
$scope.removePostRefresh = $scope.$on('PostRefresh', function () { $scope.removePostRefresh = $scope.$on('PostRefresh', function () {
// Initialize the parent levels // Initialize the parent levels
generator.inject(list, { mode: 'edit', scope: $scope }); generator.inject(list, { mode: 'edit', scope: $scope });
var set = $scope[list.name], i; var set = $scope[list.name], i;
for (i = 0; i < set.length; i++) { for (i = 0; i < set.length; i++) {
set[i].event_display = set[i].event_display.replace(/^\u00a0*/g, ''); set[i].event_display = set[i].event_display.replace(/^\u00a0*/g, '');
@@ -207,7 +211,7 @@ function JobEventsList($sce, $filter, $scope, $rootScope, $location, $log, $rout
}); });
page = ($routeParams.page) ? parseInt($routeParams.page,10) - 1 : null; page = ($routeParams.page) ? parseInt($routeParams.page,10) - 1 : null;
PaginateInit({ PaginateInit({
scope: $scope, scope: $scope,
list: list, list: list,
@@ -258,13 +262,13 @@ JobEventsList.$inject = ['$sce', '$filter', '$scope', '$rootScope', '$location',
function JobEventsEdit($scope, $rootScope, $compile, $location, $log, $routeParams, JobEventsForm, GenerateForm, function JobEventsEdit($scope, $rootScope, $compile, $location, $log, $routeParams, JobEventsForm, GenerateForm,
Rest, Alert, ProcessErrors, LoadBreadCrumbs, ClearScope, GetBasePath, FormatDate, EventView, Wait) { Rest, Alert, ProcessErrors, LoadBreadCrumbs, ClearScope, GetBasePath, FormatDate, EventView, Wait) {
ClearScope(); ClearScope();
var form = JobEventsForm, var form = JobEventsForm,
generator = GenerateForm, generator = GenerateForm,
defaultUrl = GetBasePath('base') + 'job_events/' + $routeParams.event_id + '/'; defaultUrl = GetBasePath('base') + 'job_events/' + $routeParams.event_id + '/';
generator.inject(form, { mode: 'edit', related: true, scope: $scope}); generator.inject(form, { mode: 'edit', related: true, scope: $scope});
generator.reset(); generator.reset();

View File

@@ -7,20 +7,24 @@
* Controller functions for the Job Hosts Summary model. * Controller functions for the Job Hosts Summary model.
* *
*/ */
/**
* @ngdoc function
* @name controllers.function:JobHosts
* @description This controller's for the job hosts page
*/
'use strict'; 'use strict';
function JobHostSummaryList($scope, $rootScope, $location, $log, $routeParams, Rest, Alert, JobHostList, GenerateList, function JobHostSummaryList($scope, $rootScope, $location, $log, $routeParams, Rest, Alert, JobHostList, GenerateList,
LoadBreadCrumbs, Prompt, SearchInit, PaginateInit, ReturnToCaller, ClearScope, ProcessErrors, GetBasePath, Refresh, LoadBreadCrumbs, Prompt, SearchInit, PaginateInit, ReturnToCaller, ClearScope, ProcessErrors, GetBasePath, Refresh,
JobStatusToolTip) { JobStatusToolTip) {
ClearScope(); ClearScope();
var list = JobHostList, var list = JobHostList,
defaultUrl = GetBasePath('jobs') + $routeParams.id + '/job_host_summaries/', defaultUrl = GetBasePath('jobs') + $routeParams.id + '/job_host_summaries/',
view = GenerateList, view = GenerateList,
inventory; inventory;
$scope.job_id = $routeParams.id; $scope.job_id = $routeParams.id;
$scope.host_id = null; $scope.host_id = null;
@@ -56,7 +60,7 @@ function JobHostSummaryList($scope, $rootScope, $location, $log, $routeParams, R
} }
$scope.removeJobReady = $scope.$on('JobReady', function() { $scope.removeJobReady = $scope.$on('JobReady', function() {
view.inject(list, { mode: 'edit', scope: $scope }); view.inject(list, { mode: 'edit', scope: $scope });
SearchInit({ SearchInit({
scope: $scope, scope: $scope,
set: 'jobhosts', set: 'jobhosts',

View File

@@ -4,7 +4,11 @@
* JobStdout.js * JobStdout.js
* *
*/ */
/**
* @ngdoc function
* @name controllers.function:JobStdout
* @description This controller's for the standard out page that can be displayed when a job runs
*/
'use strict'; 'use strict';
function JobStdoutController ($log, $rootScope, $scope, $compile, $routeParams, ClearScope, GetBasePath, Wait, Rest, ProcessErrors, Socket) { function JobStdoutController ($log, $rootScope, $scope, $compile, $routeParams, ClearScope, GetBasePath, Wait, Rest, ProcessErrors, Socket) {

View File

@@ -7,7 +7,11 @@
* Controller functions for the Job Template model. * Controller functions for the Job Template model.
* *
*/ */
/**
* @ngdoc function
* @name controllers.function:JobTemplate
* @description This controller's for the Job Template page
*/
'use strict'; 'use strict';
function JobTemplatesList($scope, $rootScope, $location, $log, $routeParams, Rest, Alert, JobTemplateList, function JobTemplatesList($scope, $rootScope, $location, $log, $routeParams, Rest, Alert, JobTemplateList,

View File

@@ -7,7 +7,11 @@
* Controller functions for the Inventory model. * Controller functions for the Inventory model.
* *
*/ */
/**
* @ngdoc function
* @name controllers.function:Jobs
* @description This controller's for the jobs page
*/
'use strict'; 'use strict';
function JobsListController ($rootScope, $log, $scope, $compile, $routeParams, ClearScope, Breadcrumbs, LoadBreadCrumbs, LoadSchedulesScope, function JobsListController ($rootScope, $log, $scope, $compile, $routeParams, ClearScope, Breadcrumbs, LoadBreadCrumbs, LoadSchedulesScope,

View File

@@ -7,7 +7,11 @@
* Controller functions for Organization model. * Controller functions for Organization model.
* *
*/ */
/**
* @ngdoc function
* @name controllers.function:Organizations
* @description This controller's for the Organizations page
*/
'use strict'; 'use strict';
function OrganizationsList($routeParams, $scope, $rootScope, $location, $log, Rest, Alert, LoadBreadCrumbs, Prompt, function OrganizationsList($routeParams, $scope, $rootScope, $location, $log, Rest, Alert, LoadBreadCrumbs, Prompt,

View File

@@ -7,7 +7,11 @@
* Controller functions for Permissions model. * Controller functions for Permissions model.
* *
*/ */
/**
* @ngdoc function
* @name controllers.function:Permissions
* @description This controller's for permissions
*/
'use strict'; 'use strict';
function PermissionsList($scope, $rootScope, $location, $log, $routeParams, Rest, Alert, PermissionList, function PermissionsList($scope, $rootScope, $location, $log, $routeParams, Rest, Alert, PermissionList,

View File

@@ -7,7 +7,11 @@
* Controller functions for the Projects model. * Controller functions for the Projects model.
* *
*/ */
/**
* @ngdoc function
* @name controllers.function:Projects
* @description This controller's for the projects page
*/
'use strict'; 'use strict';
function ProjectsList ($scope, $rootScope, $location, $log, $routeParams, Rest, Alert, ProjectList, GenerateList, LoadBreadCrumbs, function ProjectsList ($scope, $rootScope, $location, $log, $routeParams, Rest, Alert, ProjectList, GenerateList, LoadBreadCrumbs,

View File

@@ -7,7 +7,11 @@
* Controller functions for the Schedule model. * Controller functions for the Schedule model.
* *
*/ */
/**
* @ngdoc function
* @name controllers.function:Schedules
* @description This controller's for schedules
*/
'use strict'; 'use strict';
function ScheduleEditController($scope, $compile, $location, $routeParams, SchedulesList, Rest, ProcessErrors, LoadBreadCrumbs, ReturnToCaller, ClearScope, function ScheduleEditController($scope, $compile, $location, $routeParams, SchedulesList, Rest, ProcessErrors, LoadBreadCrumbs, ReturnToCaller, ClearScope,

View File

@@ -5,7 +5,12 @@
* SocketsController- simple test of socket connection * SocketsController- simple test of socket connection
* *
*/ */
/**
* @ngdoc function
* @name controllers.function:Sockets
* @description This controller's for controlling websockets
* discuss
*/
'use strict'; 'use strict';
function SocketsController ($scope, $compile, ClearScope, Socket) { function SocketsController ($scope, $compile, ClearScope, Socket) {

View File

@@ -7,7 +7,11 @@
* Controller functions for the Team model. * Controller functions for the Team model.
* *
*/ */
/**
* @ngdoc function
* @name controllers.function:Teams
* @description This controller's for teams
*/
'use strict'; 'use strict';
function TeamsList($scope, $rootScope, $location, $log, $routeParams, Rest, Alert, TeamList, GenerateList, LoadBreadCrumbs, function TeamsList($scope, $rootScope, $location, $log, $routeParams, Rest, Alert, TeamList, GenerateList, LoadBreadCrumbs,

View File

@@ -6,7 +6,11 @@
* Controller functions for User model. * Controller functions for User model.
* *
*/ */
/**
* @ngdoc function
* @name controllers.function:Users
* @description This controller's the Users page
*/
'use strict'; 'use strict';
function UsersList($scope, $rootScope, $location, $log, $routeParams, Rest, Alert, UserList, GenerateList, LoadBreadCrumbs, function UsersList($scope, $rootScope, $location, $log, $routeParams, Rest, Alert, UserList, GenerateList, LoadBreadCrumbs,

View File

@@ -3,8 +3,19 @@
* *
* ActivityDetail.js * ActivityDetail.js
* Form definition for Activity Stream detail * Form definition for Activity Stream detail
* *
*/ */
/**
* @ngdoc overview
* @name forms
* @description These are all the controllers that are used throughout the application
*
*/
/**
* @ngdoc function
* @name forms.function:ActivityDetail
* @description This form is for activity detail modal that can be shown on most pages.
*/
angular.module('ActivityDetailDefinition', []) angular.module('ActivityDetailDefinition', [])
.value('ActivityDetailForm', { .value('ActivityDetailForm', {
@@ -33,5 +44,5 @@ angular.module('ActivityDetailDefinition', [])
readonly: true readonly: true
} }
} }
}); //Form }); //Form

View File

@@ -5,6 +5,11 @@
* Form definition for Credential model * Form definition for Credential model
* *
*/ */
/**
* @ngdoc function
* @name forms.function:Credentials
* @description This form is for adding/editing a Credential
*/
angular.module('CredentialFormDefinition', []) angular.module('CredentialFormDefinition', [])
.value('CredentialForm', { .value('CredentialForm', {

View File

@@ -4,6 +4,11 @@
* JobEventsForm.js * JobEventsForm.js
* *
*/ */
/**
* @ngdoc function
* @name forms.function:EventsViewer
* @description This form is for events on the job detail page
*/
angular.module('EventsViewerFormDefinition', []) angular.module('EventsViewerFormDefinition', [])
.value('EventsViewerForm', { .value('EventsViewerForm', {

View File

@@ -6,6 +6,11 @@
* *
* *
*/ */
/**
* @ngdoc function
* @name forms.function:Groups
* @description This form is for adding/editing a Group on the inventory page
*/
angular.module('GroupFormDefinition', []) angular.module('GroupFormDefinition', [])
.value('GroupForm', { .value('GroupForm', {
@@ -15,7 +20,7 @@ angular.module('GroupFormDefinition', [])
cancelButton: false, cancelButton: false,
name: 'group', name: 'group',
well: false, well: false,
fields: { fields: {
name: { name: {
label: 'Name', label: 'Name',

View File

@@ -4,11 +4,16 @@
* HostGroups.js * HostGroups.js
* Form definition for Host model * Form definition for Host model
* *
* *
*/ */
/**
* @ngdoc function
* @name forms.function:HostGroups
* @description This form is for groups of hosts on the inventory page
*/
angular.module('HostGroupsFormDefinition', []) angular.module('HostGroupsFormDefinition', [])
.value('HostGroupsForm', { .value('HostGroupsForm', {
editTitle: 'Host Groups', editTitle: 'Host Groups',
name: 'host', name: 'host',
well: false, well: false,
@@ -35,7 +40,7 @@ angular.module('HostGroupsFormDefinition', [])
} }
}, },
buttons: { //for now always generates <button> tags buttons: { //for now always generates <button> tags
save: { save: {
ngClick: 'formSave()', ngClick: 'formSave()',
ngDisabled: true ngDisabled: true

View File

@@ -6,6 +6,11 @@
* *
* *
*/ */
/**
* @ngdoc function
* @name forms.function:Hosts
* @description This form is for adding/editing a host on the inventory page
*/
angular.module('HostFormDefinition', []) angular.module('HostFormDefinition', [])
.value('HostForm', { .value('HostForm', {
@@ -77,7 +82,7 @@ angular.module('HostFormDefinition', [])
} }
}, },
buttons: { //for now always generates <button> tags buttons: { //for now always generates <button> tags
/* /*
save: { save: {
ngClick: 'formSave()', //$scope.function to call on click, optional ngClick: 'formSave()', //$scope.function to call on click, optional

View File

@@ -6,6 +6,11 @@
* *
* *
*/ */
/**
* @ngdoc function
* @name forms.function:Inventories
* @description This form is for adding/editing an inventory
*/
angular.module('InventoryFormDefinition', []) angular.module('InventoryFormDefinition', [])
.value('InventoryForm', { .value('InventoryForm', {

View File

@@ -4,11 +4,16 @@
* InventoryStatus.js * InventoryStatus.js
* *
* Use to show inventory sync status * Use to show inventory sync status
* *
*/ */
/**
* @ngdoc function
* @name forms.function:InventoryStatus
* @description This form is for adding/editing an InventoryStatus
*/
angular.module('InventoryStatusDefinition', []) angular.module('InventoryStatusDefinition', [])
.value('InventoryStatusForm', { .value('InventoryStatusForm', {
name: 'inventory_update', name: 'inventory_update',
editTitle: 'Inventory Status', editTitle: 'Inventory Status',
well: false, well: false,

View File

@@ -4,11 +4,16 @@
* JobEventData.js * JobEventData.js
* Form definition for Job Events -JSON view * Form definition for Job Events -JSON view
* *
* *
*/ */
/**
* @ngdoc function
* @name forms.function:JobEventData
* @description Not sure if this is used...
*/
angular.module('JobEventDataDefinition', []) angular.module('JobEventDataDefinition', [])
.value('JobEventDataForm', { .value('JobEventDataForm', {
editTitle: '{{ id }} - {{ event_display }}', editTitle: '{{ id }} - {{ event_display }}',
name: 'job_events', name: 'job_events',
well: false, well: false,
@@ -23,5 +28,5 @@ angular.module('JobEventDataDefinition', [])
'class': 'modal-input-xxlarge' 'class': 'modal-input-xxlarge'
} }
} }
}); //Form }); //Form

View File

@@ -6,13 +6,19 @@
* Display job status info in a dialog * Display job status info in a dialog
* *
*/ */
/**
* @ngdoc function
* @name forms.function:JobSummary
* @description Display job status info in a dialog
*/
angular.module('JobSummaryDefinition', []) angular.module('JobSummaryDefinition', [])
.value('JobSummary', { .value('JobSummary', {
editTitle: '{{ id }} - {{ name }}', editTitle: '{{ id }} - {{ name }}',
name: 'jobs', name: 'jobs',
well: false, well: false,
fields: { fields: {
status: { status: {
//label: 'Job Status', //label: 'Job Status',

View File

@@ -7,7 +7,11 @@
* To get the JobTemplateForm object: JobTemplateForm(); * To get the JobTemplateForm object: JobTemplateForm();
* *
*/ */
/**
* @ngdoc function
* @name forms.function:JobTemplate
* @description This form is for adding/editing a Job Template
*/
'use strict'; 'use strict';
angular.module('JobTemplateFormDefinition', ['SchedulesListDefinition', 'CompletedJobsDefinition']) angular.module('JobTemplateFormDefinition', ['SchedulesListDefinition', 'CompletedJobsDefinition'])

View File

@@ -2,22 +2,26 @@
* Copyright (c) 2014 AnsibleWorks, Inc. * Copyright (c) 2014 AnsibleWorks, Inc.
* *
* JobVarsPrompt.js * JobVarsPrompt.js
* *
* Form definition used during job submission to prompt for extra vars * Form definition used during job submission to prompt for extra vars
* *
*/ */
/**
* @ngdoc function
* @name forms.function:JobVarsPrompt
* @description This form is for job variables prompt modal
*/
'use strict'; 'use strict';
angular.module('JobVarsPromptFormDefinition', []) angular.module('JobVarsPromptFormDefinition', [])
.value ('JobVarsPromptForm', { .value ('JobVarsPromptForm', {
addTitle: '', addTitle: '',
editTitle: '', editTitle: '',
name: 'job', name: 'job',
well: false, well: false,
actions: { }, actions: { },
fields: { fields: {

View File

@@ -6,6 +6,11 @@
* *
* @dict * @dict
*/ */
/**
* @ngdoc function
* @name forms.function:Jobs
* @description This form is for adding/editing a Job
*/
angular.module('JobFormDefinition', []) angular.module('JobFormDefinition', [])
.value('JobForm', { .value('JobForm', {
@@ -18,7 +23,7 @@ angular.module('JobFormDefinition', [])
collapseMode: 'edit', collapseMode: 'edit',
collapseTitle: 'Job Status', collapseTitle: 'Job Status',
collapseOpenFirst: true, //Always open first panel collapseOpenFirst: true, //Always open first panel
navigationLinks: { navigationLinks: {
details: { details: {
href: "/#/jobs/{{ job_id }}", href: "/#/jobs/{{ job_id }}",
@@ -105,7 +110,7 @@ angular.module('JobFormDefinition', [])
iterator: 'job', iterator: 'job',
index: false, index: false,
open: false, open: false,
fields: { } fields: { }
} }
} }

View File

@@ -5,7 +5,11 @@
* *
* *
*/ */
/**
* @ngdoc function
* @name forms.function:LicenseForm
* @description This form is for viewing the license information
*/
'use strict'; 'use strict';
angular.module('LicenseFormDefinition', []) angular.module('LicenseFormDefinition', [])

View File

@@ -6,6 +6,11 @@
* *
* *
*/ */
/**
* @ngdoc function
* @name forms.function:LicenseUpdate
* @description This form is for updating a license
*/
angular.module('LicenseUpdateFormDefinition', []) angular.module('LicenseUpdateFormDefinition', [])
.value('LicenseUpdateForm', { .value('LicenseUpdateForm', {

View File

@@ -6,12 +6,17 @@
* Form definition for LogViewer.js helper * Form definition for LogViewer.js helper
* *
*/ */
/**
* @ngdoc function
* @name forms.function:LogViewerOptions
* @description This form is for the page to view logs
*/
angular.module('LogViewerOptionsDefinition', []) angular.module('LogViewerOptionsDefinition', [])
.value('LogViewerOptionsForm', { .value('LogViewerOptionsForm', {
name: 'status', name: 'status',
well: false, well: false,
fields: { fields: {
"job_template": { "job_template": {
label: "Job Template", label: "Job Template",

View File

@@ -6,12 +6,17 @@
* Form definition for LogViewer.js helper * Form definition for LogViewer.js helper
* *
*/ */
/**
* @ngdoc function
* @name forms.function:LogViewerStatus
* @description Form definition for LogViewer.js helper
*/
angular.module('LogViewerStatusDefinition', []) angular.module('LogViewerStatusDefinition', [])
.value('LogViewerStatusForm', { .value('LogViewerStatusForm', {
name: 'status', name: 'status',
well: false, well: false,
fields: { fields: {
"name": { "name": {
label: "Name", label: "Name",
@@ -51,5 +56,5 @@ angular.module('LogViewerStatusDefinition', [])
readonly: true readonly: true
} }
} }
}); });

View File

@@ -6,6 +6,11 @@
* *
* *
*/ */
/**
* @ngdoc function
* @name forms.function:Organizations
* @description This form is for adding/editing an organization
*/
angular.module('OrganizationFormDefinition', []) angular.module('OrganizationFormDefinition', [])
.value('OrganizationForm', { .value('OrganizationForm', {
@@ -46,7 +51,7 @@ angular.module('OrganizationFormDefinition', [])
} }
}, },
buttons: { //for now always generates <button> tags buttons: { //for now always generates <button> tags
save: { save: {
ngClick: 'formSave()', //$scope.function to call on click, optional ngClick: 'formSave()', //$scope.function to call on click, optional
ngDisabled: true //Disable when $pristine or $invalid, optional ngDisabled: true //Disable when $pristine or $invalid, optional

View File

@@ -7,6 +7,11 @@
* *
* *
*/ */
/**
* @ngdoc function
* @name forms.function:Permissions
* @description This form is for adding/editing persmissions
*/
angular.module('PermissionFormDefinition', []) angular.module('PermissionFormDefinition', [])
.value('PermissionsForm', { .value('PermissionsForm', {

View File

@@ -4,11 +4,16 @@
* ProjectStatus.js * ProjectStatus.js
* Form definition for Project Status -JSON view * Form definition for Project Status -JSON view
* *
* *
*/ */
/**
* @ngdoc function
* @name forms.function:ProjectStatus
* @description This form is for adding/editing project status
*/
angular.module('ProjectStatusDefinition', []) angular.module('ProjectStatusDefinition', [])
.value('ProjectStatusForm', { .value('ProjectStatusForm', {
name: 'project_update', name: 'project_update',
editTitle: 'SCM Status', editTitle: 'SCM Status',
well: false, well: false,

View File

@@ -7,6 +7,11 @@
* *
* *
*/ */
/**
* @ngdoc function
* @name forms.function:Projects
* @description This form is for adding/editing projects
*/
angular.module('ProjectFormDefinition', ['SchedulesListDefinition']) angular.module('ProjectFormDefinition', ['SchedulesListDefinition'])
.value('ProjectsFormObject', { .value('ProjectsFormObject', {

View File

@@ -6,6 +6,11 @@
* *
* *
*/ */
/**
* @ngdoc function
* @name forms.function:Source
* @description This form is for group model
*/
angular.module('SourceFormDefinition', []) angular.module('SourceFormDefinition', [])
.value('SourceForm', { .value('SourceForm', {

View File

@@ -6,6 +6,11 @@
* Form definition for Team model * Form definition for Team model
* *
*/ */
/**
* @ngdoc function
* @name forms.function:Teams
* @description This form is for adding/editing teams
*/
angular.module('TeamFormDefinition', []) angular.module('TeamFormDefinition', [])
.value('TeamForm', { .value('TeamForm', {

View File

@@ -6,6 +6,11 @@
* *
* *
*/ */
/**
* @ngdoc function
* @name forms.function:Users
* @description This form is for adding/editing users
*/
angular.module('UserFormDefinition', []) angular.module('UserFormDefinition', [])
.value('UserForm', { .value('UserForm', {

View File

@@ -7,6 +7,17 @@
* *
*/ */
/**
* @ngdoc overview
* @name help
* @description These are the modal windows that are shown to the user to give additional guidance on certain tasks that might not be straightforward.
*/
/**
* @ngdoc function
* @name help.function:ChromeSocketHelp
* @description This help modal gives instructions on what the user should do if not connected to the web sockets while using Chrome.
*/
'use strict'; 'use strict';
angular.module('ChromeSocketHelpDefinition', []) angular.module('ChromeSocketHelpDefinition', [])

View File

@@ -6,7 +6,11 @@
* Help object for socket connection troubleshooting * Help object for socket connection troubleshooting
* *
*/ */
/**
* @ngdoc function
* @name help.function:FirefoxSocketHelp
* @description This help modal gives instructions on what the user should do if not connected to the web sockets while using Firefox.
*/
'use strict'; 'use strict';
angular.module('FFSocketHelpDefinition', []) angular.module('FFSocketHelpDefinition', [])

View File

@@ -7,7 +7,11 @@
* *
* @dict * @dict
*/ */
/**
* @ngdoc function
* @name help.function:InventoryGroups
* @description This help modal walks the user how to add groups to an inventory or a subgroup to an existing group.
*/
'use strict'; 'use strict';
angular.module('InventoryGroupsHelpDefinition', []) angular.module('InventoryGroupsHelpDefinition', [])

View File

@@ -6,7 +6,11 @@
* Help object for socket connection troubleshooting * Help object for socket connection troubleshooting
* *
*/ */
/**
* @ngdoc function
* @name help.function:SafariSocketHelp
* @description This help modal gives instructions on what the user should do if not connected to the web sockets while using Safari. Safari does not support websockets.
*/
'use strict'; 'use strict';
angular.module('SafariSocketHelpDefinition', []) angular.module('SafariSocketHelpDefinition', [])

View File

@@ -1,12 +1,21 @@
/********************************************* /*********************************************
* Copyright (c) 2014 AnsibleWorks, Inc. * Copyright (c) 2014 AnsibleWorks, Inc.
* *
* Dashboard.js * aboutansible.js
* *
* The new dashboard * The new about menu
* *
*/ */
/**
* @ngdoc overview
* @name helpers
* @description These are helpers...figure it out :)
*/
/**
* @ngdoc function
* @name helpers.function:AboutAnsible
* @description This is the code for the About Ansible modal window that pops up with cowsay giving company/tower info and copyright information.
*/
'use strict'; 'use strict';
angular.module('AboutAnsibleHelpModal', ['RestServices', 'Utilities','ModalDialog']) angular.module('AboutAnsibleHelpModal', ['RestServices', 'Utilities','ModalDialog'])

View File

@@ -6,6 +6,11 @@
* Routines for checking user access * Routines for checking user access
* *
*/ */
/**
* @ngdoc function
* @name helpers.function:Access
* @description routines checking user access
*/
'use strict'; 'use strict';

View File

@@ -3,12 +3,14 @@
* *
* ChildrenHelper * ChildrenHelper
* *
* Used in job_events to expand/collapse children by setting the */
/**
* @ngdoc function
* @name helpers.function:Children
* @descriptionUsed in job_events to expand/collapse children by setting the
* 'show' attribute of each job_event in the set of job_events. * 'show' attribute of each job_event in the set of job_events.
* See the filter in job_events.js list. * See the filter in job_events.js list.
* */
*/
'use strict'; 'use strict';
angular.module('ChildrenHelper', ['RestServices', 'Utilities']) angular.module('ChildrenHelper', ['RestServices', 'Utilities'])
@@ -93,7 +95,7 @@ angular.module('ChildrenHelper', ['RestServices', 'Utilities'])
} }
return true; return true;
}); });
// Expand or collapse children based on clicked element's icon // Expand or collapse children based on clicked element's icon
if (/plus-square-o/.test(set[clicked].ngicon)) { if (/plus-square-o/.test(set[clicked].ngicon)) {
// Expand: lookup and display children // Expand: lookup and display children

View File

@@ -3,10 +3,13 @@
* *
* Credentials.js * Credentials.js
* *
* Functions shared amongst Credential related controllers
* *
*/ */
/**
* @ngdoc function
* @name helpers.function:Credentials
* @description Functions shared amongst Credential related controllers
*/
'use strict'; 'use strict';
angular.module('CredentialsHelper', ['Utilities']) angular.module('CredentialsHelper', ['Utilities'])

View File

@@ -4,7 +4,11 @@
* EventsViewer.js * EventsViewer.js
* *
*/ */
/**
* @ngdoc function
* @name helpers.function:EventViewer
* @description eventviewerhelper
*/
'use strict'; 'use strict';
angular.module('EventViewerHelper', ['ModalDialog', 'Utilities', 'EventsViewerFormDefinition', 'HostsHelper']) angular.module('EventViewerHelper', ['ModalDialog', 'Utilities', 'EventsViewerFormDefinition', 'HostsHelper'])

View File

@@ -3,14 +3,18 @@
* *
* EventsHelper * EventsHelper
* *
* EventView - show the job_events form in a modal dialog *
* *
*/ */
/**
* @ngdoc function
* @name helpers.function:Events
* @description EventView - show the job_events form in a modal dialog
*/
'use strict'; 'use strict';
angular.module('EventsHelper', ['RestServices', 'Utilities', 'JobEventDataDefinition', 'JobEventsFormDefinition']) angular.module('EventsHelper', ['RestServices', 'Utilities', 'JobEventDataDefinition', 'JobEventsFormDefinition'])
.factory('EventView', ['$rootScope', '$location', '$log', '$routeParams', 'Rest', 'Alert', 'GenerateForm', .factory('EventView', ['$rootScope', '$location', '$log', '$routeParams', 'Rest', 'Alert', 'GenerateForm',
'Prompt', 'ProcessErrors', 'GetBasePath', 'FormatDate', 'JobEventDataForm', 'Empty', 'JobEventsForm', 'Prompt', 'ProcessErrors', 'GetBasePath', 'FormatDate', 'JobEventDataForm', 'Empty', 'JobEventsForm',
function ($rootScope, $location, $log, $routeParams, Rest, Alert, GenerateForm, Prompt, ProcessErrors, GetBasePath, function ($rootScope, $location, $log, $routeParams, Rest, Alert, GenerateForm, Prompt, ProcessErrors, GetBasePath,

View File

@@ -6,7 +6,11 @@
* Routines that handle group add/edit/delete on the Inventory tree widget. * Routines that handle group add/edit/delete on the Inventory tree widget.
* *
*/ */
/**
* @ngdoc function
* @name helpers.function:Groups
* @description inventory tree widget add/edit/delete
*/
'use strict'; 'use strict';
angular.module('GroupsHelper', [ 'RestServices', 'Utilities', 'ListGenerator', 'GroupListDefinition', 'SearchHelper', angular.module('GroupsHelper', [ 'RestServices', 'Utilities', 'ListGenerator', 'GroupListDefinition', 'SearchHelper',

View File

@@ -6,7 +6,11 @@
* View a list of events for a given job and host * View a list of events for a given job and host
* *
*/ */
/**
* @ngdoc function
* @name helpers.function:HostEventsViewer
* @description view a list of events for a given job and host
*/
'use strict'; 'use strict';
angular.module('HostEventsViewerHelper', ['ModalDialog', 'Utilities', 'EventViewerHelper']) angular.module('HostEventsViewerHelper', ['ModalDialog', 'Utilities', 'EventViewerHelper'])

View File

@@ -8,6 +8,11 @@
*/ */
/* jshint loopfunc: true */ /* jshint loopfunc: true */
/**
* @ngdoc function
* @name helpers.function:Hosts
* @description Routines that handle host add/edit/delete on the Inventory detail page.
*/
'use strict'; 'use strict';

View File

@@ -6,8 +6,10 @@
* Helper moduler for JobDetails controller * Helper moduler for JobDetails controller
* *
*/ */
/**
/* * @ngdoc function
* @name helpers.function:JobDetail
* @description helper moduler for jobdetails controller
# Playbook events will be structured to form the following hierarchy: # Playbook events will be structured to form the following hierarchy:
# - playbook_on_start (once for each playbook file) # - playbook_on_start (once for each playbook file)
# - playbook_on_vars_prompt (for each play, but before play starts, we # - playbook_on_vars_prompt (for each play, but before play starts, we

View File

@@ -4,7 +4,11 @@
* JobSubmission.js * JobSubmission.js
* *
*/ */
/**
* @ngdoc function
* @name helpers.function:JobSubmission
* @description
*/
'use strict'; 'use strict';
angular.module('JobSubmissionHelper', [ 'RestServices', 'Utilities', 'CredentialFormDefinition', 'CredentialsListDefinition', angular.module('JobSubmissionHelper', [ 'RestServices', 'Utilities', 'CredentialFormDefinition', 'CredentialsListDefinition',

View File

@@ -6,7 +6,11 @@
* Routines shared by job related controllers * Routines shared by job related controllers
* *
*/ */
/**
* @ngdoc function
* @name helpers.function:JobTemplatesHelper
* @description Routines shared by job related controllers
*/
'use strict'; 'use strict';
angular.module('JobTemplatesHelper', ['Utilities']) angular.module('JobTemplatesHelper', ['Utilities'])

View File

@@ -6,7 +6,11 @@
* Routines shared by job related controllers * Routines shared by job related controllers
* *
*/ */
/**
* @ngdoc function
* @name helpers.function:Jobs
* @description routines shared by job related controllers
*/
'use strict'; 'use strict';
angular.module('JobsHelper', ['Utilities', 'RestServices', 'FormGenerator', 'JobSummaryDefinition', 'InventoryHelper', 'GeneratorHelpers', angular.module('JobsHelper', ['Utilities', 'RestServices', 'FormGenerator', 'JobSummaryDefinition', 'InventoryHelper', 'GeneratorHelpers',

View File

@@ -4,10 +4,14 @@
* *
* helpers/License.js * helpers/License.js
* *
* Routines for checking and reporting license status *
* *
*/ */
/**
* @ngdoc function
* @name helpers.function:License
* @description Routines for checking and reporting license status
*/
'use strict'; 'use strict';
angular.module('LicenseHelper', ['RestServices', 'Utilities', 'LicenseUpdateFormDefinition', 'FormGenerator', 'ParseHelper', 'ModalDialog', 'VariablesHelper', 'LicenseFormDefinition', 'AccessHelper']) angular.module('LicenseHelper', ['RestServices', 'Utilities', 'LicenseUpdateFormDefinition', 'FormGenerator', 'ParseHelper', 'ModalDialog', 'VariablesHelper', 'LicenseFormDefinition', 'AccessHelper'])

View File

@@ -1,10 +1,14 @@
/********************************************* /*********************************************
* Copyright (c) 2014 AnsibleWorks, Inc. * Copyright (c) 2014 AnsibleWorks, Inc.
* */
/**
* @ngdoc function
* @name helpers.function:LoadConfig
* @description Attempts to load local_config.js. If not found, loads config.js. Then evaluates the loaded
* javascript, putting the result in $AnsibleConfig.
* LoadConfigHelper * LoadConfigHelper
* *
* Attempts to load local_config.js. If not found, loads config.js. Then evaluates the loaded *
* javascript, putting the result in $AnsibleConfig.
* *
*/ */

View File

@@ -4,7 +4,11 @@
* LogViewer.js * LogViewer.js
* *
*/ */
/**
* @ngdoc function
* @name helpers.function:LogViewer
* @description logviewer
*/
'use strict'; 'use strict';
angular.module('LogViewerHelper', ['ModalDialog', 'Utilities', 'FormGenerator', 'VariablesHelper']) angular.module('LogViewerHelper', ['ModalDialog', 'Utilities', 'FormGenerator', 'VariablesHelper'])

View File

@@ -3,7 +3,12 @@
* *
* LookupHelper * LookupHelper
* Build a lookup dialog * Build a lookup dialog
* */
/**
* @ngdoc function
* @name helpers.function:Lookup
* @description
* LookUpInit( { * LookUpInit( {
* scope: <caller's scope>, * scope: <caller's scope>,
* form: <form object>, * form: <form object>,

View File

@@ -4,7 +4,11 @@
* PaginationHelpers.js * PaginationHelpers.js
* *
*/ */
/**
* @ngdoc function
* @name helpers.function:PaginationHelpers
* @description pagination
*/
'use strict'; 'use strict';
angular.module('PaginationHelpers', ['Utilities', 'RefreshHelper', 'RefreshRelatedHelper']) angular.module('PaginationHelpers', ['Utilities', 'RefreshHelper', 'RefreshRelatedHelper'])

View File

@@ -2,7 +2,11 @@
* Copyright (c) 2014 AnsibleWorks, Inc. * Copyright (c) 2014 AnsibleWorks, Inc.
* *
* ParseHelper * ParseHelper
* */
/**
* @ngdoc function
* @name helpers.function:Parse
* @description
* Show the CodeMirror variable editor and allow * Show the CodeMirror variable editor and allow
* toggle between JSON and YAML * toggle between JSON and YAML
* *

View File

@@ -2,7 +2,11 @@
* Copyright (c) 2014 AnsibleWorks, Inc. * Copyright (c) 2014 AnsibleWorks, Inc.
* *
* Permissions.js * Permissions.js
* */
/**
* @ngdoc function
* @name helpers.function:Permissions
* @description
* Functions shared amongst Permission related controllers * Functions shared amongst Permission related controllers
* *
*/ */

View File

@@ -2,7 +2,11 @@
* Copyright (c) 2014 AnsibleWorks, Inc. * Copyright (c) 2014 AnsibleWorks, Inc.
* *
* ProjectPathHelper * ProjectPathHelper
* */
/**
* @ngdoc function
* @name helpers.function:ProjectPath
* @description
* Use GetProjectPath({ scope: <scope>, master: <master obj> }) to * Use GetProjectPath({ scope: <scope>, master: <master obj> }) to
* load scope.project_local_paths (array of options for drop-down) and * load scope.project_local_paths (array of options for drop-down) and
* scope.base_dir (readonly field). * scope.base_dir (readonly field).
@@ -47,7 +51,7 @@ angular.module('ProjectPathHelper', ['RestServices', 'Utilities'])
}); });
} }
if (scope.local_path) { if (scope.local_path) {
// List only includes paths not assigned to projects, so add the // List only includes paths not assigned to projects, so add the
// path assigned to the current project. // path assigned to the current project.
opts.push({ opts.push({
label: scope.local_path, label: scope.local_path,

View File

@@ -2,7 +2,11 @@
* Copyright (c) 2014 AnsibleWorks, Inc. * Copyright (c) 2014 AnsibleWorks, Inc.
* *
* ProjectsHelper * ProjectsHelper
* */
/**
* @ngdoc function
* @name helpers.function:Projects
* @description
* Use GetProjectPath({ scope: <scope>, master: <master obj> }) to * Use GetProjectPath({ scope: <scope>, master: <master obj> }) to
* load scope.project_local_paths (array of options for drop-down) and * load scope.project_local_paths (array of options for drop-down) and
* scope.base_dir (readonly field). * scope.base_dir (readonly field).

View File

@@ -1,6 +1,10 @@
/********************************************* /*********************************************
* Copyright (c) 2014 AnsibleWorks, Inc. * Copyright (c) 2014 AnsibleWorks, Inc.
* */
/**
* @ngdoc function
* @name helpers.function:Schedules
* @description
* Schedules Helper * Schedules Helper
* *
* Display the scheduler widget in a dialog * Display the scheduler widget in a dialog

View File

@@ -1,6 +1,10 @@
/********************************************* /*********************************************
* Copyright (c) 2014 AnsibleWorks, Inc. * Copyright (c) 2014 AnsibleWorks, Inc.
* */
/**
* @ngdoc function
* @name helpers.function:Selection
* @description
* SelectionHelper * SelectionHelper
* Used in list controllers where the list might also be used as a selection list. * Used in list controllers where the list might also be used as a selection list.
* *
@@ -80,9 +84,9 @@ angular.module('SelectionHelper', ['Utilities', 'RestServices'])
// Add the selections // Add the selections
scope.finishSelection = function () { scope.finishSelection = function () {
Rest.setUrl(target_url); Rest.setUrl(target_url);
var queue = [], j; var queue = [], j;
scope.formModalActionDisabled = true; scope.formModalActionDisabled = true;
scope.disableSelectBtn = true; scope.disableSelectBtn = true;

View File

@@ -1,6 +1,10 @@
/********************************************* /*********************************************
* Copyright (c) 2014 AnsibleWorks, Inc. * Copyright (c) 2014 AnsibleWorks, Inc.
* */
/**
* @ngdoc function
* @name helpers.function:SocketHelper
* @description
* SocketHelper.js * SocketHelper.js
* *
* Show web socket troubleshooting help * Show web socket troubleshooting help

View File

@@ -1,6 +1,10 @@
/********************************************* /*********************************************
* Copyright (c) 2014 AnsibleWorks, Inc. * Copyright (c) 2014 AnsibleWorks, Inc.
* */
/**
* @ngdoc function
* @name helpers.function:Users
* @description
* UserHelper * UserHelper
* Routines shared amongst the user controllers * Routines shared amongst the user controllers
* *
@@ -12,7 +16,7 @@ angular.module('UserHelper', ['UserFormDefinition'])
.factory('ResetForm', ['UserForm', .factory('ResetForm', ['UserForm',
function (UserForm) { function (UserForm) {
return function () { return function () {
// Restore form to default conditions. Run before applying LDAP configuration. // Restore form to default conditions. Run before applying LDAP configuration.
// LDAP may manage some or all of these fields in which case the user cannot // LDAP may manage some or all of these fields in which case the user cannot
// make changes to their values in AWX. // make changes to their values in AWX.

View File

@@ -1,6 +1,10 @@
/********************************************* /*********************************************
* Copyright (c) 2014 AnsibleWorks, Inc. * Copyright (c) 2014 AnsibleWorks, Inc.
* */
/**
* @ngdoc function
* @name helpers.function:Variables
* @description
* VariablesHelper * VariablesHelper
* *
* *

View File

@@ -5,7 +5,11 @@
* *
* *
*/ */
/**
* @ngdoc function
* @name helpers.function:api-defaults
* @description this could use more discussion
*/
'use strict'; 'use strict';
angular.module('APIDefaults', ['RestServices', 'Utilities']) angular.module('APIDefaults', ['RestServices', 'Utilities'])

View File

@@ -1,13 +1,15 @@
/********************************************* /*********************************************
* Copyright (c) 2014 AnsibleWorks, Inc. * Copyright (c) 2014 AnsibleWorks, Inc.
* *
* InventoryHelper */
/**
* @ngdoc function
* @name helpers.function:Inventory
* @description InventoryHelper
* Routines for building the tree. Everything related to the tree is here except * Routines for building the tree. Everything related to the tree is here except
* for the menu piece. The routine for building the menu is in InventoriesEdit controller * for the menu piece. The routine for building the menu is in InventoriesEdit controller
* (controllers/Inventories.js) * (controllers/Inventories.js)
* */
*/
'use strict'; 'use strict';
angular.module('InventoryHelper', ['RestServices', 'Utilities', 'OrganizationListDefinition', 'ListGenerator', 'AuthService', angular.module('InventoryHelper', ['RestServices', 'Utilities', 'OrganizationListDefinition', 'ListGenerator', 'AuthService',

View File

@@ -3,9 +3,14 @@
* *
* md5helper * md5helper
* *
* Run md5Setup({ scope: , master:, check_field:, default_val: }) */
/**
* @ngdoc function
* @name helpers.function:md5
* @description
* Run md5Setup({ scope: , master:, check_field:, default_val: })
* to initialize md5 fields (checkbox and text field). * to initialize md5 fields (checkbox and text field).
* * discussion
*/ */
'use strict'; 'use strict';
@@ -13,7 +18,7 @@
angular.module('md5Helper', ['RestServices', 'Utilities', 'angular-md5']) angular.module('md5Helper', ['RestServices', 'Utilities', 'angular-md5'])
.factory('md5Setup', ['md5', function (md5) { .factory('md5Setup', ['md5', function (md5) {
return function (params) { return function (params) {
var scope = params.scope, var scope = params.scope,
master = params.master, master = params.master,
check_field = params.check_field, check_field = params.check_field,

View File

@@ -1,6 +1,11 @@
/********************************************* /*********************************************
* Copyright (c) 2014 AnsibleWorks, Inc. * Copyright (c) 2014 AnsibleWorks, Inc.
* */
/**
* @ngdoc function
* @name helpers.function:refresh-related
* @description
* discussion
* RefreshRelatedHelper * RefreshRelatedHelper
* *
* Used to refresh a related set whenever pagination or filter options change. * Used to refresh a related set whenever pagination or filter options change.

View File

@@ -1,6 +1,10 @@
/********************************************* /*********************************************
* Copyright (c) 2014 AnsibleWorks, Inc. * Copyright (c) 2014 AnsibleWorks, Inc.
* */
/**
* @ngdoc function
* @name helpers.function:refresh
* @description
* RefreshHelper * RefreshHelper
* *
* Used to refresh a related set whenever pagination or filter options change. * Used to refresh a related set whenever pagination or filter options change.

View File

@@ -1,6 +1,10 @@
/********************************************* /*********************************************
* Copyright (c) 2014 AnsibleWorks, Inc. * Copyright (c) 2014 AnsibleWorks, Inc.
* */
/**
* @ngdoc function
* @name helpers.function:related-search
* @description
* RelatedSearchHelper * RelatedSearchHelper
* *
* All the parts for controlling the search widget on * All the parts for controlling the search widget on
@@ -41,7 +45,7 @@ angular.module('RelatedSearchHelper', ['RestServices', 'Utilities', 'RefreshRela
break; break;
} }
} }
if (Empty(scope[iterator + 'SearchField'])) { if (Empty(scope[iterator + 'SearchField'])) {
// A field marked as key may not be 'searchable'. Find the first searchable field. // A field marked as key may not be 'searchable'. Find the first searchable field.
for (fld in form.related[set].fields) { for (fld in form.related[set].fields) {
@@ -84,7 +88,7 @@ angular.module('RelatedSearchHelper', ['RestServices', 'Utilities', 'RefreshRela
// Functions to handle search widget changes // Functions to handle search widget changes
scope.setSearchField = function (iterator, fld, label) { scope.setSearchField = function (iterator, fld, label) {
var f, related; var f, related;
for (related in form.related) { for (related in form.related) {
@@ -111,7 +115,7 @@ angular.module('RelatedSearchHelper', ['RestServices', 'Utilities', 'RefreshRela
} }
if (f.searchType !== undefined && f.searchType === 'int') { if (f.searchType !== undefined && f.searchType === 'int') {
//scope[iterator + 'HideSearchType'] = true; //scope[iterator + 'HideSearchType'] = true;
scope[iterator + 'SearchType'] = 'int'; scope[iterator + 'SearchType'] = 'int';
} }
@@ -223,7 +227,7 @@ angular.module('RelatedSearchHelper', ['RestServices', 'Utilities', 'RefreshRela
}); });
// Toggle the icon for the clicked column // Toggle the icon for the clicked column
// and set the sort direction // and set the sort direction
icon = $('#' + iterator + '-' + fld + '-header i'); icon = $('#' + iterator + '-' + fld + '-header i');
direction = ''; direction = '';
if (icon.hasClass('fa-sort')) { if (icon.hasClass('fa-sort')) {

View File

@@ -1,6 +1,10 @@
/********************************************* /*********************************************
* Copyright (c) 2014 AnsibleWorks, Inc. * Copyright (c) 2014 AnsibleWorks, Inc.
* */
/**
* @ngdoc function
* @name helpers.function:search
* @description
* SearchHelper * SearchHelper
* *
* All the parts for controlling the search widget on * All the parts for controlling the search widget on

View File

@@ -1,6 +1,10 @@
/********************************************* /*********************************************
* Copyright (c) 2014 AnsibleWorks, Inc. * Copyright (c) 2014 AnsibleWorks, Inc.
* */
/**
* @ngdoc function
* @name helpers.function:teams
* @description
* TeamHelper * TeamHelper
* Routines shared amongst the team controllers * Routines shared amongst the team controllers
*/ */
@@ -39,7 +43,7 @@ angular.module('TeamHelper', ['RestServices', 'Utilities', 'OrganizationListDefi
scope.$on('TeamRefreshFinished', function (e, results) { scope.$on('TeamRefreshFinished', function (e, results) {
// Loop through the result set (sent to us by the search helper) and // Loop through the result set (sent to us by the search helper) and
// lookup the id and name of each organization. After each lookup // lookup the id and name of each organization. After each lookup
// completes, call resultFound. // completes, call resultFound.
var i, lookup_results = [], url; var i, lookup_results = [], url;

View File

@@ -1,8 +1,14 @@
/********************************************* /*********************************************
* Copyright (c) 2014 AnsibleWorks, Inc. * Copyright (c) 2014 AnsibleWorks, Inc.
* */
* Dashboard.js /**
* * @ngdoc overview
* @name widgets
* @description Various widgets, including widgets on the dashboard
/**
* @ngdoc function
* @name widgets.function:DashboardCounts
* @description
* The dashboard widget with stats across the top * The dashboard widget with stats across the top
* *
*/ */

View File

@@ -1,9 +1,10 @@
/********************************************* /*********************************************
* Copyright (c) 2014 AnsibleWorks, Inc. * Copyright (c) 2014 AnsibleWorks, Inc.
* */
* Dashboard.js /**
* * @ngdoc function
* The new dashboard * @name widgets.function:DashboardJobs
* @description
* *
*/ */

View File

@@ -1,12 +1,14 @@
/********************************************* /*********************************************
* Copyright (c) 2014 AnsibleWorks, Inc. * Copyright (c) 2014 AnsibleWorks, Inc.
* */
* Dashboard.js /**
* * @ngdoc function
* The new dashboard * @name widgets.function:HostGraph
* @description
* *
*/ */
'use strict'; 'use strict';
angular.module('HostGraphWidget', ['RestServices', 'Utilities']) angular.module('HostGraphWidget', ['RestServices', 'Utilities'])

View File

@@ -1,6 +1,10 @@
/********************************************* /*********************************************
* Copyright (c) 2014 AnsibleWorks, Inc. * Copyright (c) 2014 AnsibleWorks, Inc.
* */
/**
* @ngdoc function
* @name widgets.function:HostPieChart
* @description
* HostPieChart.js * HostPieChart.js
* *
* file for the host status pie chart * file for the host status pie chart

View File

@@ -1,6 +1,10 @@
/********************************************* /*********************************************
* Copyright (c) 2014 AnsibleWorks, Inc. * Copyright (c) 2014 AnsibleWorks, Inc.
* */
/**
* @ngdoc function
* @name widgets.function:InventorySyncStatus
* @description
* InventorySyncStatus.js * InventorySyncStatus.js
* *
* Dashboard widget showing object counts and license availability. * Dashboard widget showing object counts and license availability.

View File

@@ -1,6 +1,10 @@
/********************************************* /*********************************************
* Copyright (c) 2014 AnsibleWorks, Inc. * Copyright (c) 2014 AnsibleWorks, Inc.
* */
/**
* @ngdoc function
* @name widgets.function:JobStatus
* @description
* JobStatus.js * JobStatus.js
* *
* Dashboard widget showing object counts and license availability. * Dashboard widget showing object counts and license availability.

View File

@@ -1,18 +1,12 @@
/********************************************* /*********************************************
* Copyright (c) 2014 AnsibleWorks, Inc. * Copyright (c) 2014 AnsibleWorks, Inc.
* */
* Dashboard.js /**
* * @ngdoc function
* The new dashboard * @name widgets.function:JobStatusGraph
* * @description
*/ */
/**
* @ngdoc overview
* @name jobstatusgraph
* @description this is hte job status graph widget
*
*/
'use strict'; 'use strict';

View File

@@ -1,6 +1,10 @@
/********************************************* /*********************************************
* Copyright (c) 2014 AnsibleWorks, Inc. * Copyright (c) 2014 AnsibleWorks, Inc.
* */
/**
* @ngdoc function
* @name widgets.function:ObjectCount
* @description
* ObjectCount.js * ObjectCount.js
* *
* Dashboard widget showing object counts and license availability. * Dashboard widget showing object counts and license availability.

View File

@@ -1,6 +1,10 @@
/********************************************* /*********************************************
* Copyright (c) 2014 AnsibleWorks, Inc. * Copyright (c) 2014 AnsibleWorks, Inc.
* */
/**
* @ngdoc function
* @name widgets.function:SCMSyncStatus
* @description
* SCMSyncStatus.js * SCMSyncStatus.js
* *
* Dashboard widget showing object counts and license availability. * Dashboard widget showing object counts and license availability.

View File

@@ -1,6 +1,10 @@
/********************************************* /*********************************************
* Copyright (c) 2014 AnsibleWorks, Inc. * Copyright (c) 2014 AnsibleWorks, Inc.
* */
/**
* @ngdoc function
* @name widgets.function:Stream
* @description
* Stream.js * Stream.js
* *
* Activity stream widget that can be called from anywhere * Activity stream widget that can be called from anywhere

View File

@@ -1,7 +1,10 @@
/********************************************* /*********************************************
* Copyright (c) 2014 AnsibleWorks, Inc. * Copyright (c) 2014 AnsibleWorks, Inc.
* */
* AuthService.js /**
* @ngdoc function
* @name lib.ansible.function:AuthService
* @description AuthService.js
* *
* User authentication functions * User authentication functions
* *

View File

@@ -1,7 +1,11 @@
/************************************ /************************************
* *
* Copyright (c) 2014 AnsibleWorks, Inc. * Copyright (c) 2014 AnsibleWorks, Inc.
* */
/**
* @ngdoc function
* @name lib.ansible.function:inventoryTree
* @description
* InventoryTree.js * InventoryTree.js
* *
* Build data for the tree selector table used on inventory detail page. * Build data for the tree selector table used on inventory detail page.

View File

@@ -1,7 +1,11 @@
/************************************ /************************************
* *
* Copyright (c) 2014 AnsibleWorks, Inc. * Copyright (c) 2014 AnsibleWorks, Inc.
* */
/**
* @ngdoc function
* @name lib.ansible.function:Modal
* @description
* Modal.js * Modal.js
* *
* Create a draggable, resizable modal dialog using jQueryUI. * Create a draggable, resizable modal dialog using jQueryUI.
@@ -14,7 +18,10 @@
angular.module('ModalDialog', ['Utilities', 'ParseHelper']) angular.module('ModalDialog', ['Utilities', 'ParseHelper'])
/** /**
* * @ngdoc method
* @name lib.ansible.function:Modal#CreateDialog
* @methodOf lib.ansible.function:Modal
* @description
* CreateDialog({ * CreateDialog({
* id: - id attribute value of the target DOM element * id: - id attribute value of the target DOM element
* scope: - Required, $scope associated with the #id DOM element * scope: - Required, $scope associated with the #id DOM element

View File

@@ -1,11 +1,20 @@
/********************************************* /*********************************************
* Copyright (c) 2014 AnsibleWorks, Inc. * Copyright (c) 2014 AnsibleWorks, Inc.
* */
/**
* @ngdoc function
* @name lib.ansible.function:RestServices
* @description
* Generic accessor for Ansible Commander services * Generic accessor for Ansible Commander services
* *
*/ */
'use strict'; 'use strict';
/**
* @ngdoc method
* @name lib.ansible.function:RestServices#Rest
* @methodOf lib.ansible.function:RestServices
* @description discuss reason to use this over built in functions with angular/jquery
*/
angular.module('RestServices', ['ngCookies', 'AuthService']) angular.module('RestServices', ['ngCookies', 'AuthService'])
.factory('Rest', ['$http', '$rootScope', '$cookieStore', '$q', 'Authorization', .factory('Rest', ['$http', '$rootScope', '$cookieStore', '$q', 'Authorization',
function ($http, $rootScope, $cookieStore, $q, Authorization) { function ($http, $rootScope, $cookieStore, $q, Authorization) {

View File

@@ -1,6 +1,10 @@
/************************************************** /**************************************************
* Copyright (c) 2014 AnsibleWorks, Inc. * Copyright (c) 2014 AnsibleWorks, Inc.
* */
/**
* @ngdoc function
* @name lib.ansible.function:Socket
* @description
* Socket.js * Socket.js
* *
* Wrapper for lib/socket.io-client/dist/socket.io.js. * Wrapper for lib/socket.io-client/dist/socket.io.js.
@@ -9,7 +13,12 @@
/* global io */ /* global io */
'use strict'; 'use strict';
/**
* @ngdoc method
* @name lib.ansible.function:Socket#SocketIO
* @methodOf lib.ansible.function:Socket
* @description
*/
angular.module('SocketIO', ['AuthService', 'Utilities']) angular.module('SocketIO', ['AuthService', 'Utilities'])
.factory('Socket', ['$rootScope', '$location', '$log', 'Authorization', 'Store', function ($rootScope, $location, $log, Authorization, Store) { .factory('Socket', ['$rootScope', '$location', '$log', 'Authorization', 'Store', function ($rootScope, $location, $log, Authorization, Store) {

View File

@@ -1,6 +1,10 @@
/************************************************** /**************************************************
* Copyright (c) 2014 AnsibleWorks, Inc. * Copyright (c) 2014 AnsibleWorks, Inc.
* */
/**
* @ngdoc function
* @name lib.ansible.function:Timer
* @description
* Timer.js * Timer.js
* *
* Use to track user idle time and expire session. Timeout * Use to track user idle time and expire session. Timeout
@@ -8,7 +12,12 @@
* *
*/ */
'use strict'; 'use strict';
/**
* @ngdoc method
* @name lib.ansible.function:Timer#TimerService
* @methodOf lib.ansible.function:Timer
* @description
*/
angular.module('TimerService', ['ngCookies', 'Utilities']) angular.module('TimerService', ['ngCookies', 'Utilities'])
.factory('Timer', ['$rootScope', '$cookieStore', '$location', 'GetBasePath', 'Empty', .factory('Timer', ['$rootScope', '$cookieStore', '$location', 'GetBasePath', 'Empty',
function ($rootScope, $cookieStore) { function ($rootScope, $cookieStore) {

View File

@@ -1,7 +1,11 @@
/************************************ /************************************
* *
* Copyright (c) 2014 AnsibleWorks, Inc. * Copyright (c) 2014 AnsibleWorks, Inc.
* */
/**
* @ngdoc function
* @name lib.ansible.function:Utilities
* @description
* Utility functions * Utility functions
* *
*/ */
@@ -12,7 +16,11 @@
angular.module('Utilities', ['RestServices', 'Utilities']) angular.module('Utilities', ['RestServices', 'Utilities'])
/* /**
* @ngdoc method
* @name lib.ansible.function:Utilities#ClearScope
* @methodOf lib.ansible.function:Utilities
* @description
* Place to remove things that might be lingering from a prior tab or view. * Place to remove things that might be lingering from a prior tab or view.
* This used to destroy the scope, but that causes issues in angular 1.2.x * This used to destroy the scope, but that causes issues in angular 1.2.x
*/ */
@@ -42,7 +50,11 @@ angular.module('Utilities', ['RestServices', 'Utilities'])
}]) }])
/* Empty() /**
* @ngdoc method
* @name lib.ansible.function:Utilities#Empty
* @methodOf lib.ansible.function:Utilities
* @description Empty()
* *
* Test if a value is 'empty'. Returns true if val is null | '' | undefined. * Test if a value is 'empty'. Returns true if val is null | '' | undefined.
* Only works on non-Ojbect types. * Only works on non-Ojbect types.
@@ -56,7 +68,12 @@ angular.module('Utilities', ['RestServices', 'Utilities'])
} }
]) ])
/**
* @ngdoc method
* @name lib.ansible.function:Utilities#ToggleClass
* @methodOf lib.ansible.function:Utilities
* @description
*/
.factory('ToggleClass', function () { .factory('ToggleClass', function () {
return function (selector, cssClass) { return function (selector, cssClass) {
// Toggles the existance of a css class on a given element // Toggles the existance of a css class on a given element
@@ -69,8 +86,11 @@ angular.module('Utilities', ['RestServices', 'Utilities'])
}) })
/* /**
* Pass in the header and message you want displayed on TB modal dialog found in index.html. * @ngdoc method
* @name lib.ansible.function:Utilities#Alert
* @methodOf lib.ansible.function:Utilities
* @description Pass in the header and message you want displayed on TB modal dialog found in index.html.
* Assumes an #id of 'alert-modal'. Pass in an optional TB alert class (i.e. alert-danger, alert-success, * Assumes an #id of 'alert-modal'. Pass in an optional TB alert class (i.e. alert-danger, alert-success,
* alert-info...). Pass an optional function(){}, if you want a specific action to occur when user * alert-info...). Pass an optional function(){}, if you want a specific action to occur when user
* clicks 'OK' button. Set secondAlert to true, when a second dialog is needed. * clicks 'OK' button. Set secondAlert to true, when a second dialog is needed.
@@ -140,7 +160,12 @@ angular.module('Utilities', ['RestServices', 'Utilities'])
}; };
}]) }])
/**
* @ngdoc method
* @name lib.ansible.function:Utilities#ProcessErrors
* @methodOf lib.ansible.function:Utilities
* @description For handling errors that are returned from the API
*/
.factory('ProcessErrors', ['$rootScope', '$cookieStore', '$log', '$location', 'Alert', 'Wait', .factory('ProcessErrors', ['$rootScope', '$cookieStore', '$log', '$location', 'Alert', 'Wait',
function ($rootScope, $cookieStore, $log, $location, Alert, Wait) { function ($rootScope, $cookieStore, $log, $location, Alert, Wait) {
return function (scope, data, status, form, defaultMsg) { return function (scope, data, status, form, defaultMsg) {
@@ -314,11 +339,14 @@ angular.module('Utilities', ['RestServices', 'Utilities'])
} }
]) ])
/**
/* Display a help dialog * @ngdoc method
* @name lib.ansible.function:Utilities#HelpDialog
* @methodOf lib.ansible.function:Utilities
* @description Display a help dialog
* *
* HelpDialog({ defn: <HelpDefinition> }) * HelpDialog({ defn: <HelpDefinition> })
* * discuss difference b/t this and other modal windows/dialogs
*/ */
.factory('HelpDialog', ['$rootScope', '$compile', '$location', 'Store', .factory('HelpDialog', ['$rootScope', '$compile', '$location', 'Store',
function ($rootScope, $compile, $location, Store) { function ($rootScope, $compile, $location, Store) {
@@ -500,7 +528,11 @@ angular.module('Utilities', ['RestServices', 'Utilities'])
]) ])
/* /**
* @ngdoc method
* @name lib.ansible.function:Utilities#ReturnToCaller
* @methodOf lib.ansible.function:Utilities
* @description
* Split the current path by '/' and use the array elements from 0 up to and * Split the current path by '/' and use the array elements from 0 up to and
* including idx as the new path. If no idx value supplied, use 0 to length - 1. * including idx as the new path. If no idx value supplied, use 0 to length - 1.
* *
@@ -521,7 +553,11 @@ angular.module('Utilities', ['RestServices', 'Utilities'])
]) ])
/* /**
* @ngdoc method
* @name lib.ansible.function:Utilities#FormatDate
* @methodOf lib.ansible.function:Utilities
* @description
* Wrapper for data filter- an attempt to insure all dates display in * Wrapper for data filter- an attempt to insure all dates display in
* the same format. Pass in date object or string. See: http://docs.angularjs.org/api/ng.filter:date * the same format. Pass in date object or string. See: http://docs.angularjs.org/api/ng.filter:date
*/ */
@@ -533,7 +569,11 @@ angular.module('Utilities', ['RestServices', 'Utilities'])
} }
]) ])
/* /**
* @ngdoc method
* @name lib.ansible.function:Utilities#Wait
* @methodOf lib.ansible.function:Utilities
* @description
* Display a spinning icon in the center of the screen to freeze the * Display a spinning icon in the center of the screen to freeze the
* UI while waiting on async things to complete (i.e. API calls). * UI while waiting on async things to complete (i.e. API calls).
* Wait('start' | 'stop'); * Wait('start' | 'stop');
@@ -612,9 +652,11 @@ angular.module('Utilities', ['RestServices', 'Utilities'])
} }
]) ])
/* /**
* Make an Options call to the API and retrieve dropdown options * @ngdoc method
* * @name lib.ansible.function:Utilities#GetChoices
* @methodOf lib.ansible.function:Utilities
* @description Make an Options call to the API and retrieve dropdown options
* GetChoices({ * GetChoices({
* scope: Parent $scope * scope: Parent $scope
* url: API resource to access * url: API resource to access
@@ -665,7 +707,11 @@ angular.module('Utilities', ['RestServices', 'Utilities'])
} }
]) ])
/* /**
* @ngdoc method
* @name lib.ansible.function:Utilities#Find
* @methodOf lib.ansible.function:Utilities
* @description
* Search an array of objects, returning the matchting object or null * Search an array of objects, returning the matchting object or null
* *
* Find({ list: [], key: "key", val: <key value> }); * Find({ list: [], key: "key", val: <key value> });
@@ -692,7 +738,11 @@ angular.module('Utilities', ['RestServices', 'Utilities'])
} }
]) ])
/* /**
* @ngdoc method
* @name lib.ansible.function:Utilities#DebugForm
* @methodOf lib.ansible.function:Utilities
* @description
* DebugForm({ form: <form object>, scope: <current scope object> }); * DebugForm({ form: <form object>, scope: <current scope object> });
* *
* Use to log the $pristine and $valid properties of each form element. Helpful when form * Use to log the $pristine and $valid properties of each form element. Helpful when form
@@ -723,7 +773,11 @@ angular.module('Utilities', ['RestServices', 'Utilities'])
]) ])
/* Store /**
* @ngdoc method
* @name lib.ansible.function:Utilities#Store
* @methodOf lib.ansible.function:Utilities
* @description Store
* *
* Wrapper for local storage. All local storage requests flow through here so that we can * Wrapper for local storage. All local storage requests flow through here so that we can
* stringify/unstringify objects and respond to future issues in one place. For example, * stringify/unstringify objects and respond to future issues in one place. For example,
@@ -733,7 +787,7 @@ angular.module('Utilities', ['RestServices', 'Utilities'])
* store(key,value) will store the value using the key * store(key,value) will store the value using the key
* *
* store(key) retrieves the value of the key * store(key) retrieves the value of the key
* * discuss use case
*/ */
.factory('Store', ['Empty', .factory('Store', ['Empty',
function (Empty) { function (Empty) {
@@ -750,10 +804,13 @@ angular.module('Utilities', ['RestServices', 'Utilities'])
} }
]) ])
/* /**
* * @ngdoc method
* @name lib.ansible.function:Utilities#ApplyEllipsis
* @methodOf lib.ansible.function:Utilities
* @description
* ApplyEllipsis() * ApplyEllipsis()
* * discuss significance
*/ */
.factory('ApplyEllipsis', [ .factory('ApplyEllipsis', [
function () { function () {

View File

@@ -2,7 +2,17 @@
* Copyright (c) 2014 AnsibleWorks, Inc. * Copyright (c) 2014 AnsibleWorks, Inc.
* *
* *
* Read /api and /api/X to discover all the base paths needed */
/**
* @ngdoc overview
* @name lib.ansible
* @description lib files
*
*/
/**
* @ngdoc function
* @name lib.ansible.function:api-loader
* @description Read /api and /api/X to discover all the base paths needed
* to access the primary model objects. * to access the primary model objects.
* *
*/ */

View File

@@ -1,6 +1,10 @@
/********************************************* /*********************************************
* Copyright (c) 2014 AnsibleWorks, Inc. * Copyright (c) 2014 AnsibleWorks, Inc.
* */
/**
* @ngdoc function
* @name lib.ansible.function:directives
* @description
* Custom directives for form validation * Custom directives for form validation
* *
*/ */

Some files were not shown because too many files have changed in this diff Show More