debian-mirror-gitlab/app/assets/javascripts/registry/settings/registry_settings_bundle.js

27 lines
611 B
JavaScript
Raw Normal View History

2020-01-01 13:55:28 +05:30
import Vue from 'vue';
2020-03-09 13:42:32 +05:30
import { GlToast } from '@gitlab/ui';
2020-01-01 13:55:28 +05:30
import Translate from '~/vue_shared/translate';
2020-05-24 23:13:21 +05:30
import store from './store';
2020-01-01 13:55:28 +05:30
import RegistrySettingsApp from './components/registry_settings_app.vue';
2020-03-09 13:42:32 +05:30
Vue.use(GlToast);
2020-01-01 13:55:28 +05:30
Vue.use(Translate);
export default () => {
const el = document.getElementById('js-registry-settings');
if (!el) {
return null;
}
store.dispatch('setInitialState', el.dataset);
return new Vue({
el,
store,
components: {
RegistrySettingsApp,
},
render(createElement) {
return createElement('registry-settings-app', {});
},
});
};