mirror of
https://github.com/Ku6epXBOCTuK/easy-png-tools.git
synced 2026-09-14 21:46:35 +00:00
refactor: update path registry-new to registry
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { CATEGORY_IDS } from "./categories";
|
||||
import { TOOLS, type ToolEntry } from "./registry-new";
|
||||
import { TOOLS, type ToolEntry } from "./registry";
|
||||
|
||||
export type PreviewGroup = {
|
||||
id: string;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
import SchemaResultTile from "$lib/components/SchemaResultTile.svelte";
|
||||
import SchemaSourceTile from "$lib/components/SchemaSourceTile.svelte";
|
||||
import type { PixelImage } from "$lib/core/types";
|
||||
import type { InputMode, ResultKind } from "$lib/registry-new";
|
||||
import type { InputMode, ResultKind } from "$lib/registry";
|
||||
|
||||
interface Props {
|
||||
inputMode: InputMode;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script lang="ts">
|
||||
import { toDataUrl } from "$lib/core/io";
|
||||
import type { PixelImage } from "$lib/core/types";
|
||||
import type { InputMode } from "$lib/registry-new";
|
||||
import type { InputMode } from "$lib/registry";
|
||||
import SchemaTextSource from "./SchemaTextSource.svelte";
|
||||
|
||||
interface Props {
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
import type { PixelImage } from "$lib/core/types";
|
||||
import { execute } from "$lib/executor";
|
||||
import { t } from "$lib/i18n/t";
|
||||
import type { ToolEntry } from "$lib/registry-new";
|
||||
import type { ToolEntry } from "$lib/registry";
|
||||
import {
|
||||
defaultSchemaParams,
|
||||
sanitizeSchemaParams,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { ToolError } from "$lib/core/errors";
|
||||
import type { PixelImage } from "$lib/core/types";
|
||||
import type { ToolContext, ToolEntry, ToolResult } from "$lib/registry";
|
||||
import { sanitizeSchemaParams } from "$lib/registry-schema";
|
||||
import type { ToolContext, ToolEntry, ToolResult } from "$lib/registry-new";
|
||||
|
||||
/** Вход единой точки исполнения. `source`/`text` — по контракту `tool.input`. */
|
||||
export type ExecuteContext = {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/// <reference lib="webworker" />
|
||||
import { ToolError } from "$lib/core/errors";
|
||||
import type { PixelImage } from "$lib/core/types";
|
||||
import { getTool } from "$lib/registry-new";
|
||||
import { getTool } from "$lib/registry";
|
||||
import { sanitizeSchemaParams } from "$lib/registry-schema";
|
||||
|
||||
type WorkerRequest = {
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
// @ts-expect-error node types are not wired into svelte-check; vitest resolves fine
|
||||
import { readFileSync } from "node:fs";
|
||||
import { Color } from "@panmdaa/colors";
|
||||
import { readFileSync } from "node:fs";
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
declare const process: { cwd(): string };
|
||||
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { TOOLS } from ".";
|
||||
import { PREVIEW_GROUPS } from "../catalog";
|
||||
import type { PixelImage } from "../core/types";
|
||||
import { TOOLS } from "../registry-new";
|
||||
import { defaultSchemaParams, sanitizeSchemaParams } from "../registry-schema";
|
||||
import type { ToolResult } from "./types";
|
||||
|
||||
Reference in New Issue
Block a user