diff options
Diffstat (limited to 'src/components/ScheduleInteractive.astro')
| -rw-r--r-- | src/components/ScheduleInteractive.astro | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/components/ScheduleInteractive.astro b/src/components/ScheduleInteractive.astro index 3dd6048..424b453 100644 --- a/src/components/ScheduleInteractive.astro +++ b/src/components/ScheduleInteractive.astro @@ -1,7 +1,7 @@ <script> // URLは src/data/schedule/config.ts で一元管理している(ページ移転時はそこだけ変える) import { scheduleAbsoluteUrl } from '@/data/schedule/config'; - import { parseDates, applyExclusions, toKey, keyToDate } from '@/lib/schedule-dates'; + import { parseDates, applyExclusions, toKey, keyToDate, entryDates } from '@/lib/schedule-dates'; const CATEGORY_DEFS = [ { icon: '👶', label: '子育て' }, @@ -63,17 +63,7 @@ } row.dataset.category = category; - const dates = new Set(parseDates(dateText)); - // 審議会の「毎月1回(11月12日、…も開催)」のように、 - // 時間・会場欄に追加の開催日が書かれている場合がある。 - if (type === 'meeting') { - for (const key of parseDates(timeText)) dates.add(key); - } - // イベントの「(11月4日を除く)」を反映する。 - if (type === 'event') { - // 時間欄の「(11月4日を除く)」を日付セル側の集合に反映する。 - applyExclusions(dates, timeText); - } + const dates = new Set(entryDates(type, dateText, timeText)); entries.push({ type, |
