mirror of
https://github.com/Ku6epXBOCTuK/easy-png-tools.git
synced 2026-09-14 21:46:35 +00:00
refactor: move old libs and components to old folder
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import type { CategoryId } from "../categories";
|
||||
import type { CategoryId } from "../old/categories";
|
||||
|
||||
export const LOCALES = ["ru", "en"] as const;
|
||||
export type Locale = (typeof LOCALES)[number];
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { TOOLS } from "../registry";
|
||||
import { TOOLS } from "../old/registry";
|
||||
import { normalizeForSearch, scoreDoc, type SearchDoc } from "./matching";
|
||||
import { setLocale } from "./locale.svelte";
|
||||
import { toolSearchDoc } from "./tool-strings";
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { TOOLS } from "../registry";
|
||||
import { TOOLS } from "../old/registry";
|
||||
import { normalizeForSearch, scoreDoc } from "./matching";
|
||||
import { toolSearchDoc } from "./tool-strings";
|
||||
import { isChainable } from "../registry";
|
||||
import { isChainable } from "../old/registry";
|
||||
|
||||
function hits(q: string): string[] {
|
||||
const nq = normalizeForSearch(q);
|
||||
|
||||
@@ -4,7 +4,7 @@ import { t } from "./t";
|
||||
import { LOCALE_TAGS } from "./dict";
|
||||
import { normalizeForSearch, scoreDoc } from "./matching";
|
||||
import { toolSearchDoc } from "./tool-strings";
|
||||
import { TOOLS } from "../registry";
|
||||
import { TOOLS } from "../old/registry";
|
||||
|
||||
afterEach(() => {
|
||||
setLocale("ru");
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { ParamDef, ToolEntry } from "$lib/registry";
|
||||
import type { ParamDef, ToolEntry } from "$lib/old/registry";
|
||||
import type { SearchDoc } from "./matching";
|
||||
import { getMergedDict } from "./locale.svelte";
|
||||
import { ru } from "./ru";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { TOOLS } from "../registry";
|
||||
import { TOOLS } from "../old/registry";
|
||||
import { en } from "./en";
|
||||
import { ru } from "./ru";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user