Skip to content

Commit

Permalink
Merge pull request #401 from terwer/dev
Browse files Browse the repository at this point in the history
feat: add option for picgo
  • Loading branch information
terwer committed Mar 30, 2024
2 parents 18ac909 + 2be4df9 commit 510b2e9
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 5 deletions.
3 changes: 1 addition & 2 deletions README_zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@
- [X] [zhi-github-middleware](https://github.com/terwer/zhi/tree/main/libs/zhi-github-middleware) ![zhi-github-middleware](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2Fterwer%2Fzhi%2Fmain%2Flibs%2Fzhi-github-middleware%2Fpackage.json&query=%24.version&label=release)
- [X] [zhi-gitlab-middleware](https://github.com/terwer/zhi/tree/main/libs/zhi-gitlab-middleware) ![zhi-github-middleware](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2Fterwer%2Fzhi%2Fmain%2Flibs%2Fzhi-github-middleware%2Fpackage.json&query=%24.version&label=release)
- [X] [zhi-siyuan-api](https://github.com/terwer/zhi/tree/main/libs/zhi-siyuan-api) ![zhi-siyuan-api](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2Fterwer%2Fzhi%2Fmain%2Flibs%2Fzhi-siyuan-api%2Fpackage.json&query=%24.version&label=release)
- [X] [zhi-picgo-core](https://github.com/terwer/zhi/tree/main/libs/zhi-picgo-core) ![zhi-picgo-core](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2Fterwer%2Fzhi%2Fmain%2Flibs%2Fzhi-picgo-core%2Fpackage.json&query=%24.version&label=release)
- [X] [zhi-picgo-siyuan](https://github.com/terwer/zhi/tree/main/libs/zhi-picgo-siyuan) ![zhi-picgo-siyuan](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2Fterwer%2Fzhi%2Fmain%2Flibs%2Fzhi-siyuan-picgo%2Fpackage.json&query=%24.version&label=release)
- [X] [zhi-siyuan-picgo](https://github.com/terwer/siyuan-plugin-picgo/tree/main/libs/zhi-siyuan-picgo) ![zhi-siyuan-picgo](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2Fterwer%2Fsiyuan-plugin-picgo%2Fmain%2Flibs%2Fzhi-siyuan-picgo%2Fpackage.json&query=%24.version&label=release)
- [X] [zhi-chatgpt](https://github.com/terwer/zhi/tree/main/libs/zhi-chatgpt) ![zhi-chatgpt](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2Fterwer%2Fzhi%2Fmain%2Flibs%2Fzhi-chatgpt%2Fpackage.json&query=%24.version&label=release)
- [X] [zhi-rubick-core](https://github.com/terwer/zhi/tree/main/libs/zhi-rubick-core) ![zhi-rubick-core](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2Fterwer%2Fzhi%2Fmain%2Flibs%2Fzhi-rubick-core%2Fpackage.json&query=%24.version&label=release)
- [X] [zhi-rubick-ui](https://github.com/terwer/zhi/tree/main/libs/zhi-picgo-ui)
Expand Down
6 changes: 6 additions & 0 deletions libs/zhi-blog-api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# zhi-blog-api

## 1.59.0

### Minor Changes

- feat: add option for picgo

## 1.58.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion libs/zhi-blog-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zhi-blog-api",
"version": "1.58.0",
"version": "1.59.0",
"type": "module",
"description": "a common blog interface",
"main": "./dist/index.js",
Expand Down
8 changes: 7 additions & 1 deletion libs/zhi-blog-api/src/lib/blogConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,12 @@ abstract class BlogConfig {
public cateSearchEnabled?: boolean

/**
* 是否支持图片上传
* 是否支持 PicGo 图片上传
*/
public picgoPicbedSupported?: boolean

/**
* 是否支持平台图片上传
*/
public bundledPicbedSupported?: boolean

Expand Down Expand Up @@ -310,6 +315,7 @@ abstract class BlogConfig {
this.useMdFilename = false
this.usePathCategory = false
this.cateSearchEnabled = false
this.picgoPicbedSupported = false
this.bundledPicbedSupported = false
this.picbedService = PicbedServiceTypeEnum.None
}
Expand Down
7 changes: 7 additions & 0 deletions libs/zhi-siyuan-api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# zhi-siyuan-api

## 2.20.3

### Patch Changes

- Updated dependencies
- zhi-blog-api@1.59.0

## 2.20.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion libs/zhi-siyuan-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zhi-siyuan-api",
"version": "2.20.2",
"version": "2.20.3",
"type": "module",
"description": "a siyuan-note api including both kernel and client",
"main": "./dist/index.js",
Expand Down

0 comments on commit 510b2e9

Please sign in to comment.