From 2c861918a00a95dcbf3701a12c8258c72860c550 Mon Sep 17 00:00:00 2001 From: Love98 Date: Sat, 3 Aug 2024 18:06:52 +0800 Subject: [PATCH] update: remove enableWaf --- object/site.go | 1 - web/src/SiteEditPage.js | 10 ---------- web/src/SiteListPage.js | 17 ----------------- 3 files changed, 28 deletions(-) diff --git a/object/site.go b/object/site.go index 4362001..b1a74c7 100644 --- a/object/site.go +++ b/object/site.go @@ -47,7 +47,6 @@ type Site struct { Domain string `xorm:"varchar(100)" json:"domain"` OtherDomains []string `xorm:"varchar(500)" json:"otherDomains"` NeedRedirect bool `json:"needRedirect"` - EnableWaf bool `json:"enableWaf"` DisableVerbose bool `json:"disableVerbose"` Rules []string `xorm:"varchar(500)" json:"wafRuleIds"` Challenges []string `xorm:"mediumtext" json:"challenges"` diff --git a/web/src/SiteEditPage.js b/web/src/SiteEditPage.js index fa7a84e..5c9d6ce 100644 --- a/web/src/SiteEditPage.js +++ b/web/src/SiteEditPage.js @@ -169,16 +169,6 @@ class SiteEditPage extends React.Component { }} /> - - - {i18next.t("site:Enable WAF")}: - - - { - this.updateSiteField("enableWaf", checked); - }} /> - - {i18next.t("site:Disable verbose")}: diff --git a/web/src/SiteListPage.js b/web/src/SiteListPage.js index 252e327..73eb464 100644 --- a/web/src/SiteListPage.js +++ b/web/src/SiteListPage.js @@ -36,7 +36,6 @@ class SiteListPage extends BaseListPage { displayName: `New Site - ${randomName}`, domain: "door.casdoor.com", otherDomains: [], - enableWaf: false, needRedirect: false, challenges: [], host: "", @@ -180,22 +179,6 @@ class SiteListPage extends BaseListPage { }); }, }, - { - title: i18next.t("site:Enable WAF"), - dataIndex: "enableWaf", - key: "enableWaf", - width: "120px", - sorter: (a, b) => a.otherDomains.localeCompare(b.otherDomains), - render: (text, record, index) => { - return ( - - - {record.enableWaf ? "enabled" : "disabled"} - - - ); - }, - }, { title: i18next.t("site:Host"), dataIndex: "host",