Front-end dashboard that authenticates against the Zone01 auth proxy and uses GraphQL to render user profile info, audit stats, and skill charts.
- Login flow with JWT stored in
localStorage - Profile summary (name, login, email, campus, region, XP)
- Audit win/loss statistics with progress visualization
- Skill distribution bar chart rendered with SVG
- Responsive layout + in-page notifications
- Run a local static server from the repo root so
/xd/script.jsresolves:python3 -m http.server 8000
- Open
http://localhost:8000in a browser. - Log in with valid Zone01 credentials.
xd/script.jsboots the app and handles login.xd/getdata.jsruns GraphQL queries:- User profile + XP
- Audit history
- Skill transactions
xd/render.jsbuilds the UI for profile, audit stats, and the skill chart.xd/utils.jsshows notifications.
index.htmlHTML shell and root containersstyles.csstheme, layout, and animationsxd/script.jsauth flow and app bootstrapxd/getdata.jsGraphQL calls and data processingxd/render.jsDOM rendering helpersxd/utils.jsnotification helper
- The auth endpoint is
https://zone01-auth-proxy.onrender.com/auth. - GraphQL data comes from
https://learn.zone01oujda.ma/api/graphql-engine/v1/graphql. - Logging out clears the stored JWT.