From c0ec86185b278a4d1c0067b367a83276a2b070f2 Mon Sep 17 00:00:00 2001 From: rizky_denianto Date: Wed, 2 Sep 2026 23:51:05 +0700 Subject: [PATCH] Menyesuaikan keterangan dengan fungsi yang ada --- build.rs | 2 +- .../autogenerated/commands/autentikasi.toml | 13 ------- .../autogenerated/commands/keluar.toml | 13 +++++++ permissions/autogenerated/commands/masuk.toml | 13 +++++++ permissions/autogenerated/reference.md | 37 ++++++++++++++++--- permissions/default.toml | 5 ++- permissions/schemas/schema.json | 28 ++++++++++---- 7 files changed, 83 insertions(+), 28 deletions(-) delete mode 100644 permissions/autogenerated/commands/autentikasi.toml create mode 100644 permissions/autogenerated/commands/keluar.toml create mode 100644 permissions/autogenerated/commands/masuk.toml diff --git a/build.rs b/build.rs index c9124b2..45643b0 100644 --- a/build.rs +++ b/build.rs @@ -1,4 +1,4 @@ -const COMMANDS: &[&str] = &["autentikasi"]; +const COMMANDS: &[&str] = &["masuk", "keluar"]; fn main() { tauri_plugin::Builder::new(COMMANDS) diff --git a/permissions/autogenerated/commands/autentikasi.toml b/permissions/autogenerated/commands/autentikasi.toml deleted file mode 100644 index 3bc72fc..0000000 --- a/permissions/autogenerated/commands/autentikasi.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-autentikasi" -description = "Enables the autentikasi command without any pre-configured scope." -commands.allow = ["autentikasi"] - -[[permission]] -identifier = "deny-autentikasi" -description = "Denies the autentikasi command without any pre-configured scope." -commands.deny = ["autentikasi"] diff --git a/permissions/autogenerated/commands/keluar.toml b/permissions/autogenerated/commands/keluar.toml new file mode 100644 index 0000000..8569269 --- /dev/null +++ b/permissions/autogenerated/commands/keluar.toml @@ -0,0 +1,13 @@ +# Automatically generated - DO NOT EDIT! + +"$schema" = "../../schemas/schema.json" + +[[permission]] +identifier = "allow-keluar" +description = "Enables the keluar command without any pre-configured scope." +commands.allow = ["keluar"] + +[[permission]] +identifier = "deny-keluar" +description = "Denies the keluar command without any pre-configured scope." +commands.deny = ["keluar"] diff --git a/permissions/autogenerated/commands/masuk.toml b/permissions/autogenerated/commands/masuk.toml new file mode 100644 index 0000000..1020099 --- /dev/null +++ b/permissions/autogenerated/commands/masuk.toml @@ -0,0 +1,13 @@ +# Automatically generated - DO NOT EDIT! + +"$schema" = "../../schemas/schema.json" + +[[permission]] +identifier = "allow-masuk" +description = "Enables the masuk command without any pre-configured scope." +commands.allow = ["masuk"] + +[[permission]] +identifier = "deny-masuk" +description = "Denies the masuk command without any pre-configured scope." +commands.deny = ["masuk"] diff --git a/permissions/autogenerated/reference.md b/permissions/autogenerated/reference.md index e00bd04..c3ae21a 100644 --- a/permissions/autogenerated/reference.md +++ b/permissions/autogenerated/reference.md @@ -4,7 +4,8 @@ Default permissions for the plugin #### This default permission set includes the following: -- `allow-autentikasi` +- `allow-masuk` +- `allow-keluar` ## Permission Table @@ -18,12 +19,12 @@ Default permissions for the plugin -`auth:allow-autentikasi` +`auth:allow-keluar` -Enables the autentikasi command without any pre-configured scope. +Enables the keluar command without any pre-configured scope. @@ -31,12 +32,38 @@ Enables the autentikasi command without any pre-configured scope. -`auth:deny-autentikasi` +`auth:deny-keluar` -Denies the autentikasi command without any pre-configured scope. +Denies the keluar command without any pre-configured scope. + + + + + + + +`auth:allow-masuk` + + + + +Enables the masuk command without any pre-configured scope. + + + + + + + +`auth:deny-masuk` + + + + +Denies the masuk command without any pre-configured scope. diff --git a/permissions/default.toml b/permissions/default.toml index f5d7a6d..7557cf5 100644 --- a/permissions/default.toml +++ b/permissions/default.toml @@ -1,3 +1,6 @@ [default] description = "Default permissions for the plugin" -permissions = ["allow-autentikasi"] +permissions = [ + "allow-masuk", + "allow-keluar" +] diff --git a/permissions/schemas/schema.json b/permissions/schemas/schema.json index 8208e01..0a85720 100644 --- a/permissions/schemas/schema.json +++ b/permissions/schemas/schema.json @@ -295,22 +295,34 @@ "type": "string", "oneOf": [ { - "description": "Enables the autentikasi command without any pre-configured scope.", + "description": "Enables the keluar command without any pre-configured scope.", "type": "string", - "const": "allow-autentikasi", - "markdownDescription": "Enables the autentikasi command without any pre-configured scope." + "const": "allow-keluar", + "markdownDescription": "Enables the keluar command without any pre-configured scope." }, { - "description": "Denies the autentikasi command without any pre-configured scope.", + "description": "Denies the keluar command without any pre-configured scope.", "type": "string", - "const": "deny-autentikasi", - "markdownDescription": "Denies the autentikasi command without any pre-configured scope." + "const": "deny-keluar", + "markdownDescription": "Denies the keluar command without any pre-configured scope." }, { - "description": "Default permissions for the plugin\n#### This default permission set includes:\n\n- `allow-autentikasi`", + "description": "Enables the masuk command without any pre-configured scope.", + "type": "string", + "const": "allow-masuk", + "markdownDescription": "Enables the masuk command without any pre-configured scope." + }, + { + "description": "Denies the masuk command without any pre-configured scope.", + "type": "string", + "const": "deny-masuk", + "markdownDescription": "Denies the masuk command without any pre-configured scope." + }, + { + "description": "Default permissions for the plugin\n#### This default permission set includes:\n\n- `allow-masuk`\n- `allow-keluar`", "type": "string", "const": "default", - "markdownDescription": "Default permissions for the plugin\n#### This default permission set includes:\n\n- `allow-autentikasi`" + "markdownDescription": "Default permissions for the plugin\n#### This default permission set includes:\n\n- `allow-masuk`\n- `allow-keluar`" } ] }