1515
1616 < meta name =description content =''>
1717
18- < base href ='https://ext-code.com/html-components/list/dir-tree/ '>
19- < link rel =canonical href ='https://ext-code.com/html-components/list/dir-tree/dir-tree.html '>
18+ < base href ='https://ext-code.com/html-components/list/ '>
19+ < link rel =canonical href ='https://ext-code.com/html-components/list/ '>
2020
2121 < meta name =viewport content ='width=device-width, initial-scale=1 '>
2222 < 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= '>
3131
3232 < script >
3333
34+
35+
36+ var component = 'file-mod' ;
37+ var date = '2026-02-09' ;
38+ var files = {
39+ 'source' : {
40+ 'v2.0' : null ,
41+ 'latest' : null ,
42+ } ,
43+ 'examples' : {
44+ 'filemod-v2.0-test.html' : null ,
45+ } ,
46+ } ;
47+
48+
49+
3450 var df = true , did = 'html'
3551 ;
3652
3753 var base = 'https://libs.ext-code.com/html/' ;
38- var component = 'dir-tree' ;
3954
4055 var ace ;
4156 var md ;
4661
4762
4863 async function init ( ) {
49- console . log ( 'init' ) ;
64+ debug ( 'init' ) ;
5065
51- md = markdownit ( ) ;
66+ md = markdownit ( {
67+ html : true ,
68+ breaks : false ,
69+ linkify : true ,
70+ linkTarget : '_blank' ,
71+ } ) ;
5272
53- await load ( ) ;
5473
5574 dirtree = mod [ 'dir-tree' ] ;
5675 snippet = mod [ 'snippet-html-console' ] ;
5776 editor = mod [ 'web-editor' ] ;
5877 log = mod [ 'log-mod' ] ;
5978
6079
61- await mod . auto ( ) ;
80+ await Promise . all ( [
81+ load ( ) ,
82+ mod . auto ( ) ,
83+ ] ) ;
6284
6385
6486 initdom ( ) ;
82104
83105 </ script >
84106
85- < style >
86107
108+ < link rel =stylesheet href ='../css/component.css '>
109+
110+ < style >
87111
88- html
89- {height : 100% ;font-family : arial}
90-
91-
92112 body
93- {/*height:calc(100% - 40px);*/ display : flex;flex-direction : column;gap : 20px ;align-items : center;margin : 20px ;padding-bottom : 200px }
94-
95-
96- body > *
97- {max-width : 1400px ;width : 100% ;padding : 0 20px ;}
98-
99- [component ], config
100- {display : none}
101-
102- input
103- {font-size : 16px ;padding : 5px 10px }
104- input [type = button ]
105- {cursor : pointer}
106- input [type = checkbox ]
107- {width : 15px ;height : 15px ;margin : 0 }
108-
109-
110- # demo-tree
111- {margin : 20px 0 ;height : auto !important ;overflow : visible;box-sizing : border-box;outline : none;border-radius : 5px ;
112- border : none !important ;
113- /*border:1px solid lightgray !important;*/
114- }
115-
116- # view-hdr
117- {padding : 10px ;font-weight : bold;background : rgba (173 , 216 , 230 , 0.5 );border : 1px solid lightgray;border-radius : 5px }
118-
119- # view
120- {border : 1px solid lightgray;border-radius : 5px ;padding : 10px }
121- web-editor
122- {}
123-
124-
125- .wunderbaum .wb-expander
126- {opacity : 1 !important ;transition : none !important }
127- .wb-row
128- {cursor : pointer}
129-
130-
131- .icon
132- {border : 1px solid gray;border-radius : 3px ;box-sizing : border-box;width : 30px ;height : 30px ;cursor : pointer}
133- .spc
134- {flex : 1 ;max-width : 200px }
113+ {margin-top : 90px }
135114
115+ html-components-hdr
116+ {position : fixed;z-index : 1 ;background : white;top : 0px ;padding-top : 20px }
136117
137118 </ style >
138119
142123
143124
144125 < html-components-hdr v2.0 component =grp1 >
145- < h2 class =title style ='top:20px '> dir-tree</ h2 >
146- < time slot =date datetime =2026-01-08 > 08 Jan 2026</ time >
126+ < h2 slot =title >
127+ </ h2 >
128+ < time slot =date datetime =2026-02-10 >
129+ </ time >
147130 </ html-components-hdr >
131+ < script >
132+ /*
133+ {
134+ let hdr = document.querySelector('html-components-hdr');
135+ hdr.querySelector('h2').textContent = component;
136+ hdr.querySelector('time').setAttribute('datetime',date);
137+ let d = new Date(date);
138+ let formatted = d.toLocaleDateString('en-GB',{day:'2-digit',month:'short',year:'numeric'});
139+ hdr.querySelector('time').textContent = formatted;
140+ }
141+ */
142+ </ script >
148143
149144
150145 < div id =readme class =markdown-body > </ div >
@@ -155,6 +150,9 @@ <h2 class=title style='top:20px'>dir-tree</h2>
155150
156151 < h3 >
157152 files
153+ < span style ='font-size:16px;font-weight:normal '>
154+ ( click to view )
155+ </ span >
158156 </ h3 >
159157
160158 < dir-tree component > </ dir-tree >
@@ -186,18 +184,6 @@ <h3>
186184
187185
188186
189- var files = {
190- 'source' : {
191- 'latest' : null ,
192- } ,
193- 'examples' : {
194- 'dir-tree-min.html' : null ,
195- 'dir-tree-simple.html' : null ,
196- } ,
197- } ;
198-
199-
200-
201187 //:
202188
203189
@@ -208,13 +194,11 @@ <h3>
208194 $ ( '#readme' ) . innerHTML = html ;
209195
210196
211- var node = $ ( '#demo-tree' ) ;
212-
213197 files = dirtree . build ( files ) ;
214198 dirtree . display ( files , { callback} ) ;
215199
216200
217- await show . examples ( 'dir-tree-min .html' ) ;
201+ await show . examples ( 'filemod-v2.0-test .html' ) ;
218202 $ ( '#view' ) . style . display = '' ;
219203
220204
255239 if ( ! txt ) return ;
256240 editor . setvalue ( txt ) ;
257241 editor . filename ( file ) ;
242+ editor . mode = 'html' ;
258243
259244 } //source
260245
0 commit comments