Page MenuHomeSealhub

index.js
No OneTemporary

Authored By
Unknown
Size
540 B
Referenced Files
None
Subscribers
None

index.js

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

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)

Event Timeline