Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: echo-cool-coding/cool-coding
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: hugo
Choose a base ref
...
head repository: echo-cool-coding/cool-coding
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 18 commits
  • 31 files changed
  • 4 contributors

Commits on Oct 14, 2026

  1. Merge pull request #14 from echo-cool-coding/hugo

    Build the site with Hugo instead of Docusaurus
    echo-cool authored Oct 14, 2026
    Configuration menu
    Copy the full SHA
    7a385fc View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2026

  1. Add Run buttons and reading progress (same as compilenrun.com)

    Run buttons (assets/js/runner.js, shared with compilenrun.com; text in
    Chinese on this site):
    - Python (Pyodide, with numpy/pandas/matplotlib), JavaScript and
      TypeScript (type-checked) in Web Workers with Stop, PHP 8.4
      (php-wasm), SQL on SQLite or PostgreSQL (PGlite), and HTML/DOM
      examples in a sandboxed preview frame. Everything runs in the
      reader's browser.
    - Edit and Undo edits; examples that build on earlier ones offer to run
      those first. Loaded only on pages with such code blocks.
    
    Reading progress (main.js, stored in localStorage as cnr_progress):
    - "标记为已完成" under each tutorial page, also set automatically when
      the reader reaches the end after 20 seconds.
    - Sidebar ticks and an "已完成 n / N 页" bar, per-section counts on
      tutorial index cards, and "继续学习" on the home page.
    
    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_01Am69wraskGLJ3SrHmW4jpb
    echo-cool and claude committed Oct 15, 2026
    Configuration menu
    Copy the full SHA
    24bb204 View commit details
    Browse the repository at this point in the history

Commits on Oct 16, 2026

  1. Sync runner.js with Compile-N-Run (public CNRRunner entry points, dat…

    …a-cnr-norun regions)
    
    Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_011YFtKkR5PXrLtPsrW7xXT5
    echo-cool and claude committed Oct 16, 2026
    Configuration menu
    Copy the full SHA
    066e16f View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2026

  1. Add reader accounts and learning sync (Google, GitHub, One Tap) like …

    …compilenrun.com
    
    Sign-in popup with Google, GitHub and Google One Tap, a learning dashboard
    at /learn/, per-lesson learning tools (read marks, bookmarks, notes), a
    profile page at /profile/, and the privacy text for them, all in Chinese.
    The scripts are the bilingual copies shared with Compile-N-Run; the API is
    the separate echocool-worker on www.echo.cool with its own D1 database.
    A Playwright smoke test covers the popup, the tools, /learn/ and /profile/.
    
    Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_011YFtKkR5PXrLtPsrW7xXT5
    echo-cool and claude committed Oct 22, 2026
    Configuration menu
    Copy the full SHA
    6ecdba1 View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2026

  1. Add Ask AI, page quizzes and "was this page helpful" votes

    The Chinese port of compilenrun.com's AI assistant (streamed answers about
    the current page, Turnstile-protected), the 开始测验 quiz and the 👍/👎
    votes with an optional comment, backed by echocool-worker. Mocked browser
    tests cover the votes, the Ask AI panel and the quiz.
    
    Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_011YFtKkR5PXrLtPsrW7xXT5
    echo-cool and claude committed Oct 23, 2026
    Configuration menu
    Copy the full SHA
    cff2e62 View commit details
    Browse the repository at this point in the history
  2. Add 微信扫码登录: follow the 公众号 and send a code to sign in

    The sign-in popup gains a WeChat option that shows the account's QR code
    and a 6-digit code; the reader follows the account and sends the code in
    the chat, and the page signs in once echocool-worker confirms it. The
    profile page can link and unlink WeChat. Appears once the Worker has the
    account's AppID configured.
    
    Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_011YFtKkR5PXrLtPsrW7xXT5
    echo-cool and claude committed Oct 23, 2026
    Configuration menu
    Copy the full SHA
    c19bbb8 View commit details
    Browse the repository at this point in the history
  3. Open the login popup on 微信扫码登录 by default, QR code first

    Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_011YFtKkR5PXrLtPsrW7xXT5
    echo-cool and claude committed Oct 23, 2026
    Configuration menu
    Copy the full SHA
    338b702 View commit details
    Browse the repository at this point in the history
  4. WeChat login shows a per-login QR code when available (scan to follow…

    … and sign in)
    
    Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_011YFtKkR5PXrLtPsrW7xXT5
    echo-cool and claude committed Oct 23, 2026
    Configuration menu
    Copy the full SHA
    b4cec1e View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2026

  1. 微信公众号切换为已认证服务号「科技侧影」:更新二维码与名称

    Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_011YFtKkR5PXrLtPsrW7xXT5
    echo-cool and claude committed Oct 26, 2026
    Configuration menu
    Copy the full SHA
    ba8ff3d View commit details
    Browse the repository at this point in the history
  2. 公众号名称改为「代码酷笔记」

    Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_011YFtKkR5PXrLtPsrW7xXT5
    echo-cool and claude committed Oct 26, 2026
    Configuration menu
    Copy the full SHA
    7026f53 View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2026

  1. 账户菜单显示微信头像;同步共享的 auth-ui.js

    Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
    echo-cool and claude committed Oct 27, 2026
    Configuration menu
    Copy the full SHA
    7eaee43 View commit details
    Browse the repository at this point in the history
  2. 微信网页授权域名校验文件 MP_verify_JOTGdJXJ6BaZEIax.txt

    Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
    echo-cool and claude committed Oct 27, 2026
    Configuration menu
    Copy the full SHA
    1472f39 View commit details
    Browse the repository at this point in the history

