2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 13:47:15 +08:00

feat: 重写s3客户端

This commit is contained in:
2026-01-24 22:41:03 +08:00
parent 92425e99cc
commit c1b7a9fbd1
7 changed files with 103 additions and 167 deletions

View File

@@ -21,6 +21,11 @@ const styleOptions = [
{ label: 'Path', value: 'path' }
]
const schemeOptions = [
{ label: 'HTTPS', value: 'https' },
{ label: 'HTTP', value: 'http' }
]
const sftpAuthOptions = [
{ label: $gettext('Password'), value: 'password' },
{ label: $gettext('Private Key'), value: 'private_key' }
@@ -35,6 +40,7 @@ const defaultModel = {
style: 'virtual_hosted',
region: '',
endpoint: '',
scheme: 'https',
bucket: '',
host: '',
port: 22,
@@ -253,6 +259,9 @@ onMounted(() => {
:placeholder="$gettext('Enter endpoint URL')"
/>
</n-form-item>
<n-form-item :label="$gettext('Scheme')">
<n-select v-model:value="createModel.info.scheme" :options="schemeOptions" />
</n-form-item>
<n-form-item :label="$gettext('Bucket')" required>
<n-input
v-model:value="createModel.info.bucket"