Add clipboard & notification util
This commit is contained in:
7 files changed
+73
-10
No files matched your search
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
@@ -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![])
|
||||
|
||||
Reference in new issue
Block a user