From 64328379093e064931a8b0f5b1c28e50ab5fb388 Mon Sep 17 00:00:00 2001 From: Kuingsmile Date: Fri, 7 Jun 2024 14:58:10 +0800 Subject: [PATCH] :hammer: Refactor(custom): refactored setting page --- src/main/events/ipcList.ts | 8 - src/renderer/pages/PicGoSetting.vue | 771 ++++++++-------------------- 2 files changed, 220 insertions(+), 559 deletions(-) diff --git a/src/main/events/ipcList.ts b/src/main/events/ipcList.ts index 335dce5..d00fd5c 100644 --- a/src/main/events/ipcList.ts +++ b/src/main/events/ipcList.ts @@ -235,14 +235,6 @@ export default { // PicList Setting page IPC - ipcMain.on('updateCustomLink', () => { - const notification = new Notification({ - title: T('OPERATION_SUCCEED'), - body: T('TIPS_CUSTOM_LINK_STYLE_MODIFIED_SUCCEED') - }) - notification.show() - }) - ipcMain.on('autoStart', (_: IpcMainEvent, val: boolean) => { app.setLoginItemSettings({ openAtLogin: val diff --git a/src/renderer/pages/PicGoSetting.vue b/src/renderer/pages/PicGoSetting.vue index 2ee25db..22cb4e3 100644 --- a/src/renderer/pages/PicGoSetting.vue +++ b/src/renderer/pages/PicGoSetting.vue @@ -117,7 +117,7 @@ :label="$T('SETTINGS_ISHIDEDOCK')" > @@ -562,20 +544,18 @@ @@ -751,7 +730,7 @@ @@ -766,7 +745,7 @@ {{ $T('SETTINGS_TIPS_PLACEHOLDER_EXTNAME') }} @@ -802,7 +781,7 @@ > @@ -818,8 +798,8 @@ :label="$T('SETTINGS_PLUGIN_INSTALL_PROXY')" > @@ -827,27 +807,12 @@ :label="$T('SETTINGS_PLUGIN_INSTALL_MIRROR')" > - @@ -876,7 +841,7 @@ :label="$T('SETTINGS_MAIN_WINDOW_SIZE_HEIGHT')" > @@ -1089,7 +1054,7 @@ :label="$T('SETTINGS_LOG_LEVEL')" > @@ -1228,28 +1192,26 @@ :label="$T('SETTINGS_SET_ENABLE_WEB_SERVER')" > -