2020-04-08 14:13:33 +05:30
|
|
|
import Vue from 'vue';
|
2021-04-29 21:17:54 +05:30
|
|
|
import VueApollo from 'vue-apollo';
|
|
|
|
import createDefaultClient from '~/lib/graphql';
|
2020-04-08 14:13:33 +05:30
|
|
|
import ReleaseShowApp from './components/app_show.vue';
|
|
|
|
|
2021-04-29 21:17:54 +05:30
|
|
|
Vue.use(VueApollo);
|
|
|
|
|
|
|
|
const apolloProvider = new VueApollo({
|
2021-11-18 22:05:49 +05:30
|
|
|
defaultClient: createDefaultClient(
|
|
|
|
{},
|
|
|
|
{
|
|
|
|
assumeImmutableResults: true,
|
|
|
|
},
|
|
|
|
),
|
2021-04-29 21:17:54 +05:30
|
|
|
});
|
2020-11-24 15:15:51 +05:30
|
|
|
|
2020-04-08 14:13:33 +05:30
|
|
|
export default () => {
|
|
|
|
const el = document.getElementById('js-show-release-page');
|
|
|
|
|
2021-04-29 21:17:54 +05:30
|
|
|
if (!el) return false;
|
|
|
|
|
|
|
|
const { projectPath, tagName } = el.dataset;
|
2020-04-08 14:13:33 +05:30
|
|
|
|
|
|
|
return new Vue({
|
|
|
|
el,
|
2021-04-29 21:17:54 +05:30
|
|
|
apolloProvider,
|
|
|
|
provide: {
|
|
|
|
fullPath: projectPath,
|
|
|
|
tagName,
|
|
|
|
},
|
2021-03-08 18:12:59 +05:30
|
|
|
render: (h) => h(ReleaseShowApp),
|
2020-04-08 14:13:33 +05:30
|
|
|
});
|
|
|
|
};
|