Files
cobble/src/pages/admin/settings/database/index.tsx
T
tben 41bb4aaac2 Let a super admin read the database from the app
A new super admin settings page, /admin/settings/database, lists every
table with its record count and size, and one page of the open table's
records newest key first. Values are cut inside SQL (400 characters, with
a flag saying so) and a record opens whole in a modal, so a table of long
texts reads without shipping it all. A search matches every column's
text, word by word or as a phrase, which is the one thing that also works
on a virtual table. Nothing in it writes: the catalog, the records and
the single record are all reads, GET only.
2026-10-23 06:03:42 +01:00

18 lines
606 B
TypeScript

import SettingsShell from "../(partials)/settings-shell";
import settingsPageMeta from "../(functions)/settings-page-meta";
import DatabaseBrowser from "./(sections)/database-browser";
export default function AdminSettingsDatabasePage() {
return (
<SettingsShell
title="Database"
description="Every table and every record, read-only: open a record to read a value whole, search a table across all of its columns."
wide
>
<DatabaseBrowser />
</SettingsShell>
);
}
export const meta = settingsPageMeta({ label: "Database" });