Skip to content

Commit

Permalink
Merge pull request #603 from terwer/dev
Browse files Browse the repository at this point in the history
发布工具首个完整支持图片上传的版本
  • Loading branch information
terwer committed Aug 14, 2023
2 parents 87eeaff + 6c99367 commit 97673cf
Show file tree
Hide file tree
Showing 102 changed files with 1,964 additions and 1,017 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,21 @@ Publish articles from Siyuan Notes to platforms such as Yuque, Notion, Cnblogs,

Support features such as fast publishing, image bed management, platform expansion, smart labels, etc.

> **Front Announcement: Publish Tool's First Stable Version '1.6.0' Released!**
> **Front Announcement 1: Release Tool's first platform-wide version `1.8.0` using the forward agent of Siyuan Note!**
>
> **Front Announcement 2: The first version of the release tool that fully supports image upload `1.8.0` is released!**
Tips: Zhihu uses the image upload of the Zhihu platform, Yuque, Notion, and Hexo need Picgo plugin support, and the Metaweblog series platform supports both Picgo plugin and self-contained image upload (install Picgo plugin to use Picgo plugin, otherwise use their own platform)

We recommend that you use the `uninstall->install` method to update. If the configuration is abnormal, please back up `[workspace]/data/storage/syp/sy-p-plus-cfg.json` , and then delete it, this configuration file will be automatically initialized the first time it is used.

In later releases, the release configuration will only be backward compatible to `1.6.0+`.

## Recent critical updates and bug fixes

- Yuque, Notion, and Hexo support image links, and automatic upload requires Picgo plugin support
- Zhihu platform supports automatic image upload
- When the Picgo plugin is not installed, some platforms can use the built-in image upload, such as Cnblogs, Typecho, WordPress
- Support replacing picture bed image links with Picgo plugin
- Fixed the issue that the release preview of the authorization code mode was invalidated
- Support publishing to Zhihu
Expand All @@ -30,21 +37,14 @@ In later releases, the release configuration will only be backward compatible to
This plugin supports almost all devices and platforms of Siyuan Note, and the specific compatibility is as follows:

- [X] Siyuan Note Client (zero configuration) <sup>is highly recommended</sup>
- [X] Servo environment (cross-domain request proxy needs to be set)
- [X] Servo environment (Zero configuration, cross-domain request proxy built-in)
- [X] CentSource Note Browser Servo
- [X] Siyuan Note Client Servo
- [X] Siyuan Notemaker mobile servo
- [X] Siyuan Note docker version (need to set up cross-domain request proxy)

**Note: If it is a LAN servo, you need to deploy the cross-domain proxy on the LAN.**

**Set up the method, clone https://github.com/terwer/node-metaweblog-api-adaptor then `pnpm install & pnpm dev`, after startup the proxy address is https://<local-IP>:3000/api/middleware .**

**If the Internet needs to be deployed on the Internet, the cross-domain request proxy of the Internet can also be used directly: https://api.terwer.space/api/middleware**
- [X] Siyuan Note docker version (Zero configuration, cross-domain request proxy built-in)

**It may be migrated to the official forward proxy to achieve zero configuration in the future, but for now you must set it yourself, you can follow the progress here.**
🎉 **All platforms have been migrated to the official forward proxy, achieving zero user configuration and supporting cross-domain request proxies by default 🎉**

- Progress 1: The Yuque and Notion platforms have used the built-in forward proxy and do not need to be configured.

## Platform List

Expand Down
29 changes: 15 additions & 14 deletions README_zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,23 @@

将思源笔记的文章发布到语雀、Notion、Cnblogs、WordPress、Typecho、Hexo、知乎 等平台,支持极速发布、图床管理、平台扩展、智能标签等特色功能。

> **前排公告:发布工具首个稳定版 `1.6.0` 发布!**
> **前排公告1:发布工具首个全平台使用思源笔记正向代理的版本 `1.8.0` 发布!**
>
> **前排公告2:发布工具首个完整支持图片上传的版本 `1.8.0` 发布!**
我们建议您采用 `卸载->重装` 的方式进行更新。如果配置异常请先备份 `[工作空间]/data/storage/syp/sy-p-plus-cfg.json` ,然后删除他,这个配置文件会在第一次使用的时候自动初始化。
温馨提示:知乎使用知乎平台的图片上传,语雀、Notion、Hexo需要Picgo插件支持,Metaweblog系列平台同时支持Picgo插件和自带图片上传(安装了Picgo插件使用Picgo插件,否则使用自带)

之后的版本中,发布配置将仅向后兼容到 `1.6.0+`
我们建议您使用 `卸载->安装` 方法进行更新。如果配置异常,请备份 `[workspace]/data/storage/syp/sy-p-plus-cfg.json` ,然后删除,这个配置文件会在第一次使用时自动初始化。

在更高版本中,发布配置将仅向后兼容到 `1.6.0+`

## 最近的关键更新与 Bug 修复

- 语雀、Notion、Hexo支持图片链接,自动上传需要Picgo插件支持
- 知乎平台支持图片自动上传
- 未安装Picgo插件时,部分平台可使用自带的图片上传,例如博客园、Typecho、WordPress
- 提供不支持图片链接替换的平台使用平台自带的图片上传接口
- 所有平台迁移到官方的正向代理,极大的提升性能
- 支持使用Picgo插件的情况下替换图床图片链接
- 修复授权码模式发布预览失效问题
- 支持发布到知乎
Expand All @@ -28,21 +37,13 @@
本插件支持思源笔记几乎所有设备和平台,具体兼容情况如下:

- [X] 思源笔记客户端(零配置)<sup>强烈推荐</sup>
- [X] 伺服环境(需要设置跨域请求代理
- [X] 伺服环境(零配置,跨域请求代理已内置
- [X] 思源笔记浏览器伺服
- [X] 思源笔记客户端伺服
- [X] 思源笔记客移动端伺服
- [X] 思源笔记docker版(需要设置跨域请求代理)

**注意:如果是局域网伺服,需要在局域网自行部署跨域代理。**

**设置方法,clone https://github.com/terwer/node-metaweblog-api-adaptor 然后 `pnpm install && pnpm dev`,启动之后代理地址为:https://<局域网IP>:3000/api/middleware 。**

**如果是外网需要部署在外网,外网的跨域请求代理也可以直接使用:https://api.terwer.space/api/middleware**

**后续可能会迁移到官方的正向代理实现零配置,但是目前还是必须要自己设置,可在这里关注进展。**
- [X] 思源笔记docker版(零配置,跨域请求代理已内置)

- 进度1:语雀、Notion平台已使用内置正向代理,无需配置。
**🎉 所有平台均已迁移到官方的正向代理,实现了用户零配置,默认支持跨域请求代理 🎉**

## 平台列表

Expand Down
2 changes: 1 addition & 1 deletion custom.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
* questions.
*/

declare module "markdown-to-notion"
declare module "zhi-notion-markdown"
14 changes: 8 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"devDependencies": {
"@terwer/esbuild-config-custom": "^1.2.0",
"@terwer/eslint-config-custom": "^1.3.6",
"@types/node": "^18.17.4",
"@types/crypto-js": "^4.1.1",
"@types/node": "^18.17.5",
"@vitejs/plugin-vue": "^4.2.3",
"@vitest/coverage-v8": "^0.34.1",
"@vue/test-utils": "^2.4.1",
Expand All @@ -56,26 +57,27 @@
"@vueuse/core": "^10.3.0",
"cheerio": "1.0.0-rc.12",
"cross-fetch": "^3.1.8",
"crypto-js": "^4.1.1",
"element-plus": "^2.3.9",
"js-base64": "^3.7.5",
"pinia": "^2.1.6",
"shorthash2": "^1.0.3",
"simple-xmlrpc": "^1.4.2",
"siyuan": "^0.7.9",
"siyuan-plugin-picgo": "^1.2.0",
"siyuan-plugin-picgo": "^1.4.4",
"uuid": "^9.0.0",
"vue": "^3.3.4",
"vue-i18n": "^9.2.2",
"vue-router": "^4.2.4",
"xmlbuilder2": "^3.1.1",
"zhi-blog-api": "^1.20.17",
"zhi-blog-api": "^1.20.22",
"zhi-common": "^1.14.2",
"zhi-device": "^2.3.0",
"zhi-fetch-middleware": "^0.2.20",
"zhi-fetch-middleware": "^0.2.21",
"zhi-github-middleware": "^0.2.2",
"zhi-lib-base": "^0.4.4",
"zhi-notion-markdown": "^0.1.2",
"zhi-siyuan-api": "^2.0.21",
"zhi-notion-markdown": "^0.1.3",
"zhi-siyuan-api": "^2.0.27",
"zhi-xmlrpc-middleware": "^0.4.15"
}
}
Loading

0 comments on commit 97673cf

Please sign in to comment.