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 140140
141141
142142 # hdr
143- {}
143+ {display : flex; gap : 20 px ; align-items : center }
144144
145145 # hldr
146146 {padding : 10px ;border : 2px solid lightgray;box-sizing : border-box;flex : 1 }
156156
157157 </ style >
158158
159+
159160 < link rel =stylesheet href ='https://cdn.jsdelivr.net/npm/@xterm/xterm@5.5.0/css/xterm.css ' anonymous >
160161
162+
161163 </ head >
162164
163165
174176 < div id =hdr >
175177
176178 < file-mod component > </ file-mod >
179+ < div id =filename > </ div >
180+ < div id =size > </ div >
177181
178182 </ div >
179183
196200
197201 var webcontainer ;
198202
199-
203+ var ui = { } ;
200204 var complete = { } ;
201205
202206
222226 } //initdom
223227
224228
229+ //:
230+
231+
232+ ui . info = function ( ) {
233+
234+ var str = '' ;
235+ if ( cur . file ) {
236+ str = cur . file . name ;
237+ }
238+ $ ( '#hdr #filename' ) . textContent = str ;
239+
240+ var str = '' ;
241+ if ( cur . blob ) {
242+ str = cur . blob . size ;
243+ }
244+ $ ( '#hdr #size' ) . textContent = str ;
245+
246+ } //info
247+
248+
225249 //:
226250
227251
234258
235259 cur . file = file ;
236260 cur . blob = blob ;
237-
261+ ui . info ( ) ;
238262
239263 } //load
240264
You can’t perform that action at this time.
0 commit comments