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 31, 2024
1 parent da1a897 commit 8f39c09
Show file tree
Hide file tree
Showing 16 changed files with 307 additions and 8 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
1 change: 1 addition & 0 deletions src-tauri/common/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ pub static GLOBAL_EVENTS: LazyLock<Vec<String>> = LazyLock::new(|| {

pub static DB_NAME: &str = "clippy.sqlite";
pub static CONFIG_NAME: &str = "config.json";
pub static TOKEN_NAME: &str = "token.json";

pub static MAIN_WINDOW_X: i32 = 375;
pub static MAIN_WINDOW_Y: i32 = 600;
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,9 +1,12 @@
use global_hotkey::hotkey::HotKey;
use google_drive3::yup_oauth2;
use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, Debug)]
pub struct Config {
pub db: String,
#[serde(default)]
pub drive_token: Option<yup_oauth2::AccessToken>,
}

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

0 comments on commit 8f39c09

Please sign in to comment.