mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-01 18:32:27 +00:00
feat(ui): enhance custom S3 storage configuration with helper text and force path style option
- Add helper text to the S3 storage configuration form to guide users on Endpoint URL format. - Add 'Force Path Style' checkbox to S3 storage configuration to support MinIO and other S3-compatible providers that require it. - Update `ProfileModalController` to toggle visibility of these new fields based on the selected provider. - Update `ProfileModalController` to save and load the `forcePathStyle` setting. - Update `tests/ui/storageService.test.mjs` to verify persistence of `forcePathStyle`.
This commit is contained in:
1 parent
f5203ddb47
commit
6e3562b64b
3 files changed
+57
-5
No files matched your search
@@ -134,7 +134,8 @@ describe("StorageService", () => {
|
||||
region: "us-east-1",
|
||||
bucket: "my-bucket",
|
||||
accessKeyId: "minio-key",
|
||||
secretAccessKey: "minio-secret"
|
||||
secretAccessKey: "minio-secret",
|
||||
forcePathStyle: true
|
||||
};
|
||||
const meta = {
|
||||
label: "Local Minio",
|
||||
@@ -151,6 +152,7 @@ describe("StorageService", () => {
|
||||
assert.strictEqual(retrieved.region, "us-east-1", "Region should be preserved");
|
||||
assert.strictEqual(retrieved.bucket, "my-bucket", "Bucket should be preserved");
|
||||
assert.strictEqual(retrieved.accessKeyId, "minio-key");
|
||||
assert.strictEqual(retrieved.forcePathStyle, true, "ForcePathStyle should be preserved");
|
||||
assert.strictEqual(retrieved.meta.defaultForUploads, true);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user