Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/liuyiwuqing/halo-plugin-picture-bed
图床插件
https://github.com/liuyiwuqing/halo-plugin-picture-bed
Last synced: about 1 month ago
JSON representation
图床插件
- Host: GitHub
- URL: https://github.com/liuyiwuqing/halo-plugin-picture-bed
- Owner: liuyiwuqing
- License: gpl-3.0
- Created: 2024-04-14T05:02:32.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-10-31T11:06:28.000Z (about 1 month ago)
- Last Synced: 2024-10-31T11:31:20.530Z (about 1 month ago)
- Language: TypeScript
- Size: 304 KB
- Stars: 9
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-halo - halo-plugin-picture-bed - 对接多种图床服务,实现图片上传、删除等功能。 (Halo 2.0 / 插件)
README
# 图床插件
## 介绍
对接多种图床服务,实现图片上传、删除等功能。
![图床插件演示1.png](https://blog.muyin.site/upload/lywqPlugins/图床插件演示1.png)
![图床插件演示2.png](https://blog.muyin.site/upload/lywqPlugins/图床插件演示2.png)
![图床插件演示3.png](https://blog.muyin.site/upload/lywqPlugins/图床插件演示3.png)
![图床插件演示5.png](https://blog.muyin.site/upload/lywqPlugins/图床插件演示5.png)
![图床插件演示4.png](https://blog.muyin.site/upload/lywqPlugins/图床插件演示4.png)## 功能
### V1.0.0版本
1. 对接兰空图床
2. 对接SM.MS图床
3. 支持图片上传、批量上传
4. 支持图片删除、批量删除## 插件文档
请访问:
## 精选插件
| 名称 | 图片 | 功能 | 下载地址 |
|:-----------------------------------------------------:|:--------------------------------------------------------------------------------------------------------------:|:-----------------------------------:|:-------------------------------------------------:|
| [授权管理插件](https://blog.muyin.site/docs/lywqPluginAuth) | | 对自定义插件提供统一管理,发布插件、授权插件、用户自助申请授权等功能。 | [访问](https://blog.muyin.site/docs/lywqPluginAuth) |
| [友链自助提交插件](https://blog.muyin.site/docs/linksSubmit) | | 访问者可以自助提交友链,并在后台管理页面进行审核。 | [访问](https://blog.muyin.site/docs/linksSubmit) |
| [Tools工具箱插件](https://blog.muyin.site/docs/tools) | | 提供微信公众号对接,seo优化,文章定时发布,文章验证码等扩展功能。 | [访问](https://blog.muyin.site/docs/tools) |
| [图床插件](https://blog.muyin.site/docs/pictureBed) | | 对接多种图床服务,实现图片上传、删除等功能。 | [访问](https://blog.muyin.site/docs/pictureBed) |## 开发环境
插件开发的详细文档请查阅:
所需环境:
1. Java 17
2. Node 18
3. pnpm 8
4. Docker (可选)克隆项目:
```bash
git clone [email protected]:halo-sigs/plugin-picture-bed.git# 或者当你 fork 之后
git clone [email protected]:{your_github_id}/plugin-picture-bed.git
``````bash
cd path/to/plugin-picture-bed
```### 运行方式 1(推荐)
> 此方式需要本地安装 Docker
```bash
# macOS / Linux
./gradlew pnpmInstall# Windows
./gradlew.bat pnpmInstall
``````bash
# macOS / Linux
./gradlew haloServer# Windows
./gradlew.bat haloServer
```执行此命令后,会自动创建一个 Halo 的 Docker 容器并加载当前的插件,更多文档可查阅:
### 运行方式 2
> 此方式需要使用源码运行 Halo
编译插件:
```bash
# macOS / Linux
./gradlew build# Windows
./gradlew.bat build
```修改 Halo 配置文件:
```yaml
halo:
plugin:
runtime-mode: development
fixedPluginPath:
- "/path/to/plugin-picture-bed"
```最后重启 Halo 项目即可。