Add new tslint rules (class-name, ordered-imports) and fix errors
This commit is contained in:
@@ -3,15 +3,27 @@ import { BrowserModule } from '@angular/platform-browser';
|
|||||||
|
|
||||||
import { Select2Component } from 'ng2-select2/ng2-select2';
|
import { Select2Component } from 'ng2-select2/ng2-select2';
|
||||||
|
|
||||||
import { DataProviderService } from './services/data-provider.service';
|
|
||||||
import { MapperService } from './services/mapper.service';
|
|
||||||
import {UhkConfigurationService} from './services/uhk-configuration.service';
|
|
||||||
|
|
||||||
import { MainAppComponent, appRoutingProviders, routing } from './main-app';
|
import { MainAppComponent, appRoutingProviders, routing } from './main-app';
|
||||||
import { KeymapComponent } from './components/keymap';
|
|
||||||
import { MacroComponent } from './components/macro';
|
import { KeymapAddComponent, KeymapComponent } from './components/keymap';
|
||||||
|
import { LayersComponent } from './components/layers';
|
||||||
import { LegacyLoaderComponent } from './components/legacy-loader';
|
import { LegacyLoaderComponent } from './components/legacy-loader';
|
||||||
|
import { MacroComponent } from './components/macro';
|
||||||
import { NotificationComponent } from './components/notification';
|
import { NotificationComponent } from './components/notification';
|
||||||
|
import { PopoverComponent } from './components/popover';
|
||||||
|
import {
|
||||||
|
KeymapTabComponent,
|
||||||
|
KeypressTabComponent,
|
||||||
|
LayerTabComponent,
|
||||||
|
MacroTabComponent,
|
||||||
|
MouseTabComponent,
|
||||||
|
NoneTabComponent
|
||||||
|
} from './components/popover/tab';
|
||||||
|
import { MacroItemComponent } from './components/popover/tab/macro';
|
||||||
|
import { CaptureKeystrokeButtonComponent } from './components/popover/widgets/capture-keystroke';
|
||||||
|
import { IconComponent } from './components/popover/widgets/icon';
|
||||||
|
import { SideMenuComponent } from './components/side-menu';
|
||||||
|
import { SvgKeyboardComponent } from './components/svg/keyboard';
|
||||||
import {
|
import {
|
||||||
SvgIconTextKeyComponent,
|
SvgIconTextKeyComponent,
|
||||||
SvgKeyboardKeyComponent,
|
SvgKeyboardKeyComponent,
|
||||||
@@ -22,24 +34,12 @@ import {
|
|||||||
SvgTextIconKeyComponent,
|
SvgTextIconKeyComponent,
|
||||||
SvgTwoLineTextKeyComponent
|
SvgTwoLineTextKeyComponent
|
||||||
} from './components/svg/keys';
|
} from './components/svg/keys';
|
||||||
import { SvgKeyboardWrapComponent } from './components/svg/wrap';
|
|
||||||
import { LayersComponent } from './components/layers';
|
|
||||||
import { SvgKeyboardComponent } from './components/svg/keyboard';
|
|
||||||
import { SvgModuleComponent } from './components/svg/module';
|
import { SvgModuleComponent } from './components/svg/module';
|
||||||
import { PopoverComponent } from './components/popover';
|
import { SvgKeyboardWrapComponent } from './components/svg/wrap';
|
||||||
import { KeymapAddComponent } from './components/keymap';
|
|
||||||
import { MacroItemComponent } from './components/popover/tab/macro';
|
import { DataProviderService } from './services/data-provider.service';
|
||||||
import { SideMenuComponent } from './components/side-menu';
|
import { MapperService } from './services/mapper.service';
|
||||||
import {
|
import {UhkConfigurationService} from './services/uhk-configuration.service';
|
||||||
KeypressTabComponent,
|
|
||||||
KeymapTabComponent,
|
|
||||||
LayerTabComponent,
|
|
||||||
MacroTabComponent,
|
|
||||||
MouseTabComponent,
|
|
||||||
NoneTabComponent
|
|
||||||
} from './components/popover/tab';
|
|
||||||
import { CaptureKeystrokeButtonComponent } from './components/popover/widgets/capture-keystroke';
|
|
||||||
import { IconComponent } from './components/popover/widgets/icon';
|
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
||||||
|
|
||||||
import { AppModule } from './app.module';
|
import { AppModule } from './app.module';
|
||||||
|
|
||||||
process.stdout = require('browser-stdout')();
|
process.stdout = require('browser-stdout')();
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
import { Keymap } from '../../../config-serializer/config-items/Keymap';
|
import { Keymap } from '../../../config-serializer/config-items/Keymap';
|
||||||
import { Keymaps } from '../../../config-serializer/config-items/Keymaps';
|
import { Keymaps } from '../../../config-serializer/config-items/Keymaps';
|
||||||
import {DataProviderService} from '../../../services/data-provider.service';
|
import {DataProviderService} from '../../../services/data-provider.service';
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { ActivatedRoute } from '@angular/router';
|
import { ActivatedRoute } from '@angular/router';
|
||||||
|
import { Subscription } from 'rxjs/Subscription';
|
||||||
|
|
||||||
|
import { Keymap } from '../../config-serializer/config-items/Keymap';
|
||||||
import { Layers } from '../../config-serializer/config-items/Layers';
|
import { Layers } from '../../config-serializer/config-items/Layers';
|
||||||
import { UhkConfigurationService } from '../../services/uhk-configuration.service';
|
import { UhkConfigurationService } from '../../services/uhk-configuration.service';
|
||||||
import { Keymap } from '../../config-serializer/config-items/Keymap';
|
|
||||||
import { Subscription } from 'rxjs/Subscription';
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'keymap',
|
selector: 'keymap',
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import { Routes } from '@angular/router';
|
import { Routes } from '@angular/router';
|
||||||
import { KeymapComponent } from './keymap.component';
|
|
||||||
import { KeymapAddComponent } from './add/keymap-add.component';
|
import { KeymapAddComponent } from './add/keymap-add.component';
|
||||||
|
import { KeymapComponent } from './keymap.component';
|
||||||
|
|
||||||
export const keymapRoutes: Routes = [
|
export const keymapRoutes: Routes = [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, Input, Output, EventEmitter } from '@angular/core';
|
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'layers',
|
selector: 'layers',
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { Routes } from '@angular/router';
|
import { Routes } from '@angular/router';
|
||||||
|
|
||||||
import {LegacyLoaderComponent} from './legacy-loader.component';
|
import {LegacyLoaderComponent} from './legacy-loader.component';
|
||||||
|
|
||||||
export const legacyRoutes: Routes = [
|
export const legacyRoutes: Routes = [
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { Routes } from '@angular/router';
|
import { Routes } from '@angular/router';
|
||||||
|
|
||||||
import { MacroComponent } from './macro.component';
|
import { MacroComponent } from './macro.component';
|
||||||
|
|
||||||
export const macroRoutes: Routes = [
|
export const macroRoutes: Routes = [
|
||||||
|
|||||||
@@ -1,13 +1,12 @@
|
|||||||
import {Component, OnInit, Input, Output, EventEmitter, ViewChild} from '@angular/core';
|
import {Component, EventEmitter, Input, OnInit, Output, ViewChild} from '@angular/core';
|
||||||
|
|
||||||
import {KeyAction} from '../../config-serializer/config-items/KeyAction';
|
import {KeyAction} from '../../config-serializer/config-items/KeyAction';
|
||||||
|
|
||||||
import {Tab} from './tab/tab';
|
|
||||||
import {KeystrokeAction} from '../../config-serializer/config-items/KeystrokeAction';
|
import {KeystrokeAction} from '../../config-serializer/config-items/KeystrokeAction';
|
||||||
import {SwitchLayerAction} from '../../config-serializer/config-items/SwitchLayerAction';
|
|
||||||
import {MouseAction} from '../../config-serializer/config-items/MouseAction';
|
import {MouseAction} from '../../config-serializer/config-items/MouseAction';
|
||||||
import {PlayMacroAction} from '../../config-serializer/config-items/PlayMacroAction';
|
import {PlayMacroAction} from '../../config-serializer/config-items/PlayMacroAction';
|
||||||
import {SwitchKeymapAction} from '../../config-serializer/config-items/SwitchKeymapAction';
|
import {SwitchKeymapAction} from '../../config-serializer/config-items/SwitchKeymapAction';
|
||||||
|
import {SwitchLayerAction} from '../../config-serializer/config-items/SwitchLayerAction';
|
||||||
|
import {Tab} from './tab/tab';
|
||||||
|
|
||||||
enum TabName {
|
enum TabName {
|
||||||
Keypress,
|
Keypress,
|
||||||
|
|||||||
@@ -1,13 +1,14 @@
|
|||||||
import {Component, OnInit, Input} from '@angular/core';
|
import {Component, Input, OnInit } from '@angular/core';
|
||||||
|
|
||||||
import {UhkConfigurationService} from '../../../../services/uhk-configuration.service';
|
|
||||||
import {Keymap} from '../../../../config-serializer/config-items/Keymap';
|
|
||||||
import {KeyAction} from '../../../../config-serializer/config-items/KeyAction';
|
|
||||||
import {Tab} from '../tab';
|
|
||||||
import {SwitchKeymapAction} from '../../../../config-serializer/config-items/SwitchKeymapAction';
|
|
||||||
|
|
||||||
import {Select2OptionData} from 'ng2-select2/ng2-select2';
|
import {Select2OptionData} from 'ng2-select2/ng2-select2';
|
||||||
|
|
||||||
|
import {KeyAction} from '../../../../config-serializer/config-items/KeyAction';
|
||||||
|
import {Keymap} from '../../../../config-serializer/config-items/Keymap';
|
||||||
|
import {SwitchKeymapAction} from '../../../../config-serializer/config-items/SwitchKeymapAction';
|
||||||
|
import {Tab} from '../tab';
|
||||||
|
|
||||||
|
import {UhkConfigurationService} from '../../../../services/uhk-configuration.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'keymap-tab',
|
selector: 'keymap-tab',
|
||||||
template: require('./keymap-tab.component.html'),
|
template: require('./keymap-tab.component.html'),
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {Component, OnInit, Input} from '@angular/core';
|
import {Component, Input, OnInit} from '@angular/core';
|
||||||
|
|
||||||
import {Select2OptionData} from 'ng2-select2/ng2-select2';
|
import {Select2OptionData} from 'ng2-select2/ng2-select2';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import {Component, OnInit, Input, ViewChild} from '@angular/core';
|
import {Component, Input, OnInit, ViewChild} from '@angular/core';
|
||||||
|
|
||||||
import {LayerName, SwitchLayerAction} from '../../../../config-serializer/config-items/SwitchLayerAction';
|
|
||||||
import {KeyAction} from '../../../../config-serializer/config-items/KeyAction';
|
import {KeyAction} from '../../../../config-serializer/config-items/KeyAction';
|
||||||
|
import {LayerName, SwitchLayerAction} from '../../../../config-serializer/config-items/SwitchLayerAction';
|
||||||
|
|
||||||
import {Select2Component, Select2OptionData} from 'ng2-select2/ng2-select2';
|
import {Select2Component, Select2OptionData} from 'ng2-select2/ng2-select2';
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { Component, OnInit, OnChanges, Input } from '@angular/core';
|
import { Component, Input, OnChanges, OnInit } from '@angular/core';
|
||||||
|
|
||||||
import {MacroAction} from '../../../../config-serializer/config-items/MacroAction';
|
|
||||||
import {DelayMacroAction} from '../../../../config-serializer/config-items/DelayMacroAction';
|
import {DelayMacroAction} from '../../../../config-serializer/config-items/DelayMacroAction';
|
||||||
import {HoldModifiersMacroAction} from '../../../../config-serializer/config-items/HoldModifiersMacroAction';
|
import {HoldModifiersMacroAction} from '../../../../config-serializer/config-items/HoldModifiersMacroAction';
|
||||||
|
import {MacroAction} from '../../../../config-serializer/config-items/MacroAction';
|
||||||
import {MoveMouseMacroAction} from '../../../../config-serializer/config-items/MoveMouseMacroAction';
|
import {MoveMouseMacroAction} from '../../../../config-serializer/config-items/MoveMouseMacroAction';
|
||||||
import {PressModifiersMacroAction} from '../../../../config-serializer/config-items/PressModifiersMacroAction';
|
import {PressModifiersMacroAction} from '../../../../config-serializer/config-items/PressModifiersMacroAction';
|
||||||
import {ReleaseModifiersMacroAction} from '../../../../config-serializer/config-items/ReleaseModifiersMacroAction';
|
import {ReleaseModifiersMacroAction} from '../../../../config-serializer/config-items/ReleaseModifiersMacroAction';
|
||||||
|
|||||||
@@ -1,13 +1,14 @@
|
|||||||
import {Component, OnInit, Input} from '@angular/core';
|
import {Component, Input, OnInit} from '@angular/core';
|
||||||
|
|
||||||
|
import {Select2OptionData} from 'ng2-select2/ng2-select2';
|
||||||
|
|
||||||
import {UhkConfigurationService} from '../../../../services/uhk-configuration.service';
|
|
||||||
import {Macro} from '../../../../config-serializer/config-items/Macro';
|
|
||||||
import {KeyAction} from '../../../../config-serializer/config-items/KeyAction';
|
import {KeyAction} from '../../../../config-serializer/config-items/KeyAction';
|
||||||
|
import {Macro} from '../../../../config-serializer/config-items/Macro';
|
||||||
import {PlayMacroAction} from '../../../../config-serializer/config-items/PlayMacroAction';
|
import {PlayMacroAction} from '../../../../config-serializer/config-items/PlayMacroAction';
|
||||||
|
|
||||||
import {Tab} from '../tab';
|
import {Tab} from '../tab';
|
||||||
|
|
||||||
import {Select2OptionData} from 'ng2-select2/ng2-select2';
|
import {UhkConfigurationService} from '../../../../services/uhk-configuration.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'macro-tab',
|
selector: 'macro-tab',
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
import {Component, OnInit, Input} from '@angular/core';
|
import {Component, Input, OnInit} from '@angular/core';
|
||||||
|
|
||||||
import {Tab} from '../tab';
|
|
||||||
import {KeyAction} from '../../../../config-serializer/config-items/KeyAction';
|
import {KeyAction} from '../../../../config-serializer/config-items/KeyAction';
|
||||||
import {MouseAction, MouseActionParam} from '../../../../config-serializer/config-items/MouseAction';
|
import {MouseAction, MouseActionParam} from '../../../../config-serializer/config-items/MouseAction';
|
||||||
|
|
||||||
|
import {Tab} from '../tab';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'mouse-tab',
|
selector: 'mouse-tab',
|
||||||
template: require('./mouse-tab.component.html'),
|
template: require('./mouse-tab.component.html'),
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import {Component, OnInit } from '@angular/core';
|
import {Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
import {Tab} from '../tab';
|
|
||||||
import {NoneAction} from '../../../../config-serializer/config-items/NoneAction';
|
import {NoneAction} from '../../../../config-serializer/config-items/NoneAction';
|
||||||
|
import {Tab} from '../tab';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'none-tab',
|
selector: 'none-tab',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, OnInit, Input } from '@angular/core';
|
import { Component, Input, OnInit } from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'icon',
|
selector: 'icon',
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
import { Keymap } from '../../config-serializer/config-items/Keymap';
|
import { Keymap } from '../../config-serializer/config-items/Keymap';
|
||||||
import { UhkConfigurationService } from '../../services/uhk-configuration.service';
|
|
||||||
import { Macro } from '../../config-serializer/config-items/Macro';
|
import { Macro } from '../../config-serializer/config-items/Macro';
|
||||||
|
|
||||||
|
import { UhkConfigurationService } from '../../services/uhk-configuration.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'side-menu',
|
selector: 'side-menu',
|
||||||
template: require('./side-menu.component.html'),
|
template: require('./side-menu.component.html'),
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
import { Component, OnInit, Input, Output, EventEmitter} from '@angular/core';
|
import { Component, EventEmitter, Input, OnInit, Output} from '@angular/core';
|
||||||
|
|
||||||
import {Module} from '../../../config-serializer/config-items/Module';
|
import {Module} from '../../../config-serializer/config-items/Module';
|
||||||
import {SvgModule} from '../module';
|
import {SvgModule} from '../module';
|
||||||
|
|
||||||
import {DataProviderService} from '../../../services/data-provider.service';
|
import {DataProviderService} from '../../../services/data-provider.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, OnInit, Input } from '@angular/core';
|
import { Component, Input, OnInit } from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'g[svg-icon-text-key]',
|
selector: 'g[svg-icon-text-key]',
|
||||||
|
|||||||
@@ -1,14 +1,15 @@
|
|||||||
import { Component, OnInit, Input, OnChanges, SimpleChange } from '@angular/core';
|
import { Component, Input, OnChanges, OnInit, SimpleChange } from '@angular/core';
|
||||||
|
|
||||||
import {KeyAction} from '../../../../config-serializer/config-items/KeyAction';
|
import {KeyAction} from '../../../../config-serializer/config-items/KeyAction';
|
||||||
import {KeystrokeAction} from '../../../../config-serializer/config-items/KeystrokeAction';
|
|
||||||
import {KeyModifiers} from '../../../../config-serializer/config-items/KeyModifiers';
|
import {KeyModifiers} from '../../../../config-serializer/config-items/KeyModifiers';
|
||||||
|
import {KeystrokeAction} from '../../../../config-serializer/config-items/KeystrokeAction';
|
||||||
import {PlayMacroAction} from '../../../../config-serializer/config-items/PlayMacroAction';
|
import {PlayMacroAction} from '../../../../config-serializer/config-items/PlayMacroAction';
|
||||||
import {SwitchLayerAction, LayerName} from '../../../../config-serializer/config-items/SwitchLayerAction';
|
|
||||||
import {SwitchKeymapAction} from '../../../../config-serializer/config-items/SwitchKeymapAction';
|
import {SwitchKeymapAction} from '../../../../config-serializer/config-items/SwitchKeymapAction';
|
||||||
|
import {LayerName, SwitchLayerAction} from '../../../../config-serializer/config-items/SwitchLayerAction';
|
||||||
import {UhkConfiguration} from '../../../../config-serializer/config-items/UhkConfiguration';
|
import {UhkConfiguration} from '../../../../config-serializer/config-items/UhkConfiguration';
|
||||||
import {UhkConfigurationService} from '../../../../services/uhk-configuration.service';
|
|
||||||
import {MapperService} from '../../../../services/mapper.service';
|
import {MapperService} from '../../../../services/mapper.service';
|
||||||
|
import {UhkConfigurationService} from '../../../../services/uhk-configuration.service';
|
||||||
|
|
||||||
enum LabelTypes {
|
enum LabelTypes {
|
||||||
KeystrokeKey,
|
KeystrokeKey,
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { Component, OnInit, OnChanges, Input } from '@angular/core';
|
import { Component, Input, OnChanges, OnInit } from '@angular/core';
|
||||||
|
|
||||||
import { KeystrokeAction } from '../../../../config-serializer/config-items/KeystrokeAction';
|
|
||||||
import { KeyModifiers } from '../../../../config-serializer/config-items/KeyModifiers';
|
import { KeyModifiers } from '../../../../config-serializer/config-items/KeyModifiers';
|
||||||
|
import { KeystrokeAction } from '../../../../config-serializer/config-items/KeystrokeAction';
|
||||||
import { MapperService } from '../../../../services/mapper.service';
|
import { MapperService } from '../../../../services/mapper.service';
|
||||||
|
|
||||||
class SvgAttributes {
|
class SvgAttributes {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, OnInit, Input } from '@angular/core';
|
import { Component, Input, OnInit } from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'g[svg-one-line-text-key]',
|
selector: 'g[svg-one-line-text-key]',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, OnInit, Input } from '@angular/core';
|
import { Component, Input, OnInit } from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'g[svg-single-icon-key]',
|
selector: 'g[svg-single-icon-key]',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, OnInit, Input } from '@angular/core';
|
import { Component, Input, OnInit } from '@angular/core';
|
||||||
|
|
||||||
import {MapperService} from '../../../../services/mapper.service';
|
import {MapperService} from '../../../../services/mapper.service';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, OnInit, Input } from '@angular/core';
|
import { Component, Input, OnInit } from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'g[svg-text-icon-key]',
|
selector: 'g[svg-text-icon-key]',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, OnInit, Input } from '@angular/core';
|
import { Component, Input, OnInit } from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'g[svg-two-line-text-key]',
|
selector: 'g[svg-two-line-text-key]',
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
import { Component, Input, Output, EventEmitter } from '@angular/core';
|
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
||||||
|
|
||||||
|
import {KeyAction} from '../../../config-serializer/config-items/KeyAction';
|
||||||
|
|
||||||
import { SvgKeyboardKey } from '../keys';
|
import { SvgKeyboardKey } from '../keys';
|
||||||
import {KeyAction} from '../../../config-serializer/config-items/KeyAction';
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'g[svg-module]',
|
selector: 'g[svg-module]',
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {
|
import {
|
||||||
Component, Input, OnInit, style,
|
Component, Input, OnChanges, OnInit, animate,
|
||||||
state, animate, transition, trigger, OnChanges
|
state, style, transition, trigger
|
||||||
} from '@angular/core';
|
} from '@angular/core';
|
||||||
|
|
||||||
import { KeyAction } from '../../../config-serializer/config-items/KeyAction';
|
import { KeyAction } from '../../../config-serializer/config-items/KeyAction';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {UhkBuffer} from '../UhkBuffer';
|
|
||||||
import {MacroAction, macroActionType, MacroActionId} from './MacroAction';
|
|
||||||
import {assertUInt16} from '../assert';
|
import {assertUInt16} from '../assert';
|
||||||
|
import {UhkBuffer} from '../UhkBuffer';
|
||||||
|
import {MacroAction, MacroActionId, macroActionType} from './MacroAction';
|
||||||
|
|
||||||
export class DelayMacroAction extends MacroAction {
|
export class DelayMacroAction extends MacroAction {
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
import {assertUInt8} from '../assert';
|
||||||
import {UhkBuffer} from '../UhkBuffer';
|
import {UhkBuffer} from '../UhkBuffer';
|
||||||
import {MacroAction, MacroActionId, macroActionType} from './MacroAction';
|
import {MacroAction, MacroActionId, macroActionType} from './MacroAction';
|
||||||
import {assertUInt8} from '../assert';
|
|
||||||
|
|
||||||
export class HoldKeyMacroAction extends MacroAction {
|
export class HoldKeyMacroAction extends MacroAction {
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import {MacroAction, MacroActionId, macroActionType} from './MacroAction';
|
|
||||||
import {KeyModifiers} from './KeyModifiers';
|
|
||||||
import {UhkBuffer} from '../UhkBuffer';
|
|
||||||
import {assertUInt8} from '../assert';
|
import {assertUInt8} from '../assert';
|
||||||
|
import {UhkBuffer} from '../UhkBuffer';
|
||||||
|
import {KeyModifiers} from './KeyModifiers';
|
||||||
|
import {MacroAction, MacroActionId, macroActionType} from './MacroAction';
|
||||||
|
|
||||||
export class HoldModifiersMacroAction extends MacroAction {
|
export class HoldModifiersMacroAction extends MacroAction {
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
import {assertUInt8} from '../assert';
|
||||||
import {UhkBuffer} from '../UhkBuffer';
|
import {UhkBuffer} from '../UhkBuffer';
|
||||||
import {MacroAction, MacroActionId, macroActionType} from './MacroAction';
|
import {MacroAction, MacroActionId, macroActionType} from './MacroAction';
|
||||||
import {assertUInt8} from '../assert';
|
|
||||||
|
|
||||||
export class HoldMouseButtonsMacroAction extends MacroAction {
|
export class HoldMouseButtonsMacroAction extends MacroAction {
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
import {ClassArray} from '../ClassArray';
|
import {ClassArray} from '../ClassArray';
|
||||||
import {UhkBuffer} from '../UhkBuffer';
|
import {UhkBuffer} from '../UhkBuffer';
|
||||||
import {NoneAction} from './NoneAction';
|
import {KeyAction, KeyActionId, keyActionType} from './KeyAction';
|
||||||
import {KeystrokeAction} from './KeystrokeAction';
|
import {KeystrokeAction} from './KeystrokeAction';
|
||||||
import {keyActionType, KeyActionId, KeyAction} from './KeyAction';
|
|
||||||
import {SwitchLayerAction} from './SwitchLayerAction';
|
|
||||||
import {SwitchKeymapAction} from './SwitchKeymapAction';
|
|
||||||
import {MouseAction} from './MouseAction';
|
import {MouseAction} from './MouseAction';
|
||||||
|
import {NoneAction} from './NoneAction';
|
||||||
import {PlayMacroAction} from './PlayMacroAction';
|
import {PlayMacroAction} from './PlayMacroAction';
|
||||||
|
import {SwitchKeymapAction} from './SwitchKeymapAction';
|
||||||
|
import {SwitchLayerAction} from './SwitchLayerAction';
|
||||||
|
|
||||||
export class KeyActions extends ClassArray<KeyAction> {
|
export class KeyActions extends ClassArray<KeyAction> {
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
|
import {assertUInt8} from '../assert';
|
||||||
import {Serializable} from '../Serializable';
|
import {Serializable} from '../Serializable';
|
||||||
import {UhkBuffer} from '../UhkBuffer';
|
import {UhkBuffer} from '../UhkBuffer';
|
||||||
import {Layers} from './Layers';
|
import {Layers} from './Layers';
|
||||||
import {assertUInt8} from '../assert';
|
|
||||||
|
|
||||||
export class Keymap extends Serializable<Keymap> {
|
export class Keymap extends Serializable<Keymap> {
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
|
import {assertEnum, assertUInt8} from '../assert';
|
||||||
import {UhkBuffer} from '../UhkBuffer';
|
import {UhkBuffer} from '../UhkBuffer';
|
||||||
import {keyActionType, KeyActionId, KeyAction} from './KeyAction';
|
import {KeyAction, KeyActionId, keyActionType} from './KeyAction';
|
||||||
import {KeyModifiers} from './KeyModifiers';
|
import {KeyModifiers} from './KeyModifiers';
|
||||||
import {assertUInt8, assertEnum} from '../assert';
|
|
||||||
import {LongPressAction} from './LongPressAction';
|
import {LongPressAction} from './LongPressAction';
|
||||||
|
|
||||||
export enum KeystrokeActionFlag {
|
export enum KeystrokeActionFlag {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { Serializable } from '../Serializable';
|
|
||||||
import { Modules } from './Modules';
|
|
||||||
import { UhkBuffer } from '../UhkBuffer';
|
|
||||||
import { AnimationKeyboard } from '../../components/svg/wrap';
|
import { AnimationKeyboard } from '../../components/svg/wrap';
|
||||||
|
import { Serializable } from '../Serializable';
|
||||||
|
import { UhkBuffer } from '../UhkBuffer';
|
||||||
|
import { Modules } from './Modules';
|
||||||
|
|
||||||
export class Layer extends Serializable<Layer> {
|
export class Layer extends Serializable<Layer> {
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
|
import {assertUInt8} from '../assert';
|
||||||
import {Serializable} from '../Serializable';
|
import {Serializable} from '../Serializable';
|
||||||
import {UhkBuffer} from '../UhkBuffer';
|
import {UhkBuffer} from '../UhkBuffer';
|
||||||
import {MacroActions} from './MacroActions';
|
import {MacroActions} from './MacroActions';
|
||||||
import {assertUInt8} from '../assert';
|
|
||||||
|
|
||||||
export class Macro extends Serializable<Macro> {
|
export class Macro extends Serializable<Macro> {
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import {ClassArray} from '../ClassArray';
|
import {ClassArray} from '../ClassArray';
|
||||||
import {UhkBuffer} from '../UhkBuffer';
|
import {UhkBuffer} from '../UhkBuffer';
|
||||||
import {DelayMacroAction} from './DelayMacroAction';
|
import {DelayMacroAction} from './DelayMacroAction';
|
||||||
import {MacroAction, macroActionType, MacroActionId} from './MacroAction';
|
|
||||||
import {HoldKeyMacroAction} from './HoldKeyMacroAction';
|
import {HoldKeyMacroAction} from './HoldKeyMacroAction';
|
||||||
import {HoldModifiersMacroAction} from './HoldModifiersMacroAction';
|
import {HoldModifiersMacroAction} from './HoldModifiersMacroAction';
|
||||||
import {HoldMouseButtonsMacroAction} from './HoldMouseButtonsMacroAction';
|
import {HoldMouseButtonsMacroAction} from './HoldMouseButtonsMacroAction';
|
||||||
|
import {MacroAction, MacroActionId, macroActionType} from './MacroAction';
|
||||||
import {MoveMouseMacroAction} from './MoveMouseMacroAction';
|
import {MoveMouseMacroAction} from './MoveMouseMacroAction';
|
||||||
import {PressKeyMacroAction} from './PressKeyMacroAction';
|
import {PressKeyMacroAction} from './PressKeyMacroAction';
|
||||||
import {PressModifiersMacroAction} from './PressModifiersMacroAction';
|
import {PressModifiersMacroAction} from './PressModifiersMacroAction';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {ClassArray} from '../ClassArray';
|
import {ClassArray} from '../ClassArray';
|
||||||
import {Macro} from './Macro';
|
|
||||||
import {UhkBuffer} from '../UhkBuffer';
|
import {UhkBuffer} from '../UhkBuffer';
|
||||||
|
import {Macro} from './Macro';
|
||||||
|
|
||||||
export class Macros extends ClassArray<Macro> {
|
export class Macros extends ClassArray<Macro> {
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
|
import {assertEnum, assertUInt8} from '../assert';
|
||||||
import {Serializable} from '../Serializable';
|
import {Serializable} from '../Serializable';
|
||||||
import {KeyActions} from './KeyActions';
|
|
||||||
import {UhkBuffer} from '../UhkBuffer';
|
import {UhkBuffer} from '../UhkBuffer';
|
||||||
import {assertUInt8, assertEnum} from '../assert';
|
import {KeyActions} from './KeyActions';
|
||||||
|
|
||||||
enum PointerRole {
|
enum PointerRole {
|
||||||
none,
|
none,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
import {assertUInt8} from '../assert';
|
||||||
import {Serializable} from '../Serializable';
|
import {Serializable} from '../Serializable';
|
||||||
import {UhkBuffer} from '../UhkBuffer';
|
import {UhkBuffer} from '../UhkBuffer';
|
||||||
import {assertUInt8} from '../assert';
|
|
||||||
|
|
||||||
export class ModuleConfiguration extends Serializable<ModuleConfiguration> {
|
export class ModuleConfiguration extends Serializable<ModuleConfiguration> {
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {ClassArray} from '../ClassArray';
|
import {ClassArray} from '../ClassArray';
|
||||||
import {ModuleConfiguration} from './ModuleConfiguration';
|
|
||||||
import {UhkBuffer} from '../UhkBuffer';
|
import {UhkBuffer} from '../UhkBuffer';
|
||||||
|
import {ModuleConfiguration} from './ModuleConfiguration';
|
||||||
|
|
||||||
export class ModuleConfigurations extends ClassArray<ModuleConfiguration> {
|
export class ModuleConfigurations extends ClassArray<ModuleConfiguration> {
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {ClassArray} from '../ClassArray';
|
import {ClassArray} from '../ClassArray';
|
||||||
import {Module} from './Module';
|
|
||||||
import {UhkBuffer} from '../UhkBuffer';
|
import {UhkBuffer} from '../UhkBuffer';
|
||||||
|
import {Module} from './Module';
|
||||||
|
|
||||||
export class Modules extends ClassArray<Module> {
|
export class Modules extends ClassArray<Module> {
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {keyActionType, KeyActionId, KeyAction} from './KeyAction';
|
|
||||||
import {UhkBuffer} from '../UhkBuffer';
|
|
||||||
import {assertEnum} from '../assert';
|
import {assertEnum} from '../assert';
|
||||||
|
import {UhkBuffer} from '../UhkBuffer';
|
||||||
|
import {KeyAction, KeyActionId, keyActionType} from './KeyAction';
|
||||||
|
|
||||||
export enum MouseActionParam {
|
export enum MouseActionParam {
|
||||||
leftClick,
|
leftClick,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {MacroAction, macroActionType, MacroActionId} from './MacroAction';
|
|
||||||
import {UhkBuffer} from '../UhkBuffer';
|
|
||||||
import {assertInt16} from '../assert';
|
import {assertInt16} from '../assert';
|
||||||
|
import {UhkBuffer} from '../UhkBuffer';
|
||||||
|
import {MacroAction, MacroActionId, macroActionType} from './MacroAction';
|
||||||
|
|
||||||
export class MoveMouseMacroAction extends MacroAction {
|
export class MoveMouseMacroAction extends MacroAction {
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import {keyActionType, KeyActionId, KeyAction} from './KeyAction';
|
|
||||||
import {UhkBuffer} from '../UhkBuffer';
|
import {UhkBuffer} from '../UhkBuffer';
|
||||||
|
import {KeyAction, KeyActionId, keyActionType} from './KeyAction';
|
||||||
|
|
||||||
export class NoneAction extends KeyAction {
|
export class NoneAction extends KeyAction {
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {keyActionType, KeyActionId, KeyAction} from './KeyAction';
|
|
||||||
import {UhkBuffer} from '../UhkBuffer';
|
|
||||||
import {assertUInt8} from '../assert';
|
import {assertUInt8} from '../assert';
|
||||||
|
import {UhkBuffer} from '../UhkBuffer';
|
||||||
|
import {KeyAction, KeyActionId, keyActionType} from './KeyAction';
|
||||||
|
|
||||||
export class PlayMacroAction extends KeyAction {
|
export class PlayMacroAction extends KeyAction {
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {MacroAction, MacroActionId, macroActionType} from './MacroAction';
|
|
||||||
import {UhkBuffer} from '../UhkBuffer';
|
|
||||||
import {assertUInt8} from '../assert';
|
import {assertUInt8} from '../assert';
|
||||||
|
import {UhkBuffer} from '../UhkBuffer';
|
||||||
|
import {MacroAction, MacroActionId, macroActionType} from './MacroAction';
|
||||||
|
|
||||||
export class PressKeyMacroAction extends MacroAction {
|
export class PressKeyMacroAction extends MacroAction {
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import {MacroAction, MacroActionId, macroActionType} from './MacroAction';
|
|
||||||
import {KeyModifiers} from './KeyModifiers';
|
|
||||||
import {UhkBuffer} from '../UhkBuffer';
|
|
||||||
import {assertUInt8} from '../assert';
|
import {assertUInt8} from '../assert';
|
||||||
|
import {UhkBuffer} from '../UhkBuffer';
|
||||||
|
import {KeyModifiers} from './KeyModifiers';
|
||||||
|
import {MacroAction, MacroActionId, macroActionType} from './MacroAction';
|
||||||
|
|
||||||
export class PressModifiersMacroAction extends MacroAction {
|
export class PressModifiersMacroAction extends MacroAction {
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {MacroAction, MacroActionId, macroActionType} from './MacroAction';
|
|
||||||
import {UhkBuffer} from '../UhkBuffer';
|
|
||||||
import {assertUInt8} from '../assert';
|
import {assertUInt8} from '../assert';
|
||||||
|
import {UhkBuffer} from '../UhkBuffer';
|
||||||
|
import {MacroAction, MacroActionId, macroActionType} from './MacroAction';
|
||||||
|
|
||||||
export class PressMouseButtonsMacroAction extends MacroAction {
|
export class PressMouseButtonsMacroAction extends MacroAction {
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {MacroAction, MacroActionId, macroActionType} from './MacroAction';
|
|
||||||
import {UhkBuffer} from '../UhkBuffer';
|
|
||||||
import {assertUInt8} from '../assert';
|
import {assertUInt8} from '../assert';
|
||||||
|
import {UhkBuffer} from '../UhkBuffer';
|
||||||
|
import {MacroAction, MacroActionId, macroActionType} from './MacroAction';
|
||||||
|
|
||||||
export class ReleaseKeyMacroAction extends MacroAction {
|
export class ReleaseKeyMacroAction extends MacroAction {
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import {MacroAction, MacroActionId, macroActionType} from './MacroAction';
|
|
||||||
import {KeyModifiers} from './KeyModifiers';
|
|
||||||
import {UhkBuffer} from '../UhkBuffer';
|
|
||||||
import {assertUInt8} from '../assert';
|
import {assertUInt8} from '../assert';
|
||||||
|
import {UhkBuffer} from '../UhkBuffer';
|
||||||
|
import {KeyModifiers} from './KeyModifiers';
|
||||||
|
import {MacroAction, MacroActionId, macroActionType} from './MacroAction';
|
||||||
|
|
||||||
export class ReleaseModifiersMacroAction extends MacroAction {
|
export class ReleaseModifiersMacroAction extends MacroAction {
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {MacroAction, MacroActionId, macroActionType} from './MacroAction';
|
|
||||||
import {UhkBuffer} from '../UhkBuffer';
|
|
||||||
import {assertUInt8} from '../assert';
|
import {assertUInt8} from '../assert';
|
||||||
|
import {UhkBuffer} from '../UhkBuffer';
|
||||||
|
import {MacroAction, MacroActionId, macroActionType} from './MacroAction';
|
||||||
|
|
||||||
export class ReleaseMouseButtonsMacroAction extends MacroAction {
|
export class ReleaseMouseButtonsMacroAction extends MacroAction {
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {MacroAction, MacroActionId, macroActionType} from './MacroAction';
|
|
||||||
import {UhkBuffer} from '../UhkBuffer';
|
|
||||||
import {assertInt16} from '../assert';
|
import {assertInt16} from '../assert';
|
||||||
|
import {UhkBuffer} from '../UhkBuffer';
|
||||||
|
import {MacroAction, MacroActionId, macroActionType} from './MacroAction';
|
||||||
|
|
||||||
export class ScrollMouseMacroAction extends MacroAction {
|
export class ScrollMouseMacroAction extends MacroAction {
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {keyActionType, KeyActionId, KeyAction} from './KeyAction';
|
|
||||||
import {UhkBuffer} from '../UhkBuffer';
|
|
||||||
import {assertUInt8} from '../assert';
|
import {assertUInt8} from '../assert';
|
||||||
|
import {UhkBuffer} from '../UhkBuffer';
|
||||||
|
import {KeyAction, KeyActionId, keyActionType} from './KeyAction';
|
||||||
|
|
||||||
export class SwitchKeymapAction extends KeyAction {
|
export class SwitchKeymapAction extends KeyAction {
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {keyActionType, KeyActionId, KeyAction} from './KeyAction';
|
|
||||||
import {UhkBuffer} from '../UhkBuffer';
|
|
||||||
import {assertEnum} from '../assert';
|
import {assertEnum} from '../assert';
|
||||||
|
import {UhkBuffer} from '../UhkBuffer';
|
||||||
|
import {KeyAction, KeyActionId, keyActionType} from './KeyAction';
|
||||||
|
|
||||||
export enum LayerName {
|
export enum LayerName {
|
||||||
mod,
|
mod,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import {MacroAction, MacroActionId, macroActionType} from './MacroAction';
|
|
||||||
import {UhkBuffer} from '../UhkBuffer';
|
import {UhkBuffer} from '../UhkBuffer';
|
||||||
|
import {MacroAction, MacroActionId, macroActionType} from './MacroAction';
|
||||||
|
|
||||||
export class TextMacroAction extends MacroAction {
|
export class TextMacroAction extends MacroAction {
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
|
import {assertUInt32, assertUInt8} from '../assert';
|
||||||
import {Serializable} from '../Serializable';
|
import {Serializable} from '../Serializable';
|
||||||
import {ModuleConfigurations} from './ModuleConfigurations';
|
import {UhkBuffer} from '../UhkBuffer';
|
||||||
import {Keymap} from './Keymap';
|
import {Keymap} from './Keymap';
|
||||||
import {Keymaps} from './Keymaps';
|
import {Keymaps} from './Keymaps';
|
||||||
import {Macro} from './Macro';
|
import {Macro} from './Macro';
|
||||||
import {Macros} from './Macros';
|
import {Macros} from './Macros';
|
||||||
import {UhkBuffer} from '../UhkBuffer';
|
import {ModuleConfigurations} from './ModuleConfigurations';
|
||||||
import {assertUInt8, assertUInt32} from '../assert';
|
|
||||||
|
|
||||||
export class UhkConfiguration extends Serializable<UhkConfiguration> {
|
export class UhkConfiguration extends Serializable<UhkConfiguration> {
|
||||||
|
|
||||||
|
|||||||
@@ -1,13 +1,14 @@
|
|||||||
import { ModuleWithProviders } from '@angular/core';
|
import { ModuleWithProviders } from '@angular/core';
|
||||||
import { Routes, RouterModule } from '@angular/router';
|
import { RouterModule, Routes } from '@angular/router';
|
||||||
|
|
||||||
import { keymapRoutes } from '../components/keymap';
|
import { keymapRoutes } from '../components/keymap';
|
||||||
import { macroRoutes } from '../components/macro';
|
|
||||||
import { legacyRoutes } from '../components/legacy-loader';
|
import { legacyRoutes } from '../components/legacy-loader';
|
||||||
|
import { macroRoutes } from '../components/macro';
|
||||||
|
|
||||||
const appRoutes: Routes = [
|
const appRoutes: Routes = [
|
||||||
...keymapRoutes,
|
...keymapRoutes,
|
||||||
...macroRoutes,
|
...legacyRoutes,
|
||||||
...legacyRoutes
|
...macroRoutes
|
||||||
];
|
];
|
||||||
|
|
||||||
export const appRoutingProviders: any[] = [ ];
|
export const appRoutingProviders: any[] = [ ];
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import {DataProviderService} from './data-provider.service';
|
|
||||||
|
|
||||||
import {UhkConfiguration} from '../config-serializer/config-items/UhkConfiguration';
|
import {UhkConfiguration} from '../config-serializer/config-items/UhkConfiguration';
|
||||||
|
|
||||||
|
import {DataProviderService} from './data-provider.service';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class UhkConfigurationService {
|
export class UhkConfigurationService {
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
import {UhkConfiguration} from '../src/config-serializer/config-items/UhkConfiguration';
|
||||||
import {Serializable} from '../src/config-serializer/Serializable';
|
import {Serializable} from '../src/config-serializer/Serializable';
|
||||||
import {UhkBuffer} from '../src/config-serializer/UhkBuffer';
|
import {UhkBuffer} from '../src/config-serializer/UhkBuffer';
|
||||||
import {UhkConfiguration} from '../src/config-serializer/config-items/UhkConfiguration';
|
|
||||||
|
|
||||||
let assert = require('assert');
|
let assert = require('assert');
|
||||||
let fs = require('fs');
|
let fs = require('fs');
|
||||||
|
|||||||
15
tslint.json
15
tslint.json
@@ -8,6 +8,7 @@
|
|||||||
],
|
],
|
||||||
"no-inferrable-types": true,
|
"no-inferrable-types": true,
|
||||||
"no-internal-module": true,
|
"no-internal-module": true,
|
||||||
|
"class-name": true,
|
||||||
"curly": true,
|
"curly": true,
|
||||||
"no-construct": true,
|
"no-construct": true,
|
||||||
"no-duplicate-key": true,
|
"no-duplicate-key": true,
|
||||||
@@ -22,7 +23,9 @@
|
|||||||
"no-unused-variable": [
|
"no-unused-variable": [
|
||||||
true,
|
true,
|
||||||
"check-parameters",
|
"check-parameters",
|
||||||
{"ignore-pattern": "assert.*|keyActionType"}
|
{
|
||||||
|
"ignore-pattern": "assert.*|keyActionType"
|
||||||
|
}
|
||||||
],
|
],
|
||||||
"no-use-before-declare": true,
|
"no-use-before-declare": true,
|
||||||
"no-var-keyword": true,
|
"no-var-keyword": true,
|
||||||
@@ -40,7 +43,8 @@
|
|||||||
],
|
],
|
||||||
"no-trailing-whitespace": true,
|
"no-trailing-whitespace": true,
|
||||||
"trailing-comma": [
|
"trailing-comma": [
|
||||||
true, {
|
true,
|
||||||
|
{
|
||||||
"multiline": "never",
|
"multiline": "never",
|
||||||
"singleline": "never"
|
"singleline": "never"
|
||||||
}
|
}
|
||||||
@@ -62,7 +66,12 @@
|
|||||||
"check-open-brace",
|
"check-open-brace",
|
||||||
"check-whitespace"
|
"check-whitespace"
|
||||||
],
|
],
|
||||||
|
"ordered-imports": [
|
||||||
|
true,
|
||||||
|
{
|
||||||
|
"named-imports-order": "lowercase-last"
|
||||||
|
}
|
||||||
|
],
|
||||||
"quotemark": [
|
"quotemark": [
|
||||||
true,
|
true,
|
||||||
"single"
|
"single"
|
||||||
|
|||||||
Reference in New Issue
Block a user