优化OSS相关代码

This commit is contained in:
GoEdgeLab
2023-06-08 17:50:22 +08:00
parent 7e6e2b6889
commit 52113703cd
6 changed files with 6 additions and 93 deletions

View File

@@ -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) {

View File

@@ -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) {

View File

@@ -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) {

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>