debian-mirror-gitlab/app/assets/javascripts/registry/index.js

26 lines
523 B
JavaScript
Raw Normal View History

2018-03-17 18:26:18 +05:30
import Vue from 'vue';
import registryApp from './components/app.vue';
import Translate from '../vue_shared/translate';
Vue.use(Translate);
2018-03-27 19:54:05 +05:30
export default () => new Vue({
2018-03-17 18:26:18 +05:30
el: '#js-vue-registry-images',
components: {
registryApp,
},
data() {
2018-11-08 19:23:39 +05:30
const { dataset } = document.querySelector(this.$options.el);
2018-03-17 18:26:18 +05:30
return {
endpoint: dataset.endpoint,
};
},
render(createElement) {
return createElement('registry-app', {
props: {
endpoint: this.endpoint,
},
});
},
2018-03-27 19:54:05 +05:30
});