2018-02-01 12:17:04 +00:00
|
|
|
<template>
|
2024-07-30 17:45:27 +00:00
|
|
|
<router-view></router-view>
|
2018-02-01 12:17:04 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2024-08-24 22:02:33 +00:00
|
|
|
import { onMounted } from "vue";
|
2024-07-30 17:45:27 +00:00
|
|
|
import { mutations } from "@/store"; // Import your store's mutations
|
2024-08-24 22:02:33 +00:00
|
|
|
mutations.setLoading("main-app", true);
|
2018-02-01 12:17:04 +00:00
|
|
|
export default {
|
2021-03-21 11:51:58 +00:00
|
|
|
name: "app",
|
2023-10-19 01:15:01 +00:00
|
|
|
computed: {},
|
2024-07-30 17:45:27 +00:00
|
|
|
setup() {
|
|
|
|
onMounted(() => {
|
2024-08-24 22:02:33 +00:00
|
|
|
console.log("static vars", window.FileBrowser);
|
|
|
|
mutations.setLoading("main-app", false);
|
2024-07-30 17:45:27 +00:00
|
|
|
// Query the loading element and remove it from the DOM
|
2024-08-24 22:02:33 +00:00
|
|
|
const loadingDiv = document.getElementById("loading");
|
2024-07-30 17:45:27 +00:00
|
|
|
if (loadingDiv) {
|
|
|
|
loadingDiv.remove();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
},
|
2021-03-21 11:51:58 +00:00
|
|
|
};
|
2018-02-01 12:17:04 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
2023-10-09 22:24:48 +00:00
|
|
|
/* Always load styles.css */
|
2021-03-21 11:51:58 +00:00
|
|
|
@import "./css/styles.css";
|
2023-10-09 22:24:48 +00:00
|
|
|
@import "./css/dark.css";
|
2018-02-01 12:17:04 +00:00
|
|
|
</style>
|