Skip to content

Commit 65d4e36

Browse files
save file
1 parent aea7602 commit 65d4e36

File tree

1 file changed

+24
-8
lines changed

1 file changed

+24
-8
lines changed

blog/25-07-26/very-simple-http-proxy/very-simple-http-proxy.html

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,20 +58,19 @@
5858
;
5959

6060

61+
var ace;
62+
6163
var ext;
6264
var $;
6365
var datatype;
6466
var menumod;
6567
var keydown;
6668
var debug;
6769

68-
69-
var ace;
70-
7170
var menu;
7271

72+
var hdr;
7373
var example;
74-
7574
var log;
7675

7776

@@ -84,13 +83,21 @@
8483
menu = menumod();
8584

8685

87-
86+
hdr = mod['blog-hdr'];
8887
example = mod.example;
88+
log = mod['log-mod'];
8989

90+
hdr.initmod({ext,$});
9091
example.initmod({ext,$,menu,ace,on});
92+
log.initmod({ext,$});
93+
9194
example.btn.run = btn.run;
9295

93-
await example.init();
96+
await Promise.all([
97+
hdr.init(),
98+
example.init(),
99+
log.init(),
100+
]);
94101

95102

96103

@@ -198,7 +205,7 @@
198205
<body>
199206

200207

201-
<blog-hdr component=grp1 v2.0>
208+
<blog-hdr component=grp1>
202209
<h1 class=title>
203210
Very Simple Proxy
204211
</h1>
@@ -281,12 +288,15 @@ <h1 class=title>
281288

282289

283290

284-
<snippet-terminal-console id=example type=nodejs component v2.0 src='ex/very-simple-http-proxy.js'></snippet-terminal-console>
291+
<snippet-terminal-console id=example type=nodejs src='ex/very-simple-http-proxy.js' component></snippet-terminal-console>
285292

286293

287294
<iframe id=iframe></iframe>
288295

289296

297+
<log-mod component></log-mod>
298+
299+
290300
</body>
291301

292302

@@ -308,8 +318,14 @@ <h1 class=title>
308318

309319
function initdom(rootnode){
310320

321+
hdr.initdom();
322+
311323
example.initdom();
312324

325+
326+
log.initdom();
327+
328+
313329
}//initdom
314330

315331

0 commit comments

Comments
 (0)