Skip to content

Commit

Permalink
Merge pull request #281 from Cumulocity-IoT/feature/migration-1021
Browse files Browse the repository at this point in the history
Feature/migration 1021
  • Loading branch information
ck-c8y authored Nov 12, 2024
2 parents 6e1a67c + f8f6d6d commit 2a41eac
Show file tree
Hide file tree
Showing 76 changed files with 3,906 additions and 4,883 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,4 @@ dynamic-mapping-ui/cypress/screenshots
dynamic-mapping-ui/cypress/fixtures/mqttConnectionPostRequest.json
dynamic-mapping-service/src/main/configuration/dynamic-mapping-service-logging.xml
JSONata4Java/dependency-reduced-pom.xml
dynamic-mapping-ui/node_modules_tmp/
281 changes: 149 additions & 132 deletions USERGUIDE.md

Large diffs are not rendered by default.

29 changes: 7 additions & 22 deletions dynamic-mapping-ui/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,11 @@
"options": {
"outputPath": "dist/dynamic-mapping",
"main": "src/main.ts",
"polyfills": [
"zone.js"
],
"polyfills": ["zone.js"],
"tsConfig": "tsconfig.app.json",
"inlineStyleLanguage": "less",
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.less"
],
"assets": ["src/favicon.ico", "src/assets"],
"styles": ["src/styles.less", "@c8y/style/main.less"],
"scripts": [],
"aot": false,
"allowedCommonJsDependencies": [
Expand Down Expand Up @@ -86,19 +79,11 @@
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"polyfills": [
"zone.js",
"zone.js/testing"
],
"polyfills": ["zone.js", "zone.js/testing"],
"tsConfig": "tsconfig.spec.json",
"inlineStyleLanguage": "less",
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.less"
],
"assets": ["src/favicon.ico", "src/assets"],
"styles": ["src/styles.less", "@c8y/style/main.less"],
"scripts": []
}
},
Expand All @@ -123,4 +108,4 @@
"cli": {
"analytics": "7d223acb-751a-477e-88d3-2b250d6465dd"
}
}
}
50 changes: 18 additions & 32 deletions dynamic-mapping-ui/cumulocity.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { EnvironmentOptions } from '@c8y/devkit/dist/options';
import { ConfigurationOptions } from '@c8y/devkit';
import { author, description, version, license } from './package.json';

const asset = process.env['npm_config_asset'];
const isApp = asset == 'app' ? true : false;

console.log('Building asset:', asset, asset == 'app', isApp);
// const asset = process.env['npm_config_asset'];
// const isApp = asset == 'app' ? true : false;
// console.log('Building asset:', asset, asset == 'app', isApp);

export default {
runTime: {
Expand All @@ -21,37 +20,19 @@ export default {
contentSecurityPolicy:
"base-uri 'none'; default-src 'self' 'unsafe-inline' http: https: ws: wss:; connect-src 'self' http: https: ws: wss:; script-src 'self' *.bugherd.com *.twitter.com *.twimg.com *.aptrinsic.com 'unsafe-inline' 'unsafe-eval' data:; style-src * 'unsafe-inline' blob:; img-src * data: blob:; font-src * data:; frame-src *; worker-src 'self' blob:;",
dynamicOptionsUrl: '/apps/public/public-options/options.json',
remotes: {
'sag-ps-pkg-dynamic-mapping': ['DynamicMappingModule']
},
tabsHorizontal: true,
noAppSwitcher: false,
// comment the following properties to create a standalone app
// comment begin
// package: 'plugin',
// isPackage: !isApp,
package: 'blueprint',
isPackage: true,
// exports: isApp
// ? []
// : [
// {
// name: 'Dynamic Data Mapper',
// module: 'DynamicMappingModule',
// path: './src/dynamic-mapping.module',
// description: 'Adds a Dynamic Data Mapper Plugin'
// }
// ]
// isPackage: true,
exports: [
{
name: 'Dynamic Mapping Mapper Plugin',
module: 'DynamicMappingModule',
path: './src/dynamic-mapping.module',
description: 'Adds a Dynamic Mapping Mapper Plugin'
description: 'Adds a Dynamic Mapping Mapper Plugin',
scope: 'self'
}
]
// comment end
},
buildTime: {
copy: [
Expand All @@ -68,16 +49,20 @@ export default {
to: 'image/Dynamic_Mapper_Mapping_Stepper_Substitution.png'
},
{
from: '../resources/image/Dynamic_Mapper_Mapping_Stepper_Substitution_Annotated.png',
to: 'image/Dynamic_Mapper_Mapping_Stepper_Substitution_Annotated.png'
from: '../resources/image/Dynamic_Mapper_Mapping_Stepper_Substitution_Basic_Annotated.png',
to: 'image/Dynamic_Mapper_Mapping_Stepper_Substitution_Basic_Annotated.png'
},
{
from: '../resources/image/Dynamic_Mapper_Mapping_Table_Add_Modal_Snooping.png',
to: 'image/Dynamic_Mapper_Mapping_Table_Add_Modal_Snooping.png'
},
{
from: '../resources/image/Dynamic_Mapper_Mapping_Stepper_Snooping.png',
to: 'image/Dynamic_Mapper_Mapping_Stepper_Snooping.png'
from: '../resources/image/Dynamic_Mapper_Mapping_Stepper_Mapping_Animated.gif',
to: 'image/Dynamic_Mapper_Mapping_Stepper_Mapping_Animated.gif'
},
{
from: '../resources/image/Dynamic_Mapper_Mapping_Stepper_Animated.gif',
to: 'image/Dynamic_Mapper_Mapping_Stepper_Animated.gif'
from: '../resources/image/Dynamic_Mapper_Mapping_Stepper_Snooping_Animated.gif',
to: 'image/Dynamic_Mapper_Mapping_Stepper_Snooping_Animated.gif'
},
{
from: '../resources/image/DM_App-Icon_03.png',
Expand Down Expand Up @@ -118,8 +103,9 @@ export default {
'@c8y/client',
'@c8y/ngx-components',
'ngx-bootstrap',
'angular',
'@ngx-translate/core',
'@ngx-formly/core'
]
}
} as const satisfies EnvironmentOptions;
} as const satisfies ConfigurationOptions;
15 changes: 0 additions & 15 deletions dynamic-mapping-ui/extra-webpack.config.js

This file was deleted.

Loading

0 comments on commit 2a41eac

Please sign in to comment.