Many improvements. Still no reactivity on List

This commit is contained in:
2024-06-02 08:48:14 -04:00
parent 387af2e6ce
commit 9104ccab0f
16 changed files with 395 additions and 289 deletions

View File

@@ -1,6 +1,17 @@
import { useAuthStore } from 'src/stores/auth';
export const links = [
export type Link = {
name: string;
to: string;
icon: string;
front_links?: boolean;
enabled?: boolean;
color?: string;
sublinks?: Link[];
requiredRoles?: string[];
};
export const links = <Link[]>[
{
name: 'Home',
to: '/',
@@ -30,7 +41,7 @@ export const links = [
enabled: true,
sublinks: [
{
name: 'List',
name: 'My View',
to: '/schedule/list',
icon: 'list',
front_links: false,
@@ -44,7 +55,7 @@ export const links = [
enabled: true,
},
{
name: 'View',
name: 'Calendar',
to: '/schedule/view',
icon: 'calendar_month',
front_links: false,
@@ -56,6 +67,7 @@ export const links = [
icon: 'edit_calendar',
front_links: false,
enabled: true,
color: 'accent',
requiredRoles: ['Schedule Admins'],
},
],