Chore/architecture refactoring #42
+3
-3
@@ -3,12 +3,12 @@ import { BaseQueryStore } from '$shared/lib/helpers/BaseQueryStore.svelte';
|
|||||||
import {
|
import {
|
||||||
fetchFontsByIds,
|
fetchFontsByIds,
|
||||||
seedFontCache,
|
seedFontCache,
|
||||||
} from '../../api/proxy/proxyFonts';
|
} from '../../../api/proxy/proxyFonts';
|
||||||
import {
|
import {
|
||||||
FontNetworkError,
|
FontNetworkError,
|
||||||
FontResponseError,
|
FontResponseError,
|
||||||
} from '../../lib/errors/errors';
|
} from '../../../lib/errors/errors';
|
||||||
import type { UnifiedFont } from '../../model/types';
|
import type { UnifiedFont } from '../../types';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Internal fetcher that seeds the cache and handles error wrapping.
|
* Internal fetcher that seeds the cache and handles error wrapping.
|
||||||
+2
-2
@@ -7,11 +7,11 @@ import {
|
|||||||
it,
|
it,
|
||||||
vi,
|
vi,
|
||||||
} from 'vitest';
|
} from 'vitest';
|
||||||
import * as api from '../../api/proxy/proxyFonts';
|
import * as api from '../../../api/proxy/proxyFonts';
|
||||||
import {
|
import {
|
||||||
FontNetworkError,
|
FontNetworkError,
|
||||||
FontResponseError,
|
FontResponseError,
|
||||||
} from '../../lib/errors/errors';
|
} from '../../../lib/errors/errors';
|
||||||
import { BatchFontStore } from './batchFontStore.svelte';
|
import { BatchFontStore } from './batchFontStore.svelte';
|
||||||
|
|
||||||
describe('BatchFontStore', () => {
|
describe('BatchFontStore', () => {
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
export * from './appliedFontsStore/appliedFontsStore.svelte';
|
export * from './appliedFontsStore/appliedFontsStore.svelte';
|
||||||
|
|
||||||
// Batch font store
|
// Batch font store
|
||||||
export { BatchFontStore } from './batchFontStore.svelte';
|
export { BatchFontStore } from './batchFontStore/batchFontStore.svelte';
|
||||||
|
|
||||||
// Single FontStore
|
// Single FontStore
|
||||||
export {
|
export {
|
||||||
|
|||||||
Reference in New Issue
Block a user