diff options
| author | Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> | 2026-10-25 21:29:16 +0900 |
|---|---|---|
| committer | Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> | 2026-10-25 21:29:16 +0900 |
| commit | fa73b6a9f36268986af68192f65978539f4d059c (patch) | |
| tree | 6a4f27d54823d35da29f68ef37b93bba37f71cf2 /src/components/ParksTable.astro | |
| parent | a01062f43d36112c00d5c007ac9d488c14d8fb0d (diff) | |
parks: シェルター等の統合と編集画面の刷新
パーゴラ・東屋を「シェルター等」に統合し、編集画面に確認チェック・遊具別入力・時計・選択行ハイライトを追加した。周辺公園と周辺施設の自治体名を補完し、公園データの文字化けを修正した。
Diffstat (limited to 'src/components/ParksTable.astro')
| -rw-r--r-- | src/components/ParksTable.astro | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/components/ParksTable.astro b/src/components/ParksTable.astro index 65b8412..f0864d6 100644 --- a/src/components/ParksTable.astro +++ b/src/components/ParksTable.astro @@ -92,12 +92,6 @@ function facilityBadges(p: Park): Badge[] { if (p["遊具"]) { badges.push({ kind: "toy", label: "遊具", title: `遊具: ${p["遊具"]}` }); } - if (p["パーゴラ"]) { - badges.push({ kind: "pergola", label: "パーゴラ", title: `パーゴラ: ${p["パーゴラ"]}` }); - } - if (p["東屋"]) { - badges.push({ kind: "azumaya", label: "東屋", title: `東屋: ${p["東屋"]}` }); - } const ball = p["ボール遊び"]; if (ball && ball !== "禁止") { const label = ball.includes("一部") ? "ボール遊び一部可" : "ボール遊び可"; @@ -126,10 +120,10 @@ function facTokens(p: Park): string { if (play.includes("滑り台") || play.includes("滑台")) tokens.push("slide"); if (play.includes("複合遊具")) tokens.push("complex"); if (play.includes("ロープウェイ")) tokens.push("rope"); - if (p["パーゴラ"]) tokens.push("pergola"); - if (p["東屋"]) tokens.push("azumaya"); const ball = p["ボール遊び"]; if (ball && ball !== "禁止") tokens.push("ball"); + const clock = (p["時計"] || "").trim(); + if (clock === "○" || clock === "あり" || clock === "有") tokens.push("clock"); if (p["南西部指定管理"]) tokens.push("cm"); // ピクニック広場・芝生広場・テーブルのある公園。 const picnicText = `${p["公園名"] || ""} ${p["種別"] || ""} ${p["その他設備"] || ""} ${p["備考"] || ""}`; @@ -150,8 +144,10 @@ function facTokens(p: Park): string { const DETAIL_FIELDS: { key: string; icon: string }[] = [ { key: "ベンチ・椅子", icon: "🪑" }, { key: "テーブル", icon: "🍽" }, + { key: "シェルター等", icon: "⛱" }, { key: "防災用具", icon: "🧯" }, { key: "遊具", icon: "🎠" }, + { key: "時計", icon: "⏰" }, { key: "駐車場", icon: "🅿" }, { key: "その他設備", icon: "🔧" }, { key: "備考", icon: "" }, |
