Files
EdgeAdmin/web/views/@default/clusters/cluster/settings/webp/index.html

53 lines
2.6 KiB
HTML
Raw Normal View History

2022-04-01 16:42:08 +08:00
{$layout}
2022-04-02 16:28:22 +08:00
{$template "../menu"}
{$template "/left_menu_with_menu"}
2022-04-01 16:42:08 +08:00
2022-04-02 16:28:22 +08:00
<div class="right-box with-menu">
2022-04-01 16:42:08 +08:00
<form class="ui form" method="post" data-tea-action="$" data-tea-success="success">
<csrf-token></csrf-token>
<input type="hidden" name="clusterId" :value="clusterId"/>
<table class="ui table definition selectable">
<tr>
2022-07-03 22:09:27 +08:00
<td class="title">启用WebP功能</td>
2022-04-01 16:42:08 +08:00
<td>
<checkbox name="isOn" v-model="webpPolicy.isOn"></checkbox>
2023-05-23 19:15:35 +08:00
<p class="comment">选中后表示当前集群下的网站可以使用WebP转换功能。</p>
2022-04-01 16:42:08 +08:00
</td>
</tr>
<tbody v-show="webpPolicy.isOn">
<tr>
<td>图片质量</td>
<td>
<div class="ui input right labeled">
<input type="text" name="quality" v-model="webpPolicy.quality" style="width: 5em" maxlength="4"/>
<span class="ui label">%</span>
</div>
<p class="comment">取值在0到100之间0表示默认数值越大生成的图像越清晰文件尺寸也会越大同时消耗的系统资源越多在低配置的边缘节点上建议不超过50%)。</p>
</td>
</tr>
2022-04-01 16:42:08 +08:00
<tr>
<td>需要满足缓存条件</td>
<td>
<checkbox name="requireCache" v-model="webpPolicy.requireCache"></checkbox>
<p class="comment">选中后表示图片URL需要满足缓存条件后才会转换防止实时转换消耗巨大的系统资源。</p>
</td>
</tr>
<tr>
<td>可转换的最小尺寸</td>
<td>
<size-capacity-box :v-name="'minLengthJSON'" :v-value="webpPolicy.minLength"></size-capacity-box>
<p class="comment">不低于此尺寸的图像文件的才会转换。</p>
</td>
</tr>
<tr>
<td>可转换的最大尺寸</td>
<td>
<size-capacity-box :v-name="'maxLengthJSON'" :v-value="webpPolicy.maxLength"></size-capacity-box>
<p class="comment">不高于此尺寸的图像文件的才会转换。</p>
</td>
</tr>
</tbody>
</table>
<submit-btn></submit-btn>
</form>
</div>