feat: flat design Sunset Glitch + download manager + settings + recommendations overhaul
- Sunset Glitch color palette applied to all templates - Font Awesome icons throughout UI - Download manager with parallel queue and progress tracking - Settings page with dynamic configuration - Recommendations router enhanced with scoring - Local vendor libs (Alpine.js, HTMX) for offline support - Auto test suite with screenshots - Series releases list component - New download model
This commit is contained in:
@@ -27,6 +27,13 @@ class AppSettingsBase(SQLModel):
|
||||
|
||||
# #12: Custom download directory
|
||||
download_dir: str = Field(default="downloads")
|
||||
|
||||
# #13: Content weight mode ("auto" = based on download habits, "manual" = user-defined)
|
||||
content_weight_mode: str = Field(default="auto", sa_column=Column(String))
|
||||
|
||||
# #14: Manual content weights (used when content_weight_mode = "manual")
|
||||
content_weight_anime: int = Field(default=2)
|
||||
content_weight_series: int = Field(default=1)
|
||||
|
||||
@property
|
||||
def disabled_providers(self) -> List[str]:
|
||||
@@ -64,6 +71,9 @@ class AppSettings(BaseModel):
|
||||
anime_enabled: bool = True
|
||||
series_enabled: bool = True
|
||||
download_dir: str = "downloads"
|
||||
content_weight_mode: str = "auto"
|
||||
content_weight_anime: int = 2
|
||||
content_weight_series: int = 1
|
||||
|
||||
class Config:
|
||||
from_attributes = True
|
||||
@@ -79,3 +89,6 @@ class AppSettingsUpdate(BaseModel):
|
||||
anime_enabled: Optional[bool] = None
|
||||
series_enabled: Optional[bool] = None
|
||||
download_dir: Optional[str] = None
|
||||
content_weight_mode: Optional[str] = None
|
||||
content_weight_anime: Optional[int] = None
|
||||
content_weight_series: Optional[int] = None
|
||||
|
||||
Reference in New Issue
Block a user