diff --git a/web/src/main/webapp/common/filters/application-name-to-class-name.filter.js b/web/src/main/webapp/common/filters/application-name-to-class-name.filter.js index 2223040e2..d083e54e6 100644 --- a/web/src/main/webapp/common/filters/application-name-to-class-name.filter.js +++ b/web/src/main/webapp/common/filters/application-name-to-class-name.filter.js @@ -1,9 +1,24 @@ +/** + * @namespace + */ (function() { 'use strict'; - + /** + * (en)문자열에 포함된 '.', '^', ':' 문자를 '_' 문자로 치환한다. + * @ko 문자열에 포함된 '.', '^', ':' 문자를 '_' 문자로 치환한다. + * @group Filter + * @name pinpointApp#applicationNameToClassName + * @method pinpointApp#applicationNameToCalssName + * @param {String} inputString + * @return {String} converted string + * @example + * ``` + * expect( applicationNameToClassName("com.test.domain") ).toEqual( "com_test_domain" ); + * ``` + */ angular.module('pinpointApp').filter('applicationNameToClassName', function () { return function (input) { - return input.replace(/\./gi,'_').replace(/\^/gi,'_').replace(/:/gi, '_'); + return input.replace( /[\.\^:]/gi, '_'); }; }); })(); \ No newline at end of file diff --git a/web/src/main/webapp/common/filters/icon-url.filter.js b/web/src/main/webapp/common/filters/icon-url.filter.js index d16354989..2fbfa544f 100644 --- a/web/src/main/webapp/common/filters/icon-url.filter.js +++ b/web/src/main/webapp/common/filters/icon-url.filter.js @@ -1,6 +1,22 @@ +/** + * @namespace + */ (function() { 'use strict'; + /** + * (en)icon의 URL 경로를 반환 함. + * @ko icon의 URL 경로를 반환 함. + * @group Filter + * @name pinpointApp#iconUrl + * @method pinpointApp#iconUrl + * @param {String} iconName + * @return {String} icon Url + * @example + * ``` + * expect( iconUrl("TOMCAT") ).toEqual( "/images/icons/TOMCAT.png" ); + * ``` + */ angular.module('pinpointApp').filter('iconUrl', function () { return function(name) { var imageUrl = "/images/icons/"; diff --git a/web/src/main/webapp/common/services/agent-dao.service.js b/web/src/main/webapp/common/services/agent-dao.service.js index 97a9de51c..f334452e3 100644 --- a/web/src/main/webapp/common/services/agent-dao.service.js +++ b/web/src/main/webapp/common/services/agent-dao.service.js @@ -1,6 +1,13 @@ (function() { 'use strict'; + /** + * (en)Agent의 Chart 정보를 로드하고 chart library에 사용할 수 있도록 데이터를 가공함. + * @ko Agent의 Chart 정보를 로드하고 chart library에 사용할 수 있도록 데이터를 가공함. + * @group Service + * @name AgentDaoService + * @class + */ pinpointApp.constant('agentDaoServiceConfig', { agentStatUrl: '/getAgentStat.pinpoint' }); @@ -8,6 +15,13 @@ pinpointApp.service('AgentDaoService', [ 'agentDaoServiceConfig', function AgentDaoService(cfg) { + /** + * (en)선택한 Agent의 Chart 정보를 로드함. + * @ko 선택한 Agent의 Chart 정보를 로드함. + * @method AgentDaoService#getAgentStat + * @param {String} query + * @param {Function} cb + */ this.getAgentStat = function (query, cb) { jQuery.ajax({ type: 'GET', diff --git a/web/src/main/webapp/common/services/alerts.service.js b/web/src/main/webapp/common/services/alerts.service.js index 70f8f6400..97318fdd9 100644 --- a/web/src/main/webapp/common/services/alerts.service.js +++ b/web/src/main/webapp/common/services/alerts.service.js @@ -1,6 +1,12 @@ (function() { 'use strict'; - + /** + * (en)AlertsService + * @ko AlertsService. + * @group Service + * @name AlertsService + * @class + */ pinpointApp.factory('AlertsService', ['$timeout', function ($timeout) { return function (parent) { diff --git a/web/src/main/webapp/common/services/filtered-map-util.service.js b/web/src/main/webapp/common/services/filtered-map-util.service.js index 95e655a82..416c6b314 100644 --- a/web/src/main/webapp/common/services/filtered-map-util.service.js +++ b/web/src/main/webapp/common/services/filtered-map-util.service.js @@ -1,6 +1,12 @@ (function() { 'use strict'; - + /** + * (en)filteredMapUtilService + * @ko filteredMapUtilService + * @group Service + * @name filteredMapUtilService + * @class + */ pinpointApp.factory('filteredMapUtilService', [ 'filterConfig', 'ServerMapFilterVoService', '$window', function (cfg, ServerMapFilterVoService, $window) { // define private variables diff --git a/web/src/main/webapp/common/services/help-content.service.js b/web/src/main/webapp/common/services/help-content.service.js index e0c9d20df..d9e1988db 100644 --- a/web/src/main/webapp/common/services/help-content.service.js +++ b/web/src/main/webapp/common/services/help-content.service.js @@ -1,6 +1,12 @@ (function() { 'use strict'; - + /** + * (en)helpContentService + * @ko helpContentService + * @group Service + * @name helpContentService + * @class + */ pinpointApp.factory('helpContentService', [ '$window', '$injector', 'UserLocalesService', function($window, $injector, UserLocalesService) { var name = "helpContent-" + UserLocalesService.userLocale; diff --git a/web/src/main/webapp/common/services/is-visible.service.js b/web/src/main/webapp/common/services/is-visible.service.js index 7bd41ac95..ceba7c2ba 100644 --- a/web/src/main/webapp/common/services/is-visible.service.js +++ b/web/src/main/webapp/common/services/is-visible.service.js @@ -1,6 +1,12 @@ (function() { 'use strict'; - + /** + * (en)isVisibleService + * @ko isVisibleService + * @group Service + * @name isVisibleService + * @class + */ pinpointApp.factory('isVisibleService', function () { /** diff --git a/web/src/main/webapp/common/services/location.service.js b/web/src/main/webapp/common/services/location.service.js index 1daff0667..7fab9d0c4 100644 --- a/web/src/main/webapp/common/services/location.service.js +++ b/web/src/main/webapp/common/services/location.service.js @@ -1,6 +1,12 @@ (function() { 'use strict'; - + /** + * (en)locationService + * @ko locationService + * @group Service + * @name locationService + * @class + */ pinpointApp.factory('locationService', [ '$location', '$route', '$rootScope', function ($location, $route, $rootScope) { $location.skipReload = function () { var lastRoute = $route.current; diff --git a/web/src/main/webapp/common/services/navbar-vo.service.js b/web/src/main/webapp/common/services/navbar-vo.service.js index e15ec841d..822927b4d 100644 --- a/web/src/main/webapp/common/services/navbar-vo.service.js +++ b/web/src/main/webapp/common/services/navbar-vo.service.js @@ -1,6 +1,12 @@ (function() { 'use strict'; - + /** + * (en)NavbarVoService + * @ko NavbarVoService + * @group Service + * @name NavbarVoService + * @class + */ pinpointApp.factory('NavbarVoService', function () { return function () { // define and initialize private variables; diff --git a/web/src/main/webapp/common/services/progress-bar.service.js b/web/src/main/webapp/common/services/progress-bar.service.js index bf67e06df..5d4462105 100644 --- a/web/src/main/webapp/common/services/progress-bar.service.js +++ b/web/src/main/webapp/common/services/progress-bar.service.js @@ -1,6 +1,12 @@ (function() { 'use strict'; - + /** + * (en)ProgressBarService + * @ko ProgressBarService + * @group Service + * @name ProgressBarService + * @class + */ pinpointApp.factory('ProgressBarService', [ '$timeout', '$window', '$location', 'UserLocalesService', function ($timeout, $window, $location, UserLocalesService) { var AVAILABLE_LOCALE = [ "ko", "en" ]; var TIP_MAX_COUNT = 5; diff --git a/web/src/main/webapp/common/services/server-map-dao.service.js b/web/src/main/webapp/common/services/server-map-dao.service.js index 180eb68a8..eca1a744b 100644 --- a/web/src/main/webapp/common/services/server-map-dao.service.js +++ b/web/src/main/webapp/common/services/server-map-dao.service.js @@ -1,6 +1,12 @@ (function() { 'use strict'; - + /** + * (en)ServerMapDaoService + * @ko ServerMapDaoService + * @group Service + * @name ServerMapDaoService + * @class + */ pinpointApp.constant('serverMapDaoServiceConfig', { serverMapDataUrl: '/getServerMapData.pinpoint', filteredServerMapDataUrl: '/getFilteredServerMapData.pinpoint', diff --git a/web/src/main/webapp/common/services/server-map-filter-vo.service.js b/web/src/main/webapp/common/services/server-map-filter-vo.service.js index edc2cd324..03b30ac4c 100644 --- a/web/src/main/webapp/common/services/server-map-filter-vo.service.js +++ b/web/src/main/webapp/common/services/server-map-filter-vo.service.js @@ -1,6 +1,12 @@ (function() { 'use strict'; - + /** + * (en)ServerMapFilterVoService + * @ko ServerMapFilterVoService + * @group Service + * @name ServerMapFilterVoService + * @class + */ pinpointApp.factory('ServerMapFilterVoService', [ function () { return function ServerMapFilterVoService(dataSet) { var self = this; diff --git a/web/src/main/webapp/common/services/server-map-hint-vo.service.js b/web/src/main/webapp/common/services/server-map-hint-vo.service.js index cc51ff414..59c555885 100644 --- a/web/src/main/webapp/common/services/server-map-hint-vo.service.js +++ b/web/src/main/webapp/common/services/server-map-hint-vo.service.js @@ -1,6 +1,12 @@ (function() { 'use strict'; - + /** + * (en)ServerMapHintVoService + * @ko ServerMapHintVoService + * @group Service + * @name ServerMapHintVoService + * @class + */ pinpointApp.factory('ServerMapHintVoService', [function () { return function ServerMapHintVo(dataSet) { var self = this; diff --git a/web/src/main/webapp/common/services/sidebar-title-vo.service.js b/web/src/main/webapp/common/services/sidebar-title-vo.service.js index 12f2cb319..b4c30596f 100644 --- a/web/src/main/webapp/common/services/sidebar-title-vo.service.js +++ b/web/src/main/webapp/common/services/sidebar-title-vo.service.js @@ -1,6 +1,12 @@ (function() { 'use strict'; - + /** + * (en)SidebarTitleVoService + * @ko SidebarTitleVoService + * @group Service + * @name SidebarTitleVoService + * @class + */ pinpointApp.factory('SidebarTitleVoService', [ function () { return function () { var self = this; diff --git a/web/src/main/webapp/common/services/time-slider-vo.service.js b/web/src/main/webapp/common/services/time-slider-vo.service.js index 0ca74ab33..aa52b5c9b 100644 --- a/web/src/main/webapp/common/services/time-slider-vo.service.js +++ b/web/src/main/webapp/common/services/time-slider-vo.service.js @@ -1,6 +1,12 @@ (function() { 'use strict'; - + /** + * (en)TimeSliderVoService + * @ko TimeSliderVoService + * @group Service + * @name TimeSliderVoService + * @class + */ pinpointApp.factory('TimeSliderVoService', function () { return function () { // define and initialize private variables; diff --git a/web/src/main/webapp/common/services/transaction-dao.service.js b/web/src/main/webapp/common/services/transaction-dao.service.js index 1b216e49f..9ba068a09 100644 --- a/web/src/main/webapp/common/services/transaction-dao.service.js +++ b/web/src/main/webapp/common/services/transaction-dao.service.js @@ -1,6 +1,12 @@ (function() { 'use strict'; - + /** + * (en)TransactionDaoService + * @ko TransactionDaoService + * @group Service + * @name TransactionDaoService + * @class + */ pinpointApp.constant('TransactionDaoServiceConfig', { transactionInfoUrl: '/transactionInfo.pinpoint' }); diff --git a/web/src/main/webapp/common/services/user-locales.service.js b/web/src/main/webapp/common/services/user-locales.service.js index b3f367f70..2f7cca4b5 100644 --- a/web/src/main/webapp/common/services/user-locales.service.js +++ b/web/src/main/webapp/common/services/user-locales.service.js @@ -1,6 +1,12 @@ (function() { 'use strict'; - + /** + * (en)UserLocalesService + * @ko UserLocalesService + * @group Service + * @name UserLocalesService + * @class + */ pinpointApp.factory("UserLocalesService", function( $window) { var defaultLocale = "en"; // May not be the best way to get locale. diff --git a/web/src/main/webapp/scripts/app.js b/web/src/main/webapp/scripts/app.js index 951e0e439..0b15fcb42 100644 --- a/web/src/main/webapp/scripts/app.js +++ b/web/src/main/webapp/scripts/app.js @@ -1,3 +1,6 @@ +/** + * @namespace pinpointApp + */ 'use strict'; //nv.dev = false;