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-12-13 13:39:08 +05:30
|
|
|
export default () =>
|
|
|
|
new Vue({
|
|
|
|
el: '#js-vue-registry-images',
|
|
|
|
components: {
|
|
|
|
registryApp,
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
const { dataset } = document.querySelector(this.$options.el);
|
|
|
|
return {
|
2019-12-21 20:55:43 +05:30
|
|
|
registryData: {
|
|
|
|
endpoint: dataset.endpoint,
|
|
|
|
characterError: Boolean(dataset.characterError),
|
|
|
|
helpPagePath: dataset.helpPagePath,
|
|
|
|
noContainersImage: dataset.noContainersImage,
|
|
|
|
containersErrorImage: dataset.containersErrorImage,
|
|
|
|
repositoryUrl: dataset.repositoryUrl,
|
|
|
|
isGroupPage: dataset.isGroupPage,
|
|
|
|
personalAccessTokensHelpLink: dataset.personalAccessTokensHelpLink,
|
|
|
|
registryHostUrlWithPort: dataset.registryHostUrlWithPort,
|
|
|
|
twoFactorAuthHelpLink: dataset.twoFactorAuthHelpLink,
|
|
|
|
},
|
2018-12-13 13:39:08 +05:30
|
|
|
};
|
|
|
|
},
|
|
|
|
render(createElement) {
|
|
|
|
return createElement('registry-app', {
|
|
|
|
props: {
|
2019-12-21 20:55:43 +05:30
|
|
|
...this.registryData,
|
2018-12-13 13:39:08 +05:30
|
|
|
},
|
|
|
|
});
|
|
|
|
},
|
|
|
|
});
|