debian-mirror-gitlab/app/assets/javascripts/ide/stores/extend.js

15 lines
409 B
JavaScript
Raw Normal View History

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;
};