Skip to content

Commit

Permalink
Merge pull request #302 from terwer/dev
Browse files Browse the repository at this point in the history
feat: #132 集成PicGO以及图床
  • Loading branch information
terwer committed Dec 29, 2022
2 parents 3c0bd23 + 503e3ad commit 13a0936
Show file tree
Hide file tree
Showing 63 changed files with 4,553 additions and 2,071 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ jobs:
${{ runner.os }}-pnpm-store-
- name: Install dependencies and build for production
run: pnpm install --no-frozen-lockfile && pnpm run build
run: pnpm install --no-frozen-lockfile && pnpm newVersion && pnpm run build
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@ coverage

# docs
out
.pnpm-store
.pnpm-store
public/lib/picgo/picgo.cfg.json
34 changes: 30 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# sy-post-publisher

![](https://raw.githubusercontent.com/terwer/src-sy-post-publisher/main/assets/favicon/android-chrome-512x512.png)
![](https://img1.terwer.space/api/public/202212181125714.png)

[思源笔记](https://github.com/siyuan-note/siyuan) 的文章发布到支持的平台的 **思源笔记挂件**

Expand All @@ -13,7 +13,7 @@
[![](https://img.shields.io/badge/%E5%B8%AE%E5%8A%A9%E6%96%87%E6%A1%A3-doc-blue)](https://www.terwer.space/post/readme-1j4ltp.html)
[![](https://img.shields.io/badge/%E6%96%B0%E6%89%8B%E5%B0%8F%E7%99%BD%E7%BA%A7%E8%A7%86%E9%A2%91%E6%95%99%E7%A8%8B-video-red)](https://www.terwer.space/post/configure-entry-video-brpm9.html)

![](https://raw.githubusercontent.com/terwer/src-sy-post-publisher/main/public/preview.png)
![](https://img1.terwer.space/api/public/202212181127124.png)

## 状态

Expand Down Expand Up @@ -55,9 +55,10 @@ import("/widgets/sy-post-publisher/lib/siyuanhook.js")

点击按钮开始体验

![](https://img1.terwer.space/api/public/202212151951396.png)
![](https://img1.terwer.space/api/public/20221228-175950.jpeg)

详情请参考: [挂件模式用挂载菜单的方式使用](https://www.terwer.space/post/the-pendant-mode-is-used-in-the-method-of-mounting-menu-169wrw.html#%E6%95%88%E6%9E%9C%E6%BC%94%E7%A4%BA)<sup>强烈推荐</sup> <sup>0.4.2+</sup>
详情请参考: [挂件模式用挂载菜单的方式使用](https://www.terwer.space/post/the-pendant-mode-is-used-in-the-method-of-mounting-menu-169wrw.html#%E6%95%88%E6%9E%9C%E6%BC%94%E7%A4%BA)<sup>
强烈推荐</sup> <sup>0.4.2+</sup>

## 挂件版通用方式快速上手

Expand Down Expand Up @@ -156,6 +157,18 @@ https://terwer.space/post/start-to-get-started-zi0eyk.html
- [x] 支持自定义设置 API 地址,支持本地、局域网、远程 <sup>0.1.0+</sup>
- [x] 支持配置导入导出 <sup>0.2.0+</sup>
- [x] 通用设置支持标题序号开关、正文 H1 开关、新窗口开关、自动标签开关 <sup>0.2.0+</sup>
- [x] 支持设置 Anki 牌组标记 <sup>0.6.0+</sup>

- anki 使用入门请参考:https://ld246.com/article/1670312056742

- [x] 支持通过 PicGO 管理图床 <sup>
0.6.0+ [挂件版已经完美集成 PicGO,可直接使用;浏览器插件只能通过 HTTP 调用本地的 PicGO,需手动下载和配置]</sup>

- PicGO 使用注意事项:

1. 如果你使用的是浏览器插件可以从这里下载配置 PicGO 客户端:https://github.com/Molunerfinn/PicGo/releases

2. 挂件版无需此操作

## 最近更新

Expand Down Expand Up @@ -237,6 +250,9 @@ npm i -g vercel
```bash
pnpm install
pnpm serve

# windows
# pnpm serveWin
```

### 开发阶段调试
Expand All @@ -253,6 +269,9 @@ VITE_MIDDLEWARE_URL=https://publish.terwer.space/api/middleware

```bash
pnpm dev

# windows
# pnpm devWin
```

浏览器默认入口连接是
Expand All @@ -267,6 +286,9 @@ http://localhost:3000/blog/index.html

```bash
pnpm widget

# windows
# pnpm widgetWin
```

提交 `dist` 文件夹到仓库, 上架思源笔记挂件集市。
Expand All @@ -275,6 +297,9 @@ pnpm widget

```bash
pnpm extChrome

# windows
# pnpm extChromeWin
```

插件调试
Expand Down Expand Up @@ -311,6 +336,7 @@ UI 框架:(排名不分先后)
- [Vue3](https://vuejs.org/)
- [Element-Plus](https://element-plus.org/)
- [lute](https://github.com/88250/lute)
- [FontAwesome](https://fontawesome.com/)

技术框架或托管平台:(排名不分先后)

Expand Down
3 changes: 3 additions & 0 deletions components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ declare module '@vue/runtime-core' {
ElAutocomplete: typeof import('element-plus/es')['ElAutocomplete']
ElButton: typeof import('element-plus/es')['ElButton']
ElButtonGroup: typeof import('element-plus/es')['ElButtonGroup']
ElCard: typeof import('element-plus/es')['ElCard']
ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
ElCheckboxGroup: typeof import('element-plus/es')['ElCheckboxGroup']
ElCol: typeof import('element-plus/es')['ElCol']
ElContainer: typeof import('element-plus/es')['ElContainer']
ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
ElDialog: typeof import('element-plus/es')['ElDialog']
Expand All @@ -26,6 +28,7 @@ declare module '@vue/runtime-core' {
ElPagination: typeof import('element-plus/es')['ElPagination']
ElRadio: typeof import('element-plus/es')['ElRadio']
ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']
ElRow: typeof import('element-plus/es')['ElRow']
ElSelect: typeof import('element-plus/es')['ElSelect']
ElSkeleton: typeof import('element-plus/es')['ElSkeleton']
ElSwitch: typeof import('element-plus/es')['ElSwitch']
Expand Down
Loading

1 comment on commit 13a0936

@vercel
Copy link

@vercel vercel bot commented on 13a0936 Dec 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.