mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 01:55:59 +00:00
sql object list
This commit is contained in:
54
packages/web/src/widgets/LoadingInfo.svelte
Normal file
54
packages/web/src/widgets/LoadingInfo.svelte
Normal file
@@ -0,0 +1,54 @@
|
||||
<script lang="ts">
|
||||
import FontIcon from '../icons/FontIcon.svelte';
|
||||
|
||||
export let message;
|
||||
export let wrapper = false;
|
||||
</script>
|
||||
|
||||
{#if wrapper}
|
||||
<div class="wrapper">
|
||||
<div class="box">
|
||||
<div class="container">
|
||||
<div class="spinner">
|
||||
<FontIcon icon="icon loading" />
|
||||
</div>
|
||||
{message}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{:else}
|
||||
<div class="container">
|
||||
<div class="spinner">
|
||||
<FontIcon icon="icon loading" />
|
||||
</div>
|
||||
{message}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<style>
|
||||
.container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.spinner {
|
||||
font-size: 20pt;
|
||||
margin: 10px;
|
||||
}
|
||||
.wrapper {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-around;
|
||||
}
|
||||
.box {
|
||||
background-color: var(--thme-bg-2);
|
||||
padding: 10px;
|
||||
border: 1px solid gray;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user