diff --git a/currentVersion.md b/currentVersion.md index 4ecebb4..ef60d1a 100644 --- a/currentVersion.md +++ b/currentVersion.md @@ -1,8 +1,11 @@ ✨ Features -- 现在高级重命名{md5}会使用文件内容的md5值,而不是文件名的md5值 -- 现在浏览器访问36677上传端口会显示API文档 -- 当使用了不支持的http请求方法时,现在服务接口返回405错误码 +- 现在浏览器访问36677端口会显示API文档(支持`/`和`/upload`路径) +- 现在`heartbeat`接口支持`GET`请求 +- 新增内置web服务支持,默认在37777端口开启一个简易web服务器,类似`EasyWebSvr` +- 现在不再对`svg`图片进行水印处理 +- 现在内置高级重命名中`{md5}`使用文件内容而非文件名字符串计算 +- 现在设置界面的弹出窗口支持拖拽调整位置 - 现在图片处理过程会记录错误日志 🐛 Bug Fixes diff --git a/currentVersion_en.md b/currentVersion_en.md index 4f71e59..0e892b4 100644 --- a/currentVersion_en.md +++ b/currentVersion_en.md @@ -1,11 +1,14 @@ ✨ Features -- Now the advanced renaming {md5} will use the md5 value of the file content, not the file name -- Now the API document will be displayed when the browser accesses the 36677 upload port -- When an unsupported http request method is used, the service interface now returns a 405 error code +- Now the browser will display the API document when accessing port 36677 (support `/` and `/upload` paths) +- Now the `heartbeat` interface supports `GET` requests +- Added built-in web service support, a simple web server is opened by default on port 37777, similar to `EasyWebSvr` +- Now no longer watermark `svg` images +- Now in the advanced renaming, `{md5}` uses the file content instead of the file name string calculation +- Now the pop-up window of the setting interface supports dragging to adjust the position - Now the image processing process will record error logs 🐛 Bug Fixes -- Fix the bug that the image watermark function does not take effect when the watermark text is not set +- Fixed the bug that the image watermark function cannot take effect when the watermark text is not set - Fixed the problem that the port detection function did not work properly when the server port was occupied diff --git a/src/main/apis/app/uploader/apis.ts b/src/main/apis/app/uploader/apis.ts index 7488446..b33529e 100644 --- a/src/main/apis/app/uploader/apis.ts +++ b/src/main/apis/app/uploader/apis.ts @@ -36,7 +36,6 @@ const handleClipboardUploading = async (): Promise => { export const uploadClipboardFiles = async (): Promise => { const img = await handleClipboardUploading() - console.log(img) if (img !== false) { if (img.length > 0) { const trayWindow = windowManager.get(IWindowList.TRAY_WINDOW) diff --git a/src/main/server/index.ts b/src/main/server/index.ts index be140a5..30a0ef3 100644 --- a/src/main/server/index.ts +++ b/src/main/server/index.ts @@ -151,7 +151,7 @@ class Server { private handleGetRequest = (_request: http.IncomingMessage, response: http.ServerResponse) => { const [url, query] = (_request.url || '').split('?') if (!routers.getHandler(url, 'GET')) { - console.log(`[PicList Server] don't support [${url}] endpoint`) + logger.info(`[PicList Server] don't support [${url}] endpoint`) response.statusCode = 404 response.end() } else { diff --git a/src/renderer/pages/PicGoSetting.vue b/src/renderer/pages/PicGoSetting.vue index 8acfa08..3ebb9fe 100644 --- a/src/renderer/pages/PicGoSetting.vue +++ b/src/renderer/pages/PicGoSetting.vue @@ -2405,7 +2405,6 @@ function handleWebServerPathChange (val: string) { } function confirmWebServerSetting () { - console.log('confirmWebServerSetting') if (form.enableWebServer) { sendToMain('restartWebServer') } else {