2.3 KiB
2.3 KiB
Layout: root
apps/wall-street-plaza/src/app/layout.tsx · wraps every page of the admin app · it reads nothing on the server; its metadata (rootMetadata() in src/configs/seo.ts) sets robots: { index: false, follow: false }, which every page inherits
| Section | Data | HTML | JS | Index | Notes |
|---|---|---|---|---|---|
| AppProviders › AppShell | viewer | none | hydrate | no | garden-roof app/app-shell: the query client and i18n; useSession reads the admin once per load in the browser, so the auth store is unknown on the server and in the first browser render; useCrossSectionRefresh refetches the sections an admin action touches |
| ToastPlacementMarker | config | none | hydrate | no | toasts centred, 32px from the bottom, in both templates |
| Toaster | — | none | hydrate | no | the one toast region; a toast shows only after an action |
Scripts: none.
Notes
- One app serves both templates (proposed 0063): the mobile template is the layout under 1024px, the desktop template is the
desktop:variants, in one DOM. Every admin doc lists its rows in that one document order. - No service worker, manifest, JSON-LD or server caches (proposed 0062);
src/server.tsexports nothing. langanddircome from server i18n; the critical font is preloaded; the viewport isROOT_VIEWPORTwithmaximumScale: 1.