新增本地站点配置管理与隐私配置隔离 - #7
Open
gjwhhhh wants to merge 4 commits into
Open
Conversation
gjwhhhh
force-pushed
the
feat/site-config
branch
from
July 14, 2026 06:16
7e8665a to
bdacbc1
Compare
Owner
|
感谢这个 PR,配置隔离和本地向导方向很好。但合并前需要补两点: |
gjwhhhh
force-pushed
the
feat/site-config
branch
from
July 14, 2026 09:48
878c4a3 to
6cf43ad
Compare
added 4 commits
July 15, 2026 15:43
将站点文案、项目和经历集中到本地配置,提供开发态 /setup 配置向导、方案切换和历史恢复;公开仓库保留脱敏示例并自动初始化本地真实配置,避免提交个人资料;同时修复项目名称编辑时输入框因 key 变化失焦的问题。
将配置中心拆分为全局、首页、关于、项目、内容和联系模块,支持项目排序、文章元数据保存、历史方案与 2D/3D 首页视觉选择,方便在本地维护个人作品集。 首页增加可直达的联系入口和合作信息展示,内容与项目页面改为读取站点配置;同步扩展示例配置和本地迁移逻辑,避免个人真实配置进入开源仓库。
新增文章草稿创建入口,自动生成可修改的随机 URL 标识,并在创建后刷新本地内容模块,让新文章立即出现在文章列表。 对不符合规则的 URL 标识提供表单内提示和禁用状态,避免无效提交;保留本地文章草稿,不将未确认内容提交到开源仓库。
限制配置接口仅接受 loopback 来源,并在存在 Origin 时校验其同样来自本机,避免本地开发服务暴露时被非本机访问。 提取构建与保存共用的配置校验,覆盖所有页面依赖字段;补充 Git 忽略不等于部署保密的说明,提醒不要写入密钥或敏感信息。
gjwhhhh
force-pushed
the
feat/site-config
branch
from
July 15, 2026 07:49
f1276dd to
870c0b6
Compare
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.
变更内容\n- 将站点资料、项目与经历集中到本地配置,并提供开发态 /setup 配置向导\n- 支持命名方案、自动历史快照和恢复\n- 公开仓库提交脱敏示例配置,真实 site.config.json 自动初始化且被 Git 忽略\n- 修复配置页编辑项目名称时输入框丢失焦点的问题\n\n## 验证\n- npm run typecheck\n- npm run build\n- 本地 /setup 保存、历史快照和项目名称连续输入验证