@teenybase/pocket-ui
v0.0.4
Published
Pocket UI for teenybase admin. (forked from pocketbase)
Readme
Pocket UI for teenybase
Forked Superuser UI from pocketbase and modified for use in teenybase.
teenybase is in pre-alpha and not suitable for production use yet.
Usage
// Create a $Database
const db = new $Database(c, undefined, c.env.PRIMARY_DB, c.env.PRIMARY_R2)
// Get the base url
const baseUrl = 'https://cdn.jsdelivr.net/npm/@teenybase/pocket-ui@latest/dist/'
// Add the PocketUIExtension
db.extensions.push(new PocketUIExtension(db, baseUrl))The PocketUIExtension handles routes /api/v1/pocket/*.
Open the UI in the browser and use ADMIN_SERVICE_TOKEN for login as viewer/editor/superadmin role.
