Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import ngeoMessageModalComponent from 'ngeo/message/modalComponent.js';
import {extentToRectangle} from 'ngeo/utils.js';
import OlCollection from 'ol/Collection.js';
import {unByKey} from 'ol/Observable.js';
import OlFeature from 'ol/Feature.js';
import OlGeomPolygon from 'ol/geom/Polygon.js';
import olGeomGeometryLayout from 'ol/geom/GeometryLayout.js';
import {DEVICE_PIXEL_RATIO} from 'ol/has.js';
import angular from 'angular';
/**
* @type {!angular.IModule}
*/
const module = angular.module('ngeoOffline', [
ngeoMapFeatureOverlayMgr.name,
ngeoMessageModalComponent.name
]);
module.value('ngeoOfflineTemplateUrl',
/**
* @param {JQuery} element Element.
* @param {angular.IAttributes} attrs Attributes.
* @return {string} Template URL.
*/
(element, attrs) => {
const templateUrl = attrs['ngeoOfflineTemplateurl'];
return templateUrl !== undefined ? templateUrl :
'ngeo/offline/component.html';
});
module.run(/* @ngInject */ ($templateCache) => {
// @ts-ignore: webpack
*/
STOP_EDITING_PENDING: 'stop_editing_pending'
};
/**
* @type {angular.IModule}
* @hidden
*/
const module = angular.module('GmfEditingFeatureComponent', [
gmfEditingEditFeature.name,
gmfEditingSnapping.name,
gmfEditingXSDAttributes.name,
ngeoEditingAttributesComponent.name,
ngeoEditingCreatefeatureComponent.name,
ngeoMapLayerHelper.name,
ngeoMessageModalComponent.name,
ngeoMiscBtnComponent.name,
ngeoMiscEventHelper.name,
ngeoMiscFeatureHelper.name,
ngeoMiscToolActivateMgr.name,
]);
module.run(
/**
* @ngInject
* @param {angular.ITemplateCacheService} $templateCache
*/
($templateCache) => {
// @ts-ignore: webpack
$templateCache.put('gmf/editing/editFeatureComponent', require('./editFeatureComponent.html'));
});
import angular from 'angular';
import appURL from './url.js';
import './share.css';
import gmfPermalinkShareComponent from 'gmf/permalink/shareComponent.js';
import ngeoMessageModalComponent from 'ngeo/message/modalComponent.js';
/**
* @type {angular.IModule}
* @hidden
*/
const module = angular.module('gmfapp', [
'gettext',
ngeoMessageModalComponent.name,
gmfPermalinkShareComponent.name,
]);
module.constant('angularLocaleScript', '../build/angular-locale_{{locale}}.js');
module.constant('gmfShortenerCreateUrl', appURL.SHORT_CREATE);
/**
* @constructor
* @ngInject
*/
function MainController() {
/**
* Model attached to the modal to toggle it
* @type {boolean}
import ngeoMessagePopupComponent from 'ngeo/message/popupComponent.js';
import ngeoMessagePopup from 'ngeo/message/Popup.js';
import ngeoMessagePopoverComponent from 'ngeo/message/popoverComponent.js';
import ngeoMessageModalComponent from 'ngeo/message/modalComponent.js';
/**
* @type {angular.Module}
*/
const exports = angular.module('ngeoMessageExtraModule', [
ngeoMessageNotification.module.name,
ngeoMessageDisplaywindowComponent.name,
ngeoMessageDisclaimer.module.name,
ngeoMessagePopupComponent.name,
ngeoMessagePopup.module.name,
ngeoMessagePopoverComponent.name,
ngeoMessageModalComponent.name,
]);
export default exports;
/**
*/
import './modal.css';
import angular from 'angular';
import ngeoMessageModalComponent from 'ngeo/message/modalComponent.js';
/** @type {angular.IModule} **/
const module = angular.module('app', [
'gettext',
ngeoMessageModalComponent.name,
]);
/**
* @constructor
* @ngInject
*/
function MainController() {
/**
* @type {boolean}
*/
this.modalShown = false;
}
* Password validator function with an error message.
* Configuration options for the permalink service.
* @typedef {Object} PasswordValidator
* @property {function(string): boolean} isPasswordValid
* @property {string} notValidMessage
*/
/**
* @type {angular.IModule}
* @hidden
*/
const module = angular.module('gmfAuthentication', [
gmfAuthenticationService.name,
ngeoMessageNotification.name,
ngeoMessageModalComponent.name,
]);
/**
* @param {JQuery} element Element.
* @param {angular.IAttributes} attrs Attributes.
* @return {string} Template URL.
* @private
* @hidden
*/
function gmfAuthenticationTemplateUrl_(element, attrs) {
const templateUrl = attrs.gmfAuthenticationTemplateurl;
return templateUrl !== undefined ? templateUrl :
'gmf/authentication';
}