picgo-plugin-gitee
v2.2.0
Published
picgo uploader for gitee
Maintainers
Readme
重要通知
Recently Gitee has not allowed repo to be used as personal website, so please refer to #11 and do your new plan. 最近 gitee 不允许仓库作为个人图床,请参考 #11,做好相应的处理。
picgo-plugin-gitee
plugin for PicGo
Install
npm i picgo-plugin-giteeUsage
input your config
- owner: gitee project's owner name
- repo: gitee project repo
- path: img path in response json (eg:url or data.url), 根目录可留空
- token: gitee's api token(在 https://gitee.com/profile/personal_access_tokens 生成)
- customUrl: 自定义独立域名(可选),留空默认使用
https://raw.giteeusercontent.com,避免默认域名被 302 重定向 - message: gitee commit,默认
picgo commit
默认预览地址使用 Gitee 独立域名
raw.giteeusercontent.com,不再走gitee.com的 302。
init your remote repo
- create git repo?
mkdir resources
cd resources
git init
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin your-remote-link
git push -u origin master- exists repo?
cd existing_git_repo
git remote add origin your-remote-link
git push -u origin masterFeature
- support sync gitee file delete
- 上传/删除结束均会弹出系统通知(PicGo 消息中心)
- GUI 菜单提供「从 Gitee 同步远程文件到相册」按钮(递归仓库所有图片,自动跳过非图片文件)
Todo
- [x] trim / delimiter
gitee文件大小有1mb限制, 所以超过1mb的文件无法通过外链获取
