admin.nomadro.com gets sidebar L1/L2 social ops (paginated lists + entity detail); API adds soft-delete archives/stats and shared nomadro_pb for social/coffee/notify/work. Co-authored-by: Cursor <cursoragent@cursor.com>
23 lines
623 B
Python
23 lines
623 B
Python
"""Shared PocketBase access for Nomadro FastAPI services (.com/US first)."""
|
|
from __future__ import annotations
|
|
|
|
from nomadro_pb.client import PocketBaseClient, PocketBaseError, get_pb, pb_quote
|
|
from nomadro_pb.config import DEFAULT_PB_URL, PB_ADMIN_EMAIL, PB_URL
|
|
from nomadro_pb.ensure import ensure_all_collections, ensure_once
|
|
|
|
# Back-compat alias — was wrongly pointing at hackrobot.cn
|
|
ONLINE_PB_URL = DEFAULT_PB_URL
|
|
|
|
__all__ = [
|
|
"DEFAULT_PB_URL",
|
|
"ONLINE_PB_URL",
|
|
"PB_ADMIN_EMAIL",
|
|
"PB_URL",
|
|
"PocketBaseClient",
|
|
"PocketBaseError",
|
|
"ensure_all_collections",
|
|
"ensure_once",
|
|
"get_pb",
|
|
"pb_quote",
|
|
]
|