-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
46 changed files
with
30,727 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
}); | ||
}); |
Large diffs are not rendered by default.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
web/1015.0.218/devicemanagement-lora/extra-webpack.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
66
web/1015.0.218/devicemanagement-lora/factories/Navigation.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/'] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'; |
Oops, something went wrong.