📝 Docs(custom): prepare for 2.81

This commit is contained in:
Kuingsmile 2024-04-03 17:56:09 +08:00
parent 75b0c7f518
commit 0476346070
5 changed files with 14 additions and 10 deletions

View File

@ -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

View File

@ -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

View File

@ -36,7 +36,6 @@ const handleClipboardUploading = async (): Promise<false | ImgInfo[]> => {
export const uploadClipboardFiles = async (): Promise<IStringKeyMap> => {
const img = await handleClipboardUploading()
console.log(img)
if (img !== false) {
if (img.length > 0) {
const trayWindow = windowManager.get(IWindowList.TRAY_WINDOW)

View File

@ -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 {

View File

@ -2405,7 +2405,6 @@ function handleWebServerPathChange (val: string) {
}
function confirmWebServerSetting () {
console.log('confirmWebServerSetting')
if (form.enableWebServer) {
sendToMain('restartWebServer')
} else {