28 lines
1.4 KiB
TypeScript
28 lines
1.4 KiB
TypeScript
// Reference config/menu.ts — copy into the (empty) config/ mount at the repo root:
|
|
// cp examples/config/menu.ts config/menu.ts
|
|
// config/ ships empty; mount your own or copy this in. Absent config = built-in defaults.
|
|
//
|
|
// Brand the app and reorder/rename/group/hide nav nodes (by their `id`) across all plugins —
|
|
// the override always wins, applied before the per-user permission filter. Every field is
|
|
// optional; delete one to fall back to the default.
|
|
// See src/ui/menu-config.ts (types), src/ui/nav.ts (NavOverride), README.md (The menu system).
|
|
|
|
import { defineMenu } from "#menu-config";
|
|
|
|
export default defineMenu({
|
|
branding: {
|
|
name: "Plainpages", // app name shown in the sidebar
|
|
sub: "Console", // optional subtitle under the name
|
|
// logo: "/public/logo.svg", // optional logo asset (rendered in the sidebar brand)
|
|
// theme: "auto", // default color theme: auto | light | dark
|
|
},
|
|
|
|
// Operator override (rename → group → order → hide), keyed by node id.
|
|
override: {
|
|
// rename: { people: "Staff" }, // node id → new label
|
|
// groups: [{ id: "admin", label: "Admin", children: ["users", "roles"] }],
|
|
// order: ["people", "reports"], // top-level order by id
|
|
// hide: ["teams"], // remove nodes (any depth)
|
|
},
|
|
});
|