Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F22424698
index.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
540 B
Referenced Files
None
Subscribers
None
index.js
View Options
const
Markdown
=
require
(
'./markdown/markdown.html'
);
const
Navbar
=
require
(
'./navbar/navbar.html'
);
const
components
=
{
Markdown
,
Navbar
,
};
function
register
(
pluginComponents
)
{
for
(
let
i
=
0
;
i
<
pluginComponents
.
length
;
i
++
)
{
const
name
=
pluginComponents
[
i
].
name
;
if
(
components
[
name
])
throw
new
Error
(
`Plugins registration process failed. There have been naming conflicts that have to be resolved first:
${
name
}
`
);
components
[
name
]
=
pluginComponents
[
i
];
}
}
module
.
exports
=
{
components
,
register
,
};
File Metadata
Details
Attached
Mime Type
application/javascript
Expires
Sat, Nov 28, 04:10 (1 d, 2 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1230251
Default Alt Text
index.js (540 B)
Attached To
Mode
rSEALPAGE Sealpage
Attached
Detach File
Event Timeline