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

增加piclist图床支持 #1297

Merged

Conversation

yqs112358
Copy link
Contributor

@yqs112358 yqs112358 commented Aug 9, 2024

piclist是一个不错的图床框架,支持大量自定义插件,本体支持数十种图床后端,通过插件还能支持更多。另外其还提供了可以单独部署的cli后端piclist-server。
server和客户端两者都支持通过http api上传图片至图床,这里对其进行了适配。

@DiamondYuan
Copy link
Member

改成内置 svg ? 不要改默认的 icon.js

@yqs112358
Copy link
Contributor Author

yqs112358 commented Aug 15, 2024

欸,我看好像之前所有的都是往icon.js里面加svg的🧐就照做了
要改成独立svg的话放在chrome/icons里面?

@yqs112358
Copy link
Contributor Author

yqs112358 commented Aug 15, 2024

搞定了,说一下我的更改:
原来icons都是直接放到打包后的根目录里的,图标多了会很乱。所以把webpack配置改了一下,统一把icons拷贝到icons/目录下。然后在代码里面把所有引用原来icon的路径都套一层icons/
以后在代码里面要引用嵌入的图片的时候,直接把图放到项目根目录下chrome/icons/中,然后在源码里用'icons/xxx.png'引用。

piclist图标已经改为使用这种方法,经测试均正常工作。
后面可以把其他一些像imgur、siyuan等ant-design本来没有的icon从icon.js里面拿出来,拆成svg文件单独放到icons目录中

@DiamondYuan DiamondYuan merged commit 66b28bb into webclipper:master Aug 18, 2024
@yqs112358
Copy link
Contributor Author

大佬方便顺手发个新版嘛😋

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants