Skip to content

Commit

Permalink
chore: sync repo v1.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Aug 14, 2023
1 parent 4fa171d commit d59b668
Show file tree
Hide file tree
Showing 107 changed files with 2,291 additions and 958 deletions.
25 changes: 21 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,30 @@
# Changelog

## [0.10.4](https://github.com/terwer/sy-post-publisher/compare/v0.10.3...v0.10.4) (2023-08-09)
## [1.8.0](https://github.com/terwer/siyuan-plugin-publisher/compare/v1.7.0...v1.8.0) (2023-08-14)
### Features
* 底部新增发布配置快捷入口 ([e2eec4c](https://github.com/terwer/siyuan-plugin-publisher/commit/e2eec4c493b1e1dece965f8c87e573a772583fcc))
* 所有平台迁移到官方的正向代理 ([c4de13f](https://github.com/terwer/siyuan-plugin-publisher/commit/c4de13f77c65b74b7db3284729cf4434a6ec6d47))
* 支持接入平台自有能力进行图片上传 ([efccca6](https://github.com/terwer/siyuan-plugin-publisher/commit/efccca6e2c03d2affcc912ec657a2f0ea1822324))
* 新增思源配置 ([202c2ce](https://github.com/terwer/siyuan-plugin-publisher/commit/202c2ce861489da1da4ce48b91bb73dac774c96e))
### Bug Fixes
* 修复思源配置 ([75712b8](https://github.com/terwer/siyuan-plugin-publisher/commit/75712b84b7e743d3dcb2b741aaab5c441405c834))
* 兼容平台图片上传 ([47472af](https://github.com/terwer/siyuan-plugin-publisher/commit/47472af2259592e2929cf14edc168e59ae3c65ab))
* 兼容平台图片上传-picgo 插件检测 ([090425c](https://github.com/terwer/siyuan-plugin-publisher/commit/090425ccec393ef0f582b89e91f846d35c850b80))
* 兼容平台图片上传-排查notion图片解析错误问题 ([24d2c8a](https://github.com/terwer/siyuan-plugin-publisher/commit/24d2c8a4ba8cd5824936a9098c8e4db65872d6e8))
* 兼容平台图片上传-支持远程图片链接 ([cf82997](https://github.com/terwer/siyuan-plugin-publisher/commit/cf82997aa26971b833010c6afcc423f540f1c73d))
* 兼容平台图片上传-知乎平台支持图片上传 ([c3e1c54](https://github.com/terwer/siyuan-plugin-publisher/commit/c3e1c54c2ae20fe54d86b313e4fa4fce9a57615b))
* 兼容平台图片上传-统一所有平台的预处理逻辑 ([6d9aba3](https://github.com/terwer/siyuan-plugin-publisher/commit/6d9aba3eb7e3b6a67fcc34e9ecabd697fe00ff50))
* 兼容平台图片上传-解决notion图片解析错误问题 ([6c99367](https://github.com/terwer/siyuan-plugin-publisher/commit/6c9936746d4a65bf5a1ec9f2f8fba6c15a125902))
* 博客园 electron 平台图片上传成功 ([0af57ce](https://github.com/terwer/siyuan-plugin-publisher/commit/0af57ce8067fc1e5227654a13bc0bed0bf1b4fb1))
### Miscellaneous
* sync repo v1.6.1 ([ea14e94](https://github.com/terwer/sy-post-publisher/commit/ea14e94d0f28c486b410371dfbe54d267e63fd1a))
* **deps-dev:** bump vite-plugin-node-polyfills from 0.8.2 to 0.11.1 ([55c389b](https://github.com/terwer/siyuan-plugin-publisher/commit/55c389b7e699c4bd7c33b8787dec98300cd16cc3))
## [1.7.0](https://github.com/terwer/siyuan-plugin-publisher/compare/v1.6.1...v1.7.0) (2023-08-11)
* [#593](https://github.com/terwer/siyuan-plugin-publisher/issues/593) 插件版支持图床替换图片 ([bc645c0](https://github.com/terwer/siyuan-plugin-publisher/commit/bc645c0751016daabfa2e309882f988bd46e49ac))
* 修复授权码模式发布预览失效问题 ([633dabf](https://github.com/terwer/siyuan-plugin-publisher/commit/633dabf97fef63883cd9cd7865becbdab7a07677))
* 添加帮助文档链接 ([f9deaf4](https://github.com/terwer/siyuan-plugin-publisher/commit/f9deaf4c7ec2ec423a9ab02789e96ad7534051df))
## [1.6.1](https://github.com/terwer/siyuan-plugin-publisher/compare/v1.6.0...v1.6.1) (2023-08-09)
### Bug Fixes
* lodash-es ([29b65ed](https://github.com/terwer/siyuan-plugin-publisher/commit/29b65ed7d4672eee1a54b16552f281afd0344df6))
## [1.6.0](https://github.com/terwer/siyuan-plugin-publisher/compare/v1.5.2...v1.6.0) (2023-08-09)
### Features
* 修正博客园markdown分类问题 ([ea1950d](https://github.com/terwer/siyuan-plugin-publisher/commit/ea1950d32e3886889bacbdbbdce9e52b9bbbc61d))
* 发布首个稳定版 ([945df12](https://github.com/terwer/siyuan-plugin-publisher/commit/945df12a6ecf89b02d3aa2cdba6119f152a247a7))
* 开始适配知乎 ([8db460c](https://github.com/terwer/siyuan-plugin-publisher/commit/8db460c7c3bf4426f80ae206eb2fabd40029d67f))
Expand Down
30 changes: 16 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,23 @@ 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
- Support for publishing to Hexo
- Support for publishing to Notion
Expand All @@ -28,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 All @@ -61,14 +63,14 @@ Names not listed in order
## Core Features

- [X] **Extremely fast release**: One-time configuration, one-click release
- [ ] **Picture bed management**: Integrate PicGO picture bed, support s3, minio, watermark plugin
- [X] **Picture bed management**: Integrate PicGO picture bed, support s3, minio, watermark plugin
- [X] **Support for extensions**: Based on the unified blog API specification, built-in support for metaweblogAPI, WordPress
and GitHub, and provides a unified adapter, which can theoretically be extended to any platform
- [X] **Platform switch**: All platforms support enabling and disabling, the blog garden is enabled by default, and can be
disabled at any time
- [X] **Dynamic Newly Added**: Support custom adding platform
- [ ] **Smart Classification**: Support smart tags, smart slug aliases, smart summaries, and continue to improve
- [ ] **Article Binding**: Support linking existing platform articles to Siyuan Notes to facilitate follow-up management,
- [X] **Article Binding**: Support linking existing platform articles to Siyuan Notes to facilitate follow-up management,
support Siyuan->platform one-way synchronization
- [X] **Adapt to Theme**: Automatically adapt to dark mode and light mode
- [X] **Language support**: multi-language support, support Chinese version and English version
Expand Down Expand Up @@ -163,7 +165,7 @@ more useful tools~
Names not listed in order

|Name|version|vendor|
| :---------: | :-----: | :---------: |
| :---------: | :-----: | :---------: |
|turbo|1.9+|Vercel|
|vite|4.2+|Evan You|
|Svelte|3.57+|Rich Harris|
Expand Down
35 changes: 19 additions & 16 deletions README_zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,25 @@

将思源笔记的文章发布到语雀、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插件的情况下替换图床图片链接
- 修复授权码模式发布预览失效问题
- 支持发布到知乎
- 支持发布到 Hexo
- 支持发布到 Notion
Expand All @@ -26,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 All @@ -59,12 +62,12 @@
## 核心特色

- [X] **极速发布**:一次配置,一键发布
- [ ] **图床管理**:集成 PicGO 图床,支持 s3、minio、水印插件
- [X] **图床管理**:集成 PicGO 图床,支持 s3、minio、水印插件,需要在集市安装 [Picgo插件](https://github.com/terwer/siyuan-plugin-picgo)**目前仅支持PC客户端**
- [X] **支持扩展**:基于统一的博客 API 规范,内置 metaweblogAPI 、 WordPress 、Wechatsync 和 Github 支持,并提供了统一的适配器,理论上可支持扩展到任何平台
- [X] **平台开关**:所有平台均支持启用禁用,默认开启博客园,可随时禁用
- [X] **动态新增**:支持自定义添加平台
- [ ] **智能分类**:支持智能标签、智能 slug 别名、智能摘要,并持续完善中
- [ ] **文章绑定**:支持关联已有的平台文章到思源笔记,方便后续管理,支持思源-> 平台单向同步
- [X] **文章绑定**:支持关联已有的平台文章到思源笔记,方便后续管理,支持思源-> 平台单向同步
- [X] **适应主题**:自动适配暗黑模式与浅色模式
- [X] **语言支持**:多语言支持,支持中文版和英文版
- [ ] **发布视图**:支持多种发布视图,简单模式、详细模式和源码模式
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"
1 change: 1 addition & 0 deletions esbuild.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const isServe = args.serve || args.s || false
let baseDir
if (isWatch || isServe) {
baseDir = "/Users/terwer/Documents/mydocs/SiYuanWorkspace/test/data/plugins/siyuan-plugin-publisher"
// baseDir = "/Users/terwer/Documents/mydocs/SiYuanWorkspace/public/data/plugins/siyuan-plugin-publisher"
} else {
baseDir = "./"
}
Expand Down
23 changes: 13 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "siyuan-plugin-publisher",
"version": "0.10.4",
"version": "1.8.0",
"description": "Publish articles from Siyuan Notes to platforms such as Yuque, Notion, Cnblogs, WordPress, Typecho, Hexo, Zhihu and more",
"repository": "terwer/siyuan-plugin-publisher",
"homepage": "https://github.com/terwer/siyuan-plugin-publisher",
Expand Down 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 @@ -46,7 +47,7 @@
"vercel": "^31.2.3",
"vite": "^4.4.9",
"vite-plugin-html": "^3.2.0",
"vite-plugin-node-polyfills": "^0.8.2",
"vite-plugin-node-polyfills": "^0.11.1",
"vitest": "^0.34.1",
"vue-tsc": "^1.8.8"
},
Expand All @@ -56,25 +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.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-common": "^1.14.1",
"zhi-blog-api": "^1.20.22",
"zhi-common": "^1.14.2",
"zhi-device": "^2.3.0",
"zhi-fetch-middleware": "^0.2.19",
"zhi-github-middleware": "^0.2.1",
"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.19",
"zhi-xmlrpc-middleware": "^0.4.14"
"zhi-notion-markdown": "^0.1.4",
"zhi-siyuan-api": "^2.0.27",
"zhi-xmlrpc-middleware": "^0.4.15"
}
}
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "siyuan-plugin-publisher",
"author": "terwer",
"url": "https://github.com/terwer/siyuan-plugin-publisher",
"version": "0.10.4",
"version": "1.8.0",
"minAppVersion": "2.9.0",
"backends": [
"windows",
Expand Down
Loading

0 comments on commit d59b668

Please sign in to comment.