File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121 @focus =" $emit('set-active', pane.id)" />
2222 <Transition name =" skeleton-fade" >
2323 <div v-if =" loadingPaneId === pane.id" class =" pane-skeleton ml-10" >
24- <div v-for =" i in skeletonWidths" class =" skeleton-line" :style =" { width: `${i}%`}" />
24+ <div v-for =" i in skeletonWidths" class =" skeleton-line"
25+ :style =" { width: i / (isMobile ? 1 : 2) + '%'}" />
2526 </div >
2627 </Transition >
2728 </div >
Original file line number Diff line number Diff line change @@ -7,15 +7,15 @@ type FileEntry = {
77 type : "file" | "dir" ;
88} ;
99
10- const MAX_FILE_SIZE = 5 * 1024 * 1024 ; // 5 MB
10+ // const MAX_FILE_SIZE = 5 * 1024 * 1024; // 5 MB
1111const textHeaders = { "Content-Type" : "text/plain; charset=utf-8" } ;
1212
1313async function readFile ( path : string ) : Promise < { content : string ; status : number } > {
1414 try {
15- const stat = await Deno . stat ( path ) ;
16- if ( stat . size > MAX_FILE_SIZE ) {
17- return { content : `File too large (${ ( stat . size / 1024 / 1024 ) . toFixed ( 1 ) } MB). Max: 5 MB.` , status : 413 } ;
18- }
15+ // const stat = await Deno.stat(path);
16+ // if (stat.size > MAX_FILE_SIZE) {
17+ // return { content: `File too large (${(stat.size / 1024 / 1024).toFixed(1)} MB). Max: 5 MB.`, status: 413 };
18+ // }
1919 return { content : await Deno . readTextFile ( path ) , status : 200 } ;
2020 } catch ( e ) {
2121 console . error ( `Error reading ${ path } :` , e ) ;
You can’t perform that action at this time.
0 commit comments