mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-10 15:20:56 +00:00
create api-utils to hold convenience convenience data structures
This commit is contained in:
parent
ebf0541385
commit
4727570870
6
src/app/api-utils.ts
Normal file
6
src/app/api-utils.ts
Normal file
@ -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 { StatusToggleComponent } from './status-toggle/status-toggle.component';
|
||||
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({
|
||||
declarations: [
|
||||
|
Loading…
Reference in New Issue
Block a user