2017-09-19 11:38:55 -04:00
|
|
|
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);
|
2017-09-19 11:38:55 -04:00
|
|
|
|
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,
|
|
|
|
},
|
|
|
|
});
|
|
|
|
},
|
|
|
|
});
|