From dc6ccfd120f26b6cacb5a02632eea99000737eb1 Mon Sep 17 00:00:00 2001 From: amrbashir Date: Thu, 26 Sep 2024 04:08:22 +0300 Subject: [PATCH] whitspace in permissions docs --- crates/tauri-utils/src/acl/build.rs | 2 +- .../app/autogenerated/reference.md | 2 +- .../event/autogenerated/reference.md | 2 +- .../image/autogenerated/reference.md | 2 +- .../menu/autogenerated/reference.md | 2 +- .../path/autogenerated/reference.md | 2 +- .../resources/autogenerated/reference.md | 2 +- .../tray/autogenerated/reference.md | 2 +- .../webview/autogenerated/reference.md | 52 +++++++++++++++++++ .../window/autogenerated/reference.md | 2 +- .../permissions/autogenerated/reference.md | 2 +- 11 files changed, 62 insertions(+), 10 deletions(-) diff --git a/crates/tauri-utils/src/acl/build.rs b/crates/tauri-utils/src/acl/build.rs index 20beeea2db51..d2425b50ad46 100644 --- a/crates/tauri-utils/src/acl/build.rs +++ b/crates/tauri-utils/src/acl/build.rs @@ -306,7 +306,7 @@ commands.deny = ["{command}"] } const PERMISSION_TABLE_HEADER: &str = - "## Permission Table \n\n\n\n\n\n\n"; + "## Permission Table\n\n
IdentifierDescription
\n\n\n\n\n"; /// Generate a markdown documentation page containing the list of permissions of the plugin. pub fn generate_docs( diff --git a/crates/tauri/permissions/app/autogenerated/reference.md b/crates/tauri/permissions/app/autogenerated/reference.md index fceb347004f3..74bbdecd9ddf 100644 --- a/crates/tauri/permissions/app/autogenerated/reference.md +++ b/crates/tauri/permissions/app/autogenerated/reference.md @@ -6,7 +6,7 @@ Default permissions for the plugin. - `allow-name` - `allow-tauri-version` -## Permission Table +## Permission Table
IdentifierDescription
diff --git a/crates/tauri/permissions/event/autogenerated/reference.md b/crates/tauri/permissions/event/autogenerated/reference.md index 23bbd93f49cb..2cb12b7d7d4f 100644 --- a/crates/tauri/permissions/event/autogenerated/reference.md +++ b/crates/tauri/permissions/event/autogenerated/reference.md @@ -7,7 +7,7 @@ Default permissions for the plugin. - `allow-emit` - `allow-emit-to` -## Permission Table +## Permission Table
diff --git a/crates/tauri/permissions/image/autogenerated/reference.md b/crates/tauri/permissions/image/autogenerated/reference.md index 1b31bc9222dd..3084889ebb9b 100644 --- a/crates/tauri/permissions/image/autogenerated/reference.md +++ b/crates/tauri/permissions/image/autogenerated/reference.md @@ -8,7 +8,7 @@ Default permissions for the plugin. - `allow-rgba` - `allow-size` -## Permission Table +## Permission Table
diff --git a/crates/tauri/permissions/menu/autogenerated/reference.md b/crates/tauri/permissions/menu/autogenerated/reference.md index 94b73f6ab768..a4dc64985a1a 100644 --- a/crates/tauri/permissions/menu/autogenerated/reference.md +++ b/crates/tauri/permissions/menu/autogenerated/reference.md @@ -25,7 +25,7 @@ Default permissions for the plugin. - `allow-set-checked` - `allow-set-icon` -## Permission Table +## Permission Table
diff --git a/crates/tauri/permissions/path/autogenerated/reference.md b/crates/tauri/permissions/path/autogenerated/reference.md index cce9db73aa83..5002f8ecc183 100644 --- a/crates/tauri/permissions/path/autogenerated/reference.md +++ b/crates/tauri/permissions/path/autogenerated/reference.md @@ -11,7 +11,7 @@ Default permissions for the plugin. - `allow-basename` - `allow-is-absolute` -## Permission Table +## Permission Table
diff --git a/crates/tauri/permissions/resources/autogenerated/reference.md b/crates/tauri/permissions/resources/autogenerated/reference.md index aadfb4512dc3..8fce953342d6 100644 --- a/crates/tauri/permissions/resources/autogenerated/reference.md +++ b/crates/tauri/permissions/resources/autogenerated/reference.md @@ -4,7 +4,7 @@ Default permissions for the plugin. - `allow-close` -## Permission Table +## Permission Table
diff --git a/crates/tauri/permissions/tray/autogenerated/reference.md b/crates/tauri/permissions/tray/autogenerated/reference.md index 0db00c21b042..7489c0eb1774 100644 --- a/crates/tauri/permissions/tray/autogenerated/reference.md +++ b/crates/tauri/permissions/tray/autogenerated/reference.md @@ -14,7 +14,7 @@ Default permissions for the plugin. - `allow-set-icon-as-template` - `allow-set-show-menu-on-left-click` -## Permission Table +## Permission Table
diff --git a/crates/tauri/permissions/webview/autogenerated/reference.md b/crates/tauri/permissions/webview/autogenerated/reference.md index a17954705c7e..cacdb0eb74d5 100644 --- a/crates/tauri/permissions/webview/autogenerated/reference.md +++ b/crates/tauri/permissions/webview/autogenerated/reference.md @@ -123,6 +123,32 @@ Denies the get_all_webviews command without any pre-configured scope. + + + + + + + + + + @@ -305,6 +331,32 @@ Denies the set_webview_zoom command without any pre-configured scope. + + + + + + + + + + diff --git a/crates/tauri/permissions/window/autogenerated/reference.md b/crates/tauri/permissions/window/autogenerated/reference.md index b737c2e4e7ec..f465cef66bb3 100644 --- a/crates/tauri/permissions/window/autogenerated/reference.md +++ b/crates/tauri/permissions/window/autogenerated/reference.md @@ -27,7 +27,7 @@ Default permissions for the plugin. - `allow-theme` - `allow-internal-toggle-maximize` -## Permission Table +## Permission Table
+`core:webview:allow-hide-webview` + + + +Enables the hide_webview command without any pre-configured scope. + +
+ +`core:webview:deny-hide-webview` + + + +Denies the hide_webview command without any pre-configured scope. + +
+ `core:webview:allow-internal-toggle-devtools`
+`core:webview:allow-show-webview` + + + +Enables the show_webview command without any pre-configured scope. + +
+ +`core:webview:deny-show-webview` + + + +Denies the show_webview command without any pre-configured scope. + +
+ `core:webview:allow-webview-close`
diff --git a/examples/api/src-tauri/tauri-plugin-sample/permissions/autogenerated/reference.md b/examples/api/src-tauri/tauri-plugin-sample/permissions/autogenerated/reference.md index b6faa8c8cd9e..f6c599938f7e 100644 --- a/examples/api/src-tauri/tauri-plugin-sample/permissions/autogenerated/reference.md +++ b/examples/api/src-tauri/tauri-plugin-sample/permissions/autogenerated/reference.md @@ -1,5 +1,5 @@ -## Permission Table +## Permission Table