mirror of
https://github.com/misenhower/splatoon3.ink.git
synced 2026-11-18 16:58:18 -06:00
A small Vue + Tailwind app in workers/updater/admin, served by the updater Worker on its own hostname (admin.splatoon3.ink, admin.dev.splatoon3.ink) behind Cloudflare Access: - Timeline: both lanes, credential renewals, and social posts on one time axis, a filterable run list, run details with per-updater timings and the run's own log lines, lane controls (run now, pause, scheduling), credential renewal, and a combined text log. - Social: the post log with errors, per-account posting switches, when each status last went to each account, and a preview that can post one status by hand after a confirmation. - Data: freshness of the core data files, the published file list, a check that the site serves the new data, and a cache purge. Worker side: - src/admin: the Access JWT check (jose; fails closed and only answers on ADMIN_HOSTNAME) and the API. Actions must be same-origin JSON POSTs, and the app is served with a strict CSP from the ADMIN_ASSETS binding. - Runs capture their console output (AsyncLocalStorage), so log lines belong to the run that printed them. The Scheduler keeps a post log and serves run details and log lines; RegionAuth keeps its last 24 renewals. - A manual run from the panel only posts to social when asked to. Shared code: - StatusGeneratorManager records what was posted or failed, and skips accounts turned off in private settings/social.json (the Node runner honours this too). app/social/admin.mjs previews and posts one status. - Updater results include their duration. Also: npm run admin:dev runs the panel against a simulated API, deploy scripts build the panel first, the dev environment's assets move to dev-assets.splatoon3.ink, and the lockfile drops entries nothing depends on any more. Not yet run against a deployed Worker or a real Access application. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
16 lines
460 B
HTML
16 lines
460 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<meta name="color-scheme" content="dark" />
|
|
<meta name="robots" content="noindex, nofollow" />
|
|
<meta name="theme-color" content="#0f0f14" />
|
|
<title>Splatoon3.ink · Admin</title>
|
|
</head>
|
|
<body>
|
|
<div id="app"></div>
|
|
<script type="module" src="/src/main.js"></script>
|
|
</body>
|
|
</html>
|