feat: add fullscreen docs demo routes
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
---
|
||||
import DemoShell from '../demo.astro';
|
||||
|
||||
export function getStaticPaths() {
|
||||
const userRoutes = ['home', 'install', 'trial', 'invite', 'devices', 'support', 'settings'];
|
||||
const adminRoutes = [
|
||||
'stats',
|
||||
'users',
|
||||
'payments',
|
||||
'promos',
|
||||
'ads',
|
||||
'broadcast',
|
||||
'logs',
|
||||
'support',
|
||||
'tariffs',
|
||||
'appearance',
|
||||
'translations',
|
||||
'backups',
|
||||
'settings',
|
||||
];
|
||||
|
||||
return [
|
||||
...userRoutes.map((path) => ({ params: { path } })),
|
||||
{ params: { path: 'admin' } },
|
||||
...adminRoutes.map((section) => ({ params: { path: `admin/${section}` } })),
|
||||
];
|
||||
}
|
||||
---
|
||||
|
||||
<DemoShell />
|
||||
Reference in New Issue
Block a user