Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/conterra/mapapps-welcome
Browse files Browse the repository at this point in the history
…into DN-31
  • Loading branch information
sholtkamp committed Apr 23, 2024
2 parents 8fd1742 + b4771d3 commit 7d33cbf
Show file tree
Hide file tree
Showing 37 changed files with 304 additions and 188 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/devnet-bundle-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ jobs:
release_version: ${{ github.event.inputs.releaseVersion }}
next_dev_version: ${{ github.event.inputs.nextDevVersion }}
ms_teams_webhook_uri: ${{secrets.MS_TEAMS_WEBHOOK_URI}}
demo_user: ${{secrets.DEMO_USER}}
demo_user_pw: ${{secrets.DEMO_USER_PW}}
demo_url: ${{secrets.DEMO_URL}}
8 changes: 8 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"Vue.volar",
"Esri.arcgis-jsapi-snippets",
"ctjdr.vscode-apprt-bundles"
]
}
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:9090",
"webRoot": "${workspaceFolder}/src/main"
}
]
}
37 changes: 29 additions & 8 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,54 @@
"tasks": [
{
"label": "Initialize",
"detail": "Initialize map.apps for Developers project",
"type": "shell",
"command": "mvn initialize",
"group": "build"
},
{
"label": "Run HTTP Server",
"label": "Run",
"detail": "Run map.apps for Developers development server",
"type": "shell",
"command": "mvn jetty:run -Denv=dev '-Dlocal.configfile=./build.properties'",
"group": "build"
"command": "mvn",
"args": ["clean", "compile", "-Denv=dev", "'-Dlocal.configfile=./build.properties'", "-Pinclude-mapapps-deps"],
"group": "build",
"isBackground": true
},
{
"label": "Run stand-alone HTTP Server",
"label": "Run (Remote project mode)",
"detail": "Run map.apps for Developers development server in 'remote project' mode",
"type": "shell",
"command": "mvn jetty:run -Denv=dev '-Dlocal.configfile=./build.properties' -Pinclude-mapapps-deps",
"group": "build"
"command": "mvn",
"args": ["clean", "compile", "-Denv=dev", "'-Dlocal.configfile=./build.properties'"],
"group": "build",
"isBackground": true
},
{
"label": "Compress",
"detail": "Prepare bundles and apps for deployment on a map.apps instance",
"type": "shell",
"command": "mvn install -P compress",
"group": "build"
"command": "mvn",
"args": ["clean", "install", "-Pcompress"],
"group": "build",
"presentation": {
"reveal": "always",
"panel": "dedicated"
}
},
{
"label": "Clean",
"type": "shell",
"command": "mvn clean",
"group": "build"
},
{
"label": "Watch types",
"detail": "Start TypeScript compiler in watch mode",
"type": "npm",
"script": "watch-types",
"group": "build",
"problemMatcher": [],
}
]
}
2 changes: 1 addition & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
✅ Tested for map.apps 4.18.0 / Linie 4

#### Release Notes
- SNAPSHOT-Release
- autogenerated SNAPSHOT-Release
2 changes: 1 addition & 1 deletion build.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (C) 2023 con terra GmbH (info@conterra.de)
# Copyright (C) 2024 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.
Expand Down
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 con terra GmbH (info@conterra.de)
* Copyright (C) 2024 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.
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2023 con terra GmbH (info@conterra.de)
Copyright (C) 2024 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.
Expand All @@ -22,7 +22,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>de.conterra.devnet</groupId>
<artifactId>mapapps-welcome</artifactId>
<version>2.0.0-SNAPSHOT</version>
<version>1.4.1-SNAPSHOT</version>
<packaging>jar</packaging>
<repositories>
<repository>
Expand Down Expand Up @@ -323,7 +323,7 @@
<properties>
<owner>con terra GmbH</owner>
<email>info@conterra.de</email>
<project.inceptionYear>2023</project.inceptionYear>
<project.inceptionYear>2024</project.inceptionYear>
</properties>
<includes>
<include>src/main/js/**/*.js</include>
Expand Down
4 changes: 2 additions & 2 deletions src/main/config/assembly.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!--
Copyright (C) 2023 con terra GmbH (info@conterra.de)
Copyright (C) 2024 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.
Expand Down Expand Up @@ -34,4 +34,4 @@
<outputDirectory>.</outputDirectory>
</fileSet>
</fileSets>
</assembly>
</assembly>
2 changes: 1 addition & 1 deletion src/main/js/apps/sample/app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 con terra GmbH (info@conterra.de)
* Copyright (C) 2024 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.
Expand Down
2 changes: 1 addition & 1 deletion src/main/js/apps/sample/nls/bundle.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 con terra GmbH (info@conterra.de)
* Copyright (C) 2024 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.
Expand Down
2 changes: 1 addition & 1 deletion src/main/js/apps/sample/nls/de/bundle.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 con terra GmbH (info@conterra.de)
* Copyright (C) 2024 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.
Expand Down
2 changes: 1 addition & 1 deletion src/main/js/bundles/dn_welcome/Config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
///
/// Copyright (C) 2023 con terra GmbH (info@conterra.de)
/// Copyright (C) 2024 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.
Expand Down
2 changes: 1 addition & 1 deletion src/main/js/bundles/dn_welcome/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ All configuration is performed on the `Config` component as show in the followin
"checkboxChecked": true,
"showImage": true,
"imageUrl": "resource('${app}:images/welcome.jpg')",
"imageHeight": "300px"
"imageHeight": "300px"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/js/bundles/dn_welcome/WelcomeWidget.ts.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!--

