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,7 +7,11 @@
* 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,

View File

@@ -7,7 +7,11 @@
* 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,

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

@@ -5,6 +5,17 @@
* 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', {

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', {

View File

@@ -6,6 +6,11 @@
* *
* *
*/ */
/**
* @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', {

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', {

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

@@ -6,6 +6,11 @@
* 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', {

View File

@@ -6,6 +6,11 @@
* *
* *
*/ */
/**
* @ngdoc function
* @name forms.function:JobEventData
* @description Not sure if this is used...
*/
angular.module('JobEventDataDefinition', []) angular.module('JobEventDataDefinition', [])
.value('JobEventDataForm', { .value('JobEventDataForm', {

View File

@@ -6,6 +6,12 @@
* 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', {

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

@@ -6,7 +6,11 @@
* 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', [])

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', {

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,6 +6,11 @@
* 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', {

View File

@@ -6,6 +6,11 @@
* 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', {

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', {

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

@@ -6,6 +6,11 @@
* *
* *
*/ */
/**
* @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', {

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'])

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,10 +3,14 @@
* *
* 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'])

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).

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.
* *

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
* *

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
* *
*/
/**
* @ngdoc function
* @name helpers.function:md5
* @description
* Run md5Setup({ scope: , master:, check_field:, default_val: }) * 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';

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

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
*/ */

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