Skip to content

Commit

Permalink
trim
Browse files Browse the repository at this point in the history
  • Loading branch information
FanZeros committed May 20, 2022
1 parent 2e3959b commit 4c16f62
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 102 deletions.
76 changes: 0 additions & 76 deletions .github/pull_request_template.md

This file was deleted.

22 changes: 11 additions & 11 deletions src/views/system/optiontabs/AttachmentTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
</a-select>
</a-form-model-item>
<a-form-model-item label="绑定域名:">
<a-input v-model="options.oss_upyun_domain" placeholder="无需再加上 http:// 或者 https://" />
<a-input v-model.trim="options.oss_upyun_domain" placeholder="无需再加上 http:// 或者 https://" />
</a-form-model-item>
<a-form-model-item label="空间名称:">
<a-input v-model="options.oss_upyun_bucket" />
Expand All @@ -52,7 +52,7 @@
<a-input-password v-model="options.oss_upyun_password" autocomplete="new-password" />
</a-form-model-item>
<a-form-model-item label="文件目录:">
<a-input v-model="options.oss_upyun_source" />
<a-input v-model.trim="options.oss_upyun_source" />
</a-form-model-item>
<a-form-model-item label="图片处理策略:">
<a-input v-model="options.oss_upyun_style_rule" placeholder="间隔标识符+图片处理版本名称" />
Expand All @@ -72,7 +72,7 @@
</a-select>
</a-form-model-item>
<a-form-model-item label="绑定域名:">
<a-input v-model="options.oss_qiniu_domain" placeholder="无需再加上 http:// 或者 https://" />
<a-input v-model.trim="options.oss_qiniu_domain" placeholder="无需再加上 http:// 或者 https://" />
</a-form-model-item>
<a-form-model-item label="区域:">
<a-auto-complete v-model="options.oss_qiniu_zone" :dataSource="qiniuOssZones" allowClear />
Expand Down Expand Up @@ -107,7 +107,7 @@
</a-select>
</a-form-model-item>
<a-form-model-item label="绑定域名:">
<a-input v-model="options.oss_ali_domain" placeholder="如不填写,路径根域名将为 Bucket + EndPoint" />
<a-input v-model.trim="options.oss_ali_domain" placeholder="如不填写,路径根域名将为 Bucket + EndPoint" />
</a-form-model-item>
<a-form-model-item label="Bucket:">
<a-input v-model="options.oss_ali_bucket_name" placeholder="存储空间名称" />
Expand All @@ -122,7 +122,7 @@
<a-input-password v-model="options.oss_ali_access_secret" autocomplete="new-password" />
</a-form-model-item>
<a-form-model-item label="文件目录:">
<a-input v-model="options.oss_ali_source" placeholder="不填写则上传到根目录" />
<a-input v-model.trim="options.oss_ali_source" placeholder="不填写则上传到根目录" />
</a-form-model-item>
<a-form-model-item label="图片处理策略:">
<a-input v-model="options.oss_ali_style_rule" placeholder="请到阿里云控制台的图片处理获取" />
Expand All @@ -142,7 +142,7 @@
</a-select>
</a-form-model-item>
<a-form-model-item label="绑定域名:">
<a-input v-model="options.bos_baidu_domain" placeholder="如不填写,路径根域名将为 Bucket + EndPoint" />
<a-input v-model.trim="options.bos_baidu_domain" placeholder="如不填写,路径根域名将为 Bucket + EndPoint" />
</a-form-model-item>
<a-form-model-item label="Bucket:">
<a-input v-model="options.bos_baidu_bucket_name" placeholder="存储空间名称" />
Expand Down Expand Up @@ -174,7 +174,7 @@
</a-select>
</a-form-model-item>
<a-form-model-item label="绑定域名:">
<a-input v-model="options.cos_tencent_domain" placeholder="如不填写,路径根域名将为 Bucket + 区域地址" />
<a-input v-model.trim="options.cos_tencent_domain" placeholder="如不填写,路径根域名将为 Bucket + 区域地址" />
</a-form-model-item>
<a-form-model-item label="Bucket:">
<a-input v-model="options.cos_tencent_bucket_name" placeholder="存储桶名称" />
Expand All @@ -189,7 +189,7 @@
<a-input-password v-model="options.cos_tencent_secret_key" autocomplete="new-password" />
</a-form-model-item>
<a-form-model-item label="文件目录:">
<a-input v-model="options.cos_tencent_source" placeholder="不填写则上传到根目录" />
<a-input v-model.trim="options.cos_tencent_source" placeholder="不填写则上传到根目录" />
</a-form-model-item>
<a-form-model-item label="图片处理策略:">
<a-input v-model="options.cos_tencent_style_rule" placeholder="请到腾讯云控制台的图片处理获取" />
Expand All @@ -209,7 +209,7 @@
</a-select>
</a-form-model-item>
<a-form-model-item label="绑定域名:">
<a-input v-model="options.obs_huawei_domain" placeholder="如不填写,路径根域名将为 Bucket + EndPoint" />
<a-input v-model.trim="options.obs_huawei_domain" placeholder="如不填写,路径根域名将为 Bucket + EndPoint" />
</a-form-model-item>
<a-form-model-item label="Bucket(桶名称):">
<a-input v-model="options.obs_huawei_bucket_name" placeholder="桶名称" />
Expand All @@ -224,7 +224,7 @@
<a-input-password v-model="options.obs_huawei_access_secret" autocomplete="new-password" />
</a-form-model-item>
<a-form-model-item label="文件目录:">
<a-input v-model="options.obs_huawei_source" placeholder="不填写则上传到根目录" />
<a-input v-model.trim="options.obs_huawei_source" placeholder="不填写则上传到根目录" />
</a-form-model-item>
<a-form-model-item label="图片处理策略:">
<a-input v-model="options.obs_huawei_style_rule" placeholder="请到华为云控制台的图片处理创建" />
Expand Down Expand Up @@ -253,7 +253,7 @@
<a-input-password v-model="options.minio_access_secret" autocomplete="new-password" />
</a-form-model-item>
<a-form-model-item label="文件目录:">
<a-input v-model="options.minio_source" placeholder="不填写则上传到根目录" />
<a-input v-model.trim="options.minio_source" placeholder="不填写则上传到根目录" />
</a-form-model-item>
</div>
<a-form-model-item>
Expand Down
6 changes: 3 additions & 3 deletions src/views/system/optiontabs/GeneralTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<a-input v-model="options.blog_title" />
</a-form-model-item>
<a-form-model-item label="博客地址:" prop="blog_url">
<a-input v-model="options.blog_url" placeholder="如:https://halo.run" />
<a-input v-model.trim="options.blog_url" placeholder="如:https://halo.run" />
</a-form-model-item>
<a-form-model-item label="Logo:" prop="blog_logo">
<AttachmentInput v-model="options.blog_logo" title="选择 Logo" />
<AttachmentInput v-model.trim="options.blog_logo" title="选择 Logo" />
</a-form-model-item>
<a-form-model-item label="Favicon:" prop="blog_favicon">
<AttachmentInput v-model="options.blog_favicon" title="选择 Favicon" />
<AttachmentInput v-model.trim="options.blog_favicon" title="选择 Favicon" />
</a-form-model-item>
<a-form-model-item label="页脚信息:" prop="blog_footer_info">
<a-input
Expand Down
16 changes: 8 additions & 8 deletions src/views/system/optiontabs/PermalinkTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,19 @@
<template slot="help">
<span>{{ options.blog_url }}/{{ options.archives_prefix }}{{ options.path_suffix }}</span>
</template>
<a-input v-model="options.archives_prefix" />
<a-input v-model.trim="options.archives_prefix" />
</a-form-model-item>
<a-form-model-item label="分类前缀:">
<template slot="help">
<span>{{ options.blog_url }}/{{ options.categories_prefix }}/{slug}{{ options.path_suffix }}</span>
</template>
<a-input v-model="options.categories_prefix" />
<a-input v-model.trim="options.categories_prefix" />
</a-form-model-item>
<a-form-model-item label="标签前缀:">
<template slot="help">
<span>{{ options.blog_url }}/{{ options.tags_prefix }}/{slug}{{ options.path_suffix }}</span>
</template>
<a-input v-model="options.tags_prefix" />
<a-input v-model.trim="options.tags_prefix" />
</a-form-model-item>
<a-form-model-item label="自定义页面固定链接类型:">
<template slot="help">
Expand All @@ -63,31 +63,31 @@
<template slot="help">
<span>{{ options.blog_url }}/{{ options.sheet_prefix }}/{slug}{{ options.path_suffix }}</span>
</template>
<a-input v-model="options.sheet_prefix" />
<a-input v-model.trim="options.sheet_prefix" />
</a-form-model-item>
<a-form-model-item label="友情链接页面前缀:">
<template slot="help">
<span>{{ options.blog_url }}/{{ options.links_prefix }}{{ options.path_suffix }}</span>
</template>
<a-input v-model="options.links_prefix" />
<a-input v-model.trim="options.links_prefix" />
</a-form-model-item>
<a-form-model-item label="图库页面前缀:">
<template slot="help">
<span>{{ options.blog_url }}/{{ options.photos_prefix }}{{ options.path_suffix }}</span>
</template>
<a-input v-model="options.photos_prefix" />
<a-input v-model.trim="options.photos_prefix" />
</a-form-model-item>
<a-form-model-item label="日志页面前缀:">
<template slot="help">
<span>{{ options.blog_url }}/{{ options.journals_prefix }}{{ options.path_suffix }}</span>
</template>
<a-input v-model="options.journals_prefix" />
<a-input v-model.trim="options.journals_prefix" />
</a-form-model-item>
<a-form-model-item label="路径后缀:">
<template slot="help">
<span>* 格式为:<code>.{suffix}</code>,仅对内建路径有效</span>
</template>
<a-input v-model="options.path_suffix" />
<a-input v-model.trim="options.path_suffix" />
</a-form-model-item>
<a-form-model-item>
<ReactiveButton
Expand Down
8 changes: 4 additions & 4 deletions src/views/system/optiontabs/SmtpTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
<a-switch v-model="options.email_enabled" />
</a-form-model-item>
<a-form-model-item label="SMTP 地址:" prop="email_host">
<a-input v-model="options.email_host" />
<a-input v-model.trim="options.email_host" />
</a-form-model-item>
<a-form-model-item label="发送协议:" prop="email_protocol">
<a-input v-model="options.email_protocol" />
<a-input v-model.trim="options.email_protocol" />
</a-form-model-item>
<a-form-model-item label="启用 STARTTLS:">
<a-switch v-model="options.email_starttls" />
</a-form-model-item>
<a-form-model-item label="SSL 端口:" prop="email_ssl_port">
<a-input v-model="options.email_ssl_port" />
<a-input v-model.number="options.email_ssl_port" />
</a-form-model-item>
<a-form-model-item label="邮箱账号:" prop="email_username">
<a-input v-model="options.email_username" />
Expand Down Expand Up @@ -54,7 +54,7 @@
layout="vertical"
>
<a-form-model-item label="收件人地址:" prop="to">
<a-input v-model="mailParam.to" />
<a-input v-model.trim="mailParam.to" />
</a-form-model-item>
<a-form-model-item label="主题:" prop="subject">
<a-input v-model="mailParam.subject" />
Expand Down

0 comments on commit 4c16f62

Please sign in to comment.