Bump tauri and posthog update

This commit is contained in:
chrox
2024-11-26 17:28:02 +01:00
parent cb8f4669e8
commit d7601d025e
8 changed files with 393 additions and 447 deletions
-1
View File
@@ -2,7 +2,6 @@
"typescript.tsdk": "node_modules/typescript/lib",
"rust-analyzer.linkedProjects": [
"packages/tauri/Cargo.toml",
"packages/wry/Cargo.toml",
"apps/readest-app/src-tauri/Cargo.toml"
],
}
+2 -1
View File
@@ -29,6 +29,7 @@
"@tauri-apps/plugin-http": "^2.0.1",
"@tauri-apps/plugin-log": "^2.0.0",
"@tauri-apps/plugin-os": "^2.0.0",
"@tauri-apps/plugin-shell": "~2",
"@zip.js/zip.js": "^2.7.52",
"clsx": "^2.1.1",
"cssbeautify": "^0.3.1",
@@ -36,7 +37,7 @@
"foliate-js": "workspace:*",
"js-md5": "^0.8.3",
"next": "15.0.1",
"posthog-js": "^1.180.1",
"posthog-js": "^1.188.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-icons": "^5.3.0",
+313 -412
View File
File diff suppressed because it is too large Load Diff
+12 -11
View File
@@ -1,8 +1,8 @@
[package]
name = "readest"
version = "0.1.0"
description = "A Tauri App"
authors = ["you"]
name = "Readest"
version = "0.2.0"
description = "Your online library"
authors = ["Bilingify LLC"]
license = ""
repository = ""
edition = "2021"
@@ -15,21 +15,22 @@ name = "readestlib"
crate-type = ["staticlib", "cdylib", "lib"]
[build-dependencies]
tauri-build = { version = "2.0.1", features = [] }
tauri-build = { version = "2.0.3", features = [] }
[dependencies]
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
log = "0.4"
# FIXME: remove the devtools feature in production
tauri = { version = "2.0.2", features = [ "protocol-asset", "devtools"] }
tauri-plugin-log = "2.0.1"
tauri-plugin-fs = "2.0.1"
tauri-plugin-dialog = "2.0.1"
tauri = { version = "2.1.1", features = [ "protocol-asset", "devtools"] }
tauri-build = "2.0.3"
tauri-plugin-log = "2.0.2"
tauri-plugin-fs = "2.0.3"
tauri-plugin-dialog = "2.0.3"
tauri-plugin-os = "2.0.1"
tauri-plugin-http = "2.0.1"
tauri-build = "2.0.1"
tauri-plugin-http = "2.0.3"
tauri-plugin-devtools = "2.0.0"
tauri-plugin-shell = "2"
[patch.crates-io]
tauri = { path = "../../../packages/tauri/crates/tauri" }
@@ -2,7 +2,9 @@
"$schema": "../gen/schemas/desktop-schema.json",
"identifier": "default",
"description": "enables the default permissions",
"windows": ["main"],
"windows": [
"main"
],
"permissions": [
"core:default",
"fs:default",
@@ -33,7 +35,11 @@
},
{
"identifier": "http:default",
"allow": [{ "url": "https://*.deepl.com" }]
"allow": [
{
"url": "https://*.deepl.com"
}
]
},
"dialog:default",
"os:default",
@@ -41,6 +47,7 @@
"core:window:allow-close",
"core:window:allow-minimize",
"core:window:allow-start-dragging",
"core:window:allow-toggle-maximize"
"core:window:allow-toggle-maximize",
"shell:default"
]
}
}
+27
View File
@@ -13,9 +13,13 @@ mod tauri_traffic_light_positioner_plugin;
use tauri::TitleBarStyle;
use tauri::{WebviewUrl, WebviewWindowBuilder};
use tauri::menu::{SubmenuBuilder, HELP_SUBMENU_ID};
use tauri_plugin_shell::ShellExt;
#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
let builder = tauri::Builder::default()
.plugin(tauri_plugin_shell::init())
.plugin(tauri_plugin_http::init())
.plugin(tauri_plugin_os::init())
.plugin(tauri_plugin_dialog::init())
@@ -49,6 +53,29 @@ pub fn run() {
let _ = win_builder.build().unwrap();
let global_menu = app.menu().unwrap();
if let Some(item) = global_menu.get(HELP_SUBMENU_ID) {
let _ = global_menu.remove(&item);
}
let _ = global_menu.append(
&SubmenuBuilder::new(app, "Help")
.text("privacy_policy", "Privacy Policy")
.separator()
.text("report_issue", "Report An Issue...")
.text("readest_help", "Readest Help")
.build()?,
);
app.on_menu_event(move |app, event| {
if event.id() == "privacy_policy" {
let _ = app.shell().open("https://readest.com/privacy-policy", None);
} else if event.id() == "report_issue" {
let _ = app.shell().open("mailto:support@bilingify.com", None);
} else if event.id() == "readest_help" {
let _ = app.shell().open("https://readest.com/support", None);
}
});
Ok(())
})
.run(tauri::generate_context!())
+27 -17
View File
@@ -53,6 +53,9 @@ importers:
'@tauri-apps/plugin-os':
specifier: ^2.0.0
version: 2.0.0
'@tauri-apps/plugin-shell':
specifier: ~2
version: 2.0.1
'@zip.js/zip.js':
specifier: ^2.7.52
version: 2.7.52
@@ -75,8 +78,8 @@ importers:
specifier: 15.0.1
version: 15.0.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
posthog-js:
specifier: ^1.180.1
version: 1.180.1
specifier: ^1.188.0
version: 1.188.0
react:
specifier: 18.3.1
version: 18.3.1
@@ -703,6 +706,9 @@ packages:
'@tauri-apps/plugin-os@2.0.0':
resolution: {integrity: sha512-M7hG/nNyQYTJxVG/UhTKhp9mpXriwWzrs9mqDreB8mIgqA3ek5nHLdwRZJWhkKjZrnDT4v9CpA9BhYeplTlAiA==}
'@tauri-apps/plugin-shell@2.0.1':
resolution: {integrity: sha512-akU1b77sw3qHiynrK0s930y8zKmcdrSD60htjH+mFZqv5WaakZA/XxHR3/sF1nNv9Mgmt/Shls37HwnOr00aSw==}
'@tsconfig/node10@1.0.11':
resolution: {integrity: sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw==}
@@ -740,8 +746,8 @@ packages:
'@types/node@20.16.6':
resolution: {integrity: sha512-T7PpxM/6yeDE+AdlVysT62BX6/bECZOmQAgiFg5NoBd5MQheZ3tzal7f1wvzfiEcmrcJNRi2zRr2nY2zF+0uqw==}
'@types/node@20.17.6':
resolution: {integrity: sha512-VEI7OdvK2wP7XHnsuXbAJnEpEkF6NjSN45QJlL4VGqZSXsnicpesdTWsg9RISeSdYd3yeRj/y3k5KGjUXYnFwQ==}
'@types/node@20.17.8':
resolution: {integrity: sha512-ahz2g6/oqbKalW9sPv6L2iRbhLnojxjYWspAqhjvqSWBgGebEJT5GvRmk0QXPj3sbC6rU0GTQjPLQkmR8CObvA==}
'@types/prop-types@15.7.13':
resolution: {integrity: sha512-hCZTSvwbzWGvhqxp/RqVqwU999pBf2vp7hzIjiYOsl8wqOmUxkQ6ddw1cV3l8811+kdUFus/q4d1Y3E3SyEifA==}
@@ -1358,8 +1364,8 @@ packages:
caniuse-lite@1.0.30001663:
resolution: {integrity: sha512-o9C3X27GLKbLeTYZ6HBOLU1tsAcBZsLis28wrVzddShCS16RujjHp9GDHKZqrB3meE0YjhawvMFsGb/igqiPzA==}
caniuse-lite@1.0.30001680:
resolution: {integrity: sha512-rPQy70G6AGUMnbwS1z6Xg+RkHYPAi18ihs47GH0jcxIG7wArmPgY3XbS2sRdBbxJljp3thdT8BIqv9ccCypiPA==}
caniuse-lite@1.0.30001684:
resolution: {integrity: sha512-G1LRwLIQjBQoyq0ZJGqGIJUXzJ8irpbjHLpVRXDvBEScFJ9b17sgK6vlx0GAJFE21okD7zXl08rRRUfq6HdoEQ==}
canvas@2.11.2:
resolution: {integrity: sha512-ItanGBMrmRV7Py2Z+Xhs7cT+FNt5K0vPL4p9EZ/UX/Mu7hFbkxSjKF2KVtPwX7UYWp7dRKnrTvReflgrItJbdw==}
@@ -1628,8 +1634,8 @@ packages:
electron-to-chromium@1.5.36:
resolution: {integrity: sha512-HYTX8tKge/VNp6FGO+f/uVDmUkq+cEfcxYhKf15Akc4M5yxt5YmorwlAitKWjWhWQnKcDRBAQKXkhqqXMqcrjw==}
electron-to-chromium@1.5.57:
resolution: {integrity: sha512-xS65H/tqgOwUBa5UmOuNSLuslDo7zho0y/lgQw35pnrqiZh7UOWHCeL/Bt6noJATbA6tpQJGCifsFsIRZj1Fqg==}
electron-to-chromium@1.5.65:
resolution: {integrity: sha512-PWVzBjghx7/wop6n22vS2MLU8tKGd4Q91aCEGhG/TYmW6PP5OcSXcdnxTe1NNt0T66N8D6jxh4kC8UsdzOGaIw==}
emoji-regex@8.0.0:
resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==}
@@ -2906,8 +2912,8 @@ packages:
resolution: {integrity: sha512-56rxCq7G/XfB4EkXq9Egn5GCqugWvDFjafDOThIdMBsI15iqPqR5r15TfSr1YPYeEI19YeaXMCbY6u88Y76GLQ==}
engines: {node: ^10 || ^12 || >=14}
posthog-js@1.180.1:
resolution: {integrity: sha512-LV65maVrpqkAh0wu32YvU7FpCSEjg6o+sZFYCs1+6tnEa9VvXuz8J6ReLiyRpJABI4j1qX/PB2jaVY5tDbLalQ==}
posthog-js@1.188.0:
resolution: {integrity: sha512-FdNCZcgM5sjADxES7VWbRntD39V2fvHunZry6Rrsp8VDG20TcAWc+koAuCMfEoU5jKxm/Ua37QnI9Xqfwg2fow==}
preact@10.24.3:
resolution: {integrity: sha512-Z2dPnBnMUfyQfSQ+GBdsGa16hz35YmLmtTLhM169uW944hYL6xzTYkJjC07j+Wosz733pMWx0fgON3JNw1jJQA==}
@@ -4066,6 +4072,10 @@ snapshots:
dependencies:
'@tauri-apps/api': 2.1.1
'@tauri-apps/plugin-shell@2.0.1':
dependencies:
'@tauri-apps/api': 2.1.1
'@tsconfig/node10@1.0.11':
optional: true
@@ -4104,7 +4114,7 @@ snapshots:
dependencies:
undici-types: 6.19.8
'@types/node@20.17.6':
'@types/node@20.17.8':
dependencies:
undici-types: 6.19.8
@@ -5058,8 +5068,8 @@ snapshots:
browserslist@4.24.2:
dependencies:
caniuse-lite: 1.0.30001680
electron-to-chromium: 1.5.57
caniuse-lite: 1.0.30001684
electron-to-chromium: 1.5.65
node-releases: 2.0.18
update-browserslist-db: 1.1.1(browserslist@4.24.2)
@@ -5095,7 +5105,7 @@ snapshots:
caniuse-lite@1.0.30001663: {}
caniuse-lite@1.0.30001680: {}
caniuse-lite@1.0.30001684: {}
canvas@2.11.2:
dependencies:
@@ -5390,7 +5400,7 @@ snapshots:
electron-to-chromium@1.5.36: {}
electron-to-chromium@1.5.57: {}
electron-to-chromium@1.5.65: {}
emoji-regex@8.0.0: {}
@@ -6363,7 +6373,7 @@ snapshots:
jest-worker@27.5.1:
dependencies:
'@types/node': 20.17.6
'@types/node': 20.17.8
merge-stream: 2.0.0
supports-color: 8.1.1
@@ -6872,7 +6882,7 @@ snapshots:
picocolors: 1.1.0
source-map-js: 1.2.1
posthog-js@1.180.1:
posthog-js@1.188.0:
dependencies:
core-js: 3.38.1
fflate: 0.4.8