14 | Svelte Admin demo app
15 |
16 |
17 | Svelte Admin is a (currently prototype) admin generator delivered as a Typescript library and a
18 | set of Svelte components as rendering system.
19 |
20 |
21 |
22 | If you detect any bug in this demo, feel free to clone the project or submit an issue in the
23 | Github Repository!
24 |
25 |
26 | Here are the available CRUDs for the demo app:
27 |
28 |
29 | {#each dashboard.cruds as crud}
30 |
31 |
32 | {$_(crud.options.label.plural)}
33 |
34 |
35 | {/each}
36 |
37 |
38 |
39 |
45 |
--------------------------------------------------------------------------------
/src/routes/admin/[crud]/[operation]/+page.server.ts:
--------------------------------------------------------------------------------
1 | import { dashboard } from '../../../../testApp/Dashboard';
2 |
3 | export const prerender = true;
4 |
5 | /** @type {import('./$types').EntryGenerator} */
6 | export function entries() {
7 | const routes = [];
8 |
9 | for (const crud of dashboard.cruds) {
10 | for (const operation of crud.options.operations) {
11 | routes.push({
12 | crud: crud.name,
13 | operation: operation.name
14 | });
15 | }
16 | }
17 |
18 | return routes;
19 | }
20 |
--------------------------------------------------------------------------------
/src/routes/admin/[crud]/[operation]/+page.svelte:
--------------------------------------------------------------------------------
1 |
12 |
13 | {#key $page}
14 |