From 2dfa34d096829b55e0bd7408a1b4719fd558c454 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Mon, 18 Aug 2025 00:00:04 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E3=80=90infra=20=E5=9F=BA?= =?UTF-8?q?=E7=A1=80=E8=AE=BE=E6=96=BD=E3=80=91=E6=96=87=E4=BB=B6=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=97=B6=EF=BC=8C=E5=A2=9E=E5=8A=A0=E2=80=9C=E5=85=AC?= =?UTF-8?q?=E5=BC=80=E8=AE=BF=E9=97=AE=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/api/infra/file-config/index.ts | 1 + .../src/views/infra/fileConfig/data.ts | 19 +++++++++++++++++++ .../src/api/infra/file-config/index.ts | 1 + .../src/views/infra/fileConfig/data.ts | 19 +++++++++++++++++++ .../src/api/infra/file-config/index.ts | 1 + .../src/views/infra/fileConfig/data.ts | 19 +++++++++++++++++++ 6 files changed, 60 insertions(+) diff --git a/apps/web-antd/src/api/infra/file-config/index.ts b/apps/web-antd/src/api/infra/file-config/index.ts index 20a0ab3fa..1a2fb7707 100644 --- a/apps/web-antd/src/api/infra/file-config/index.ts +++ b/apps/web-antd/src/api/infra/file-config/index.ts @@ -16,6 +16,7 @@ export namespace InfraFileConfigApi { accessKey?: string; accessSecret?: string; pathStyle?: boolean; + enablePublicAccess?: boolean; domain: string; } diff --git a/apps/web-antd/src/views/infra/fileConfig/data.ts b/apps/web-antd/src/views/infra/fileConfig/data.ts index 58cc4cd93..b28d53deb 100644 --- a/apps/web-antd/src/views/infra/fileConfig/data.ts +++ b/apps/web-antd/src/views/infra/fileConfig/data.ts @@ -200,6 +200,25 @@ export function useFormSchema(): VbenFormSchema[] { }, defaultValue: false, }, + { + fieldName: 'config.enablePublicAccess', + label: '公开访问', + component: 'RadioGroup', + componentProps: { + options: [ + { label: '公开', value: true }, + { label: '私有', value: false }, + ], + buttonStyle: 'solid', + optionType: 'button', + }, + rules: 'required', + dependencies: { + triggerFields: ['storage'], + show: (formValues) => formValues.storage === 20, + }, + defaultValue: false, + }, // 通用 { fieldName: 'config.domain', diff --git a/apps/web-ele/src/api/infra/file-config/index.ts b/apps/web-ele/src/api/infra/file-config/index.ts index 20a0ab3fa..1a2fb7707 100644 --- a/apps/web-ele/src/api/infra/file-config/index.ts +++ b/apps/web-ele/src/api/infra/file-config/index.ts @@ -16,6 +16,7 @@ export namespace InfraFileConfigApi { accessKey?: string; accessSecret?: string; pathStyle?: boolean; + enablePublicAccess?: boolean; domain: string; } diff --git a/apps/web-ele/src/views/infra/fileConfig/data.ts b/apps/web-ele/src/views/infra/fileConfig/data.ts index 282d70f19..1fee714de 100644 --- a/apps/web-ele/src/views/infra/fileConfig/data.ts +++ b/apps/web-ele/src/views/infra/fileConfig/data.ts @@ -213,6 +213,25 @@ export function useFormSchema(): VbenFormSchema[] { }, defaultValue: false, }, + { + fieldName: 'config.enablePublicAccess', + label: '公开访问', + component: 'RadioGroup', + componentProps: { + options: [ + { label: '公开', value: true }, + { label: '私有', value: false }, + ], + buttonStyle: 'solid', + optionType: 'button', + }, + rules: 'required', + dependencies: { + triggerFields: ['storage'], + show: (formValues) => formValues.storage === 20, + }, + defaultValue: false, + }, // 通用 { fieldName: 'config.domain', diff --git a/apps/web-naive/src/api/infra/file-config/index.ts b/apps/web-naive/src/api/infra/file-config/index.ts index a16cf2bc0..e74f6aad9 100644 --- a/apps/web-naive/src/api/infra/file-config/index.ts +++ b/apps/web-naive/src/api/infra/file-config/index.ts @@ -16,6 +16,7 @@ export namespace InfraFileConfigApi { accessKey?: string; accessSecret?: string; pathStyle?: boolean; + enablePublicAccess?: boolean; domain: string; } diff --git a/apps/web-naive/src/views/infra/fileConfig/data.ts b/apps/web-naive/src/views/infra/fileConfig/data.ts index f28895add..1a9183d9a 100644 --- a/apps/web-naive/src/views/infra/fileConfig/data.ts +++ b/apps/web-naive/src/views/infra/fileConfig/data.ts @@ -214,6 +214,25 @@ export function useFormSchema(): VbenFormSchema[] { }, defaultValue: false, }, + { + fieldName: 'config.enablePublicAccess', + label: '公开访问', + component: 'RadioGroup', + componentProps: { + options: [ + { label: '公开', value: true }, + { label: '私有', value: false }, + ], + buttonStyle: 'solid', + optionType: 'button', + }, + rules: 'required', + dependencies: { + triggerFields: ['storage'], + show: (formValues) => formValues.storage === 20, + }, + defaultValue: false, + }, // 通用 { fieldName: 'config.domain',