Skip to content

Commit

Permalink
Transform to goog modules
Browse files Browse the repository at this point in the history
./node_modules/.bin/jscodeshift --transform=node_modules/googshift/transforms/goog_provide_to_goog_module.js --legacy true jsapi/src/
./node_modules/.bin/jscodeshift --transform=node_modules/googshift/transforms/goog_provide_to_goog_module.js --legacy true geoportailv3/static/js/
  • Loading branch information
gberaudo committed May 8, 2019
1 parent 25ae578 commit 9391bff
Show file tree
Hide file tree
Showing 9 changed files with 761 additions and 743 deletions.
252 changes: 131 additions & 121 deletions geoportailv3/static/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,130 +7,140 @@
* This file includes `goog.require`'s for all the components/directives used
* by the HTML page.
*/
goog.provide('app.main');
goog.module('app.main');

goog.module.declareLegacyNamespace();
const appAskredirectAskredirectDirective = goog.require('app.askredirect.askredirectDirective');
const appAskredirectAskredirectController = goog.require('app.askredirect.AskredirectController');
const appAuthenticationAuthenticationDirective = goog.require('app.authentication.authenticationDirective');
const appAuthenticationAuthenticationController = goog.require('app.authentication.AuthenticationController');
const appBackgroundlayerBackgroundlayerDirective = goog.require('app.backgroundlayer.backgroundlayerDirective');
const appBackgroundlayerBackgroundlayerController = goog.require('app.backgroundlayer.BackgroundlayerController');
const appBackgroundlayerBlankLayer = goog.require('app.backgroundlayer.BlankLayer');
const appCatalogCatalogController = goog.require('app.catalog.CatalogController');
const appCatalogCatalogDirective = goog.require('app.catalog.catalogDirective');
const appImageuploadImguploadController = goog.require('app.imageupload.ImguploadController');
const appImageuploadImguploadDirective = goog.require('app.imageupload.ImguploadDirective');
const appDrawDrawDirective = goog.require('app.draw.drawDirective');
const appDrawDrawController = goog.require('app.draw.DrawController');
const appDrawDrawnFeatures = goog.require('app.draw.DrawnFeatures');
const appDrawFeatureHash = goog.require('app.draw.FeatureHash');
const appDrawFeaturePopup = goog.require('app.draw.FeaturePopup');
const appDrawFeaturePopupController = goog.require('app.draw.FeaturePopupController');
const appDrawFeaturePopupDirective = goog.require('app.draw.featurePopupDirective');
const appDrawRouteControl = goog.require('app.draw.RouteControl');

