-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
215 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import antfu from '@antfu/eslint-config' | ||
|
||
export default antfu({ | ||
ignores: [ | ||
'public/**', | ||
'src-tauri/**', | ||
'**/target/**', | ||
], | ||
}) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
name = "ddu" | ||
version = "0.1.8" | ||
description = "Ddu screenshot tool" | ||
authors = ["[email protected]"] | ||
authors = [ "[email protected]" ] | ||
edition = "2021" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
@@ -12,10 +12,14 @@ edition = "2021" | |
# to make the lib name unique and wouldn't conflict with the bin name. | ||
# This seems to be only an issue on Windows, see https://github.com/rust-lang/cargo/issues/8519 | ||
name = "ddu_lib" | ||
crate-type = ["staticlib", "cdylib", "rlib"] | ||
crate-type = [ | ||
"staticlib", | ||
"cdylib", | ||
"rlib" | ||
] | ||
|
||
[build-dependencies] | ||
tauri-build = { version = "2", features = ["config-json5"] } | ||
tauri-build = { version = "2", features = [ "config-json5" ] } | ||
|
||
[dependencies] | ||
tauri = { version = "2", features = [ | ||
|
@@ -25,7 +29,7 @@ tauri = { version = "2", features = [ | |
"tray-icon", | ||
] } | ||
tauri-plugin-shell = "2.0.0" | ||
serde = { version = "1", features = ["derive"] } | ||
serde = { version = "1", features = [ "derive" ] } | ||
serde_json = "1" | ||
chrono = "0.4.38" | ||
anyhow = "1.0.93" | ||
|
@@ -38,21 +42,21 @@ strum = "0.26.3" | |
image = "0.25.5" | ||
tauri-plugin-store = "2" | ||
xcap = "0.0.14" | ||
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] } | ||
tracing-subscriber = { version = "0.3.18", features = [ "env-filter" ] } | ||
tracing = "0.1.40" | ||
tauri-plugin-os = "2" | ||
core-foundation = "0.10.0" | ||
libc = "0.2.164" | ||
base64 = "0.22.1" | ||
|
||
[features] | ||
default = ["custom-protocol"] | ||
custom-protocol = ["tauri/custom-protocol"] | ||
default = [ "custom-protocol" ] | ||
custom-protocol = [ "tauri/custom-protocol" ] | ||
|
||
[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies] | ||
tauri-plugin-autostart = "2" | ||
tauri-plugin-global-shortcut = "2" | ||
tauri-plugin-positioner = { version = "2.0.0", features = ["tray-icon"] } | ||
tauri-plugin-positioner = { version = "2.0.0", features = [ "tray-icon" ] } | ||
tauri-plugin-window-state = "2" | ||
|
||
[target."cfg(target_os = \"macos\")".dependencies] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,4 @@ | |
"clipboard-manager:allow-write-image", | ||
"clipboard-manager:allow-write-text" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,4 @@ | |
"positioner:allow-move-window", | ||
"positioner:allow-set-tray-icon-state" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,4 @@ | |
"autostart:allow-disable", | ||
"autostart:allow-is-enabled" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,4 @@ | |
"dialog:allow-open", | ||
"dialog:allow-save" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,4 @@ | |
"global-shortcut:allow-unregister", | ||
"global-shortcut:allow-unregister-all" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,4 @@ | |
"os:default", | ||
"os:allow-version" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,4 @@ | |
"core:window:allow-internal-toggle-maximize", | ||
"core:window:allow-set-cursor-icon" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
"withGlobalTauri": true, | ||
"macOSPrivateApi": true, | ||
"windows": [ | ||
|
||
], | ||
"security": { | ||
"csp": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters