Skip to content

Commit

Permalink
Merge pull request #79 from terwer/release-please--branches--main--co…
Browse files Browse the repository at this point in the history
…mponents--release-please-action

chore(main): release 0.9.0
  • Loading branch information
terwer authored Jul 31, 2023
2 parents c500a17 + 9b3cb7c commit 00e3d1b
Show file tree
Hide file tree
Showing 9 changed files with 102 additions and 41 deletions.
60 changes: 58 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,67 @@
# Changelog

## [0.8.1](https://github.com/terwer/sy-post-publisher/compare/v0.8.0...v0.8.1) (2023-05-21)
## [0.9.0](https://github.com/terwer/sy-post-publisher/compare/v0.8.1...v0.9.0) (2023-07-31)
### Features
* 新版挂件-优化发布交互 ([323496d](https://github.com/terwer/sy-post-publisher/commit/323496de9805865fdf56ccd0fe7973688d14087a))
* 新版挂件-优化发布配置 ([b93112b](https://github.com/terwer/sy-post-publisher/commit/b93112bc945fa03d5896398537042613f98f1960))
* 新版挂件-优化发布配置-列表页面 ([c52c287](https://github.com/terwer/sy-post-publisher/commit/c52c287348fbabadd7f3239cfd09e09829327121))
* 新版挂件-优化平台分类 ([9dea195](https://github.com/terwer/sy-post-publisher/commit/9dea1951fb93757efe059bc139c125f18addbf98))
* 新版挂件-优化平台适配器 ([e4a9f1d](https://github.com/terwer/sy-post-publisher/commit/e4a9f1d504478e4d2798a6c5f5f0d3aef5955c13))
* 新版挂件-修复electron校验执行顺序问题 ([a063926](https://github.com/terwer/sy-post-publisher/commit/a063926f7ef17440097c09cfc7d4458bb1709f78))
* 新版挂件-兼容windows构建 ([b485845](https://github.com/terwer/sy-post-publisher/commit/b485845c917dd8c9eac1d0ad4f638d58cbfc2b89))
* 新版挂件-兼容windows构建,修复博客园api报错问题 ([d1ba9e7](https://github.com/terwer/sy-post-publisher/commit/d1ba9e7db532b7917b1a5d7d97521c13318fd5ce))
* 新版挂件-动态平台管理 ([de09930](https://github.com/terwer/sy-post-publisher/commit/de09930ace424512095308cc463463944d187d98))
* 新版挂件-动态读取配置 ([5234e76](https://github.com/terwer/sy-post-publisher/commit/5234e76716d74223b4e0c234b6ec7a57f3e8ed85))
* 新版挂件-发布0.9.0内测版 ([2807680](https://github.com/terwer/sy-post-publisher/commit/28076800fea932e8bfaf914069188b37c99f3298))
* 新版挂件-插件版极速发布菜单联动 ([833af19](https://github.com/terwer/sy-post-publisher/commit/833af19fbfdb69181c05ea265a19ebab1db93063))
* 新版挂件-支持api携带token和cookie ([24bd457](https://github.com/terwer/sy-post-publisher/commit/24bd4577646815c54481fbd0c9c36fc69956b2c5))
* 新版挂件-支持博客园快速发布 ([58adf94](https://github.com/terwer/sy-post-publisher/commit/58adf94a92cb1d5b784b0b1dca799a9c1ce8d1de))
* 新版挂件-支持知乎网页授权 ([044091e](https://github.com/terwer/sy-post-publisher/commit/044091e8a99144fc01471b1dc54b9e7f36c64610))
* 新版挂件-新增csdn适配器 ([4bbc435](https://github.com/terwer/sy-post-publisher/commit/4bbc4351cdcdce960a328af3e40861fedc55ce73))
* 新版挂件-新增微信公众号适配器 ([ce4a51b](https://github.com/terwer/sy-post-publisher/commit/ce4a51b431edcb74dcd6ebfc4288ee505acb0e2e))
* 新版挂件-新增掘金适配器 ([53ba03e](https://github.com/terwer/sy-post-publisher/commit/53ba03e68ebceaf179cf21bc88d18e589e0301ce))
* 新版挂件-新增知乎网页授权 ([0ff11a4](https://github.com/terwer/sy-post-publisher/commit/0ff11a44f7fcbf7e2bc60dbded5bb58273220b28))
* 新版挂件-新增简书适配器 ([b596687](https://github.com/terwer/sy-post-publisher/commit/b5966879c77417abcfba93621108445ad7ae9c9b))
* 新版挂件-新的发布配置ui ([fe2667d](https://github.com/terwer/sy-post-publisher/commit/fe2667db8b23e4433d2a8d6b54b5db3c49435ba4))
* 新版挂件-知乎网页授权同时兼容electron、chrome浏览器插件、chrome浏览器 ([3591d1c](https://github.com/terwer/sy-post-publisher/commit/3591d1c0c2d00060e05ab6e3e08c9efc88c00114))
* 新版挂件-网页授权交互 ([98949eb](https://github.com/terwer/sy-post-publisher/commit/98949ebc0ad36301e1dea6b15b5a6719d8fe02ae))
* 新版挂件-网页授权支持客户端自动读取cookie ([b2501b3](https://github.com/terwer/sy-post-publisher/commit/b2501b3eede424da2e2ccf6416c6e2024dccb8c6))
* 新版挂件-适配typecho配置 ([f41d464](https://github.com/terwer/sy-post-publisher/commit/f41d46438fb924f6d4b0a0fb284af1cef703cd6b))
* 新版挂件-适配wordpress配置 ([a780b81](https://github.com/terwer/sy-post-publisher/commit/a780b81a6bf308de18ece1b498e2556414d3811f))
* 新版挂件-适配yuque配置 ([e348d89](https://github.com/terwer/sy-post-publisher/commit/e348d89caa8dfcb4b360ea544ba214bcedf68fc5))
* 新版挂件-适配博客园配置 ([3aab48e](https://github.com/terwer/sy-post-publisher/commit/3aab48e91fc3773fecdf73f9cbdbd01853768c60))
* 新版挂件-通用平台定义 ([c380c1a](https://github.com/terwer/sy-post-publisher/commit/c380c1a7a86e2d802d588fe28f352facb232f9ca))
* 新版挂件-通用平台管理 ([277afc8](https://github.com/terwer/sy-post-publisher/commit/277afc84edd3ade52b41fb243be5ab22f3224c8c))
* 新版挂件-重构发布配置 ([7729d99](https://github.com/terwer/sy-post-publisher/commit/7729d99444317b6abe63b1f30cc175bfde617328))
* 新版挂件-重构平台管理 ([003b6c2](https://github.com/terwer/sy-post-publisher/commit/003b6c2c9ce8ef4022a8d1a61c0b6ee642446016))
* 新版挂件-重构设置页面 ([72d4f0b](https://github.com/terwer/sy-post-publisher/commit/72d4f0b9542779153f2b9cc0b0cd1eceec4e9461))
* 新版挂件-集成 api 测试 ([cac089e](https://github.com/terwer/sy-post-publisher/commit/cac089ec80da2fafe08c517e679dfbcfa6b2722a))
### Code Refactoring
* [#8](https://github.com/terwer/sy-post-publisher/issues/8) 迁移到新的打包方式 ([e05c9e5](https://github.com/terwer/sy-post-publisher/commit/e05c9e58d305d21ba8c2d081a7ddc2df3c533bae))
* 上传文件接口调通 ([8c174ae](https://github.com/terwer/sy-post-publisher/commit/8c174aef8c6855b46ef2572c83a901731b54bdb8))
* 使用 eruda 进行日志监控 ([01449b1](https://github.com/terwer/sy-post-publisher/commit/01449b17bfdc9dcf2c00b6c7279788a3e5401dee))
* 使用 eruda 进行日志监控 - 生产阶段去掉调试 ([bede15b](https://github.com/terwer/sy-post-publisher/commit/bede15bb9fc0c03009b4e19e1321aff8d617ff9a))
* 兼容 vercel ([9feda3c](https://github.com/terwer/sy-post-publisher/commit/9feda3c1ce9efc217a61cd8838e38d707c491933))
* 国际化 ([eb1c051](https://github.com/terwer/sy-post-publisher/commit/eb1c051926565ccd41cd40c98a3889fc9f7db2f7))
* 基本布局、国际化、ui组件 ([f442962](https://github.com/terwer/sy-post-publisher/commit/f442962d6349af2036d5196cc98793c3ccfe9469))
* 多语言切换 ([09c7a2d](https://github.com/terwer/sy-post-publisher/commit/09c7a2d74872703404dbadfc599b4929cb310be5))
* 完善 api ([3dbd7d4](https://github.com/terwer/sy-post-publisher/commit/3dbd7d4dfe1377ce761e521e3c75abe02dc910c4))
* 尝试上传文件 ([749852b](https://github.com/terwer/sy-post-publisher/commit/749852b0b86545ef0a3d4c52dcd3af3beaca81e2))
* 打包脚本 ([ea86872](https://github.com/terwer/sy-post-publisher/commit/ea86872de2dbe8bd228117ea8b46205d6229ec60))
* 按需导入 ([7631c3b](https://github.com/terwer/sy-post-publisher/commit/7631c3b574e82f7208bad08a8678d522baa6d43d))
* 新增 api 适配器 ([43da3de](https://github.com/terwer/sy-post-publisher/commit/43da3dea4e66aa90fa2fba127b757769e0ef6b08))
* 新增 apitest 页面 ([a4408ff](https://github.com/terwer/sy-post-publisher/commit/a4408ff764d2b58e48efb602b64f7b0b2e9a2e48))
* 新增博客api、思源api ([d02c122](https://github.com/terwer/sy-post-publisher/commit/d02c122d277b0126f8b3f9506c93db408ad9248b))
* 新增页面路由 ([576b666](https://github.com/terwer/sy-post-publisher/commit/576b666ab2f80fbda1585388d9ad819d4b144f0b))
* 更新 xmlrpc 类库 ([a4308cd](https://github.com/terwer/sy-post-publisher/commit/a4308cd076d829799630f67654b047dd27295c8c))
* 调整 logger ([4175c4c](https://github.com/terwer/sy-post-publisher/commit/4175c4c979259e09d9073e74b7d178c5e33bc1f8))
* 配置适配器 ([f8730db](https://github.com/terwer/sy-post-publisher/commit/f8730db433df87e7a71975de892d552c0b36b117))
* 重构项目结构,兼容 webview 和 iframe ([9718949](https://github.com/terwer/sy-post-publisher/commit/9718949bd7b4cc32603c5eecc2fe919c3e6666ba))
* 集成 api 测试 ([647154c](https://github.com/terwer/sy-post-publisher/commit/647154c9a8835037c36debc3f9cab60f885c6918))
## [0.8.1](https://github.com/terwer/sy-post-publisher/compare/v0.8.0...v0.8.1) (2023-05-21)
* 兼容 siyuanhook ([e6a1ee5](https://github.com/terwer/sy-post-publisher/commit/e6a1ee54747bdcb0034119fea16c17eee68a5949))
### Bug Fixes
* 修复 commonjs 构建错误,取消 type=module 默认 ([aa41b10](https://github.com/terwer/sy-post-publisher/commit/aa41b105c7c69fa905922053ea9112aefd65212c))
### Code Refactoring
* 迁移源码到挂件仓库 https://github.com/siyuan-note/bazaar/issues/1095 ([56fd048](https://github.com/terwer/sy-post-publisher/commit/56fd048420c2314149f865b791ec5cf2a56c2ee9))
### Miscellaneous
* [#7](https://github.com/terwer/sy-post-publisher/issues/7) 全自动化发布流程 ([75d83f5](https://github.com/terwer/sy-post-publisher/commit/75d83f556d8d47c08956f01e79c74cdd813e0608))
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "sy-post-publisher",
"private": true,
"version": "0.8.1",
"version": "0.9.0",
"type": "module",
"scripts": {
"serve": "python scripts/serve.py",
Expand Down
5 changes: 2 additions & 3 deletions scripts/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ def parse_json(filename, version_field, new_version):
parse_json(cwd + "widget.json", "version", args.version)

# manifest.json
parse_json(cwd + "public/manifest.dev.json", "version", args.version)
parse_json(cwd + "public/manifest.prod.json", "version", args.version)
parse_json(cwd + "src/extensions/manifest.json", "version", args.version)

# mv2 manifest.json
parse_json(cwd + "public/mv2/manifest-v2-for-firefox.json", "version", args.version)
parse_json(cwd + "src/extensions/mv2/manifest-v2-for-firefox.json", "version", args.version)
2 changes: 1 addition & 1 deletion src/components/set/publish/platform/dynamicConfig.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe("test dynamicConfig", () => {

it("test getNewPlatformKey", () => {
const ptype = PlatformType.Common
const subtype = SubPlatformType.Custom_CSDN
const subtype = SubPlatformType.Common_Yuque
const result = getNewPlatformKey(ptype, subtype)
console.log("result=>", result)
expect(result).toMatch(/common_Zhihu-\w+/)
Expand Down
8 changes: 4 additions & 4 deletions src/components/set/publish/platform/dynamicConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,10 @@ export enum SubPlatformType {

// Custom
Custom_Zhihu = "Zhihu",
// Custom_CSDN = "Csdn",
Custom_CSDN = "Csdn",
Custom_Jianshu = "Jianshu",
Custom_Juejin = "Juejin",
// Custom_Wechat = "Wechat",
Custom_Wechat = "Wechat",

NONE = "none",
}
Expand Down Expand Up @@ -222,10 +222,10 @@ export function getSubtypeList(ptype: PlatformType): SubPlatformType[] {
break
case PlatformType.Custom:
subtypeList.push(SubPlatformType.Custom_Zhihu)
// subtypeList.push(SubPlatformType.Custom_CSDN)
subtypeList.push(SubPlatformType.Custom_CSDN)
subtypeList.push(SubPlatformType.Custom_Jianshu)
subtypeList.push(SubPlatformType.Custom_Juejin)
// subtypeList.push(SubPlatformType.Custom_Wechat)
subtypeList.push(SubPlatformType.Custom_Wechat)
break
default:
break
Expand Down
16 changes: 11 additions & 5 deletions src/extensions/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "思源笔记发布辅助工具",
"version": "0.8.1",
"version": "0.9.0",
"manifest_version": 3,
"author": "terwer",
"icons": {
Expand All @@ -13,11 +13,17 @@
"background": {
"service_worker": "background.js"
},
"host_permissions": ["*://*/*"],
"host_permissions": [
"*://*/*"
],
"web_accessible_resources": [
{
"resources": ["index.html"],
"matches": ["<all_urls>"]
"resources": [
"index.html"
],
"matches": [
"<all_urls>"
]
}
],
"action": {
Expand All @@ -32,4 +38,4 @@
"content_security_policy": {
"extension_pages": "script-src 'self'; object-src 'self'"
}
}
}
2 changes: 1 addition & 1 deletion src/extensions/mv2/manifest-v2-for-firefox.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "开发版 - 思源笔记发布辅助工具",
"version": "0.8.1",
"version": "0.9.0",
"manifest_version": 2,
"author": "terwer",
"icons": {
Expand Down
46 changes: 23 additions & 23 deletions src/utils/import/pre.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,18 +99,18 @@ export const pre = {
domain: "zhihu.com",
isEnabled: false,
},
// // CSDN 目前有CA验证
// {
// platformType: PlatformType.Custom,
// subPlatformType: SubPlatformType.Custom_CSDN,
// platformKey: "custom_Csdn",
// platformName: "CSDN",
// platformIcon: svgIcons.iconIFCSDN,
// authMode: AuthMode.WEBSITE,
// authUrl: "https://passport.csdn.net/login",
// domain: "csdn.net",
// isEnabled: false,
// },
// CSDN 目前有CA验证
{
platformType: PlatformType.Custom,
subPlatformType: SubPlatformType.Custom_CSDN,
platformKey: "custom_Csdn",
platformName: "CSDN",
platformIcon: svgIcons.iconIFCSDN,
authMode: AuthMode.WEBSITE,
authUrl: "https://passport.csdn.net/login",
domain: "csdn.net",
isEnabled: false,
},
{
platformType: PlatformType.Custom,
subPlatformType: SubPlatformType.Custom_Jianshu,
Expand All @@ -133,16 +133,16 @@ export const pre = {
domain: "juejin.cn",
isEnabled: false,
},
// {
// platformType: PlatformType.Custom,
// subPlatformType: SubPlatformType.Custom_Wechat,
// platformKey: "custom_Wechat",
// platformName: "微信公众号",
// platformIcon: svgIcons.iconIFWechat,
// authMode: AuthMode.WEBSITE,
// authUrl: "https://mp.weixin.qq.com/",
// domain: "qq.com",
// isEnabled: false,
// },
{
platformType: PlatformType.Custom,
subPlatformType: SubPlatformType.Custom_Wechat,
platformKey: "custom_Wechat",
platformName: "微信公众号",
platformIcon: svgIcons.iconIFWechat,
authMode: AuthMode.WEBSITE,
authUrl: "https://mp.weixin.qq.com/",
domain: "qq.com",
isEnabled: false,
},
],
}
2 changes: 1 addition & 1 deletion widget.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "sy-post-publisher",
"author": "terwer",
"url": "https://github.com/terwer/sy-post-publisher",
"version": "0.8.1",
"version": "0.9.0",
"minAppVersion": "2.9.0",
"backends": [
"windows",
Expand Down

0 comments on commit 00e3d1b

Please sign in to comment.