Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F21589637
collections-subject.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
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
application/javascript
Expires
Sat, Nov 7, 18:38 (49 m, 24 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1182094
Default Alt Text
collections-subject.ts (534 B)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline