{
  "name": "SchoolPro - School Management",
  "short_name": "SchoolPro",
  "description": "Complete school management platform for administrators, teachers, and parents",
  "start_url": "/?source=pwa",
  "display": "standalone",
  "display_override": [
    "window-controls-overlay",
    "tabbed",
    "standalone",
    "minimal-ui"
  ],
  "background_color": "#ffffff",
  "theme_color": "#2563eb",
  "orientation": "portrait-primary",
  "scope": "/",
  "id": "/",
  "lang": "en",
  "dir": "ltr",
  "edge_side_panel": {
    "preferred_width": 400
  },
  "icons": [
    {
      "src": "/icons/icon-192.png",
      "sizes": "192x192",
      "type": "image/png",
      "purpose": "any maskable"
    },
    {
      "src": "/icons/icon-512.png",
      "sizes": "512x512",
      "type": "image/png",
      "purpose": "any maskable"
    },
    {
      "src": "/icons/icon-192.svg",
      "sizes": "192x192",
      "type": "image/svg+xml",
      "purpose": "any"
    },
    {
      "src": "/icons/icon-512.svg",
      "sizes": "512x512",
      "type": "image/svg+xml",
      "purpose": "any"
    }
  ],
  "shortcuts": [
    {
      "name": "Dashboard",
      "short_name": "Dashboard",
      "description": "View your dashboard",
      "url": "/dashboard?source=pwa-shortcut",
      "icons": [
        {
          "src": "/icons/icon-192.svg",
          "sizes": "192x192",
          "type": "image/svg+xml",
          "purpose": "any maskable"
        }
      ]
    },
    {
      "name": "Attendance",
      "short_name": "Attendance",
      "description": "Mark attendance",
      "url": "/teacher/attendance?source=pwa-shortcut",
      "icons": [
        {
          "src": "/icons/icon-192.svg",
          "sizes": "192x192",
          "type": "image/svg+xml",
          "purpose": "any maskable"
        }
      ]
    },
    {
      "name": "Homework",
      "short_name": "Homework",
      "description": "View homework",
      "url": "/parent/homework?source=pwa-shortcut",
      "icons": [
        {
          "src": "/icons/icon-192.svg",
          "sizes": "192x192",
          "type": "image/svg+xml",
          "purpose": "any maskable"
        }
      ]
    },
    {
      "name": "Fees",
      "short_name": "Fees",
      "description": "Check fee status",
      "url": "/parent/fees?source=pwa-shortcut",
      "icons": [
        {
          "src": "/icons/icon-192.svg",
          "sizes": "192x192",
          "type": "image/svg+xml",
          "purpose": "any maskable"
        }
      ]
    },
    {
      "name": "Notifications",
      "short_name": "Notifs",
      "description": "View notifications",
      "url": "/parent/notifications?source=pwa-shortcut",
      "icons": [
        {
          "src": "/icons/icon-192.svg",
          "sizes": "192x192",
          "type": "image/svg+xml",
          "purpose": "any maskable"
        }
      ]
    }
  ],
  "file_handlers": [
    {
      "action": "/upload",
      "accept": {
        "text/csv": [".csv"],
        "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": [".xlsx"],
        "application/vnd.ms-excel": [".xls"],
        "application/pdf": [".pdf"],
        "text/plain": [".txt"],
        "image/jpeg": [".jpg", ".jpeg"],
        "image/png": [".png"]
      },
      "icons": [
        {
          "src": "/icons/icon-192.svg",
          "sizes": "192x192",
          "type": "image/svg+xml",
          "purpose": "any maskable"
        }
      ]
    }
  ],
  "launch_handler": {
    "client_mode": "focus-existing"
  },
  "protocol_handlers": [
    {
      "protocol": "web+schoolpro",
      "url": "/?source=protocol&name=%s"
    },
    {
      "protocol": "web+schoolpro-attendance",
      "url": "/teacher/attendance?source=protocol&id=%s"
    },
    {
      "protocol": "web+schoolpro-student",
      "url": "/admin/students?source=protocol&id=%s"
    },
    {
      "protocol": "mailto",
      "url": "/contact?subject=%s"
    }
  ],
  "share_target": {
    "action": "/share-receiver",
    "method": "GET",
    "enctype": "application/x-www-form-urlencoded",
    "params": {
      "title": "title",
      "text": "text",
      "url": "url"
    }
  },
  "categories": ["education", "productivity"],
  "screenshots": [
    {
      "src": "/icons/icon-512.svg",
      "sizes": "512x512",
      "type": "image/svg+xml",
      "form_factor": "wide",
      "label": "SchoolPro Dashboard"
    },
    {
      "src": "/icons/icon-512.svg",
      "sizes": "512x512",
      "type": "image/svg+xml",
      "form_factor": "narrow",
      "label": "SchoolPro Mobile"
    }
  ],
  "prefer_related_applications": false,
  "handle_links": "preferred",
  "widgets": [
    {
      "name": "Attendance Summary",
      "description": "Quick attendance overview",
      "tag": "attendance-widget",
      "template": "/widgets/attendance.html",
      "ms_ac_template": "/widgets/attendance.html",
      "sizes": ["1x1", "2x1", "2x2"],
      "icons": [
        {
          "src": "/icons/icon-192.svg",
          "sizes": "192x192",
          "type": "image/svg+xml"
        }
      ]
    },
    {
      "name": "Recent Homework",
      "description": "View recent homework assignments",
      "tag": "homework-widget",
      "template": "/widgets/homework.html",
      "ms_ac_template": "/widgets/homework.html",
      "sizes": ["1x2", "2x2"],
      "icons": [
        {
          "src": "/icons/icon-192.svg",
          "sizes": "192x192",
          "type": "image/svg+xml"
        }
      ]
    },
    {
      "name": "Upcoming Fees",
      "description": "Fee payment reminders",
      "tag": "fees-widget",
      "template": "/widgets/fees.html",
      "ms_ac_template": "/widgets/fees.html",
      "sizes": ["1x1", "2x1"],
      "icons": [
        {
          "src": "/icons/icon-192.svg",
          "sizes": "192x192",
          "type": "image/svg+xml"
        }
      ]
    }
  ]
}
