mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-03 20:40:26 +08:00
优化OSS相关代码
This commit is contained in:
@@ -10,6 +10,7 @@ import (
|
||||
|
||||
func (this *AddOriginPopupAction) getOSSHook() {
|
||||
this.Data["ossTypes"] = []maps.Map{}
|
||||
this.Data["ossForm"] = ""
|
||||
}
|
||||
|
||||
func (this *AddOriginPopupAction) postOSSHook(protocol string) (config *ossconfigs.OSSConfig, goNext bool, err error) {
|
||||
|
||||
@@ -10,6 +10,7 @@ import (
|
||||
|
||||
func (this *AddPopupAction) getOSSHook() {
|
||||
this.Data["ossTypes"] = []maps.Map{}
|
||||
this.Data["ossForm"] = ""
|
||||
}
|
||||
|
||||
func (this *AddPopupAction) postOSSHook(protocol string) (config *ossconfigs.OSSConfig, goNext bool, err error) {
|
||||
|
||||
@@ -10,6 +10,7 @@ import (
|
||||
|
||||
func (this *UpdatePopupAction) getOSSHook() {
|
||||
this.Data["ossTypes"] = []maps.Map{}
|
||||
this.Data["ossForm"] = ""
|
||||
}
|
||||
|
||||
func (this *UpdatePopupAction) postOSSHook(protocol string) (config *ossconfigs.OSSConfig, goNext bool, err error) {
|
||||
|
||||
@@ -47,37 +47,7 @@
|
||||
</tr>
|
||||
|
||||
<!-- OSS -->
|
||||
<!-- 腾讯云COS -->
|
||||
<tbody v-if="protocol == 'oss:tencentCOS'">
|
||||
<tr>
|
||||
<td>密钥ID *<br/><em>(Secret Id)</em></td>
|
||||
<td>
|
||||
<input type="text" name="tencentCOSSecretId" maxlength="100"/>
|
||||
<p class="comment">访问存储桶需要的密钥ID。</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>密钥Key *<br/><em>(Secret Key)</em></td>
|
||||
<td>
|
||||
<input type="text" name="tencentCOSSecretKey" maxlength="100"/>
|
||||
<p class="comment">访问存储桶需要的密钥Key。</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>存储桶名称 *</td>
|
||||
<td>
|
||||
<input type="text" name="tencentCOSBucketName" maxlength="100"/>
|
||||
<p class="comment">存储桶名称,类似于<code-label>example-12345678</code-label>。</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>所属区域代号 *</td>
|
||||
<td>
|
||||
<input type="text" name="tencentCOSRegion" maxlength="100"/>
|
||||
<p class="comment">COS服务所属区域代号,类似于<code-label>ap-beijing</code-label>。</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
{$ .ossForm}
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><more-options-indicator></more-options-indicator></td>
|
||||
|
||||
@@ -50,37 +50,7 @@
|
||||
</tr>
|
||||
|
||||
<!-- OSS -->
|
||||
<!-- 腾讯云COS -->
|
||||
<tbody v-if="protocol == 'oss:tencentCOS'">
|
||||
<tr>
|
||||
<td>密钥ID *<br/><em>(Secret Id)</em></td>
|
||||
<td>
|
||||
<input type="text" name="tencentCOSSecretId" maxlength="100"/>
|
||||
<p class="comment">访问存储桶需要的密钥ID。</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>密钥Key *<br/><em>(Secret Key)</em></td>
|
||||
<td>
|
||||
<input type="text" name="tencentCOSSecretKey" maxlength="100"/>
|
||||
<p class="comment">访问存储桶需要的密钥Key。</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>存储桶名称 *</td>
|
||||
<td>
|
||||
<input type="text" name="tencentCOSBucketName" maxlength="100"/>
|
||||
<p class="comment">存储桶名称,类似于<code-label>example-12345678</code-label>。</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>所属区域代号 *</td>
|
||||
<td>
|
||||
<input type="text" name="tencentCOSRegion" maxlength="100"/>
|
||||
<p class="comment">COS服务所属区域代号,类似于<code-label>ap-beijing</code-label>。</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
{$ .ossForm}
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><more-options-indicator></more-options-indicator></td>
|
||||
|
||||
@@ -51,37 +51,7 @@
|
||||
</tr>
|
||||
|
||||
<!-- OSS -->
|
||||
<!-- 腾讯云COS -->
|
||||
<tbody v-if="origin.protocol == 'oss:tencentCOS'">
|
||||
<tr>
|
||||
<td>密钥ID *<br/><em>(Secret Id)</em></td>
|
||||
<td>
|
||||
<input type="text" name="tencentCOSSecretId" maxlength="100" v-model="origin.oss.options.secretId"/>
|
||||
<p class="comment">访问存储桶需要的密钥ID。</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>密钥Key *<br/><em>(Secret Key)</em></td>
|
||||
<td>
|
||||
<input type="text" name="tencentCOSSecretKey" maxlength="100" v-model="origin.oss.options.secretKey"/>
|
||||
<p class="comment">访问存储桶需要的密钥Key。</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>存储桶名称 *</td>
|
||||
<td>
|
||||
<input type="text" name="tencentCOSBucketName" maxlength="100" v-model="origin.oss.options.bucketName"/>
|
||||
<p class="comment">存储桶名称,类似于<code-label>example-12345678</code-label>。</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>所属区域代号 *</td>
|
||||
<td>
|
||||
<input type="text" name="tencentCOSRegion" maxlength="100" v-model="origin.oss.options.region"/>
|
||||
<p class="comment">COS服务所属区域代号,类似于<code-label>ap-beijing</code-label>。</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
{$ .ossForm}
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><more-options-indicator></more-options-indicator></td>
|
||||
|
||||
Reference in New Issue
Block a user