aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components/ParksTable.astro
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/ParksTable.astro')
-rw-r--r--src/components/ParksTable.astro8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/components/ParksTable.astro b/src/components/ParksTable.astro
index f0864d6..17841cc 100644
--- a/src/components/ParksTable.astro
+++ b/src/components/ParksTable.astro
@@ -123,13 +123,15 @@ function facTokens(p: Park): string {
const ball = p["ボール遊び"];
if (ball && ball !== "禁止") tokens.push("ball");
const clock = (p["時計"] || "").trim();
- if (clock === "○" || clock === "あり" || clock === "有") tokens.push("clock");
+ if (clock === "○" || clock === "あり" || clock === "有" || clock === "1") tokens.push("clock");
if (p["南西部指定管理"]) tokens.push("cm");
// ピクニック広場・芝生広場・テーブルのある公園。
const picnicText = `${p["公園名"] || ""} ${p["種別"] || ""} ${p["その他設備"] || ""} ${p["備考"] || ""}`;
if (
(p["テーブル"] || "").trim() ||
p["種別"] === "広場" ||
+ p["草地広場"] ||
+ p["多目的広場"] ||
picnicText.includes("芝生") ||
picnicText.includes("ピクニック") ||
picnicText.includes("広場")
@@ -145,6 +147,8 @@ const DETAIL_FIELDS: { key: string; icon: string }[] = [
{ key: "ベンチ・椅子", icon: "🪑" },
{ key: "テーブル", icon: "🍽" },
{ key: "シェルター等", icon: "⛱" },
+ { key: "草地広場", icon: "🌿" },
+ { key: "多目的広場", icon: "🏟" },
{ key: "防災用具", icon: "🧯" },
{ key: "遊具", icon: "🎠" },
{ key: "時計", icon: "⏰" },
@@ -211,6 +215,8 @@ function searchIndex(p: Park): string {
p["トイレ"],
p["水飲み場"],
p["給水"],
+ p["草地広場"] ? "草地広場" : "",
+ p["多目的広場"] ? "多目的広場" : "",
p["ボール遊び"],
...DETAIL_FIELDS.map((f) => p[f.key]),
]