Skip to content

Commit 28c833f

Browse files
committed
project name formatter, new util moment_format_to_chrono with test
1 parent a0e007c commit 28c833f

File tree

8 files changed

+437
-45
lines changed

8 files changed

+437
-45
lines changed

Cargo.lock

Lines changed: 20 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
[workspace]
22
resolver = "2"
3-
members = ["apps/cli", "apps/desktop/src-tauri", "crates/*", "crates/workspace-hack"]
3+
members = [
4+
"apps/cli",
5+
"apps/desktop/src-tauri",
6+
"crates/*",
7+
"crates/workspace-hack",
8+
]
49

510
[workspace.dependencies]
611
anyhow = { version = "1.0.86" }
@@ -40,6 +45,7 @@ sentry = { version = "0.42.0", features = [
4045
] }
4146
tracing = "0.1.41"
4247
futures = "0.3.31"
48+
aho-corasick = "1.1.4"
4349

4450
cidre = { git = "https://github.com/CapSoftware/cidre", rev = "bf84b67079a8", features = [
4551
"macos_12_7",

apps/desktop/src-tauri/Cargo.toml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ swift-rs = { version = "1.0.6", features = ["build"] }
2020

2121
[dependencies]
2222
tauri = { workspace = true, features = [
23-
"macos-private-api",
24-
"protocol-asset",
25-
"tray-icon",
26-
"image-png",
27-
"devtools",
23+
"macos-private-api",
24+
"protocol-asset",
25+
"tray-icon",
26+
"image-png",
27+
"devtools",
2828
] }
2929
tauri-specta = { version = "=2.0.0-rc.20", features = ["derive", "typescript"] }
3030
tauri-plugin-dialog = "2.2.0"
@@ -60,6 +60,7 @@ tracing.workspace = true
6060
tempfile = "3.9.0"
6161
ffmpeg.workspace = true
6262
chrono = { version = "0.4.31", features = ["serde"] }
63+
regex = "1.10.4"
6364
rodio = "0.19.0"
6465
png = "0.17.13"
6566
device_query = "4.0.1"
@@ -106,22 +107,24 @@ tauri-plugin-sentry = "0.5.0"
106107
thiserror.workspace = true
107108
bytes = "1.10.1"
108109
async-stream = "0.3.6"
110+
sanitize-filename = "0.6.0"
109111
tracing-futures = { version = "0.2.5", features = ["futures-03"] }
110112
tracing-opentelemetry = "0.32.0"
111113
opentelemetry = "0.31.0"
112-
opentelemetry-otlp = "0.31.0" #{ version = , features = ["http-proto", "reqwest-client"] }
114+
opentelemetry-otlp = "0.31.0" #{ version = , features = ["http-proto", "reqwest-client"] }
113115
opentelemetry_sdk = { version = "0.31.0", features = ["rt-tokio", "trace"] }
114116
posthog-rs = "0.3.7"
115117
workspace-hack = { version = "0.1", path = "../../../crates/workspace-hack" }
118+
aho-corasick.workspace = true
116119

117120

118121
[target.'cfg(target_os = "macos")'.dependencies]
119122
core-graphics = "0.24.0"
120123
core-foundation = "0.10.0"
121124
objc2-app-kit = { version = "0.3.0", features = [
122-
"NSWindow",
123-
"NSResponder",
124-
"NSHapticFeedback",
125+
"NSWindow",
126+
"NSResponder",
127+
"NSHapticFeedback",
125128
] }
126129
cocoa = "0.26.0"
127130
objc = "0.2.7"
@@ -131,10 +134,10 @@ cidre = { workspace = true }
131134

132135
[target.'cfg(target_os= "windows")'.dependencies]
133136
windows = { workspace = true, features = [
134-
"Win32_Foundation",
135-
"Win32_System",
136-
"Win32_UI_WindowsAndMessaging",
137-
"Win32_Graphics_Gdi",
137+
"Win32_Foundation",
138+
"Win32_System",
139+
"Win32_UI_WindowsAndMessaging",
140+
"Win32_Graphics_Gdi",
138141
] }
139142
windows-sys = { workspace = true }
140143

apps/desktop/src-tauri/src/general_settings.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ pub struct GeneralSettingsStore {
120120
pub delete_instant_recordings_after_upload: bool,
121121
#[serde(default = "default_instant_mode_max_resolution")]
122122
pub instant_mode_max_resolution: u32,
123+
#[serde(default)]
124+
pub default_project_name_template: Option<String>,
123125
}
124126

125127
fn default_enable_native_camera_preview() -> bool {
@@ -184,6 +186,7 @@ impl Default for GeneralSettingsStore {
184186
excluded_windows: default_excluded_windows(),
185187
delete_instant_recordings_after_upload: false,
186188
instant_mode_max_resolution: 1920,
189+
default_project_name_template: None,
187190
}
188191
}
189192
}

0 commit comments

Comments
 (0)