Add clipboard & notification util

This commit is contained in:
Lncvrt committed 2026-03-25 18:03:46 -07:00
1 parent 9d2b9e4668
commit 43a3c436f4
7 files changed
+73 -10

No files matched your search

+2
View File
@@ -18,4 +18,6 @@ serde = { version = "1.0.228", features = ["derive"] }
serde_json = "1.0.149"
tauri-plugin-http = "2"
tauri-plugin-opener = "2"
tauri-plugin-notification = "2"
tauri-plugin-clipboard-manager = "2"
+33 -10
View File
@@ -6,19 +6,42 @@
"permissions": [
"core:default",
"opener:default",
"notification:default",
"clipboard-manager:default",
"clipboard-manager:allow-write-text",
{
"identifier": "http:default",
"allow": [
{ "url": "https://games.lncvrt.xyz/api/launcher/latest" },
{ "url": "https://games.lncvrt.xyz/api/launcher/versions" },
{ "url": "https://games.lncvrt.xyz/api/launcher/download" },
{ "url": "https://games.lncvrt.xyz/api/launcher/mods" },
{ "url": "https://games.lncvrt.xyz/api/berrydash/account" },
{ "url": "https://games.lncvrt.xyz/api/berrydash/leaderboard/score" },
{ "url": "https://games.lncvrt.xyz/api/berrydash/leaderboard/berry" },
{ "url": "https://games.lncvrt.xyz/api/berrydash/leaderboard/coin" },
{ "url": "https://games.lncvrt.xyz/api/berrydash/leaderboard/legacy" },
{ "url": "https://games.lncvrt.xyz/api/berrydash/leaderboard/total" }
{
"url": "https://games.lncvrt.xyz/api/launcher/latest"
},
{
"url": "https://games.lncvrt.xyz/api/launcher/versions"
},
{
"url": "https://games.lncvrt.xyz/api/launcher/download"
},
{
"url": "https://games.lncvrt.xyz/api/launcher/mods"
},
{
"url": "https://games.lncvrt.xyz/api/berrydash/account"
},
{
"url": "https://games.lncvrt.xyz/api/berrydash/leaderboard/score"
},
{
"url": "https://games.lncvrt.xyz/api/berrydash/leaderboard/berry"
},
{
"url": "https://games.lncvrt.xyz/api/berrydash/leaderboard/coin"
},
{
"url": "https://games.lncvrt.xyz/api/berrydash/leaderboard/legacy"
},
{
"url": "https://games.lncvrt.xyz/api/berrydash/leaderboard/total"
}
]
}
]
+2
View File
@@ -1,6 +1,8 @@
#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
tauri::Builder::default()
.plugin(tauri_plugin_clipboard_manager::init())
.plugin(tauri_plugin_notification::init())
.plugin(tauri_plugin_opener::init())
.plugin(tauri_plugin_http::init())
.invoke_handler(tauri::generate_handler![])