Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F1262440
jdd-context.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
466 B
Referenced Files
None
Subscribers
None
jdd-context.ts
View Options
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
Details
Attached
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)
Attached To
Mode
rPHOTOAPP photo-app-demo
Attached
Detach File
Event Timeline
Log In to Comment