Add stock chart website with GitHub Pages deployment - #24
Open
flowerhere wants to merge 3 commits into
Open
Conversation
- Dark-themed single-page stock chart app (HTML/CSS/JS) - Fetches Yahoo Finance data via allorigins proxy (no API key needed) - Line chart with Chart.js; period selector (1D–5Y) - Quick-pick buttons for popular US/TW stocks - LocalStorage watchlist with live price refresh - GitHub Actions workflow to deploy stock-chart-website/ to GitHub Pages https://claude.ai/code/session_01UzLGFaiMcQcwmU4fBm551B
Switch from configure-pages/deploy-pages (requires OIDC environment) to JamesIves/github-pages-deploy-action which pushes to gh-pages branch directly — more compatible with forked repositories. https://claude.ai/code/session_01UzLGFaiMcQcwmU4fBm551B
Fixes: - Replace single proxy with 3-proxy fallback (corsproxy.io → allorigins → codetabs) - 8s AbortController timeout per proxy attempt eliminates indefinite hangs - Search button shows loading state; chart shows error card with retry button New features: - MA5 / MA20 / MA60 toggle buttons with colored dot indicators - Market indices ticker bar: S&P500, NASDAQ, 道瓊斯, 台灣加權, 恆生, 黃金, 原油 - Download chart as PNG with dark background - Tooltip now shows MA values alongside price https://claude.ai/code/session_01UzLGFaiMcQcwmU4fBm551B
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://claude.ai/code/session_01UzLGFaiMcQcwmU4fBm551B