Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use nice name for the API doc #4611

Merged
merged 1 commit into from
Feb 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 4 additions & 2 deletions contribs/gmf/src/authentication/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const module = angular.module('gmfAuthentication', [
* @param {JQuery} element Element.
* @param {angular.IAttributes} attrs Attributes.
* @return {string} Template URL.
* @private
*/
function gmfAuthenticationTemplateUrl_(element, attrs) {
const templateUrl = attrs['gmfAuthenticationTemplateurl'];
Expand All @@ -49,6 +50,7 @@ module.run(/* @ngInject */ ($templateCache) => {
* @param {!function(!JQuery, !angular.IAttributes): string} gmfAuthenticationTemplateUrl Template function.
* @return {string} Template URL.
* @ngInject
* @private
*/
function gmfAuthenticationTemplateUrl($element, $attrs, gmfAuthenticationTemplateUrl) {
return gmfAuthenticationTemplateUrl($element, $attrs);
Expand Down Expand Up @@ -112,7 +114,7 @@ function gmfAuthenticationTemplateUrl($element, $attrs, gmfAuthenticationTemplat
* @ngdoc component
* @ngname gmfAuthentication
*/
const component = {
const authenticationComponent = {
bindings: {
'allowPasswordReset': '<?gmfAuthenticationAllowPasswordReset',
'allowPasswordChange': '<?gmfAuthenticationAllowPasswordChange',
Expand All @@ -127,7 +129,7 @@ const component = {
module.value('gmfAuthenticationTemplateUrl',
gmfAuthenticationTemplateUrl_);

module.component('gmfAuthentication', component);
module.component('gmfAuthentication', authenticationComponent);


/**
Expand Down
5 changes: 3 additions & 2 deletions contribs/gmf/src/backgroundlayerselector/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ module.run(/* @ngInject */ ($templateCache) => {
* @param {!function(!JQuery, !angular.IAttributes): string} gmfBackgroundlayerselectorTemplateUrl Template function.
* @return {string} Template URL.
* @ngInject
* @private
*/
function gmfBackgroundlayerselectorTemplateUrl($element, $attrs, gmfBackgroundlayerselectorTemplateUrl) {
return gmfBackgroundlayerselectorTemplateUrl($element, $attrs);
Expand Down Expand Up @@ -67,7 +68,7 @@ function gmfBackgroundlayerselectorTemplateUrl($element, $attrs, gmfBackgroundla
* @ngdoc component
* @ngname gmfBackgroundlayerselector
*/
const component = {
const backgroundlayerselectorComponent = {
controller: 'GmfBackgroundlayerselectorController as ctrl',
bindings: {
'map': '=gmfBackgroundlayerselectorMap',
Expand All @@ -78,7 +79,7 @@ const component = {
};


module.component('gmfBackgroundlayerselector', component);
module.component('gmfBackgroundlayerselector', backgroundlayerselectorComponent);


/**
Expand Down
8 changes: 4 additions & 4 deletions contribs/gmf/src/contextualdata/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const module = angular.module('gmfContextualdata', [
* @ngdoc directive
* @ngname gmfContextualdata
*/
function directive() {
function contextualDataComponent() {
return {
restrict: 'A',
scope: false,
Expand All @@ -68,7 +68,7 @@ function directive() {
};
}

module.directive('gmfContextualdata', directive);
module.directive('gmfContextualdata', contextualDataComponent);


/**
Expand Down Expand Up @@ -265,15 +265,15 @@ module.controller('GmfContextualdataController', ContextualdataController);
* @ngdoc directive
* @ngname gmfContextualdatacontent
*/
function contentDirective(gmfContextualdatacontentTemplateUrl) {
function contextualDataComponentContent(gmfContextualdatacontentTemplateUrl) {
return {
restrict: 'A',
scope: true,
templateUrl: gmfContextualdatacontentTemplateUrl
};
}

module.directive('gmfContextualdatacontent', contentDirective);
module.directive('gmfContextualdatacontent', contextualDataComponentContent);


export default module;
4 changes: 2 additions & 2 deletions contribs/gmf/src/disclaimer/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ Controller.prototype.closeDisclaimerMessage_ = function(msg) {
* @ngdoc component
* @ngname gmfDisclaimer
*/
const component = {
const disclamerComponent = {
controller: Controller,
bindings: {
'popup': '<?gmfDisclaimerPopup',
Expand All @@ -353,7 +353,7 @@ const component = {
};


module.component('gmfDisclaimer', component);
module.component('gmfDisclaimer', disclamerComponent);


export default module;
4 changes: 2 additions & 2 deletions contribs/gmf/src/drawing/drawFeatureComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ module.run(/* @ngInject */ ($templateCache) => {
* @ngdoc directive
* @ngname gmfDrawfeature
*/
function component() {
function drawinfDrawFeatureComponent() {
return {
controller: 'GmfDrawfeatureController as efCtrl',
scope: {
Expand All @@ -79,7 +79,7 @@ function component() {
}


module.directive('gmfDrawfeature', component);
module.directive('gmfDrawfeature', drawinfDrawFeatureComponent);


/**
Expand Down
4 changes: 2 additions & 2 deletions contribs/gmf/src/drawing/featureStyleComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ module.run(/* @ngInject */ ($templateCache) => {
* @ngdoc directive
* @ngname gmfFeaturestyle
*/
function directive() {
function drawingDrawFeatureComponent() {
return {
controller: 'GmfFeaturestyleController as fsCtrl',
scope: {
Expand All @@ -49,7 +49,7 @@ function directive() {
}


module.directive('gmfFeaturestyle', directive);
module.directive('gmfFeaturestyle', drawingDrawFeatureComponent);


/**
Expand Down
4 changes: 2 additions & 2 deletions contribs/gmf/src/editing/editFeatureComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ module.run(/* @ngInject */ ($templateCache) => {
* @ngdoc directive
* @ngname gmfEditfeature
*/
function component() {
function editingEditFeatureComponent() {
return {
controller: 'GmfEditfeatureController as efCtrl',
scope: {
Expand All @@ -165,7 +165,7 @@ function component() {
}


module.directive('gmfEditfeature', component);
module.directive('gmfEditfeature', editingEditFeatureComponent);


/**
Expand Down
4 changes: 2 additions & 2 deletions contribs/gmf/src/editing/editFeatureSelectorComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ module.run(/* @ngInject */ ($templateCache) => {
* @ngdoc directive
* @ngname gmfEditfeatureselector
*/
function component() {
function editingEditFeatureComponent() {
return {
controller: 'GmfEditfeatureselectorController as efsCtrl',
scope: {
Expand All @@ -62,7 +62,7 @@ function component() {
}


module.directive('gmfEditfeatureselector', component);
module.directive('gmfEditfeatureselector', editingEditFeatureComponent);


/**
Expand Down
3 changes: 1 addition & 2 deletions contribs/gmf/src/filters/filterselectorComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ module.value('gmfFilterselectorTemplateUrl',
* @param {!function(!angular.IAttributes): string} gmfFilterselectorTemplateUrl Template function.
* @return {string} Template URL.
* @ngInject
* @private
*/
function gmfFilterselectorTemplateUrl($attrs, gmfFilterselectorTemplateUrl) {
return gmfFilterselectorTemplateUrl($attrs);
Expand Down Expand Up @@ -723,8 +724,6 @@ class Controller {
* @property {Array.<import('ngeo/rule/Rule.js').default>} customRules
* @property {Array.<import('ngeo/rule/Rule.js').default>} directedRules
*/


module.component('gmfFilterselector', {
bindings: {
active: '=',
Expand Down
1 change: 1 addition & 0 deletions contribs/gmf/src/import/importdatasourceComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ module.value('gmfImportdatasourceTemplateUrl',
* @param {!function(!angular.IAttributes): string} gmfImportdatasourceTemplateUrl Template function.
* @return {string} Template URL.
* @ngInject
* @private
*/
function gmfImportdatasourceTemplateUrl($attrs, gmfImportdatasourceTemplateUrl) {
return gmfImportdatasourceTemplateUrl($attrs);
Expand Down
1 change: 1 addition & 0 deletions contribs/gmf/src/import/wmsCapabilityLayertreeComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ module.value('gmfWmscapabilitylayertreenodeTemplateUrl',
* @param {!function(!angular.IAttributes): string} gmfWmscapabilitylayertreenodeTemplateUrl Template function.
* @return {string} Template URL.
* @ngInject
* @private
*/
function gmfWmscapabilitylayertreenodeTemplateUrl($attrs, gmfWmscapabilitylayertreenodeTemplateUrl) {
return gmfWmscapabilitylayertreenodeTemplateUrl($attrs);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ module.value('gmfWmtscapabilitylayertreTemplateUrl',
* @param {!function(!angular.IAttributes): string} gmfWmtscapabilitylayertreTemplateUrl Template function.
* @return {string} Template URL.
* @ngInject
* @private
*/
function gmfWmtscapabilitylayertreTemplateUrl($attrs, gmfWmtscapabilitylayertreTemplateUrl) {
return gmfWmtscapabilitylayertreTemplateUrl($attrs);
Expand Down
4 changes: 2 additions & 2 deletions contribs/gmf/src/layertree/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ function gmfLayertreeTemplate($element, $attrs, gmfLayertreeTemplate) {
* @ngdoc component
* @ngname gmfLayertreeComponent
*/
const component = {
const layertreeComponent = {
controller: 'GmfLayertreeController as gmfLayertreeCtrl',
bindings: {
'map': '=gmfLayertreeMap',
Expand All @@ -151,7 +151,7 @@ const component = {
template: gmfLayertreeTemplate
};

module.component('gmfLayertree', component);
module.component('gmfLayertree', layertreeComponent);


/**
Expand Down
1 change: 1 addition & 0 deletions contribs/gmf/src/layertree/datasourceGroupTreeComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ module.value('gmfLayertreeDatasourceGroupTreeTemplateUrl',
* @param {!function(!angular.IAttributes): string} gmfLayertreeDatasourceGroupTreeTemplateUrl Template function.
* @return {string} Template URL.
* @ngInject
* @private
*/
function gmfLayertreeDatasourceGroupTreeTemplateUrl($attrs, gmfLayertreeDatasourceGroupTreeTemplateUrl) {
return gmfLayertreeDatasourceGroupTreeTemplateUrl($attrs);
Expand Down
4 changes: 2 additions & 2 deletions contribs/gmf/src/layertree/timeSliderComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ module.run(/* @ngInject */ ($templateCache) => {
* @ngdoc directive
* @ngname gmfTimeSlider
*/
function directive() {
function layertreeTimeSliderComponent() {
return {
scope: {
onDateSelected: '&gmfTimeSliderOnDateSelected',
Expand Down Expand Up @@ -90,7 +90,7 @@ function directive() {
}


module.directive('gmfTimeSlider', directive);
module.directive('gmfTimeSlider', layertreeTimeSliderComponent);


/**
Expand Down
5 changes: 3 additions & 2 deletions contribs/gmf/src/lidarprofile/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ module.run(/* @ngInject */ ($templateCache) => {
* @param {!function(!JQuery, !angular.IAttributes): string} gmfLidarprofileTemplateUrl Template function.
* @return {string} Template URL.
* @ngInject
* @private
*/
function gmfLidarprofileTemplateUrl($element, $attrs, gmfLidarprofileTemplateUrl) {
return gmfLidarprofileTemplateUrl($element, $attrs);
Expand All @@ -50,7 +51,7 @@ function gmfLidarprofileTemplateUrl($element, $attrs, gmfLidarprofileTemplateUrl
* @ngdoc component
* @ngname gmfLidarprofile
*/
const component = {
const lidarprofileComponent = {
controller: 'GmfLidarprofileController',
bindings: {
'active': '=gmfLidarprofileActive',
Expand All @@ -59,7 +60,7 @@ const component = {
templateUrl: gmfLidarprofileTemplateUrl
};

module.component('gmfLidarprofile', component);
module.component('gmfLidarprofile', lidarprofileComponent);


/**
Expand Down
5 changes: 3 additions & 2 deletions contribs/gmf/src/lidarprofile/panelComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ module.run(/* @ngInject */ ($templateCache) => {
* Template function.
* @return {string} Template URL.
* @ngInject
* @private
*/
function gmfLidarprofilePanelTemplateUrl($element, $attrs, gmfLidarprofilePanelTemplateUrl) {
return gmfLidarprofilePanelTemplateUrl($element, $attrs);
Expand All @@ -70,7 +71,7 @@ function gmfLidarprofilePanelTemplateUrl($element, $attrs, gmfLidarprofilePanelT
* @ngdoc component
* @ngname gmfLidarprofilePanel
*/
const component = {
const lidarprofilePanelComponent = {
controller: 'gmfLidarprofilePanelController',
bindings: {
'active': '=gmfLidarprofilePanelActive',
Expand All @@ -81,7 +82,7 @@ const component = {
};


module.component('gmfLidarprofilePanel', component);
module.component('gmfLidarprofilePanel', lidarprofilePanelComponent);


/**
Expand Down
4 changes: 2 additions & 2 deletions contribs/gmf/src/map/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ module.run(/* @ngInject */ ($templateCache) => {
* @ngdoc directive
* @ngname gmfMap
*/
function directive() {
function mapComponent() {
return {
scope: {
'map': '<gmfMapMap',
Expand All @@ -53,7 +53,7 @@ function directive() {
};
}

module.directive('gmfMap', directive);
module.directive('gmfMap', mapComponent);


/**
Expand Down
5 changes: 3 additions & 2 deletions contribs/gmf/src/map/mousepositionComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ module.value('gmfMapMousepositionTemplateUrl',
* @param {!function(!angular.IAttributes): string} gmfMapMousepositionTemplateUrl Template function.
* @return {string} Template URL.
* @ngInject
* @private
*/
function gmfMapMousepositionTemplateUrl($attrs, gmfMapMousepositionTemplateUrl) {
return gmfMapMousepositionTemplateUrl($attrs);
Expand All @@ -70,7 +71,7 @@ function gmfMapMousepositionTemplateUrl($attrs, gmfMapMousepositionTemplateUrl)
* @ngdoc component
* @ngname gmfMouseposition
*/
const component = {
const mapMousepositionComponent = {
controller: 'gmfMousepositionController as ctrl',
bindings: {
'map': '<gmfMousepositionMap',
Expand All @@ -79,7 +80,7 @@ const component = {
templateUrl: gmfMapMousepositionTemplateUrl
};

module.component('gmfMouseposition', component);
module.component('gmfMouseposition', mapMousepositionComponent);


/**
Expand Down
4 changes: 2 additions & 2 deletions contribs/gmf/src/mobile/measure/areaComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ module.run(/* @ngInject */ ($templateCache) => {
* @ngdoc directive
* @ngname gmfMobileMeasureArea
*/
function component(gmfMobileMeasureAreaTemplateUrl) {
function mobileMeasureAreaComponent(gmfMobileMeasureAreaTemplateUrl) {
return {
restrict: 'A',
scope: {
Expand All @@ -74,7 +74,7 @@ function component(gmfMobileMeasureAreaTemplateUrl) {
}


module.directive('gmfMobileMeasurearea', component);
module.directive('gmfMobileMeasurearea', mobileMeasureAreaComponent);


class Controller extends MeasueMobileBaseController {
Expand Down