mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-25 20:32:46 +00:00
24 lines
670 B
TypeScript
24 lines
670 B
TypeScript
import Empty from "../components/Empty.vue";
|
|
import IsoModal from "../components/IsoModal.vue";
|
|
import MainMirrorList from "../components/MainMirrorList.vue";
|
|
|
|
import { BootStrapModal } from "bootstrap/js/dist/modal";
|
|
import { createApp } from "vue";
|
|
import "./default";
|
|
import "../styles/main-page.scss";
|
|
|
|
const empty = createApp(Empty);
|
|
empty.mount("#upgrade-mask");
|
|
|
|
const isoModalEl = document.getElementById("isoModal");
|
|
|
|
createApp(IsoModal, {
|
|
onReady: async function () {
|
|
if (window.location.hash.match(/#iso-download(\?.*)?/)) {
|
|
new BootStrapModal(isoModalEl).show();
|
|
}
|
|
},
|
|
}).mount(isoModalEl);
|
|
|
|
createApp(MainMirrorList).mount("#mirror-list");
|