Commit Graph

6 Commits

Author SHA1 Message Date
0xcathiefish 83551d9b4d Add build.sh for Cloudflare Pages env-based config injection
- Add build.sh that generates auth-config.js from environment variables
  (API_BASE_URL, GOOGLE_CLIENT_ID, ALLOWED_EMAILS) at build time
- Move email whitelist from hardcoded login.html to window.ALLOWED_EMAILS
  in auth-config.js, so it can be configured via env vars
- Reset auth-config.js to placeholder defaults in repo
- Update README.md and README_CN.md deployment docs for both options

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 15:45:33 +00:00
0xcathiefish 748e8bc6d2 Add personal email to auth whitelist for local branch
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 15:26:48 +00:00
0xcathiefish 9812bc7635 Replace custom canvas save/load with built-in save_load_adapter
- Remove custom canvas selector UI (HTML popup, CSS styles, toolbar button)
- Remove all custom canvas JS functions (toggleCanvasSelector, loadCanvas,
  saveCanvas, autoSaveCanvas, startAutoSave, newCanvas, deleteCanvas, etc.)
- Add createSaveLoadAdapter() implementing TradingView's save_load_adapter:
  - Chart layouts: localStorage index + backend API storage (no backend changes)
  - Study/Drawing/Chart templates: pure localStorage
- Enable load_last_chart and auto_save_delay in widget config
- Add DEV_MODE auth bypass for localhost development
- Update auth-config.js with production API URL and OAuth client ID
- Update README.md and README_CN.md feature descriptions

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 15:19:27 +00:00
0xcathiefish 2c3eec4742 Update README.md with a new line 2026-02-12 08:12:36 +00:00
0xcathiefish b33ef907d4 Upload files. 2026-02-12 08:11:37 +00:00
0xcathiefish 47fa783913 Upload files. 2026-02-12 08:10:28 +00:00