goog.require('app.askredirect.askredirectDirective');
goog.require('app.askredirect.AskredirectController');
goog.require('app.authentication.authenticationDirective');
goog.require('app.authentication.AuthenticationController');
goog.require('app.backgroundlayer.backgroundlayerDirective');
goog.require('app.backgroundlayer.BackgroundlayerController');
goog.require('app.backgroundlayer.BlankLayer');
goog.require('app.catalog.CatalogController');
goog.require('app.catalog.catalogDirective');
goog.require('app.imageupload.ImguploadController');
goog.require('app.imageupload.ImguploadDirective');
goog.require('app.draw.drawDirective');
goog.require('app.draw.DrawController');
goog.require('app.draw.DrawnFeatures');
goog.require('app.draw.FeatureHash');
goog.require('app.draw.FeaturePopup');
goog.require('app.draw.FeaturePopupController');
goog.require('app.draw.featurePopupDirective');
goog.require('app.draw.RouteControl');
//const appDrawRouteControlOptions = goog.require('app.draw.RouteControlOptions');
goog.require('app.draw.SelectedFeaturesService');
goog.require('app.draw.StyleEditingController');
goog.require('app.draw.styleEditingDirective');
goog.require('app.draw.SymbolSelectorController');
goog.require('app.draw.symbolSelectorDirective');
goog.require('app.ExclusionManager');
goog.require('app.externaldata.externalDataDirective');
goog.require('app.externaldata.ExternalDataController');
goog.require('app.feedback.feedbackDirective');
goog.require('app.feedback.FeedbackController');
goog.require('app.feedbackanf.feedbackanfDirective');
goog.require('app.feedbackanf.FeedbackanfController');
goog.require('app.infobar.elevationDirective');
goog.require('app.infobar.ElevationController');
goog.require('app.infobar.InfobarController');
goog.require('app.infobar.infobarDirective');
goog.require('app.infobar.projectionselectorDirective');
goog.require('app.infobar.ProjectionselectorController');
goog.require('app.infobar.scalelineDirective');
goog.require('app.infobar.ScalelineController');
goog.require('app.infobar.scaleselectorDirective');
goog.require('app.infobar.ScaleselectorController');
goog.require('app.layerinfo.layerinfoDirective');
goog.require('app.layerinfo.LayerinfoController');
goog.require('app.locationinfo.LocationInfoOverlay');
goog.require('app.layerinfo.ShowLayerinfoFactory');
goog.require('app.layermanager.layermanagerDirective');
goog.require('app.layermanager.LayermanagerController');
goog.require('app.layerlegends.layerlegendsDirective');
goog.require('app.layerlegends.LayerlegendsController');
goog.require('app.locationinfo.locationinfoDirective');
goog.require('app.locationinfo.LocationinfoController');
goog.require('app.map.mapDirective');
goog.require('app.map.MapController');
goog.require('app.MainController');
goog.require('app.mymaps.filereaderDirective');
goog.require('app.measure.MeasureController');
goog.require('app.measure.MeasureDirective');
goog.require('app.mymaps.mymapsDirective');
goog.require('app.mymaps.MymapsController');
goog.require('app.NotifyFactory');
goog.require('app.print.printDirective');
goog.require('app.print.PrintController');
goog.require('app.print.Printservice');
goog.require('app.profile.profileDirective');
goog.require('app.profile.ProfileController');
goog.require('app.query.pagreportDirective');
goog.require('app.query.PagreportController');
goog.require('app.query.casiporeportDirective');
goog.require('app.query.CasiporeportController');
goog.require('app.query.pdsreportDirective');
goog.require('app.query.PdsreportController');
const appDrawSelectedFeaturesService = goog.require('app.draw.SelectedFeaturesService');

