mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-06-29 16:12:06 -04:00
- Add WEEKDAYS_SUN export to calendar/utils.js for Sun-first column order - Add localStorage-persisted _weekStartSun state (key: cal-week-start) - Update _monthRange, _weekRange, _renderMonth, _renderWeek, _renderYear to respect the week-start preference - Add 'Week starts on' toggle (Mon/Sun button chips) in Calendar Settings - Setting takes effect immediately without closing the settings panel
This commit is contained in:
@@ -3,7 +3,9 @@
|
||||
// Pure constants + zero-state helpers for the calendar UI.
|
||||
// No DOM, no fetch, no global mutable state — safe to import anywhere.
|
||||
|
||||
export const WEEKDAYS = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'];
|
||||
export const WEEKDAYS = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'];
|
||||
export const WEEKDAYS_SUN = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];
|
||||
|
||||
|
||||
export const MONTHS = ['January', 'February', 'March', 'April', 'May', 'June',
|
||||
'July', 'August', 'September', 'October', 'November', 'December'];
|
||||
|
||||
Reference in New Issue
Block a user