feat(elasticsearch): add custom checks and tabular REST results

This commit is contained in:
weiyong authored and GitHub committed 2026-07-27 18:55:37 +08:00
1 parent e2b35944ce
commit a49137ae8b
44 files changed
+917 -74

No files matched your search

@@ -13,6 +13,12 @@ import JsonTree from "./JsonTree.vue";
const props = defineProps<{
status: number;
body: string;
/** When true, render a "Table" button to switch back to the grid view. */
canShowTable?: boolean;
}>();
const emit = defineEmits<{
showTable: [];
}>();
const { t } = useI18n();
@@ -101,6 +107,9 @@ onMounted(() => {
>
{{ t("redis.jsonView") }}
</button>
<button v-if="canShowTable" type="button" class="h-6 rounded-[4px] px-2 text-xs transition-colors bg-background font-medium text-foreground shadow-sm" @click="emit('showTable')">
{{ t("tabs.tableData") }}
</button>
</div>
</div>
<span class="shrink-0 rounded-full border px-2 py-0.5 font-mono text-[11px] font-medium tabular-nums" :class="statusClass" role="status" :aria-label="statusLabel">