Skip to content

Commit

Permalink
export VConsolePlugin class to public
Browse files Browse the repository at this point in the history
  • Loading branch information
Maizify committed Aug 17, 2019
1 parent dc4d8c6 commit cc5161e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 11 additions & 0 deletions src/core/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ import tplTopBarItem from './topbar_item.html';
import tplToolItem from './tool_item.html';

// built-in plugins
import VConsolePlugin from '../lib/plugin.js';
import VConsoleLogPlugin from '../log/log.js';
import VConsoleDefaultPlugin from '../log/default.js';
import VConsoleSystemPlugin from '../log/system.js';
import VConsoleNetworkPlugin from '../network/network.js';
Expand Down Expand Up @@ -736,4 +738,13 @@ class VConsole {

} // END class

// export static class
VConsole.VConsolePlugin = VConsolePlugin;
VConsole.VConsoleLogPlugin = VConsoleLogPlugin;
VConsole.VConsoleDefaultPlugin = VConsoleDefaultPlugin;
VConsole.VConsoleSystemPlugin = VConsoleSystemPlugin;
VConsole.VConsoleNetworkPlugin = VConsoleNetworkPlugin;
VConsole.VConsoleElementPlugin = VConsoleElementPlugin;
VConsole.VConsoleStoragePlugin = VConsoleStoragePlugin;

export default VConsole;
2 changes: 0 additions & 2 deletions src/vconsole.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ import './lib/symbol.js';

// classes
import VConsole from './core/core.js';
import VConsolePlugin from './lib/plugin.js';

// export
VConsole.VConsolePlugin = VConsolePlugin;
export default VConsole;

0 comments on commit cc5161e

Please sign in to comment.