mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-11-02 03:33:04 +08:00
Remove history legacy mount helper
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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,
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user