File tree Expand file tree Collapse file tree 4 files changed +6
-20
lines changed
plugins/tomography/templates Expand file tree Collapse file tree 4 files changed +6
-20
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ install:
11
11
${BIN} /pip install -e .[clients]
12
12
${BIN} /pip install -e .[tests]
13
13
${BIN} /pip install pre-commit
14
- ${BIN} /pip install -e ../jupyterlite/py/jupyterlite-core
15
- ${BIN} /pip install -e ../jupyterlite/py/jupyterlite
14
+ # ${BIN}/pip install -e ../jupyterlite/py/jupyterlite-core
15
+ # ${BIN}/pip install -e ../jupyterlite/py/jupyterlite
16
16
17
17
assets :
18
18
rm caterva2/services/static/build/*
Original file line number Diff line number Diff line change 1
1
< input type ="number " min ="0 " max ="{{ pages - 1 }} " name ="i " value ="0 "
2
- hx-get ="{{ href }} " hx-target ="#image-div " xxhx-swap =" innerHTML show:top " >
2
+ hx-get ="{{ href }} " hx-target ="#image-div ">
3
3
4
- < div hx-get ="{{ href }}?i=0 " hx-trigger ="load " id ="image-div " xxhx-preserve > </ div >
4
+ < div hx-get ="{{ href }}?i=0 " hx-trigger ="load " id ="image-div "> </ div >
Original file line number Diff line number Diff line change @@ -1369,8 +1369,8 @@ async def unfold_file(
1369
1369
newsize = 0
1370
1370
if os .path .exists (dirname ):
1371
1371
# Traverse the directory and get the size for all files
1372
- for _ , relpath in utils .walk_files (dirname ):
1373
- newsize += os .path .getsize (relpath )
1372
+ for abspath , _ in utils .walk_files (dirname ):
1373
+ newsize += os .path .getsize (abspath )
1374
1374
total_size = get_disk_usage () + newsize
1375
1375
if total_size > settings .quota :
1376
1376
# Remove the directory if it exists
Original file line number Diff line number Diff line change 106
106
//showAlert(ev.detail.error, "danger");
107
107
}
108
108
} )
109
-
110
-
111
- document . body . addEventListener ( 'htmx:beforeRequest' , function ( evt ) {
112
- console . log ( 'beforeRequest' , window . scrollY ) ;
113
- sessionStorage . setItem ( 'scrollPosition' , window . scrollY ) ;
114
- } ) ;
115
-
116
- document . body . addEventListener ( 'htmx:afterSettle' , function ( evt ) {
117
- const scrollPosition = sessionStorage . getItem ( 'scrollPosition' ) ;
118
- console . log ( 'afterSwap' , window . scrollY , scrollPosition ) ;
119
- if ( scrollPosition ) {
120
- window . scrollTo ( 0 , scrollPosition ) ;
121
- }
122
- } ) ;
123
109
</ script >
124
110
125
111
</ body >
You can’t perform that action at this time.
0 commit comments