docs: remove $APP and $LOG from FsScope (#14623)

This commit is contained in:
Tony
2025-12-07 23:09:11 +08:00
committed by GitHub
parent 7b1b3514df
commit 731dd5bfdc
12 changed files with 17 additions and 17 deletions

View File

@@ -1296,7 +1296,7 @@
"additionalProperties": false
},
"FsScope": {
"description": "Protocol scope definition.\n It is a list of glob patterns that restrict the API access from the webview.\n\n Each pattern can start with a variable that resolves to a system base directory.\n The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`,\n `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`,\n `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`,\n `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.",
"description": "Protocol scope definition.\n It is a list of glob patterns that restrict the API access from the webview.\n\n Each pattern can start with a variable that resolves to a system base directory.\n The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`,\n `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`,\n `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$TEMP`,\n `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.",
"anyOf": [
{
"description": "A list of paths that are allowed by this scope.",

View File

@@ -1296,7 +1296,7 @@
"additionalProperties": false
},
"FsScope": {
"description": "Protocol scope definition.\n It is a list of glob patterns that restrict the API access from the webview.\n\n Each pattern can start with a variable that resolves to a system base directory.\n The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`,\n `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`,\n `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`,\n `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.",
"description": "Protocol scope definition.\n It is a list of glob patterns that restrict the API access from the webview.\n\n Each pattern can start with a variable that resolves to a system base directory.\n The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`,\n `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`,\n `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$TEMP`,\n `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.",
"anyOf": [
{
"description": "A list of paths that are allowed by this scope.",

View File

@@ -2211,8 +2211,8 @@ impl Default for DisabledCspModificationKind {
/// Each 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`.
/// `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$TEMP`,
/// `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.
#[derive(Debug, PartialEq, Eq, Clone, Deserialize, Serialize)]
#[serde(untagged)]
#[cfg_attr(feature = "schema", derive(JsonSchema))]

View File

@@ -25,12 +25,12 @@
"identifier": "fs:allow-app",
"allow": [
{
"path": "$APP/**"
"path": "$APPDATA/**"
}
],
"deny": [
{
"path": "$APP/*.db"
"path": "$APPDATA/*.db"
}
]
},

View File

@@ -1,8 +1,8 @@
[[permission]]
identifier = "allow-app"
description = "Allows accessing the $APP path."
description = "Allows accessing the $APPDATA path."
[[permission.scope.allow]]
path = "$APP"
path = "$APPDATA"
[[permission]]
identifier = "allow-download-dir"

View File

@@ -3,4 +3,4 @@ identifier = "deny-webview-folder-windows"
platforms = ["windows"]
description = "Denies access to the webview folder on Windows"
[[permission.scope.deny]]
path = "$APP/EBWebView/**"
path = "$APPLOCALDATA/EBWebView/**"

View File

@@ -398,7 +398,7 @@ Resolved {
Map(
{
"path": String(
"$APP",
"$APPDATA",
),
},
),

View File

@@ -68,7 +68,7 @@ Resolved {
Map(
{
"path": String(
"$APP",
"$APPDATA",
),
},
),

View File

@@ -310,7 +310,7 @@ Resolved {
Map(
{
"path": String(
"$APP",
"$APPDATA",
),
},
),

View File

@@ -244,14 +244,14 @@ Resolved {
Map(
{
"path": String(
"$APP/**",
"$APPDATA/**",
),
},
),
Map(
{
"path": String(
"$APP",
"$APPDATA",
),
},
),
@@ -281,7 +281,7 @@ Resolved {
Map(
{
"path": String(
"$APP/*.db",
"$APPDATA/*.db",
),
},
),

View File

@@ -208,7 +208,7 @@ Resolved {
Map(
{
"path": String(
"$APP",
"$APPDATA",
),
},
),

View File

@@ -56,7 +56,7 @@ Resolved {
Map(
{
"path": String(
"$APP/EBWebView/**",
"$APPLOCALDATA/EBWebView/**",
),
},
),