chore: delete unused code

This commit is contained in:
Ilia Mashkov
2026-01-13 20:05:33 +03:00
parent ad6ba4f0a0
commit 4eeb43fa34
3 changed files with 8 additions and 210 deletions

View File

@@ -12,34 +12,14 @@
*
* Uses Sidebar.Provider to enable mobile-responsive collapsible sidebar behavior
* throughout the application.
*
* Creates and provides unifiedFontStore context to all child components (FiltersSidebar,
* TypographyMenu/FontSearch, and Page.svelte), ensuring all components can access
* the same font data and filtering state.
*/
import {
UNIFIED_FONT_STORE_KEY,
type UnifiedFontStore,
createUnifiedFontStore,
} from '$entities/Font/model/store/unifiedFontStore.svelte';
import favicon from '$shared/assets/favicon.svg';
import * as Sidebar from '$shared/shadcn/ui/sidebar/index';
import { FiltersSidebar } from '$widgets/FiltersSidebar';
import TypographyMenu from '$widgets/TypographySettings/ui/TypographyMenu.svelte';
import { setContext } from 'svelte';
/** Slot content for route pages to render */
let { children } = $props();
// Create unified font store instance at Layout level (highest common ancestor)
const unifiedFontStore: UnifiedFontStore = createUnifiedFontStore();
// Provide store to all children components via context
// This makes the store accessible to FiltersSidebar, FontSearch, and Page.svelte
setContext(UNIFIED_FONT_STORE_KEY, unifiedFontStore);
// Export store for direct access in Page.svelte
export { unifiedFontStore };
</script>
<svelte:head>