Skip to content

Commit

Permalink
Move injects after copyright
Browse files Browse the repository at this point in the history
  • Loading branch information
ger-benjamin committed Sep 3, 2024
1 parent b03227d commit 92da1d7
Show file tree
Hide file tree
Showing 42 changed files with 96 additions and 48 deletions.
3 changes: 2 additions & 1 deletion contribs/gmf/examples/backgroundlayerselector.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
MainController.$inject = ['gmfThemes'];
// The MIT License (MIT)
//
// Copyright (c) 2016-2024 Camptocamp SA
Expand Down Expand Up @@ -44,6 +43,8 @@ const myModule = angular.module('gmfapp', [
ngeoMapModule.name,
]);

MainController.$inject = ['gmfThemes'];

/**
* @param {import('gmf/theme/Themes').ThemesService} gmfThemes Themes service.
* @class
Expand Down
3 changes: 2 additions & 1 deletion contribs/gmf/examples/datepicker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
MainController.$inject = ['ngeoWMSTime'];
// The MIT License (MIT)
//
// Copyright (c) 2016-2024 Camptocamp SA
Expand Down Expand Up @@ -38,6 +37,8 @@ const myModule = angular.module('gmfapp', [
ngeoMiscWMSTime.name,
]);

MainController.$inject = ['ngeoWMSTime'];

/**
* @class
* @param {import('ngeo/misc/WMSTime').WMSTime} ngeoWMSTime wmstime service.
Expand Down
6 changes: 4 additions & 2 deletions contribs/gmf/examples/displayquerygrid.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
MainController.$inject = ['gmfThemes', 'gmfDataSourcesManager', 'gmfThemeManager', 'defaultTheme'];
QueryresultController.$inject = ['ngeoQueryResult'];
// The MIT License (MIT)
//
// Copyright (c) 2016-2024 Camptocamp SA
Expand Down Expand Up @@ -75,6 +73,8 @@ const queryresultComponent = {
};
myModule.component('gmfappQueryresult', queryresultComponent);

QueryresultController.$inject = ['ngeoQueryResult'];

/**
* Demo, NOT USED.
*
Expand All @@ -89,6 +89,8 @@ function QueryresultController(ngeoQueryResult) {
}
myModule.controller('gmfappQueryresultController', QueryresultController);

MainController.$inject = ['gmfThemes', 'gmfDataSourcesManager', 'gmfThemeManager', 'defaultTheme'];

/**
* @class
* @param {import('gmf/theme/Themes').ThemesService} gmfThemes The gmf themes service.
Expand Down
6 changes: 4 additions & 2 deletions contribs/gmf/examples/displayquerywindow.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
MainController.$inject = ['gmfThemes', 'gmfDataSourcesManager', 'gmfThemeManager', 'defaultTheme'];
QueryresultController.$inject = ['ngeoQueryResult'];
// The MIT License (MIT)
//
// Copyright (c) 2016-2024 Camptocamp SA
Expand Down Expand Up @@ -73,6 +71,8 @@ const queryresultComponent = {
};
myModule.component('appQueryresult', queryresultComponent);

QueryresultController.$inject = ['ngeoQueryResult'];

/**
* Demo, NOT USED.
*
Expand All @@ -87,6 +87,8 @@ function QueryresultController(ngeoQueryResult) {
}
myModule.controller('AppQueryresultController', QueryresultController);

MainController.$inject = ['gmfThemes', 'gmfDataSourcesManager', 'gmfThemeManager', 'defaultTheme'];

/**
* @class
* @param {import('gmf/theme/Themes').ThemesService} gmfThemes The gmf themes service.
Expand Down
3 changes: 2 additions & 1 deletion contribs/gmf/examples/drawfeature.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
MainController.$inject = ['$scope', 'ngeoFeatureHelper', 'ngeoFeatures', 'ngeoToolActivateMgr'];
// The MIT License (MIT)
//
// Copyright (c) 2016-2024 Camptocamp SA
Expand Down Expand Up @@ -52,6 +51,8 @@ const myModule = angular.module('gmfapp', [
ngeoMiscToolActivateMgr.name,
]);

MainController.$inject = ['$scope', 'ngeoFeatureHelper', 'ngeoFeatures', 'ngeoToolActivateMgr'];

/**
* @param {angular.IScope} $scope Angular scope.
* @param {import('ngeo/misc/FeatureHelper').FeatureHelper} ngeoFeatureHelper Gmf feature helper service.
Expand Down
3 changes: 2 additions & 1 deletion contribs/gmf/examples/featurestyle.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
MainController.$inject = ['$scope', 'ngeoFeatureHelper'];
// The MIT License (MIT)
//
// Copyright (c) 2016-2024 Camptocamp SA
Expand Down Expand Up @@ -56,6 +55,8 @@ const myModule = angular.module('gmfapp', [
ngeoMapModule.name,
]);

MainController.$inject = ['$scope', 'ngeoFeatureHelper'];

/**
* @class
* @param {angular.IScope} $scope Angular scope.
Expand Down
3 changes: 2 additions & 1 deletion contribs/gmf/examples/layertree.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
MainController.$inject = ['gmfTreeManager', 'gmfThemes', 'gmfThemeManager', 'ngeoLocation'];
// The MIT License (MIT)
//
// Copyright (c) 2016-2024 Camptocamp SA
Expand Down Expand Up @@ -56,6 +55,8 @@ const myModule = angular.module('gmfapp', [
gmfDisclaimerModule.name,
]);

MainController.$inject = ['gmfTreeManager', 'gmfThemes', 'gmfThemeManager', 'ngeoLocation'];

/**
* @class
* @param {import('gmf/layertree/TreeManager').LayertreeTreeManager} gmfTreeManager gmf Tree Manager
Expand Down
3 changes: 2 additions & 1 deletion contribs/gmf/examples/layertreeadd.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
MainController.$inject = ['gmfTreeManager', 'gmfThemes', 'gmfThemeManager', 'ngeoLocation'];
// The MIT License (MIT)
//
// Copyright (c) 2016-2024 Camptocamp SA
Expand Down Expand Up @@ -54,6 +53,8 @@ const myModule = angular.module('gmfapp', [
ngeoMapModule.name,
]);

MainController.$inject = ['gmfTreeManager', 'gmfThemes', 'gmfThemeManager', 'ngeoLocation'];

/**
* @class
* @param {import('gmf/layertree/TreeManager').LayertreeTreeManager} gmfTreeManager gmf Tree Manager
Expand Down
3 changes: 2 additions & 1 deletion contribs/gmf/examples/mobilemeasure.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
MainController.$inject = ['gmfPermalink'];
// The MIT License (MIT)
//
// Copyright (c) 2016-2024 Camptocamp SA
Expand Down Expand Up @@ -53,6 +52,8 @@ const myModule = angular.module('gmfapp', [
ngeoMapModule.name,
]);

MainController.$inject = ['gmfPermalink'];

/**
* @param {import('gmf/permalink/Permalink').PermalinkService} gmfPermalink The gmf permalink service.
* @class
Expand Down
3 changes: 2 additions & 1 deletion contribs/gmf/examples/objectediting.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
MainController.$inject = ['gmfObjectEditingManager', 'gmfThemes', 'gmfTreeManager', 'ngeoToolActivateMgr'];
// The MIT License (MIT)
//
// Copyright (c) 2016-2024 Camptocamp SA
Expand Down Expand Up @@ -59,6 +58,8 @@ const myModule = angular.module('gmfapp', [
ngeoMapModule.name,
]);

MainController.$inject = ['gmfObjectEditingManager', 'gmfThemes', 'gmfTreeManager', 'ngeoToolActivateMgr'];

/**
* @param {import('gmf/objectediting/Manager').ObjecteditingManagerService} gmfObjectEditingManager The gmf
* ObjectEditing manager service.
Expand Down
3 changes: 2 additions & 1 deletion contribs/gmf/examples/objecteditinghub.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
MainController.$inject = ['$http', '$q', '$scope', 'gmfThemes', 'gmfXSDAttributes'];
// The MIT License (MIT)
//
// Copyright (c) 2016-2024 Camptocamp SA
Expand Down Expand Up @@ -41,6 +40,8 @@ const myModule = angular.module('gmfapp', [
gmfThemeThemes.name,
]);

MainController.$inject = ['$http', '$q', '$scope', 'gmfThemes', 'gmfXSDAttributes'];

/**
* @param {angular.IHttpService} $http Angular $http service.
* @param {angular.IQService} $q Angular $q service.
Expand Down
3 changes: 2 additions & 1 deletion contribs/gmf/examples/print.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
MainController.$inject = ['gmfThemes'];
// The MIT License (MIT)
//
// Copyright (c) 2016-2024 Camptocamp SA
Expand Down Expand Up @@ -49,6 +48,8 @@ const myModule = angular.module('gmfapp', [
ngeoMapModule.name, //for ngeo.map.FeatureOverlay, perhaps remove me
]);

MainController.$inject = ['gmfThemes'];

/**
* @class
* @param {import('gmf/theme/Themes').ThemesService} gmfThemes The gmf themes service.
Expand Down
3 changes: 2 additions & 1 deletion contribs/gmf/examples/profile.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
MainController.$inject = ['$scope'];
// The MIT License (MIT)
//
// Copyright (c) 2014-2024 Camptocamp SA
Expand Down Expand Up @@ -51,6 +50,8 @@ const myModule = angular.module('gmfapp', [
ngeoMapModule.name, // for ngeo.map.FeatureOverlay, perhaps remove me
]);

MainController.$inject = ['$scope'];

/**
* @param {angular.IScope} $scope Angular scope.
* @class
Expand Down
3 changes: 2 additions & 1 deletion contribs/gmf/examples/search.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
MainController.$inject = ['gmfThemes'];
// The MIT License (MIT)
//
// Copyright (c) 2015-2024 Camptocamp SA
Expand Down Expand Up @@ -49,6 +48,8 @@ const myModule = angular.module('gmfapp', [
ngeoMapModule.name, // for ngeo.map.FeatureOverlay, perhaps remove me
]);

MainController.$inject = ['gmfThemes'];

/**
* @param {import('gmf/theme/Themes').ThemesService} gmfThemes Themes service.
* @class
Expand Down
3 changes: 2 additions & 1 deletion contribs/gmf/examples/themeselector.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
MainController.$inject = ['$http', 'gmfThemes', 'gmfThemeManager'];
// The MIT License (MIT)
//
// Copyright (c) 2016-2024 Camptocamp SA
Expand Down Expand Up @@ -30,6 +29,8 @@ import options from './options';
/** @type {angular.IModule} **/
const myModule = angular.module('gmfapp', ['gettext', gmfLayertreeTreeManager.name, gmfThemeModule.name]);

