* add write-hca.js * refactor: Move config serializer into the uhk-common package * refactor: Move getTransferBuffers into the uhk-usb package * refactor: delete obsoleted classes * build: add uhk-usb build command * refactor: move eeprom transfer to uhk-usb package * fix: Fix write-hca.js * feat: load hardware config from the device and * style: fix ts lint errors * build: fix rxjs dependency resolve * test: Add jasmine unit test framework to the tet serializer * fix(user-config): A "type": "basic", properties to the "keystroke" action types * feat(usb): set chmod+x on write-hca.js * feat(usb): Create USB logger * style: Fix type * build: Add chalk to dependencies. Chalk will colorize the output
17 lines
425 B
TypeScript
17 lines
425 B
TypeScript
import { Injectable } from '@angular/core';
|
|
import { UserConfiguration } from 'uhk-common';
|
|
|
|
@Injectable()
|
|
export class DefaultUserConfigurationService {
|
|
private _defaultConfig: UserConfiguration;
|
|
|
|
constructor() {
|
|
this._defaultConfig = new UserConfiguration()
|
|
.fromJsonObject(require('./user-config.json'));
|
|
}
|
|
|
|
getDefault(): UserConfiguration {
|
|
return this._defaultConfig;
|
|
}
|
|
}
|