diff --git a/src/main/js/apps/sample/app.js b/src/main/js/apps/sample/app.js
deleted file mode 100644
index 63b0846..0000000
--- a/src/main/js/apps/sample/app.js
+++ /dev/null
@@ -1,16 +0,0 @@
-/*
- * Copyright (C) 2023 con terra GmbH (info@conterra.de)
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-import i18n from "dojo/i18n!./nls/bundle";
diff --git a/src/main/js/apps/sample/app.json b/src/main/js/apps/sample/app.json
index a3ecdbc..6e23203 100644
--- a/src/main/js/apps/sample/app.json
+++ b/src/main/js/apps/sample/app.json
@@ -33,9 +33,6 @@
"authentication",
"dn_printingenhanced"
],
- "require": [
- "${app}.app"
- ],
"i18n": [
"bundle"
]
diff --git a/src/main/js/bundles/dn_printingenhanced/LayoutWidget.vue b/src/main/js/bundles/dn_printingenhanced/LayoutWidget.vue
index 4268bc3..589c401 100644
--- a/src/main/js/bundles/dn_printingenhanced/LayoutWidget.vue
+++ b/src/main/js/bundles/dn_printingenhanced/LayoutWidget.vue
@@ -103,7 +103,9 @@
class="infoButton"
@click="showInfo=!showInfo"
>
- info
+
+ info
+
- info
+
+ info
+
{
+ this.watch("drawPrintPreview", () => {
this._handleDrawTemplateDimensions();
});
},
diff --git a/src/main/js/bundles/dn_printingenhanced/main.js b/src/main/js/bundles/dn_printingenhanced/main.js
deleted file mode 100644
index 44be8f2..0000000
--- a/src/main/js/bundles/dn_printingenhanced/main.js
+++ /dev/null
@@ -1,16 +0,0 @@
-/*
- * Copyright (C) 2023 con terra GmbH (info@conterra.de)
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-import "dojo/i18n!./nls/bundle";
diff --git a/src/main/js/bundles/dn_printingenhanced/manifest.json b/src/main/js/bundles/dn_printingenhanced/manifest.json
index 55669ed..d9d574a 100644
--- a/src/main/js/bundles/dn_printingenhanced/manifest.json
+++ b/src/main/js/bundles/dn_printingenhanced/manifest.json
@@ -9,6 +9,9 @@
"AGS"
],
"icon": {},
+ "i18n": [
+ "bundle"
+ ],
"license": {},
"productName": "devnet-mapapps-printing-enhanced",
"dependencies": {
diff --git a/src/main/js/bundles/dn_printingenhanced/module.js b/src/main/js/bundles/dn_printingenhanced/module.js
index 73d37e4..36e1f6b 100644
--- a/src/main/js/bundles/dn_printingenhanced/module.js
+++ b/src/main/js/bundles/dn_printingenhanced/module.js
@@ -13,7 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-import ".";
import "ct/tools/Tool";
import "./PrintingPreviewController";
import "./PrintingInfosAnalyzer";
diff --git a/src/main/types/mocha-global.d.ts b/src/main/types/mocha-global.d.ts
new file mode 100644
index 0000000..7ae74ef
--- /dev/null
+++ b/src/main/types/mocha-global.d.ts
@@ -0,0 +1 @@
+declare const testConfig: (opts?: Record) => void;
diff --git a/src/main/types/thirdparty.d.ts b/src/main/types/thirdparty.d.ts
new file mode 100644
index 0000000..476971b
--- /dev/null
+++ b/src/main/types/thirdparty.d.ts
@@ -0,0 +1,7 @@
+/*
+ * Copyright (C) con terra GmbH
+ */
+
+declare module "dojo/*";
+declare module "dijit/*";
+declare module "dojox/*";
diff --git a/src/main/types/vue-shim.d.ts b/src/main/types/vue-shim.d.ts
new file mode 100644
index 0000000..d6e6b86
--- /dev/null
+++ b/src/main/types/vue-shim.d.ts
@@ -0,0 +1,4 @@
+declare module "*.vue" {
+ import Vue from "vue";
+ export default Vue;
+}
diff --git a/src/support/js/check-licenses.js b/src/support/js/check-licenses.ts
similarity index 84%
rename from src/support/js/check-licenses.js
rename to src/support/js/check-licenses.ts
index 8ce6054..9eda7f4 100644
--- a/src/support/js/check-licenses.js
+++ b/src/support/js/check-licenses.ts
@@ -3,7 +3,7 @@
Fails with exit code != 0 and an error message if a disallowed license is encountered.
The script should be executed from the project root directory after dependencies have been installed:
- $ ./node/node ./src/support/js/check-licenses.js
+ $ tsx ./src/support/js/check-licenses.ts
To run checks yourself (e.g. to update the allow list or to get details), install
license-checker yourself and run it from the project root directory:
@@ -15,8 +15,8 @@
See also https://www.npmjs.com/package/license-checker
*/
-const checker = require("license-checker");
-const process = require("process");
+import { init as initChecker } from "license-checker";
+import { cwd, exit} from "node:process";
// Licenses known to be OK.
const ACCEPTED_LICENSES = [
@@ -41,17 +41,19 @@ const SKIP_PACKAGES = [
"taffydb@2.6.2" // BSD-1-Clause License in source code
];
-checker.init(
+initChecker(
{
- start: process.cwd(),
+ start: cwd(),
onlyAllow: ACCEPTED_LICENSES.join(";"),
excludePackages: SKIP_PACKAGES.join(";")
},
(error, packages) => {
+ void packages; // currently unused
+
if (error) {
console.error("Error: ", error);
- process.exit(1);
+ exit(1);
}
- process.exit(0);
+ exit(0);
}
);
diff --git a/src/test/resources/application.properties b/src/test/resources/application.properties
index f02ea61..5342c09 100644
--- a/src/test/resources/application.properties
+++ b/src/test/resources/application.properties
@@ -87,5 +87,3 @@ security.identity.self.service.url=$\{security.self.service.url\}
#security.login.base=http://localhost:8080
#esri.api.arcgisPortalUrl=https://myhost.example.com/portal
#proxy.allowedServerUrls=http://localhost:8080/**,trusted:true;
-
-printtask.service.url=https://services.conterra.de/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task
diff --git a/src/test/webapp/WEB-INF/web.xml b/src/test/webapp/WEB-INF/web.xml
index 47a22e5..fc35e73 100644
--- a/src/test/webapp/WEB-INF/web.xml
+++ b/src/test/webapp/WEB-INF/web.xml
@@ -5,7 +5,7 @@
version="3.0">
map.apps sample
-
+
@@ -18,7 +18,7 @@
ProxyServlet
/proxy
-
+