Skip to content

Commit

Permalink
added 1015 web release
Browse files Browse the repository at this point in the history
  • Loading branch information
cpoder committed Feb 6, 2023
1 parent f7a456c commit 1238bb4
Show file tree
Hide file tree
Showing 46 changed files with 30,727 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ jobs:
- uses: actions/checkout@v3
- name: Build webapp
run: |
cd web/1014.0.172/devicemanagement-lora
cd web/1015.0.218/devicemanagement-lora
npm install --force
npm run build
cd dist/apps/devicemanagement-lora
Expand All @@ -151,7 +151,7 @@ jobs:
owner, repo,
release_id: process.env.RELEASE_ID,
name: 'devicemanagement-lora.zip',
data: await fs.readFile('web/1014.0.172/devicemanagement-lora/dist/apps/devicemanagement-lora/devicemanagement-lora.zip')
data: await fs.readFile('web/1015.0.218/devicemanagement-lora/dist/apps/devicemanagement-lora/devicemanagement-lora.zip')
});
clean_up_if_failure:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ web/1011.0.12/devicemanagement-lora/dist
web/1011.0.12/devicemanagement-lora/node_modules
web/1014.0.172/devicemanagement-lora/dist
web/1014.0.172/devicemanagement-lora/node_modules
web/1015.0.218/devicemanagement-lora/dist
web/1015.0.218/devicemanagement-lora/node_modules
c8y_credentials
1 change: 0 additions & 1 deletion web/1014.0.172/devicemanagement-lora/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
CoreModule,
HOOK_NAVIGATOR_NODES,
HOOK_ROUTE,
PluginsModule,
RouterModule,
ViewContext,
DynamicFormsModule,
Expand Down
6 changes: 0 additions & 6 deletions web/1014.0.172/package-lock.json

This file was deleted.

16 changes: 16 additions & 0 deletions web/1015.0.218/devicemanagement-lora/app.module.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { TestBed } from '@angular/core/testing';

describe('Example test', () => {
/*let testComponent;
beforeEach(() => {
TestBed.configureTestingModule({
imports: [ExampleModule]
});
testComponent = TestBed.createComponent(TestComponent);
});*/

test('Always true', () => {
expect(true).toBe(true);
});
});
427 changes: 427 additions & 0 deletions web/1015.0.218/devicemanagement-lora/app.module.ts

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions web/1015.0.218/devicemanagement-lora/extra-webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
const path = require('path');
const CopyPlugin = require('copy-webpack-plugin');

module.exports = function config(env) {
return {
output: {
path: path.join(__dirname, './dist/apps/devicemanagement-lora')
},
plugins: [
new CopyPlugin({
patterns: [
{ from: 'node_modules/monaco-editor', to: 'assets/monaco-editor/' },
],
}, {debug: true})
],
}
};
66 changes: 66 additions & 0 deletions web/1015.0.218/devicemanagement-lora/factories/Navigation.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
import { Injectable } from '@angular/core';
import { NavigatorNode, NavigatorNodeFactory, _ } from '@c8y/ngx-components';

@Injectable()
export class LoraNavigationFactory implements NavigatorNodeFactory {
nav: NavigatorNode[] = [];
// Implement the get()-method, otherwise the ExampleNavigationFactory
// implements the NavigatorNodeFactory interface incorrectly (!)
constructor() {

let loraDevice: NavigatorNode = new NavigatorNode({
label: _('LoRa devices'),
icon: 'sensor',
path: '/lora-device',
priority: 0,
routerLinkExact: false
});

let loraGateway: NavigatorNode = new NavigatorNode({
label: _('LoRa gateways'),
icon: 'wifi',
path: '/lora-gateway',
priority: 0,
routerLinkExact: false
});

let loraNS: NavigatorNode = new NavigatorNode({
label: _('LoRa network servers'),
icon: 'c8y-saas',
path: '/lns',
priority: 1,
routerLinkExact: false
});

let loraCodecs: NavigatorNode = new NavigatorNode({
label: _('Custom codecs'),
icon: 'c8y-business-rules',
path: '/codecs',
priority: 2,
routerLinkExact: false
});

let loraConfig: NavigatorNode = new NavigatorNode({
label: _('Config'),
icon: 'c8y-administration',
path: '/config',
priority: 2,
routerLinkExact: false
});

let loraNode: NavigatorNode = new NavigatorNode({
label: _('LoRa'),
icon: 'wifi',
name: 'lora',
children: [loraDevice, loraGateway, loraNS, loraCodecs, loraConfig],
priority: 2,
routerLinkExact: false
});

this.nav.push(loraNode);
}

get() {
return this.nav;
}
}
18 changes: 18 additions & 0 deletions web/1015.0.218/devicemanagement-lora/i18n.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/**
* Internationalizing files in po format (https://en.wikipedia.org/wiki/Gettext#Translating)
* You can always add additional strings by adding your own po file. All po files are
* combined to one JSON file per language and are loaded if the specific language is needed.
*/
import '@c8y/ngx-components/locales/de.po';
import '@c8y/ngx-components/locales/en.po';
import '@c8y/ngx-components/locales/es.po';
import '@c8y/ngx-components/locales/fr.po';
import '@c8y/ngx-components/locales/ja_JP.po';
import '@c8y/ngx-components/locales/ko.po';
import '@c8y/ngx-components/locales/nl.po';
import '@c8y/ngx-components/locales/pl.po';
import '@c8y/ngx-components/locales/pt_BR.po';
import '@c8y/ngx-components/locales/ru.po';
import '@c8y/ngx-components/locales/zh_CN.po';
import '@c8y/ngx-components/locales/zh_TW.po';
// import './locales/de.po'; // <- adding additional strings to the german translation.
17 changes: 17 additions & 0 deletions web/1015.0.218/devicemanagement-lora/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import './polyfills';
import './ng1';
import './i18n';

