Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F995296
hello.page.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
475 B
Referenced Files
None
Subscribers
None
hello.page.ts
View Options
import
{
Context
}
from
"koa"
;
import
{
tempstream
}
from
"tempstream"
;
import
{
Page
}
from
"@sealcode/sealgen"
;
import
html
from
"../html"
;
export
const
actionName
=
"Hello"
;
export
default
new
(
class
HelloPage
extends
Page
{
// eslint-disable-next-line @typescript-eslint/no-unused-vars
async
canAccess
(
_
:
Context
)
{
return
{
canAccess
:
true
,
message
:
""
};
}
async
render
(
ctx
:
Context
)
{
return
html
(
ctx
,
"Hello"
,
tempstream
/* HTML */
`<div></div>`
);
}
})();
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Mon, Dec 23, 00:57 (4 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
556764
Default Alt Text
hello.page.ts (475 B)
Attached To
Mode
rPLAY Sealious playground
Attached
Detach File
Event Timeline
Log In to Comment