mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 21:50:28 +08:00 
			
		
		
		
	去除开源版本中不必要的菜单
This commit is contained in:
		@@ -9,7 +9,6 @@ import (
 | 
			
		||||
	"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/clusters/cluster/node/settings/dns"
 | 
			
		||||
	"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/clusters/cluster/node/settings/ssh"
 | 
			
		||||
	"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/clusters/cluster/node/settings/system"
 | 
			
		||||
	"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/clusters/cluster/node/settings/thresholds"
 | 
			
		||||
	clusters "github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/clusters/clusterutils"
 | 
			
		||||
	"github.com/TeaOSLab/EdgeAdmin/internal/web/helpers"
 | 
			
		||||
	"github.com/iwind/TeaGo"
 | 
			
		||||
@@ -56,7 +55,6 @@ func init() {
 | 
			
		||||
			GetPost("/settings/system", new(system.IndexAction)).
 | 
			
		||||
			GetPost("/settings/ssh", new(ssh.IndexAction)).
 | 
			
		||||
			GetPost("/settings/ssh/test", new(ssh.TestAction)).
 | 
			
		||||
			GetPost("/settings/thresholds", new(thresholds.IndexAction)).
 | 
			
		||||
			GetPost("/settings/ddos-protection", new(ddosProtection.IndexAction)).
 | 
			
		||||
			Post("/settings/ddos-protection/status", new(ddosProtection.StatusAction)).
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -7,10 +7,8 @@ import (
 | 
			
		||||
	"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/clusters/cluster/settings/dns"
 | 
			
		||||
	firewallActions "github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/clusters/cluster/settings/firewall-actions"
 | 
			
		||||
	"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/clusters/cluster/settings/health"
 | 
			
		||||
	"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/clusters/cluster/settings/message"
 | 
			
		||||
	"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/clusters/cluster/settings/metrics"
 | 
			
		||||
	"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/clusters/cluster/settings/services"
 | 
			
		||||
	"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/clusters/cluster/settings/thresholds"
 | 
			
		||||
	"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/clusters/cluster/settings/toa"
 | 
			
		||||
	"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/clusters/cluster/settings/waf"
 | 
			
		||||
	"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/clusters/cluster/settings/webp"
 | 
			
		||||
@@ -42,12 +40,6 @@ func init() {
 | 
			
		||||
			GetPost("", new(dns.IndexAction)).
 | 
			
		||||
			Post("/randomName", new(dns.RandomNameAction)).
 | 
			
		||||
 | 
			
		||||
			// 消息
 | 
			
		||||
			Prefix("/clusters/cluster/settings/message").
 | 
			
		||||
			GetPost("", new(message.IndexAction)).
 | 
			
		||||
			Get("/selectReceiverPopup", new(message.SelectReceiverPopupAction)).
 | 
			
		||||
			Post("/selectedReceivers", new(message.SelectedReceiversAction)).
 | 
			
		||||
 | 
			
		||||
			// TOA
 | 
			
		||||
			Prefix("/clusters/cluster/settings/toa").
 | 
			
		||||
			GetPost("", new(toa.IndexAction)).
 | 
			
		||||
@@ -64,13 +56,6 @@ func init() {
 | 
			
		||||
			GetPost("/updatePopup", new(firewallActions.UpdatePopupAction)).
 | 
			
		||||
			Post("/delete", new(firewallActions.DeleteAction)).
 | 
			
		||||
 | 
			
		||||
			// 阈值
 | 
			
		||||
			Prefix("/clusters/cluster/settings/thresholds").
 | 
			
		||||
			Get("", new(thresholds.IndexAction)).
 | 
			
		||||
			GetPost("/createPopup", new(thresholds.CreatePopupAction)).
 | 
			
		||||
			GetPost("/updatePopup", new(thresholds.UpdatePopupAction)).
 | 
			
		||||
			Post("/delete", new(thresholds.DeleteAction)).
 | 
			
		||||
 | 
			
		||||
			// 指标
 | 
			
		||||
			Prefix("/clusters/cluster/settings/metrics").
 | 
			
		||||
			Get("", new(metrics.IndexAction)).
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user