Copyright (C) 2023 con terra GmbH (info@conterra.de)
Copyright (C) 2024 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.
Expand Down
2 changes: 1 addition & 1 deletion src/main/js/bundles/dn_welcome/WelcomeWidgetFactory.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
///
/// Copyright (C) 2023 con terra GmbH (info@conterra.de)
/// Copyright (C) 2024 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.
Expand Down
15 changes: 15 additions & 0 deletions src/main/js/bundles/dn_welcome/build.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* Copyright (C) 2024 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.
*/
///
/// Copyright (C) 2023 con terra GmbH (info@conterra.de)
///
Expand Down
2 changes: 1 addition & 1 deletion src/main/js/bundles/dn_welcome/css/styles.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (C) 2023 con terra GmbH (info@conterra.de)
* Copyright (C) 2024 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.
Expand Down
2 changes: 1 addition & 1 deletion src/main/js/bundles/dn_welcome/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dn_welcome",
"version": "2.0.0-SNAPSHOT",
"version": "1.4.1-SNAPSHOT",
"title": "${bundleName}",
"description": "${bundleDescription}",
"i18n": ["bundle"],
Expand Down
2 changes: 1 addition & 1 deletion src/main/js/bundles/dn_welcome/module.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
///
/// Copyright (C) 2023 con terra GmbH (info@conterra.de)
/// Copyright (C) 2024 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.
Expand Down
2 changes: 1 addition & 1 deletion src/main/js/bundles/dn_welcome/nls/bundle.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 con terra GmbH (info@conterra.de)
* Copyright (C) 2024 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.
Expand Down
2 changes: 1 addition & 1 deletion src/main/js/bundles/dn_welcome/nls/de/bundle.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 con terra GmbH (info@conterra.de)
* Copyright (C) 2024 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.
Expand Down
2 changes: 1 addition & 1 deletion src/main/js/bundles/dn_welcome/tests/all.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 con terra GmbH (info@conterra.de)
* Copyright (C) 2024 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.
Expand Down
1 change: 1 addition & 0 deletions src/main/types/mocha-global.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
declare const testConfig: (opts?: Record<string, any>) => void;
7 changes: 7 additions & 0 deletions src/main/types/thirdparty.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*
* Copyright (C) con terra GmbH
*/

declare module "dojo/*";
declare module "dijit/*";
declare module "dojox/*";
4 changes: 4 additions & 0 deletions src/main/types/vue-shim.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
declare module "*.vue" {
import Vue from "vue";
export default Vue;
}
59 changes: 59 additions & 0 deletions src/support/js/check-licenses.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/*
Checks licenses of node dependencies against a list of allowed licenses.
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:
$ 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:
$ npm install -g license-checker
$ license-checker --summary # outputs list of used licenses
$ license-checker --json # outputs details
See also https://www.npmjs.com/package/license-checker
*/

import { init as initChecker } from "license-checker";
import { cwd, exit} from "node:process";

// Licenses known to be OK.
const ACCEPTED_LICENSES = [
"MIT",
"ISC",
"Apache-2.0",
"Apache 2.0",
"BSD-2-Clause",
"BSD-3-Clause",
"BSD",
"CC0-1.0",
"CC-BY-3.0",
"CC-BY-4.0",
"Python-2.0",
"Unlicense" // Note: not unlicenseD (https://opensource.org/licenses/unlicense)
];

// Packages with licenses that are not recognized properly by license-checker.
// These must be checked manually.
const SKIP_PACKAGES = [
"event-stream@3.0.20", // MIT License not recognized
"taffydb@2.6.2" // BSD-1-Clause License in source code
];

initChecker(
{
start: cwd(),
onlyAllow: ACCEPTED_LICENSES.join(";"),
excludePackages: SKIP_PACKAGES.join(";")
},
(error, packages) => {
void packages; // currently unused

if (error) {
console.error("Error: ", error);
exit(1);
}
exit(0);
}
);
2 changes: 1 addition & 1 deletion src/test/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (C) 2023 con terra GmbH (info@conterra.de)
# Copyright (C) 2024 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.
Expand Down
4 changes: 2 additions & 2 deletions src/test/webapp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
-->
<servlet-name>default</servlet-name>
<init-param>
<param-name>useFileMappedBuffer</param-name>
<param-value>false</param-value>
<param-name>useFileMappedBuffer</param-name>
<param-value>false</param-value>
</init-param>
</servlet>

Expand Down
Binary file removed src/test/webapp/favicon.ico
Binary file not shown.
Binary file added src/test/webapp/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 7d33cbf

Please sign in to comment.