fix: azurite and refactoring

This commit is contained in:
Charles GTE
2026-06-20 19:35:40 +02:00
parent 3018515abf
commit baab060628
10 changed files with 137 additions and 5 deletions
+1 -1
View File
@@ -10,9 +10,9 @@ import {NextcloudChannelConfigSchema} from "@/features/channel/notifications/nex
import {PushoverChannelConfigSchema} from "@/features/channel/notifications/pushover.schema";
import {S3ChannelConfigSchema} from "@/features/channel/storages/s3.schema";
import {GoogleDriveChannelConfigSchema} from "@/features/channel/storages/google-drive/google-drive.schema";
import { BlobChannelConfigSchema } from "@/features/channel/storages/Blob.schema";
import {LocalChannelConfigSchema} from "@/features/channel/storages/local.schema";
import {TeamsChannelConfigSchema} from "@/features/channel/notifications/teams.schema";
import {BlobChannelConfigSchema} from "@/features/channel/storages/az-blob.schema";
const BaseChannelFormSchema = z.object({
+1 -1
View File
@@ -43,7 +43,7 @@ import {
} from "@/features/channel/storages/google-drive/google-drive.form";
import {
StorageBlobForm
} from "@/features/channel/storages/Blob.form";
} from "@/features/channel/storages/az-blob.form";
export type ChannelKind = "notification" | "storage";
@@ -5,7 +5,10 @@ export const BlobChannelConfigSchema = z.object({
accountKey: z.string().optional(),
connectionString: z.string().optional(),
containerName: z.string().min(1, "Container name is required"),
endpointUrl: z.string().url("Endpoint URL must be a valid URL").optional(),
endpointUrl: z.preprocess(
(v) => (v === "" ? undefined : v),
z.string().url("Endpoint URL must be a valid URL").optional(),
),
}).refine(
(data) => data.accountKey || data.connectionString,
{message: "Either account key or connection string is required"}
+1 -1
View File
@@ -6,7 +6,7 @@ import {
import {uploadLocal, getLocal, deleteLocal, pingLocal, copyLocal} from './local';
import {copyS3, deleteS3, getS3, pingS3, uploadS3} from "@/features/channel/storages/s3";
import {copyBlob, deleteBlob, getBlob, pingBlob, uploadBlob} from "@/features/channel/storages/Blob";
import {copyBlob, deleteBlob, getBlob, pingBlob, uploadBlob} from "@/features/channel/storages/az-blob";
import {
copyGoogleDrive,
deleteGoogleDrive,