Skip to content

Commit

Permalink
add google drive
Browse files Browse the repository at this point in the history
  • Loading branch information
0-don committed Dec 30, 2024
1 parent da1a897 commit b4f61b6
Show file tree
Hide file tree
Showing 12 changed files with 285 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"icon": "tauri icon"
},
"dependencies": {
"@corvu/tooltip": "^0.2.1",
"@solid-primitives/i18n": "^2.1.1",
"@corvu/tooltip": "0.2.1",
"@solid-primitives/i18n": "2.1.1",
"@tauri-apps/api": "2.1.1",
"dayjs": "1.11.13",
"solid-icons": "1.1.0",
Expand Down
206 changes: 202 additions & 4 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 @@ -58,6 +58,7 @@ tree_magic_mini = "3"

color-backtrace = "0"

google-drive3 = { version = "6.0.0" }
[profile.release]
# panic = "abort"
# codegen-units = 1
Expand Down
1 change: 1 addition & 0 deletions src-tauri/common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ path = "src/lib.rs"

[dependencies]
entity = { path = "../entity" }
google-drive3 = { version = "6.0.0" }
global-hotkey = "0"
sea-orm = "1"
serde = "1"
Expand Down
3 changes: 3 additions & 0 deletions src-tauri/common/src/types/types.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use global_hotkey::hotkey::HotKey;
use google_drive3::yup_oauth2;
use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, Debug)]
Expand All @@ -11,6 +12,8 @@ pub struct DataPath {
pub config_path: String,
pub db_file_path: String,
pub config_file_path: String,
#[serde(default)]
pub drive_token: Option<yup_oauth2::AccessToken>,
}

#[derive(Serialize, Deserialize, Debug)]
Expand Down
Loading

0 comments on commit b4f61b6

Please sign in to comment.