mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 13:47:15 +08:00
feat: 重写s3客户端
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user