Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F9582325
root-subject.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
479 B
Referenced Files
None
Subscribers
None
root-subject.js
View Options
var
Sealious
=
require
(
"sealious"
);
var
ResourcesSubject
=
require
(
"./resources-subject.js"
);
var
RootSubject
=
function
(){
this
.
name
=
"Root"
;
this
.
get_child_subject
=
function
(
key
){
switch
(
key
){
case
"resources"
:
return
ResourcesSubject
;
default
:
throw
new
Sealious
.
Errors
.
BadSubjectPath
(
`No child subject with key '
${
key
}
' in RootSubject.`
)
}
}
}
RootSubject
.
prototype
=
Object
.
create
(
Sealious
.
Subject
.
prototype
)
module
.
exports
=
new
RootSubject
();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 11, 06:35 (3 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
983896
Default Alt Text
root-subject.js (479 B)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline
Log In to Comment