Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F8922335
collections-subject.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
534 B
Referenced Files
None
Subscribers
None
collections-subject.ts
View Options
import
*
as
Errors
from
"../../response/errors"
;
import
{
NoActionSubject
}
from
"../subject"
;
import
CollectionSubject
from
"../subject-types/collection-subject"
;
export
default
class
CollectionsSubject
extends
NoActionSubject
{
getName
=
()
=>
"collections"
;
async
getChildSubject
(
path_element
:
string
)
{
if
(
this
.
app
.
collections
[
path_element
]
===
undefined
)
{
throw
new
Errors
.
BadSubjectPath
(
`Unknown collection: '
${
path_element
}
'.`
);
}
return
new
CollectionSubject
(
this
.
app
.
collections
[
path_element
]);
}
}
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Sat, Sep 20, 14:29 (19 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
929139
Default Alt Text
collections-subject.ts (534 B)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline
Log In to Comment