2020-06-23 00:09:42 +05:30
|
|
|
import terminal from './plugins/terminal';
|
|
|
|
import terminalSync from './plugins/terminal_sync';
|
|
|
|
|
|
|
|
const plugins = () => [
|
|
|
|
terminal,
|
|
|
|
...(gon.features && gon.features.buildServiceProxy ? [terminalSync] : []),
|
|
|
|
];
|
|
|
|
|
|
|
|
export default (store, el) => {
|
|
|
|
// plugins is actually an array of plugin factories, so we have to create first then call
|
2021-03-08 18:12:59 +05:30
|
|
|
plugins().forEach((plugin) => plugin(el)(store));
|
2020-06-23 00:09:42 +05:30
|
|
|
|
|
|
|
return store;
|
|
|
|
};
|