|
10 | 10 | <meta charset=utf-8> |
11 | 11 |
|
12 | 12 | <title> |
13 | | - html component : web-console |
| 13 | + web-console |
14 | 14 | </title> |
15 | 15 |
|
16 | 16 | <meta name=description content=''> |
17 | 17 |
|
18 | | - <base href='https://ext-code.com/html-components/list/web-console/'> |
| 18 | + <base href='https://ext-code.com/html-components/list/web-console/web-console.html'> |
19 | 19 | <link rel=canonical href='https://ext-code.com/html-components/list/web-console/web-console.html'> |
20 | 20 |
|
21 | 21 | <meta name=viewport content='width=device-width, initial-scale=1'> |
22 | | - <link rel=icon href=''> |
| 22 | + <link rel=icon href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAMAAAAM7l6QAAAAaVBMVEVHcExfpvhYpPxapPtZo/lZpfxYpPtZpfxjp/Rxsv1ZpPpZpPtZpPpZpfxbpPheqPxcpvxorf1jqvxoputao/lbpPhmrP1ZpPtYo/tZo/hZpPtZpPqcyf+Rw/6Xxv+KwP6EvP53tf19uf1CLkbiAAAAHHRSTlMADp1YNLp7swf+YpU/wizc0vrpAiIX84VvHKlK4cmJ4wAAAVdJREFUKM+1ktmShCAMRVU2ARFxb5tF/f+PHIK92j1vM6myKuQYkns1y/4i8mEof6dlobX4hWHc09GtzfVSDZ/0qlvNg/Wr0SO7nOmlWb2zEN55Lj+WUsFat3O+ems3+g2HViLBuLfbdKaz8X5EkMnNBl2961tMsOuSanXr7N6iHOL+klqt3Y8r8yZuwRtGCCPyxgl3di0ODdrZYGgdA5H8wLXk1rUVpBQykeqY5Q/dcXgjajyNcfRNN2Z9P3TJbhKnB96OWzSHzzesCSGyThOjodEyeOxWpJZsEHioKcGxW4zc7LEzbCNv8KtoCit3SFwX40NLq7l+8wSRu3fEGLC7r/p07mDxYXl8gZ7RWBGKKXEcJ0GJzB8XFdH2SuESK/AAN5Ocri/2A5Yga5ZJ9+nPi7hk0FgBebr2xN2S8NJ9wxIhBZtShRCi5IRREQO2FpAUc5n9e/wA3jcXGxBAlmMAAAAASUVORK5CYII='> |
23 | 23 |
|
24 | 24 |
|
25 | 25 | <script src='https://ajaxorg.github.io/ace-builds/src-noconflict/ace.js'></script> |
26 | 26 | <script src='https://cdn.jsdelivr.net/npm/markdown-it/dist/markdown-it.min.js'></script> |
27 | 27 | <link rel=stylesheet href='/css/github-markdown-light.css'> |
28 | 28 |
|
29 | | -/* |
30 | | - <link rel=stylesheet href='https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css'> |
31 | | - <link rel=stylesheet href='https://cdn.jsdelivr.net/npm/wunderbaum@0/dist/wunderbaum.min.css'> |
32 | | - <script src='https://cdn.jsdelivr.net/npm/wunderbaum@0/dist/wunderbaum.umd.min.js'></script> |
33 | | -*/ |
34 | | - |
35 | | - |
| 29 | + |
36 | 30 | <script src='https://libs.ext-code.com/js/dom/component/v3.0/component.js?hdr'></script> |
37 | 31 |
|
38 | 32 | <script> |
39 | 33 |
|
| 34 | + |
| 35 | + var component = 'web-console'; |
| 36 | + var date = '2026-02-10'; |
| 37 | + var files = { |
| 38 | + 'source' : { |
| 39 | + 'latest' : null, |
| 40 | + 'v2.0' : null, |
| 41 | + }, |
| 42 | + 'examples' : { |
| 43 | + 'web-console-v2.0-test-1.html':null, |
| 44 | + 'web-console-v2.0-test-2.html':null, |
| 45 | + }, |
| 46 | + }; |
| 47 | + |
| 48 | + |
| 49 | + |
40 | 50 | var df=true,did='html' |
41 | 51 | ; |
42 | 52 |
|
|
51 | 61 | async function init(){ |
52 | 62 | console.log('init'); |
53 | 63 |
|
54 | | - md = markdownit(); |
| 64 | + md = markdownit({ |
| 65 | + html : true, |
| 66 | + breaks : false, |
| 67 | + linkify : true, |
| 68 | + linkTarget : '_blank', |
| 69 | + }); |
55 | 70 |
|
56 | | - await load(); |
57 | 71 |
|
58 | 72 | dirtree = mod['dir-tree']; |
59 | 73 | snippet = mod['snippet-html-console']; |
60 | 74 | editor = mod['web-editor']; |
61 | 75 | log = mod['log-mod']; |
62 | 76 |
|
63 | 77 |
|
64 | | - await mod.auto(); |
| 78 | + await Promise.all([ |
| 79 | + load(), |
| 80 | + mod.auto(), |
| 81 | + ]); |
65 | 82 |
|
66 | 83 |
|
67 | 84 | initdom(); |
@@ -200,22 +217,13 @@ <h3> |
200 | 217 | var html = md.render(md_txt); |
201 | 218 | $('#readme').innerHTML = html; |
202 | 219 |
|
| 220 | + var keys = Object.keys(files.examples); |
| 221 | + var initial = keys[0]; |
203 | 222 |
|
204 | | - var node = $('#demo-tree'); |
205 | | - |
206 | | - /* |
207 | | - var tree = new mar10.Wunderbaum({ |
208 | | - element:node, |
209 | | - source: files, |
210 | | - init:e=>{e.tree.setFocus()}, |
211 | | - activate:show |
212 | | - }); |
213 | | - */ |
214 | 223 | files = dirtree.build(files); |
215 | 224 | dirtree.display(files,{callback}); |
216 | 225 |
|
217 | | - |
218 | | - await show.examples('web-console-v2.0-test-2.html'); |
| 226 | + await show.examples(initial); |
219 | 227 | $('#view').style.display = ''; |
220 | 228 |
|
221 | 229 | }//initdom |
@@ -309,21 +317,6 @@ <h3> |
309 | 317 | }//get |
310 | 318 |
|
311 | 319 |
|
312 | | - |
313 | | - |
314 | | - var files = { |
315 | | - 'source' : { |
316 | | - 'latest' : null, |
317 | | - 'v2.0' : null, |
318 | | - }, |
319 | | - 'examples' : { |
320 | | - 'web-console-v2.0-test-1.html':null, |
321 | | - 'web-console-v2.0-test-2.html':null, |
322 | | - }, |
323 | | - }; |
324 | | - |
325 | | - |
326 | | - |
327 | 320 | </script> |
328 | 321 |
|
329 | 322 | </html> |
|
0 commit comments