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

27 lines
612 B
JavaScript
Raw Normal View History

2020-01-01 13:55:28 +05:30
import Vue from 'vue';
2020-03-13 15:44:24 +05:30
import { GlToast } from '@gitlab/ui';
2020-01-01 13:55:28 +05:30
import Translate from '~/vue_shared/translate';
2020-03-13 15:44:24 +05:30
import store from './store/';
2020-01-01 13:55:28 +05:30
import RegistrySettingsApp from './components/registry_settings_app.vue';
2020-03-13 15:44:24 +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', {});
},
});
};