Skip to content

armgit / dbx

Public Imported from GitHub
0

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

1.2 KB
Raw Blame
<script setup lang="ts">
import { Inbox, RefreshCcw } from "@lucide/vue";
import { Button } from "@/components/ui/button";
import { useI18n } from "vue-i18n";
import { formatShortcut } from "@/lib/editor/shortcutRegistry";

const emit = defineEmits<{ refresh: [] }>();
const { t } = useI18n();
const modRKeys = formatShortcut("Mod+R")
  .split("+")
  .map((key) => (key === "Cmd" ? "⌘" : key));
</script>

<template>
  <div class="flex size-full flex-col items-center justify-center gap-3 text-sm text-muted-foreground">
    <Inbox class="h-8 w-8 opacity-60" />
    <div>{{ t("pluginPlatform.reloadRequired") }}</div>
    <div class="inline-flex items-center gap-1 text-xs text-muted-foreground/70">
      <span>{{ t("pluginPlatform.reloadHintPrefix") }}</span>
      <kbd v-for="key in modRKeys" :key="key" class="min-w-5 rounded border border-border/60 bg-muted/50 px-1.5 py-0.5 text-center font-mono text-[12px] leading-none text-muted-foreground shadow-xs">{{ key }}</kbd>
      <span>{{ t("pluginPlatform.reloadHintSuffix") }}</span>
    </div>
    <Button variant="outline" size="sm" class="h-7 gap-1.5" @click="emit('refresh')">
      <RefreshCcw class="h-3.5 w-3.5" />
      {{ t("pluginPlatform.refresh") }}
    </Button>
  </div>
</template>