diff --git a/web/src/lib/preview/catalog.ts b/web/src/lib/catalog.ts similarity index 94% rename from web/src/lib/preview/catalog.ts rename to web/src/lib/catalog.ts index c9aefec..d543be9 100644 --- a/web/src/lib/preview/catalog.ts +++ b/web/src/lib/catalog.ts @@ -1,5 +1,5 @@ import { CATEGORY_IDS } from "./categories"; -import { TOOLS, type ToolEntry } from "../registry-new"; +import { TOOLS, type ToolEntry } from "./registry-new"; export type PreviewGroup = { id: string; diff --git a/web/src/lib/preview/categories.ts b/web/src/lib/categories.ts similarity index 100% rename from web/src/lib/preview/categories.ts rename to web/src/lib/categories.ts diff --git a/web/src/lib/components/SchemaToolView.svelte b/web/src/lib/components/SchemaToolView.svelte index fb7b5f8..74d8d1a 100644 --- a/web/src/lib/components/SchemaToolView.svelte +++ b/web/src/lib/components/SchemaToolView.svelte @@ -5,8 +5,8 @@ import { ToolError } from "$lib/core/errors"; import { decodeFile, encode } from "$lib/core/io"; import type { PixelImage } from "$lib/core/types"; + import { execute } from "$lib/executor"; import { t } from "$lib/i18n/t"; - import { execute } from "$lib/preview/executor"; import type { ToolEntry } from "$lib/registry-new"; import { defaultSchemaParams, diff --git a/web/src/lib/components/ui/LangToggle.svelte b/web/src/lib/components/ui/LangToggle.svelte index 0681184..7cab45a 100644 --- a/web/src/lib/components/ui/LangToggle.svelte +++ b/web/src/lib/components/ui/LangToggle.svelte @@ -35,10 +35,6 @@ padding: var(--space-s) var(--space-m); cursor: pointer; } - .lang-div { - color: var(--color-text); - font-family: var(--font-sans); - } .lang-btn.active { background: var(--color-text); color: var(--color-background); diff --git a/web/src/lib/preview/executor/executor.ts b/web/src/lib/executor/executor.ts similarity index 100% rename from web/src/lib/preview/executor/executor.ts rename to web/src/lib/executor/executor.ts diff --git a/web/src/lib/preview/executor/executor.worker.ts b/web/src/lib/executor/executor.worker.ts similarity index 100% rename from web/src/lib/preview/executor/executor.worker.ts rename to web/src/lib/executor/executor.worker.ts diff --git a/web/src/lib/preview/executor/index.ts b/web/src/lib/executor/index.ts similarity index 100% rename from web/src/lib/preview/executor/index.ts rename to web/src/lib/executor/index.ts diff --git a/web/src/lib/registry-new/registry-new.test.ts b/web/src/lib/registry-new/registry-new.test.ts index da26f9d..ffcc015 100644 --- a/web/src/lib/registry-new/registry-new.test.ts +++ b/web/src/lib/registry-new/registry-new.test.ts @@ -1,8 +1,8 @@ import { describe, expect, it } from "vitest"; -import { PREVIEW_GROUPS } from "../preview/catalog"; +import { PREVIEW_GROUPS } from "../catalog"; +import type { PixelImage } from "../core/types"; import { TOOLS } from "../registry-new"; import { defaultSchemaParams, sanitizeSchemaParams } from "../registry-schema"; -import type { PixelImage } from "../core/types"; import type { ToolResult } from "./types"; function asImage(result: ToolResult): PixelImage { diff --git a/web/src/lib/registry-new/types.ts b/web/src/lib/registry-new/types.ts index 3a2d147..299b1dd 100644 --- a/web/src/lib/registry-new/types.ts +++ b/web/src/lib/registry-new/types.ts @@ -1,7 +1,7 @@ +import type { CategoryId } from "../categories"; import { ToolError } from "../core/errors"; import type { OutputMime } from "../core/io"; import type { PixelImage } from "../core/types"; -import type { CategoryId } from "../preview/categories"; import type { ToolSchema } from "../registry-schema"; /** Формат скачивания, отличный от PNG (bmp/jpeg/webp). */ diff --git a/web/src/lib/preview/tool-icons.ts b/web/src/lib/tool-icons.ts similarity index 100% rename from web/src/lib/preview/tool-icons.ts rename to web/src/lib/tool-icons.ts diff --git a/web/src/routes/+page.svelte b/web/src/routes/+page.svelte index acef925..14b294b 100644 --- a/web/src/routes/+page.svelte +++ b/web/src/routes/+page.svelte @@ -1,10 +1,10 @@