fix(setting): update preview url (#198)

This commit is contained in:
Hantong Chen
2025-06-19 15:05:29 +08:00
committed by GitHub
parent 70b937e031
commit 248c041711

View File

@ -125,12 +125,12 @@ func InitialSettings() []model.SettingItem {
"Google":"https://docs.google.com/gview?url=$e_url&embedded=true" "Google":"https://docs.google.com/gview?url=$e_url&embedded=true"
}, },
"pdf": { "pdf": {
"PDF.js":https://mozilla.github.io/pdf.js/web/viewer.html?url=$e_url" "PDF.js":"//res.oplist.org/pdf.js/web/viewer.html?url=$e_url"
}, },
// "epub": { "epub": {
// "EPUB.js":"https://alist-org.github.io/static/epub.js/viewer.html?url=$e_url" "EPUB.js":"//res.oplist.org/epub.js/viewer.html?url=$e_url"
// } }
}`, Type: conf.TypeText, Group: model.PREVIEW}, }`, Type: conf.TypeText, Group: model.PREVIEW},
// {Key: conf.OfficeViewers, Value: `{ // {Key: conf.OfficeViewers, Value: `{
// "Microsoft":"https://view.officeapps.live.com/op/view.aspx?src=$url", // "Microsoft":"https://view.officeapps.live.com/op/view.aspx?src=$url",
// "Google":"https://docs.google.com/gview?url=$url&embedded=true", // "Google":"https://docs.google.com/gview?url=$url&embedded=true",