Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F22398054
sortable.page.tsx
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
901 B
Referenced Files
None
Subscribers
None
sortable.page.tsx
View Options
import
type
{
Context
}
from
"koa"
;
import
{
TempstreamJSX
}
from
"tempstream"
;
import
{
Page
}
from
"@sealcode/sealgen"
;
import
html
from
"../../html.js"
;
import
{
sortable
}
from
"@sealcode/sortable"
;
export
const
actionName
=
"SortableDemo"
;
export
default
new
(
class
SortableDemoPage
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
,
title
:
"SortableDemo"
,
description
:
""
,
body
:
(
<
div
>
<
h2
>
Short
list
<
/h2>
{
sortable
({
items
:
[
"One"
,
"Two"
,
"Three"
,
"Four"
,
"Five"
].
map
((
e
)
=>
(
<
div
>
{
e
}
<
/div>
)),
})}
<
h2
>
Long
list
<
/h2>
{
sortable
({
items
:
"a"
.
repeat
(
100
)
.
split
(
""
)
.
map
((
_
,
index
)
=>
<
div
>
{
index
}
<
/div>),
})}
<
/div>
),
});
}
})();
File Metadata
Details
Attached
Mime Type
application/javascript
Expires
Fri, Nov 27, 17:19 (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1221805
Default Alt Text
sortable.page.tsx (901 B)
Attached To
Mode
rREWRITE Configurable rewriter
Attached
Detach File
Event Timeline