Refactor: use index files and short import paths.
1
src/components/svg/keyboard/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from './svg-keyboard.component';
|
||||
@@ -1,8 +1,7 @@
|
||||
import { Component, OnInit, Input, Output, EventEmitter} from '@angular/core';
|
||||
|
||||
import {Module} from '../../../../config-serializer/config-items/Module';
|
||||
import {SvgModule} from '../module/svg-module.model';
|
||||
import {SvgModuleComponent} from '../module/svg-module.component';
|
||||
import {SvgModule, SvgModuleComponent} from '../module';
|
||||
import {DataProviderService} from '../../../services/data-provider.service';
|
||||
|
||||
@Component({
|
||||
|
||||
8
src/components/svg/keys/index.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
export { SvgIconTextKeyComponent } from './svg-icon-text-key';
|
||||
export { SvgKeyboardKeyComponent, SvgKeyboardKey } from './svg-keyboard-key';
|
||||
export { SvgKeystrokeKeyComponent } from './svg-keystroke-key';
|
||||
export { SvgOneLineTextKeyComponent } from './svg-one-line-text-key';
|
||||
export { SvgSingleIconKeyComponent } from './svg-single-icon-key';
|
||||
export { SvgSwitchKeymapKeyComponent } from './svg-switch-keymap-key';
|
||||
export { SvgTextIconKeyComponent } from './svg-text-icon-key';
|
||||
export { SvgTwoLineTextKeyComponent } from './svg-two-line-text-key';
|
||||
1
src/components/svg/keys/svg-icon-text-key/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from './svg-icon-text-key.component';
|
||||
|
Before Width: | Height: | Size: 331 B After Width: | Height: | Size: 331 B |
2
src/components/svg/keys/svg-keyboard-key/index.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from './svg-keyboard-key.component';
|
||||
export * from './svg-keyboard-key.model';
|
||||
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
@@ -1,19 +1,19 @@
|
||||
import { Component, OnInit, Input, OnChanges, 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 {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 {UhkConfiguration} from '../../../../config-serializer/config-items/UhkConfiguration';
|
||||
import {UhkConfigurationService} from '../../../services/uhk-configuration.service';
|
||||
import {MapperService} from '../../../services/mapper.service';
|
||||
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 {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 {UhkConfiguration} from '../../../../../config-serializer/config-items/UhkConfiguration';
|
||||
import {UhkConfigurationService} from '../../../../services/uhk-configuration.service';
|
||||
import {MapperService} from '../../../../services/mapper.service';
|
||||
|
||||
import {SvgSingleIconKeyComponent} from './svg-single-icon-key.component';
|
||||
import {SvgTextIconKeyComponent} from './svg-text-icon-key.component';
|
||||
import {SvgIconTextKeyComponent} from './svg-icon-text-key.component';
|
||||
import {SvgSwitchKeymapKeyComponent} from './svg-switch-keymap-key.component';
|
||||
import {SvgSingleIconKeyComponent} from '../svg-single-icon-key';
|
||||
import {SvgTextIconKeyComponent} from '../svg-text-icon-key';
|
||||
import {SvgIconTextKeyComponent} from '../svg-icon-text-key';
|
||||
import {SvgSwitchKeymapKeyComponent} from '../svg-switch-keymap-key';
|
||||
|
||||
enum LabelTypes {
|
||||
KeystrokeKey,
|
||||
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
1
src/components/svg/keys/svg-one-line-text-key/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from './svg-one-line-text-key.component';
|
||||
|
Before Width: | Height: | Size: 154 B After Width: | Height: | Size: 154 B |
1
src/components/svg/keys/svg-single-icon-key/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from './svg-single-icon-key.component';
|
||||
|
Before Width: | Height: | Size: 144 B After Width: | Height: | Size: 144 B |
1
src/components/svg/keys/svg-switch-keymap-key/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from './svg-switch-keymap-key.component';
|
||||
|
Before Width: | Height: | Size: 313 B After Width: | Height: | Size: 313 B |
@@ -1,6 +1,6 @@
|
||||
import { Component, OnInit, Input } from '@angular/core';
|
||||
|
||||
import {MapperService} from '../../../services/mapper.service';
|
||||
import {MapperService} from '../../../../services/mapper.service';
|
||||
|
||||
@Component({
|
||||
moduleId: module.id,
|
||||
1
src/components/svg/keys/svg-text-icon-key/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from './svg-text-icon-key.component';
|
||||
|
Before Width: | Height: | Size: 309 B After Width: | Height: | Size: 309 B |
1
src/components/svg/keys/svg-two-line-text-key/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from './svg-two-line-text-key.component';
|
||||
|
Before Width: | Height: | Size: 306 B After Width: | Height: | Size: 306 B |
2
src/components/svg/module/index.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from './svg-module.component';
|
||||
export * from './svg-module.model';
|
||||
@@ -1,7 +1,6 @@
|
||||
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
|
||||
|
||||
import {SvgKeyboardKey} from '../keys/svg-keyboard-key.model';
|
||||
import {SvgKeyboardKeyComponent} from '../keys/svg-keyboard-key.component';
|
||||
import { SvgKeyboardKey, SvgKeyboardKeyComponent } from '../keys';
|
||||
import {KeyAction} from '../../../../config-serializer/config-items/KeyAction';
|
||||
|
||||
@Component({
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {SvgKeyboardKey} from '../keys/svg-keyboard-key.model';
|
||||
import { SvgKeyboardKey } from '../keys';
|
||||
|
||||
export class SvgModule {
|
||||
private coverages: any[];
|
||||
|
||||
1
src/components/svg/popover/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from './svg-keyboard-popover.component';
|
||||
@@ -2,8 +2,8 @@ import { Component, OnInit, Input} from '@angular/core';
|
||||
|
||||
import {Module} from '../../../../config-serializer/config-items/Module';
|
||||
import {KeyAction} from '../../../../config-serializer/config-items/KeyAction';
|
||||
import {SvgKeyboardComponent} from '../keyboard/svg-keyboard.component';
|
||||
import {PopoverComponent} from '../../popover/popover.component';
|
||||
import {SvgKeyboardComponent} from '../keyboard';
|
||||
import {PopoverComponent} from '../../popover';
|
||||
|
||||
@Component({
|
||||
selector: 'svg-keyboard-popover',
|
||||
|
||||