Files
yoresee_dropbox/docs/CHANGELOG_webui.md
XingfenD 5bb42a8b8a feat(web): add i18n, light/dark theme switching, and version constant
- Add i18n (English + 简体中文) with a locale store, $t() magic, and a language toggle (persisted)
- Add light/dark/system theme switching via a theme store and [data-theme] token overrides
- Set the theme before paint to avoid a flash of the wrong theme
- Add frontend version constant web/version.js (window.YDROPBX_VERSION) shown in the app footer
- Update AGENTS.md version-control convention to mention web/version.js
- Bump version to 0.1.1 across frontend, webui changelog, and backend constant
2026-08-27 15:21:21 +08:00

63 lines
3.7 KiB
Markdown

# Changelog / 更新日志
All notable changes to this template should be documented in this file.
本模板的重要变更建议统一记录在此文件中。
The format loosely follows Keep a Changelog and can be adapted to the team's habits.
本文档参考了 Keep a Changelog 的思路,也可以根据团队习惯调整。
## [0.1.1] - 2026-08-27
### Added / 新增
- Added internationalization (i18n): English + 简体中文, with a `locale` store, a `$t()` magic, and a language toggle persisted to localStorage.
- 新增国际化(i18n):支持 English 与简体中文,包含 `locale` store、`$t()` 魔法函数,以及持久化到 localStorage 的语言切换按钮。
- Added light/dark/system theme switching via a `theme` store that writes `data-theme` on `<html>`; respects OS preference by default and persists the choice.
- 新增浅色/深色/跟随系统主题切换:通过 `theme` store 在 `<html>` 上写入 `data-theme`,默认跟随系统并持久化用户选择。
- Added dark-theme token overrides and a no-flash inline bootstrap script on both pages.
- 为深色模式补充了设计令牌覆盖,并在两个页面加入防止主题闪烁的内联初始化脚本。
- Added a frontend version constant (`web/version.js`, exposed as `window.YDROPBX_VERSION`) shown in the app footer, kept in sync with this changelog.
- 新增前端版本常量(`web/version.js`,暴露为 `window.YDROPBX_VERSION`)并显示在应用页脚,与本文档版本保持一致。
## [0.1.0] - 2026-08-27
### Changed / 变更
- Refactored the vanilla frontend into a component-based structure (Alpine.js components, a central state store, and a shared icon module) while keeping the no-build, Go-served static-file approach.
- 将原生前端重构为组件化结构(基于 Alpine.js 的组件、集中式状态 store、共享图标模块),同时保留由 Go 直接托管、无需构建的静态文件方案。
- Replaced the duplicated Inbox/Outbox markup with a single reusable `fileSection` component configured by props (`dir`, `canShare`).
- 用同一个可复用的 `fileSection` 组件(按属性 `dir`、`canShare` 配置)替换了原先重复的收件箱/发件箱标记。
- Split styles into design tokens, base, and component layers under `web/styles/`, and moved UI icons into a shared `window.Icons` module.
- 将样式拆分为 `web/styles/` 下的设计令牌、基础样式与组件样式三层,并把界面图标统一收敛到共享的 `window.Icons` 模块。
## [0.0.1] - 2026-04-28
### Added / 新增
- Added an English project-template README in `docs/README.md`.
- 在 `docs/README.md` 中补充了英文版项目模板说明。
- Added a Chinese project-template README in `docs/README_zh.md`.
- 在 `docs/README_zh.md` 中补充了中文版项目模板说明。
- Added guidance for template users on how to rewrite the README for their own project.
- 增加了模板使用者如何把 README 改写为自己项目介绍的说明。
- Added a documented repository structure overview based on the current scaffold.
- 基于当前仓库骨架补充了目录结构说明。
- Added this changelog file for future template maintenance.
- 新增本更新日志文件,便于后续持续维护模板。
### Notes / 说明
- The repository currently provides structure and placeholder files rather than a finished implementation.
- 当前仓库主要提供目录结构和占位文件,尚不是一个已完成功能实现的成品项目。
- Future updates should record framework selection, startup steps, deployment workflow, and major documentation changes.
- 后续若补充了技术栈、启动流程、部署方式或重要文档内容,建议继续记录在本文件中。