|
|
@@ -317,26 +317,10 @@ window.api.onMenuCommand((id) => {
|
|
|
listenForDeepLinks()
|
|
|
|
|
|
function LoadingSplash() {
|
|
|
- const [dots, setDots] = createSignal("")
|
|
|
- const [pc, setPc] = createSignal(20)
|
|
|
- onMount(() => {
|
|
|
- const i = setInterval(() => {
|
|
|
- setDots(d => d.length >= 3 ? "" : d + ".")
|
|
|
- setPc(p => p < 90 ? p + 5 : p)
|
|
|
- }, 400)
|
|
|
- return () => clearInterval(i)
|
|
|
- })
|
|
|
return (
|
|
|
- <div class="h-dvh w-screen flex flex-col items-center justify-center bg-background-base gap-6">
|
|
|
- <Splash class="w-16 h-20 opacity-60 animate-pulse" />
|
|
|
- <div class="flex flex-col items-center gap-3">
|
|
|
- <span class="text-14-medium text-text-muted">
|
|
|
- 正在启动 KirinCode<span class="inline-block w-8 text-left">{dots()}</span>
|
|
|
- </span>
|
|
|
- <div class="w-40 h-1.5 bg-background-element rounded-full overflow-hidden">
|
|
|
- <div class="h-full bg-primary rounded-full transition-all duration-500" style={{width: `${pc()}%`}} />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <div class="h-dvh w-screen flex flex-col items-center justify-center bg-background-base">
|
|
|
+ <Splash class="w-16 h-20 opacity-50 animate-pulse" />
|
|
|
+ <span class="text-14-medium text-text-muted mt-4">正在启动 KirinCode</span>
|
|
|
</div>
|
|
|
)
|
|
|
}
|