An app for logging board climbs
0
fork

Configure Feed

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

fix: issue where swipe to switch doesn't work

+14 -12
+4
scripts/moon.ts
··· 421 421 Deno.exit(1) 422 422 }) 423 423 } 424 + 425 + function getAccessToken(): Promise<string> { 426 + return Promise.resolve('') 427 + }
+3 -10
www/models/schema.ts
··· 1 - export { 2 - AppSettings, 3 - AppState, 4 - ClimbLogEntry, 5 - ClimbSession, 6 - StoreState, 7 - } from './schema/v0.ts' 8 - import type { AppSettings, StoreState } from './schema/v0.ts' 1 + export { AppState, ClimbLogEntry, ClimbSession } from './schema/v0.ts' 2 + import { AppSettings, StoreState } from './schema/v0.ts' 9 3 10 4 export const storeMigrationConfig = { 11 5 currentVersion: '0.1.0', ··· 27 21 migrations: [], 28 22 } 29 23 30 - // Satisfy TypeScript — these imports are referenced by migration config types 31 - export type { AppSettings, StoreState } 24 + export { AppSettings, StoreState }
+7 -2
www/routes/climb.ts
··· 138 138 const next = nav.currentIndex + direction 139 139 if (next < 0 || next >= nav.filteredIds.length) return 140 140 const nextId = nav.filteredIds[next] 141 - app.setNav({ ...nav, climbId: nextId, currentIndex: next }) 141 + app.setNav({ 142 + ...nav, 143 + climbId: nextId, 144 + currentIndex: next, 145 + climb: undefined, 146 + }) 142 147 globalThis.location.hash = `/climb/${nextId}` 143 148 } 144 149 ··· 153 158 154 159 const boardHtml = config.image 155 160 ? html` 156 - <div class="board-wrap"> 161 + <div class="board-wrap" style="aspect-ratio: ${CANVAS_WIDTH} / ${height}"> 157 162 <img 158 163 src="${config.image}" 159 164 alt="${config.label} board layout"