diff --git a/public/i18n/en.yml b/public/i18n/en.yml index d211d45..17240ca 100644 --- a/public/i18n/en.yml +++ b/public/i18n/en.yml @@ -115,6 +115,10 @@ SETTINGS_CHOOSE_LANGUAGE: Choose Language UPLOADER_CONFIG_NAME: Configuration Name UPLOADER_CONFIG_PLACEHOLDER: Please Enter Configuration Name SELECTED_SETTING_HINT: Selected +SETTINGS_CUSTOM_MINI_ICON_PATH: Custom Mini Window Icon Path +SETTINGS_CUSTOM_MINI_ICON: Custom Mini Window Icon +SETTINGS_COMPRESS_AND_WATERMARK: Compress and Watermark +SETTINGS_SYNC_DELETE_CLOUD: Sync delete from cloud storage of gallery # shortcut-page diff --git a/public/i18n/zh-CN.yml b/public/i18n/zh-CN.yml index 58b26ca..cca0660 100644 --- a/public/i18n/zh-CN.yml +++ b/public/i18n/zh-CN.yml @@ -116,6 +116,10 @@ BUILTIN_CLIPBOARD_TIPS: 使用内置剪贴板函数而不是调用脚本获取 UPLOADER_CONFIG_NAME: 图床配置名 UPLOADER_CONFIG_PLACEHOLDER: 请输入配置名称 SELECTED_SETTING_HINT: 已选中 +SETTINGS_CUSTOM_MINI_ICON_PATH: 自定义Mini窗口图标路径 +SETTINGS_CUSTOM_MINI_ICON: 是否自定义Mini窗口图标 +SETTINGS_COMPRESS_AND_WATERMARK: 设置图片水印和压缩-格式转换等参数 +SETTINGS_SYNC_DELETE_CLOUD: 相册内删除时同步删除云端文件 # shortcut-page diff --git a/public/i18n/zh-TW.yml b/public/i18n/zh-TW.yml index cd9881f..9bd926d 100644 --- a/public/i18n/zh-TW.yml +++ b/public/i18n/zh-TW.yml @@ -116,6 +116,10 @@ BUILTIN_CLIPBOARD_TIPS: 使用內建剪貼簿函數而不是調用腳本取得 UPLOADER_CONFIG_NAME: 圖床配置名 UPLOADER_CONFIG_PLACEHOLDER: 請輸入配置名稱 SELECTED_SETTING_HINT: 已選中 +SETTINGS_CUSTOM_MINI_ICON_PATH: 自訂Mini視窗圖示路徑 +SETTINGS_CUSTOM_MINI_ICON: 自訂Mini視窗圖示 +SETTINGS_COMPRESS_AND_WATERMARK: 設置圖片浮水印和壓縮-格式轉換等參數 +SETTINGS_SYNC_DELETE_CLOUD: 從相簿中刪除並同步從雲端刪除 # shortcut-page diff --git a/src/main/manage/events/ipcList.ts b/src/main/manage/events/ipcList.ts index eddaa85..e630264 100644 --- a/src/main/manage/events/ipcList.ts +++ b/src/main/manage/events/ipcList.ts @@ -61,6 +61,11 @@ export const manageIpcList = { return manage.getBucketListRecursively(param) }) + ipcMain.handle('convertPathToBase64', async (_evt: IpcMainInvokeEvent, filePath: string) => { + const res = fs.readFileSync(filePath, 'base64') + return res + }) + ipcMain.handle('openFileSelectDialog', async () => { const res = await dialog.showOpenDialog({ properties: ['openFile', 'multiSelections'] diff --git a/src/renderer/pages/MiniPage.vue b/src/renderer/pages/MiniPage.vue index 7a2403e..10de295 100644 --- a/src/renderer/pages/MiniPage.vue +++ b/src/renderer/pages/MiniPage.vue @@ -1,9 +1,12 @@