Skip to content

Commit e99cdc8

Browse files
committed
feat (core): 支持 Web 方式渲染
1 parent a7b1c6a commit e99cdc8

38 files changed

Lines changed: 319 additions & 82 deletions

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ jobs:
3737
- name: Deploy
3838
uses: peaceiris/actions-gh-pages@v3
3939
with:
40-
github_token: ${{ secrets.GITHUB_TOKEN }}
40+
github_token: ${{ secrets.GH_TOKEN }}
4141
publish_dir: docs/dist

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"@codemirror/view": "^6.38.1",
2424
"@tauri-apps/api": "^2",
2525
"@tauri-apps/plugin-dialog": "^2.3.2",
26+
"@tauri-apps/plugin-fs": "^2.4.2",
2627
"@tauri-apps/plugin-opener": "^2",
2728
"@tauri-apps/plugin-shell": "^2.3.0",
2829
"@uiw/codemirror-themes-all": "^4.24.2",

src-tauri/Cargo.lock

Lines changed: 64 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ tauri-build = { version = "2", features = [] }
1414
chrono = { version = "0.4.41", features = ["serde"] }
1515

1616
[dependencies]
17-
tauri = { version = "2", features = ["devtools"] }
17+
tauri = { version = "2", features = [ "devtools"] }
1818
tauri-plugin-opener = "2"
1919
tauri-plugin-shell = "2.0"
2020
tauri-plugin-dialog = "2.0"
21+
tauri-plugin-fs = "2.4.2"
2122
serde = { version = "1", features = ["derive"] }
2223
serde_json = "1"
2324
tokio = "1.47.1"

src-tauri/capabilities/default.json

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,24 @@
1818
},
1919
"shell:default",
2020
"shell:allow-open",
21-
"dialog:default"
21+
"dialog:default",
22+
"fs:allow-read-text-file",
23+
{
24+
"identifier": "fs:scope",
25+
"allow": [
26+
{
27+
"path": "/var/folders/**"
28+
},
29+
{
30+
"path": "/tmp/**"
31+
},
32+
{
33+
"path": "/private/var/folders/**"
34+
},
35+
{
36+
"path": "**"
37+
}
38+
]
39+
}
2240
]
23-
}
41+
}

0 commit comments

Comments
 (0)