Merged
Conversation
added 2 commits
January 17, 2026 01:26
搞定了一个新功能:现在在编辑器里粘贴带链接的图片,会自动拦截处理了。 自动去重:系统会先算图片 Hash,如果以前传过,直接用旧链接,省流又快,没传过会自动下载并上传到我们的图床。 搞定了跨域:遇到那些不让下载的外部图片,会自动切到代理模式下载,转存成功率很高。 代码清理:逻辑都抽离到了 Hook 里,之前的测试代码和按钮都删干净了,代码现在很清爽。 最后:为了解决跨域用了公共代理,如果是特别敏感的数据要注意一下。另外目前没有做严格的并发限制,如果一次性粘贴几百张大图可能会有点卡,后续可以优化。
搞定了一个新功能:现在在编辑器里粘贴带链接的图片,会自动拦截处理了。 自动去重:系统会先算图片 Hash,如果以前传过,直接用旧链接,省流又快,没传过会自动下载并上传到我们的图床。 搞定了跨域:遇到那些不让下载的外部图片,会自动切到代理模式下载,转存成功率很高。 代码清理:逻辑都抽离到了 Hook 里,之前的测试代码和按钮都删干净了,代码现在很清爽。 最后:为了解决跨域用了公共代理,如果是特别敏感的数据要注意一下。另外目前没有做严格的并发限制,如果一次性粘贴几百张大图可能会有点卡,后续可以优化。
|
🚀 Surge Preview has been successfully deployed! Preview URL: https://doocs-md-preview-pr-1249.surge.sh Built with commit 8eccca3 |
Contributor
Author
|
Updated the branch with the latest changes from upstream. Ready for review when you have a moment! |
Contributor
Author
|
其它模块的package忘记上传了,所以导致build失败,麻烦再测试一下。 |
Member
|
所有 package.json 中的依赖的版本号都被固定了,请恢复一下 @WekyJay |
Contributor
Author
我的pnpm为v10+,在我对依赖版本号恢复后,安装时出现了一个问题: 问题描述:当前项目启用了严格的 trustPolicy: no-downgrade 策略。由于 chokidar@4.0.3、semver 和 langium 等依赖的新版本缺失了旧版本所拥有的来源证明(Provenance),导致 pnpm 判定为“高风险信任降级”并拦截安装。 修改内容:在 pnpm-workspace.yaml 中配置了 trustPolicyExclude 白名单。 将上述受影响的特定版本加入白名单,绕过检查。 修改理由:这种方式可以在解决安装报错的同时,继续保持项目全局的严格安全策略,比直接关闭 trustPolicy 更为安全和规范。 |
Member
|
packages/core/package.json 这个文件还没有恢复 |
…e-image # Conflicts: # pnpm-lock.yaml # pnpm-workspace.yaml
Contributor
Author
|
考虑一下这个功能,不需要的话我就关闭了。 |
yanglbme
approved these changes
Feb 6, 2026
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.
本次更新主要增强了 Markdown 编辑器的图片粘贴体验,核心实现了 “智能去重”与“自动转存” 功能。
主要改进包括:
Area.mp4