···9595 - Fixed the "Start with windows" button appearing on linux
9696 - Fixed linux tray icon title
9797 - Fixed build-release.sh script outputting the wrong names for windows builds
9898- - Fixed clipboard on linux ( and speeded it up on windows )
9999- - Fixed some icons not fading out when moving to the settings menu9898+ - Fixed clipboard on linux ( and sped it up on windows )
9999+ - Fixed some icons not fading out when moving to the settings menu
100100+ - Removed the auto updater
101101+ - Removed account login stuff
···11use tauri::State;
2233use crate::util::cache::Cache;
44-use std::{ fs, thread, time::Duration };
44+use std::{ fs, thread };
5566// Delete a photo when the users confirms the prompt in the ui
77#[tauri::command]
88-pub fn delete_photo(path: String, token: String, is_syncing: bool, cache: State<Cache>) {
88+pub fn delete_photo(path: String, cache: State<Cache>) {
99 let photo_path = cache.get("photo-path".into());
10101111 thread::spawn(move || {
1212 let p = photo_path.unwrap() + "/" + &path;
1313 fs::remove_file(p).unwrap();
1414-1515- let photo = path.split("/").last().unwrap();
1616-1717- if is_syncing {
1818- let client = reqwest::blocking::Client::new();
1919- client
2020- .delete(format!(
2121- "https://photos-cdn.phazed.xyz/api/v1/photos?token={}&photo={}",
2222- token, photo
2323- ))
2424- .timeout(Duration::from_secs(120))
2525- .send()
2626- .unwrap();
2727- }
2814 });
2915}
-2
src-tauri/src/frontend_calls/mod.rs
···99pub mod load_photos;
1010pub mod open_folder;
1111pub mod open_url;
1212-pub mod relaunch;
1313-pub mod start_user_auth;
1412pub mod start_with_win;
1513pub mod sync_photos;
1614pub mod copy_image;
···11-use tauri::{ AppHandle, Emitter };
22-33-pub fn handle_deeplink( url: String, handle: &AppHandle ) {
44- let mut command: u8 = 0;
55- let mut index: u8 = 0;
66-77- for part in url.split('/').into_iter() {
88- index += 1;
99-1010- if index == 3 && part == "auth-callback" {
1111- command = 1;
1212- }
1313-1414- if index == 3 && part == "auth-denied" {
1515- handle.emit("auth-denied", "null").unwrap();
1616- }
1717-1818- if index == 4 && command == 1 {
1919- handle.emit("auth-callback", part).unwrap();
2020- }
2121- }
2222-}
-2
src-tauri/src/util/mod.rs
···11-pub mod check_updates;
21pub mod get_photo_path;
32pub mod get_version;
43pub mod handle_uri_proto;
55-pub mod handle_deeplink;
64pub mod setup_traymenu;
75pub mod cache;
···11111212// https://vitejs.dev/config/
1313export default defineConfig(async () => ({
1414- plugins: [solid(),], //fullReloadAlways],
1414+ plugins: [solid(), fullReloadAlways],
15151616 // Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`
1717 //