Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

集成PicGO以及图床 #132

Closed
terwer opened this issue Oct 17, 2022 · 6 comments
Closed

集成PicGO以及图床 #132

terwer opened this issue Oct 17, 2022 · 6 comments
Assignees
Labels
good first issue Good for newcomers
Milestone

Comments

@terwer
Copy link
Owner

terwer commented Oct 17, 2022

集成PicGO,可直接粘贴图片自动上传。旧文档的非图床图片,在发布时候使用PicGO上传然后再发布

@terwer terwer added this to the 0.1.0 milestone Oct 17, 2022
@mohuishou
Copy link

picgo 应该不支持浏览器使用,思源挂件块是一个纯 web 页面,可能会有问题

@terwer terwer added the good first issue Good for newcomers label Nov 17, 2022
@terwer
Copy link
Owner Author

terwer commented Nov 17, 2022

picgo 应该不支持浏览器使用,思源挂件块是一个纯 web 页面,可能会有问题

支持的,思源挂件不是简单的嵌套Web页面,是可以调用electron的fetch请求的,这个与浏览器的fetch不同,可以做很多事情,原理上是可行的,我会在近期完成这个特性。

@terwer terwer self-assigned this Nov 17, 2022
@mohuishou
Copy link

picgo 应该不支持浏览器使用,思源挂件块是一个纯 web 页面,可能会有问题

支持的,思源挂件不是简单的嵌套Web页面,是可以调用electron的fetch请求的,这个与浏览器的fetch不同,可以做很多事情,原理上是可行的,我会在近期完成这个特性。

可以试试,我之前测试过发现不行,最后用了 s3,picgo-core 应该用了一部分 node 的 api 所以引入会报错

@terwer terwer modified the milestones: 0.1.0, 0.1.1 Nov 26, 2022
@leolee9086
Copy link

picgo 应该不支持浏览器使用,思源挂件块是一个纯 web 页面,可能会有问题

支持的,思源挂件不是简单的嵌套Web页面,是可以调用electron的fetch请求的,这个与浏览器的fetch不同,可以做很多事情,原理上是可行的,我会在近期完成这个特性。

可以试试,我之前测试过发现不行,最后用了 s3,picgo-core 应该用了一部分 node 的 api 所以引入会报错

可以引入,但是可能需要在主界面注入后端代码,主界面是有node环境的

@leolee9086
Copy link

https://ld246.com/article/1661673805368 之前写过一个比较糙的示例 ,这个是在主窗口执行的

@terwer terwer modified the milestones: 0.4.2, v0.5.1 Dec 16, 2022
@terwer
Copy link
Owner Author

terwer commented Dec 18, 2022

我单独提取了一个项目:

https://github.com/terwer/sy-picgo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
Status: 已完成
Development

No branches or pull requests

3 participants