2024-07-11 10:26:21 +00:00
|
|
|
from pathlib import Path
|
|
|
|
from pydantic import BaseModel
|
|
|
|
from nonebot import get_plugin_config
|
2024-08-22 14:50:18 +00:00
|
|
|
|
2024-07-11 10:26:21 +00:00
|
|
|
RES_PATH = Path(__file__).parent / "res"
|
2024-08-24 14:20:42 +00:00
|
|
|
LIST_TEMPLATE_NAME = "template.html"
|
|
|
|
DETAILS_TEMPLATE_NAME = "details.html"
|
2024-07-11 10:26:21 +00:00
|
|
|
BGIMAGE_PATH = RES_PATH / "bgimage"
|
|
|
|
|
2024-08-22 14:50:18 +00:00
|
|
|
|
2024-07-11 10:26:21 +00:00
|
|
|
class ConfigModel(BaseModel):
|
2024-07-11 11:00:25 +00:00
|
|
|
acgnshow_pagesize: int = 8
|
2024-08-24 09:44:52 +00:00
|
|
|
acgnshow_bgimage_path: str = BGIMAGE_PATH
|
2024-08-22 14:50:18 +00:00
|
|
|
|
|
|
|
config: ConfigModel = get_plugin_config(ConfigModel)
|