Skip to content

Commit

Permalink
Ignore errors on Webpack require
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jan 22, 2019
1 parent 7629a66 commit b002cd6
Show file tree
Hide file tree
Showing 56 changed files with 56 additions and 63 deletions.
1 change: 1 addition & 0 deletions contribs/gmf/apps/desktop/Controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ const module = angular.module('Appdesktop', [

module.value('gmfContextualdatacontentTemplateUrl', 'gmf/contextualdata');
module.run(/* @ngInject */ ($templateCache) => {
// @ts-ignore: webpack
$templateCache.put('gmf/contextualdata', require('./contextualdata.html'));
});

Expand Down
3 changes: 1 addition & 2 deletions contribs/gmf/apps/oeedit/Controller.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/**
*/
/**
* Application entry point.
*
Expand Down Expand Up @@ -228,6 +226,7 @@ const module = angular.module('Appoeedit', [

module.value('gmfContextualdatacontentTemplateUrl', 'gmf/contextualdata');
module.run(/* @ngInject */ ($templateCache) => {
// @ts-ignore: webpack
$templateCache.put('gmf/contextualdata', require('./contextualdata.html'));
});

Expand Down
3 changes: 1 addition & 2 deletions contribs/gmf/apps/oeview/Controller.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/**
*/
/**
* Application entry point.
*
Expand Down Expand Up @@ -118,6 +116,7 @@ const module = angular.module('Appoeview', [

module.value('gmfContextualdatacontentTemplateUrl', 'gmf/contextualdata');
module.run(/* @ngInject */ ($templateCache) => {
// @ts-ignore: webpack
$templateCache.put('gmf/contextualdata', require('./contextualdata.html'));
});

Expand Down
1 change: 1 addition & 0 deletions contribs/gmf/examples/displayquerygrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ module.constant('angularLocaleScript', '../build/angular-locale_{{locale}}.js');
*/
const queryresultComponent = {
controller: 'gmfappQueryresultController',
// @ts-ignore: webpack
template: require('./partials/queryresult.html')
};

Expand Down
1 change: 1 addition & 0 deletions contribs/gmf/examples/displayquerywindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ module.constant('angularLocaleScript', '../build/angular-locale_{{locale}}.js');
*/
const queryresultComponent = {
controller: 'AppQueryresultController',
// @ts-ignore: webpack
template: require('./partials/queryresult.html')
};