import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app.module';

declare const __MODE__: string;
if (__MODE__ === 'production') {
enableProdMode();
}

export function bootstrap() {
platformBrowserDynamic()
.bootstrapModule(AppModule).catch((err) => console.log(err));
}
6 changes: 6 additions & 0 deletions web/1015.0.218/devicemanagement-lora/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// jest.config.js
module.exports = {
preset: 'jest-preset-angular',
setupFilesAfterEnv: ['<rootDir>/setup-jest.js'],
transformIgnorePatterns: ['/!node_modules\\/lodash-es/']
};
46 changes: 46 additions & 0 deletions web/1015.0.218/devicemanagement-lora/ng1.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import '@c8y/ng1-modules/core';
import '@c8y/ng1-modules/aclManagement/cumulocity.json';
import '@c8y/ng1-modules/dashboard2/cumulocity.json';
import '@c8y/ng1-modules/imageWidget/cumulocity.json';
import '@c8y/ng1-modules/devicePropertyWidget/cumulocity.json';
import '@c8y/ng1-modules/qrCode/cumulocity.json';
import '@c8y/ng1-modules/deviceControlMessage/cumulocity.json';
import '@c8y/ng1-modules/deviceControlRelay/cumulocity.json';
import '@c8y/ng1-modules/deviceControlRelayArray/cumulocity.json';
import '@c8y/ng1-modules/administration-deviceUsers/cumulocity.json';
import '@c8y/ng1-modules/eventsBinary/cumulocity.json';
import '@c8y/ng1-modules/alarmAssets/cumulocity.json';
import '@c8y/ng1-modules/kpi/cumulocity.json';
import '@c8y/ng1-modules/deviceSelector/cumulocity.json';
import '@c8y/ng1-modules/smartRules/cumulocity.json';
import '@c8y/ng1-modules/relayWidget/cumulocity.json';
import '@c8y/ng1-modules/commandTemplates/cumulocity.json';
import '@c8y/ng1-modules/connectivityV2/cumulocity.json';
import '@c8y/ng1-modules/smartRestEditor/cumulocity.json';
import '@c8y/ng1-modules/smartRestEditorUI/cumulocity.json';
import '@c8y/ng1-modules/simulators/cumulocity.json';
import '@c8y/ng1-modules/remoteAccess/cumulocity.json';
import '@c8y/ng1-modules/deviceActility/cumulocity.json';
import '@c8y/ng1-modules/devicemanagement-aclManagement/cumulocity.json';
import '@c8y/ng1-modules/devicemanagement-deviceManagement/cumulocity.json';
import '@c8y/ng1-modules/devicemanagement-deviceListMap/cumulocity.json';
import '@c8y/ng1-modules/devicemanagement-alarmList/cumulocity.json';
import '@c8y/ng1-modules/devicemanagement-deviceNetwork/cumulocity.json';
import '@c8y/ng1-modules/devicemanagement-eventList/cumulocity.json';
import '@c8y/ng1-modules/devicemanagement-location/cumulocity.json';
import '@c8y/ng1-modules/devicemanagement-availability/cumulocity.json';
import '@c8y/ng1-modules/devicemanagement-tracking/cumulocity.json';
import '@c8y/ng1-modules/devicemanagement-measurements/cumulocity.json';
import '@c8y/ng1-modules/devicemanagement-vendMeDeviceControl/cumulocity.json';
import '@c8y/ng1-modules/groupsHierarchy/cumulocity.json';
import '@c8y/ng1-modules/devicemanagement-tixiDeviceControl/cumulocity.json';
import '@c8y/ng1-modules/devicemanagement-logViewer/cumulocity.json';
import '@c8y/ng1-modules/devicemanagement-restartDevice/cumulocity.json';
import '@c8y/ng1-modules/fieldbusConfig/cumulocity.json';
import '@c8y/ng1-modules/deviceDatabase4/cumulocity.json';
import '@c8y/ng1-modules/modbusConfiguration4/cumulocity.json';
import '@c8y/ng1-modules/modbusWidget4/cumulocity.json';
import '@c8y/ng1-modules/device-protocols/cumulocity.json';
import '@c8y/ng1-modules/device-protocol-lwm2m/cumulocity.json';
import '@c8y/ng1-modules/device-protocol-impact/cumulocity.json';
import '@c8y/ng1-modules/device-protocol-opcua-v2/cumulocity.json';
Loading

0 comments on commit 1238bb4

Please sign in to comment.