refactor: Remove moduleIds
This commit is contained in:
@@ -27,7 +27,6 @@ enum TabName {
|
||||
}
|
||||
|
||||
@Component({
|
||||
moduleId: module.id,
|
||||
selector: 'popover',
|
||||
template: require('./popover.component.html'),
|
||||
styles: [require('./popover.component.scss')],
|
||||
|
||||
@@ -10,7 +10,6 @@ import {SwitchKeymapAction} from '../../../../config-serializer/config-items/Swi
|
||||
import {Select2Component, Select2OptionData} from 'ng2-select2/ng2-select2';
|
||||
|
||||
@Component({
|
||||
moduleId: module.id,
|
||||
selector: 'keymap-tab',
|
||||
template: require('./keymap-tab.component.html'),
|
||||
styles: [require('./keymap-tab.component.scss')],
|
||||
|
||||
@@ -10,7 +10,6 @@ import {CaptureKeystrokeButtonComponent} from '../../widgets/capture-keystroke';
|
||||
import {Tab} from '../tab';
|
||||
|
||||
@Component({
|
||||
moduleId: module.id,
|
||||
selector: 'keypress-tab',
|
||||
template: require('./keypress-tab.component.html'),
|
||||
styles: [require('./keypress-tab.component.scss')],
|
||||
|
||||
@@ -9,7 +9,6 @@ import {Select2Component, Select2OptionData} from 'ng2-select2/ng2-select2';
|
||||
import {Tab} from '../tab';
|
||||
|
||||
@Component({
|
||||
moduleId: module.id,
|
||||
selector: 'layer-tab',
|
||||
template: require('./layer-tab.component.html'),
|
||||
styles: [require('./layer-tab.component.scss')],
|
||||
|
||||
@@ -14,7 +14,6 @@ import {IconComponent} from '../../widgets/icon';
|
||||
import {KeyModifiers} from '../../../../config-serializer/config-items/KeyModifiers';
|
||||
|
||||
@Component({
|
||||
moduleId: module.id,
|
||||
selector: 'macro-item',
|
||||
template: require('./macro-item.component.html'),
|
||||
styles: [require('./macro-item.component.scss')],
|
||||
|
||||
@@ -11,7 +11,6 @@ import {MacroItemComponent} from './macro-item.component';
|
||||
import {Select2Component, Select2OptionData} from 'ng2-select2/ng2-select2';
|
||||
|
||||
@Component({
|
||||
moduleId: module.id,
|
||||
selector: 'macro-tab',
|
||||
template: require('./macro-tab.component.html'),
|
||||
styles: [require('./macro-tab.component.scss')],
|
||||
|
||||
@@ -6,7 +6,6 @@ import {KeyAction} from '../../../../config-serializer/config-items/KeyAction';
|
||||
import {MouseAction, MouseActionParam} from '../../../../config-serializer/config-items/MouseAction';
|
||||
|
||||
@Component({
|
||||
moduleId: module.id,
|
||||
selector: 'mouse-tab',
|
||||
template: require('./mouse-tab.component.html'),
|
||||
styles: [require('./mouse-tab.component.scss')],
|
||||
|
||||
@@ -4,7 +4,6 @@ import {Tab} from '../tab';
|
||||
import {NoneAction} from '../../../../config-serializer/config-items/NoneAction';
|
||||
|
||||
@Component({
|
||||
moduleId: module.id,
|
||||
selector: 'none-tab',
|
||||
template: require('./none-tab.component.html'),
|
||||
styles: [require('./none-tab.component.scss')]
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
moduleId: module.id,
|
||||
selector: 'capture-keystroke-button',
|
||||
template: require('./capture-keystroke-button.component.html'),
|
||||
styles: [require('./capture-keystroke-button.component.scss')]
|
||||
|
||||
@@ -2,7 +2,6 @@ import { Component, OnInit, Input } from '@angular/core';
|
||||
import { NgSwitch, NgSwitchCase } from '@angular/common';
|
||||
|
||||
@Component({
|
||||
moduleId: module.id,
|
||||
selector: 'icon',
|
||||
template: require('./icon.component.html'),
|
||||
styles: [require('./icon.component.scss')],
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { Component, OnInit, Input } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
moduleId: module.id,
|
||||
selector: 'g[svg-icon-text-key]',
|
||||
template: require('./svg-icon-text-key.component.html')
|
||||
})
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { Component, OnInit, Input } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
moduleId: module.id,
|
||||
selector: 'g[svg-one-line-text-key]',
|
||||
template: require('./svg-one-line-text-key.component.html')
|
||||
})
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { Component, OnInit, Input } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
moduleId: module.id,
|
||||
selector: 'g[svg-single-icon-key]',
|
||||
template: require('./svg-single-icon-key.component.html')
|
||||
})
|
||||
|
||||
@@ -3,7 +3,6 @@ import { Component, OnInit, Input } from '@angular/core';
|
||||
import {MapperService} from '../../../../services/mapper.service';
|
||||
|
||||
@Component({
|
||||
moduleId: module.id,
|
||||
selector: 'g[svg-switch-keymap-key]',
|
||||
template: require('./svg-switch-keymap-key.component.html')
|
||||
})
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { Component, OnInit, Input } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
moduleId: module.id,
|
||||
selector: 'g[svg-text-icon-key]',
|
||||
template: require('./svg-text-icon-key.component.html')
|
||||
})
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { Component, OnInit, Input } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
moduleId: module.id,
|
||||
selector: 'g[svg-two-line-text-key]',
|
||||
template: require('./svg-two-line-text-key.component.html')
|
||||
})
|
||||
|
||||
@@ -4,7 +4,6 @@ import { ROUTER_DIRECTIVES } from '@angular/router';
|
||||
import { SideMenuComponent } from '../components/side-menu';
|
||||
|
||||
@Component({
|
||||
moduleId: module.id,
|
||||
selector: 'main-app',
|
||||
template: require('./main-app.component.html'),
|
||||
styles: [require('./main-app.component.scss')],
|
||||
|
||||
@@ -18,17 +18,6 @@ module.exports = {
|
||||
modulesDirectories: ['node_modules']
|
||||
},
|
||||
module: {
|
||||
preLoaders: [
|
||||
{
|
||||
test: /(.js|.ts)$/,
|
||||
loader: 'string-replace-loader',
|
||||
query: {
|
||||
search: 'moduleId: module.id,',
|
||||
replace: '',
|
||||
flags: 'g'
|
||||
}
|
||||
}
|
||||
],
|
||||
loaders: [
|
||||
{ test: /\.ts$/, loader: 'ts-loader', exclude: /node_modules/ },
|
||||
{ test: /\.html$/, loader: 'html-loader' },
|
||||
|
||||
Reference in New Issue
Block a user