2021-07-28 08:10:41 -04:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2021-12-21 01:13:16 -05:00
|
|
|
const { editPath, overridesPath } = el.dataset;
|
2021-07-28 08:10:41 -04:00
|
|
|
|
|
|
|
return new Vue({
|
|
|
|
el,
|
2021-12-21 01:13:16 -05:00
|
|
|
provide: {
|
|
|
|
editPath,
|
|
|
|
},
|
2021-07-28 08:10:41 -04:00
|
|
|
render(createElement) {
|
|
|
|
return createElement(IntegrationOverrides, {
|
|
|
|
props: {
|
|
|
|
overridesPath,
|
|
|
|
},
|
|
|
|
});
|
|
|
|
},
|
|
|
|
});
|
|
|
|
};
|