--- // パブリックコメントの一覧。データは src/data/schedule/pubcomments.json から生成する // (日別一覧の「受付中」表示も同じJSONを使う)。 import pubcomments from '@/data/schedule/pubcomments.json'; const pad = (n: number) => String(n).padStart(2, '0'); const now = new Date(); const todayKey = `${now.getFullYear()}-${pad(now.getMonth() + 1)}-${pad(now.getDate())}`; const reiwa = (iso: string) => { const [y, m, d] = iso.split('-').map(Number); const year = y - 2018 === 1 ? '令和元年' : `令和${y - 2018}年`; return `${year}${m}月${d}日`; }; const items = pubcomments.map((p) => ({ ...p, state: todayKey < p.from ? 'upcoming' : todayKey > p.to ? 'ended' : 'open', toLabel: p.from.slice(0, 4) === p.to.slice(0, 4) ? reiwa(p.to).replace(/^令和\d+年|^令和元年/, '') : reiwa(p.to), noteText: p.note ? (p.note.endsWith('。') ? p.note : `${p.note}。`) : '', })); const groups = [ { key: 'open', label: '募集中' }, { key: 'upcoming', label: 'これからの募集' }, { key: 'ended', label: '終了した募集' }, ] as const; ---
市は、計画や条例の案について市民の意見を募るパブリックコメント(市民意見公募手続)を行っています。最新の募集状況は、市のパブリックコメントのページでご確認ください。
{ groups.map((group) => { const list = items.filter((item) => item.state === group.key); if (list.length === 0) return null; return ( <>{group.label}
提出方法や、素案を閲覧できる場所は、それぞれのページをご覧ください。
(注){reiwa(todayKey)}時点の情報です。