Page MenuHomeSealhub

jdd-context.ts
No OneTemporary

jdd-context.ts

import { simpleJDDContext, JDDContext } from "@sealcode/jdd";
import { imageRouter } from "../image-router.js";
export const jdd_context = {
...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);
},
} as JDDContext;

File Metadata

Mime Type
text/x-java
Expires
Thu, Jan 23, 19:55 (1 d, 1 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
601453
Default Alt Text
jdd-context.ts (431 B)

Event Timeline