From 1e47b4fd29fb78ee63dbe5d89649db84c525d14a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9B=AE=E6=A3=83?= Date: Tue, 3 Dec 2024 20:02:21 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20v0.6.4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 2 +- .github/workflows/qodana_code_quality.yml | 2 +- CHANGELOG.md | 14 ++++++-- package.json | 3 +- src-tauri/Cargo.lock | 42 ++++++++++++----------- src-tauri/Cargo.toml | 42 +++++++++++------------ src-tauri/gen/schemas/acl-manifests.json | 31 ++++++++++++++--- src-tauri/gen/schemas/desktop-schema.json | 28 ++++++++++++--- src-tauri/gen/schemas/windows-schema.json | 28 ++++++++++++--- src-tauri/tauri.conf.json | 2 +- 10 files changed, 134 insertions(+), 60 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 11208bf7..b14c6d8b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -47,7 +47,7 @@ jobs: - name: setup pnpm uses: pnpm/action-setup@v2 with: - version: 9.13.2 + version: 9.14.4 - name: Install frontend dependencies run: pnpm install diff --git a/.github/workflows/qodana_code_quality.yml b/.github/workflows/qodana_code_quality.yml index b268c1b6..ebd2dfb3 100644 --- a/.github/workflows/qodana_code_quality.yml +++ b/.github/workflows/qodana_code_quality.yml @@ -16,7 +16,7 @@ jobs: - name: setup pnpm uses: pnpm/action-setup@v2 with: - version: 9.13.2 + version: 9.14.4 - name: Install dependencies run: pnpm install --no-frozen-lockfile - name: "Qodana Scan" diff --git a/CHANGELOG.md b/CHANGELOG.md index 3678948b..13dfdf76 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,12 +2,22 @@ Author: 目棃 Description: CHANGELOG Date: 2024-10-09 -Update: 2024-11-19 +Update: 2024-12-03 --- > 本文档 [`Frontmatter`](https://github.com/BTMuli/MuCli#Frontmatter) 由 [MuCli](https://github.com/BTMuli/Mucli) 自动生成于 `2024-10-09 15:51:43` > -> 更新于 `2024-11-19 17:06:05` +> 更新于 `2024-12-03 19:57:50` + +## [0.6.4](https://github.com/BTMuli/TeyvatGuide/releases/v0.6.4) (2024-12-03) + +- 🐛 修复子回复渲染异常 +- ✏️ 祈愿记录将验证非空ID +- 🐛 修复战绩分享图渲染异常 +- 🐛 修复`dialog`组件`input`默认值无效 +- 🎨 调整帖子查找overlay逻辑 +- ✨ 分享图生成阈值自定义 +- 👽️ 全量刷新时清理旧数据,修复由于米哈游数据异常导致的重复数据 ## [0.6.3](https://github.com/BTMuli/TeyvatGuide/releases/v0.6.3) (2024-11-19) diff --git a/package.json b/package.json index 26a85990..80e731bd 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,9 @@ { "name": "teyvatguide", - "version": "0.6.3", + "version": "0.6.4", "description": "Game Tool for GenshinImpact player", "private": true, + "packageManager": "pnpm@9.14.4", "type": "module", "scripts": { "build": "tauri build", diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 7cad34be..cf3b2153 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -4,7 +4,7 @@ version = 3 [[package]] name = "TeyvatGuide" -version = "0.6.3" +version = "0.6.4" dependencies = [ "chrono", "log", @@ -4948,11 +4948,10 @@ dependencies = [ [[package]] name = "tauri-plugin-deep-link" -version = "2.0.1" -source = "git+ssh://git@github.com/tauri-apps/plugins-workspace.git?branch=v2#ee3fb1dba69ecf0abaafddc8979dddcf9822c2d7" +version = "2.0.2" +source = "git+https://github.com/tauri-apps/plugins-workspace.git?branch=v2#6dbc304c280e3b6a3b97f7b7dfd1dce8723470da" dependencies = [ "dunce", - "log", "rust-ini", "serde", "serde_json", @@ -4960,6 +4959,7 @@ dependencies = [ "tauri-plugin", "tauri-utils", "thiserror 2.0.3", + "tracing", "url", "windows-registry 0.3.0", "windows-result", @@ -4967,8 +4967,8 @@ dependencies = [ [[package]] name = "tauri-plugin-dialog" -version = "2.0.3" -source = "git+ssh://git@github.com/tauri-apps/plugins-workspace.git?branch=v2#ee3fb1dba69ecf0abaafddc8979dddcf9822c2d7" +version = "2.0.4" +source = "git+https://github.com/tauri-apps/plugins-workspace.git?branch=v2#6dbc304c280e3b6a3b97f7b7dfd1dce8723470da" dependencies = [ "log", "raw-window-handle", @@ -4984,8 +4984,8 @@ dependencies = [ [[package]] name = "tauri-plugin-fs" -version = "2.0.3" -source = "git+ssh://git@github.com/tauri-apps/plugins-workspace.git?branch=v2#ee3fb1dba69ecf0abaafddc8979dddcf9822c2d7" +version = "2.1.0" +source = "git+https://github.com/tauri-apps/plugins-workspace.git?branch=v2#6dbc304c280e3b6a3b97f7b7dfd1dce8723470da" dependencies = [ "anyhow", "dunce", @@ -4997,15 +4997,17 @@ dependencies = [ "serde_repr", "tauri", "tauri-plugin", + "tauri-utils", "thiserror 2.0.3", + "toml 0.8.19", "url", "uuid", ] [[package]] name = "tauri-plugin-http" -version = "2.0.3" -source = "git+ssh://git@github.com/tauri-apps/plugins-workspace.git?branch=v2#ee3fb1dba69ecf0abaafddc8979dddcf9822c2d7" +version = "2.0.4" +source = "git+https://github.com/tauri-apps/plugins-workspace.git?branch=v2#6dbc304c280e3b6a3b97f7b7dfd1dce8723470da" dependencies = [ "data-url", "http", @@ -5025,8 +5027,8 @@ dependencies = [ [[package]] name = "tauri-plugin-log" -version = "2.0.2" -source = "git+ssh://git@github.com/tauri-apps/plugins-workspace.git?branch=v2#ee3fb1dba69ecf0abaafddc8979dddcf9822c2d7" +version = "2.0.3" +source = "git+https://github.com/tauri-apps/plugins-workspace.git?branch=v2#6dbc304c280e3b6a3b97f7b7dfd1dce8723470da" dependencies = [ "android_logger", "byte-unit", @@ -5047,7 +5049,7 @@ dependencies = [ [[package]] name = "tauri-plugin-os" version = "2.0.1" -source = "git+ssh://git@github.com/tauri-apps/plugins-workspace.git?branch=v2#ee3fb1dba69ecf0abaafddc8979dddcf9822c2d7" +source = "git+https://github.com/tauri-apps/plugins-workspace.git?branch=v2#6dbc304c280e3b6a3b97f7b7dfd1dce8723470da" dependencies = [ "gethostname", "log", @@ -5064,7 +5066,7 @@ dependencies = [ [[package]] name = "tauri-plugin-process" version = "2.0.1" -source = "git+ssh://git@github.com/tauri-apps/plugins-workspace.git?branch=v2#ee3fb1dba69ecf0abaafddc8979dddcf9822c2d7" +source = "git+https://github.com/tauri-apps/plugins-workspace.git?branch=v2#6dbc304c280e3b6a3b97f7b7dfd1dce8723470da" dependencies = [ "tauri", "tauri-plugin", @@ -5073,7 +5075,7 @@ dependencies = [ [[package]] name = "tauri-plugin-shell" version = "2.0.2" -source = "git+ssh://git@github.com/tauri-apps/plugins-workspace.git?branch=v2#ee3fb1dba69ecf0abaafddc8979dddcf9822c2d7" +source = "git+https://github.com/tauri-apps/plugins-workspace.git?branch=v2#6dbc304c280e3b6a3b97f7b7dfd1dce8723470da" dependencies = [ "encoding_rs", "log", @@ -5092,22 +5094,22 @@ dependencies = [ [[package]] name = "tauri-plugin-single-instance" -version = "2.0.1" -source = "git+ssh://git@github.com/tauri-apps/plugins-workspace.git?branch=v2#ee3fb1dba69ecf0abaafddc8979dddcf9822c2d7" +version = "2.0.2" +source = "git+https://github.com/tauri-apps/plugins-workspace.git?branch=v2#6dbc304c280e3b6a3b97f7b7dfd1dce8723470da" dependencies = [ - "log", "serde", "serde_json", "tauri", "thiserror 2.0.3", + "tracing", "windows-sys 0.59.0", "zbus 4.4.0", ] [[package]] name = "tauri-plugin-sql" -version = "2.0.2" -source = "git+ssh://git@github.com/tauri-apps/plugins-workspace.git?branch=v2#ee3fb1dba69ecf0abaafddc8979dddcf9822c2d7" +version = "2.0.3" +source = "git+https://github.com/tauri-apps/plugins-workspace.git?branch=v2#6dbc304c280e3b6a3b97f7b7dfd1dce8723470da" dependencies = [ "futures-core", "indexmap 2.6.0", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index b0afccb1..164fbfb6 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "TeyvatGuide" -version = "0.6.3" +version = "0.6.4" description = "Game Tool for Genshin Impact player" authors = ["BTMuli "] license = "MIT" @@ -24,63 +24,63 @@ walkdir = "2.5.0" # deep link 插件 [dependencies.tauri-plugin-deep-link] -git = "ssh://git@github.com/tauri-apps/plugins-workspace.git" -#git = "https://github.com/tauri-apps/plugins-workspace.git" +#git = "ssh://git@github.com/tauri-apps/plugins-workspace.git" +git = "https://github.com/tauri-apps/plugins-workspace.git" branch = "v2" # dialog 插件 [dependencies.tauri-plugin-dialog] -git = "ssh://git@github.com/tauri-apps/plugins-workspace.git" -#git = "https://github.com/tauri-apps/plugins-workspace.git" +#git = "ssh://git@github.com/tauri-apps/plugins-workspace.git" +git = "https://github.com/tauri-apps/plugins-workspace.git" branch = "v2" # fs 插件 [dependencies.tauri-plugin-fs] -git = "ssh://git@github.com/tauri-apps/plugins-workspace.git" -#git = "https://github.com/tauri-apps/plugins-workspace.git" +#git = "ssh://git@github.com/tauri-apps/plugins-workspace.git" +git = "https://github.com/tauri-apps/plugins-workspace.git" branch = "v2" # http 插件 [dependencies.tauri-plugin-http] -git = "ssh://git@github.com/tauri-apps/plugins-workspace.git" -#git = "https://github.com/tauri-apps/plugins-workspace.git" +#git = "ssh://git@github.com/tauri-apps/plugins-workspace.git" +git = "https://github.com/tauri-apps/plugins-workspace.git" branch = "v2" features = ["unsafe-headers"] # log 插件 [dependencies.tauri-plugin-log] -git = "ssh://git@github.com/tauri-apps/plugins-workspace.git" -#git = "https://github.com/tauri-apps/plugins-workspace.git" +#git = "ssh://git@github.com/tauri-apps/plugins-workspace.git" +git = "https://github.com/tauri-apps/plugins-workspace.git" branch = "v2" # os 插件 [dependencies.tauri-plugin-os] -git = "ssh://git@github.com/tauri-apps/plugins-workspace.git" -#git = "https://github.com/tauri-apps/plugins-workspace.git" +#git = "ssh://git@github.com/tauri-apps/plugins-workspace.git" +git = "https://github.com/tauri-apps/plugins-workspace.git" branch = "v2" # process 插件 [dependencies.tauri-plugin-process] -git = "ssh://git@github.com/tauri-apps/plugins-workspace.git" -#git = "https://github.com/tauri-apps/plugins-workspace.git" +#git = "ssh://git@github.com/tauri-apps/plugins-workspace.git" +git = "https://github.com/tauri-apps/plugins-workspace.git" branch = "v2" # shell 插件 [dependencies.tauri-plugin-shell] -git = "ssh://git@github.com/tauri-apps/plugins-workspace.git" -#git = "https://github.com/tauri-apps/plugins-workspace.git" +#git = "ssh://git@github.com/tauri-apps/plugins-workspace.git" +git = "https://github.com/tauri-apps/plugins-workspace.git" branch = "v2" # single-instance 插件 [dependencies.tauri-plugin-single-instance] -git = "ssh://git@github.com/tauri-apps/plugins-workspace.git" -#git = "https://github.com/tauri-apps/plugins-workspace.git" +#git = "ssh://git@github.com/tauri-apps/plugins-workspace.git" +git = "https://github.com/tauri-apps/plugins-workspace.git" branch = "v2" # sqlite 插件 [dependencies.tauri-plugin-sql] -git = "ssh://git@github.com/tauri-apps/plugins-workspace.git" -#git = "https://github.com/tauri-apps/plugins-workspace.git" +#git = "ssh://git@github.com/tauri-apps/plugins-workspace.git" +git = "https://github.com/tauri-apps/plugins-workspace.git" branch = "v2" features = ["sqlite"] diff --git a/src-tauri/gen/schemas/acl-manifests.json b/src-tauri/gen/schemas/acl-manifests.json index 56f761ed..9f2ac55d 100644 --- a/src-tauri/gen/schemas/acl-manifests.json +++ b/src-tauri/gen/schemas/acl-manifests.json @@ -1815,7 +1815,7 @@ "allow-read-text-file-lines": { "identifier": "allow-read-text-file-lines", "description": "Enables the read_text_file_lines command without any pre-configured scope.", - "commands": { "allow": ["read_text_file_lines"], "deny": [] } + "commands": { "allow": ["read_text_file_lines", "read_text_file_lines_next"], "deny": [] } }, "allow-read-text-file-lines-next": { "identifier": "allow-read-text-file-lines-next", @@ -1837,6 +1837,11 @@ "description": "Enables the seek command without any pre-configured scope.", "commands": { "allow": ["seek"], "deny": [] } }, + "allow-size": { + "identifier": "allow-size", + "description": "Enables the size command without any pre-configured scope.", + "commands": { "allow": ["size"], "deny": [] } + }, "allow-stat": { "identifier": "allow-stat", "description": "Enables the stat command without any pre-configured scope.", @@ -1865,7 +1870,7 @@ "allow-write-file": { "identifier": "allow-write-file", "description": "Enables the write_file command without any pre-configured scope.", - "commands": { "allow": ["write_file"], "deny": [] } + "commands": { "allow": ["write_file", "open", "write"], "deny": [] } }, "allow-write-text-file": { "identifier": "allow-write-text-file", @@ -1962,6 +1967,11 @@ "description": "Denies the seek command without any pre-configured scope.", "commands": { "allow": [], "deny": ["seek"] } }, + "deny-size": { + "identifier": "deny-size", + "description": "Denies the size command without any pre-configured scope.", + "commands": { "allow": [], "deny": ["size"] } + }, "deny-stat": { "identifier": "deny-stat", "description": "Denies the stat command without any pre-configured scope.", @@ -2074,7 +2084,10 @@ "read-meta": { "identifier": "read-meta", "description": "This enables all index or metadata related commands without any pre-configured accessible paths.", - "commands": { "allow": ["read_dir", "stat", "lstat", "fstat", "exists"], "deny": [] } + "commands": { + "allow": ["read_dir", "stat", "lstat", "fstat", "exists", "size"], + "deny": [] + } }, "scope": { "identifier": "scope", @@ -3363,9 +3376,17 @@ "global_scope_schema": { "$schema": "http://json-schema.org/draft-07/schema#", "anyOf": [ - { "description": "FS scope path.", "type": "string" }, { - "properties": { "path": { "description": "FS scope path.", "type": "string" } }, + "description": "A path that can be accessed by the webview when using the fs APIs. FS scope path pattern.\n\nThe pattern can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.", + "type": "string" + }, + { + "properties": { + "path": { + "description": "A path that can be accessed by the webview when using the fs APIs.\n\nThe pattern can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.", + "type": "string" + } + }, "required": ["path"], "type": "object" } diff --git a/src-tauri/gen/schemas/desktop-schema.json b/src-tauri/gen/schemas/desktop-schema.json index 392f7465..0228fc99 100644 --- a/src-tauri/gen/schemas/desktop-schema.json +++ b/src-tauri/gen/schemas/desktop-schema.json @@ -974,6 +974,11 @@ "type": "string", "const": "fs:allow-seek" }, + { + "description": "Enables the size command without any pre-configured scope.", + "type": "string", + "const": "fs:allow-size" + }, { "description": "Enables the stat command without any pre-configured scope.", "type": "string", @@ -1099,6 +1104,11 @@ "type": "string", "const": "fs:deny-seek" }, + { + "description": "Denies the size command without any pre-configured scope.", + "type": "string", + "const": "fs:deny-size" + }, { "description": "Denies the stat command without any pre-configured scope.", "type": "string", @@ -1571,7 +1581,7 @@ "description": "FS scope entry.", "anyOf": [ { - "description": "FS scope path.", + "description": "A path that can be accessed by the webview when using the fs APIs. FS scope path pattern.\n\nThe pattern can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.", "type": "string" }, { @@ -1579,7 +1589,7 @@ "required": ["path"], "properties": { "path": { - "description": "FS scope path.", + "description": "A path that can be accessed by the webview when using the fs APIs.\n\nThe pattern can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.", "type": "string" } } @@ -1593,7 +1603,7 @@ "description": "FS scope entry.", "anyOf": [ { - "description": "FS scope path.", + "description": "A path that can be accessed by the webview when using the fs APIs. FS scope path pattern.\n\nThe pattern can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.", "type": "string" }, { @@ -1601,7 +1611,7 @@ "required": ["path"], "properties": { "path": { - "description": "FS scope path.", + "description": "A path that can be accessed by the webview when using the fs APIs.\n\nThe pattern can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.", "type": "string" } } @@ -4381,6 +4391,11 @@ "type": "string", "const": "fs:allow-seek" }, + { + "description": "Enables the size command without any pre-configured scope.", + "type": "string", + "const": "fs:allow-size" + }, { "description": "Enables the stat command without any pre-configured scope.", "type": "string", @@ -4506,6 +4521,11 @@ "type": "string", "const": "fs:deny-seek" }, + { + "description": "Denies the size command without any pre-configured scope.", + "type": "string", + "const": "fs:deny-size" + }, { "description": "Denies the stat command without any pre-configured scope.", "type": "string", diff --git a/src-tauri/gen/schemas/windows-schema.json b/src-tauri/gen/schemas/windows-schema.json index 392f7465..0228fc99 100644 --- a/src-tauri/gen/schemas/windows-schema.json +++ b/src-tauri/gen/schemas/windows-schema.json @@ -974,6 +974,11 @@ "type": "string", "const": "fs:allow-seek" }, + { + "description": "Enables the size command without any pre-configured scope.", + "type": "string", + "const": "fs:allow-size" + }, { "description": "Enables the stat command without any pre-configured scope.", "type": "string", @@ -1099,6 +1104,11 @@ "type": "string", "const": "fs:deny-seek" }, + { + "description": "Denies the size command without any pre-configured scope.", + "type": "string", + "const": "fs:deny-size" + }, { "description": "Denies the stat command without any pre-configured scope.", "type": "string", @@ -1571,7 +1581,7 @@ "description": "FS scope entry.", "anyOf": [ { - "description": "FS scope path.", + "description": "A path that can be accessed by the webview when using the fs APIs. FS scope path pattern.\n\nThe pattern can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.", "type": "string" }, { @@ -1579,7 +1589,7 @@ "required": ["path"], "properties": { "path": { - "description": "FS scope path.", + "description": "A path that can be accessed by the webview when using the fs APIs.\n\nThe pattern can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.", "type": "string" } } @@ -1593,7 +1603,7 @@ "description": "FS scope entry.", "anyOf": [ { - "description": "FS scope path.", + "description": "A path that can be accessed by the webview when using the fs APIs. FS scope path pattern.\n\nThe pattern can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.", "type": "string" }, { @@ -1601,7 +1611,7 @@ "required": ["path"], "properties": { "path": { - "description": "FS scope path.", + "description": "A path that can be accessed by the webview when using the fs APIs.\n\nThe pattern can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.", "type": "string" } } @@ -4381,6 +4391,11 @@ "type": "string", "const": "fs:allow-seek" }, + { + "description": "Enables the size command without any pre-configured scope.", + "type": "string", + "const": "fs:allow-size" + }, { "description": "Enables the stat command without any pre-configured scope.", "type": "string", @@ -4506,6 +4521,11 @@ "type": "string", "const": "fs:deny-seek" }, + { + "description": "Denies the size command without any pre-configured scope.", + "type": "string", + "const": "fs:deny-size" + }, { "description": "Denies the stat command without any pre-configured scope.", "type": "string", diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 589b00b8..7ddfef81 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "productName": "TeyvatGuide", "identifier": "TeyvatGuide", - "version": "0.6.3", + "version": "0.6.4", "build": { "beforeDevCommand": "pnpm vite:dev", "beforeBuildCommand": "pnpm vite:build",