MainController.$inject = ['$http', 'gmfThemes', 'gmfThemeManager'];

/**
* @class
* @param {angular.IHttpService} $http Angular's $http service.
Expand Down
3 changes: 2 additions & 1 deletion contribs/gmf/examples/timeslider.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
MainController.$inject = ['$scope', 'ngeoWMSTime'];
// The MIT License (MIT)
//
// Copyright (c) 2016-2024 Camptocamp SA
Expand Down Expand Up @@ -35,6 +34,8 @@ const myModule = angular.module('gmfapp', [
ngeoMiscWMSTime.name,
]);

MainController.$inject = ['$scope', 'ngeoWMSTime'];

/**
* @class
* @param {angular.IScope} $scope Angular scope.
Expand Down
3 changes: 2 additions & 1 deletion contribs/gmf/examples/xsdattributes.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
MainController.$inject = ['$timeout', 'gmfThemes', 'gmfXSDAttributes'];
// The MIT License (MIT)
//
// Copyright (c) 2016-2024 Camptocamp SA
Expand Down Expand Up @@ -38,6 +37,8 @@ const myModule = angular.module('gmfapp', [
ngeoEditingAttributesComponent.name,
]);

MainController.$inject = ['$timeout', 'gmfThemes', 'gmfXSDAttributes'];

/**
* @param {angular.ITimeoutService} $timeout Angular timeout service.
* @param {import('gmf/theme/Themes').ThemesService} gmfThemes The gmf themes service.
Expand Down
3 changes: 2 additions & 1 deletion examples/animation.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
MainController.$inject = ['$timeout'];
// The MIT License (MIT)
//
// Copyright (c) 2014-2024 Camptocamp SA
Expand Down Expand Up @@ -49,6 +48,8 @@ const mapComponent = {
};
myModule.component('appMap', mapComponent);

MainController.$inject = ['$timeout'];

/**
* The application's main controller.
*
Expand Down
3 changes: 2 additions & 1 deletion examples/attributes.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
MainController.$inject = ['$http', '$timeout', '$scope'];
// The MIT License (MIT)
//
// Copyright (c) 2016-2024 Camptocamp SA
Expand Down Expand Up @@ -31,6 +30,8 @@ import ngeoMapModule from 'ngeo/map/module';
/** @type {angular.IModule} */
const myModule = angular.module('app', ['gettext', ngeoMapModule.name, ngeoEditingAttributesComponent.name]);

