refactor: move old libs and components to old folder

This commit is contained in:
2026-09-10 12:01:54 +05:00
parent bf2f8e57c8
commit 3834dadd03
64 changed files with 111 additions and 110 deletions
+1 -1
View File
@@ -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 -1
View File
@@ -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";
+2 -2
View File
@@ -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);
+1 -1
View File
@@ -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 -1
View File
@@ -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 -1
View File
@@ -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";