25 lines
527 B
JavaScript
25 lines
527 B
JavaScript
import Vue from 'vue';
|
|
import registryApp from './components/app.vue';
|
|
import Translate from '../vue_shared/translate';
|
|
|
|
Vue.use(Translate);
|
|
|
|
export default () => new Vue({
|
|
el: '#js-vue-registry-images',
|
|
components: {
|
|
registryApp,
|
|
},
|
|
data() {
|
|
const dataset = document.querySelector(this.$options.el).dataset;
|
|
return {
|
|
endpoint: dataset.endpoint,
|
|
};
|
|
},
|
|
render(createElement) {
|
|
return createElement('registry-app', {
|
|
props: {
|
|
endpoint: this.endpoint,
|
|
},
|
|
});
|
|
},
|
|
});
|