MainController.$inject = ['$http', '$timeout', '$scope'];

/**
* @param {angular.IHttpService} $http Angular http service.
* @param {angular.ITimeoutService} $timeout Angular timeout service.
Expand Down
6 changes: 4 additions & 2 deletions examples/backgroundlayer.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
MainController.$inject = ['$scope'];
BackgroundlayerController.$inject = ['$http', 'ngeoBackgroundLayerMgr'];
// The MIT License (MIT)
//
// Copyright (c) 2015-2024 Camptocamp SA
Expand Down Expand Up @@ -74,6 +72,8 @@ const backgroundlayerComponent = {
};
myModule.component('appBackgroundlayer', backgroundlayerComponent);

BackgroundlayerController.$inject = ['$http', 'ngeoBackgroundLayerMgr'];

/**
* @class
* @param {angular.IHttpService} $http Angular http service.
Expand Down Expand Up @@ -145,6 +145,8 @@ BackgroundlayerController.prototype.getLayer_ = function (layerName) {
};
myModule.controller('AppBackgroundlayerController', BackgroundlayerController);

MainController.$inject = ['$scope'];

/**
* @class
* @param {angular.IScope} $scope Controller scope.
Expand Down
6 changes: 4 additions & 2 deletions examples/backgroundlayerdropdown.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
MainController.$inject = ['$scope'];
BackgroundlayerController.$inject = ['$http', 'ngeoBackgroundLayerMgr'];
// The MIT License (MIT)
//
// Copyright (c) 2015-2024 Camptocamp SA
Expand Down Expand Up @@ -72,6 +70,8 @@ const backgroundlayerComponent = {
};
myModule.component('appBackgroundlayer', backgroundlayerComponent);

BackgroundlayerController.$inject = ['$http', 'ngeoBackgroundLayerMgr'];

/**
* @class
* @param {angular.IHttpService} $http Angular http service.
Expand Down Expand Up @@ -132,6 +132,8 @@ BackgroundlayerController.prototype.createLayer_ = function (layerName) {
};
myModule.controller('AppBackgroundlayerController', BackgroundlayerController);

MainController.$inject = ['$scope'];

/**
* @class
* @param {angular.IScope} $scope Controller scope.
Expand Down
3 changes: 2 additions & 1 deletion examples/colorpicker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
MainController.$inject = ['$scope'];
// The MIT License (MIT)
//
// Copyright (c) 2016-2024 Camptocamp SA
Expand Down Expand Up @@ -57,6 +56,8 @@ function ColorPickerController() {
}
myModule.controller('AppColorpickerController', ColorPickerController);

MainController.$inject = ['$scope'];

/**
* @class
* @param {angular.IScope} $scope Controller scope.
Expand Down
3 changes: 2 additions & 1 deletion examples/createfeature.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
MainController.$inject = ['ngeoToolActivateMgr'];
// The MIT License (MIT)
//
// Copyright (c) 2016-2024 Camptocamp SA
Expand Down Expand Up @@ -47,6 +46,8 @@ const myModule = angular.module('app', [
ngeoEditingCreatefeatureComponent.name,
]);

MainController.$inject = ['ngeoToolActivateMgr'];

/**
* @param {import('ngeo/misc/ToolActivateMgr').ToolActivateMgr} ngeoToolActivateMgr Ngeo ToolActivate
* manager service.
Expand Down
3 changes: 2 additions & 1 deletion examples/datepicker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
MainController.$inject = ['ngeoTime'];
// The MIT License (MIT)
//
// Copyright (c) 2016-2024 Camptocamp SA
Expand Down Expand Up @@ -30,6 +29,8 @@ import {TimePropertyWidgetEnum, TimePropertyModeEnum} from 'ngeo/datasource/OGC'
/** @type {angular.IModule} **/
const myModule = angular.module('app', ['gettext', ngeoMiscDatepickerComponent.name, ngeoMiscTime.name]);

MainController.$inject = ['ngeoTime'];

/**
* @class
* @param {import('ngeo/misc/Time').default} ngeoTime time service.
Expand Down
3 changes: 2 additions & 1 deletion examples/disclaimer.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
MainController.$inject = ['ngeoDisclaimer'];
// The MIT License (MIT)
//
// Copyright (c) 2016-2024 Camptocamp SA
Expand Down Expand Up @@ -36,6 +35,8 @@ import options from './options';
/** @type {angular.IModule} **/
const myModule = angular.module('app', ['gettext', gmfMapComponent.name, ngeoMessageDisclaimer.name]);

MainController.$inject = ['ngeoDisclaimer'];

/**
* @param {import('ngeo/message/Disclaimer').MessageDisclaimerService} ngeoDisclaimer Ngeo disclaimer
* service.
Expand Down
Loading

0 comments on commit 92da1d7

Please sign in to comment.