Skip to content

Commit

Permalink
sy-post-publisher v0.7.2版本,修复 PicGO 初始化失败问题
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Mar 4, 2023
1 parent 6f6abfe commit 1c968d1
Show file tree
Hide file tree
Showing 26 changed files with 115 additions and 104 deletions.
30 changes: 17 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@
<a title="Downloads" target="_blank" href="https://github.com/terwer/src-sy-post-publisher/releases"><img src="https://img.shields.io/github/downloads/terwer/src-sy-post-publisher/total.svg?label=extension-downloads&style=flat-square&color=blueviolet"></a>
<a title="Downloads" target="_blank" href="https://github.com/terwer/src-sy-post-publisher/releases"><img src="https://img.shields.io/github/downloads/terwer/sy-post-publisher/total.svg?label=widget-downloads&style=flat-square&color=blue"></a>

## v0.7.1 Bug修复
## v0.7.2 Bug 修复

- 修复 PicGO 初始化失败问题

## v0.7.1 Bug 修复

- 修复 PicGO 旧的配置文件迁移过程中路径拼接错误问题

Expand All @@ -32,12 +36,12 @@
### PicGO 相关

- 新增用户友好的 PicGO 图形化配置界面
- 优化 PicGO 配置,支持 PicGO 插件(目前支持水印、s3、minio三个插件
- PicGO默认图床为github
- PicGO支持图片重命名
- 云床配置buffer读取报错问题,测试常用图床
- PicGO引入事件监听机制,支持事件注册、事件发布
- PicGO支持读取多个图床,单个图床支持多份配置
- 优化 PicGO 配置,支持 PicGO 插件(目前支持水印、s3、minio 三个插件
- PicGO 默认图床为 github
- PicGO 支持图片重命名
- 云床配置 buffer 读取报错问题,测试常用图床
- PicGO 引入事件监听机制,支持事件注册、事件发布
- PicGO 支持读取多个图床,单个图床支持多份配置

### 系统配置相关

Expand All @@ -49,16 +53,16 @@
### 发布体验相关

- 【文章绑定】操作非配置项,也是可选功能,放在发布页面容易造成误解,现将操作移入详情页,仅在需要将平台文章与思源笔记建立联系时候使用。新增文章无需操作,新增会自动进行绑定
- 修复浏览器插件不能使用http,只能用https问题
- 修复typecho发布文章未成功解析文章id
- 文章列表图标添加tooltip
- 修复浏览器插件不能使用 http,只能用 https 问题
- 修复 typecho 发布文章未成功解析文章 id
- 文章列表图标添加 tooltip
- 插槽按钮添加文字提示
- 新窗口打开时操作按钮fixed不随页面滑动
- 新窗口打开时操作按钮 fixed 不随页面滑动

### 开发者相关

- 使用python重构项目构建脚本-支持一键打包
- 挂载SyCmd,适配Anki同步(目前仅Mac可用
- 使用 python 重构项目构建脚本-支持一键打包
- 挂载 SyCmd,适配 Anki 同步(目前仅 Mac 可用

### 其他

Expand Down
6 changes: 3 additions & 3 deletions anki/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<link rel="shortcut icon" href="/widgets/sy-post-publisher/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Anki卡片标记 - 思源笔记发布辅助工具</title>
<script type="module" crossorigin src="/widgets/sy-post-publisher/static/js/anki-ccffb5e3.js"></script>
<script type="module" crossorigin src="/widgets/sy-post-publisher/static/js/anki-da7020c3.js"></script>
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/vendor_before-after-hook-6380be1a.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/vendor_rollup-plugin-node-polyfills-43c96027.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/vendor_universal-user-agent-fa924523.js">
Expand Down Expand Up @@ -64,8 +64,8 @@
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/vendor_xmlbuilder2-780b1a8c.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/vendor_simple-xmlrpc-212666d6.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/vendor_lodash-37b14d55.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/AppLayout.vue_vue_type_script_setup_true_lang-a01203bb.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/AnkiIndex-7f15e979.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/AppLayout.vue_vue_type_script_setup_true_lang-0e4e5141.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/AnkiIndex-1db37cbc.js">
<link rel="stylesheet" href="/widgets/sy-post-publisher/static/css/AppLayout-347b3b26.css">
<link rel="stylesheet" href="/widgets/sy-post-publisher/static/css/AnkiIndex-8b78e8e2.css">
<link rel="stylesheet" href="/widgets/sy-post-publisher/static/css/vendor_element-plus-479553c1.css">
Expand Down
16 changes: 8 additions & 8 deletions blog/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<link rel="shortcut icon" href="/widgets/sy-post-publisher/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>文章列表查看 - 思源笔记发布辅助工具</title>
<script type="module" crossorigin src="/widgets/sy-post-publisher/static/js/blog-e6806d01.js"></script>
<script type="module" crossorigin src="/widgets/sy-post-publisher/static/js/blog-02bcc5a0.js"></script>
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/vendor_before-after-hook-6380be1a.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/vendor_rollup-plugin-node-polyfills-43c96027.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/vendor_universal-user-agent-fa924523.js">
Expand Down Expand Up @@ -64,16 +64,16 @@
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/vendor_xmlbuilder2-780b1a8c.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/vendor_simple-xmlrpc-212666d6.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/vendor_lodash-37b14d55.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/AppLayout.vue_vue_type_script_setup_true_lang-a01203bb.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/PostDetailService.vue_vue_type_style_index_0_lang-ebd030b9.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/AppLayout.vue_vue_type_script_setup_true_lang-0e4e5141.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/PostDetailService.vue_vue_type_style_index_0_lang-8c7d7837.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/vendor_toggle-selection-441a0a42.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/vendor_copy-to-clipboard-a51858f9.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/vendor_blueimp-md5-es6-056b4f91.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/picgoPostApi-eced7049.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/PublishService-6227fd1c.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/AnkiIndex-7f15e979.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/PicgoIndex.vue_vue_type_style_index_0_lang-42ba62d9.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/BlogIndex.vue_vue_type_script_setup_true_lang-dbe90ef6.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/picgoPostApi-0729a340.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/PublishService-a5948f32.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/AnkiIndex-1db37cbc.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/PicgoIndex.vue_vue_type_style_index_0_lang-6fa34456.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/BlogIndex.vue_vue_type_script_setup_true_lang-66943a42.js">
<link rel="stylesheet" href="/widgets/sy-post-publisher/static/css/AppLayout-347b3b26.css">
<link rel="stylesheet" href="/widgets/sy-post-publisher/static/css/BlogIndex-f4c5ff9d.css">
<link rel="stylesheet" href="/widgets/sy-post-publisher/static/css/vendor_element-plus-479553c1.css">
Expand Down
6 changes: 3 additions & 3 deletions detail/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<link rel="shortcut icon" href="/widgets/sy-post-publisher/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>文章详情预览 - 思源笔记发布辅助工具</title>
<script type="module" crossorigin src="/widgets/sy-post-publisher/static/js/detail-deed6cac.js"></script>
<script type="module" crossorigin src="/widgets/sy-post-publisher/static/js/detail-edf69852.js"></script>
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/vendor_before-after-hook-6380be1a.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/vendor_rollup-plugin-node-polyfills-43c96027.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/vendor_universal-user-agent-fa924523.js">
Expand Down Expand Up @@ -64,8 +64,8 @@
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/vendor_xmlbuilder2-780b1a8c.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/vendor_simple-xmlrpc-212666d6.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/vendor_lodash-37b14d55.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/AppLayout.vue_vue_type_script_setup_true_lang-a01203bb.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/PostDetailService.vue_vue_type_style_index_0_lang-ebd030b9.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/AppLayout.vue_vue_type_script_setup_true_lang-0e4e5141.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/PostDetailService.vue_vue_type_style_index_0_lang-8c7d7837.js">
<link rel="stylesheet" href="/widgets/sy-post-publisher/static/css/AppLayout-347b3b26.css">
<link rel="stylesheet" href="/widgets/sy-post-publisher/static/css/vendor_element-plus-479553c1.css">
<link rel="stylesheet" href="/widgets/sy-post-publisher/static/css/PostDetailService-99e16a5c.css">
Expand Down
18 changes: 9 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<link rel="shortcut icon" href="/widgets/sy-post-publisher/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>首页 - 思源笔记发布辅助工具</title>
<script type="module" crossorigin src="/widgets/sy-post-publisher/static/js/index-5b8acd6b.js"></script>
<script type="module" crossorigin src="/widgets/sy-post-publisher/static/js/index-7a1ddb68.js"></script>
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/vendor_before-after-hook-6380be1a.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/vendor_rollup-plugin-node-polyfills-43c96027.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/vendor_universal-user-agent-fa924523.js">
Expand Down Expand Up @@ -64,17 +64,17 @@
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/vendor_xmlbuilder2-780b1a8c.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/vendor_simple-xmlrpc-212666d6.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/vendor_lodash-37b14d55.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/AppLayout.vue_vue_type_script_setup_true_lang-a01203bb.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/PostDetailService.vue_vue_type_style_index_0_lang-ebd030b9.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/AppLayout.vue_vue_type_script_setup_true_lang-0e4e5141.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/PostDetailService.vue_vue_type_style_index_0_lang-8c7d7837.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/vendor_toggle-selection-441a0a42.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/vendor_copy-to-clipboard-a51858f9.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/vendor_blueimp-md5-es6-056b4f91.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/picgoPostApi-eced7049.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/PublishService-6227fd1c.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/AnkiIndex-7f15e979.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/PicgoIndex.vue_vue_type_style_index_0_lang-42ba62d9.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/BlogIndex.vue_vue_type_script_setup_true_lang-dbe90ef6.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/PublishIndex-fa3ad488.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/picgoPostApi-0729a340.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/PublishService-a5948f32.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/AnkiIndex-1db37cbc.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/PicgoIndex.vue_vue_type_style_index_0_lang-6fa34456.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/BlogIndex.vue_vue_type_script_setup_true_lang-66943a42.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/PublishIndex-6999766a.js">
<link rel="stylesheet" href="/widgets/sy-post-publisher/static/css/vendor_element-plus-479553c1.css">
<link rel="stylesheet" href="/widgets/sy-post-publisher/static/css/AppLayout-347b3b26.css">
<link rel="stylesheet" href="/widgets/sy-post-publisher/static/css/PostDetailService-99e16a5c.css">
Expand Down
13 changes: 9 additions & 4 deletions lib/siyuanhook.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ const initMethods = {
initPicgoExtension: (entryName) => {
const syWin = getSiyuanWindow()
const dataDir = getSiyuanDataDir()
console.log("initPicgoExtension=>", dataDir)
console.log("syWin=>", syWin)
// console.log("initPicgoExtension=>", dataDir)
// console.log("syWin=>", syWin)

// 防止重复挂载
if (syWin.SyPicgo) {
Expand All @@ -233,11 +233,16 @@ const initMethods = {
appDataFolder,
"sy-picgo"
)
const picgo_cfg_070 = "picgo.cfg.json"
const picgo_cfg_070_file = "picgo.cfg.json"
const picgo_cfg_070 = picgoExtension.joinPath(
picgo_cfg_folder_070,
picgo_cfg_070_file
)

picgoExtension.upgradeCfg(
picgo_cfg_067,
picgo_cfg_folder_070,
picgo_cfg_070
picgo_cfg_070_file
)
console.warn("PicGO配置文件初始化为=>", picgo_cfg_070)

Expand Down
8 changes: 4 additions & 4 deletions picgo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<link rel="shortcut icon" href="/widgets/sy-post-publisher/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Picgo图床 - 思源笔记发布辅助工具</title>
<script type="module" crossorigin src="/widgets/sy-post-publisher/static/js/picgo-d4120b4f.js"></script>
<script type="module" crossorigin src="/widgets/sy-post-publisher/static/js/picgo-87bbd38a.js"></script>
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/vendor_before-after-hook-6380be1a.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/vendor_rollup-plugin-node-polyfills-43c96027.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/vendor_universal-user-agent-fa924523.js">
Expand Down Expand Up @@ -64,10 +64,10 @@
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/vendor_xmlbuilder2-780b1a8c.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/vendor_simple-xmlrpc-212666d6.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/vendor_lodash-37b14d55.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/AppLayout.vue_vue_type_script_setup_true_lang-a01203bb.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/AppLayout.vue_vue_type_script_setup_true_lang-0e4e5141.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/vendor_blueimp-md5-es6-056b4f91.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/picgoPostApi-eced7049.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/PicgoIndex.vue_vue_type_style_index_0_lang-42ba62d9.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/picgoPostApi-0729a340.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/PicgoIndex.vue_vue_type_style_index_0_lang-6fa34456.js">
<link rel="stylesheet" href="/widgets/sy-post-publisher/static/css/AppLayout-347b3b26.css">
<link rel="stylesheet" href="/widgets/sy-post-publisher/static/css/PicgoIndex-7d69e8d1.css">
<link rel="stylesheet" href="/widgets/sy-post-publisher/static/css/vendor_element-plus-479553c1.css">
Expand Down
10 changes: 5 additions & 5 deletions publish/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<link rel="shortcut icon" href="/widgets/sy-post-publisher/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>多平台文章发布 - 思源笔记发布辅助工具</title>
<script type="module" crossorigin src="/widgets/sy-post-publisher/static/js/publish-7c4eb78f.js"></script>
<script type="module" crossorigin src="/widgets/sy-post-publisher/static/js/publish-2e07a578.js"></script>
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/vendor_before-after-hook-6380be1a.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/vendor_rollup-plugin-node-polyfills-43c96027.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/vendor_universal-user-agent-fa924523.js">
Expand Down Expand Up @@ -64,13 +64,13 @@
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/vendor_xmlbuilder2-780b1a8c.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/vendor_simple-xmlrpc-212666d6.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/vendor_lodash-37b14d55.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/AppLayout.vue_vue_type_script_setup_true_lang-a01203bb.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/AppLayout.vue_vue_type_script_setup_true_lang-0e4e5141.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/vendor_toggle-selection-441a0a42.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/vendor_copy-to-clipboard-a51858f9.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/vendor_blueimp-md5-es6-056b4f91.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/picgoPostApi-eced7049.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/PublishService-6227fd1c.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/PublishIndex-fa3ad488.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/picgoPostApi-0729a340.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/PublishService-a5948f32.js">
<link rel="modulepreload" crossorigin href="/widgets/sy-post-publisher/static/js/PublishIndex-6999766a.js">
<link rel="stylesheet" href="/widgets/sy-post-publisher/static/css/AppLayout-347b3b26.css">
<link rel="stylesheet" href="/widgets/sy-post-publisher/static/css/PublishIndex-32538930.css">
<link rel="stylesheet" href="/widgets/sy-post-publisher/static/css/vendor_element-plus-479553c1.css">
Expand Down
Loading

0 comments on commit 1c968d1

Please sign in to comment.