Repository navigation
Conversation
Add smtp_host / smtp_port / smtp_username / smtp_password / smtp_from to the Email channel form, wire zh/en labels through a new optional labelKey on ChannelFieldDef, and keep smtp_password as a password input so the backend-masked value round-trips unchanged.
Contributor
Author
|
Superseded by #136 (ONE-26). ONE-22 cancelled as duplicate of ONE-26. |
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.
ONE-22 前端:Email 渠道 SMTP 配置表单
后端(Daniel)并行开发,本 PR 只改前端,字段名按冻结契约:
smtp_host、smtp_port、smtp_username、smtp_password、smtp_from,原有to保留。改动
web/src/pages/channels/ChannelPage.tsxfields新增 5 个字段(smtp_password为 password,smtp_portplaceholder465,smtp_fromplaceholdernoreply@example.com)。ChannelFieldDef新增可选labelKey,渲染时优先走 i18n;Email 卡片的 6 个 label 全部走 i18n(to复用已有channels.toAddress),避免中英混排。其他渠道标签未改动。web/src/locales/{zh,en}.json:channels.smtpHost / smtpPort / smtpUsername / smtpPassword / smtpFrom。无新增依赖,无视觉风格变更(沿用现有字段堆叠布局与输入框样式)。
验证
webbuild(tsc -b && vite build)通过。biome lint .与 HEAD 基线一致(2 warnings + 1 info,全部在worker/src/routes/items.ts等既有文件,本次未新增)。/me/notifications载荷含全部 5 个smtp_*字段;密码回显/提交均为••••••。