feat: add site theme package import, export and preview - #121
Merged
Conversation
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.
变更说明 / Summary
站点模板现在支持标准 ZIP 导出、上传检查、确认可信来源后安装、六类页面只读预览和单独启用。检查报告提供版本及依赖信息、文件校验清单、图片与转义源码查看;导出的模板包保留原有分发范围和私有备注。
安装使用持久化 storage、文件完整性校验、操作锁和原子目录写入。相同内容重复导入返回已有结果,同名不同内容拒绝覆盖。管理员预览保持当前启用主题,并抑制阅读计数、分析代码及表单提交;补齐 Nginx 素材回退和繁体中文文案。模板包只迁移模板文件,文章、账号及站点配置保留在原实例。
验证 / Verification
维护者说明
本 PR 由仓库维护者账号
yaojingang提交。新增依赖 composer/semver 3.4.4(MIT),用于模板版本约束检查;依赖来源及许可证已记录在 Composer 锁文件中。检查清单 / Checklist