Add admin-frontend and user-frontend standalone projects, certification/invoice/discovery features, fix auth header and theme consistency

This commit is contained in:
TradeMate Dev
2026-05-22 18:35:30 +08:00
parent 18c6cf5406
commit 52dba37f22
79 changed files with 10333 additions and 248 deletions
+9 -5
View File
@@ -1,4 +1,4 @@
from pydantic import BaseSettings
from pydantic_settings import BaseSettings
from typing import Optional
from pathlib import Path
@@ -8,10 +8,11 @@ ENV_FILE = PROJECT_ROOT / ".env"
class Settings(BaseSettings):
class Config:
env_file = str(ENV_FILE)
env_file_encoding = "utf-8"
extra = "ignore"
model_config = {
"env_file": str(ENV_FILE),
"env_file_encoding": "utf-8",
"extra": "ignore",
}
APP_NAME: str = "TradeMate"
@@ -71,6 +72,9 @@ class Settings(BaseSettings):
EXCHANGE_RATE_API_KEY: Optional[str] = None
GOOGLE_API_KEY: Optional[str] = None
GOOGLE_CSE_ID: Optional[str] = None
UPLOAD_DIR: str = "./uploads"
MAX_UPLOAD_SIZE: int = 10 * 1024 * 1024