mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 14:46:01 +00:00
mongo server summary
This commit is contained in:
23
packages/web/src/tabs/ServerSummaryTab.svelte
Normal file
23
packages/web/src/tabs/ServerSummaryTab.svelte
Normal file
@@ -0,0 +1,23 @@
|
||||
<script>
|
||||
import Link from '../elements/Link.svelte';
|
||||
import LoadingInfo from '../elements/LoadingInfo.svelte';
|
||||
|
||||
import ObjectListControl from '../elements/ObjectListControl.svelte';
|
||||
import { apiCall } from '../utility/api';
|
||||
|
||||
export let conid;
|
||||
|
||||
let refreshToken = 0;
|
||||
</script>
|
||||
|
||||
{#await apiCall('server-connections/server-summary', { conid, refreshToken })}
|
||||
<LoadingInfo message="Loading server details" wrapper />
|
||||
{:then summary}
|
||||
<ObjectListControl
|
||||
collection={summary.databases}
|
||||
hideDisplayName
|
||||
title="Databases"
|
||||
emptyMessage={'No databases'}
|
||||
columns={summary.columns}
|
||||
/>
|
||||
{/await}
|
||||
Reference in New Issue
Block a user