{
  "name": "游泳課程管理系統",
  "short_name": "游泳管理",
  "description": "專業的游泳課程管理系統，支持學生管理、課程排程、進度追蹤等功能",
  "version": "2026.05.08",
  "start_url": "/",
  "display": "standalone",
  "background_color": "#0c4a6e",
  "theme_color": "#0284c7",
  "orientation": "portrait-primary",
  "scope": "/",
  "lang": "zh-HK",
  "categories": ["education", "productivity", "sports"],
  "icons": [
    {
      "src": "icons/pwa-icon-192.png",
      "sizes": "192x192",
      "type": "image/png",
      "purpose": "any"
    },
    {
      "src": "icons/pwa-icon-512.png",
      "sizes": "512x512",
      "type": "image/png",
      "purpose": "any"
    },
    {
      "src": "icons/pwa-icon-maskable-192.png",
      "sizes": "192x192",
      "type": "image/png",
      "purpose": "maskable"
    },
    {
      "src": "icons/pwa-icon-maskable-512.png",
      "sizes": "512x512",
      "type": "image/png",
      "purpose": "maskable"
    }
  ],
  "shortcuts": [
    {
      "name": "查看課程表",
      "short_name": "課程表",
      "description": "快速查看今日課程安排",
      "url": "/?view=schedule",
      "icons": [{ "src": "icons/pwa-icon-192.png", "sizes": "192x192", "type": "image/png" }]
    },
    {
      "name": "學生管理",
      "short_name": "學生",
      "description": "管理學生信息",
      "url": "/?view=students",
      "icons": [{ "src": "icons/pwa-icon-192.png", "sizes": "192x192", "type": "image/png" }]
    },
    {
      "name": "新增預約",
      "short_name": "預約",
      "description": "快速新增學生預約",
      "url": "/?view=booking",
      "icons": [{ "src": "icons/pwa-icon-192.png", "sizes": "192x192", "type": "image/png" }]
    },
    {
      "name": "游泳進度",
      "short_name": "進度",
      "description": "查看與更新學生泳式星級與級別",
      "url": "/?ui=mobile&tab=progress",
      "icons": [{ "src": "icons/pwa-icon-192.png", "sizes": "192x192", "type": "image/png" }]
    }
  ],
  "share_target": {
    "action": "/share",
    "method": "POST",
    "enctype": "multipart/form-data",
    "params": {
      "title": "title",
      "text": "text",
      "url": "url",
      "files": [
        {
          "name": "schedule",
          "accept": [".csv", ".json", ".ics"]
        }
      ]
    }
  },
  "protocol_handlers": [
    {
      "protocol": "web+swimming",
      "url": "/handle-schedule?url=%s"
    }
  ],
  "edge_side_panel": {
    "preferred_width": 400
  },
  "launch_handler": {
    "client_mode": ["navigate-existing", "focus-existing"]
  }
}
