From bacb94abe6d2733bdea3527e2b159e7c7eaab2ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Mon, 11 Dec 2023 11:07:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96WebP=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E5=92=8C=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/actions/default/clusters/cluster/settings/webp/index.go | 2 +- .../web/actions/default/clusters/clusterutils/cluster_helper.go | 2 +- web/views/@default/clusters/cluster/settings/webp/index.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/web/actions/default/clusters/cluster/settings/webp/index.go b/internal/web/actions/default/clusters/cluster/settings/webp/index.go index 6d5cfb3f..cd2e7c93 100644 --- a/internal/web/actions/default/clusters/cluster/settings/webp/index.go +++ b/internal/web/actions/default/clusters/cluster/settings/webp/index.go @@ -100,7 +100,7 @@ func (this *IndexAction) RunPost(params struct { _, err = this.RPC().NodeClusterRPC().UpdateNodeClusterWebPPolicy(this.AdminContext(), &pb.UpdateNodeClusterWebPPolicyRequest{ NodeClusterId: params.ClusterId, - WebpPolicyJSON: configJSON, + WebPPolicyJSON: configJSON, }) if err != nil { diff --git a/internal/web/actions/default/clusters/clusterutils/cluster_helper.go b/internal/web/actions/default/clusters/clusterutils/cluster_helper.go index 171bee9f..49238fcf 100644 --- a/internal/web/actions/default/clusters/clusterutils/cluster_helper.go +++ b/internal/web/actions/default/clusters/clusterutils/cluster_helper.go @@ -180,7 +180,7 @@ func (this *ClusterHelper) createSettingMenu(cluster *pb.NodeCluster, info *pb.F "name": this.Lang(actionPtr, codes.NodeClusterMenu_SettingWebP), "url": "/clusters/cluster/settings/webp?clusterId=" + clusterId, "isActive": selectedItem == "webp", - "isOn": info != nil && info.WebpIsOn, + "isOn": info != nil && info.WebPIsOn, }) items = this.filterMenuItems1(items, info, clusterId, selectedItem, actionPtr) diff --git a/web/views/@default/clusters/cluster/settings/webp/index.html b/web/views/@default/clusters/cluster/settings/webp/index.html index d0402ff6..dbe8b415 100644 --- a/web/views/@default/clusters/cluster/settings/webp/index.html +++ b/web/views/@default/clusters/cluster/settings/webp/index.html @@ -22,7 +22,7 @@ % -

取值在0到100之间,0表示默认;数值越大生成的图像越清晰,文件尺寸也会越大,同时消耗的系统资源越多(在低配置的边缘节点上建议不超过50%)。

+

取值在0到100之间,0表示自动调节;数值越大生成的图像越清晰,文件尺寸也会越大,同时消耗的系统资源越多(在低配置的边缘节点上建议不超过50%)。