Commit Graph

470 Commits

Author SHA1 Message Date
Kuingsmile
7df95c8328 🔨 Refactor(custom): refactor manage api to be more concise 2025-08-29 10:17:26 +08:00
Kuingsmile
3e98fd4325 Feature(custom): add log for cloud delete 2025-08-22 15:02:34 +08:00
Kuingsmile
934a716106 🐛 Fix(custom): fix picbed config reset issue
ISSUES CLOSED: #375
2025-08-21 09:36:04 +08:00
Kuingsmile
c6537c13d9 🐛 Fix(custom): optimize minipage ui #374
ISSUES CLOSED: y
2025-08-20 16:09:21 +08:00
Kuingsmile
fbf0dcc691 Feature(custom): add gallery picbed filter
ISSUES CLOSED: #309
2025-08-20 15:34:54 +08:00
Kuingsmile
023250f39b 🐛 Fix(custom): fix drag upload issue and mime error
ISSUES CLOSED: #373
2025-08-20 10:28:57 +08:00
Kuingsmile
8df94c0c9f 🐛 Fix(custom): fix copy item order issue
ISSUES CLOSED: #386
2025-08-18 13:52:29 +08:00
Kuingsmile
f11a4264d0 🎨 Style(custom): lint code 2025-08-15 13:29:09 +08:00
yang07861
ae366bab21 fix(s3): Correctly handle file deletion with custom URL (#358)
* fix(s3): Correctly handle file deletion with custom URL

When a custom URL is configured for an S3-compatible provider, the
application was failing to delete files from the remote bucket. This was
because the deletion logic incorrectly used the full pathname of the
custom URL as the S3 object key, instead of the object's actual key
within the bucket.

This commit modifies the `removeFileFromS3InMain` function to be aware
of the `customUrl` setting. If a custom URL is in use, the logic now
correctly strips the custom URL's prefix from the image URL to
derive the proper S3 object key before sending the `DeleteObject`
command.

* feat(debug): Add detailed logging to S3 deletion

This commit adds extensive console logging to the `removeFileFromS3InMain`
function in `src/main/utils/deleteFunc.ts`.

The purpose of this change is to debug an issue where file deletion
fails with a custom URL. These logs will capture the state of key
variables (configMap, imgUrl, customUrl, fileKey) and any errors
returned by the S3 client during the deletion process. This is a
temporary debugging measure.

* fix(s3): Correctly handle file deletion using urlPrefix

This commit fixes a bug where file deletion from an S3-compatible
provider would fail if a custom URL was configured. The root cause was
that the logic was looking for a `customUrl` property in the config,
when the correct property name is `urlPrefix`.

The `removeFileFromS3InMain` function has been updated to use the
correct `urlPrefix` property. This ensures that when a custom URL
is present, the S3 object key is derived correctly by stripping the
prefix, allowing the deletion to succeed.

---------

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2025-08-14 15:41:02 +08:00
Kuingsmile
9d4e280b3d 🐛 Fix(custom): fix titlebar in macos 2025-08-14 14:25:20 +08:00
Kuingsmile
3ebbeb4dc7 📦 Chore(custom): modify asarunpack setting 2025-08-14 13:35:36 +08:00
Kuingsmile
74a3333a43 🐛 Fix(custom): fix resources path 2025-08-14 11:09:21 +08:00
Kuingsmile
8102246e16 🐛 Fix(custom): fix shell-path usage for macos 2025-08-14 10:10:48 +08:00
Kuingsmile
10eec5620c 📝 Docs(custom): update readme, prepare for 3.0.0 2025-08-13 16:16:31 +08:00
Kuingsmile
c04fedc40d 🐛 Fix(custom): remove unused files 2025-08-13 15:58:59 +08:00
Kuingsmile
0feca7bef2 🐛 Fix(custom): fix delete api 2025-08-13 15:51:51 +08:00
Kuingsmile
f0b0e55937 Perf(custom): add memory monitor and optimiz memory usage 2025-08-13 15:11:55 +08:00
Kuingsmile
5cfeaadcfe 🐛 Fix(custom): fix static assets bugs 2025-08-12 22:49:21 +08:00
Kuingsmile
0bf435a0da 🐛 Fix(custom): fix drag upload of upload page 2025-08-11 14:59:25 +08:00
Kuingsmile
112c08d92c Feature(custom): add vitest and optimize performance of aeshelper 2025-08-11 12:24:25 +08:00
Kuingsmile
3cb17aaf1d Feature(custom): rewrite login page 2025-08-09 10:49:46 +08:00
Kuingsmile
fd9dac735a Feature(custom): rewrite gallery page for better performance 2025-08-08 16:00:21 +08:00
Kuingsmile
a9c7cecd00 Feature(custom): rewrite upload config and plugin page 2025-08-07 14:52:46 +08:00
Kuingsmile
4b8bfded1d Feature(custom): rewrite setting page, WIP 2025-08-06 11:19:19 +08:00
Kuingsmile
32c3eaba12 Feature(custom): optimize mini page 2025-08-05 16:46:30 +08:00
Kuingsmile
fe945a0136 🐛 Fix(custom): fix file selection bug in upload page 2025-08-05 15:41:43 +08:00
Kuingsmile
b1f514e80c Feature(custom): rewrite upload and image process page 2025-08-05 14:31:23 +08:00
Kuingsmile
11dd2e7238 Feature(custom): rewrite titlebar and navigation UI 2025-08-01 22:09:20 +08:00
Kuingsmile
70396c3e5c Feature(custom): optimize i18n and platform funcs 2025-08-01 13:38:37 +08:00
Kuingsmile
236b7c6e7d Feature(custom): split i18n in main and renderer, use vue-i18n 2025-08-01 13:10:05 +08:00
Kuingsmile
89976c73a9 🐛 Fix(custom): fix delete bug when using in render process 2025-07-31 23:23:51 +08:00
Kuingsmile
054f4b4cff 🚧 WIP(custom): v3.0.0 migrate to vite and esm 2025-07-31 17:37:30 +08:00
Kuingsmile
cd76bc7c10 🔨 Refactor(custom): remove debug code 2025-07-18 17:05:01 +08:00
Kuingsmile
64747887e1 🐛 Fix(custom): fix webdav backup bug for custom path close #347 2025-07-18 17:00:58 +08:00
Kuingsmile
9084a30e8d 🐛 Fix(custom): truncate update log for better readability in dialog 2025-06-30 17:10:18 +08:00
Kuingsmile
3a25da94e7 Feature(custom): always copy workflow file for macos 2025-06-08 17:31:52 +08:00
Kuingsmile
9deda85c6f Feature(custom): remove auto replace of localhost to 0.0.0.0 2025-06-07 22:45:46 +08:00
Kuingsmile
d5f137e2b7 Feature(custom): add WebDAV sync configuration options 2025-06-07 22:25:51 +08:00
Kuingsmile
9a93314118 🐛 Fix(custom): fix cache issues in gallery image
ISSUES CLOSED: #288
2025-02-27 16:47:07 +08:00
Kuingsmile
8815089c01 🐛 Fix(custom): fix start mode in mac and win
ISSUES CLOSED: #281
2024-12-23 11:36:15 +08:00
Kuingsmile
e2e802b30f 🐛 Fix(custom): fix file delete bug 2024-12-17 16:11:45 +08:00
Kuingsmile
84be430b70 🐛 Fix(custom): fix auto name bug 2024-11-25 17:30:01 +08:00
Kuingsmile
fd5316a7b9 Feature(custom): optimize short url
ISSUES CLOSED: #252
2024-11-16 10:14:52 +08:00
Kuingsmile
876ec16a48 🔨 Refactor(custom): refactored cli upload 2024-11-13 15:13:00 +08:00
Kuingsmile
7d5eaf17c4 🔨 Refactor(custom): refactored aeshelper 2024-11-13 13:56:09 +08:00
Kuingsmile
fdae9bda2d 🔨 Refactor(custom): refactored upload func 2024-11-13 11:27:14 +08:00
Kuingsmile
b843278b2c Feature(custom): add support for sink
ISSUES CLOSED: #254
2024-10-31 14:14:32 +08:00
Kuingsmile
64fba8a6eb Feature(custom): change default short key 2024-10-08 15:57:46 +08:00
Kuingsmile
0565ce34cd Feature(custom): optimize second uploader
ISSUES CLOSED: #241,#238
2024-09-11 14:41:28 +08:00
Kuingsmile
dfbbadea46 🔨 Refactor(custom): refactored window manager 2024-08-01 17:30:59 +08:00