Expand Down
1 change: 1 addition & 0 deletions contribs/gmf/src/authentication/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ function gmfAuthenticationTemplateUrl_(element, attrs) {


module.run(/* @ngInject */ ($templateCache) => {
// @ts-ignore: webpack
$templateCache.put('gmf/authentication', require('./component.html'));
});

Expand Down
1 change: 1 addition & 0 deletions contribs/gmf/src/backgroundlayerselector/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ module.value('gmfBackgroundlayerselectorTemplateUrl',


module.run(/* @ngInject */ ($templateCache) => {
// @ts-ignore: webpack
$templateCache.put('gmf/backgroundlayerselector', require('./component.html'));
});

Expand Down
4 changes: 1 addition & 3 deletions contribs/gmf/src/drawing/drawFeatureComponent.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/**
*/

import angular from 'angular';
import gmfDrawingFeatureStyleComponent from 'gmf/drawing/featureStyleComponent.js';

Expand Down Expand Up @@ -45,6 +42,7 @@ const module = angular.module('GmfDrawFeatureComponent', [


module.run(/* @ngInject */ ($templateCache) => {
// @ts-ignore: webpack
$templateCache.put('gmf/drawing/drawFeatureComponent', require('./drawFeatureComponent.html'));
});

Expand Down
3 changes: 1 addition & 2 deletions contribs/gmf/src/drawing/featureStyleComponent.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/**
*/
import angular from 'angular';
import {getUid as olUtilGetUid} from 'ol/util.js';
import * as olEvents from 'ol/events.js';
Expand All @@ -19,6 +17,7 @@ const module = angular.module('gmfDrawingFeatureStyle', [


module.run(/* @ngInject */ ($templateCache) => {
// @ts-ignore: webpack
$templateCache.put('gmf/drawing/featureStyleComponent', require('./featureStyleComponent.html'));
});

Expand Down
1 change: 1 addition & 0 deletions contribs/gmf/src/editing/editFeatureComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ const module = angular.module('GmfEditingFeatureComponent', [


module.run(/* @ngInject */ ($templateCache) => {
// @ts-ignore: webpack
$templateCache.put('gmf/editing/editFeatureComponent', require('./editFeatureComponent.html'));
});

Expand Down
3 changes: 1 addition & 2 deletions contribs/gmf/src/editing/editFeatureSelectorComponent.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/**
*/
import angular from 'angular';

import gmfEditingEditFeatureComponent from 'gmf/editing/editFeatureComponent.js';
Expand All @@ -18,6 +16,7 @@ const module = angular.module('GmfEditingFeatureSelectorComponent', [


module.run(/* @ngInject */ ($templateCache) => {
// @ts-ignore: webpack
$templateCache.put('gmf/editing/editFeatureSelectorComponent', require('./editFeatureSelectorComponent.html'));
});

Expand Down
1 change: 1 addition & 0 deletions contribs/gmf/src/filters/filterselectorComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const module = angular.module('gmfFilterselector', [


module.run(/* @ngInject */ ($templateCache) => {
// @ts-ignore: webpack
$templateCache.put('gmf/filters/filterselectorcomponent', require('./filterselectorcomponent.html'));
});

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 @@ -28,6 +28,7 @@ const module = angular.module('gmfImportdatasource', [


module.run(/* @ngInject */ ($templateCache) => {
// @ts-ignore: webpack
$templateCache.put('gmf/import/importdatasourceComponent', require('./importdatasourceComponent.html'));
});

Expand Down
4 changes: 1 addition & 3 deletions contribs/gmf/src/import/wmsCapabilityLayertreeComponent.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/**
*/

import angular from 'angular';

import gmfDatasourceExternalDataSourcesManager from 'gmf/datasource/ExternalDataSourcesManager.js';
Expand All @@ -19,6 +16,7 @@ const module = angular.module('gmfWmscapabilitylayertreenode', [


module.run(/* @ngInject */ ($templateCache) => {
// @ts-ignore: webpack
$templateCache.put('gmf/import/wmsCapabilityLayertreeComponent', require('./wmsCapabilityLayertreeComponent.html'));
});

Expand Down
4 changes: 1 addition & 3 deletions contribs/gmf/src/import/wmtsCapabilityLayertreeComponent.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/**
*/

import angular from 'angular';

import gmfDatasourceExternalDataSourcesManager from 'gmf/datasource/ExternalDataSourcesManager.js';
Expand All @@ -16,6 +13,7 @@ const module = angular.module('gmfWmtscapabilitylayertree', [


module.run(/* @ngInject */ ($templateCache) => {
// @ts-ignore: webpack
$templateCache.put('ngeo/import/wmtsCapabilityLayertreeComponent', require('./wmtsCapabilityLayertreeComponent.html'));
});

Expand Down
1 change: 1 addition & 0 deletions contribs/gmf/src/layertree/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ module.value('ngeoLayertreeTemplateUrl',
(element, attrs) => 'gmf/layertree');

module.run(/* @ngInject */ ($templateCache) => {
// @ts-ignore: webpack
$templateCache.put('gmf/layertree', require('./component.html'));
});

Expand Down
3 changes: 1 addition & 2 deletions contribs/gmf/src/layertree/datasourceGroupTreeComponent.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/**
*/
import angular from 'angular';
import ngeoDatasourceDataSources from 'ngeo/datasource/DataSources.js';
import {getUid as olUtilGetUid} from 'ol/util.js';
Expand All @@ -13,6 +11,7 @@ const module = angular.module('gmfLayertreeDatasourceGroupTreeComponent', [


module.run(/* @ngInject */ ($templateCache) => {
// @ts-ignore: webpack
$templateCache.put('gmf/layertree/datasourceGroupTreeComponent', require('./datasourceGroupTreeComponent.html'));
});

Expand Down
3 changes: 1 addition & 2 deletions contribs/gmf/src/layertree/timeSliderComponent.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/**
*/
import angular from 'angular';
import ngeoMiscWMSTime from 'ngeo/misc/WMSTime.js';

Expand All @@ -17,6 +15,7 @@ const module = angular.module('gmfLayertreeTimeSliderComponent', [


module.run(/* @ngInject */ ($templateCache) => {
// @ts-ignore: webpack
$templateCache.put('gmf/layertree/timesliderComponent', require('./timesliderComponent.html'));
});

Expand Down
2 changes: 0 additions & 2 deletions contribs/gmf/src/lidarprofile/Manager.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/**
*/
import angular from 'angular';
import gmfLidarprofileMeasure from 'gmf/lidarprofile/Measure.js';
import gmfLidarprofilePlot from 'gmf/lidarprofile/Plot.js';
Expand Down
4 changes: 1 addition & 3 deletions contribs/gmf/src/lidarprofile/component.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/**
*/

import angular from 'angular';

/**
Expand All @@ -22,6 +19,7 @@ module.value('gmfLidarprofileTemplateUrl',
});

module.run(/* @ngInject */ ($templateCache) => {
// @ts-ignore: webpack
$templateCache.put('gmf/lidarprofile', require('./component.html'));
});

Expand Down
3 changes: 1 addition & 2 deletions contribs/gmf/src/lidarprofile/panelComponent.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/**
*/
import angular from 'angular';
import gmfLidarprofileConfig from 'gmf/lidarprofile/Config.js';
import gmfLidarprofileManager from 'gmf/lidarprofile/Manager.js';
Expand Down Expand Up @@ -36,6 +34,7 @@ module.value('gmfLidarprofilePanelTemplateUrl',
});

module.run(/* @ngInject */ ($templateCache) => {
// @ts-ignore: webpack
$templateCache.put('gmf/lidarprofilePanel', require('./panelComponent.html'));
});

Expand Down
3 changes: 1 addition & 2 deletions contribs/gmf/src/map/component.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/**
*/
import angular from 'angular';
import gmfPermalinkModule from 'gmf/permalink/module.js';
import gmfEditingSnapping from 'gmf/editing/Snapping.js';
Expand All @@ -18,6 +16,7 @@ const module = angular.module('gmfMapComponent', [


module.run(/* @ngInject */ ($templateCache) => {
// @ts-ignore: webpack
$templateCache.put('gmf/map', require('./component.html'));
});

Expand Down
1 change: 1 addition & 0 deletions contribs/gmf/src/map/mousepositionComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const module = angular.module('gmfMapMouseposition', [


module.run(/* @ngInject */ ($templateCache) => {
// @ts-ignore: webpack
$templateCache.put('gmf/map/mousepositionComponent', require('./mousepositionComponent.html'));
});

Expand Down
8 changes: 2 additions & 6 deletions contribs/gmf/src/mobile/measure/areaComponent.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/**
*/
import angular from 'angular';
import ngeoMiscFilters from 'ngeo/misc/filters.js';
import ngeoInteractionMeasureAreaMobile from 'ngeo/interaction/MeasureAreaMobile.js';
Expand All @@ -24,10 +22,8 @@ module.value('gmfMobileMeasureAreaTemplateUrl',
});

module.run(/* @ngInject */ ($templateCache) => {
$templateCache.put(
'gmf/measure/areaComponent',
require('./baseComponent.html')
);
// @ts-ignore: webpack
$templateCache.put('gmf/measure/areaComponent', require('./baseComponent.html'));
});


Expand Down
8 changes: 2 additions & 6 deletions contribs/gmf/src/mobile/measure/lengthComponent.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/**
*/
import angular from 'angular';
import ngeoMiscFilters from 'ngeo/misc/filters.js';
import ngeoInteractionMeasureLengthMobile from 'ngeo/interaction/MeasureLengthMobile.js';
Expand All @@ -24,10 +22,8 @@ module.value('gmfMobileMeasureLengthTemplateUrl',
});

module.run(/* @ngInject */ ($templateCache) => {
$templateCache.put(
'gmf/measure/lengthComponent',
require('./baseComponent.html')
);
// @ts-ignore: webpack
$templateCache.put('gmf/measure/lengthComponent', require('./baseComponent.html'));
});


Expand Down
1 change: 1 addition & 0 deletions contribs/gmf/src/mobile/measure/pointComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ module.value('gmfMobileMeasurePointTemplateUrl',
});

module.run(/* @ngInject */ ($templateCache) => {
// @ts-ignore: webpack
$templateCache.put('gmf/measure/pointComponent', require('./pointComponent.html'));
});

Expand Down
1 change: 1 addition & 0 deletions contribs/gmf/src/objectediting/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ const module = angular.module('gmfObjectEditingComponent', [


module.run(/* @ngInject */ ($templateCache) => {
// @ts-ignore: webpack
$templateCache.put('gmf/objectediting', require('./component.html'));
});

Expand Down
1 change: 1 addition & 0 deletions contribs/gmf/src/objectediting/toolsComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ const module = angular.module('gmfObjecteditingToolsComponent', [


module.run(/* @ngInject */ ($templateCache) => {
// @ts-ignore: webpack
$templateCache.put('gmf/objectediting/toolsComponent', require('./toolsComponent.html'));
});

Expand Down
3 changes: 1 addition & 2 deletions contribs/gmf/src/permalink/shareComponent.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/**
*/
import angular from 'angular';
import gmfPermalinkShareService from 'gmf/permalink/ShareService.js';
import ngeoStatemanagerLocation from 'ngeo/statemanager/Location.js';
Expand All @@ -12,6 +10,7 @@ const module = angular.module('gmfPermalinkShareComponent', [


module.run(/* @ngInject */ ($templateCache) => {
// @ts-ignore: webpack
$templateCache.put('gmf/permalink/shareComponent', require('./shareComponent.html'));
});

Expand Down
1 change: 1 addition & 0 deletions contribs/gmf/src/print/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ module.value('gmfPrintTemplateUrl',
});

module.run(/* @ngInject */ ($templateCache) => {
// @ts-ignore: webpack
$templateCache.put('gmf/print', require('./component.html'));
});

Expand Down
1 change: 1 addition & 0 deletions contribs/gmf/src/profile/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ module.value('gmfProfileTemplateUrl',
});

module.run(/* @ngInject */ ($templateCache) => {
// @ts-ignore: webpack
$templateCache.put('gmf/profile', require('./component.html'));
});

Expand Down
1 change: 1 addition & 0 deletions contribs/gmf/src/query/gridComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ module.value('gmfDisplayquerygridTemplateUrl',
);

module.run(/* @ngInject */ ($templateCache) => {
// @ts-ignore: webpack
$templateCache.put('gmf/query/gridComponent', require('./gridComponent.html'));
});

Expand Down
1 change: 1 addition & 0 deletions contribs/gmf/src/query/windowComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ module.value('gmfDisplayquerywindowTemplateUrl',
});

module.run(/* @ngInject */ ($templateCache) => {
// @ts-ignore: webpack
$templateCache.put('gmf/query/windowComponent', require('./windowComponent.html'));
});

Expand Down
1 change: 1 addition & 0 deletions contribs/gmf/src/raster/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const module = angular.module('gmfRasterComponent', [


module.run(/* @ngInject */ ($templateCache) => {
// @ts-ignore: webpack
$templateCache.put('gmf/raster/widgetComponent', require('./widgetComponent.html'));
});

Expand Down
1 change: 1 addition & 0 deletions contribs/gmf/src/search/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ function gmfSearchTemplateUrl_(element, attrs) {
}

module.run(/* @ngInject */ ($templateCache) => {
// @ts-ignore: webpack
$templateCache.put('gmf/search', require('./component.html'));
});

Expand Down
3 changes: 1 addition & 2 deletions contribs/gmf/src/theme/selectorComponent.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/**
*/
import angular from 'angular';
import gmfThemeManager from 'gmf/theme/Manager.js';
import gmfThemeThemes from 'gmf/theme/Themes.js';
Expand All @@ -18,6 +16,7 @@ const module = angular.module('gmfThemeSelectorComponent', [


module.run(/* @ngInject */ ($templateCache) => {
// @ts-ignore: webpack
$templateCache.put('gmf/theme/selectorComponent', require('./selectorComponent.html'));
});

Expand Down

0 comments on commit b002cd6

Please sign in to comment.