From 3e7fdfb6c8a50c59ac933f701526ad1815dded92 Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Tue, 9 Dec 2025 22:16:48 -0600 Subject: refactor codebase. Reorganize file structure. Replace webpack for vite. Setup setuptools for application. Move closer to distributable app --- settings.py | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 settings.py (limited to 'settings.py') diff --git a/settings.py b/settings.py deleted file mode 100644 index ce76e82..0000000 --- a/settings.py +++ /dev/null @@ -1,32 +0,0 @@ -from dataclasses import dataclass, asdict, field -import json - - -@dataclass -class Config: - # Immich server - immich_url: str = "" - immich_api_key: str = "" - # Display - image_duration: float = 10.0 - transition_duration: float = 0.5 - max_framerate: float = 30.0 - auto_transition: bool = True - display_size: str = "preview" # 'fullsize', 'preview', 'thumbnail' - # Cache - max_cache_assets: int = 100 - # Albums data - album_list: list[str] = field(default_factory=list) - - @classmethod - def load(cls, filepath): - with open(filepath, "r") as fp: - return cls(**json.load(fp)) - - def save(self, filepath): - with open(filepath, "w") as fp: - json.dump(asdict(self), fp, indent=2) - - def update(self, **config): - for key, value in config.items(): - setattr(self, key, value) -- cgit v1.2.3