File tree Expand file tree Collapse file tree
utils/misc/nodejs-terminal/v2.0 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 179179 {height : 100% }
180180
181181
182+ # icons
183+ {display : flex;align-items : center;gap : 5px }
182184
183185 .icon
184186 {width : 32px ;height : 32px ;border : 1px solid gray;border-radius : 3px ;box-sizing : border-box;cursor : pointer}
218220 < div id =size > </ div >
219221 </ div >
220222
221- < img id =niframe title =iframe class =icon >
222- < img id =snippet-editor title =editor class =icon >
223- < img id =snippet-console title =snippet-console class =icon >
223+ < div id =icons >
224+ < img id =niframe title =iframe class =icon >
225+ < img id =snippet-editor title =editor class =icon >
226+ < img id =snippet-console title =snippet-console class =icon >
227+ </ div >
228+
224229 </ div >
225230
226231 < div id =hldr >
595600
596601 mod . stack . complete ;
597602
598- webcontainer . on ( 'server-ready' , ( port , url ) => term . write ( 'server-ready :' + url + '-' + port ) ) ;
603+
604+ webcontainer . on ( 'server-ready' , ( port , url ) => {
605+ console . log ( 'server-ready' , url , port ) ;
606+ term . write ( 'server-ready :' + url + ' --- ' + port ) ;
607+
608+ } ) ;
609+ webcontainer . on ( 'port' , ( port , type , url ) => {
610+ console . log ( port , type , url )
611+ term . write ( 'port :' type + ' --- ' + url + ' --- ' + port ) ;
612+
613+ } ) ;
614+
599615
600616 await webcontainer . mount ( files ) ;
601617 term . write ( 'spawn jsh ...\r\n' )
You can’t perform that action at this time.
0 commit comments