feat: enhance loading experience and update window visibility settings
This commit is contained in:
parent
8d71d5d6b0
commit
66b91d06bb
15
index.html
15
index.html
|
|
@ -7,7 +7,20 @@
|
|||
<title>DBX</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
<div id="root">
|
||||
<style>
|
||||
#root:empty {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100vh;
|
||||
font-family: system-ui, sans-serif;
|
||||
color: #888;
|
||||
font-size: 13px;
|
||||
}
|
||||
#root:empty::after { content: "Loading…"; }
|
||||
</style>
|
||||
</div>
|
||||
<script type="module" src="/src/main.ts"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@
|
|||
],
|
||||
"permissions": [
|
||||
"core:default",
|
||||
"core:window:allow-show",
|
||||
"core:window:allow-hide",
|
||||
"dialog:default",
|
||||
"dialog:allow-save",
|
||||
"dialog:allow-open",
|
||||
|
|
|
|||
|
|
@ -18,7 +18,8 @@
|
|||
"minWidth": 900,
|
||||
"minHeight": 600,
|
||||
"resizable": true,
|
||||
"fullscreen": false
|
||||
"fullscreen": false,
|
||||
"visible": false
|
||||
}
|
||||
],
|
||||
"security": {
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ import { createApp } from "vue";
|
|||
import { createPinia } from "pinia";
|
||||
import VueVirtualScroller from "vue-virtual-scroller";
|
||||
import "vue-virtual-scroller/dist/vue-virtual-scroller.css";
|
||||
import { getCurrentWindow } from "@tauri-apps/api/window";
|
||||
import i18n from "./i18n";
|
||||
import App from "./App.vue";
|
||||
import "./styles/globals.css";
|
||||
|
|
@ -11,3 +12,5 @@ app.use(createPinia());
|
|||
app.use(i18n);
|
||||
app.use(VueVirtualScroller);
|
||||
app.mount("#root");
|
||||
|
||||
getCurrentWindow().show();
|
||||
|
|
|
|||
Loading…
Reference in New Issue