fine there

This commit is contained in:
Julius Marminge committed 2026-02-28 23:16:03 -08:00
1 parent ad79b5a4a3
commit 700579bb3f
4 files changed
+8 -11

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
import path from "node:path";
import { ATTACHMENTS_ROUTE_PREFIX } from "./imageMime.ts";
export const ATTACHMENTS_ROUTE_PREFIX = "/attachments";
export function normalizeAttachmentRelativePath(rawRelativePath: string): string | null {
const normalized = path.normalize(rawRelativePath).replace(/^[/\\]+/, "");
-2
View File
@@ -1,7 +1,5 @@
import Mime from "@effect/platform-node/Mime";
export const ATTACHMENTS_ROUTE_PREFIX = "/attachments";
export const IMAGE_EXTENSION_BY_MIME_TYPE: Record<string, string> = {
"image/avif": ".avif",
"image/bmp": ".bmp",
@@ -37,12 +37,8 @@ import {
OrchestrationProjectionPipeline,
type OrchestrationProjectionPipelineShape,
} from "../Services/ProjectionPipeline.ts";
import { attachmentRouteToRelativePath } from "../../attachmentPaths.ts";
import {
ATTACHMENTS_ROUTE_PREFIX,
inferImageExtension,
parseBase64DataUrl,
} from "../../imageMime.ts";
import { ATTACHMENTS_ROUTE_PREFIX, attachmentRouteToRelativePath } from "../../attachmentPaths.ts";
import { inferImageExtension, parseBase64DataUrl } from "../../imageMime.ts";
export const ORCHESTRATION_PROJECTOR_NAMES = {
projects: "projection.projects",
+5 -2
View File
@@ -55,8 +55,11 @@ import { Open } from "./open";
import { ServerConfig } from "./config";
import { GitCore } from "./git/Services/GitCore.ts";
import { tryHandleProjectFaviconRequest } from "./projectFaviconRoute";
import { normalizeAttachmentRelativePath, resolveAttachmentRelativePath } from "./attachmentPaths";
import { ATTACHMENTS_ROUTE_PREFIX } from "./imageMime.ts";
import {
ATTACHMENTS_ROUTE_PREFIX,
normalizeAttachmentRelativePath,
resolveAttachmentRelativePath,
} from "./attachmentPaths";
/**
* ServerShape - Service API for server lifecycle control.