Skip to content

Commit 0db61c7

Browse files
save file
1 parent fca941a commit 0db61c7

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

utils/misc/nodejs-terminal/v2.0/nodejs-terminal-v2.0.html

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@
197197

198198

199199
<misc-hdr component=grp>
200-
<img slot=title class=title src='images/nodejs-terminal.png' style='top:-15px;height:80px' alt='Node.js Terminal'>
200+
<img slot=title class=title src='images/nodejs-terminal.png' style='top:-25px;height:80px' alt='Node.js Terminal'>
201201
<time slot=date datetime=2026-04-22>
202202
22 Apr 2026
203203
</time>
@@ -340,8 +340,14 @@
340340
var viewport = await vm.new();
341341
viewport.pos({x:200,y:200});
342342

343-
var obj = await mod.component('snippet-console',{component:true});
344-
viewport.body.append(obj.__host);
343+
var attrs = {component:true,'v2.0':true,'web-editor':'fullsize=false',exportparts:"root: inner-label"};
344+
var opts = {par:viewport.body};
345+
var snippet_console = await mod.component('snippet-console',attrs,opts);
346+
347+
snippet_console.__host.style.height = '100%';
348+
snippet.console.insert_rule('#root {height:100%}');
349+
//viewport.body.append(obj.__host);
350+
snippet_console.ctx = {xyz:123};
345351

346352
}//snippet-console
347353

0 commit comments

Comments
 (0)