Skip to content

Commit

Permalink
feat(notifications): implement dispatch, check & request commands for…
Browse files Browse the repository at this point in the history
… notification (#12)
  • Loading branch information
errmayank authored Aug 19, 2024
1 parent 0729105 commit 8c12516
Show file tree
Hide file tree
Showing 9 changed files with 298 additions and 26 deletions.
5 changes: 5 additions & 0 deletions .changeset/six-news-visit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"zaku": patch
---

Implement dispatch, check & request commands for notification
184 changes: 177 additions & 7 deletions src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ tauri = { version = "=2.0.0-rc.3", features = ["devtools"] }
tauri-plugin-dialog = { version = "=2.0.0-rc.1" }
tauri-plugin-global-shortcut = { version = "=2.0.0-rc.1" }
tauri-plugin-http = { version = "=2.0.0-rc.0" }
tauri-plugin-notification = { version = "=2.0.0-rc.1" }
tauri-plugin-store = { version = "=2.0.0-rc.1" }
toml = { version = "=0.8.17" }
8 changes: 7 additions & 1 deletion src-tauri/capabilities/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@
"dialog:default",
"global-shortcut:allow-is-registered",
"global-shortcut:allow-register",
"global-shortcut:allow-unregister"
"global-shortcut:allow-unregister",
"notification:allow-is-permission-granted",
"notification:allow-check-permissions",
"notification:allow-request-permission",
"notification:allow-notify",
"notification:allow-show",
"notification:allow-batch"
]
}
1 change: 1 addition & 0 deletions src-tauri/src/core/commands/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
pub mod dialog;
pub mod notification;
pub mod space;
pub mod window;
Loading

0 comments on commit 8c12516

Please sign in to comment.