mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-24 21:40:48 +02:00
fix(window-state): missing restore_state and filename js binding permission (#1180)
* Fix js binding commands * Re-run build * Add change file
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"window-state": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix `restore_window` and `filename` js binding missing permission
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
const COMMANDS: &[&str] = &["save_window_state", "restore_window_state"];
|
const COMMANDS: &[&str] = &["save_window_state", "restore_state", "filename"];
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
tauri_plugin::Builder::new(COMMANDS)
|
tauri_plugin::Builder::new(COMMANDS)
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
# Automatically generated - DO NOT EDIT!
|
||||||
|
|
||||||
|
"$schema" = "../../schemas/schema.json"
|
||||||
|
|
||||||
|
[[permission]]
|
||||||
|
identifier = "allow-filename"
|
||||||
|
description = "Enables the filename command without any pre-configured scope."
|
||||||
|
commands.allow = ["filename"]
|
||||||
|
|
||||||
|
[[permission]]
|
||||||
|
identifier = "deny-filename"
|
||||||
|
description = "Denies the filename command without any pre-configured scope."
|
||||||
|
commands.deny = ["filename"]
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
# Automatically generated - DO NOT EDIT!
|
||||||
|
|
||||||
|
"$schema" = "../../schemas/schema.json"
|
||||||
|
|
||||||
|
[[permission]]
|
||||||
|
identifier = "allow-restore-state"
|
||||||
|
description = "Enables the restore_state command without any pre-configured scope."
|
||||||
|
commands.allow = ["restore_state"]
|
||||||
|
|
||||||
|
[[permission]]
|
||||||
|
identifier = "deny-restore-state"
|
||||||
|
description = "Denies the restore_state command without any pre-configured scope."
|
||||||
|
commands.deny = ["restore_state"]
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
# Automatically generated - DO NOT EDIT!
|
|
||||||
|
|
||||||
"$schema" = "../../schemas/schema.json"
|
|
||||||
|
|
||||||
[[permission]]
|
|
||||||
identifier = "allow-restore-window-state"
|
|
||||||
description = "Enables the restore_window_state command without any pre-configured scope."
|
|
||||||
commands.allow = ["restore_window_state"]
|
|
||||||
|
|
||||||
[[permission]]
|
|
||||||
identifier = "deny-restore-window-state"
|
|
||||||
description = "Denies the restore_window_state command without any pre-configured scope."
|
|
||||||
commands.deny = ["restore_window_state"]
|
|
||||||
@@ -1,6 +1,8 @@
|
|||||||
| Permission | Description |
|
| Permission | Description |
|
||||||
|------|-----|
|
|------|-----|
|
||||||
|`allow-restore-window-state`|Enables the restore_window_state command without any pre-configured scope.|
|
|`allow-filename`|Enables the filename command without any pre-configured scope.|
|
||||||
|`deny-restore-window-state`|Denies the restore_window_state command without any pre-configured scope.|
|
|`deny-filename`|Denies the filename command without any pre-configured scope.|
|
||||||
|
|`allow-restore-state`|Enables the restore_state command without any pre-configured scope.|
|
||||||
|
|`deny-restore-state`|Denies the restore_state command without any pre-configured scope.|
|
||||||
|`allow-save-window-state`|Enables the save_window_state command without any pre-configured scope.|
|
|`allow-save-window-state`|Enables the save_window_state command without any pre-configured scope.|
|
||||||
|`deny-save-window-state`|Denies the save_window_state command without any pre-configured scope.|
|
|`deny-save-window-state`|Denies the save_window_state command without any pre-configured scope.|
|
||||||
|
|||||||
@@ -295,17 +295,31 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"oneOf": [
|
"oneOf": [
|
||||||
{
|
{
|
||||||
"description": "allow-restore-window-state -> Enables the restore_window_state command without any pre-configured scope.",
|
"description": "allow-filename -> Enables the filename command without any pre-configured scope.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"allow-restore-window-state"
|
"allow-filename"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "deny-restore-window-state -> Denies the restore_window_state command without any pre-configured scope.",
|
"description": "deny-filename -> Denies the filename command without any pre-configured scope.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"deny-restore-window-state"
|
"deny-filename"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "allow-restore-state -> Enables the restore_state command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"allow-restore-state"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "deny-restore-state -> Denies the restore_state command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"deny-restore-state"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user