From a0d137488ac8fcbc462ac9ce59de843c157d6e0b Mon Sep 17 00:00:00 2001 From: Arild Matsson Date: Mon, 25 Mar 2024 10:17:07 +0100 Subject: [PATCH] Move korpApp module imports --- app/index.js | 16 ---------------- app/scripts/korp.module.js | 7 +++++++ 2 files changed, 7 insertions(+), 16 deletions(-) diff --git a/app/index.js b/app/index.js index 2c6bec721..5ce5337a6 100644 --- a/app/index.js +++ b/app/index.js @@ -24,18 +24,6 @@ require("./styles/textreader.css") require("components-jqueryui/ui/widget.js") require("angular") -require("angular-ui-bootstrap/src/typeahead") -require("angular-ui-bootstrap/src/tooltip") -require("angular-ui-bootstrap/src/modal") -require("angular-ui-bootstrap/src/tabs") -require("angular-ui-bootstrap/src/dropdown") -require("angular-ui-bootstrap/src/pagination") -require("angular-ui-bootstrap/src/datepicker") -require("angular-ui-bootstrap/src/timepicker") -require("angular-ui-bootstrap/src/buttons") -require("angular-ui-bootstrap/src/popover") - -require("angular-spinner") require("jquerylocalize") require("./lib/jquery.format.js") @@ -49,8 +37,6 @@ try { console.log("No mode file available for mode:", currentMode) } -require("angular-dynamic-locale/dist/tmhDynamicLocale.js") - require("slickgrid/lib/jquery.event.drag-2.3.0") require("slickgrid/slick.core") require("slickgrid/slick.grid") @@ -66,8 +52,6 @@ window.CSV = require("comma-separated-values/csv") require("leaflet") require("leaflet.markercluster") require("leaflet-providers") -require("geokorp/dist/scripts/geokorp") -require("geokorp/dist/scripts/geokorp-templates") require("angular-filter/index.js") require("./lib/jquery.tooltip.pack.js") diff --git a/app/scripts/korp.module.js b/app/scripts/korp.module.js index 9813c5925..6c232cc26 100644 --- a/app/scripts/korp.module.js +++ b/app/scripts/korp.module.js @@ -1,5 +1,12 @@ /** @format */ +import "angular-ui-bootstrap" +import "angular-spinner" +import "angular-ui-sortable" import "./newsdesk" +import "geokorp/dist/scripts/geokorp" +import "geokorp/dist/scripts/geokorp-templates" +import "angular-dynamic-locale" +import "angular-filter" const korpApp = angular.module("korpApp", [ "ui.bootstrap.typeahead",