Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.
JavaScript apple-watchbodyweightdockerfitnessfitness-trackergymhealthiosmcpnodejspasskeysprogressive-web-applicationspwareactself-hostedself-hostingvitewebauthnweightliftingworkout-tracker
/* How a page arrives, like Settings on the iPhone: going one level deeper (a settings page from
Settings) slides it in from the right, going back up slides the parent in from the left, and
everything else (tabs, a fresh load) keeps the soft fade. Read at mount, from the path it
replaces. */
export function pageMotion(from, to, navType) {
// The tabs are the top level: Home is '/', not the parent of every other tab.
if (!from || from === to || from === '/' || to === '/') return 'fade'
const deeper = to.startsWith(from.endsWith('/') ? from : from + '/')
const upper = from.startsWith(to.endsWith('/') ? to : to + '/')
if (deeper && navType !== 'POP') return 'push'
if (upper && navType === 'POP') return 'pop'
return 'fade'
}