Skip to content
Snippets Groups Projects
Commit 98371106 authored by chris's avatar chris
Browse files

more cleanup

parent df35e52f
No related branches found
No related tags found
1 merge request!215set id
Showing
with 2 additions and 122 deletions
......@@ -35,8 +35,6 @@ import {
HighlightService,
TextHighlightToolGroupServices,
EditorInfoToolGroupServices,
ShortcutToolGroupServices,
HelpToolGroupServices,
CounterInfoService,
BottomInfoService,
TransformService,
......@@ -158,8 +156,6 @@ export default {
new EditorInfoToolGroupServices(),
new CounterInfoService(),
new BottomInfoService(),
new ShortcutToolGroupServices(),
new HelpToolGroupServices(),
new TransformService(),
new TransformToolGroupService(),
],
......
......@@ -29,8 +29,6 @@ import {
HighlightService,
TextHighlightToolGroupServices,
EditorInfoToolGroupServices,
ShortcutToolGroupServices,
HelpToolGroupServices,
CounterInfoService,
BottomInfoService,
TransformService,
......@@ -121,8 +119,6 @@ export default {
new EditorInfoToolGroupServices(),
new CounterInfoService(),
new BottomInfoService(),
new ShortcutToolGroupServices(),
new HelpToolGroupServices(),
new TransformService(),
new TransformToolGroupService(),
],
......
......@@ -56,6 +56,4 @@ export { default as FullScreenToolGroupService } from './src/WaxToolGroups/FullS
export { default as SpecialCharactersToolGroupService } from './src/WaxToolGroups/SpecialCharactersToolGroupService/SpecialCharactersToolGroupService';
export { default as TextHighlightToolGroupServices } from './src/WaxToolGroups/TextHighlightToolGroupService/TextHighlightToolGroupService';
export { default as EditorInfoToolGroupServices } from './src/WaxToolGroups/BottomToolGroupService/InfoToolGroupService/EditorInfoToolGroupService';
export { default as ShortcutToolGroupServices } from './src/WaxToolGroups/BottomToolGroupService/ShotcutToolGroupService/ShortcutToolGroupService';
export {default as HelpToolGroupServices} from './src/WaxToolGroups/BottomToolGroupService/HelpToolGroupService/HelpToolGroupService';
export { default as TransformToolGroupService } from './src/WaxToolGroups/TransformToolGroupService/TransformToolGroupService';
import Service from '../../Service'
import HelpTool from './HelpTool';
export default class HelpService extends Service {
register() {
this.container.bind('HelpTool').to(HelpTool);
}
}
import { injectable } from 'inversify';
// eslint-disable-next-line import/no-named-as-default,import/no-named-as-default-member
import Tools from '../../lib/Tools';
@injectable()
class HelpTool extends Tools {
title = 'Help';
icon = 'help';
name = 'HelpTool';
get run() {
return () => true;
}
}
export default HelpTool;
\ No newline at end of file
import Service from '../../Service'
import ShortcutTool from './ShortcutTool';
export default class ShortcutService extends Service {
register() {
this.container.bind('ShortcutTool').to(ShortcutTool);
}
}
import { injectable } from 'inversify';
// eslint-disable-next-line import/no-named-as-default,import/no-named-as-default-member
import Tools from '../../lib/Tools';
@injectable()
class ShortcutTool extends Tools {
title = 'Shortcut';
icon = 'fullScreen';
name = 'Shortcut';
get run() {
return () => true;
}
}
export default ShortcutTool;
\ No newline at end of file
import ShortcutService from './ShortcutService/ShortcutService';
import HelpService from './HelpService/HelpService'
export default [new ShortcutService(),new HelpService()];
\ No newline at end of file
export default [];
import { injectable, inject } from 'inversify';
import ToolGroup from '../../../lib/ToolGroup';
@injectable()
class HelpToolGroup extends ToolGroup {
tools = [];
constructor(
@inject('HelpTool') helptool,
) {
super();
this.tools = [helptool];
}
}
export default HelpToolGroup;
\ No newline at end of file
import Service from '../../../Service';
// eslint-disable-next-line import/no-named-as-default,import/no-named-as-default-member
import HelpToolGroup from './HelpTool';
class HelpToolGroupServices extends Service {
name = "HelpToolGroupServices";
register(){
this.container.bind('HelpToolGroup').to(HelpToolGroup);
}
}
export default HelpToolGroupServices;
\ No newline at end of file
......@@ -4,11 +4,7 @@ import ToolGroup from '../../../lib/ToolGroup';
@injectable()
class InfoToolGroup extends ToolGroup {
tools = [];
constructor(
@inject('CounterInfoTool') counterinfotool,
@inject('ShortcutTool') shortcuttools,
@inject('HelpTool') helptool,
) {
constructor(@inject('CounterInfoTool') counterinfotool) {
super();
this.tools = [counterinfotool];
}
......
import { injectable, inject } from 'inversify';
import ToolGroup from '../../../lib/ToolGroup';
@injectable()
class ShortcutToolGroup extends ToolGroup {
tools = [];
constructor(
@inject('ShortcutTool') shortcuttool,
) {
super();
this.tools = [shortcuttool];
}
}
export default ShortcutToolGroup;
\ No newline at end of file
import Service from '../../../Service';
// eslint-disable-next-line import/no-named-as-default,import/no-named-as-default-member
import ShortcutToolGroup from './ShortcutTool';
class ShortcutToolGroupServices extends Service {
name = "ShortcutToolGroupServices";
register(){
this.container.bind('ShortcutToolGroup').to(ShortcutToolGroup);
}
}
export default ShortcutToolGroupServices;
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment