Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F3010214
context.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
498 B
Referenced Files
None
Subscribers
None
context.ts
View Options
import
{
Context
,
Field
}
from
"../../../main.js"
;
export
default
class
ContextField
extends
Field
<
Context
,
Context
,
Record
<
string
,
unknown
>
>
{
typeName
=
"context"
;
async
isProperValue
(
context
:
Context
,
value
:
Context
)
{
if
(
value
instanceof
Context
)
{
return
Field
.
valid
();
}
else
{
return
Field
.
invalid
(
context
.
app
.
i18n
(
"invalid_context"
));
}
}
async
encode
(
_
:
Context
,
value
:
Context
|
null
)
{
if
(
value
===
null
)
{
return
null
;
}
return
value
.
toDBEntry
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Wed, May 7, 19:38 (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
636314
Default Alt Text
context.ts (498 B)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline
Log In to Comment