An app for logging board climbs
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: update home sorting

+26 -5
+1 -1
deno.json
··· 1 1 { 2 - "version": "0.0.3", 2 + "version": "0.0.5", 3 3 "compilerOptions": { 4 4 "lib": [ 5 5 "deno.ns",
+1 -1
www/manifest.json
··· 27 27 "type": "image/png" 28 28 } 29 29 ], 30 - "start_url": ".", 30 + "start_url": "/", 31 31 "display": "standalone", 32 32 "theme_color": "#797ed2", 33 33 "background_color": "#1a202c"
+10 -2
www/routes/home.ts
··· 37 37 const all = await loadBenchmarks() 38 38 this.benchmarks = all 39 39 .filter((b) => b.mb_type === this.mbType) 40 - .sort((a, b) => b.repeats - a.repeats) 40 + .sort((a, b) => 41 + a.grade - b.grade || 42 + a.sandbag_score - b.sandbag_score || 43 + a.repeats - b.repeats 44 + ) 41 45 this.applyFilters() 42 46 this.renderList() 43 47 } catch { ··· 68 72 const all = await loadBenchmarks() 69 73 this.benchmarks = all 70 74 .filter((b) => b.mb_type === this.mbType) 71 - .sort((a, b) => b.repeats - a.repeats) 75 + .sort((a, b) => 76 + a.grade - b.grade || 77 + a.sandbag_score - b.sandbag_score || 78 + a.repeats - b.repeats 79 + ) 72 80 this.applyFilters() 73 81 this.renderList() 74 82 }
+1 -1
www/utils/updates.ts
··· 12 12 13 13 if ('serviceWorker' in navigator) { 14 14 navigator.serviceWorker 15 - .register('/dist/worker.js') 15 + .register('/dist/worker.js', { scope: '/' }) 16 16 .then((registration) => 17 17 console.log('Service Worker registered:', registration.scope) 18 18 )
+13
www/worker.ts
··· 22 22 '/static/icons/tool.svg', 23 23 '/dist/index.js', 24 24 '/manifest.json', 25 + '/static/images/logo.png', 26 + '/static/images/black-hold.png', 27 + '/static/images/hold-red.png', 28 + '/static/images/hold-white.png', 29 + '/static/images/hold-yellow.png', 30 + '/static/images/hold-woodenA.png', 31 + '/static/images/hold-woodenB.png', 32 + '/static/images/hold-woodenC.png', 33 + '/static/images/mbsetup-2016.png', 34 + '/static/images/mbsetup-2017.png', 35 + '/static/images/mbsetup-2019.png', 36 + '/static/images/mbsetup-2020.png', 37 + '/static/images/mbsetup-2024.png', 25 38 ]) 26 39 27 40 cleanOldCaches(