2020-05-21 04:47:01 +02:00
|
|
|
import "./styles/animate.css";
|
|
|
|
import "./styles/sweetalert2.css";
|
|
|
|
import "vue-material-design-icons/styles.css";
|
|
|
|
import { VueAgile } from "vue-agile";
|
|
|
|
import VueSweetalert2 from "vue-sweetalert2";
|
2020-08-03 02:37:43 +02:00
|
|
|
import VueMoment from "vue-moment";
|
2020-08-23 20:02:35 +02:00
|
|
|
import Element from "element-ui";
|
2019-09-25 00:56:23 +02:00
|
|
|
|
2020-08-04 20:13:58 +02:00
|
|
|
import store from "./store";
|
|
|
|
|
2021-03-18 14:01:36 +01:00
|
|
|
const redirectList = [
|
|
|
|
{
|
|
|
|
path: "/help/guides/troubleshooting-problems/",
|
|
|
|
redirect: "/help/guides/troubleshooting/",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "/help/guides/reading-local-manga/",
|
|
|
|
redirect: "/help/guides/local-manga/",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "/help/guides/creating-backups/",
|
|
|
|
redirect: "/help/guides/backups/",
|
2021-05-02 22:06:51 +02:00
|
|
|
},
|
|
|
|
];
|
2021-03-18 14:01:36 +01:00
|
|
|
|
2019-09-18 01:17:47 +02:00
|
|
|
export default ({
|
|
|
|
Vue, // the version of Vue being used in the VuePress app
|
|
|
|
options, // the options for the root Vue instance
|
|
|
|
router, // the router instance for the app
|
2020-05-21 04:47:01 +02:00
|
|
|
siteData, // site metadata
|
2019-09-25 00:56:23 +02:00
|
|
|
}) => {
|
2020-01-09 05:15:44 +01:00
|
|
|
// eslint-disable-next-line vue/match-component-file-name
|
2020-05-21 04:47:01 +02:00
|
|
|
Vue.component("Agile", VueAgile);
|
2020-02-12 02:36:11 +01:00
|
|
|
Vue.use(VueSweetalert2);
|
2020-08-03 02:37:43 +02:00
|
|
|
Vue.use(VueMoment);
|
2020-08-23 20:02:35 +02:00
|
|
|
Vue.use(Element);
|
2020-08-04 20:13:58 +02:00
|
|
|
Vue.mixin({ store });
|
2021-03-18 14:01:36 +01:00
|
|
|
// Reroute to new pages
|
|
|
|
router.addRoutes(redirectList);
|
2019-09-25 00:56:23 +02:00
|
|
|
};
|