30 lines
775 B
JavaScript
30 lines
775 B
JavaScript
import { GlToast } from '@gitlab/ui';
|
|
import Vue from 'vue';
|
|
|
|
import { parseBoolean } from '~/lib/utils/common_utils';
|
|
import Translate from '~/vue_shared/translate';
|
|
import SettingsApp from './components/group_settings_app.vue';
|
|
import { apolloProvider } from './graphql';
|
|
|
|
Vue.use(Translate);
|
|
Vue.use(GlToast);
|
|
|
|
export default () => {
|
|
const el = document.getElementById('js-packages-and-registries-settings');
|
|
if (!el) {
|
|
return null;
|
|
}
|
|
return new Vue({
|
|
el,
|
|
apolloProvider,
|
|
provide: {
|
|
groupPath: el.dataset.groupPath,
|
|
groupDependencyProxyPath: el.dataset.groupDependencyProxyPath,
|
|
defaultExpanded: parseBoolean(el.dataset.defaultExpanded),
|
|
},
|
|
render(createElement) {
|
|
return createElement(SettingsApp);
|
|
},
|
|
});
|
|
};
|