Skip to content

Mac-Andreas/mac-andreas.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mac-andreas.github.io / dashboard

Static GitHub Pages site that surfaces anonymous usage stats for every app under the Mac-Andreas umbrella. Reads from the Supabase project defined in ../sql/qawno_events.sql via aggregate views that hide per-row data.

Layout

index.html              Landing page — one card per app, live counts.
dashboard/
  index.html            Per-app dashboard (uses ?app=<slug>).
  config.js             Supabase URL + anon key + apps list.
  landing.js            Card grid renderer.
  app.js                Per-app charts + tables.
  styles.css            Dark, system-font UI.
  privacy.html          Static privacy policy.

Deploying

  1. Push these files to the root of Mac-Andreas/mac-andreas.github.io.
  2. Fill in dashboard/config.js with your Supabase URL + anon key.
  3. Visit https://mac-andreas.github.io/dashboard/.

Adding another app

  1. Apply ../sql/qawno_events.sql variant for the new app (rename qawno_*<slug>_*).
  2. Add a row to the apps table.
  3. Append an entry to config.js's apps array.
  4. Charts in app.js reference the qawno_* views by name today; for a different slug, update the view names in that file or wrap them in a helper that takes the slug.

Releases

No releases published

Packages

 
 
 

Contributors