馃悕馃悕馃悕
1
2$css(`
3 .orb-container {
4 color: var(--main-solid);
5 line-height: 1.5rem;
6 height: 100%;
7 overflow-y: scroll;
8 }
9`);
10
11export async function main(target, orb) {
12 const container = document.createElement("div");
13 container.classList = "orb-container";
14
15 const parserModule = await import(`/code/orb/parse.js`);
16 const buildModule = await import(`/code/orb/build.js`);
17
18 const parsed = await parserModule.parse(orb);
19
20 //await parserModule.debugParse("test.orb");
21
22 await buildModule.build(container, parsed.nodes, parsed.source);
23
24 target.appendChild(container);
25
26 return { replace: true };
27}
28