[{"data":1,"prerenderedAt":2816},["ShallowReactive",2],{"navigation_docs":3,"-modules-communication-short-links":732,"-modules-communication-short-links-surround":2811},[4,54,159,535,608,651],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":53},"Get Started","i-lucide-rocket","\u002Fget-started","1.get-started",[10,15,20,24,29,34,39,44,48],{"title":11,"path":12,"stem":13,"icon":14},"Introduction","\u002Fget-started\u002Fintroduction","1.get-started\u002F1.introduction","i-lucide-house",{"title":16,"path":17,"stem":18,"icon":19},"Installation","\u002Fget-started\u002Finstallation","1.get-started\u002F2.installation","i-lucide-download",{"title":21,"path":22,"stem":23},"Project Structure","\u002Fget-started\u002Fproject-structure","1.get-started\u002F3.project-structure",{"title":25,"path":26,"stem":27,"icon":28},"Configuration","\u002Fget-started\u002Fconfiguration","1.get-started\u002F4.configuration","i-lucide-settings",{"title":30,"path":31,"stem":32,"icon":33},"Authentication","\u002Fget-started\u002Fauthentication","1.get-started\u002F5.authentication","i-lucide-lock",{"title":35,"path":36,"stem":37,"icon":38},"Adding modules","\u002Fget-started\u002Fadding-modules","1.get-started\u002F6.adding-modules","i-lucide-puzzle",{"title":40,"path":41,"stem":42,"icon":43},"Database","\u002Fget-started\u002Fdatabase","1.get-started\u002F7.database","i-lucide-database",{"title":45,"path":46,"stem":47,"icon":6},"Deployment","\u002Fget-started\u002Fdeployment","1.get-started\u002F8.deployment",{"title":49,"path":50,"stem":51,"icon":52},"Upgrading","\u002Fget-started\u002Fupgrading","1.get-started\u002F9.upgrading","i-lucide-circle-arrow-up",false,{"title":55,"icon":56,"path":57,"stem":58,"children":59,"page":53},"Guide","i-lucide-book-open","\u002Fguide","2.guide",[60,94,119,129],{"title":61,"icon":53,"path":62,"stem":63,"children":64,"page":53},"Concepts","\u002Fguide\u002Fconcepts","2.guide\u002F1.concepts",[65,70,75,80,84,89],{"title":66,"path":67,"stem":68,"icon":69},"Architecture","\u002Fguide\u002Fconcepts\u002Farchitecture","2.guide\u002F1.concepts\u002F1.architecture","i-lucide-blocks",{"title":71,"path":72,"stem":73,"icon":74},"Access control","\u002Fguide\u002Fconcepts\u002Fauth-and-scopes","2.guide\u002F1.concepts\u002F2.auth-and-scopes","i-lucide-shield-check",{"title":76,"path":77,"stem":78,"icon":79},"Extension points","\u002Fguide\u002Fconcepts\u002Fextension-points","2.guide\u002F1.concepts\u002F3.extension-points","i-lucide-plug",{"title":81,"path":82,"stem":83,"icon":43},"Database extensions","\u002Fguide\u002Fconcepts\u002Fdatabase-extensions","2.guide\u002F1.concepts\u002F4.database-extensions",{"title":85,"path":86,"stem":87,"icon":88},"Identity","\u002Fguide\u002Fconcepts\u002Fidentity","2.guide\u002F1.concepts\u002F5.identity","i-lucide-fingerprint",{"title":90,"path":91,"stem":92,"icon":93},"Glossary","\u002Fguide\u002Fconcepts\u002Fglossary","2.guide\u002F1.concepts\u002F6.glossary","i-lucide-book-a",{"title":95,"icon":53,"path":96,"stem":97,"children":98,"page":53},"UX patterns","\u002Fguide\u002Fux-patterns","2.guide\u002F2.ux-patterns",[99,104,109,114],{"title":100,"path":101,"stem":102,"icon":103},"Layouts and navigation","\u002Fguide\u002Fux-patterns\u002Flayouts-and-navigation","2.guide\u002F2.ux-patterns\u002F1.layouts-and-navigation","i-lucide-layout-template",{"title":105,"path":106,"stem":107,"icon":108},"Pages","\u002Fguide\u002Fux-patterns\u002Fpages","2.guide\u002F2.ux-patterns\u002F2.pages","i-lucide-table",{"title":110,"path":111,"stem":112,"icon":113},"Forms and actions","\u002Fguide\u002Fux-patterns\u002Fforms-and-actions","2.guide\u002F2.ux-patterns\u002F3.forms-and-actions","i-lucide-square-pen",{"title":115,"path":116,"stem":117,"icon":118},"Text and formatting","\u002Fguide\u002Fux-patterns\u002Ftext-and-formatting","2.guide\u002F2.ux-patterns\u002F4.text-and-formatting","i-lucide-type",{"title":120,"icon":53,"path":121,"stem":122,"children":123,"page":53},"Best practices","\u002Fguide\u002Fbest-practices","2.guide\u002F3.best-practices",[124],{"title":125,"path":126,"stem":127,"icon":128},"HTTP routes","\u002Fguide\u002Fbest-practices\u002Fhttp-routes","2.guide\u002F3.best-practices\u002F1.http-routes","i-lucide-route",{"title":130,"icon":53,"path":131,"stem":132,"children":133,"page":53},"Going further","\u002Fguide\u002Fgoing-further","2.guide\u002F4.going-further",[134,139,144,149,154],{"title":135,"path":136,"stem":137,"icon":138},"Use your own OAuth server","\u002Fguide\u002Fgoing-further\u002Fown-oauth-server","2.guide\u002F4.going-further\u002F1.own-oauth-server","i-lucide-key-round",{"title":140,"path":141,"stem":142,"icon":143},"Create an OAuth application","\u002Fguide\u002Fgoing-further\u002Foauth-application","2.guide\u002F4.going-further\u002F2.oauth-application","i-lucide-app-window",{"title":145,"path":146,"stem":147,"icon":148},"Signing keys","\u002Fguide\u002Fgoing-further\u002Fsigning-keys","2.guide\u002F4.going-further\u002F3.signing-keys","i-lucide-key-square",{"title":150,"path":151,"stem":152,"icon":153},"Stripe setup","\u002Fguide\u002Fgoing-further\u002Fstripe-setup","2.guide\u002F4.going-further\u002F4.stripe-setup","i-lucide-credit-card",{"title":155,"path":156,"stem":157,"icon":158},"Migrate to the permission model","\u002Fguide\u002Fgoing-further\u002Fmigrate-access-control","2.guide\u002F4.going-further\u002F5.migrate-access-control","i-lucide-arrow-right-left",{"title":160,"icon":161,"path":162,"stem":163,"children":164},"Modules","i-lucide-boxes","\u002Fmodules","3.modules",[165,167,252,261,290,303,350,396,473,518],{"title":160,"path":162,"stem":166},"3.modules\u002Findex",{"title":85,"icon":53,"path":168,"stem":169,"children":170,"page":53},"\u002Fmodules\u002Fidentity","3.modules\u002F1.identity",[171,198,202,206,228,232,248],{"title":172,"path":173,"stem":174,"children":175},"Auth","\u002Fmodules\u002Fidentity\u002Fauth","3.modules\u002F1.identity\u002F1.auth\u002Findex",[176,178,182,186,190,194],{"title":177,"path":173,"stem":174},"Overview",{"title":179,"path":180,"stem":181},"Server API","\u002Fmodules\u002Fidentity\u002Fauth\u002Fserver","3.modules\u002F1.identity\u002F1.auth\u002F2.server",{"title":183,"path":184,"stem":185},"Reference","\u002Fmodules\u002Fidentity\u002Fauth\u002Freference","3.modules\u002F1.identity\u002F1.auth\u002F3.reference",{"title":187,"path":188,"stem":189},"Client mode","\u002Fmodules\u002Fidentity\u002Fauth\u002Fclient-mode","3.modules\u002F1.identity\u002F1.auth\u002F4.client-mode",{"title":191,"path":192,"stem":193},"OAuth providers","\u002Fmodules\u002Fidentity\u002Fauth\u002Foauth-providers","3.modules\u002F1.identity\u002F1.auth\u002F5.oauth-providers",{"title":195,"path":196,"stem":197},"Resource mode","\u002Fmodules\u002Fidentity\u002Fauth\u002Fresource-mode","3.modules\u002F1.identity\u002F1.auth\u002F6.resource-mode",{"title":199,"path":200,"stem":201},"Users","\u002Fmodules\u002Fidentity\u002Fusers","3.modules\u002F1.identity\u002F2.users",{"title":203,"path":204,"stem":205},"Account","\u002Fmodules\u002Fidentity\u002Faccount","3.modules\u002F1.identity\u002F3.account",{"title":207,"path":208,"stem":209,"children":210},"Authorization","\u002Fmodules\u002Fidentity\u002Fauthorization","3.modules\u002F1.identity\u002F4.authorization\u002Findex",[211,212,216,220,224],{"title":177,"path":208,"stem":209},{"title":213,"path":214,"stem":215},"Roles and requirements","\u002Fmodules\u002Fidentity\u002Fauthorization\u002Froles-and-requirements","3.modules\u002F1.identity\u002F4.authorization\u002F2.roles-and-requirements",{"title":217,"path":218,"stem":219},"Policies","\u002Fmodules\u002Fidentity\u002Fauthorization\u002Fpolicies","3.modules\u002F1.identity\u002F4.authorization\u002F3.policies",{"title":221,"path":222,"stem":223},"Client","\u002Fmodules\u002Fidentity\u002Fauthorization\u002Fclient","3.modules\u002F1.identity\u002F4.authorization\u002F4.client",{"title":225,"path":226,"stem":227},"Admin","\u002Fmodules\u002Fidentity\u002Fauthorization\u002Fadmin","3.modules\u002F1.identity\u002F4.authorization\u002F5.admin",{"title":229,"path":230,"stem":231},"Preferences","\u002Fmodules\u002Fidentity\u002Fpreferences","3.modules\u002F1.identity\u002F5.preferences",{"title":233,"path":234,"stem":235,"children":236},"OAuth Server","\u002Fmodules\u002Fidentity\u002Foauth-server","3.modules\u002F1.identity\u002F6.oauth-server\u002Findex",[237,238,241,245],{"title":177,"path":234,"stem":235},{"title":179,"path":239,"stem":240},"\u002Fmodules\u002Fidentity\u002Foauth-server\u002Fserver","3.modules\u002F1.identity\u002F6.oauth-server\u002F2.server",{"title":242,"path":243,"stem":244},"Hooks","\u002Fmodules\u002Fidentity\u002Foauth-server\u002Fhooks","3.modules\u002F1.identity\u002F6.oauth-server\u002F3.hooks",{"title":183,"path":246,"stem":247},"\u002Fmodules\u002Fidentity\u002Foauth-server\u002Froutes-and-clients","3.modules\u002F1.identity\u002F6.oauth-server\u002F4.routes-and-clients",{"title":249,"path":250,"stem":251},"OAuth Resource","\u002Fmodules\u002Fidentity\u002Foauth-resource","3.modules\u002F1.identity\u002F8.oauth-resource",{"title":253,"icon":53,"path":254,"stem":255,"children":256,"page":53},"Organisation","\u002Fmodules\u002Forganisation","3.modules\u002F2.organisation",[257],{"title":258,"path":259,"stem":260},"Teams","\u002Fmodules\u002Forganisation\u002Fteams","3.modules\u002F2.organisation\u002F1.teams",{"title":262,"icon":53,"path":263,"stem":264,"children":265,"page":53},"Commerce","\u002Fmodules\u002Fcommerce","3.modules\u002F3.commerce",[266,270,274],{"title":267,"path":268,"stem":269},"Stripe","\u002Fmodules\u002Fcommerce\u002Fstripe","3.modules\u002F3.commerce\u002F1.stripe",{"title":271,"path":272,"stem":273},"Payments","\u002Fmodules\u002Fcommerce\u002Fpayments","3.modules\u002F3.commerce\u002F2.payments",{"title":275,"path":276,"stem":277,"children":278},"Subscriptions","\u002Fmodules\u002Fcommerce\u002Fsubscriptions","3.modules\u002F3.commerce\u002F3.subscriptions\u002Findex",[279,280,283,287],{"title":177,"path":276,"stem":277},{"title":179,"path":281,"stem":282},"\u002Fmodules\u002Fcommerce\u002Fsubscriptions\u002Fserver","3.modules\u002F3.commerce\u002F3.subscriptions\u002F2.server",{"title":284,"path":285,"stem":286},"App","\u002Fmodules\u002Fcommerce\u002Fsubscriptions\u002Fapp","3.modules\u002F3.commerce\u002F3.subscriptions\u002F3.app",{"title":183,"path":288,"stem":289},"\u002Fmodules\u002Fcommerce\u002Fsubscriptions\u002Freference","3.modules\u002F3.commerce\u002F3.subscriptions\u002F4.reference",{"title":291,"icon":53,"path":292,"stem":293,"children":294,"page":53},"Content","\u002Fmodules\u002Fcontent","3.modules\u002F4.content",[295,299],{"title":296,"path":297,"stem":298},"Help center","\u002Fmodules\u002Fcontent\u002Fhelp-center","3.modules\u002F4.content\u002F2.help-center",{"title":300,"path":301,"stem":302},"Documents","\u002Fmodules\u002Fcontent\u002Fdocuments","3.modules\u002F4.content\u002F3.documents",{"title":304,"icon":53,"path":305,"stem":306,"children":307,"page":53},"Features","\u002Fmodules\u002Ffeatures","3.modules\u002F5.features",[308,323,342,346],{"title":309,"path":310,"stem":311,"children":312},"Events","\u002Fmodules\u002Ffeatures\u002Fevents","3.modules\u002F5.features\u002F1.events\u002Findex",[313,314,317,320],{"title":177,"path":310,"stem":311},{"title":179,"path":315,"stem":316},"\u002Fmodules\u002Ffeatures\u002Fevents\u002Fserver","3.modules\u002F5.features\u002F1.events\u002F2.server",{"title":284,"path":318,"stem":319},"\u002Fmodules\u002Ffeatures\u002Fevents\u002Fapp","3.modules\u002F5.features\u002F1.events\u002F3.app",{"title":183,"path":321,"stem":322},"\u002Fmodules\u002Ffeatures\u002Fevents\u002Freference","3.modules\u002F5.features\u002F1.events\u002F4.reference",{"title":324,"path":325,"stem":326,"children":327},"Forms","\u002Fmodules\u002Ffeatures\u002Fforms","3.modules\u002F5.features\u002F2.forms\u002Findex",[328,329,333,336,339],{"title":177,"path":325,"stem":326},{"title":330,"path":331,"stem":332},"Definition","\u002Fmodules\u002Ffeatures\u002Fforms\u002Fdefinition","3.modules\u002F5.features\u002F2.forms\u002F2.definition",{"title":179,"path":334,"stem":335},"\u002Fmodules\u002Ffeatures\u002Fforms\u002Fserver","3.modules\u002F5.features\u002F2.forms\u002F3.server",{"title":284,"path":337,"stem":338},"\u002Fmodules\u002Ffeatures\u002Fforms\u002Fapp","3.modules\u002F5.features\u002F2.forms\u002F4.app",{"title":183,"path":340,"stem":341},"\u002Fmodules\u002Ffeatures\u002Fforms\u002Freference","3.modules\u002F5.features\u002F2.forms\u002F5.reference",{"title":343,"path":344,"stem":345},"Cookie Consent","\u002Fmodules\u002Ffeatures\u002Fcookie-consent","3.modules\u002F5.features\u002F3.cookie-consent",{"title":347,"path":348,"stem":349},"MCP","\u002Fmodules\u002Ffeatures\u002Fmcp","3.modules\u002F5.features\u002F4.mcp",{"title":351,"icon":53,"path":352,"stem":353,"children":354,"page":53},"Communication","\u002Fmodules\u002Fcommunication","3.modules\u002F6.communication",[355,359,376,380,384,388,392],{"title":356,"path":357,"stem":358},"Notify","\u002Fmodules\u002Fcommunication\u002Fnotify","3.modules\u002F6.communication\u002F1.notify",{"title":360,"path":361,"stem":362,"children":363},"Email Templates","\u002Fmodules\u002Fcommunication\u002Femail-templates","3.modules\u002F6.communication\u002F2.email-templates\u002Findex",[364,365,369,372],{"title":177,"path":361,"stem":362},{"title":366,"path":367,"stem":368},"Email components","\u002Fmodules\u002Fcommunication\u002Femail-templates\u002Fcomponents","3.modules\u002F6.communication\u002F2.email-templates\u002F2.components",{"title":179,"path":370,"stem":371},"\u002Fmodules\u002Fcommunication\u002Femail-templates\u002Fserver","3.modules\u002F6.communication\u002F2.email-templates\u002F3.server",{"title":373,"path":374,"stem":375},"Module emails","\u002Fmodules\u002Fcommunication\u002Femail-templates\u002Fmodule-emails","3.modules\u002F6.communication\u002F2.email-templates\u002F4.module-emails",{"title":377,"path":378,"stem":379},"Push","\u002Fmodules\u002Fcommunication\u002Fpush","3.modules\u002F6.communication\u002F3.push",{"title":381,"path":382,"stem":383},"Inbox","\u002Fmodules\u002Fcommunication\u002Finbox","3.modules\u002F6.communication\u002F4.inbox",{"title":385,"path":386,"stem":387},"Short links","\u002Fmodules\u002Fcommunication\u002Fshort-links","3.modules\u002F6.communication\u002F5.short-links",{"title":389,"path":390,"stem":391},"Campaigns","\u002Fmodules\u002Fcommunication\u002Fcampaigns","3.modules\u002F6.communication\u002F6.campaigns",{"title":393,"path":394,"stem":395},"SMS","\u002Fmodules\u002Fcommunication\u002Fsms","3.modules\u002F6.communication\u002F7.sms",{"title":397,"icon":53,"path":398,"stem":399,"children":400,"page":53},"Interface","\u002Fmodules\u002Finterface","3.modules\u002F7.interface",[401,426,429,433,437,451,455,469],{"title":402,"path":403,"stem":404,"children":405},"UI","\u002Fmodules\u002Finterface\u002Fui","3.modules\u002F7.interface\u002F1.ui\u002Findex",[406,407,411,415,419,423],{"title":177,"path":403,"stem":404},{"title":408,"path":409,"stem":410},"Page components","\u002Fmodules\u002Finterface\u002Fui\u002Fpage-components","3.modules\u002F7.interface\u002F1.ui\u002F2.page-components",{"title":412,"path":413,"stem":414},"App shell","\u002Fmodules\u002Finterface\u002Fui\u002Fapp-shell","3.modules\u002F7.interface\u002F1.ui\u002F3.app-shell",{"title":416,"path":417,"stem":418},"Form inputs","\u002Fmodules\u002Finterface\u002Fui\u002Fform-inputs","3.modules\u002F7.interface\u002F1.ui\u002F4.form-inputs",{"title":420,"path":421,"stem":422},"Composables and helpers","\u002Fmodules\u002Finterface\u002Fui\u002Fcomposables","3.modules\u002F7.interface\u002F1.ui\u002F5.composables",{"title":183,"path":424,"stem":425},"\u002Fmodules\u002Finterface\u002Fui\u002Freference","3.modules\u002F7.interface\u002F1.ui\u002F6.reference",{"title":225,"path":427,"stem":428},"\u002Fmodules\u002Finterface\u002Fadmin","3.modules\u002F7.interface\u002F2.admin",{"title":430,"path":431,"stem":432},"Menu","\u002Fmodules\u002Finterface\u002Fmenu","3.modules\u002F7.interface\u002F3.menu",{"title":434,"path":435,"stem":436},"Widget","\u002Fmodules\u002Finterface\u002Fwidget","3.modules\u002F7.interface\u002F4.widget",{"title":438,"path":439,"stem":440,"children":441},"Mobile","\u002Fmodules\u002Finterface\u002Fmobile","3.modules\u002F7.interface\u002F5.mobile\u002Findex",[442,443,447],{"title":177,"path":439,"stem":440},{"title":444,"path":445,"stem":446},"CLI and devices","\u002Fmodules\u002Finterface\u002Fmobile\u002Fcli-and-devices","3.modules\u002F7.interface\u002F5.mobile\u002F2.cli-and-devices",{"title":448,"path":449,"stem":450},"Splash screen","\u002Fmodules\u002Finterface\u002Fmobile\u002Fsplash-screen","3.modules\u002F7.interface\u002F5.mobile\u002F3.splash-screen",{"title":452,"path":453,"stem":454},"Dashboard","\u002Fmodules\u002Finterface\u002Fdashboard","3.modules\u002F7.interface\u002F6.dashboard",{"title":456,"path":457,"stem":458,"children":459},"Desktop","\u002Fmodules\u002Finterface\u002Fdesktop","3.modules\u002F7.interface\u002F7.desktop\u002Findex",[460,461,465],{"title":177,"path":457,"stem":458},{"title":462,"path":463,"stem":464},"CLI","\u002Fmodules\u002Finterface\u002Fdesktop\u002Fcli","3.modules\u002F7.interface\u002F7.desktop\u002F2.cli",{"title":466,"path":467,"stem":468},"Local mode","\u002Fmodules\u002Finterface\u002Fdesktop\u002Flocal-mode","3.modules\u002F7.interface\u002F7.desktop\u002F3.local-mode",{"title":470,"path":471,"stem":472},"Maps","\u002Fmodules\u002Finterface\u002Fmaps","3.modules\u002F7.interface\u002F8.maps",{"title":474,"icon":53,"path":475,"stem":476,"children":477,"page":53},"Platform","\u002Fmodules\u002Fplatform","3.modules\u002F8.platform",[478,500],{"title":479,"path":480,"stem":481,"children":482},"Module Kit","\u002Fmodules\u002Fplatform\u002Fmodule-kit","3.modules\u002F8.platform\u002F1.module-kit\u002Findex",[483,484,488,492,496],{"title":177,"path":480,"stem":481},{"title":485,"path":486,"stem":487},"Server toolkit","\u002Fmodules\u002Fplatform\u002Fmodule-kit\u002Fserver-toolkit","3.modules\u002F8.platform\u002F1.module-kit\u002F2.server-toolkit",{"title":489,"path":490,"stem":491},"Registries and menus","\u002Fmodules\u002Fplatform\u002Fmodule-kit\u002Fregistries-and-menus","3.modules\u002F8.platform\u002F1.module-kit\u002F3.registries-and-menus",{"title":493,"path":494,"stem":495},"Translations","\u002Fmodules\u002Fplatform\u002Fmodule-kit\u002Fi18n","3.modules\u002F8.platform\u002F1.module-kit\u002F4.i18n",{"title":497,"path":498,"stem":499},"Database helpers","\u002Fmodules\u002Fplatform\u002Fmodule-kit\u002Fdatabase","3.modules\u002F8.platform\u002F1.module-kit\u002F5.database",{"title":501,"path":502,"stem":503,"children":504},"Base Layer","\u002Fmodules\u002Fplatform\u002Fbase-layer","3.modules\u002F8.platform\u002F2.base-layer\u002Findex",[505,506,510,514],{"title":177,"path":502,"stem":503},{"title":507,"path":508,"stem":509},"Content collections","\u002Fmodules\u002Fplatform\u002Fbase-layer\u002Fcontent-collections","3.modules\u002F8.platform\u002F2.base-layer\u002F2.content-collections",{"title":511,"path":512,"stem":513},"Layouts and routing","\u002Fmodules\u002Fplatform\u002Fbase-layer\u002Flayouts-and-routing","3.modules\u002F8.platform\u002F2.base-layer\u002F3.layouts-and-routing",{"title":515,"path":516,"stem":517},"Composables and utils","\u002Fmodules\u002Fplatform\u002Fbase-layer\u002Fcomposables-and-utils","3.modules\u002F8.platform\u002F2.base-layer\u002F4.composables-and-utils",{"title":519,"icon":53,"path":520,"stem":521,"children":522,"page":53},"Volunteering","\u002Fmodules\u002Fvolunteering","3.modules\u002F9.volunteering",[523,527,531],{"title":524,"path":525,"stem":526},"Operations","\u002Fmodules\u002Fvolunteering\u002Foperations","3.modules\u002F9.volunteering\u002F1.operations",{"title":528,"path":529,"stem":530},"Crew","\u002Fmodules\u002Fvolunteering\u002Fcrew","3.modules\u002F9.volunteering\u002F2.crew",{"title":532,"path":533,"stem":534},"Shifts","\u002Fmodules\u002Fvolunteering\u002Fshifts","3.modules\u002F9.volunteering\u002F3.shifts",{"title":536,"icon":537,"path":538,"stem":539,"children":540,"page":53},"Examples","i-lucide-code-xml","\u002Fexamples","4.examples",[541,570,580],{"title":542,"icon":53,"path":543,"stem":544,"children":545,"page":53},"Starters","\u002Fexamples\u002Fstarters","4.examples\u002F1.starters",[546,550,555,560,565],{"title":547,"path":548,"stem":549},"Workspace","\u002Fexamples\u002Fstarters\u002Fworkspace","4.examples\u002F1.starters\u002F1.workspace",{"title":551,"path":552,"stem":553,"icon":554},"Mobile starter","\u002Fexamples\u002Fstarters\u002Fmobile","4.examples\u002F1.starters\u002F2.mobile","i-lucide-smartphone",{"title":556,"path":557,"stem":558,"icon":559},"Standalone mobile starter","\u002Fexamples\u002Fstarters\u002Fmobile-standalone","4.examples\u002F1.starters\u002F3.mobile-standalone","i-lucide-tablet-smartphone",{"title":561,"path":562,"stem":563,"icon":564},"Desktop starter","\u002Fexamples\u002Fstarters\u002Fdesktop","4.examples\u002F1.starters\u002F4.desktop","i-lucide-monitor",{"title":566,"path":567,"stem":568,"icon":569},"Multi-platform starter","\u002Fexamples\u002Fstarters\u002Fmulti-platform","4.examples\u002F1.starters\u002F5.multi-platform","i-lucide-layers",{"title":571,"icon":53,"path":572,"stem":573,"children":574,"page":53},"Apps","\u002Fexamples\u002Fapps","4.examples\u002F2.apps",[575],{"title":576,"path":577,"stem":578,"icon":579},"Frigear website app","\u002Fexamples\u002Fapps\u002Ffrigear-nu-website","4.examples\u002F2.apps\u002F1.frigear-nu-website","i-lucide-layout-dashboard",{"title":581,"icon":53,"path":582,"stem":583,"children":584,"page":53},"Tasks","\u002Fexamples\u002Ftasks","4.examples\u002F3.tasks",[585,589,593,598,603],{"title":586,"path":587,"stem":588,"icon":74},"Protect a route","\u002Fexamples\u002Ftasks\u002Fprotect-a-route","4.examples\u002F3.tasks\u002F1.protect-a-route",{"title":590,"path":591,"stem":592,"icon":579},"Add an admin page","\u002Fexamples\u002Ftasks\u002Fadd-an-admin-page","4.examples\u002F3.tasks\u002F2.add-an-admin-page",{"title":594,"path":595,"stem":596,"icon":597},"Sell event tickets","\u002Fexamples\u002Ftasks\u002Fsell-event-tickets","4.examples\u002F3.tasks\u002F3.sell-event-tickets","i-lucide-ticket",{"title":599,"path":600,"stem":601,"icon":602},"Build a form","\u002Fexamples\u002Ftasks\u002Fbuild-a-form","4.examples\u002F3.tasks\u002F4.build-a-form","i-lucide-clipboard-list",{"title":604,"path":605,"stem":606,"icon":607},"Send an email","\u002Fexamples\u002Ftasks\u002Fsend-an-email","4.examples\u002F3.tasks\u002F5.send-an-email","i-lucide-mail",{"title":462,"icon":609,"path":610,"stem":611,"children":612,"page":53},"i-lucide-square-terminal","\u002Fcli","5.cli",[613,616,621,625,630,633,638,642,647],{"title":177,"path":614,"stem":615,"icon":609},"\u002Fcli\u002Foverview","5.cli\u002F1.overview",{"title":617,"path":618,"stem":619,"icon":620},"Create a project","\u002Fcli\u002Fcreate-a-project","5.cli\u002F2.create-a-project","i-lucide-folder-plus",{"title":622,"path":623,"stem":624,"icon":569},"Platforms","\u002Fcli\u002Fplatforms","5.cli\u002F3.platforms",{"title":626,"path":627,"stem":628,"icon":629},"Custom platforms","\u002Fcli\u002Fcustom-platforms","5.cli\u002F4.custom-platforms","i-lucide-monitor-cog",{"title":160,"path":631,"stem":632,"icon":161},"\u002Fcli\u002Fmodules","5.cli\u002F5.modules",{"title":634,"path":635,"stem":636,"icon":637},"Refactoring","\u002Fcli\u002Frefactoring","5.cli\u002F6.refactoring","i-lucide-folder-tree",{"title":639,"path":640,"stem":641,"icon":52},"Upgrade","\u002Fcli\u002Fupgrade","5.cli\u002F7.upgrade",{"title":643,"path":644,"stem":645,"icon":646},"From code","\u002Fcli\u002Ffrom-code","5.cli\u002F8.from-code","i-lucide-code",{"title":648,"path":649,"stem":650,"icon":138},"Environment files","\u002Fcli\u002Fenvironment","5.cli\u002F9.environment",{"title":652,"icon":653,"path":654,"stem":655,"children":656,"page":53},"Contribute","i-lucide-git-pull-request","\u002Fcontribute","6.contribute",[657,660,665,691,696,699,703,716],{"title":177,"path":658,"stem":659,"icon":653},"\u002Fcontribute\u002Foverview","6.contribute\u002F1.overview",{"title":661,"path":662,"stem":663,"icon":664},"Local development","\u002Fcontribute\u002Flocal-development","6.contribute\u002F2.local-development","i-lucide-terminal",{"title":666,"icon":53,"path":667,"stem":668,"children":669,"page":53},"Writing a module","\u002Fcontribute\u002Fwriting-a-module","6.contribute\u002F3.writing-a-module",[670,674,679,683,688],{"title":671,"path":672,"stem":673,"icon":38},"Scaffold a module","\u002Fcontribute\u002Fwriting-a-module\u002Fscaffold","6.contribute\u002F3.writing-a-module\u002F1.scaffold",{"title":675,"path":676,"stem":677,"icon":678},"Setup checklist","\u002Fcontribute\u002Fwriting-a-module\u002Fsetup-checklist","6.contribute\u002F3.writing-a-module\u002F2.setup-checklist","i-lucide-list-checks",{"title":680,"path":681,"stem":682,"icon":43},"Database tables","\u002Fcontribute\u002Fwriting-a-module\u002Fdatabase-tables","6.contribute\u002F3.writing-a-module\u002F3.database-tables",{"title":684,"path":685,"stem":686,"icon":687},"Testing","\u002Fcontribute\u002Fwriting-a-module\u002Ftesting","6.contribute\u002F3.writing-a-module\u002F4.testing","i-lucide-flask-conical",{"title":71,"path":689,"stem":690,"icon":74},"\u002Fcontribute\u002Fwriting-a-module\u002Faccess-control","6.contribute\u002F3.writing-a-module\u002F5.access-control",{"title":692,"path":693,"stem":694,"icon":695},"Publishing","\u002Fcontribute\u002Fpublishing","6.contribute\u002F4.publishing","i-lucide-package-check",{"title":542,"path":697,"stem":698,"icon":6},"\u002Fcontribute\u002Fstarters","6.contribute\u002F5.starters",{"title":700,"path":701,"stem":702,"icon":56},"Documentation","\u002Fcontribute\u002Fdocumentation","6.contribute\u002F6.documentation",{"title":704,"icon":53,"path":705,"stem":706,"children":707,"page":53},"Tooling","\u002Fcontribute\u002Ftooling","6.contribute\u002F7.tooling",[708,711],{"title":462,"path":709,"stem":710,"icon":609},"\u002Fcontribute\u002Ftooling\u002Fcli","6.contribute\u002F7.tooling\u002F1.cli",{"title":712,"path":713,"stem":714,"icon":715},"ESLint config","\u002Fcontribute\u002Ftooling\u002Feslint-config","6.contribute\u002F7.tooling\u002F2.eslint-config","i-lucide-spell-check",{"title":717,"icon":53,"path":718,"stem":719,"children":720},"Decisions","\u002Fcontribute\u002Fdecisions","6.contribute\u002F8.decisions\u002Findex",[721,723,728],{"title":717,"path":718,"stem":719,"icon":722},"i-lucide-scale",{"title":724,"path":725,"stem":726,"icon":727},"Session lifetimes per OAuth client","\u002Fcontribute\u002Fdecisions\u002Foauth-token-lifetimes","6.contribute\u002F8.decisions\u002F1.oauth-token-lifetimes","i-lucide-timer",{"title":729,"path":730,"stem":731,"icon":74},"One permission model","\u002Fcontribute\u002Fdecisions\u002Fpermission-model","6.contribute\u002F8.decisions\u002F2.permission-model",{"id":733,"title":385,"body":734,"description":2805,"extension":2806,"links":2807,"meta":2808,"navigation":1785,"path":386,"seo":2809,"stem":387,"__hash__":2810},"docs\u002F3.modules\u002F6.communication\u002F5.short-links.md",{"type":735,"value":736,"toc":2785},"minimark",[737,746,765,770,879,883,917,921,1282,1296,1300,1306,1474,1491,1498,1505,1509,1549,1553,1566,1938,1960,1980,1995,2018,2137,2145,2172,2175,2185,2225,2228,2244,2247,2254,2292,2447,2450,2454,2457,2615,2625,2629,2660,2663,2669,2747,2750,2760,2764,2781],[738,739,740,741,745],"p",{},"Short links turn a long address into a short one, such as ",[742,743,744],"code",{},"https:\u002F\u002Fexample.org\u002Fl\u002Fx7Gk2Qa",", that fits in an SMS and\ncounts its clicks. Any module can make them: a campaign for each link in a newsletter, the help center for an article\nsent by SMS, shifts or events for a sign-up page. Staff see every link on one admin page and can make links by hand.",[738,747,748,749,752,753,756,757,760,761,764],{},"The package is ",[742,750,751],{},"@frigear-nu\u002Fshort-links",". A short link can carry a subject after its code, such as\n",[742,754,755],{},"\u002Fl\u002Fx7Gk2Qa\u002Fdlv_81f…",", that the owner uses to tell who clicked. The owning module hears about each click through the\n",[742,758,759],{},"short-links:clicked"," hook. No IP address is stored. For one-time links that sign someone in or confirm an address, use\nthe token flows of ",[762,763,172],"a",{"href":173}," instead: a short link is public and can be opened by anyone who has it.",[766,767,769],"h2",{"id":768},"what-you-get","What you get",[771,772,773,789,810,828,858,866],"ul",{},[774,775,776,780,781,784,785,788],"li",{},[777,778,779],"strong",{},"Redirect"," (on by default): ",[742,782,783],{},"GET \u002Fl\u002F:code"," and ",[742,786,787],{},"GET \u002Fl\u002F:code\u002F:subject"," send people on to the stored address with a\n302. Unknown, expired and disabled codes answer 404.",[774,790,791,794,795,797,798,801,802,805,806,809],{},[777,792,793],{},"Admin area"," (on by default with ",[762,796,225],{"href":427},"): ",[742,799,800],{},"\u002Fadmin\u002Fshort-links"," in the Manage group has\ntwo tabs. ",[777,803,804],{},"Made by hand"," lists the links staff made, which they can edit there. ",[777,807,808],{},"From modules"," lists the links\nmodules made, often one per recipient and so thousands, with a filter per module; staff can only disable and enable\nthose. Both show status, expiry, clicks and last click.",[774,811,812,815,816,819,820,823,824,827],{},[777,813,814],{},"Server routes:"," the admin API under ",[742,817,818],{},"\u002Fapi\u002Fadmin\u002Fshort-links",", for ",[762,821,822],{"href":91},"staff"," with\n",[742,825,826],{},"short-links:manage",".",[774,829,830,833,834,837,838,837,841,837,844,837,847,850,851,784,854,857],{},[777,831,832],{},"Server helpers:"," ",[742,835,836],{},"createShortLink",", ",[742,839,840],{},"createShortLinks",[742,842,843],{},"findOrCreateShortLink",[742,845,846],{},"shortLinkUrl",[742,848,849],{},"findShortLink",",\n",[742,852,853],{},"disableShortLinks",[742,855,856],{},"deleteShortLinks",", auto-imported in server code.",[774,859,860,833,863,865],{},[777,861,862],{},"Hook:",[742,864,759],{},", so the owning module can record the click.",[774,867,868,833,871,874,875,878],{},[777,869,870],{},"Retention task:",[742,872,873],{},"short-links:retention"," runs every night. It deletes click rows older than a year, and links\nmarked ",[742,876,877],{},"autoDelete"," 30 days after they expired or were disabled.",[880,881],"module-runtime",{":client":882,":server":882},"true",[884,885,886,898,906],"note",{},[738,887,888,833,891,837,894,784,896,827],{},[777,889,890],{},"Installed for you:",[742,892,893],{},"@frigear-nu\u002Fmodule-kit",[762,895,172],{"href":173},[762,897,402],{"href":403},[738,899,900,833,903,827],{},[777,901,902],{},"You add:",[742,904,905],{},"@nuxthub\u002Fcore",[738,907,908,833,911,913,914,916],{},[777,909,910],{},"Optional:",[762,912,225],{"href":427}," for the admin page and ",[762,915,430],{"href":431}," for its entry in\nthe admin sidebar.",[766,918,920],{"id":919},"quick-setup","Quick setup",[922,923,924,929,957,1080,1091,1105,1109,1121,1125,1136,1139,1143],"steps",{},[925,926,928],"h3",{"id":927},"install-short-links","Install Short links",[930,931,936],"pre",{"className":932,"code":933,"language":934,"meta":935,"style":935},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","pnpm add @frigear-nu\u002Fshort-links @nuxthub\u002Fcore\n","bash","",[742,937,938],{"__ignoreMap":935},[939,940,943,947,951,954],"span",{"class":941,"line":942},"line",1,[939,944,946],{"class":945},"sBMFI","pnpm",[939,948,950],{"class":949},"sfazB"," add",[939,952,953],{"class":949}," @frigear-nu\u002Fshort-links",[939,955,956],{"class":949}," @nuxthub\u002Fcore\n",[930,958,963],{"className":959,"code":960,"filename":961,"language":962,"meta":935,"style":935},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","export default defineNuxtConfig({\n  modules: ['@nuxthub\u002Fcore', '@frigear-nu\u002Fadmin', '@frigear-nu\u002Fshort-links'],\n  shortLinks: {\n    \u002F\u002F Optional: a short domain that points at this app.\n    baseUrl: 'https:\u002F\u002Ffrg.nu',\n  },\n})\n","nuxt.config.ts","ts",[742,964,965,986,1030,1041,1048,1065,1071],{"__ignoreMap":935},[939,966,967,971,974,978,982],{"class":941,"line":942},[939,968,970],{"class":969},"s7zQu","export",[939,972,973],{"class":969}," default",[939,975,977],{"class":976},"s2Zo4"," defineNuxtConfig",[939,979,981],{"class":980},"sTEyZ","(",[939,983,985],{"class":984},"sMK4o","{\n",[939,987,989,993,996,999,1002,1004,1006,1009,1012,1015,1017,1019,1021,1023,1025,1028],{"class":941,"line":988},2,[939,990,992],{"class":991},"swJcz","  modules",[939,994,995],{"class":984},":",[939,997,998],{"class":980}," [",[939,1000,1001],{"class":984},"'",[939,1003,905],{"class":949},[939,1005,1001],{"class":984},[939,1007,1008],{"class":984},",",[939,1010,1011],{"class":984}," '",[939,1013,1014],{"class":949},"@frigear-nu\u002Fadmin",[939,1016,1001],{"class":984},[939,1018,1008],{"class":984},[939,1020,1011],{"class":984},[939,1022,751],{"class":949},[939,1024,1001],{"class":984},[939,1026,1027],{"class":980},"]",[939,1029,850],{"class":984},[939,1031,1033,1036,1038],{"class":941,"line":1032},3,[939,1034,1035],{"class":991},"  shortLinks",[939,1037,995],{"class":984},[939,1039,1040],{"class":984}," {\n",[939,1042,1044],{"class":941,"line":1043},4,[939,1045,1047],{"class":1046},"sHwdD","    \u002F\u002F Optional: a short domain that points at this app.\n",[939,1049,1051,1054,1056,1058,1061,1063],{"class":941,"line":1050},5,[939,1052,1053],{"class":991},"    baseUrl",[939,1055,995],{"class":984},[939,1057,1011],{"class":984},[939,1059,1060],{"class":949},"https:\u002F\u002Ffrg.nu",[939,1062,1001],{"class":984},[939,1064,850],{"class":984},[939,1066,1068],{"class":941,"line":1067},6,[939,1069,1070],{"class":984},"  },\n",[939,1072,1074,1077],{"class":941,"line":1073},7,[939,1075,1076],{"class":984},"}",[939,1078,1079],{"class":980},")\n",[1081,1082,1083,1084,1087,1088,827],"warning",{},"The config key is ",[742,1085,1086],{},"shortLinks",", not ",[742,1089,1090],{},"short-links",[1081,1092,1093,1094,1097,1098,784,1101,1104],{},"Without a ",[762,1095,1096],{"href":91},"migration"," the ",[742,1099,1100],{},"short_links",[742,1102,1103],{},"short_link_clicks"," tables do not exist, and every\nredirect fails.",[925,1106,1108],{"id":1107},"generate-the-migration","Generate the migration",[930,1110,1112],{"className":932,"code":1111,"language":934,"meta":935,"style":935},"pnpm db:generate\n",[742,1113,1114],{"__ignoreMap":935},[939,1115,1116,1118],{"class":941,"line":942},[939,1117,946],{"class":945},[939,1119,1120],{"class":949}," db:generate\n",[925,1122,1124],{"id":1123},"grant-the-permission","Grant the permission",[738,1126,1127,1129,1130,1133,1134,827],{},[742,1128,826],{}," is granted to the ",[742,1131,1132],{},"admin"," role. Grant it to another role in your app if others should manage\nlinks, as described in ",[762,1135,207],{"href":208},[1081,1137,1138],{},"Without the permission nobody can open the admin page or call the admin API.",[925,1140,1142],{"id":1141},"make-a-link","Make a link",[930,1144,1147],{"className":959,"code":1145,"filename":1146,"language":962,"meta":935,"style":935},"export default defineEventHandler(async () => {\n  const link = await createShortLink({ url: 'https:\u002F\u002Fexample.org\u002Fshifts\u002F42', owner: { module: 'shifts', refId: '42' } })\n  return { url: shortLinkUrl(link) } \u002F\u002F { url: 'https:\u002F\u002Ffrg.nu\u002Fl\u002Fx7Gk2Qa' }\n})\n","server\u002Fapi\u002Fremind.post.ts",[742,1148,1149,1172,1249,1276],{"__ignoreMap":935},[939,1150,1151,1153,1155,1158,1160,1164,1167,1170],{"class":941,"line":942},[939,1152,970],{"class":969},[939,1154,973],{"class":969},[939,1156,1157],{"class":976}," defineEventHandler",[939,1159,981],{"class":980},[939,1161,1163],{"class":1162},"spNyl","async",[939,1165,1166],{"class":984}," ()",[939,1168,1169],{"class":1162}," =>",[939,1171,1040],{"class":984},[939,1173,1174,1177,1180,1183,1186,1189,1191,1194,1197,1199,1201,1204,1206,1208,1211,1213,1216,1219,1221,1223,1226,1228,1230,1233,1235,1237,1240,1242,1245,1247],{"class":941,"line":988},[939,1175,1176],{"class":1162},"  const",[939,1178,1179],{"class":980}," link",[939,1181,1182],{"class":984}," =",[939,1184,1185],{"class":969}," await",[939,1187,1188],{"class":976}," createShortLink",[939,1190,981],{"class":991},[939,1192,1193],{"class":984},"{",[939,1195,1196],{"class":991}," url",[939,1198,995],{"class":984},[939,1200,1011],{"class":984},[939,1202,1203],{"class":949},"https:\u002F\u002Fexample.org\u002Fshifts\u002F42",[939,1205,1001],{"class":984},[939,1207,1008],{"class":984},[939,1209,1210],{"class":991}," owner",[939,1212,995],{"class":984},[939,1214,1215],{"class":984}," {",[939,1217,1218],{"class":991}," module",[939,1220,995],{"class":984},[939,1222,1011],{"class":984},[939,1224,1225],{"class":949},"shifts",[939,1227,1001],{"class":984},[939,1229,1008],{"class":984},[939,1231,1232],{"class":991}," refId",[939,1234,995],{"class":984},[939,1236,1011],{"class":984},[939,1238,1239],{"class":949},"42",[939,1241,1001],{"class":984},[939,1243,1244],{"class":984}," }",[939,1246,1244],{"class":984},[939,1248,1079],{"class":991},[939,1250,1251,1254,1256,1258,1260,1263,1265,1268,1271,1273],{"class":941,"line":1032},[939,1252,1253],{"class":969},"  return",[939,1255,1215],{"class":984},[939,1257,1196],{"class":991},[939,1259,995],{"class":984},[939,1261,1262],{"class":976}," shortLinkUrl",[939,1264,981],{"class":991},[939,1266,1267],{"class":980},"link",[939,1269,1270],{"class":991},") ",[939,1272,1076],{"class":984},[939,1274,1275],{"class":1046}," \u002F\u002F { url: 'https:\u002F\u002Ffrg.nu\u002Fl\u002Fx7Gk2Qa' }\n",[939,1277,1278,1280],{"class":941,"line":1043},[939,1279,1076],{"class":984},[939,1281,1079],{"class":980},[1283,1284,1287,1290,1291,1293,1294,827],"callout",{"color":1285,"icon":1286},"success","i-lucide-check",[777,1288,1289],{},"What you should see:"," opening the short URL in a browser lands on ",[742,1292,1203],{},", and the link shows\none click on ",[742,1295,800],{},[766,1297,1299],{"id":1298},"options","Options",[738,1301,1302,1303,1305],{},"Options go under the ",[742,1304,1086],{}," key.",[1307,1308,1309,1328],"table",{},[1310,1311,1312],"thead",{},[1313,1314,1315,1319,1322,1325],"tr",{},[1316,1317,1318],"th",{},"Option",[1316,1320,1321],{},"Type",[1316,1323,1324],{},"Default",[1316,1326,1327],{},"Purpose",[1329,1330,1331,1358,1375,1399,1422,1445],"tbody",{},[1313,1332,1333,1339,1344,1349],{},[1334,1335,1336],"td",{},[742,1337,1338],{},"path",[1334,1340,1341],{},[742,1342,1343],{},"string",[1334,1345,1346],{},[742,1347,1348],{},"'\u002Fl'",[1334,1350,1351,1352,784,1355,827],{},"Where the redirect lives: ",[742,1353,1354],{},"\u002Fl\u002F:code",[742,1356,1357],{},"\u002Fl\u002F:code\u002F:subject",[1313,1359,1360,1365,1369,1372],{},[1334,1361,1362],{},[742,1363,1364],{},"baseUrl",[1334,1366,1367],{},[742,1368,1343],{},[1334,1370,1371],{},"the site URL, else the request's origin",[1334,1373,1374],{},"The origin short URLs are built on.",[1313,1376,1377,1382,1387,1392],{},[1334,1378,1379],{},[742,1380,1381],{},"retention.days",[1334,1383,1384],{},[742,1385,1386],{},"number | false",[1334,1388,1389],{},[742,1390,1391],{},"365",[1334,1393,1394,1395,1398],{},"How long click rows are kept. ",[742,1396,1397],{},"false"," keeps them.",[1313,1400,1401,1406,1411,1416],{},[1334,1402,1403],{},[742,1404,1405],{},"retention.deleteAfterDays",[1334,1407,1408],{},[742,1409,1410],{},"number",[1334,1412,1413],{},[742,1414,1415],{},"30",[1334,1417,1418,1419,1421],{},"How long a link with ",[742,1420,877],{}," stays after it expired or was disabled.",[1313,1423,1424,1429,1434,1439],{},[1334,1425,1426],{},[742,1427,1428],{},"retention.cron",[1334,1430,1431],{},[742,1432,1433],{},"string | false",[1334,1435,1436],{},[742,1437,1438],{},"'15 4 * * *'",[1334,1440,1441,1442,1444],{},"When the retention task runs. ",[742,1443,1397],{}," registers it without a schedule.",[1313,1446,1447,1452,1457,1462],{},[1334,1448,1449],{},[742,1450,1451],{},"settings.pages.admin",[1334,1453,1454],{},[742,1455,1456],{},"string | boolean",[1334,1458,1459,1461],{},[742,1460,882],{}," with Admin",[1334,1463,1464,1465,1467,1468,1470,1471,1473],{},"The admin page. ",[742,1466,882],{}," is ",[742,1469,800],{},"; ",[742,1472,1397],{}," turns it off.",[738,1475,1476,1480,1481,1483,1484,1486,1487,1490],{},[777,1477,1478,827],{},[742,1479,1364],{}," Set it when a separate short domain points at this app, such as ",[742,1482,1060],{},". Without it,\n",[742,1485,846],{}," uses the site URL (",[742,1488,1489],{},"runtimeConfig.public.siteUrl","), and without that the origin of the request when it\nis given one (the admin page passes it, so a preview copies its own host). Without any of them it returns the path\nalone.",[738,1492,1493,1497],{},[777,1494,1495,827],{},[742,1496,1381],{}," Only the click rows are deleted. The click count and the last click on each link stay.",[738,1499,1500,1504],{},[777,1501,1502,827],{},[742,1503,1405],{}," The wait gives staff time to enable a link that was disabled by mistake. Until then\nan expired or disabled link answers 404 like any other.",[925,1506,1508],{"id":1507},"runtime-config","Runtime config",[1307,1510,1511,1521],{},[1310,1512,1513],{},[1313,1514,1515,1518],{},[1316,1516,1517],{},"Variable",[1316,1519,1520],{},"What it is",[1329,1522,1523,1536],{},[1313,1524,1525,1530],{},[1334,1526,1527],{},[742,1528,1529],{},"NUXT_SHORT_LINKS_BASE_URL",[1334,1531,1532,1533,1535],{},"Overrides ",[742,1534,1364],{}," at runtime.",[1313,1537,1538,1543],{},[1334,1539,1540],{},[742,1541,1542],{},"NUXT_PUBLIC_SITE_URL",[1334,1544,1545,1546,1548],{},"The site URL, used when ",[742,1547,1364],{}," is not set.",[766,1550,1552],{"id":1551},"server","Server",[738,1554,1555,1556,784,1559,1562,1563,827],{},"The helpers are auto-imported in server code. They only accept ",[742,1557,1558],{},"http:",[742,1560,1561],{},"https:"," targets without a user name or\npassword, of at most 2048 characters. Anything else is a ",[742,1564,1565],{},"400 invalid_url",[930,1567,1569],{"className":959,"code":1568,"language":962,"meta":935,"style":935},"createShortLink(input: CreateShortLinkInput): Promise\u003CShortLink>\ncreateShortLinks(inputs: CreateShortLinkInput[]): Promise\u003CShortLink[]>\nfindOrCreateShortLink(input: Omit\u003CCreateShortLinkInput, 'code'>): Promise\u003CShortLink>\nshortLinkUrl(link: { code: string }, subject?: string | null, event?: H3Event): string\nfindShortLink(code: string): Promise\u003CShortLink | null>\ndisableShortLinks(owner: { module: string, refId?: string | null }): Promise\u003Cnumber>\ndeleteShortLinks(owner: { module: string, refId?: string | null }): Promise\u003Cnumber>\n\ntype CreateShortLinkInput = {\n  url: string\n  owner: { module: string, refId?: string | null }\n  code?: string \u002F\u002F a vanity code; omit for a random one\n  title?: string | null\n  track?: boolean \u002F\u002F default true\n  expiresAt?: Date | string | null\n  autoDelete?: boolean \u002F\u002F default false\n  createdBy?: number | null\n}\n",[742,1570,1571,1590,1606,1639,1681,1700,1742,1780,1787,1800,1811,1843,1856,1871,1885,1904,1917,1932],{"__ignoreMap":935},[939,1572,1573,1575,1578,1581,1584,1587],{"class":941,"line":942},[939,1574,836],{"class":976},[939,1576,1577],{"class":980},"(input: CreateShortLinkInput): ",[939,1579,1580],{"class":945},"Promise",[939,1582,1583],{"class":984},"\u003C",[939,1585,1586],{"class":980},"ShortLink",[939,1588,1589],{"class":984},">\n",[939,1591,1592,1594,1597,1599,1601,1604],{"class":941,"line":988},[939,1593,840],{"class":976},[939,1595,1596],{"class":980},"(inputs: CreateShortLinkInput[]): ",[939,1598,1580],{"class":945},[939,1600,1583],{"class":984},[939,1602,1603],{"class":980},"ShortLink[]",[939,1605,1589],{"class":984},[939,1607,1608,1610,1613,1615,1618,1620,1622,1624,1626,1629,1631,1633,1635,1637],{"class":941,"line":1032},[939,1609,843],{"class":976},[939,1611,1612],{"class":980},"(input: Omit",[939,1614,1583],{"class":984},[939,1616,1617],{"class":980},"CreateShortLinkInput",[939,1619,1008],{"class":984},[939,1621,1011],{"class":984},[939,1623,742],{"class":949},[939,1625,1001],{"class":984},[939,1627,1628],{"class":984},">",[939,1630,797],{"class":980},[939,1632,1580],{"class":945},[939,1634,1583],{"class":984},[939,1636,1586],{"class":980},[939,1638,1589],{"class":984},[939,1640,1641,1643,1646,1648,1651,1653,1656,1659,1662,1665,1667,1670,1673,1676,1678],{"class":941,"line":1043},[939,1642,846],{"class":976},[939,1644,1645],{"class":980},"(link: ",[939,1647,1193],{"class":984},[939,1649,1650],{"class":991}," code",[939,1652,995],{"class":984},[939,1654,1655],{"class":980}," string ",[939,1657,1658],{"class":984},"},",[939,1660,1661],{"class":980}," subject",[939,1663,1664],{"class":984},"?:",[939,1666,1655],{"class":980},[939,1668,1669],{"class":984},"|",[939,1671,1672],{"class":984}," null,",[939,1674,1675],{"class":980}," event",[939,1677,1664],{"class":984},[939,1679,1680],{"class":980}," H3Event): string\n",[939,1682,1683,1685,1688,1690,1692,1695,1697],{"class":941,"line":1050},[939,1684,849],{"class":976},[939,1686,1687],{"class":980},"(code: string): ",[939,1689,1580],{"class":945},[939,1691,1583],{"class":984},[939,1693,1694],{"class":980},"ShortLink ",[939,1696,1669],{"class":984},[939,1698,1699],{"class":984}," null>\n",[939,1701,1702,1704,1707,1709,1711,1713,1716,1718,1721,1723,1725,1727,1730,1732,1734,1736,1738,1740],{"class":941,"line":1067},[939,1703,853],{"class":976},[939,1705,1706],{"class":980},"(owner: ",[939,1708,1193],{"class":984},[939,1710,1218],{"class":991},[939,1712,995],{"class":984},[939,1714,1715],{"class":980}," string",[939,1717,1008],{"class":984},[939,1719,1720],{"class":980}," refId?",[939,1722,995],{"class":984},[939,1724,1655],{"class":980},[939,1726,1669],{"class":984},[939,1728,1729],{"class":984}," null",[939,1731,1244],{"class":984},[939,1733,797],{"class":980},[939,1735,1580],{"class":945},[939,1737,1583],{"class":984},[939,1739,1410],{"class":980},[939,1741,1589],{"class":984},[939,1743,1744,1746,1748,1750,1752,1754,1756,1758,1760,1762,1764,1766,1768,1770,1772,1774,1776,1778],{"class":941,"line":1073},[939,1745,856],{"class":976},[939,1747,1706],{"class":980},[939,1749,1193],{"class":984},[939,1751,1218],{"class":991},[939,1753,995],{"class":984},[939,1755,1715],{"class":980},[939,1757,1008],{"class":984},[939,1759,1720],{"class":980},[939,1761,995],{"class":984},[939,1763,1655],{"class":980},[939,1765,1669],{"class":984},[939,1767,1729],{"class":984},[939,1769,1244],{"class":984},[939,1771,797],{"class":980},[939,1773,1580],{"class":945},[939,1775,1583],{"class":984},[939,1777,1410],{"class":980},[939,1779,1589],{"class":984},[939,1781,1783],{"class":941,"line":1782},8,[939,1784,1786],{"emptyLinePlaceholder":1785},true,"\n",[939,1788,1790,1793,1796,1798],{"class":941,"line":1789},9,[939,1791,1792],{"class":1162},"type",[939,1794,1795],{"class":945}," CreateShortLinkInput",[939,1797,1182],{"class":984},[939,1799,1040],{"class":984},[939,1801,1803,1806,1808],{"class":941,"line":1802},10,[939,1804,1805],{"class":991},"  url",[939,1807,995],{"class":984},[939,1809,1810],{"class":945}," string\n",[939,1812,1814,1817,1819,1821,1823,1825,1827,1829,1831,1833,1835,1838,1840],{"class":941,"line":1813},11,[939,1815,1816],{"class":991},"  owner",[939,1818,995],{"class":984},[939,1820,1215],{"class":984},[939,1822,1218],{"class":991},[939,1824,995],{"class":984},[939,1826,1715],{"class":945},[939,1828,1008],{"class":984},[939,1830,1232],{"class":991},[939,1832,1664],{"class":984},[939,1834,1715],{"class":945},[939,1836,1837],{"class":984}," |",[939,1839,1729],{"class":945},[939,1841,1842],{"class":984}," }\n",[939,1844,1846,1849,1851,1853],{"class":941,"line":1845},12,[939,1847,1848],{"class":991},"  code",[939,1850,1664],{"class":984},[939,1852,1715],{"class":945},[939,1854,1855],{"class":1046}," \u002F\u002F a vanity code; omit for a random one\n",[939,1857,1859,1862,1864,1866,1868],{"class":941,"line":1858},13,[939,1860,1861],{"class":991},"  title",[939,1863,1664],{"class":984},[939,1865,1715],{"class":945},[939,1867,1837],{"class":984},[939,1869,1870],{"class":945}," null\n",[939,1872,1874,1877,1879,1882],{"class":941,"line":1873},14,[939,1875,1876],{"class":991},"  track",[939,1878,1664],{"class":984},[939,1880,1881],{"class":945}," boolean",[939,1883,1884],{"class":1046}," \u002F\u002F default true\n",[939,1886,1888,1891,1893,1896,1898,1900,1902],{"class":941,"line":1887},15,[939,1889,1890],{"class":991},"  expiresAt",[939,1892,1664],{"class":984},[939,1894,1895],{"class":945}," Date",[939,1897,1837],{"class":984},[939,1899,1715],{"class":945},[939,1901,1837],{"class":984},[939,1903,1870],{"class":945},[939,1905,1907,1910,1912,1914],{"class":941,"line":1906},16,[939,1908,1909],{"class":991},"  autoDelete",[939,1911,1664],{"class":984},[939,1913,1881],{"class":945},[939,1915,1916],{"class":1046}," \u002F\u002F default false\n",[939,1918,1920,1923,1925,1928,1930],{"class":941,"line":1919},17,[939,1921,1922],{"class":991},"  createdBy",[939,1924,1664],{"class":984},[939,1926,1927],{"class":945}," number",[939,1929,1837],{"class":984},[939,1931,1870],{"class":945},[939,1933,1935],{"class":941,"line":1934},18,[939,1936,1937],{"class":984},"}\n",[738,1939,1940,1943,1944,1946,1947,837,1950,784,1953,1956,1957,827],{},[777,1941,1942],{},"Codes."," Without ",[742,1945,742],{}," the link gets 7 random characters from ",[742,1948,1949],{},"0-9",[742,1951,1952],{},"A-Z",[742,1954,1955],{},"a-z",". A vanity code has 3 to 64\nletters, digits, dashes and underscores. Codes are case-sensitive. A taken vanity code is a ",[742,1958,1959],{},"409 code_taken",[738,1961,1962,1965,1966,1968,1969,1972,1973,1976,1977,1979],{},[777,1963,1964],{},"Owner."," Every link names the module that made it, and optionally its record. Links made on the admin page belong to\n",[742,1967,1090],{},". ",[742,1970,1971],{},"disableShortLinks({ module: 'campaigns', refId })"," disables one record's links, for example when a\ncampaign is deleted. Leave out ",[742,1974,1975],{},"refId"," to disable every link of the module.\n",[742,1978,856],{}," takes the same owner and deletes the links with their click rows instead.",[738,1981,1982,833,1985,1987,1988,1990,1991,1994],{},[777,1983,1984],{},"One link per URL.",[742,1986,843],{}," hands out the owner's active link for the same URL (the same module and\n",[742,1989,1975],{},") and makes one only when there is none, so a URL that is sent again and again keeps one link, one counter and\none place to change its target. A disabled or expired link is never handed out again. The ",[762,1992,1993],{"href":382},"inbox","\nuses it for the links in replies.",[738,1996,1997,2000,2001,2004,2005,2008,2009,2011,2012,2014,2015,2017],{},[777,1998,1999],{},"Expiry and clean-up."," A module that makes many links, such as one per recipient, should give them an ",[742,2002,2003],{},"expiresAt","\nand ",[742,2006,2007],{},"autoDelete: true",". After the expiry the link answers 404, and ",[742,2010,1405],{}," later the retention\ntask deletes it with its click rows, so the table does not grow forever. A disabled link with ",[742,2013,877],{}," goes the\nsame way. Without ",[742,2016,877],{}," an expired link stays, with its click count, until it is deleted.",[930,2019,2021],{"className":959,"code":2020,"language":962,"meta":935,"style":935},"await createShortLinks(recipients.map(recipient => ({\n  url: campaign.url,\n  owner: { module: 'campaigns', refId: campaign.id },\n  expiresAt: campaign.endsAt,\n  autoDelete: true,\n})))\n",[742,2022,2023,2052,2068,2103,2118,2130],{"__ignoreMap":935},[939,2024,2025,2028,2031,2034,2036,2039,2041,2045,2047,2050],{"class":941,"line":942},[939,2026,2027],{"class":969},"await",[939,2029,2030],{"class":976}," createShortLinks",[939,2032,2033],{"class":980},"(recipients",[939,2035,827],{"class":984},[939,2037,2038],{"class":976},"map",[939,2040,981],{"class":980},[939,2042,2044],{"class":2043},"sHdIc","recipient",[939,2046,1169],{"class":1162},[939,2048,2049],{"class":980}," (",[939,2051,985],{"class":984},[939,2053,2054,2056,2058,2061,2063,2066],{"class":941,"line":988},[939,2055,1805],{"class":991},[939,2057,995],{"class":984},[939,2059,2060],{"class":980}," campaign",[939,2062,827],{"class":984},[939,2064,2065],{"class":980},"url",[939,2067,850],{"class":984},[939,2069,2070,2072,2074,2076,2078,2080,2082,2085,2087,2089,2091,2093,2095,2097,2100],{"class":941,"line":1032},[939,2071,1816],{"class":991},[939,2073,995],{"class":984},[939,2075,1215],{"class":984},[939,2077,1218],{"class":991},[939,2079,995],{"class":984},[939,2081,1011],{"class":984},[939,2083,2084],{"class":949},"campaigns",[939,2086,1001],{"class":984},[939,2088,1008],{"class":984},[939,2090,1232],{"class":991},[939,2092,995],{"class":984},[939,2094,2060],{"class":980},[939,2096,827],{"class":984},[939,2098,2099],{"class":980},"id ",[939,2101,2102],{"class":984},"},\n",[939,2104,2105,2107,2109,2111,2113,2116],{"class":941,"line":1043},[939,2106,1890],{"class":991},[939,2108,995],{"class":984},[939,2110,2060],{"class":980},[939,2112,827],{"class":984},[939,2114,2115],{"class":980},"endsAt",[939,2117,850],{"class":984},[939,2119,2120,2122,2124,2128],{"class":941,"line":1050},[939,2121,1909],{"class":991},[939,2123,995],{"class":984},[939,2125,2127],{"class":2126},"sfNiH"," true",[939,2129,850],{"class":984},[939,2131,2132,2134],{"class":941,"line":1067},[939,2133,1076],{"class":984},[939,2135,2136],{"class":980},")))\n",[738,2138,2139,833,2142,2144],{},[777,2140,2141],{},"Many at once.",[742,2143,840],{}," writes a few rows per statement, to stay under the parameter limit of\nCloudflare D1, and returns the links in the order given. It checks every input before it writes anything.",[738,2146,2147,833,2150,2153,2154,837,2156,837,2158,837,2160,837,2163,837,2166,784,2168,2171],{},[777,2148,2149],{},"Subjects.",[742,2151,2152],{},"shortLinkUrl(link, subject)"," adds the subject after the code. It is opaque to this module, at most 200\nURL-safe characters (",[742,2155,1952],{},[742,2157,1955],{},[742,2159,1949],{},[742,2161,2162],{},"_",[742,2164,2165],{},"-",[742,2167,827],{},[742,2169,2170],{},"~","). Use it to tell recipients apart without a link per\nrecipient: one link per campaign target, and the delivery token as the subject.",[766,2173,779],{"id":2174},"redirect",[738,2176,2177,2178,784,2181,2184],{},"The redirect answers ",[742,2179,2180],{},"GET",[742,2182,2183],{},"HEAD"," and refuses other methods with a 405.",[1307,2186,2187,2197],{},[1310,2188,2189],{},[1313,2190,2191,2194],{},[1316,2192,2193],{},"Situation",[1316,2195,2196],{},"Answer",[1329,2198,2199,2210,2218],{},[1313,2200,2201,2204],{},[1334,2202,2203],{},"Active link",[1334,2205,2206,2207],{},"302 to the stored address, with ",[742,2208,2209],{},"cache-control: no-store",[1313,2211,2212,2215],{},[1334,2213,2214],{},"Unknown, expired or disabled code",[1334,2216,2217],{},"404",[1313,2219,2220,2223],{},[1334,2221,2222],{},"A subject longer than 200 characters or with other characters",[1334,2224,2217],{},[738,2226,2227],{},"It redirects only to the address stored on the link, never to anything in the request.",[738,2229,2230,2233,2234,2236,2237,2239,2240,2243],{},[777,2231,2232],{},"What counts as a click."," A ",[742,2235,2180],{}," from a browser counts. ",[742,2238,2183],{}," requests and link scanners do not: mail security\ngateways, Outlook and Office, chat apps that build previews, search bots and scripts. They still get the redirect. A\nclick raises the link's count and last click. With ",[742,2241,2242],{},"track"," on, the default, it also stores a click row with the time,\nthe subject and the host of the referring site. Then the hook runs.",[766,2245,242],{"id":2246},"hooks",[738,2248,2249,2250,2253],{},"Your app or module answers these Nitro hooks from a server plugin (",[742,2251,2252],{},"server\u002Fplugins\u002F*.ts",").",[1307,2255,2256,2269],{},[1310,2257,2258],{},[1313,2259,2260,2263,2266],{},[1316,2261,2262],{},"Hook",[1316,2264,2265],{},"Context",[1316,2267,2268],{},"When",[1329,2270,2271],{},[1313,2272,2273,2277,2282],{},[1334,2274,2275],{},[742,2276,759],{},[1334,2278,2279],{},[742,2280,2281],{},"{ event, link, subject }",[1334,2283,2284,2285,1467,2288,2291],{},"A person followed a link, before the redirect. ",[742,2286,2287],{},"subject",[742,2289,2290],{},"null"," without one.",[930,2293,2296],{"className":959,"code":2294,"filename":2295,"language":962,"meta":935,"style":935},"export default defineNitroPlugin((nitroApp) => {\n  nitroApp.hooks.hook('short-links:clicked', async ({ link, subject }) => {\n    if (link.owner.module !== 'campaigns' || !subject) return\n    await recordCampaignClick(link.owner.refId, subject) \u002F\u002F your own code\n  })\n})\n","server\u002Fplugins\u002Fcampaign-clicks.ts",[742,2297,2298,2321,2364,2405,2434,2441],{"__ignoreMap":935},[939,2299,2300,2302,2304,2307,2309,2311,2314,2317,2319],{"class":941,"line":942},[939,2301,970],{"class":969},[939,2303,973],{"class":969},[939,2305,2306],{"class":976}," defineNitroPlugin",[939,2308,981],{"class":980},[939,2310,981],{"class":984},[939,2312,2313],{"class":2043},"nitroApp",[939,2315,2316],{"class":984},")",[939,2318,1169],{"class":1162},[939,2320,1040],{"class":984},[939,2322,2323,2326,2328,2330,2332,2335,2337,2339,2341,2343,2345,2348,2351,2353,2355,2357,2360,2362],{"class":941,"line":988},[939,2324,2325],{"class":980},"  nitroApp",[939,2327,827],{"class":984},[939,2329,2246],{"class":980},[939,2331,827],{"class":984},[939,2333,2334],{"class":976},"hook",[939,2336,981],{"class":991},[939,2338,1001],{"class":984},[939,2340,759],{"class":949},[939,2342,1001],{"class":984},[939,2344,1008],{"class":984},[939,2346,2347],{"class":1162}," async",[939,2349,2350],{"class":984}," ({",[939,2352,1179],{"class":2043},[939,2354,1008],{"class":984},[939,2356,1661],{"class":2043},[939,2358,2359],{"class":984}," })",[939,2361,1169],{"class":1162},[939,2363,1040],{"class":984},[939,2365,2366,2369,2371,2373,2375,2378,2380,2383,2386,2388,2390,2392,2395,2398,2400,2402],{"class":941,"line":1032},[939,2367,2368],{"class":969},"    if",[939,2370,2049],{"class":991},[939,2372,1267],{"class":980},[939,2374,827],{"class":984},[939,2376,2377],{"class":980},"owner",[939,2379,827],{"class":984},[939,2381,2382],{"class":980},"module",[939,2384,2385],{"class":984}," !==",[939,2387,1011],{"class":984},[939,2389,2084],{"class":949},[939,2391,1001],{"class":984},[939,2393,2394],{"class":984}," ||",[939,2396,2397],{"class":984}," !",[939,2399,2287],{"class":980},[939,2401,1270],{"class":991},[939,2403,2404],{"class":969},"return\n",[939,2406,2407,2410,2413,2415,2417,2419,2421,2423,2425,2427,2429,2431],{"class":941,"line":1043},[939,2408,2409],{"class":969},"    await",[939,2411,2412],{"class":976}," recordCampaignClick",[939,2414,981],{"class":991},[939,2416,1267],{"class":980},[939,2418,827],{"class":984},[939,2420,2377],{"class":980},[939,2422,827],{"class":984},[939,2424,1975],{"class":980},[939,2426,1008],{"class":984},[939,2428,1661],{"class":980},[939,2430,1270],{"class":991},[939,2432,2433],{"class":1046},"\u002F\u002F your own code\n",[939,2435,2436,2439],{"class":941,"line":1050},[939,2437,2438],{"class":984},"  }",[939,2440,1079],{"class":991},[939,2442,2443,2445],{"class":941,"line":1067},[939,2444,1076],{"class":984},[939,2446,1079],{"class":980},[738,2448,2449],{},"A listener that throws is logged, and the visitor is still redirected. Keep listeners quick: the redirect waits for\nthem.",[766,2451,2453],{"id":2452},"routes","Routes",[738,2455,2456],{},"Routes the module registers, and who may call them.",[1307,2458,2459,2472],{},[1310,2460,2461],{},[1313,2462,2463,2466,2469],{},[1316,2464,2465],{},"Route",[1316,2467,2468],{},"Who",[1316,2470,2471],{},"What it does",[1329,2473,2474,2488,2529,2556,2570,2587,2601],{},[1313,2475,2476,2482,2485],{},[1334,2477,2478,837,2480],{},[742,2479,783],{},[742,2481,787],{},[1334,2483,2484],{},"anyone",[1334,2486,2487],{},"The redirect.",[1313,2489,2490,2495,2499],{},[1334,2491,2492],{},[742,2493,2494],{},"GET \u002Fapi\u002Fadmin\u002Fshort-links",[1334,2496,2497],{},[742,2498,826],{},[1334,2500,2501,2502,2049,2505,837,2508,2511,2512,837,2515,837,2517,2049,2520,837,2523,837,2526,2253],{},"Every link, paginated. Filters: ",[742,2503,2504],{},"source",[742,2506,2507],{},"manual",[742,2509,2510],{},"modules","), ",[742,2513,2514],{},"q",[742,2516,2377],{},[742,2518,2519],{},"status",[742,2521,2522],{},"active",[742,2524,2525],{},"expired",[742,2527,2528],{},"disabled",[1313,2530,2531,2536,2540],{},[1334,2532,2533],{},[742,2534,2535],{},"POST \u002Fapi\u002Fadmin\u002Fshort-links",[1334,2537,2538],{},[742,2539,826],{},[1334,2541,2542,2543,837,2545,837,2547,837,2550,837,2552,837,2554,2253],{},"Make a link by hand (",[742,2544,2065],{},[742,2546,742],{},[742,2548,2549],{},"title",[742,2551,2003],{},[742,2553,877],{},[742,2555,2242],{},[1313,2557,2558,2563,2567],{},[1334,2559,2560],{},[742,2561,2562],{},"GET \u002Fapi\u002Fadmin\u002Fshort-links\u002Fowners",[1334,2564,2565],{},[742,2566,826],{},[1334,2568,2569],{},"The owner modules that have links.",[1313,2571,2572,2577,2581],{},[1334,2573,2574],{},[742,2575,2576],{},"PATCH \u002Fapi\u002Fadmin\u002Fshort-links\u002F:id",[1334,2578,2579],{},[742,2580,826],{},[1334,2582,2583,2584,827],{},"Edit a link made by hand. Another module's link is a ",[742,2585,2586],{},"409 owned_link",[1313,2588,2589,2594,2598],{},[1334,2590,2591],{},[742,2592,2593],{},"POST \u002Fapi\u002Fadmin\u002Fshort-links\u002F:id\u002Fdisable",[1334,2595,2596],{},[742,2597,826],{},[1334,2599,2600],{},"Disable any link.",[1313,2602,2603,2608,2612],{},[1334,2604,2605],{},[742,2606,2607],{},"POST \u002Fapi\u002Fadmin\u002Fshort-links\u002F:id\u002Fenable",[1334,2609,2610],{},[742,2611,826],{},[1334,2613,2614],{},"Enable a disabled link again.",[738,2616,2617,2618,2621,2622,827],{},"The path builders are in ",[742,2619,2620],{},"shortLinksApi"," from ",[742,2623,2624],{},"@frigear-nu\u002Fshort-links\u002Fapi",[766,2626,2628],{"id":2627},"permissions","Permissions",[1307,2630,2631,2643],{},[1310,2632,2633],{},[1313,2634,2635,2638,2640],{},[1316,2636,2637],{},"Permission",[1316,2639,2468],{},[1316,2641,2642],{},"What it allows",[1329,2644,2645],{},[1313,2646,2647,2651,2657],{},[1334,2648,2649],{},[742,2650,826],{},[1334,2652,2653,2654,2656],{},"the ",[742,2655,1132],{}," role",[1334,2658,2659],{},"See every link and its clicks, make and edit links by hand, and disable any link.",[766,2661,40],{"id":2662},"database",[738,2664,2665,2666,2668],{},"Tables the module adds. Generate and commit a ",[762,2667,1096],{"href":41}," after installing.",[1307,2670,2671,2681],{},[1310,2672,2673],{},[1313,2674,2675,2678],{},[1316,2676,2677],{},"Table",[1316,2679,2680],{},"What it holds",[1329,2682,2683,2723],{},[1313,2684,2685,2689],{},[1334,2686,2687],{},[742,2688,1100],{},[1334,2690,2691,2692,2694,2695,837,2697,837,2700,837,2703,837,2705,837,2707,837,2709,837,2711,837,2714,837,2717,837,2720,827],{},"One row per link: ",[742,2693,742],{}," (unique), ",[742,2696,2065],{},[742,2698,2699],{},"ownerModule",[742,2701,2702],{},"ownerRefId",[742,2704,2549],{},[742,2706,2242],{},[742,2708,2003],{},[742,2710,877],{},[742,2712,2713],{},"disabledAt",[742,2715,2716],{},"clicks",[742,2718,2719],{},"lastClickedAt",[742,2721,2722],{},"createdBy",[1313,2724,2725,2729],{},[1334,2726,2727],{},[742,2728,1103],{},[1334,2730,2731,2732,2734,2735,837,2738,837,2741,837,2743,2746],{},"One row per counted click of a link with ",[742,2733,2242],{}," on: ",[742,2736,2737],{},"linkId",[742,2739,2740],{},"at",[742,2742,2287],{},[742,2744,2745],{},"referrerHost",". No IP address or user agent.",[766,2748,493],{"id":2749},"translations",[738,2751,2752,2753,2756,2757,2759],{},"Override any string in your app's ",[742,2754,2755],{},"i18n\u002Flocales\u002F\u003Ccode>.json",", under the ",[742,2758,1086],{}," key. The module ships Danish and\nEnglish.",[766,2761,2763],{"id":2762},"next-steps","Next steps",[771,2765,2766,2771,2776],{},[774,2767,2768,2770],{},[762,2769,356],{"href":357}," – send the email or SMS that carries the short link.",[774,2772,2773,2775],{},[762,2774,296],{"href":297}," – a module that sends article links by SMS.",[774,2777,2778,2780],{},[762,2779,225],{"href":427}," – the admin area the short links page lives in.",[2782,2783,2784],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}html pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}",{"title":935,"searchDepth":988,"depth":988,"links":2786},[2787,2788,2794,2797,2798,2799,2800,2801,2802,2803,2804],{"id":768,"depth":988,"text":769},{"id":919,"depth":988,"text":920,"children":2789},[2790,2791,2792,2793],{"id":927,"depth":1032,"text":928},{"id":1107,"depth":1032,"text":1108},{"id":1123,"depth":1032,"text":1124},{"id":1141,"depth":1032,"text":1142},{"id":1298,"depth":988,"text":1299,"children":2795},[2796],{"id":1507,"depth":1032,"text":1508},{"id":1551,"depth":988,"text":1552},{"id":2174,"depth":988,"text":779},{"id":2246,"depth":988,"text":242},{"id":2452,"depth":988,"text":2453},{"id":2627,"depth":988,"text":2628},{"id":2662,"depth":988,"text":40},{"id":2749,"depth":988,"text":493},{"id":2762,"depth":988,"text":2763},"Short, trackable links for emails and SMS that any module can make, with click counts and a hook that tells the owner who clicked.","md",null,{},{"title":385,"description":2805},"1Ywr8PTF5FvN98OeAq3u7KL88QgDgGVLFp-H9aJHxBk",[2812,2814],{"title":381,"path":382,"stem":383,"description":2813,"children":-1},"Shared support inboxes. Staff read and answer messages from the contact form, email, WhatsApp, Messenger and Instagram in one place.",{"title":389,"path":390,"stem":391,"description":2815,"children":-1},"Lists people sign up to, also without an account, and campaigns to their subscribers and to users by email, SMS and push, with link and open tracking and one-click unsubscribe.",1796157344803]