feat: Remove legacy files and fix first svelte/no-at-html-tags error\n\n- Moved legacy files from src/routes/legacy to backups/legacy/src/routes/legacy.\n- Removed the empty src/routes/legacy directory.\n- Fixed a svelte/no-at-html-tags error in src/routes/idaa/(idaa)/archives/[archive_id]/+page.svelte by replacing '{@html ?.name ?? 'Archive'}' with '{?.name ?? 'Archive'}'.\n- Addressed a misidentified '{@html}' tag in src/lib/ae_core/ae_comp__hosted_files_clip_video.svelte by removing commented-out code that might have caused false positives.
This commit is contained in:
@@ -20,11 +20,24 @@
|
||||
|
||||
// import Element_data_store from '$lib/element_data_store_v2.svelte';
|
||||
|
||||
interface Props {
|
||||
data: any;
|
||||
children?: import('svelte').Snippet;
|
||||
interface SubmenuItem {
|
||||
name: string;
|
||||
href: string;
|
||||
title: string;
|
||||
access?: 'trusted' | 'administrator' | 'manager'; // Assuming these are the access levels
|
||||
disable?: boolean;
|
||||
hide?: boolean;
|
||||
}
|
||||
|
||||
interface LayoutData {
|
||||
submenu: SubmenuItem[]; // Assuming submenu is an array of SubmenuItem
|
||||
// Add other properties of data if needed
|
||||
}
|
||||
|
||||
interface Props {
|
||||
data: LayoutData; // Use the specific interface
|
||||
children?: import('svelte').Snippet;
|
||||
}
|
||||
let { data, children }: Props = $props();
|
||||
|
||||
$events_loc.qry__enabled = 'enabled';
|
||||
@@ -49,7 +62,7 @@
|
||||
{#if $ae_loc?.manager_access === 'test-new-submenu'}
|
||||
<section class="submenu flex flex-row justify-center" class:hidden={$ae_loc.iframe}>
|
||||
<span class=" preset-tonal-secondary px-4 py-2">
|
||||
{#each Object.entries(data.submenu) as [key, item]}
|
||||
{#each Object.entries(data.submenu) as [key, item]: SubmenuItem}
|
||||
<!-- <a href="/settings/{item.slug}">{item.title}</a> -->
|
||||
<!-- class:hidden={!$ae_loc.trusted_access && item.access} -->
|
||||
{#if item.disable}
|
||||
|
||||
Reference in New Issue
Block a user