refactor: rename extension identity to spirekeeper
Fork of satmachineadmin's v2-bitspire line into its own repo. Renames
both identifiers so this extension is fully independent of the original
satmachineadmin install (which remains in service):
- extension id satmachineadmin -> spirekeeper
(router prefix, static path/static_url_for, module symbols, task
names, templates dir, config/manifest paths)
- database name satoshimachine -> spirekeeper
(Database(ext_spirekeeper), all schema-qualified table refs)
Also resets versioning to 0.1.0, sets the display name + manifest to
spirekeeper/aiolabs, and fixes the placeholder pyproject description.
Historical aiolabs/satmachineadmin#N issue references in comments are
left pointing at the original repo where those issues live.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
9c4d2c1324
commit
a059e3f596
22 changed files with 242 additions and 242 deletions
12
views.py
12
views.py
|
|
@ -10,16 +10,16 @@ from lnbits.core.models import User
|
|||
from lnbits.decorators import check_user_exists
|
||||
from lnbits.helpers import template_renderer
|
||||
|
||||
satmachineadmin_generic_router = APIRouter()
|
||||
spirekeeper_generic_router = APIRouter()
|
||||
|
||||
|
||||
def satmachineadmin_renderer():
|
||||
return template_renderer(["satmachineadmin/templates"])
|
||||
def spirekeeper_renderer():
|
||||
return template_renderer(["spirekeeper/templates"])
|
||||
|
||||
|
||||
@satmachineadmin_generic_router.get("/", response_class=HTMLResponse)
|
||||
@spirekeeper_generic_router.get("/", response_class=HTMLResponse)
|
||||
async def index(req: Request, user: User = Depends(check_user_exists)):
|
||||
return satmachineadmin_renderer().TemplateResponse(
|
||||
"satmachineadmin/index.html",
|
||||
return spirekeeper_renderer().TemplateResponse(
|
||||
"spirekeeper/index.html",
|
||||
{"request": req, "user": user.json()},
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue