Skip to content

Commit ea88e81

Browse files
save file
1 parent ee9a201 commit ea88e81

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

  • utils/misc/nodejs-terminal/html/webcontainer-fs/examples

utils/misc/nodejs-terminal/html/webcontainer-fs/examples/setup.html

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,17 @@
1010
<script src='https://libs.ext-code.com/js/dom/component/v3.0/component.js?hdr'></script>
1111

1212

13+
<style>
14+
15+
html
16+
{font-family:arial;height:750px}
17+
18+
.icon
19+
{border:1px solid gray;border-radius:3px;box-sizing:border-box;width:32px;height:32px;cursor:pointer}
20+
21+
22+
</style>
23+
1324
<script init>
1425
console.log('webcontainer-fs test');
1526
console.log();
@@ -35,6 +46,25 @@
3546
}//init
3647

3748

49+
(async()=>{
50+
51+
mod.stack.add;
52+
53+
({ext} = await import('https://libs.ext-code.com/js/io/ext-loader/ext-loader.m.js'));
54+
55+
var promise = ext.load.libs(
56+
'js/dom/$.js.api',
57+
'js/core/datatype.js',
58+
'js/dom/menumod/menumod.js',
59+
'js/dom/keydown/keydown.js'
60+
);
61+
[$,datatype,menumod,keydown] = await promise;
62+
63+
mod.stack.complete;
64+
65+
})();
66+
67+
3868
</script>
3969

4070
<style>
@@ -55,6 +85,9 @@
5585

5686
<webcontainer-fs component=page></webcontainer-fs>
5787

88+
89+
<log-mod component></log-mod>
90+
5891
</body>
5992

6093

0 commit comments

Comments
 (0)