const appDrawStyleEditingController = goog.require('app.draw.StyleEditingController');
const appDrawStyleEditingDirective = goog.require('app.draw.styleEditingDirective');
const appDrawSymbolSelectorController = goog.require('app.draw.SymbolSelectorController');
const appDrawSymbolSelectorDirective = goog.require('app.draw.symbolSelectorDirective');
const appExclusionManager = goog.require('app.ExclusionManager');
const appExternaldataExternalDataDirective = goog.require('app.externaldata.externalDataDirective');
const appExternaldataExternalDataController = goog.require('app.externaldata.ExternalDataController');
const appFeedbackFeedbackDirective = goog.require('app.feedback.feedbackDirective');
const appFeedbackFeedbackController = goog.require('app.feedback.FeedbackController');
const appFeedbackanfFeedbackanfDirective = goog.require('app.feedbackanf.feedbackanfDirective');
const appFeedbackanfFeedbackanfController = goog.require('app.feedbackanf.FeedbackanfController');
const appInfobarElevationDirective = goog.require('app.infobar.elevationDirective');
const appInfobarElevationController = goog.require('app.infobar.ElevationController');
const appInfobarInfobarController = goog.require('app.infobar.InfobarController');
const appInfobarInfobarDirective = goog.require('app.infobar.infobarDirective');
const appInfobarProjectionselectorDirective = goog.require('app.infobar.projectionselectorDirective');
const appInfobarProjectionselectorController = goog.require('app.infobar.ProjectionselectorController');
const appInfobarScalelineDirective = goog.require('app.infobar.scalelineDirective');
const appInfobarScalelineController = goog.require('app.infobar.ScalelineController');
const appInfobarScaleselectorDirective = goog.require('app.infobar.scaleselectorDirective');
const appInfobarScaleselectorController = goog.require('app.infobar.ScaleselectorController');
const appLayerinfoLayerinfoDirective = goog.require('app.layerinfo.layerinfoDirective');
const appLayerinfoLayerinfoController = goog.require('app.layerinfo.LayerinfoController');
const appLocationinfoLocationInfoOverlay = goog.require('app.locationinfo.LocationInfoOverlay');
const appLayerinfoShowLayerinfoFactory = goog.require('app.layerinfo.ShowLayerinfoFactory');
const appLayermanagerLayermanagerDirective = goog.require('app.layermanager.layermanagerDirective');
const appLayermanagerLayermanagerController = goog.require('app.layermanager.LayermanagerController');
const appLayerlegendsLayerlegendsDirective = goog.require('app.layerlegends.layerlegendsDirective');
const appLayerlegendsLayerlegendsController = goog.require('app.layerlegends.LayerlegendsController');
const appLocationinfoLocationinfoDirective = goog.require('app.locationinfo.locationinfoDirective');
const appLocationinfoLocationinfoController = goog.require('app.locationinfo.LocationinfoController');
const appMapMapDirective = goog.require('app.map.mapDirective');
const appMapMapController = goog.require('app.map.MapController');
const appMainController = goog.require('app.MainController');
const appMymapsFilereaderDirective = goog.require('app.mymaps.filereaderDirective');
const appMeasureMeasureController = goog.require('app.measure.MeasureController');
const appMeasureMeasureDirective = goog.require('app.measure.MeasureDirective');
const appMymapsMymapsDirective = goog.require('app.mymaps.mymapsDirective');
const appMymapsMymapsController = goog.require('app.mymaps.MymapsController');
const appNotifyFactory = goog.require('app.NotifyFactory');
const appPrintPrintDirective = goog.require('app.print.printDirective');
const appPrintPrintController = goog.require('app.print.PrintController');
const appPrintPrintservice = goog.require('app.print.Printservice');
const appProfileProfileDirective = goog.require('app.profile.profileDirective');
const appProfileProfileController = goog.require('app.profile.ProfileController');
const appQueryPagreportDirective = goog.require('app.query.pagreportDirective');
const appQueryPagreportController = goog.require('app.query.PagreportController');
const appQueryCasiporeportDirective = goog.require('app.query.casiporeportDirective');
const appQueryCasiporeportController = goog.require('app.query.CasiporeportController');
const appQueryPdsreportDirective = goog.require('app.query.pdsreportDirective');
const appQueryPdsreportController = goog.require('app.query.PdsreportController');

//const appQueryQueryStyles = goog.require('app.query.QueryStyles');
goog.require('app.query.queryDirective');
goog.require('app.query.QueryController');
goog.require('app.resizemapDirective');
goog.require('app.routing.RoutingController');
goog.require('app.routing.routingDirective');
goog.require('app.search.searchDirective');
goog.require('app.search.SearchController');
goog.require('app.share.ShareDirective');
goog.require('app.share.ShareController');
goog.require('app.share.shorturlDirective');
goog.require('app.share.ShorturlController');
goog.require('app.slider.SliderDirective');
goog.require('app.slider.SliderController');
goog.require('app.streetview.streetviewDirective');
goog.require('app.streetview.StreetviewController');
goog.require('app.themeswitcher.themeswitcherDirective');
goog.require('app.themeswitcher.ThemeswitcherController');
goog.require('app.Activetool');
goog.require('app.CoordinateStringService');
goog.require('app.Export');
goog.require('app.Geocoding');
goog.require('app.GetDevice');
goog.require('app.GetElevationService');
goog.require('app.GetLayerForCatalogNodeFactory');
goog.require('app.GetProfileService');
goog.require('app.GetShorturlService');
goog.require('app.GetWmsLayerFactory');
goog.require('app.GetWmtsLayerFactory');
goog.require('app.LayerOpacityManager');
goog.require('app.LayerPermalinkManager');
goog.require('app.LocationControl');
const appQueryQueryDirective = goog.require('app.query.queryDirective');

