-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 81f4c83
Showing
62 changed files
with
6,248 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: Create Release on Tag Push | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Checkout | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
# Install Node.js | ||
- name: Install Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
registry-url: "https://registry.npmjs.org" | ||
|
||
# Install pnpm | ||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
id: pnpm-install | ||
with: | ||
version: 8 | ||
run_install: false | ||
|
||
# Get pnpm store directory | ||
- name: Get pnpm store directory | ||
id: pnpm-cache | ||
shell: bash | ||
run: | | ||
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT | ||
# Setup pnpm cache | ||
- name: Setup pnpm cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
# Install dependencies | ||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
# Build for production, 这一步会生成一个 package.zip | ||
- name: Build for production | ||
run: pnpm build | ||
|
||
- name: Release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
allowUpdates: true | ||
artifactErrorsFailBuild: true | ||
artifacts: "package.zip" | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
prerelease: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.idea | ||
.vscode | ||
.DS_Store | ||
pnpm-lock.yaml | ||
package-lock.json | ||
package.zip | ||
node_modules | ||
dev | ||
dist | ||
build | ||
tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
# Changelog | ||
|
||
## v0.3.5 2024-04-30 | ||
|
||
* [Add `direction` to plugin method `Setting.addItem`](https://github.com/siyuan-note/siyuan/issues/11183) | ||
|
||
|
||
## 0.3.4 2024-02-20 | ||
|
||
* [Add plugin event bus `click-flashcard-action`](https://github.com/siyuan-note/siyuan/issues/10318) | ||
|
||
## 0.3.3 2024-01-24 | ||
|
||
* Update dock icon class | ||
|
||
## 0.3.2 2024-01-09 | ||
|
||
* [Add plugin `protyleOptions`](https://github.com/siyuan-note/siyuan/issues/10090) | ||
* [Add plugin api `uninstall`](https://github.com/siyuan-note/siyuan/issues/10063) | ||
* [Add plugin method `updateCards`](https://github.com/siyuan-note/siyuan/issues/10065) | ||
* [Add plugin function `lockScreen`](https://github.com/siyuan-note/siyuan/issues/10063) | ||
* [Add plugin event bus `lock-screen`](https://github.com/siyuan-note/siyuan/pull/9967) | ||
* [Add plugin event bus `open-menu-inbox`](https://github.com/siyuan-note/siyuan/pull/9967) | ||
|
||
|
||
## 0.3.1 2023-12-06 | ||
|
||
* [Support `Dock Plugin` and `Command Palette` on mobile](https://github.com/siyuan-note/siyuan/issues/9926) | ||
|
||
## 0.3.0 2023-12-05 | ||
|
||
* Upgrade Siyuan to 0.9.0 | ||
* Support more platforms | ||
|
||
## 0.2.9 2023-11-28 | ||
|
||
* [Add plugin method `openMobileFileById`](https://github.com/siyuan-note/siyuan/issues/9738) | ||
|
||
|
||
## 0.2.8 2023-11-15 | ||
|
||
* [`resize` cannot be triggered after dragging to unpin the dock](https://github.com/siyuan-note/siyuan/issues/9640) | ||
|
||
## 0.2.7 2023-10-31 | ||
|
||
* [Export `Constants` to plugin](https://github.com/siyuan-note/siyuan/issues/9555) | ||
* [Add plugin `app.appId`](https://github.com/siyuan-note/siyuan/issues/9538) | ||
* [Add plugin event bus `switch-protyle`](https://github.com/siyuan-note/siyuan/issues/9454) | ||
|
||
## 0.2.6 2023-10-24 | ||
|
||
* [Deprecated `loaded-protyle` use `loaded-protyle-static` instead](https://github.com/siyuan-note/siyuan/issues/9468) | ||
|
||
## 0.2.5 2023-10-10 | ||
|
||
* [Add plugin event bus `open-menu-doctree`](https://github.com/siyuan-note/siyuan/issues/9351) | ||
|
||
## 0.2.4 2023-09-19 | ||
|
||
* Supports use in windows | ||
* [Add plugin function `transaction`](https://github.com/siyuan-note/siyuan/issues/9172) | ||
|
||
## 0.2.3 2023-09-05 | ||
|
||
* [Add plugin function `transaction`](https://github.com/siyuan-note/siyuan/issues/9172) | ||
* [Plugin API add openWindow and command.globalCallback](https://github.com/siyuan-note/siyuan/issues/9032) | ||
|
||
## 0.2.2 2023-08-29 | ||
|
||
* [Add plugin event bus `destroy-protyle`](https://github.com/siyuan-note/siyuan/issues/9033) | ||
* [Add plugin event bus `loaded-protyle-dynamic`](https://github.com/siyuan-note/siyuan/issues/9021) | ||
|
||
## 0.2.1 2023-08-21 | ||
|
||
* [Plugin API add getOpenedTab method](https://github.com/siyuan-note/siyuan/issues/9002) | ||
* [Plugin API custom.fn => custom.id in openTab](https://github.com/siyuan-note/siyuan/issues/8944) | ||
|
||
## 0.2.0 2023-08-15 | ||
|
||
* [Add plugin event bus `open-siyuan-url-plugin` and `open-siyuan-url-block`](https://github.com/siyuan-note/siyuan/pull/8927) | ||
|
||
|
||
## 0.1.12 2023-08-01 | ||
|
||
* Upgrade siyuan to 0.7.9 | ||
|
||
## 0.1.11 | ||
|
||
* [Add `input-search` event bus to plugins](https://github.com/siyuan-note/siyuan/issues/8725) | ||
|
||
|
||
## 0.1.10 | ||
|
||
* [Add `bind this` example for eventBus in plugins](https://github.com/siyuan-note/siyuan/issues/8668) | ||
* [Add `open-menu-breadcrumbmore` event bus to plugins](https://github.com/siyuan-note/siyuan/issues/8666) | ||
|
||
## 0.1.9 | ||
|
||
* [Add `open-menu-xxx` event bus for plugins ](https://github.com/siyuan-note/siyuan/issues/8617) | ||
|
||
## 0.1.8 | ||
|
||
* [Add protyleSlash to the plugin](https://github.com/siyuan-note/siyuan/issues/8599) | ||
* [Add plugin API protyle](https://github.com/siyuan-note/siyuan/issues/8445) | ||
|
||
## 0.1.7 | ||
|
||
* [Support build js and json](https://github.com/siyuan-note/plugin-sample/pull/8) | ||
|
||
## 0.1.6 | ||
|
||
* add `fetchPost` example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2023 SiYuan 思源笔记 | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
## 二级文档列表插件 | ||
|
||
|
||
### 功能介绍 | ||
1. 点击文档树中的的笔记本或文档会切换(刷新)文档列表。 | ||
2. 双击文档列表的文档,会在文档树中定位该文档。 | ||
|
||
#### 何时会切换路径 | ||
1. 点击笔记本名称或文档名称。 | ||
2. 点击的文档存在子文档。 | ||
|
||
注意:文档前面的 折叠按钮、Emoji,后面的 更多按钮、添加子文档按钮 不会触发切换路径; | ||
|
||
|
||
|
||
|
||
### 注意事项 | ||
|
||
该插件使用两种搜索方式,一种是“数据库查询”,另一种是“根据路径获取文档接口”; | ||
|
||
因为数据库不存在文档的子文档数量、文档大小、文档顺序 信息,所以在使用数据库查询时,使用了前面提到的排序方式,会重置为设置中的:“数据库默认查询方式”。 | ||
|
||
|
||
#### 何时使用数据库查询? | ||
1. 显示全部文档时。 | ||
2. 开启显示子文档的子文档。 | ||
3. 开启全文搜索 同时 使用了关键字搜索。 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
## 二级文档列表插件 | ||
|
||
|
||
### 功能介绍 | ||
1. 点击文档树中的的笔记本或文档会切换(刷新)文档列表。 | ||
2. 双击文档列表的文档,会在文档树中定位该文档。 | ||
|
||
#### 何时会切换路径 | ||
1. 点击笔记本名称或文档名称。 | ||
2. 点击的文档存在子文档。 | ||
|
||
注意:文档前面的 折叠按钮、Emoji,后面的 更多按钮、添加子文档按钮 不会触发切换路径; | ||
|
||
|
||
|
||
|
||
### 注意事项 | ||
|
||
该插件使用两种搜索方式,一种是“数据库查询”,另一种是“根据路径获取文档接口”; | ||
|
||
因为数据库不存在文档的子文档数量、文档大小、文档顺序 信息,所以在使用数据库查询时,使用了前面提到的排序方式,会重置为设置中的:“数据库默认查询方式”。 | ||
|
||
|
||
#### 何时使用数据库查询? | ||
1. 显示全部文档时。 | ||
2. 开启显示子文档的子文档。 | ||
3. 开启全文搜索 同时 使用了关键字搜索。 | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"name": "plugin-sample-vite-svelte", | ||
"version": "0.3.5", | ||
"type": "module", | ||
"description": "This is a sample plugin based on vite and svelte for Siyuan (https://b3log.org/siyuan)", | ||
"repository": "", | ||
"homepage": "", | ||
"author": "frostime", | ||
"license": "MIT", | ||
"scripts": { | ||
"make-link": "node --no-warnings ./scripts/make_dev_link.js", | ||
"make-link-win": "powershell.exe -NoProfile -ExecutionPolicy Bypass -File ./scripts/elevate.ps1 -scriptPath ./scripts/make_dev_link.js", | ||
"dev": "vite build --watch", | ||
"update-version": "node --no-warnings ./scripts/update_version.js", | ||
"build": "vite build", | ||
"make-install": "vite build && node --no-warnings ./scripts/make_install.js" | ||
}, | ||
"devDependencies": { | ||
"@sveltejs/vite-plugin-svelte": "^3.0.0", | ||
"@tsconfig/svelte": "^4.0.1", | ||
"@types/node": "^20.3.0", | ||
"fast-glob": "^3.2.12", | ||
"glob": "^7.2.3", | ||
"js-yaml": "^4.1.0", | ||
"minimist": "^1.2.8", | ||
"rollup-plugin-livereload": "^2.0.5", | ||
"sass": "^1.63.3", | ||
"siyuan": "0.9.9", | ||
"svelte": "^4.2.0", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^5.1.3", | ||
"vite": "^5.0.0", | ||
"vite-plugin-static-copy": "^1.0.2", | ||
"vite-plugin-zip-pack": "^1.0.5" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"name": "syplugin-dual-doc-list", | ||
"author": "Misuzu2027", | ||
"url": "https://github.com/Misuzu2027/syplugin-dual-doc-list", | ||
"version": "0.0.1", | ||
"minAppVersion": "3.0.12", | ||
"backends": [ | ||
"all" | ||
], | ||
"frontends": [ | ||
"desktop", | ||
"browser-desktop", | ||
"desktop-window" | ||
], | ||
"displayName": { | ||
"en_US": "Dual-Level Document List", | ||
"zh_CN": "二级文档列表" | ||
}, | ||
"description": { | ||
"en_US": "Dual-Level Document List", | ||
"zh_CN": "二级文档列表" | ||
}, | ||
"readme": { | ||
"en_US": "README.md", | ||
"zh_CN": "README_zh_CN.md" | ||
}, | ||
"funding": { | ||
"custom": [ | ||
"" | ||
] | ||
}, | ||
"keywords": [ | ||
"document", | ||
"tree", | ||
"文档", | ||
"搜索" | ||
] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.