Skip to content

Homepage: live demo of the web UI (like Unagikuma) - #24

Merged
githubflyideas merged 2 commits into
mainfrom
fix-pages-homepage
Nov 30, 2026
Merged

githubflyideas merged 2 commits into
mainfrom
fix-pages-homepage

Conversation

@githubflyideas

@githubflyideas githubflyideas commented Nov 30, 2026 •

Copy link
Copy Markdown
Owner

The Pages site showed two raw markdown lines from a leftover root index.html. It is now a live, read-only demo of the real web UI, built the way Unagikuma's demo is:

  • scripts/demo/build.sh copies static/index.html + echarts, makes the asset path relative, injects demo.js and a ribbon (en/zh/ja) linking to the download.
  • scripts/demo/demo.js answers every /api/ call in the browser from a deterministic model of 9 links — evening congestion, loss bursts (◆), a reroute 3 days back (visible in 7d / COMPARE), a down VPN (red LED), a host whose DNS fails (amber LED). Computed from the clock: new rounds keep arriving, every window up to 93d works, nothing to record or commit. Writes return a "changes are not saved" notice; export downloads a real netping-targets file.
  • .github/workflows/demo.yml replaces the Jekyll workflow and _config.yml; root index.html removed (the binary embeds static/, not it).
  • README links to the demo.

Checked in headless Chromium: 4h/1d/7d/93d windows, target switching, COMPARE, target editor, no console errors.

https://claude.ai/code/session_01PDkCxVnNxU2xqQiGzVKmd5


Generated by Claude Code

The root index.html held only two bare markdown image lines (old hero8/hero9
screenshots) with no front matter, so the Pages site showed them as raw
text. Remove it so Jekyll uses README.md as the homepage, and add a small
_config.yml for the title, description and theme.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PDkCxVnNxU2xqQiGzVKmd5
Like Unagikuma's demo: scripts/demo/build.sh copies static/index.html and
echarts, makes the asset path relative, and loads scripts/demo/demo.js first.
demo.js answers every /api/ request in the browser from a model of nine
links (evening congestion, loss bursts, a reroute three days back, a link
that is down, a host whose DNS fails), computed from the clock so rounds keep
arriving and COMPARE has a past. Writes answer with a 'changes are not saved'
notice; a ribbon (en/zh/ja) links to the download.

The Jekyll workflow and _config.yml are replaced by .github/workflows/demo.yml;
README links to the demo.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PDkCxVnNxU2xqQiGzVKmd5
@githubflyideas githubflyideas changed the title Fix GitHub Pages homepage Homepage: live demo of the web UI (like Unagikuma) Nov 30, 2026
@githubflyideas
githubflyideas merged commit e009984 into main Nov 30, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants