diff --git a/src-tauri/src/app/cmd.rs b/src-tauri/src/app/cmd.rs index 4b87e4f..2127af8 100644 --- a/src-tauri/src/app/cmd.rs +++ b/src-tauri/src/app/cmd.rs @@ -299,8 +299,8 @@ pub async fn sync_prompts(app: AppHandle, time: u64) -> Option> fs::write( &model, serde_json::json!({ - "name": "ChatGPT Model", - "link": "https://github.com/lencx/ChatGPT" + "name": "ChatGPT Model", + "link": "https://github.com/lencx/ChatGPT" }) .to_string(), ) @@ -319,9 +319,9 @@ pub async fn sync_prompts(app: AppHandle, time: u64) -> Option> fs::write( model_cmd, serde_json::to_string_pretty(&serde_json::json!({ - "name": "ChatGPT CMD", - "last_updated": time, - "data": cmd_data, + "name": "ChatGPT CMD", + "last_updated": time, + "data": cmd_data, })) .unwrap(), ) diff --git a/src-tauri/src/app/menu.rs b/src-tauri/src/app/menu.rs index 9d7d440..4860e6c 100644 --- a/src-tauri/src/app/menu.rs +++ b/src-tauri/src/app/menu.rs @@ -348,18 +348,18 @@ pub fn menu_handler(event: WindowMenuEvent) { "scroll_top" => win .eval( r#"window.scroll({ - top: 0, - left: 0, - behavior: "smooth" - })"#, + top: 0, + left: 0, + behavior: "smooth" + })"#, ) .unwrap(), "scroll_bottom" => win .eval( r#"window.scroll({ - top: document.body.scrollHeight, - left: 0, - behavior: "smooth"})"#, + top: document.body.scrollHeight, + left: 0, + behavior: "smooth"})"#, ) .unwrap(), // Help diff --git a/src-tauri/src/conf.rs b/src-tauri/src/conf.rs index b70d68c..9f6c648 100644 --- a/src-tauri/src/conf.rs +++ b/src-tauri/src/conf.rs @@ -18,32 +18,32 @@ pub const BUY_COFFEE: &str = "https://www.buymeacoffee.com/lencx"; pub const GITHUB_PROMPTS_CSV_URL: &str = "https://raw.githubusercontent.com/f/awesome-chatgpt-prompts/main/prompts.csv"; pub const DEFAULT_CHAT_CONF: &str = r#"{ - "stay_on_top": false, - "auto_update": "Prompt", - "theme": "Light", - "tray": true, - "titlebar": true, - "popup_search": false, - "global_shortcut": "", - "hide_dock_icon": false, - "default_origin": "https://chat.openai.com", - "origin": "https://chat.openai.com", - "ua_window": "", - "ua_tray": "" + "stay_on_top": false, + "auto_update": "Prompt", + "theme": "Light", + "tray": true, + "titlebar": true, + "popup_search": false, + "global_shortcut": "", + "hide_dock_icon": false, + "default_origin": "https://chat.openai.com", + "origin": "https://chat.openai.com", + "ua_window": "", + "ua_tray": "" }"#; pub const DEFAULT_CHAT_CONF_MAC: &str = r#"{ - "stay_on_top": false, - "auto_update": "Prompt", - "theme": "Light", - "tray": true, - "titlebar": false, - "popup_search": false, - "global_shortcut": "", - "hide_dock_icon": false, - "default_origin": "https://chat.openai.com", - "origin": "https://chat.openai.com", - "ua_window": "", - "ua_tray": "" + "stay_on_top": false, + "auto_update": "Prompt", + "theme": "Light", + "tray": true, + "titlebar": false, + "popup_search": false, + "global_shortcut": "", + "hide_dock_icon": false, + "default_origin": "https://chat.openai.com", + "origin": "https://chat.openai.com", + "ua_window": "", + "ua_tray": "" }"#; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone)]