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.
This commit is contained in:
@@ -2,6 +2,7 @@ import {
|
||||
BookOpen,
|
||||
Bot,
|
||||
CpuAi,
|
||||
Database,
|
||||
DatabaseBackup,
|
||||
KeyRound,
|
||||
Layers,
|
||||
@@ -34,6 +35,7 @@ export type SettingsPage = {
|
||||
|
||||
export const SettingsComputersPath = "/admin/settings/computers";
|
||||
export const SettingsBackupsPath = "/admin/settings/backups";
|
||||
export const SettingsDatabasePath = "/admin/settings/database";
|
||||
|
||||
/**
|
||||
* The `/admin/settings/*` sub pages, listed in the rail on every settings
|
||||
@@ -81,6 +83,12 @@ export const SettingsPages: SettingsPage[] = [
|
||||
Icon: DatabaseBackup,
|
||||
super_admin_only: true,
|
||||
},
|
||||
{
|
||||
title: "Database",
|
||||
url: SettingsDatabasePath,
|
||||
Icon: Database,
|
||||
super_admin_only: true,
|
||||
},
|
||||
];
|
||||
|
||||
export const SettingsDefaultPath = "/admin/settings/general";
|
||||
|
||||
Reference in New Issue
Block a user