Repository navigation
Commit 41a2006
committed
perf(web): stream media in the viewer, light thumbnails, race-free folder switching
- Viewer streams video/audio/images/PDF from their URL (byte ranges) instead
of downloading the whole file first; big photos use a ~1600px preview with
an "Original" button; text over 2 MB is range-fetched and no longer saved
back truncated; unplayable formats get a clear message.
- Grid tiles (Drive) and file rows (Shared Spaces) use cached ~20 KB WebP
thumbnails with versioned, immutable URLs.
- Folder switching: the old listing is cleared at once, a loading state is
shown, and stale responses are dropped, so another folder's files never
appear.
- Installer: /api/ no longer buffers responses and HTTP/2 is enabled after
certbot; docs gain a performance-tuning section for existing servers.1 parent fb1a479 commit 41a2006
9 files changed
Lines changed: 268 additions & 44 deletions
File tree
- apps/web/src
- app
- (app)
- drive
- spaces/[id]
- s/[token]
- components
- lib
- docs
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| |||
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| 75 | + | |
74 | 76 | | |
75 | 77 | | |
76 | 78 | | |
| |||
279 | 281 | | |
280 | 282 | | |
281 | 283 | | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
282 | 288 | | |
| 289 | + | |
| 290 | + | |
283 | 291 | | |
284 | 292 | | |
| 293 | + | |
285 | 294 | | |
286 | 295 | | |
287 | 296 | | |
| |||
290 | 299 | | |
291 | 300 | | |
292 | 301 | | |
| 302 | + | |
293 | 303 | | |
294 | 304 | | |
295 | 305 | | |
296 | 306 | | |
| 307 | + | |
297 | 308 | | |
298 | 309 | | |
299 | 310 | | |
| 311 | + | |
300 | 312 | | |
301 | 313 | | |
302 | 314 | | |
| |||
306 | 318 | | |
307 | 319 | | |
308 | 320 | | |
309 | | - | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
310 | 329 | | |
311 | 330 | | |
312 | 331 | | |
| |||
672 | 691 | | |
673 | 692 | | |
674 | 693 | | |
| 694 | + | |
675 | 695 | | |
676 | 696 | | |
677 | 697 | | |
| |||
1815 | 1835 | | |
1816 | 1836 | | |
1817 | 1837 | | |
| 1838 | + | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
1818 | 1844 | | |
1819 | 1845 | | |
1820 | 1846 | | |
| |||
1990 | 2016 | | |
1991 | 2017 | | |
1992 | 2018 | | |
| 2019 | + | |
1993 | 2020 | | |
1994 | 2021 | | |
1995 | 2022 | | |
| |||
2001 | 2028 | | |
2002 | 2029 | | |
2003 | 2030 | | |
2004 | | - | |
| 2031 | + | |
| 2032 | + | |
| 2033 | + | |
| 2034 | + | |
| 2035 | + | |
2005 | 2036 | | |
2006 | 2037 | | |
2007 | 2038 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| 86 | + | |
| 87 | + | |
85 | 88 | | |
| 89 | + | |
86 | 90 | | |
87 | 91 | | |
88 | | - | |
| 92 | + | |
89 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
90 | 98 | | |
91 | 99 | | |
92 | 100 | | |
| |||
162 | 170 | | |
163 | 171 | | |
164 | 172 | | |
| 173 | + | |
165 | 174 | | |
166 | 175 | | |
167 | 176 | | |
| |||
540 | 549 | | |
541 | 550 | | |
542 | 551 | | |
543 | | - | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
544 | 557 | | |
545 | 558 | | |
546 | 559 | | |
| |||
575 | 588 | | |
576 | 589 | | |
577 | 590 | | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
| 198 | + | |
199 | 199 | | |
200 | | - | |
| 200 | + | |
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| |||
0 commit comments