Remove history legacy mount helper

This commit is contained in:
guerler
2022-10-20 10:48:53 -04:00
parent 913e159e7e
commit ec82fb90ff
2 changed files with 0 additions and 25 deletions
-1
View File
@@ -44,7 +44,6 @@ export function chart(options) {
}
export { initMasthead } from "components/Masthead/initMasthead";
export { mountHistory } from "components/History/mount";
export { mountMakoTags } from "components/Tags";
export { mountPageEditor } from "components/PageEditor/mount";
export { mountPageDisplay } from "components/PageDisplay";
-24
View File
@@ -1,24 +0,0 @@
/**
* Endpoint for mounting History in non-Vue environment.
*/
import Vue from "vue";
import VueRouter from "vue-router";
import HistoryView from "./HistoryView";
import store from "store";
import { safePath } from "utils/redirect";
Vue.use(VueRouter);
export const mountHistory = (el, propsData) => {
const component = Vue.extend(HistoryView);
const router = new VueRouter();
router.push = (url) => {
window.location.href = safePath(url);
};
return new component({
el: el,
propsData: propsData,
router: router,
store: store,
});
};