Skip to content

Commit 74332e9

Browse files
skysliencesSky_slience
andauthored
feat(ui): add new UI configuration option to settings (#9233)
* feat(ui): add new UI configuration option to settings * fix(ui): disable new UI feature by default --------- Co-authored-by: Sky_slience <Skyslience@spdzy.com>
1 parent 540d6c7 commit 74332e9

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

internal/bootstrap/data/setting.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ func InitialSettings() []model.SettingItem {
103103
{Key: conf.AllowIndexed, Value: "false", Type: conf.TypeBool, Group: model.SITE},
104104
{Key: conf.AllowMounted, Value: "true", Type: conf.TypeBool, Group: model.SITE},
105105
{Key: conf.RobotsTxt, Value: "User-agent: *\nAllow: /", Type: conf.TypeText, Group: model.SITE},
106+
// newui settings
107+
{Key: conf.UseNewui, Value: "false", Type: conf.TypeBool, Group: model.SITE},
106108
// style settings
107109
{Key: conf.Logo, Value: "https://cdn.jsdelivr.net/gh/alist-org/logo@main/logo.svg", Type: conf.TypeText, Group: model.STYLE},
108110
{Key: conf.Favicon, Value: "https://cdn.jsdelivr.net/gh/alist-org/logo@main/logo.svg", Type: conf.TypeString, Group: model.STYLE},

internal/conf/const.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const (
1616
AllowIndexed = "allow_indexed"
1717
AllowMounted = "allow_mounted"
1818
RobotsTxt = "robots_txt"
19+
UseNewui = "use_newui"
1920

2021
Logo = "logo"
2122
Favicon = "favicon"

0 commit comments

Comments
 (0)