How liuziyi20081020/swim-web works
This is a browser-based swim-training tracker. Its main workflow records a swimmer’s date, stroke distances, duration, and notes in browser storage, then refreshes best-performance, recent-record, and calendar views. The sampled code shows those refresh calls and the shared storage reads and writes; it does not show the HTML wiring or script loading, so those connections are omitted. The repository has no README, and the HTML and styling were not sampled.
Main entry points: training.js Training Entry · best.js Best Records · week.js Recent Records · calendar.js Calendar View
Components 6
Training Records
- Training Entry
training.js
Progress Views
- Best Records
best.js - Recent Records
week.js - Calendar View
calendar.js
Browser Persistence
- Swim Records
Other components
- Page Shell
index.html
Connections 7
- Training Entry → Swim Records: saves records
training.js - Swim Records → Best Records: reads records
best.js - Swim Records → Recent Records: reads records
week.js - Swim Records → Calendar View: reads records
calendar.js - Training Entry → Best Records: refreshes
training.js - Training Entry → Recent Records: refreshes
training.js - Training Entry → Calendar View: refreshes
training.js