- 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
873 B
873 B
AGENTS.md
Safety Rules
- Dev branch naming:
{feat|fix|docs|chore}/{branch-name}(e.g.feat/file-tag-done,fix/tree-render). - Before
git commit: rungit branch --show-current. If onmaster, do NOT commit — ask user for a branch name (suggest one based on the changes, e.g.docs/simplify-branch-workflow), create it, commit there. - General changes →
docs/CHANGELOG.md; WebUI changes →docs/CHANGELOG_webui.md(files underweb/). Higher versions on top. ANGELOG entry format: same entry has English line then Chinese line on consecutive lines (no blank line between them); different entries are separated by a blank line. - Version control: When bumping a version, update both the changelog and the corresponding version constant:
pkg/constant/version.gofor backend(docs/CHANGELOG.md),web/version.jsfor webui(docs/CHANGELOG_webui.md).