gitlab-org--gitlab-foss/app/assets/javascripts/registry/index.js
Filipa Lacerda d0e5bafa30
Adds pagination
Adds specs
2017-09-22 12:14:59 +01:00

25 lines
559 B
JavaScript

import Vue from 'vue';
import registryApp from './components/app.vue';
import Translate from '../vue_shared/translate';
Vue.use(Translate);
document.addEventListener('DOMContentLoaded', () => 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,
},
});
},
}));