chore: update admin and public entry route alignment
This commit is contained in:
parent
9cf8af5311
commit
75b54368f0
2 changed files with 35 additions and 16 deletions
|
|
@ -1,11 +1,25 @@
|
|||
import { redirect } from '@solidjs/router';
|
||||
|
||||
export const route = {
|
||||
preload() {
|
||||
throw redirect('/admin/runtime-roles/new');
|
||||
},
|
||||
};
|
||||
import { A } from '@solidjs/router';
|
||||
import AdminShell from '~/components/AdminShell';
|
||||
|
||||
export default function AdminIndex() {
|
||||
return null;
|
||||
return (
|
||||
<AdminShell>
|
||||
<h1 class="page-title">Admin Builder</h1>
|
||||
<p class="page-subtitle">Pick what you want to configure.</p>
|
||||
<section class="card">
|
||||
<div class="actions">
|
||||
<A class="btn primary" href="/admin/runtime-roles/new">Create Role</A>
|
||||
<A class="btn" href="/admin/runtime-roles">Manage Roles</A>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<A class="btn primary" href="/admin/role-ui-configs/new">Create Dashboard</A>
|
||||
<A class="btn" href="/admin/role-ui-configs">Manage Dashboards</A>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<A class="btn primary" href="/admin/onboarding-schemas/new">Create Onboarding</A>
|
||||
<A class="btn" href="/admin/onboarding-schemas">Manage Onboarding</A>
|
||||
</div>
|
||||
</section>
|
||||
</AdminShell>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,11 +1,16 @@
|
|||
import { redirect } from '@solidjs/router';
|
||||
|
||||
export const route = {
|
||||
preload() {
|
||||
throw redirect('/admin/runtime-roles/new');
|
||||
},
|
||||
};
|
||||
import { A } from '@solidjs/router';
|
||||
|
||||
export default function Home() {
|
||||
return null;
|
||||
return (
|
||||
<main class="page">
|
||||
<h1 class="page-title">NXTGAUGE Admin</h1>
|
||||
<p class="page-subtitle">Open the admin runtime builders below.</p>
|
||||
<section class="card">
|
||||
<div class="actions">
|
||||
<A class="btn primary" href="/admin">Open Admin</A>
|
||||
<A class="btn" href="/admin/runtime-roles/new">Create Role</A>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue