gitlab-org--gitlab-foss/app/assets/javascripts/registry/index.js

27 lines
561 B
JavaScript
Raw Normal View History

import Vue from 'vue';
import registryApp from './components/app.vue';
2017-09-22 06:46:55 -04:00
import Translate from '../vue_shared/translate';
Vue.use(Translate);
2018-10-10 02:49:24 -04:00
export default () =>
new Vue({
el: '#js-vue-registry-images',
components: {
registryApp,
},
data() {
const { dataset } = document.querySelector(this.$options.el);
return {
endpoint: dataset.endpoint,
};
},
render(createElement) {
return createElement('registry-app', {
props: {
endpoint: this.endpoint,
},
});
},
});