9685336903
feat(client): photos API client + expose auth token
...
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-24 21:18:43 +08:00
07b0299438
fix(web): scope 16MB body limit to photo routes only
...
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-24 21:15:52 +08:00
e8f3f1674d
feat(web): per-user photo endpoints (list/upload/get/delete) behind JWT
...
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-24 21:12:14 +08:00
29cbf524e9
feat(routes): AuthUser extractor validating Bearer JWT
...
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-24 21:08:42 +08:00
9d93a33bae
fix(photos): serialize save to enforce quota under concurrency; avoid empty-dir leak
...
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-24 21:07:05 +08:00
3af4893a81
feat(photos): per-user image store with size/count/path-safety guards
...
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-24 21:03:04 +08:00
1186d80475
fix(auth): fail loudly on JWT encode error instead of returning empty token
...
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-24 21:00:21 +08:00
e1820d0ec8
feat(auth): issue/verify username-bearing HS256 JWT
...
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-24 20:57:37 +08:00
42639856b2
docs(photo-wall): server-storage design spec + implementation plan
...
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-24 20:55:03 +08:00
d240c128dc
feat(photo-wall): client-only photo wall behind #photo login entry
...
已部署到线上(frontend-only)。本提交把工作区里已上线但未提交的实现固化为分支基线。
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-24 20:55:03 +08:00
5652ccc2f0
docs: 移除 GitHub origin 远程,文档改为仅 gitea 一个远程
...
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-23 20:17:04 +08:00
d2ff88bc4d
feat(start): 补齐竖屏背景图(portrait 全套 webp)并重新验证部署
...
- portrait/ 加入 No.1~5.webp + Night.webp(由 Pictures/portrait 源图
用 sharp 转 webp,quality 82,体积 ~0.1~0.6MB)
- 前端 build 后两套图(landscape/portrait)均打包,已部署到
8.130.143.54:8548 并验证(title=CCStart,health 200)
- 更新部署文档:重新验证日期、portrait 集说明、转换工具改用 sharp
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-23 20:14:08 +08:00
Ryan
68df772ba5
feat(ui): 全站文字默认不可选(输入框等可编辑区例外)
...
body 设 user-select:none,避免拖选问候语/时间/导航等装饰文字;
input/textarea/contenteditable 及 [data-selectable] 仍可正常选中复制。
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-23 14:08:43 +08:00
Ryan
25791f9268
perf(start): 优化高分屏卡顿 + 背景图按横竖屏切换
...
性能:
- 光标圆环去掉 mixBlendMode:difference(跟随时触发全屏重合成,
高分屏掉帧主因),并删除位置弹簧平滑,改为 1:1 跟手
- .glass-panel 的 backdrop-filter 模糊 20px→10px,每帧重算开销减半
背景:
- 横/竖图分别放 landscape//portrait/ 子目录(同名)
- 新增 useMediaQuery hook,按 (orientation: portrait) 选图,
转屏实时切换;竖图缺失自动回退同名横图
- 更新 startpage/README 说明新结构
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-23 13:52:28 +08:00
5b60185f94
feat(start): 背景按时段选图(6-24 随机 No.1~5,0-6 用 Night),标题改 CCStart
...
- StartPage 背景改为纯本地时间:白天从 No.1~No.5 随机取一张并固定整页生命周期,夜间(0-6点)用 Night
- 登录页 h2 与 index.html 标签页标题由 Sign in 改为 CCStart
- 起始页背景图压成 WebP(限宽 2560,质量 ~82),单图从 2.5~4.7MB 降到 113~375KB,适配 3Mbps 带宽
- 删除旧 dark.png/light.jpg
- 部署文档补充前端单独重发流程与 WSL 实际路径
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-22 22:18:47 +08:00
e4383cf4b5
docs: 记录 git 两个远程与推送方式(gitea 直推、GitHub 需手动 Token)
...
补充行尾 CRLF/LF 提醒,避免行尾噪声混入功能提交。
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-21 21:28:41 +08:00
0b3b85c528
feat(start): 快捷入口改为底部分类抽屉
...
- 移除搜索框下方的快捷入口宫格(QuickLinks)
- 新增 CategoryDock:底部玻璃分类胶囊(社交/娱乐/开发/游戏),
悬停时菜单以 transform-origin:bottom 从胶囊向上抽出,链接错位浮现;
含悬停桥、点击/焦点开合、reduced-motion 降级
- StartPage 加透明占位,保持问候/搜索框删除前的垂直位置与比例
- 文档:startpage-quicklinks → startpage-category-dock 并重写;
修正 weather 部署文档过期的 /mnt/f 路径
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-21 21:23:12 +08:00
a3075133d1
feat(monitor): 顶部栏增加磁盘占用,格式与内存一致
...
采集根分区(/)容量,按 DISK x% · x/x GB · Free x GB 拼入展示文本,
Stats 新增 disk_used_pct / disk_total_bytes / disk_available_bytes 字段。
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-21 15:31:27 +08:00
f576b03315
feat(start): 填充起始页快捷入口并补文档
...
搜索框下方快捷入口由占位空槽改为 8 个实链接:
第一行 DeepSeek/GitHub/Bilibili/知乎/FMHY,
第二行 Rust/C++/C# 文档(col-start-2 居中)。
品牌图标内联 simple-icons 单 path,FMHY 用字标。
新增 docs/startpage-quicklinks.md 记录搜索框 + 入口及增删方法。
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-20 21:10:38 +08:00
d7d520058c
docs: 补登录/入口门走 MySQL 的说明,修起始页过期引用
...
- 新增 docs/auth-login-gate.md:入口门 + 登录的 MySQL 后端、表结构、
建库步骤、DATABASE_URL、无库兜底、安全待办
- startpage 文档:层级图删掉已移除的「齿轮」;weather.env 示例补 DATABASE_URL
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-20 20:49:04 +08:00
4c8c4360ad
feat(weather): 起始页天气/定位细节完善
...
- 新增 Client/src/lib/amap.ts:高德 JS 定位封装
- weather.ts / useWeather.ts:带经纬度/城市请求,定位失败不兜底
- Server weather.rs:相应调整
- 文档同步;.gitignore 忽略本地 .codegraph 索引
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-20 20:45:39 +08:00
b2a0b563c9
feat(client): 隐藏登录入口改为后端校验 URL hash
...
去掉起始页右下角设置齿轮(SettingsGear),登录页不再有任何 UI 入口;
改为监听地址栏 `#<hash>`,经 checkGate() 交后端 /api/web/gate 校验,
命中合法开发者才放行到登录页。合法 hash 只存在后端、前端不写死。
- 新增 api/gate.ts;App.tsx 用 hashchange 监听 + 防竞态校验
- 返回起始页时抹掉地址栏 hash,避免密钥留在历史里
- Server/.gitignore 忽略 dev_gate.txt(秘密,单独部署)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-20 20:45:30 +08:00
58bed0ae44
feat(server): 登录与开发者入口门改走 MySQL
...
UserStore/DevGate 不再写死,改为从 MySQL 实时查询(每次校验一条索引查询、
不缓存整表,照顾内存):
- 新增 db_pool_from_env(),UserStore 与 DevGate 共用一个 sqlx 懒连接池
- verify() 查 ccuser 表、allows() 查 dev_gate 表,均改为 async
- 未设置 DATABASE_URL 时各自回退到内置/文件兜底,便于本地无库开发
连接串经环境变量 DATABASE_URL 注入(线上写在 weather.env)。
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-20 20:43:23 +08:00
f4342e7c82
docs: 天气定位失败时不兜底、不显示
...
线上不设 WEATHER_DEFAULT_LOCATION:高德定位失败即返回 failed,
不再回退默认城市、也不调和风,前端静默不显示。更新文档说明。
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-18 20:35:54 +08:00
a185e56c22
feat: 导航起始页 + 天气/定位 + 天气动态效果
...
起始页(StartPage)
- 极简玻璃风导航页作未登录首页:时段问候、Bing 默认可切换搜索、10 个快捷位、右下齿轮进登录
- 昼夜背景自动切换(light/dark),按天气图标码 + 本地时间判断
- 天气动态效果(WeatherFx canvas):雨/雪/雷,克制风格,尊重 reduced-motion
天气与定位(前后端)
- 后端 /api/web/weather:高德 IP 定位(城市+坐标) + 和风实时天气
- 和风用 JWT(EdDSA/Ed25519)认证,密钥走环境变量、仅后端持有
- 每日限流(高德 300、和风 900,北京 0 点归零) + 10 分钟按 IP 缓存
- 前端 useWeather + WeatherIcon(7 类极简 SVG)
导航与登录
- 浏览器返回键支持(History API);返回即登出
- 记住我:勾选存 localStorage、不勾存 sessionStorage,默认不勾
其他
- .gitignore 忽略 *.pem/*.env 等密钥
- 新增文档 docs/startpage-weather-location.md 及部署 spec/plan
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-18 20:13:18 +08:00
06bbf65d71
feat: read PORT from env var, default 8080
2026-06-18 17:08:03 +08:00
Ryan
c61b8de776
重构登录后博客页:Lunada 渐变背景 + 两侧图片液态玻璃;登录报错改英文
...
- 登录页凭据/网络/HTTP 错误提示改为英文
- 博客页改为:通栏顶部彩虹栏 + 通栏 Hero(彩虹光标动效)+ 图片·内容·图片三栏
- 两侧图片用 import.meta.glob 自动索引 src/assets/sides/,按高度自适应、居中,叠加液态玻璃覆层
- 背景改为 Lunada 渐变极光
- 性能优化:极光改静止、中间纸/顶栏去掉 backdrop-filter,降低多层毛玻璃每帧重算开销
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-18 10:57:00 +08:00
CC
6037a8186c
Merge pull request #1 from KarCharon/main
...
feat: add login/auth system + blog page with rainbow design
2026-06-18 00:02:20 +08:00
58284f3fe0
feat: add login/auth system + blog page with rainbow design
...
- Client: auth API wrapper (api/auth.ts) + useAuth hook with localStorage persistence
- Client: LoginPage/LoginForm with remember-me and loading states
- Client: BlogPage with hero section, rainbow spotlight cursor effect, post list
- Client: CSS rainbow gradient utilities for text/borders/backgrounds
- Server: POST /api/web/login with username/password verification + token
- Server: CORS extended to POST + Content-Type header
- Server: auth.rs token issuer, serde dependency for JSON
- Chore: gitignore Server/.vite
Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-18 00:00:38 +08:00
2205408252
Initial commit: React client + Rust server full-stack project
...
Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-17 20:49:17 +08:00