mirror of https://github.com/vizality/vizality
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
489 B
20 lines
489 B
import { Builtin } from '@vizality/entities';
|
|
|
|
import * as commands from './commands';
|
|
import * as i18n from './i18n';
|
|
|
|
export default class AddonsManager extends Builtin {
|
|
start () {
|
|
this.injectStyles('styles/main.scss');
|
|
vizality.api.i18n.injectAllStrings(i18n);
|
|
|
|
commands.registerCommands('plugin');
|
|
commands.registerCommands('theme');
|
|
}
|
|
|
|
stop () {
|
|
vizality.api.commands.unregisterCommand('plugin');
|
|
vizality.api.commands.unregisterCommand('theme');
|
|
}
|
|
}
|