2021-10-27 15:23:28 +05:30
|
|
|
import Vue from 'vue';
|
|
|
|
import IntegrationOverrides from './components/integration_overrides.vue';
|
|
|
|
|
|
|
|
export default () => {
|
|
|
|
const el = document.querySelector('.js-vue-integration-overrides');
|
|
|
|
|
|
|
|
if (!el) {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
2022-03-02 08:16:31 +05:30
|
|
|
const { editPath, overridesPath } = el.dataset;
|
2021-10-27 15:23:28 +05:30
|
|
|
|
|
|
|
return new Vue({
|
|
|
|
el,
|
2022-03-02 08:16:31 +05:30
|
|
|
provide: {
|
|
|
|
editPath,
|
|
|
|
},
|
2021-10-27 15:23:28 +05:30
|
|
|
render(createElement) {
|
|
|
|
return createElement(IntegrationOverrides, {
|
|
|
|
props: {
|
|
|
|
overridesPath,
|
|
|
|
},
|
|
|
|
});
|
|
|
|
},
|
|
|
|
});
|
|
|
|
};
|