Skip to content

Commit 1db7a94

Browse files
committed
feat(settings): add preview_settings for per-extension preview management
Adds a new admin setting `preview_settings` (text/JSON, default `{}`) in the PREVIEW group. It is the per-extension override layer (order + disabled IDs) consumed by the new admin UI in alist-web. The setting is orthogonal to iframe_previews / external_previews — no migration code, no shadow writes. Backup/restore works across version boundaries because old clients simply ignore the unknown key. Companion frontend PR: AlistGo/alist-web#306 Closes #9542
1 parent f4445c5 commit 1db7a94

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎internal/bootstrap/data/setting.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ func InitialSettings() []model.SettingItem {
137137
"EPUB.js":"https://alist-org.github.io/static/epub.js/viewer.html?url=$e_url"
138138
}
139139
}`, Type: conf.TypeText, Group: model.PREVIEW},
140+
{Key: "preview_settings", Value: `{}`, Type: conf.TypeText, Group: model.PREVIEW},
140141
// {Key: conf.OfficeViewers, Value: `{
141142
// "Microsoft":"https://view.officeapps.live.com/op/view.aspx?src=$url",
142143
// "Google":"https://docs.google.com/gview?url=$url&embedded=true",

0 commit comments

Comments
 (0)