-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
16 additions
and
5 deletions.
There are no files selected for viewing
21 changes: 16 additions & 5 deletions
21
packages/devtools/client/components/DisconnectIndicator.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,33 @@ | ||
<script setup lang="ts"> | ||
function reload() { | ||
window.location.reload() | ||
} | ||
</script> | ||
|
||
<template> | ||
<Teleport to="body"> | ||
<div | ||
v-if="wsConnectingDebounced" | ||
flex="~ col justify-center items-center gap-4" | ||
fixed bottom-0 left-0 right-0 top-0 z-2147483646 p5 text-lg backdrop-blur-5 n-glass-effect | ||
fixed bottom-0 left-0 right-0 top-0 z-2147483646 p5 text-lg backdrop-blur-4 n-glass-effect | ||
> | ||
<div flex="~" items-center justify-center> | ||
<div flex-auto /> | ||
<div flex="~" mt-8 items-center justify-center> | ||
<NuxtLogo h-8 /> | ||
</div> | ||
<div border="t base" my2 h-1px w-10 /> | ||
<div flex="~ gap-2" items-center text-xl op50> | ||
<div flex="~ gap-2" items-center op50> | ||
<NIcon icon="i-carbon-wifi-off" /> | ||
Disconnected from Server | ||
</div> | ||
<div flex="~ gap-2" animate-pulse items-center text-xl text-orange> | ||
<div border="t base" my2 h-1px w-10 /> | ||
<div flex="~ gap-2" animate-pulse items-center text-xl text-yellow> | ||
<NIcon icon="i-carbon-circle-dash" animate-spin /> | ||
Retrying... | ||
</div> | ||
<div flex-auto /> | ||
<NButton n="sm yellow" px2 py0 op40 @click="reload()"> | ||
Reload DevTools Page | ||
</NButton> | ||
</div> | ||
</Teleport> | ||
</template> |