Svelte 컴포넌트를 제외한 파일, 폴더 및 라우팅 경로의 이름을 kebab-case로 통일하고 import 경로에 실제 파일 확장자를 사용하도록 변경

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
staticandClaude Opus 5.5 committed 2026-10-12 07:41:28 +09:00
1 parent 225ad3515f
commit 306fcb2420
201 files changed
+550 -545

No files matched your search

+1 -1
View File
@@ -1,5 +1,5 @@
import { sql } from "kysely";
import db from "#lib/server/db/kysely.js";
import db from "#lib/server/db/kysely.ts";
export const resetDatabase = async () => {
const { rows } = await sql<{ tablename: string }>`
+1 -1
View File
@@ -1,6 +1,6 @@
import { mkdir, writeFile } from "fs/promises";
import { dirname, join } from "path";
import env from "#lib/server/config.js";
import env from "#lib/server/config.ts";
let sequence = 0;
+5 -5
View File
@@ -1,8 +1,8 @@
import { access } from "fs/promises";
import { beforeEach, describe, expect, it } from "vitest";
import { UploadRepo } from "#lib/server/db/index.js";
import { DirectoryService, FileService } from "#lib/server/services/index.js";
import { processPendingFileDeletions } from "#lib/server/services/fileDeletion.js";
import { UploadRepo } from "#lib/server/db/index.ts";
import { processPendingFileDeletions } from "#lib/server/services/file-deletion.ts";
import { DirectoryService, FileService } from "#lib/server/services/index.ts";
import {
ciphertext,
createDirectory,
@@ -11,8 +11,8 @@ import {
getQueuedDeletions,
newEntryParams,
resetDatabase,
} from "../helpers/database";
import { createStoredFile } from "../helpers/storage";
} from "../helpers/database.ts";
import { createStoredFile } from "../helpers/storage.ts";
const exists = (path: string) =>
access(path).then(
+1 -1
View File
@@ -4,7 +4,7 @@ import { join } from "path";
import { buffer } from "stream/consumers";
import type { ReadableStream } from "stream/web";
import { describe, expect, it } from "vitest";
import { createEncContentStream } from "#lib/server/storage/index.js";
import { createEncContentStream } from "#lib/server/storage/index.ts";
const createFile = async (content: string) => {
const path = join(await mkdtemp(join(tmpdir(), "arkvault-test-")), "file");
+2 -2
View File
@@ -1,5 +1,5 @@
import { beforeEach, describe, expect, it } from "vitest";
import { CategoryRepo, DirectoryRepo, UploadRepo, IntegrityError } from "#lib/server/db/index.js";
import { CategoryRepo, DirectoryRepo, UploadRepo, IntegrityError } from "#lib/server/db/index.ts";
import {
createCategory,
createDirectory,
@@ -7,7 +7,7 @@ import {
newEntryParams,
resetDatabase,
ciphertext,
} from "../helpers/database";
} from "../helpers/database.ts";
beforeEach(resetDatabase);
+2 -2
View File
@@ -1,8 +1,8 @@
import type { RequestEvent } from "@sveltejs/kit";
import { TRPCError } from "@trpc/server";
import { beforeEach, describe, expect, it } from "vitest";
import { appRouter } from "#trpc/router.server.js";
import { createDirectory, createUser, resetDatabase } from "../helpers/database";
import { appRouter } from "#trpc/router.server.ts";
import { createDirectory, createUser, resetDatabase } from "../helpers/database.ts";
const createCaller = (userId: number, clientId?: number) =>
appRouter.createCaller({
+4 -4
View File
@@ -1,10 +1,10 @@
import { createHash } from "crypto";
import { Readable } from "stream";
import { beforeEach, describe, expect, it } from "vitest";
import { UploadRepo } from "#lib/server/db/index.js";
import { FileService, UploadService } from "#lib/server/services/index.js";
import { isChunkUploaded } from "#lib/server/services/upload.js";
import { ciphertext, createUser, newEntryParams, resetDatabase } from "../helpers/database";
import { UploadRepo } from "#lib/server/db/index.ts";
import { FileService, UploadService } from "#lib/server/services/index.ts";
import { isChunkUploaded } from "#lib/server/services/upload.ts";
import { ciphertext, createUser, newEntryParams, resetDatabase } from "../helpers/database.ts";
beforeEach(resetDatabase);
+1 -1
View File
@@ -3,7 +3,7 @@ import { Kysely, PostgresDialect } from "kysely";
import { Migrator } from "kysely/migration";
import pg from "pg";
import type { TestProject } from "vitest/node";
import migrations from "../../src/lib/server/db/migrations";
import migrations from "../../src/lib/server/db/migrations/index.ts";
declare module "vitest" {
export interface ProvidedContext {
+1 -1
View File
@@ -5,7 +5,7 @@ import { vi } from "vitest";
const storagePath = await mkdtemp(join(tmpdir(), "arkvault-test-"));
vi.mock("#lib/server/config.js", async () => {
vi.mock("#lib/server/config.ts", async () => {
const { inject } = await import("vitest");
return {
default: {
+1 -1
View File
@@ -1,5 +1,5 @@
import { describe, expect, it } from "vitest";
import { BoundedQueue, Scheduler } from "#lib/utils/concurrency/index.js";
import { BoundedQueue, Scheduler } from "#lib/utils/concurrency/index.ts";
const tick = () => new Promise((resolve) => setTimeout(resolve, 0));
+1 -1
View File
@@ -7,7 +7,7 @@ import {
encryptChunk,
encryptString,
generateDataKey,
} from "#lib/shared/crypto/index.js";
} from "#lib/shared/crypto/index.ts";
describe("base64", () => {
it("round-trips large buffers", () => {
@@ -1,12 +1,12 @@
import { describe, expect, it } from "vitest";
import { encryptChunk, generateDataKey } from "#lib/shared/crypto/index.js";
import { encryptChunk, generateDataKey } from "#lib/shared/crypto/index.ts";
import { concatenateBuffers } from "#lib/shared/crypto/index.ts";
import {
CHUNK_SIZE,
createDecryptionStream,
getEncryptedRange,
getEncryptedSize,
} from "#lib/shared/format/index.js";
import { concatenateBuffers } from "#lib/shared/crypto/index.js";
} from "#lib/shared/format/index.ts";
const plaintext = Uint8Array.from({ length: 2 * CHUNK_SIZE + 12345 }, (_, i) => (i * 7) % 251);
@@ -1,5 +1,5 @@
import { describe, expect, it, vi } from "vitest";
import { FilesystemCache } from "#lib/features/filesystem/cache.svelte.js";
import { FilesystemCache } from "#lib/features/filesystem/cache.svelte.ts";
interface Entry {
id: number;
+3 -3
View File
@@ -1,8 +1,8 @@
import { beforeEach, describe, expect, it, vi } from "vitest";
import { keyring } from "#lib/client/keys/keyring.svelte.js";
import type { MasterKey } from "#lib/client/keys/types.js";
import { keyring } from "#lib/client/keys/keyring.svelte.ts";
import type { MasterKey } from "#lib/client/keys/types.ts";
vi.mock("#lib/client/storage/indexedDB/index.js", () => ({
vi.mock("#lib/client/storage/indexed-db/index.ts", () => ({
getClientKey: vi.fn(async () => null),
getMasterKeys: vi.fn(async () => []),
getHmacSecrets: vi.fn(async () => []),
+2 -2
View File
@@ -6,8 +6,8 @@ import {
getDecryptedSize,
getEncryptedRange,
getEncryptedSize,
} from "#lib/shared/format/index.js";
import { getContentRangeHeader, parseRangeHeader, resolveRange } from "#lib/shared/http.js";
} from "#lib/shared/format/index.ts";
import { getContentRangeHeader, parseRangeHeader, resolveRange } from "#lib/shared/http.ts";
describe("parseRangeHeader", () => {
it("parses byte ranges", () => {