From db798f4d50d1f99b4f282a9b679354db2739f7b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9B=AE=E6=A3=83?= Date: Mon, 2 Sep 2024 20:43:26 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E6=B7=BB=E5=8A=A0hoyoverse?= =?UTF-8?q?=E5=9F=9F=E5=90=8D=E5=87=86=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-tauri/capabilities/DevJson.json | 3 +++ src-tauri/capabilities/SubWindow.json | 6 ++++++ src-tauri/capabilities/TeyvatGuide.json | 3 +++ src-tauri/gen/schemas/acl-manifests.json | 22 ---------------------- src-tauri/gen/schemas/capabilities.json | 13 ++++++++++--- src-tauri/gen/schemas/desktop-schema.json | 20 -------------------- src-tauri/gen/schemas/windows-schema.json | 20 -------------------- 7 files changed, 22 insertions(+), 65 deletions(-) diff --git a/src-tauri/capabilities/DevJson.json b/src-tauri/capabilities/DevJson.json index ef204f2f..7471b999 100644 --- a/src-tauri/capabilities/DevJson.json +++ b/src-tauri/capabilities/DevJson.json @@ -34,6 +34,9 @@ }, { "url": "https://*.mihoyo.com/*" + }, + { + "url": "https://*.hoyoverse.com/*" } ] } diff --git a/src-tauri/capabilities/SubWindow.json b/src-tauri/capabilities/SubWindow.json index 220e3f2f..e0d3fd4d 100644 --- a/src-tauri/capabilities/SubWindow.json +++ b/src-tauri/capabilities/SubWindow.json @@ -71,6 +71,12 @@ }, { "url": "https://*.mihoyogift.com/*" + }, + { + "url": "https://*.bilibili.com/*" + }, + { + "url": "https://*.hoyoverse.com/*" } ] } diff --git a/src-tauri/capabilities/TeyvatGuide.json b/src-tauri/capabilities/TeyvatGuide.json index efb746f0..22b01489 100644 --- a/src-tauri/capabilities/TeyvatGuide.json +++ b/src-tauri/capabilities/TeyvatGuide.json @@ -76,6 +76,9 @@ }, { "url": "https://homa.snapgenshin.com/*" + }, + { + "url": "https://*.hoyoverse.com/*" } ] }, diff --git a/src-tauri/gen/schemas/acl-manifests.json b/src-tauri/gen/schemas/acl-manifests.json index 37022488..1fac008e 100644 --- a/src-tauri/gen/schemas/acl-manifests.json +++ b/src-tauri/gen/schemas/acl-manifests.json @@ -701,7 +701,6 @@ "identifier": "default", "description": "Default permissions for the plugin.", "permissions": [ - "allow-get-all-webviews", "allow-webview-position", "allow-webview-size", "allow-internal-toggle-devtools" @@ -718,11 +717,6 @@ "description": "Enables the create_webview_window command without any pre-configured scope.", "commands": { "allow": ["create_webview_window"], "deny": [] } }, - "allow-get-all-webviews": { - "identifier": "allow-get-all-webviews", - "description": "Enables the get_all_webviews command without any pre-configured scope.", - "commands": { "allow": ["get_all_webviews"], "deny": [] } - }, "allow-internal-toggle-devtools": { "identifier": "allow-internal-toggle-devtools", "description": "Enables the internal_toggle_devtools command without any pre-configured scope.", @@ -783,11 +777,6 @@ "description": "Denies the create_webview_window command without any pre-configured scope.", "commands": { "allow": [], "deny": ["create_webview_window"] } }, - "deny-get-all-webviews": { - "identifier": "deny-get-all-webviews", - "description": "Denies the get_all_webviews command without any pre-configured scope.", - "commands": { "allow": [], "deny": ["get_all_webviews"] } - }, "deny-internal-toggle-devtools": { "identifier": "deny-internal-toggle-devtools", "description": "Denies the internal_toggle_devtools command without any pre-configured scope.", @@ -847,7 +836,6 @@ "identifier": "default", "description": "Default permissions for the plugin.", "permissions": [ - "allow-get-all-windows", "allow-scale-factor", "allow-inner-position", "allow-outer-position", @@ -909,11 +897,6 @@ "description": "Enables the destroy command without any pre-configured scope.", "commands": { "allow": ["destroy"], "deny": [] } }, - "allow-get-all-windows": { - "identifier": "allow-get-all-windows", - "description": "Enables the get_all_windows command without any pre-configured scope.", - "commands": { "allow": ["get_all_windows"], "deny": [] } - }, "allow-hide": { "identifier": "allow-hide", "description": "Enables the hide command without any pre-configured scope.", @@ -1239,11 +1222,6 @@ "description": "Denies the destroy command without any pre-configured scope.", "commands": { "allow": [], "deny": ["destroy"] } }, - "deny-get-all-windows": { - "identifier": "deny-get-all-windows", - "description": "Denies the get_all_windows command without any pre-configured scope.", - "commands": { "allow": [], "deny": ["get_all_windows"] } - }, "deny-hide": { "identifier": "deny-hide", "description": "Denies the hide command without any pre-configured scope.", diff --git a/src-tauri/gen/schemas/capabilities.json b/src-tauri/gen/schemas/capabilities.json index 95962df3..4ec39d2e 100644 --- a/src-tauri/gen/schemas/capabilities.json +++ b/src-tauri/gen/schemas/capabilities.json @@ -29,7 +29,11 @@ "core:window:default", { "identifier": "http:default", - "allow": [{ "url": "https://*.miyoushe.com/*" }, { "url": "https://*.mihoyo.com/*" }] + "allow": [ + { "url": "https://*.miyoushe.com/*" }, + { "url": "https://*.mihoyo.com/*" }, + { "url": "https://*.hoyoverse.com/*" } + ] } ], "platforms": ["windows", "macOS"] @@ -111,7 +115,9 @@ "allow": [ { "url": "https://*.miyoushe.com/*" }, { "url": "https://*.mihoyo.com/*" }, - { "url": "https://*.mihoyogift.com/*" } + { "url": "https://*.mihoyogift.com/*" }, + { "url": "https://*.bilibili.com/*" }, + { "url": "https://*.hoyoverse.com/*" } ] } ], @@ -168,7 +174,8 @@ "allow": [ { "url": "https://*.miyoushe.com/*" }, { "url": "https://*.mihoyo.com/*" }, - { "url": "https://homa.snapgenshin.com/*" } + { "url": "https://homa.snapgenshin.com/*" }, + { "url": "https://*.hoyoverse.com/*" } ] }, { diff --git a/src-tauri/gen/schemas/desktop-schema.json b/src-tauri/gen/schemas/desktop-schema.json index 968f579a..7a13dadc 100644 --- a/src-tauri/gen/schemas/desktop-schema.json +++ b/src-tauri/gen/schemas/desktop-schema.json @@ -2458,11 +2458,6 @@ "type": "string", "enum": ["core:webview:allow-create-webview-window"] }, - { - "description": "core:webview:allow-get-all-webviews -> Enables the get_all_webviews command without any pre-configured scope.", - "type": "string", - "enum": ["core:webview:allow-get-all-webviews"] - }, { "description": "core:webview:allow-internal-toggle-devtools -> Enables the internal_toggle_devtools command without any pre-configured scope.", "type": "string", @@ -2523,11 +2518,6 @@ "type": "string", "enum": ["core:webview:deny-create-webview-window"] }, - { - "description": "core:webview:deny-get-all-webviews -> Denies the get_all_webviews command without any pre-configured scope.", - "type": "string", - "enum": ["core:webview:deny-get-all-webviews"] - }, { "description": "core:webview:deny-internal-toggle-devtools -> Denies the internal_toggle_devtools command without any pre-configured scope.", "type": "string", @@ -2618,11 +2608,6 @@ "type": "string", "enum": ["core:window:allow-destroy"] }, - { - "description": "core:window:allow-get-all-windows -> Enables the get_all_windows command without any pre-configured scope.", - "type": "string", - "enum": ["core:window:allow-get-all-windows"] - }, { "description": "core:window:allow-hide -> Enables the hide command without any pre-configured scope.", "type": "string", @@ -2948,11 +2933,6 @@ "type": "string", "enum": ["core:window:deny-destroy"] }, - { - "description": "core:window:deny-get-all-windows -> Denies the get_all_windows command without any pre-configured scope.", - "type": "string", - "enum": ["core:window:deny-get-all-windows"] - }, { "description": "core:window:deny-hide -> Denies the hide 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 968f579a..7a13dadc 100644 --- a/src-tauri/gen/schemas/windows-schema.json +++ b/src-tauri/gen/schemas/windows-schema.json @@ -2458,11 +2458,6 @@ "type": "string", "enum": ["core:webview:allow-create-webview-window"] }, - { - "description": "core:webview:allow-get-all-webviews -> Enables the get_all_webviews command without any pre-configured scope.", - "type": "string", - "enum": ["core:webview:allow-get-all-webviews"] - }, { "description": "core:webview:allow-internal-toggle-devtools -> Enables the internal_toggle_devtools command without any pre-configured scope.", "type": "string", @@ -2523,11 +2518,6 @@ "type": "string", "enum": ["core:webview:deny-create-webview-window"] }, - { - "description": "core:webview:deny-get-all-webviews -> Denies the get_all_webviews command without any pre-configured scope.", - "type": "string", - "enum": ["core:webview:deny-get-all-webviews"] - }, { "description": "core:webview:deny-internal-toggle-devtools -> Denies the internal_toggle_devtools command without any pre-configured scope.", "type": "string", @@ -2618,11 +2608,6 @@ "type": "string", "enum": ["core:window:allow-destroy"] }, - { - "description": "core:window:allow-get-all-windows -> Enables the get_all_windows command without any pre-configured scope.", - "type": "string", - "enum": ["core:window:allow-get-all-windows"] - }, { "description": "core:window:allow-hide -> Enables the hide command without any pre-configured scope.", "type": "string", @@ -2948,11 +2933,6 @@ "type": "string", "enum": ["core:window:deny-destroy"] }, - { - "description": "core:window:deny-get-all-windows -> Denies the get_all_windows command without any pre-configured scope.", - "type": "string", - "enum": ["core:window:deny-get-all-windows"] - }, { "description": "core:window:deny-hide -> Denies the hide command without any pre-configured scope.", "type": "string",