refactor(Font/model): move baseFontStore and unifiedFontStore to subdirectories, rename errors/index to errors/errors

This commit is contained in:
Ilia Mashkov
2026-04-05 11:02:42 +03:00
parent 9427f4e50f
commit b40e651be4
5 changed files with 7 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
import { import {
FontNetworkError, FontNetworkError,
FontResponseError, FontResponseError,
} from './index'; } from './errors';
describe('FontNetworkError', () => { describe('FontNetworkError', () => {
it('has correct name', () => { it('has correct name', () => {

View File

@@ -5,7 +5,7 @@ import {
type QueryObserverOptions, type QueryObserverOptions,
type QueryObserverResult, type QueryObserverResult,
} from '@tanstack/query-core'; } from '@tanstack/query-core';
import type { UnifiedFont } from '../types'; import type { UnifiedFont } from '../../types';
/** /**
* Base class for font stores using TanStack Query * Base class for font stores using TanStack Query

View File

@@ -11,7 +11,7 @@ export {
createUnifiedFontStore, createUnifiedFontStore,
type UnifiedFontStore, type UnifiedFontStore,
unifiedFontStore, unifiedFontStore,
} from './unifiedFontStore.svelte'; } from './unifiedFontStore/unifiedFontStore.svelte';
// Applied fonts manager (CSS loading - unchanged) // Applied fonts manager (CSS loading - unchanged)
export { appliedFontsManager } from './appliedFontsStore/appliedFontsStore.svelte'; export { appliedFontsManager } from './appliedFontsStore/appliedFontsStore.svelte';

View File

@@ -13,10 +13,10 @@
*/ */
import type { QueryObserverOptions } from '@tanstack/query-core'; import type { QueryObserverOptions } from '@tanstack/query-core';
import type { ProxyFontsParams } from '../../api'; import type { ProxyFontsParams } from '../../../api';
import { fetchProxyFonts } from '../../api'; import { fetchProxyFonts } from '../../../api';
import type { UnifiedFont } from '../types'; import type { UnifiedFont } from '../../types';
import { BaseFontStore } from './baseFontStore.svelte'; import { BaseFontStore } from '../baseFontStore/baseFontStore.svelte';
/** /**
* Unified font store wrapping TanStack Query with Svelte 5 runes * Unified font store wrapping TanStack Query with Svelte 5 runes