From 4ad9148ca10d56ec97680cd8fc373fdde51ddbae Mon Sep 17 00:00:00 2001 From: limina1 Date: Thu, 21 Aug 2025 15:46:52 -0400 Subject: [PATCH] fix: Remove .ts extensions from imports to fix SvelteKit 500 error --- src/lib/components/ZettelEditor.svelte | 4 ++-- src/lib/utils/asciidoc_ast_parser.ts | 4 ++-- src/lib/utils/publication_tree_factory.ts | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/lib/components/ZettelEditor.svelte b/src/lib/components/ZettelEditor.svelte index 11d9e2b..52ec27f 100644 --- a/src/lib/components/ZettelEditor.svelte +++ b/src/lib/components/ZettelEditor.svelte @@ -7,8 +7,8 @@ metadataToTags, parseSimpleAttributes, } from "$lib/utils/asciidoc_metadata"; -import { createPublicationTreeFromContent, exportEventsFromTree } from "$lib/utils/publication_tree_factory.ts"; -import { getNdkContext } from "$lib/ndk.ts"; +import { createPublicationTreeFromContent, exportEventsFromTree } from "$lib/utils/publication_tree_factory"; +import { getNdkContext } from "$lib/ndk"; import Asciidoctor from "asciidoctor"; // Initialize Asciidoctor processor diff --git a/src/lib/utils/asciidoc_ast_parser.ts b/src/lib/utils/asciidoc_ast_parser.ts index 9f267ef..eb68105 100644 --- a/src/lib/utils/asciidoc_ast_parser.ts +++ b/src/lib/utils/asciidoc_ast_parser.ts @@ -7,10 +7,10 @@ import Processor from "asciidoctor"; import type { Document } from "asciidoctor"; -import { PublicationTree } from "../data_structures/publication_tree.ts"; +import { PublicationTree } from "../data_structures/publication_tree"; import { NDKEvent } from "@nostr-dev-kit/ndk"; import type NDK from "@nostr-dev-kit/ndk"; -import { getMimeTags } from "./mime.ts"; +import { getMimeTags } from "./mime"; export interface ASTSection { title: string; diff --git a/src/lib/utils/publication_tree_factory.ts b/src/lib/utils/publication_tree_factory.ts index 36c9a9c..2e0e0e8 100644 --- a/src/lib/utils/publication_tree_factory.ts +++ b/src/lib/utils/publication_tree_factory.ts @@ -5,12 +5,12 @@ * providing a clean bridge between AsciiDoc parsing and Nostr event publishing. */ -import { PublicationTree } from "$lib/data_structures/publication_tree.ts"; -import { SveltePublicationTree } from "$lib/components/publications/svelte_publication_tree.svelte.ts"; -import { parseAsciiDocAST } from "$lib/utils/asciidoc_ast_parser.ts"; +import { PublicationTree } from "$lib/data_structures/publication_tree"; +import { SveltePublicationTree } from "$lib/components/publications/svelte_publication_tree.svelte"; +import { parseAsciiDocAST } from "$lib/utils/asciidoc_ast_parser"; import { NDKEvent } from "@nostr-dev-kit/ndk"; import type NDK from "@nostr-dev-kit/ndk"; -import { getMimeTags } from "$lib/utils/mime.ts"; +import { getMimeTags } from "$lib/utils/mime"; export interface PublicationTreeFactoryResult { tree: PublicationTree;