mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-25 20:32:46 +00:00
Some checks failed
docker-images / multi (push) Has been cancelled
Fixes: c89c3506
Fixes: #434
Signed-off-by: Miao Wang <shankerwangmiao@gmail.com>
24 lines
666 B
TypeScript
24 lines
666 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");
|