create api-utils to hold convenience convenience data structures
This commit is contained in:
parent
ebf0541385
commit
4727570870
|
@ -0,0 +1,6 @@
|
||||||
|
export const deviceID = (): String => {
|
||||||
|
const dID: String = globalThis.metadata['deviceID'];
|
||||||
|
return dID.substring(0, 5)
|
||||||
|
}
|
||||||
|
|
||||||
|
export const apiURL: String = 'http://127.0.0.1:8384/'
|
|
@ -15,11 +15,8 @@ import { FolderListComponent } from './folder-list/folder-list.component';
|
||||||
import { DeviceListComponent } from './device-list/device-list.component';
|
import { DeviceListComponent } from './device-list/device-list.component';
|
||||||
import { StatusToggleComponent } from './status-toggle/status-toggle.component';
|
import { StatusToggleComponent } from './status-toggle/status-toggle.component';
|
||||||
import { DeviceListDataSource } from './device-list/device-list-datasource';
|
import { DeviceListDataSource } from './device-list/device-list-datasource';
|
||||||
|
import { deviceID } from './api-utils';
|
||||||
|
|
||||||
const deviceID = (): String => {
|
|
||||||
const dID: String = globalThis.metadata['deviceID'];
|
|
||||||
return dID.substring(0, 5)
|
|
||||||
}
|
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
|
|
Loading…
Reference in New Issue