AuditPortalProps
Defined in: src/react.tsx:100
Props for AuditPortal.
Extends
Section titled “Extends”Omit<AuditDashboardProps,"initialTenant">
Properties
Section titled “Properties”| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
apiBaseUrl? |
string |
Base URL where the panel API + /config are mounted (e.g. "/audit" or "https://admin.example.com/audit"). Defaults to "" (same origin, relative). |
AuditDashboardProps.apiBaseUrl |
src/react.tsx:46 |
className? |
string |
Extra className on the dashboard root wrapper. | AuditDashboardProps.className |
src/react.tsx:75 |
credentials? |
RequestCredentials |
credentials mode for API requests. Defaults to "same-origin". For a cross-origin embed (panel served from a different origin than this app) with cookie-based auth, set "include" — and enable cors on the panel server so it returns Access-Control-Allow-Credentials. |
AuditDashboardProps.credentials |
src/react.tsx:53 |
fetch? |
FetchLike |
Custom fetch for API requests — inject a bearer token / extra headers, or instrument calls. Defaults to the global fetch. |
AuditDashboardProps.fetch |
src/react.tsx:58 |
logoUrl? |
string |
Navbar logo image URL (replaces the title wordmark). Overrides server /config. |
AuditDashboardProps.logoUrl |
src/react.tsx:89 |
queryClient? |
QueryClient |
Bring your own QueryClient; one is created if omitted. | AuditDashboardProps.queryClient |
src/react.tsx:60 |
routerBase? |
string |
Base path the panel is mounted at, used by routing: "browser" (e.g. "/admin/audit"). |
AuditDashboardProps.routerBase |
src/react.tsx:87 |
routing? |
EmbedRouting |
How the dashboard routes between views/records. - "hash" (default) — routes in location.hash; never touches the host app’s router or pathname. Safest when mounted inside another app. - "browser" — real history paths (clean URLs). Requires the host to serve the panel’s index.html as a catch-all under routerBase, else refresh 404s. - "memory" — in-memory only; no URL coupling at all. - a custom wouter location hook for full control. |
AuditDashboardProps.routing |
src/react.tsx:85 |
theme? |
EmbedTheme |
Theme handling. The embed never writes to the host document — it resolves a theme and applies it to its own wrapper (data-theme), so surfaces, text, borders and code views always come from one theme. - "auto" (default) — the panel’s own system/light/dark switcher (preference persisted in localStorage). - "inherit" — follow the host page, live: a dark/light class or data-theme attribute on <html> (then <body>), falling back to the OS prefers-color-scheme. The switcher is hidden; the host owns the theme. - "light" / "dark" — force one theme (switcher hidden). Useful when the host tracks its theme some other way: pass its resolved value. |
AuditDashboardProps.theme |
src/react.tsx:73 |
token |
string |
Portal token (audpt_…) minted server-side via createPortalToken(). Sent as an Authorization: Bearer credential on every API request; /config then reports portal: true and the shell renders the reduced, tenant-pinned portal chrome (Events explorer, export, integrity verification). |
- | src/react.tsx:107 |