feature/fetch-fonts #14

Merged
ilia merged 76 commits from feature/fetch-fonts into main 2026-01-14 11:01:44 +00:00
4 changed files with 17 additions and 17 deletions
Showing only changes of commit d1f035a6ad - Show all commits

View File

@@ -7,13 +7,13 @@
* @see https://fontshare.com
*/
import { api } from '$shared/api/api';
import { buildQueryString } from '$shared/lib/utils';
import type { QueryParams } from '$shared/lib/utils';
import type {
FontshareApiModel,
FontshareFont,
} from '$entities/Font/model/types/fontshare';
import { api } from '$shared/api/api';
import { buildQueryString } from '$shared/utils';
import type { QueryParams } from '$shared/utils';
} from '../../model/types/fontshare';
/**
* Fontshare API parameters

View File

@@ -7,13 +7,13 @@
* @see https://developers.google.com/fonts/docs/developer_api
*/
import { api } from '$shared/api/api';
import { buildQueryString } from '$shared/lib/utils';
import type { QueryParams } from '$shared/lib/utils';
import type {
FontItem,
GoogleFontsApiModel,
} from '$entities/Font/model/types/google';
import { api } from '$shared/api/api';
import { buildQueryString } from '$shared/utils';
import type { QueryParams } from '$shared/utils';
} from '../../model/types/google';
/**
* Google Fonts API parameters

View File

@@ -1,12 +1,12 @@
import type {
FontshareFont,
GoogleFontItem,
} from '$entities/Font/model/types';
import {
describe,
expect,
it,
} from 'vitest';
import type {
FontshareFont,
GoogleFontItem,
} from '../../model/types';
import {
normalizeFontshareFont,
normalizeFontshareFonts,

View File

@@ -9,10 +9,10 @@ import type {
FontCategory,
FontStyleUrls,
FontSubset,
} from '$entities/Font/model/types';
import type { FontshareFont } from '$entities/Font/model/types/fontshare';
import type { GoogleFontItem } from '$entities/Font/model/types/google';
import type { UnifiedFont } from '$entities/Font/model/types/normalize';
FontshareFont,
GoogleFontItem,
UnifiedFont,
} from '../../model/types';
/**
* Map Google Fonts category to unified FontCategory
@@ -271,4 +271,4 @@ export function normalizeFontshareFonts(
}
// Re-export UnifiedFont for backward compatibility
export type { UnifiedFont } from '$entities/Font/model/types/normalize';
export type { UnifiedFont } from '../../model/types/normalize';