filebrowser/frontend/src/App.vue

31 lines
700 B
Vue
Raw Normal View History

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",
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>
/* Always load styles.css */
2021-03-21 11:51:58 +00:00
@import "./css/styles.css";
@import "./css/dark.css";
2018-02-01 12:17:04 +00:00
</style>