const appQueryQueryController = goog.require('app.query.QueryController');
const appResizemapDirective = goog.require('app.resizemapDirective');
const appRoutingRoutingController = goog.require('app.routing.RoutingController');
const appRoutingRoutingDirective = goog.require('app.routing.routingDirective');
const appSearchSearchDirective = goog.require('app.search.searchDirective');
const appSearchSearchController = goog.require('app.search.SearchController');
const appShareShareDirective = goog.require('app.share.ShareDirective');
const appShareShareController = goog.require('app.share.ShareController');
const appShareShorturlDirective = goog.require('app.share.shorturlDirective');
const appShareShorturlController = goog.require('app.share.ShorturlController');
const appSliderSliderDirective = goog.require('app.slider.SliderDirective');
const appSliderSliderController = goog.require('app.slider.SliderController');
const appStreetviewStreetviewDirective = goog.require('app.streetview.streetviewDirective');
const appStreetviewStreetviewController = goog.require('app.streetview.StreetviewController');
const appThemeswitcherThemeswitcherDirective = goog.require('app.themeswitcher.themeswitcherDirective');
const appThemeswitcherThemeswitcherController = goog.require('app.themeswitcher.ThemeswitcherController');
const appActivetool = goog.require('app.Activetool');
const appCoordinateStringService = goog.require('app.CoordinateStringService');
const appExport = goog.require('app.Export');
const appGeocoding = goog.require('app.Geocoding');
const appGetDevice = goog.require('app.GetDevice');
const appGetElevationService = goog.require('app.GetElevationService');
const appGetLayerForCatalogNodeFactory = goog.require('app.GetLayerForCatalogNodeFactory');
const appGetProfileService = goog.require('app.GetProfileService');
const appGetShorturlService = goog.require('app.GetShorturlService');
const appGetWmsLayerFactory = goog.require('app.GetWmsLayerFactory');
const appGetWmtsLayerFactory = goog.require('app.GetWmtsLayerFactory');
const appLayerOpacityManager = goog.require('app.LayerOpacityManager');
const appLayerPermalinkManager = goog.require('app.LayerPermalinkManager');
const appLocationControl = goog.require('app.LocationControl');

// const appLocationControlOptions = goog.require('app.LocationControlOptions');
goog.require('app.Map');
const appMap = goog.require('app.Map');

//const appMapsResponse = goog.require('app.MapsResponse');
goog.require('app.Mymaps');
goog.require('app.MymapsOffline');
goog.require('app.olcs.toggle3d');
goog.require('app.olcs.Lux3DManager');
goog.require('app.olcs.Extent');
goog.require('app.olcs.ZoomToExtent');
goog.require('app.projections');
goog.require('app.Routing');
goog.require('app.ScalesService');
goog.require('app.StateManager');
goog.require('app.Theme');
goog.require('app.Themes');
const appMymaps = goog.require('app.Mymaps');

const appMymapsOffline = goog.require('app.MymapsOffline');
const appOlcsToggle3d = goog.require('app.olcs.toggle3d');
const appOlcsLux3DManager = goog.require('app.olcs.Lux3DManager');
const appOlcsExtent = goog.require('app.olcs.Extent');
const appOlcsZoomToExtent = goog.require('app.olcs.ZoomToExtent');
const appProjections = goog.require('app.projections');
const appRouting = goog.require('app.Routing');
const appScalesService = goog.require('app.ScalesService');
const appStateManager = goog.require('app.StateManager');
const appTheme = goog.require('app.Theme');
const appThemes = goog.require('app.Themes');

//const appThemesResponse = goog.require('app.ThemesResponse');
goog.require('app.UserManager');
goog.require('app.WmsHelper');
goog.require('app.WmtsHelper');
goog.require('app.misc.file');
goog.require('app.LotChasse');
const appUserManager = goog.require('app.UserManager');

const appWmsHelper = goog.require('app.WmsHelper');
const appWmtsHelper = goog.require('app.WmtsHelper');
const appMiscFile = goog.require('app.misc.file');
const appLotChasse = goog.require('app.LotChasse');
4 changes: 2 additions & 2 deletions geoportailv3/static/js/maincontroller.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ const appOlcsZoomToExtent = goog.require('app.olcs.ZoomToExtent');
const appOlcsLux3DManager = goog.require('app.olcs.Lux3DManager');
const olProj = goog.require('ol.proj');
const olMath = goog.require('ol.math');
goog.require('app.OfflineDownloader');
goog.require('app.OfflineRestorer');
const appOfflineDownloader = goog.require('app.OfflineDownloader');
const appOfflineRestorer = goog.require('app.OfflineRestorer');


/**
Expand Down
Loading

0 comments on commit 9391bff

Please sign in to comment.