feat: rename old -> v1 folder

This commit is contained in:
2026-09-10 20:23:45 +05:00
parent 1e5e096d5d
commit 33e3f3c4f0
60 changed files with 60 additions and 69 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import type { CategoryId } from "../old/categories";
import type { CategoryId } from "../v1/categories";
export const LOCALES = ["ru", "en"] as const;
export type Locale = (typeof LOCALES)[number];
+2 -2
View File
@@ -1,7 +1,7 @@
import { describe, expect, it } from "vitest";
import { TOOLS } from "../old/registry";
import { normalizeForSearch, scoreDoc, type SearchDoc } from "./matching";
import { TOOLS } from "../v1/registry";
import { setLocale } from "./locale.svelte";
import { normalizeForSearch, scoreDoc, type SearchDoc } from "./matching";
import { toolSearchDoc } from "./tool-strings";
describe("normalizeForSearch", () => {
+1 -2
View File
@@ -1,8 +1,7 @@
import { describe, expect, it } from "vitest";
import { TOOLS } from "../old/registry";
import { isChainable, TOOLS } from "../v1/registry";
import { normalizeForSearch, scoreDoc } from "./matching";
import { toolSearchDoc } from "./tool-strings";
import { isChainable } from "../old/registry";
function hits(q: string): string[] {
const nq = normalizeForSearch(q);
+3 -3
View File
@@ -1,10 +1,10 @@
import { afterEach, describe, expect, it, vi } from "vitest";
import { setLocale } from "./locale.svelte";
import { t } from "./t";
import { TOOLS } from "../v1/registry";
import { LOCALE_TAGS } from "./dict";
import { setLocale } from "./locale.svelte";
import { normalizeForSearch, scoreDoc } from "./matching";
import { t } from "./t";
import { toolSearchDoc } from "./tool-strings";
import { TOOLS } from "../old/registry";
afterEach(() => {
setLocale("ru");
+2 -2
View File
@@ -1,6 +1,6 @@
import type { ParamDef, ToolEntry } from "$lib/old/registry";
import type { SearchDoc } from "./matching";
import type { ParamDef, ToolEntry } from "$lib/v1/registry";
import { getMergedDict } from "./locale.svelte";
import type { SearchDoc } from "./matching";
import { ru } from "./ru";
/**
+1 -1
View File
@@ -1,5 +1,5 @@
import { describe, expect, it } from "vitest";
import { TOOLS } from "../old/registry";
import { TOOLS } from "../v1/registry";
import { en } from "./en";
import { ru } from "./ru";