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 { 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 { 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 { MacroComponent } from './components/macro';
|
||||
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 {
|
||||
SvgIconTextKeyComponent,
|
||||
SvgKeyboardKeyComponent,
|
||||
@@ -22,24 +34,12 @@ import {
|
||||
SvgTextIconKeyComponent,
|
||||
SvgTwoLineTextKeyComponent
|
||||
} 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 { PopoverComponent } from './components/popover';
|
||||
import { KeymapAddComponent } from './components/keymap';
|
||||
import { MacroItemComponent } from './components/popover/tab/macro';
|
||||
import { SideMenuComponent } from './components/side-menu';
|
||||
import {
|
||||
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';
|
||||
import { SvgKeyboardWrapComponent } from './components/svg/wrap';
|
||||
|
||||
import { DataProviderService } from './services/data-provider.service';
|
||||
import { MapperService } from './services/mapper.service';
|
||||
import {UhkConfigurationService} from './services/uhk-configuration.service';
|
||||
|
||||
@NgModule({
|
||||
declarations: [
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
||||
|
||||
import { AppModule } from './app.module';
|
||||
|
||||
process.stdout = require('browser-stdout')();
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
import { Keymap } from '../../../config-serializer/config-items/Keymap';
|
||||
import { Keymaps } from '../../../config-serializer/config-items/Keymaps';
|
||||
import {DataProviderService} from '../../../services/data-provider.service';
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
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 { UhkConfigurationService } from '../../services/uhk-configuration.service';
|
||||
import { Keymap } from '../../config-serializer/config-items/Keymap';
|
||||
import { Subscription } from 'rxjs/Subscription';
|
||||
|
||||
@Component({
|
||||
selector: 'keymap',
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { Routes } from '@angular/router';
|
||||
import { KeymapComponent } from './keymap.component';
|
||||
|
||||
import { KeymapAddComponent } from './add/keymap-add.component';
|
||||
import { KeymapComponent } from './keymap.component';
|
||||
|
||||
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({
|
||||
selector: 'layers',
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { Routes } from '@angular/router';
|
||||
|
||||
import {LegacyLoaderComponent} from './legacy-loader.component';
|
||||
|
||||
export const legacyRoutes: Routes = [
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { Routes } from '@angular/router';
|
||||
|
||||
import { MacroComponent } from './macro.component';
|
||||
|
||||
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 {Tab} from './tab/tab';
|
||||
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 {PlayMacroAction} from '../../config-serializer/config-items/PlayMacroAction';
|
||||
import {SwitchKeymapAction} from '../../config-serializer/config-items/SwitchKeymapAction';
|
||||
import {SwitchLayerAction} from '../../config-serializer/config-items/SwitchLayerAction';
|
||||
import {Tab} from './tab/tab';
|
||||
|
||||
enum TabName {
|
||||
Keypress,
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
import {Component, OnInit, Input} 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 {Component, Input, OnInit } from '@angular/core';
|
||||
|
||||
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({
|
||||
selector: 'keymap-tab',
|
||||
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';
|
||||
|
||||
|
||||
@@ -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 {LayerName, SwitchLayerAction} from '../../../../config-serializer/config-items/SwitchLayerAction';
|
||||
|
||||
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 {HoldModifiersMacroAction} from '../../../../config-serializer/config-items/HoldModifiersMacroAction';
|
||||
import {MacroAction} from '../../../../config-serializer/config-items/MacroAction';
|
||||
import {MoveMouseMacroAction} from '../../../../config-serializer/config-items/MoveMouseMacroAction';
|
||||
import {PressModifiersMacroAction} from '../../../../config-serializer/config-items/PressModifiersMacroAction';
|
||||
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 {Macro} from '../../../../config-serializer/config-items/Macro';
|
||||
import {PlayMacroAction} from '../../../../config-serializer/config-items/PlayMacroAction';
|
||||
|
||||
import {Tab} from '../tab';
|
||||
|
||||
import {Select2OptionData} from 'ng2-select2/ng2-select2';
|
||||
import {UhkConfigurationService} from '../../../../services/uhk-configuration.service';
|
||||
|
||||
@Component({
|
||||
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 {MouseAction, MouseActionParam} from '../../../../config-serializer/config-items/MouseAction';
|
||||
|
||||
import {Tab} from '../tab';
|
||||
|
||||
@Component({
|
||||
selector: 'mouse-tab',
|
||||
template: require('./mouse-tab.component.html'),
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import {Component, OnInit } from '@angular/core';
|
||||
|
||||
import {Tab} from '../tab';
|
||||
import {NoneAction} from '../../../../config-serializer/config-items/NoneAction';
|
||||
import {Tab} from '../tab';
|
||||
|
||||
@Component({
|
||||
selector: 'none-tab',
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Component, OnInit, Input } from '@angular/core';
|
||||
import { Component, Input, OnInit } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'icon',
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
|
||||
import { Keymap } from '../../config-serializer/config-items/Keymap';
|
||||
import { UhkConfigurationService } from '../../services/uhk-configuration.service';
|
||||
import { Macro } from '../../config-serializer/config-items/Macro';
|
||||
|
||||
import { UhkConfigurationService } from '../../services/uhk-configuration.service';
|
||||
|
||||
@Component({
|
||||
selector: 'side-menu',
|
||||
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 {SvgModule} from '../module';
|
||||
|
||||
import {DataProviderService} from '../../../services/data-provider.service';
|
||||
|
||||
@Component({
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Component, OnInit, Input } from '@angular/core';
|
||||
import { Component, Input, OnInit } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
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 {KeystrokeAction} from '../../../../config-serializer/config-items/KeystrokeAction';
|
||||
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 {SwitchLayerAction, LayerName} from '../../../../config-serializer/config-items/SwitchLayerAction';
|
||||
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 {UhkConfigurationService} from '../../../../services/uhk-configuration.service';
|
||||
|
||||
import {MapperService} from '../../../../services/mapper.service';
|
||||
import {UhkConfigurationService} from '../../../../services/uhk-configuration.service';
|
||||
|
||||
enum LabelTypes {
|
||||
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 { KeystrokeAction } from '../../../../config-serializer/config-items/KeystrokeAction';
|
||||
import { MapperService } from '../../../../services/mapper.service';
|
||||
|
||||
class SvgAttributes {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Component, OnInit, Input } from '@angular/core';
|
||||
import { Component, Input, OnInit } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
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({
|
||||
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';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Component, OnInit, Input } from '@angular/core';
|
||||
import { Component, Input, OnInit } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
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({
|
||||
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 {KeyAction} from '../../../config-serializer/config-items/KeyAction';
|
||||
|
||||
@Component({
|
||||
selector: 'g[svg-module]',
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {
|
||||
Component, Input, OnInit, style,
|
||||
state, animate, transition, trigger, OnChanges
|
||||
Component, Input, OnChanges, OnInit, animate,
|
||||
state, style, transition, trigger
|
||||
} from '@angular/core';
|
||||
|
||||
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 {UhkBuffer} from '../UhkBuffer';
|
||||
import {MacroAction, MacroActionId, macroActionType} from './MacroAction';
|
||||
|
||||
export class DelayMacroAction extends MacroAction {
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {assertUInt8} from '../assert';
|
||||
import {UhkBuffer} from '../UhkBuffer';
|
||||
import {MacroAction, MacroActionId, macroActionType} from './MacroAction';
|
||||
import {assertUInt8} from '../assert';
|
||||
|
||||
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 {UhkBuffer} from '../UhkBuffer';
|
||||
import {KeyModifiers} from './KeyModifiers';
|
||||
import {MacroAction, MacroActionId, macroActionType} from './MacroAction';
|
||||
|
||||
export class HoldModifiersMacroAction extends MacroAction {
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {assertUInt8} from '../assert';
|
||||
import {UhkBuffer} from '../UhkBuffer';
|
||||
import {MacroAction, MacroActionId, macroActionType} from './MacroAction';
|
||||
import {assertUInt8} from '../assert';
|
||||
|
||||
export class HoldMouseButtonsMacroAction extends MacroAction {
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import {ClassArray} from '../ClassArray';
|
||||
import {UhkBuffer} from '../UhkBuffer';
|
||||
import {NoneAction} from './NoneAction';
|
||||
import {KeyAction, KeyActionId, keyActionType} from './KeyAction';
|
||||
import {KeystrokeAction} from './KeystrokeAction';
|
||||
import {keyActionType, KeyActionId, KeyAction} from './KeyAction';
|
||||
import {SwitchLayerAction} from './SwitchLayerAction';
|
||||
import {SwitchKeymapAction} from './SwitchKeymapAction';
|
||||
import {MouseAction} from './MouseAction';
|
||||
import {NoneAction} from './NoneAction';
|
||||
import {PlayMacroAction} from './PlayMacroAction';
|
||||
import {SwitchKeymapAction} from './SwitchKeymapAction';
|
||||
import {SwitchLayerAction} from './SwitchLayerAction';
|
||||
|
||||
export class KeyActions extends ClassArray<KeyAction> {
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import {assertUInt8} from '../assert';
|
||||
import {Serializable} from '../Serializable';
|
||||
import {UhkBuffer} from '../UhkBuffer';
|
||||
import {Layers} from './Layers';
|
||||
import {assertUInt8} from '../assert';
|
||||
|
||||
export class Keymap extends Serializable<Keymap> {
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import {assertEnum, assertUInt8} from '../assert';
|
||||
import {UhkBuffer} from '../UhkBuffer';
|
||||
import {keyActionType, KeyActionId, KeyAction} from './KeyAction';
|
||||
import {KeyAction, KeyActionId, keyActionType} from './KeyAction';
|
||||
import {KeyModifiers} from './KeyModifiers';
|
||||
import {assertUInt8, assertEnum} from '../assert';
|
||||
import {LongPressAction} from './LongPressAction';
|
||||
|
||||
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 { Serializable } from '../Serializable';
|
||||
import { UhkBuffer } from '../UhkBuffer';
|
||||
import { Modules } from './Modules';
|
||||
|
||||
export class Layer extends Serializable<Layer> {
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import {assertUInt8} from '../assert';
|
||||
import {Serializable} from '../Serializable';
|
||||
import {UhkBuffer} from '../UhkBuffer';
|
||||
import {MacroActions} from './MacroActions';
|
||||
import {assertUInt8} from '../assert';
|
||||
|
||||
export class Macro extends Serializable<Macro> {
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import {ClassArray} from '../ClassArray';
|
||||
import {UhkBuffer} from '../UhkBuffer';
|
||||
import {DelayMacroAction} from './DelayMacroAction';
|
||||
import {MacroAction, macroActionType, MacroActionId} from './MacroAction';
|
||||
import {HoldKeyMacroAction} from './HoldKeyMacroAction';
|
||||
import {HoldModifiersMacroAction} from './HoldModifiersMacroAction';
|
||||
import {HoldMouseButtonsMacroAction} from './HoldMouseButtonsMacroAction';
|
||||
import {MacroAction, MacroActionId, macroActionType} from './MacroAction';
|
||||
import {MoveMouseMacroAction} from './MoveMouseMacroAction';
|
||||
import {PressKeyMacroAction} from './PressKeyMacroAction';
|
||||
import {PressModifiersMacroAction} from './PressModifiersMacroAction';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {ClassArray} from '../ClassArray';
|
||||
import {Macro} from './Macro';
|
||||
import {UhkBuffer} from '../UhkBuffer';
|
||||
import {Macro} from './Macro';
|
||||
|
||||
export class Macros extends ClassArray<Macro> {
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import {assertEnum, assertUInt8} from '../assert';
|
||||
import {Serializable} from '../Serializable';
|
||||
import {KeyActions} from './KeyActions';
|
||||
import {UhkBuffer} from '../UhkBuffer';
|
||||
import {assertUInt8, assertEnum} from '../assert';
|
||||
import {KeyActions} from './KeyActions';
|
||||
|
||||
enum PointerRole {
|
||||
none,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {assertUInt8} from '../assert';
|
||||
import {Serializable} from '../Serializable';
|
||||
import {UhkBuffer} from '../UhkBuffer';
|
||||
import {assertUInt8} from '../assert';
|
||||
|
||||
export class ModuleConfiguration extends Serializable<ModuleConfiguration> {
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {ClassArray} from '../ClassArray';
|
||||
import {ModuleConfiguration} from './ModuleConfiguration';
|
||||
import {UhkBuffer} from '../UhkBuffer';
|
||||
import {ModuleConfiguration} from './ModuleConfiguration';
|
||||
|
||||
export class ModuleConfigurations extends ClassArray<ModuleConfiguration> {
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {ClassArray} from '../ClassArray';
|
||||
import {Module} from './Module';
|
||||
import {UhkBuffer} from '../UhkBuffer';
|
||||
import {Module} from './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 {UhkBuffer} from '../UhkBuffer';
|
||||
import {KeyAction, KeyActionId, keyActionType} from './KeyAction';
|
||||
|
||||
export enum MouseActionParam {
|
||||
leftClick,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {MacroAction, macroActionType, MacroActionId} from './MacroAction';
|
||||
import {UhkBuffer} from '../UhkBuffer';
|
||||
import {assertInt16} from '../assert';
|
||||
import {UhkBuffer} from '../UhkBuffer';
|
||||
import {MacroAction, MacroActionId, macroActionType} from './MacroAction';
|
||||
|
||||
export class MoveMouseMacroAction extends MacroAction {
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {keyActionType, KeyActionId, KeyAction} from './KeyAction';
|
||||
import {UhkBuffer} from '../UhkBuffer';
|
||||
import {KeyAction, KeyActionId, keyActionType} from './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 {UhkBuffer} from '../UhkBuffer';
|
||||
import {KeyAction, KeyActionId, keyActionType} from './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 {UhkBuffer} from '../UhkBuffer';
|
||||
import {MacroAction, MacroActionId, macroActionType} from './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 {UhkBuffer} from '../UhkBuffer';
|
||||
import {KeyModifiers} from './KeyModifiers';
|
||||
import {MacroAction, MacroActionId, macroActionType} from './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 {UhkBuffer} from '../UhkBuffer';
|
||||
import {MacroAction, MacroActionId, macroActionType} from './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 {UhkBuffer} from '../UhkBuffer';
|
||||
import {MacroAction, MacroActionId, macroActionType} from './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 {UhkBuffer} from '../UhkBuffer';
|
||||
import {KeyModifiers} from './KeyModifiers';
|
||||
import {MacroAction, MacroActionId, macroActionType} from './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 {UhkBuffer} from '../UhkBuffer';
|
||||
import {MacroAction, MacroActionId, macroActionType} from './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 {UhkBuffer} from '../UhkBuffer';
|
||||
import {MacroAction, MacroActionId, macroActionType} from './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 {UhkBuffer} from '../UhkBuffer';
|
||||
import {KeyAction, KeyActionId, keyActionType} from './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 {UhkBuffer} from '../UhkBuffer';
|
||||
import {KeyAction, KeyActionId, keyActionType} from './KeyAction';
|
||||
|
||||
export enum LayerName {
|
||||
mod,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {MacroAction, MacroActionId, macroActionType} from './MacroAction';
|
||||
import {UhkBuffer} from '../UhkBuffer';
|
||||
import {MacroAction, MacroActionId, macroActionType} from './MacroAction';
|
||||
|
||||
export class TextMacroAction extends MacroAction {
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import {assertUInt32, assertUInt8} from '../assert';
|
||||
import {Serializable} from '../Serializable';
|
||||
import {ModuleConfigurations} from './ModuleConfigurations';
|
||||
import {UhkBuffer} from '../UhkBuffer';
|
||||
import {Keymap} from './Keymap';
|
||||
import {Keymaps} from './Keymaps';
|
||||
import {Macro} from './Macro';
|
||||
import {Macros} from './Macros';
|
||||
import {UhkBuffer} from '../UhkBuffer';
|
||||
import {assertUInt8, assertUInt32} from '../assert';
|
||||
import {ModuleConfigurations} from './ModuleConfigurations';
|
||||
|
||||
export class UhkConfiguration extends Serializable<UhkConfiguration> {
|
||||
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
import { ModuleWithProviders } from '@angular/core';
|
||||
import { Routes, RouterModule } from '@angular/router';
|
||||
import { RouterModule, Routes } from '@angular/router';
|
||||
|
||||
import { keymapRoutes } from '../components/keymap';
|
||||
import { macroRoutes } from '../components/macro';
|
||||
import { legacyRoutes } from '../components/legacy-loader';
|
||||
import { macroRoutes } from '../components/macro';
|
||||
|
||||
const appRoutes: Routes = [
|
||||
...keymapRoutes,
|
||||
...macroRoutes,
|
||||
...legacyRoutes
|
||||
...legacyRoutes,
|
||||
...macroRoutes
|
||||
];
|
||||
|
||||
export const appRoutingProviders: any[] = [ ];
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import {DataProviderService} from './data-provider.service';
|
||||
|
||||
import {UhkConfiguration} from '../config-serializer/config-items/UhkConfiguration';
|
||||
|
||||
import {DataProviderService} from './data-provider.service';
|
||||
|
||||
@Injectable()
|
||||
export class UhkConfigurationService {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user