fix: resolve TypeScript compilation errors

Fixes:
- VideoPlayer.vue: restore allTags, filteredMarks, marksByTag (removed by mistake)
- PeopleView.vue: fix frameTime scope in playFaceDetailVideo catch block
- Both errors caused white screen on build failure

Root cause:
1. visibleTags duplicate declaration (old + new logic)
2. frameTime undefined in catch block (scope issue)

Solution:
1. Keep allTags/filteredMarks/marksByTag (needed in template)
2. Keep visibleTags (new logic for processor toggles)
3. Move frameTime calculation to correct scope in catch block
This commit is contained in:
2026-07-24 23:33:40 +08:00
parent 48975ef247
commit cb7e1ba0ba
37 changed files with 6875 additions and 205 deletions

View File

@@ -0,0 +1,12 @@
use argon2::{Algorithm, Argon2, Params, PasswordHasher, Version};
use argon2::password_hash::{SaltString, rand_core::OsRng};
fn main() {
let password = std::env::args().nth(1).unwrap_or_else(|| "demo123".to_string());
let salt = SaltString::generate(&mut OsRng);
let argon2 = Argon2::new(Algorithm::Argon2id, Version::V0x13, Params::default());
match argon2.hash_password(password.as_bytes(), &salt) {
Ok(hash) => println!("{}", hash),
Err(e) => eprintln!("Error: {}", e),
}
}

1177
src-tauri/src/main.rs.bak3 Normal file

File diff suppressed because it is too large Load Diff

1177
src-tauri/src/main.rs.base Normal file

File diff suppressed because it is too large Load Diff

1177
src-tauri/src/main.rs.clean Normal file

File diff suppressed because it is too large Load Diff

1180
src-tauri/src/main.rs.work Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long