设置页面

This commit is contained in:
Developer
2026-03-19 16:34:56 +08:00
parent 965a6b411f
commit 462a090599
12 changed files with 586 additions and 156 deletions

View File

@@ -15,3 +15,11 @@ export function proxyImageUrl(url: string): string {
// Native: force HTTPS so Release APK doesn't block cleartext HTTP
return url.replace(/^http:\/\//, 'https://');
}
export function coverImageUrl(url: string, quality: 'hd' | 'normal'): string {
const base = proxyImageUrl(url);
if (quality === 'normal' && base) {
return base.replace(/(@[\w]+)?$/, '@320w_180h_1c.webp');
}
return base;
}