import { A } from '@solidjs/router'; import { createSignal, onMount } from 'solid-js'; import AdminShell from '~/components/AdminShell'; import { deleteRuntimeConfig, listRuntimeConfigs, type RuntimeListItem } from '~/lib/runtime/storage'; import type { RuntimeRoleConfig } from '~/lib/runtime/types'; export default function ManageRolesPage() { const [items, setItems] = createSignal>>([]); const load = () => setItems(listRuntimeConfigs('role')); onMount(load); const onDelete = (key: string) => { deleteRuntimeConfig('role', key); load(); }; return (

Manage Roles

Edit or remove runtime role configs saved from the builder.

Runtime Roles

Create Role
{items().length === 0 ? (

No runtime role configs found yet.

) : (
{items().map((item) => (

{item.key}

Status: {item.status}

Updated: {new Date(item.updatedAt).toLocaleString()}

Edit
))}
)}
); }