Profile memory
Comment cleanup
This commit is contained in:
fraxle
2026-05-18 23:02:41 +01:00
parent dded468bec
commit 85c415d1f5
16 changed files with 504 additions and 581 deletions
+7 -7
View File
@@ -1,14 +1,14 @@
// ════════════════════════════════════════════════════════════════════════
// almanac-calendar.js Extended event calendar for the "What's Coming"
// ------------------------------------------------------------------------
// almanac-calendar.js - Extended event calendar for the "What's Coming"
// panel and getUpcomingEvents() export.
//
// Includes all events from COSMIC_CALENDAR plus multi-year entries.
// Each entry has a `latHint`:
// Each entry has a 'latHint':
// null = global / no hint
// 'north' = better from northern latitudes
// 'south' = better from southern latitudes
// 'path:...' = specific eclipse path note
// ════════════════════════════════════════════════════════════════════════
// ------------------------------------------------------------------------
export const ALMANAC_CALENDAR = [
// 2026 events (covers rest of year from today)
@@ -133,7 +133,7 @@ export const ALMANAC_CALENDAR = [
type: 'meteor',
},
// ── 2027 ─────────────────────────────────────────────────────────────
// -- 2027 -------------------------------------------------------------
{
id: 'quadrantids-2027',
emoji: '☄️',
@@ -276,8 +276,8 @@ export function getVisibilityNote(entry, lat) {
return null;
}
// ─── MAIN ALMANAC EXPORT ─────────────────────────────────────────────────
// Returns events with peak dates in the next `days` days (default 90),
// --- MAIN ALMANAC EXPORT -------------------------------------------------
// Returns events with peak dates in the next 'days' days (default 90),
// sorted by peak date, with a visibility note added.
export function getUpcomingEvents(location, days = 90) {
const today = new Date();