diff --git a/CHANGELOG.md b/CHANGELOG.md index cb450a6..c82f943 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,20 @@ +# :tada: 2.6.0 (2023-09-11) + + +### :sparkles: Features + +* batch rename in gallery will not modify un-matched files ([079b034](https://github.com/Kuingsmile/PicList/commit/079b034)) +* optimize memory use and loading and searching speed of manage page for 30 fold ([fb070e7](https://github.com/Kuingsmile/PicList/commit/fb070e7)) +* optimize title text jump action of upload page ([dfb6f76](https://github.com/Kuingsmile/PicList/commit/dfb6f76)) + + +### :zap: Performance Improvements + +* fix memory leak of main page ([5392d9e](https://github.com/Kuingsmile/PicList/commit/5392d9e)) +* fix memory leak of uoload and setting page ([219cbbb](https://github.com/Kuingsmile/PicList/commit/219cbbb)) + + + ## :tada: 2.5.3 (2023-09-07) diff --git a/package.json b/package.json index 037a204..bdc059f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "piclist", - "version": "2.5.3", + "version": "2.6.0", "author": { "name": "Kuingsmile", "email": "pkukuing@gmail.com" @@ -34,26 +34,26 @@ "lint:dpdm": "dpdm -T --tsconfig ./tsconfig.json --no-tree --no-warning --exit-code circular:1 src/background.ts" }, "dependencies": { - "@aws-sdk/client-s3": "^3.405.0", - "@aws-sdk/lib-storage": "^3.405.0", - "@aws-sdk/s3-request-presigner": "^3.405.0", + "@aws-sdk/client-s3": "^3.409.0", + "@aws-sdk/lib-storage": "^3.409.0", + "@aws-sdk/s3-request-presigner": "^3.409.0", "@element-plus/icons-vue": "^2.1.0", "@highlightjs/vue-plugin": "^2.1.0", "@nodelib/fs.walk": "^2.0.0", "@octokit/rest": "^19.0.7", "@picgo/i18n": "^1.0.0", - "@picgo/store": "^2.0.4", - "@smithy/node-http-handler": "^2.0.5", + "@picgo/store": "^2.1.0", + "@smithy/node-http-handler": "^2.1.2", "@types/mime-types": "^2.1.1", "@videojs-player/vue": "^1.0.0", - "ali-oss": "^6.18.0", + "ali-oss": "^6.18.1", "axios": "^1.5.0", "compare-versions": "^4.1.3", - "core-js": "^3.32.1", + "core-js": "^3.32.2", "cos-nodejs-sdk-v5": "^2.12.4", "dexie": "^3.2.4", "electron-updater": "^6.1.4", - "element-plus": "^2.3.9", + "element-plus": "2.3.12", "epipebomb": "^1.0.0", "fast-xml-parser": "^4.2.7", "form-data": "^4.0.0", @@ -68,7 +68,7 @@ "mitt": "^3.0.1", "node-ssh-no-cpu-features": "^1.0.1", "nodejs-file-downloader": "^4.12.1", - "piclist": "^1.0.3", + "piclist": "^1.0.4", "pinia": "^2.1.6", "pinia-plugin-persistedstate": "^3.2.0", "qiniu": "^7.9.0", @@ -97,13 +97,13 @@ "@types/lowdb": "^1.0.12", "@types/node": "^16.10.2", "@types/request-promise-native": "^1.0.18", - "@types/semver": "^7.5.0", + "@types/semver": "^7.5.1", "@types/tunnel": "^0.0.3", "@types/upyun": "^3.4.1", "@types/uuid": "^9.0.3", "@types/write-file-atomic": "^4.0.0", - "@typescript-eslint/eslint-plugin": "^6.5.0", - "@typescript-eslint/parser": "^6.5.0", + "@typescript-eslint/eslint-plugin": "^6.6.0", + "@typescript-eslint/parser": "^6.6.0", "@vue/cli-plugin-babel": "^5.0.8", "@vue/cli-plugin-eslint": "^5.0.8", "@vue/cli-plugin-router": "^5.0.8", @@ -112,13 +112,13 @@ "@vue/eslint-config-standard": "^8.0.1", "@vue/eslint-config-typescript": "^11.0.3", "@vue/runtime-dom": "^3.3.4", - "conventional-changelog": "^5.0.0", + "conventional-changelog": "^5.1.0", "cz-customizable": "^7.0.0", "dotenv": "^16.3.1", "dpdm": "^3.13.1", "electron": "^22.0.2", "electron-devtools-installer": "^3.2.0", - "eslint": "^8.48.0", + "eslint": "^8.49.0", "eslint-config-standard": ">=16.0.0", "eslint-plugin-import": "^2.28.1", "eslint-plugin-node": "^11.1.0", @@ -126,7 +126,7 @@ "eslint-plugin-vue": "^9.17.0", "husky": "^3.1.0", "node-loader": "^2.0.0", - "npm-check-updates": "^16.13.2", + "npm-check-updates": "^16.13.3", "stylus": "^0.59.0", "stylus-loader": "^7.1.3", "typescript": "^4.9.5", diff --git a/public/i18n/en.yml b/public/i18n/en.yml index d7a66a2..e6d02b6 100644 --- a/public/i18n/en.yml +++ b/public/i18n/en.yml @@ -249,7 +249,7 @@ SETTINGS_SYNC_CONFIG_SELECT_BOTH: Both configuration and gallery files SETTINGS_SYNC_CONFIG_GITHUB_USERNAME: username SETTINGS_SYNC_CONFIG_GITEE_USERNAME: username SETTINGS_SYNC_CONFIG_GITHUB_REPO: repository (private) -SETTINGS_SYNC_CONFIG_GITEE_REPO: repository (private) +SETTINGS_SYNC_CONFIG_GITEE_REPO: repository path SETTINGS_SYNC_CONFIG_GITHUB_BRANCH: branch SETTINGS_SYNC_CONFIG_GITEE_BRANCH: branch SETTINGS_SYNC_CONFIG_GITHUB_TOKEN: Token @@ -676,7 +676,7 @@ MANAGE_CONSTANT_SFTP_BUCKET_PLACEHOLDER: 'e.g. bucket1' MANAGE_CONSTANT_SFTP_BUCKET_TOOLTIP: This cannot be modified, only for software compatibility consideration MANAGE_LOGIN_PAGE_PANE_NAME: Saved Config -MANAGE_LOGIN_PAGE_PANE_DESC: Click on the icon or alias to view details, Enter to view the file page, Delete to remove the configuration +MANAGE_LOGIN_PAGE_PANE_DESC: Click on the icon or alias to view details MANAGE_LOGIN_PAGE_PANE_LOADING: Importing... MANAGE_LOGIN_PAGE_PANE_KEY_NAME: Configuration MANAGE_LOGIN_PAGE_PANE_KEY_VALUE: Value @@ -725,6 +725,7 @@ MANAGE_BUCKET_SORT_SIZE: Size MANAGE_BUCKET_SORT_TYPE: Type MANAGE_BUCKET_SORT_TIME: Time MANAGE_BUCKET_SORT_SELECTED: Selected status +MANAGE_BUCKET_INIT: Init MANAGE_BUCKET_URL_UPLOAD_DIALOG_TITLE: Please enter URL(s), support multiple URLs separated by line breaks MANAGE_BUCKET_URL_UPLOAD_DIALOG_CONFIRM: Confirm MANAGE_BUCKET_URL_UPLOAD_DIALOG_CANCEL: Cancel diff --git a/public/i18n/zh-CN.yml b/public/i18n/zh-CN.yml index bed1bae..47fb6a7 100644 --- a/public/i18n/zh-CN.yml +++ b/public/i18n/zh-CN.yml @@ -252,7 +252,7 @@ SETTINGS_SYNC_CONFIG_SELECT_BOTH: 配置文件和相册文件 SETTINGS_SYNC_CONFIG_GITHUB_USERNAME: GitHub用户名 SETTINGS_SYNC_CONFIG_GITEE_USERNAME: Gitee用户名 SETTINGS_SYNC_CONFIG_GITHUB_REPO: 仓库(私有) -SETTINGS_SYNC_CONFIG_GITEE_REPO: 仓库(私有) +SETTINGS_SYNC_CONFIG_GITEE_REPO: 仓库路径名 SETTINGS_SYNC_CONFIG_GITHUB_BRANCH: GitHub分支 SETTINGS_SYNC_CONFIG_GITEE_BRANCH: Gitee分支 SETTINGS_SYNC_CONFIG_GITHUB_TOKEN: GitHub Token @@ -680,7 +680,7 @@ MANAGE_CONSTANT_SFTP_BUCKET_TOOLTIP: 此处不可修改,仅为软件兼容性 MANAGE_LOGIN_PAGE_PANE_NAME: 已保存配置 -MANAGE_LOGIN_PAGE_PANE_DESC: 点击图标和别名可查看详情,点击进入可查看文件页面,点击删除可删除配置 +MANAGE_LOGIN_PAGE_PANE_DESC: 点击图标和别名可查看详情 MANAGE_LOGIN_PAGE_PANE_LOADING: 导入配置... MANAGE_LOGIN_PAGE_PANE_KEY_NAME: 配置项 MANAGE_LOGIN_PAGE_PANE_KEY_VALUE: 值 @@ -729,6 +729,7 @@ MANAGE_BUCKET_SORT_SIZE: 大小 MANAGE_BUCKET_SORT_TYPE: 类型 MANAGE_BUCKET_SORT_TIME: 时间 MANAGE_BUCKET_SORT_SELECTED: 选中状态 +MANAGE_BUCKET_INIT: 初始化 MANAGE_BUCKET_URL_UPLOAD_DIALOG_TITLE: 请输入URL,支持多个URL,以换行分隔 MANAGE_BUCKET_URL_UPLOAD_DIALOG_CONFIRM: 确定 MANAGE_BUCKET_URL_UPLOAD_DIALOG_CANCEL: 取消 diff --git a/public/i18n/zh-TW.yml b/public/i18n/zh-TW.yml index 8a1b1fc..d5e39ea 100644 --- a/public/i18n/zh-TW.yml +++ b/public/i18n/zh-TW.yml @@ -250,7 +250,7 @@ SETTINGS_SYNC_CONFIG_SELECT_BOTH: 配置檔案和相簿檔案 SETTINGS_SYNC_CONFIG_GITHUB_USERNAME: 用戶名 SETTINGS_SYNC_CONFIG_GITEE_USERNAME: 用戶名 SETTINGS_SYNC_CONFIG_GITHUB_REPO: 儲存庫(私有) -SETTINGS_SYNC_CONFIG_GITEE_REPO: 儲存庫(私有) +SETTINGS_SYNC_CONFIG_GITEE_REPO: 儲存庫路径 SETTINGS_SYNC_CONFIG_GITHUB_BRANCH: GitHub 分支 SETTINGS_SYNC_CONFIG_GITEE_BRANCH: Gitee 分支 SETTINGS_SYNC_CONFIG_GITHUB_TOKEN: GitHub Token @@ -676,7 +676,7 @@ MANAGE_CONSTANT_SFTP_BUCKET_PLACEHOLDER: '例如:bucket1' MANAGE_CONSTANT_SFTP_BUCKET_TOOLTIP: 此處不可修改,僅為軟體相容性考量 MANAGE_LOGIN_PAGE_PANE_NAME: 已保存配置 -MANAGE_LOGIN_PAGE_PANE_DESC: 點擊圖標和別名可查看詳情,點擊進入可查看檔案頁面,點擊刪除可刪除配置 +MANAGE_LOGIN_PAGE_PANE_DESC: 點擊圖標和別名可查看詳情 MANAGE_LOGIN_PAGE_PANE_LOADING: 導入配置... MANAGE_LOGIN_PAGE_PANE_KEY_NAME: 配置項 MANAGE_LOGIN_PAGE_PANE_KEY_VALUE: 值 @@ -725,6 +725,7 @@ MANAGE_BUCKET_SORT_SIZE: 大小 MANAGE_BUCKET_SORT_TYPE: 類型 MANAGE_BUCKET_SORT_TIME: 時間 MANAGE_BUCKET_SORT_SELECTED: 選取狀態 +MANAGE_BUCKET_INIT: 初始化 MANAGE_BUCKET_URL_UPLOAD_DIALOG_TITLE: 請輸入 URL,支援多個 URL,以換行分隔 MANAGE_BUCKET_URL_UPLOAD_DIALOG_CONFIRM: 確定 MANAGE_BUCKET_URL_UPLOAD_DIALOG_CANCEL: 取消 diff --git a/src/main/lifeCycle/index.ts b/src/main/lifeCycle/index.ts index fa927d4..18a023c 100644 --- a/src/main/lifeCycle/index.ts +++ b/src/main/lifeCycle/index.ts @@ -10,6 +10,7 @@ import { import { createProtocol } from 'vue-cli-plugin-electron-builder/lib' +import installExtension, { VUEJS_DEVTOOLS } from 'electron-devtools-installer' import beforeOpen from '~/main/utils/beforeOpen' import ipcList from '~/main/events/ipcList' import busEventList from '~/main/events/busEventList' @@ -137,6 +138,13 @@ class LifeCycle { const readyFunction = async () => { console.log('on ready') createProtocol('picgo') + if (isDevelopment && !process.env.IS_TEST) { + try { + await installExtension(VUEJS_DEVTOOLS) + } catch (e: any) { + console.error('Vue Devtools failed to install:', e.toString()) + } + } windowManager.create(IWindowList.TRAY_WINDOW) windowManager.create(IWindowList.SETTING_WINDOW) const isAutoListenClipboard = db.get('settings.isAutoListenClipboard') || false diff --git a/src/renderer/components/ConfigForm.vue b/src/renderer/components/ConfigForm.vue index 6fccb74..8a035a4 100644 --- a/src/renderer/components/ConfigForm.vue +++ b/src/renderer/components/ConfigForm.vue @@ -36,6 +36,8 @@ class="item" effect="dark" placement="right" + :persistent="false" + teleported >
@@ -462,7 +487,7 @@ https://www.baidu.com/img/bd_logo1.png"
@@ -482,7 +507,7 @@ https://www.baidu.com/img/bd_logo1.png" :gutter="16" > - + @@ -185,6 +185,8 @@ effect="dark" :content="$T('MANAGE_SETTING_KEEP_FOLDER_STRUCTURE_UPLOAD_TIPS')" placement="right" + :persistent="false" + teleported > @@ -194,9 +196,7 @@ @@ -212,6 +212,8 @@ effect="dark" :content="$T('MANAGE_SETTING_KEEP_FOLDER_STRUCTURE_DOWNLOAD_FILE_TIPS')" placement="right" + :persistent="false" + teleported > @@ -221,9 +223,7 @@ @@ -239,6 +239,8 @@ effect="dark" :content="$T('MANAGE_SETTING_KEEP_FOLDER_STRUCTURE_DOWNLOAD_FILE_TIPS')" placement="right" + :persistent="false" + teleported > @@ -248,9 +250,7 @@ @@ -264,6 +264,8 @@ effect="dark" :content="$T('MANAGE_SETTING_MAX_DOWNLOAD_FILE_SIZE_TIPS')" placement="right" + :persistent="false" + teleported > @@ -290,6 +292,8 @@ effect="dark" :content="$T('MANAGE_SETTING_SEARCH_IGNORE_CASE_TIPS')" placement="right" + :persistent="false" + teleported > @@ -299,9 +303,7 @@ @@ -315,6 +317,8 @@ effect="dark" :content="$T('MANAGE_SETTING_TIMESTAMP_RENAME_TIPS')" placement="right" + :persistent="false" + teleported > @@ -324,9 +328,7 @@ @@ -340,6 +342,8 @@ effect="dark" :content="$T('MANAGE_SETTING_RANDOM_STRING_RENAME_TIPS')" placement="right" + :persistent="false" + teleported > @@ -349,9 +353,7 @@ @@ -365,6 +367,8 @@ effect="dark" :content="$T('MANAGE_SETTING_CUSTOM_RENAME_TIPS')" placement="right" + :persistent="false" + teleported > @@ -374,9 +378,7 @@ diff --git a/src/renderer/pages/Gallery.vue b/src/renderer/pages/Gallery.vue index 8ab5503..778abfe 100644 --- a/src/renderer/pages/Gallery.vue +++ b/src/renderer/pages/Gallery.vue @@ -42,6 +42,8 @@ size="small" style="width: 100%" :placeholder="$T('CHOOSE_SHOWED_PICBED')" + :persistent="false" + teleported > @@ -75,6 +78,8 @@ size="small" style="width: 100%" :placeholder="$T('CHOOSE_PASTE_FORMAT')" + :persistent="false" + teleported @change="handlePasteStyleChange" > - +