mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-03 20:40:26 +08:00
特殊页面改为自定义页面
This commit is contained in:
@@ -108,7 +108,7 @@ func InitGroup(parent *actionutils.ParentAction, groupId int64, menuItem string)
|
||||
"isOn": configInfoResp.HasCompressionConfig,
|
||||
},
|
||||
{
|
||||
"name": "特殊页面",
|
||||
"name": "自定义页面",
|
||||
"url": urlPrefix + "/pages?groupId=" + types.String(groupId),
|
||||
"isActive": menuItem == "pages",
|
||||
"isOn": configInfoResp.HasPagesConfig,
|
||||
|
||||
@@ -132,7 +132,7 @@ func (this *LocationHelper) createMenus(serverIdString string, locationIdString
|
||||
"isOn": locationConfig != nil && locationConfig.Web != nil && locationConfig.Web.Compression != nil && locationConfig.Web.Compression.IsPrior,
|
||||
})
|
||||
menuItems = append(menuItems, maps.Map{
|
||||
"name": "特殊页面",
|
||||
"name": "自定义页面",
|
||||
"url": "/servers/server/settings/locations/pages?serverId=" + serverIdString + "&locationId=" + locationIdString,
|
||||
"isActive": secondMenuItem == "pages",
|
||||
"isOn": locationConfig != nil && locationConfig.Web != nil && (len(locationConfig.Web.Pages) > 0 || (locationConfig.Web.Shutdown != nil && locationConfig.Web.Shutdown.IsPrior)),
|
||||
|
||||
@@ -36,7 +36,7 @@ func (this *IndexAction) RunPost(params struct {
|
||||
ShutdownJSON string
|
||||
Must *actions.Must
|
||||
}) {
|
||||
defer this.CreateLogInfo("修改Web %d 的特殊页面设置", params.WebId)
|
||||
defer this.CreateLogInfo("修改Web %d 的自定义页面设置", params.WebId)
|
||||
|
||||
// TODO 检查配置
|
||||
|
||||
|
||||
@@ -80,7 +80,7 @@ func (this *CreatePopupAction) RunPost(params struct {
|
||||
this.Data["page"] = pageConfig
|
||||
|
||||
// 日志
|
||||
defer this.CreateLog(oplogs.LevelInfo, "创建特殊页面 %d", pageId)
|
||||
defer this.CreateLog(oplogs.LevelInfo, "创建自定义页面 %d", pageId)
|
||||
|
||||
this.Success()
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ func (this *UpdatePopupAction) RunPost(params struct {
|
||||
Must *actions.Must
|
||||
}) {
|
||||
// 日志
|
||||
defer this.CreateLog(oplogs.LevelInfo, "修改特殊页面 %d", params.PageId)
|
||||
defer this.CreateLog(oplogs.LevelInfo, "修改自定义页面 %d", params.PageId)
|
||||
|
||||
params.Must.
|
||||
Field("status", params.Status).
|
||||
|
||||
@@ -333,7 +333,7 @@ func (this *ServerHelper) createSettingsMenu(secondMenuItem string, serverIdStri
|
||||
"isOn": serverConfig.Web != nil && serverConfig.Web.Compression != nil && serverConfig.Web.Compression.IsOn,
|
||||
})
|
||||
menuItems = append(menuItems, maps.Map{
|
||||
"name": "特殊页面",
|
||||
"name": "自定义页面",
|
||||
"url": "/servers/server/settings/pages?serverId=" + serverIdString,
|
||||
"isActive": secondMenuItem == "pages",
|
||||
"isOn": serverConfig.Web != nil && (len(serverConfig.Web.Pages) > 0 || (serverConfig.Web.Shutdown != nil && serverConfig.Web.Shutdown.IsOn)),
|
||||
|
||||
Reference in New Issue
Block a user