Page MenuHomeSealhub

jdd-context.ts
No OneTemporary

jdd-context.ts

import type { JDDContext } from "@sealcode/jdd";
import { simpleJDDContext } from "@sealcode/jdd";
import { imageRouter } from "../image-router.js";
export const jdd_context: JDDContext = {
...simpleJDDContext,
render_image: async (image_id, args) => {
if (!image_id) {
return "";
}
const image_pointer = await simpleJDDContext.decode_file(image_id);
if (!image_pointer) {
return "";
}
return imageRouter.image(image_pointer.path, args);
},
};

File Metadata

Mime Type
text/x-java
Expires
Fri, Jan 24, 04:18 (1 d, 13 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
600684
Default Alt Text
jdd-context.ts (466 B)

Event Timeline