Commits on Oct 28, 2026

  1. 登录邀请不再自动发起微信扫码登录(同步共享的 auth-ui.js)

    每位访客浏览第二页时自动弹出的登录框会直接申请一张微信登录二维码,每天约 2800 次却无人扫码,
    白白消耗 D1 每日写入额度。现在邀请框只显示“微信登录”按钮,读者自己点开登录才出二维码。
    
    Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
    echo-cool and claude committed Oct 28, 2026
    Configuration menu
    Copy the full SHA
    3bb976d View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2026

  1. 登录邀请:读者指向或点触登录框后即显示微信登录二维码(同步共享的 auth-ui.js)

    自动弹出的登录邀请不再要求先点“微信登录”按钮:鼠标移到登录框上、点触或在框内按键即开始扫码登录。
    无视弹窗的读者仍然不会消耗二维码 ticket 和 D1 写入额度。
    
    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_014b1odzzcyDGCekeXCns12u
    echo-cool and claude committed Nov 1, 2026
    Configuration menu
    Copy the full SHA
    f0187c0 View commit details
    Browse the repository at this point in the history
  2. 问一问 AI:人机验证出错时显示错误码,不再提示不存在的“下方验证”

    interaction-only 的 Turnstile 出错时不会显示验证框,原提示却让读者“完成下方的验证”。现在按错误码给出
    具体提示(站点配置、浏览器不支持、系统时间等),并在出错后重新获取 token,而不是一直重复旧错误。
    
    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_014b1odzzcyDGCekeXCns12u
    echo-cool and claude committed Nov 1, 2026
    Configuration menu
    Copy the full SHA
    fdd1ec2 View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2026

  1. 登录邀请:阅读约 8 秒后自动弹出并直接显示微信登录二维码(同步共享的 auth-ui.js)

    为了让读者关注公众号,登录框在任意教程页面打开约 8 秒后自动弹出,并立即生成扫码登录二维码。
    仍然每个标签页最多一次,关闭后暂停两周,已登录读者不会看到。延迟可在 account-menu.html 的
    data-auth-invite-delay 中调整。
    
    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_014b1odzzcyDGCekeXCns12u
    echo-cool and claude committed Nov 2, 2026
    Configuration menu
    Copy the full SHA
    18c446d View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2026

  1. Configuration menu
    Copy the full SHA
    1255892 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    917de7d View commit details
    Browse the repository at this point in the history
Loading