Commit Graph

1222 Commits

Author SHA1 Message Date
Kuingsmile
ecc39083c3 Feature(custom): change login card background 2025-08-15 10:58:58 +08:00
Kuingsmile
d2f4303aec Feature(custom): optimize bucket page background 2025-08-15 10:48:46 +08:00
Kuingsmile
8c80d51be0 Feature(custom): optimize upload modal ui 2025-08-15 10:37:36 +08:00
Kuingsmile
d3a7f1b0a6 📦 Chore(custom): remove universal build on macos 2025-08-14 17:34:59 +08:00
Kuingsmile
35ff3168d9 Feature(custom): change menu icon 2025-08-14 17:28:05 +08:00
Kuingsmile
edf3eccc79 Feature(custom): change menu order of navigation bar 2025-08-14 17:24:46 +08:00
Kuingsmile
9e243b0400 🐛 Fix(custom): fix delete button css 2025-08-14 16:41:19 +08:00
Kuingsmile
5738a9f834 📝 Docs(custom): update comtributing guide 2025-08-14 16:35:29 +08:00
Kuingsmile
bb881fa966 📝 Docs(custom): update 3.0.0 changelog 2025-08-14 16:31:30 +08:00
Kuingsmile
d4af5fc8f6 Feature(custom): support collapse navi bar 2025-08-14 16:19:24 +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
15d205b30a 📦 Chore(custom): update release action 2025-08-14 15:24:14 +08:00
Kuingsmile
1a9ab5b614 📦 Chore(custom): update test build file 2025-08-14 14:42:42 +08:00
Kuingsmile
72327c0ef9 📦 Chore(custom): update macos arm64 build 2025-08-14 14:36:24 +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
68cf0bc91c 🎨 Style(custom): only upload installer in action 2025-08-13 17:54:00 +08:00
Kuingsmile
7f37dd2e05 🐛 Fix(custom): fix config form validate issue 2025-08-13 16:44:27 +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
11341c024a 📦 Chore(custom): add arm64 support for Windows in config and update download links 2025-08-13 11:57:58 +08:00
Kuingsmile
29ca49a440 📦 Chore(custom): update release action for arm64 2025-08-13 11:42:14 +08:00
Kuingsmile
fc14559461 Feature(custom): upload all files for test build 2025-08-13 11:00:37 +08:00
Kuingsmile
614721117e 🐛 Fix(custom): fix macos build error 2025-08-13 10:44:54 +08:00
Kuingsmile
6785e1d0ad 📦 Chore(custom): add arm64 build test 2025-08-13 10:25:28 +08:00
Kuingsmile
b31428a67c Feature(custom): optimize color under dark mode of gallery and setting page 2025-08-12 23:12:16 +08:00
Kuingsmile
5cfeaadcfe 🐛 Fix(custom): fix static assets bugs 2025-08-12 22:49:21 +08:00
Kuingsmile
d75ec2e31e 📦 Chore(custom): update test build action 2025-08-12 16:15:12 +08:00
Kuingsmile
edc7ca423d 📦 Chore(custom): add token env in action 2025-08-12 15:58:56 +08:00
Kuingsmile
9cc6704af7 Feature(custom): upgrade core to 2.0.0 2025-08-12 15:39:03 +08:00
Kuingsmile
170c4ef9c3 Feature(custom): add image watermark opacity setting
ISSUES CLOSED: #348
2025-08-12 15:03:17 +08:00
Kuingsmile
1a35831301 🐛 Fix(custom): fix memory leak issues 2025-08-11 17:38:39 +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
ed02d00f05 📦 Chore(custom): add build test action file 2025-08-10 16:48:58 +08:00
Kuingsmile
b40eeee165 Feature(custom): remove use of element-plus 2025-08-10 16:19:33 +08:00
Kuingsmile
66469ae2cf 🐛 Fix(custom): fix window.prompt usage 2025-08-10 16:07:25 +08:00
Kuingsmile
bfb7222b37 Feature(custom): add i18n fields 2025-08-10 15:44:56 +08:00
Kuingsmile
a0cfd2a408 🚧 WIP(custom): rewrite manage page 2025-08-09 23:26:00 +08:00
Kuingsmile
3cb17aaf1d Feature(custom): rewrite login page 2025-08-09 10:49:46 +08:00
Kuingsmile
1442724fbe Feature(custom): rewrite tray page for macos 2025-08-08 16:47:05 +08:00
Kuingsmile
fd9dac735a Feature(custom): rewrite gallery page for better performance 2025-08-08 16:00:21 +08:00
Kuingsmile
6aebfcbb28 Feature(custom): rewrite toolbox page 2025-08-07 15:28:06 +08:00
Kuingsmile
a9c7cecd00 Feature(custom): rewrite upload config and plugin page 2025-08-07 14:52:46 +08:00
Kuingsmile
ca95b7aa49 Feature(custom): enhance UI styles for Picgo settings and upload page 2025-08-06 17:28:39 +08:00
Kuingsmile
4b8bfded1d Feature(custom): rewrite setting page, WIP 2025-08-06 11:19:19 +08:00