In the JS UI, turn each category of Activity into a collapsible section to save space #147

This commit is contained in:
Ian Renton
2026-09-18 15:45:23 +01:00
parent 81cd686a00
commit bf9b4ac68c
7 changed files with 126 additions and 51 deletions
+20 -20
View File
@@ -4,7 +4,7 @@ from data.activity import Activity
from data.band import Band
# General software
SOFTWARE_VERSION = "2.1"
SOFTWARE_VERSION = "2.2-pre"
# HTTP headers used for spot providers that use HTTP
HTTP_HEADERS = {"User-Agent": f"Spothole v{SOFTWARE_VERSION} (operated by {SERVER_OWNER_CALLSIGN})"}
@@ -13,10 +13,10 @@ HAMQTH_PRG = f"Spothole v{SOFTWARE_VERSION} operated by {SERVER_OWNER_CALLSIGN}"
# Activities
ACTIVITIES = [
Activity(
name="AMSAT",
name="Satellite",
comment_names=[],
description="Amateur Radio Satellites",
sig_type=ActivityType.WORLDWIDE,
description="Amateur Radio Satellite",
sig_type=ActivityType.TRADITIONAL,
icon="fa-satellite",
refs_globally_unique=False,
),
@@ -24,7 +24,7 @@ ACTIVITIES = [
name="EME",
comment_names=[],
description="Moonbounce",
sig_type=ActivityType.WORLDWIDE,
sig_type=ActivityType.TRADITIONAL,
icon="fa-moon",
refs_globally_unique=False,
),
@@ -32,7 +32,7 @@ ACTIVITIES = [
name="POTA",
comment_names=["POTA"],
description="Parks on the Air",
sig_type=ActivityType.WORLDWIDE,
sig_type=ActivityType.ADVENTURE,
ref_type=ActivityRefType.PARK,
ref_regex=r"[A-Z]{2}\-\d{4,5}|K\-TEST",
icon="fa-tree",
@@ -42,7 +42,7 @@ ACTIVITIES = [
name="SOTA",
comment_names=["SOTA"],
description="Summits on the Air",
sig_type=ActivityType.WORLDWIDE,
sig_type=ActivityType.ADVENTURE,
ref_type=ActivityRefType.SUMMIT,
ref_regex=r"[A-Z0-9]{1,3}\/[A-Z]{2}\-\d{3}",
icon="fa-mountain-sun",
@@ -52,7 +52,7 @@ ACTIVITIES = [
name="WWFF",
comment_names=["WWFF"],
description="World Wide Flora & Fauna",
sig_type=ActivityType.WORLDWIDE,
sig_type=ActivityType.ADVENTURE,
ref_type=ActivityRefType.PARK,
ref_regex=r"[A-Z0-9]{1,3}FF\-\d{4}",
icon="fa-seedling",
@@ -62,7 +62,7 @@ ACTIVITIES = [
name="GMA",
comment_names=["GMA"],
description="Global Mountain Activity",
sig_type=ActivityType.WORLDWIDE,
sig_type=ActivityType.ADVENTURE,
ref_type=ActivityRefType.SUMMIT,
ref_regex=r"[A-Z0-9]{1,3}\/[A-Z]{2}\-\d{3}",
icon="fa-person-hiking",
@@ -72,7 +72,7 @@ ACTIVITIES = [
name="WWBOTA",
comment_names=["WWBOTA", "BOTA"],
description="Worldwide Bunkers on the Air",
sig_type=ActivityType.WORLDWIDE,
sig_type=ActivityType.ADVENTURE,
ref_type=ActivityRefType.BUNKER,
ref_regex=r"B\/[A-Z0-9]{1,3}\-\d{3,4}",
icon="fa-radiation",
@@ -82,7 +82,7 @@ ACTIVITIES = [
name="HEMA",
comment_names=["HEMA"],
description="HuMPs Excluding Marilyns Award",
sig_type=ActivityType.WORLDWIDE,
sig_type=ActivityType.ADVENTURE,
ref_type=ActivityRefType.SUMMIT,
ref_regex=r"[A-Z0-9]{1,3}\/[A-Z]{3}\-\d{3}",
icon="fa-mound",
@@ -92,7 +92,7 @@ ACTIVITIES = [
name="IOTA",
comment_names=["IOTA"],
description="Islands on the Air",
sig_type=ActivityType.WORLDWIDE,
sig_type=ActivityType.ADVENTURE,
ref_type=ActivityRefType.ISLAND,
ref_regex=r"[A-Z]{2}\-\d{3}",
icon="fa-book-atlas",
@@ -102,7 +102,7 @@ ACTIVITIES = [
name="GMA Islands",
comment_names=[],
description="Global Mountain Activity - Islands",
sig_type=ActivityType.WORLDWIDE,
sig_type=ActivityType.ADVENTURE,
ref_type=ActivityRefType.ISLAND,
ref_regex=r"(([A-Z]{2}\-\d{3})|([A-Z0-9]{1,3}\/[A-Z]{2}\-\d{3}))",
icon="fa-person-hiking",
@@ -112,7 +112,7 @@ ACTIVITIES = [
name="ARLHS",
comment_names=["ARLHS"],
description="Amateur Radio Lighthouse Society",
sig_type=ActivityType.WORLDWIDE,
sig_type=ActivityType.ADVENTURE,
ref_type=ActivityRefType.LIGHTHOUSE,
ref_regex=r"[A-Z]{3}[\- ]\d{3,4}",
icon="fa-house-flood-water",
@@ -142,7 +142,7 @@ ACTIVITIES = [
name="SIOTA",
comment_names=["SIOTA"],
description="Silos on the Air",
sig_type=ActivityType.WORLDWIDE,
sig_type=ActivityType.ADVENTURE,
ref_type=ActivityRefType.SILO,
ref_regex=r"[A-Z]{2}\-[A-Z]{3}\d",
icon="fa-wheat-awn",
@@ -152,7 +152,7 @@ ACTIVITIES = [
name="WCA",
comment_names=["WCA"],
description="World Castles Award",
sig_type=ActivityType.WORLDWIDE,
sig_type=ActivityType.ADVENTURE,
ref_type=ActivityRefType.CASTLE,
ref_regex=r"[A-Z0-9]{1,3}\-\d{5}",
icon="fa-chess-rook",
@@ -184,7 +184,7 @@ ACTIVITIES = [
name="BOTA",
comment_names=[],
description="Beaches on the Air",
sig_type=ActivityType.WORLDWIDE,
sig_type=ActivityType.ADVENTURE,
ref_type=ActivityRefType.BEACH,
icon="fa-umbrella-beach",
refs_globally_unique=False,
@@ -215,7 +215,7 @@ ACTIVITIES = [
name="LLOTA",
comment_names=["LLOTA"],
description="Lagos y Lagunas on the Air",
sig_type=ActivityType.WORLDWIDE,
sig_type=ActivityType.ADVENTURE,
ref_type=ActivityRefType.LAKE,
ref_regex=r"LL[A-Z]{2}\-\d{4}",
icon="fa-water",
@@ -225,7 +225,7 @@ ACTIVITIES = [
name="Towers",
comment_names=["TOTA"],
description="Towers on the Air",
sig_type=ActivityType.WORLDWIDE,
sig_type=ActivityType.ADVENTURE,
ref_type=ActivityRefType.TOWER,
ref_regex=r"[A-Z]{2,3}R\-\d{4}",
icon="fa-tower-observation",
@@ -235,7 +235,7 @@ ACTIVITIES = [
name="Tiles",
comment_names=[],
description="Tiles on the Air",
sig_type=ActivityType.WORLDWIDE,
sig_type=ActivityType.ADVENTURE,
ref_type=ActivityRefType.GRID,
ref_regex=r"[A-Za-z]{2}[0-9]{2}[A-Za-z]{2}",
icon="fa-square",