[{"data":1,"prerenderedAt":1802},["ShallowReactive",2],{"navigation":3,"\u002Fextending-the-cwa\u002Fregistering-an-extension":630,"\u002Fextending-the-cwa\u002Fregistering-an-extension-surround":1797},[4,24,67,93,240,541,559],{"title":5,"path":6,"stem":7,"children":8,"collapsed":23},"Getting Started","\u002Fgetting-started","1.getting-started\u002F1.index",[9,11,15,19],{"title":10,"path":6,"stem":7},"Introduction",{"title":12,"path":13,"stem":14},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation",{"title":16,"path":17,"stem":18},"Key Ideas","\u002Fgetting-started\u002Fkey-ideas","1.getting-started\u002F3.key-ideas",{"title":20,"path":21,"stem":22},"Releases","\u002Fgetting-started\u002Freleases","1.getting-started\u002F4.releases",true,{"title":25,"path":26,"stem":27,"children":28,"collapsed":23},"Core Concepts","\u002Fcore-concepts","2.core-concepts\u002F0.index",[29,31,35,39,43,47,51,55,59,63],{"title":30,"path":26,"stem":27},"Overview",{"title":32,"path":33,"stem":34},"How It All Works","\u002Fcore-concepts\u002Farchitecture","2.core-concepts\u002F1.architecture",{"title":36,"path":37,"stem":38},"The Data Model","\u002Fcore-concepts\u002Fthe-data-model","2.core-concepts\u002F2.the-data-model",{"title":40,"path":41,"stem":42},"Layouts & Pages","\u002Fcore-concepts\u002Flayouts-and-pages","2.core-concepts\u002F3.layouts-and-pages",{"title":44,"path":45,"stem":46},"Dynamic Pages","\u002Fcore-concepts\u002Fdynamic-pages","2.core-concepts\u002F4.dynamic-pages",{"title":48,"path":49,"stem":50},"Components","\u002Fcore-concepts\u002Fcomponents","2.core-concepts\u002F5.components",{"title":52,"path":53,"stem":54},"Draft & Publish Workflow","\u002Fcore-concepts\u002Fdraft-and-publish","2.core-concepts\u002F6.draft-and-publish",{"title":56,"path":57,"stem":58},"The Admin Panel","\u002Fcore-concepts\u002Fadmin-panel","2.core-concepts\u002F7.admin-panel",{"title":60,"path":61,"stem":62},"Caching","\u002Fcore-concepts\u002Fcaching","2.core-concepts\u002F8.caching",{"title":64,"path":65,"stem":66},"Glossary","\u002Fcore-concepts\u002Fglossary","2.core-concepts\u002F9.glossary",{"title":68,"path":69,"stem":70,"children":71,"collapsed":23},"Guides","\u002Fguides","3.guides\u002F0.index",[72,73,77,81,85,89],{"title":30,"path":69,"stem":70},{"title":74,"path":75,"stem":76},"Your First Layout","\u002Fguides\u002Fyour-first-layout","3.guides\u002F1.your-first-layout",{"title":78,"path":79,"stem":80},"Your First Page Template","\u002Fguides\u002Fyour-first-page-template","3.guides\u002F2.your-first-page-template",{"title":82,"path":83,"stem":84},"Your First Component","\u002Fguides\u002Fyour-first-component","3.guides\u002F3.your-first-component",{"title":86,"path":87,"stem":88},"Alternative UI Variants","\u002Fguides\u002Falternative-ui-variants","3.guides\u002F4.alternative-ui-variants",{"title":90,"path":91,"stem":92},"Your First Dynamic Page","\u002Fguides\u002Fyour-first-dynamic-page","3.guides\u002F5.your-first-dynamic-page",{"title":94,"path":95,"stem":96,"children":97,"collapsed":23},"API Bundle (Back-End)","\u002Fapi","4.api\u002F0.index",[98,99,103,107,133,179,183,187,216,220,224,228,232,236],{"title":30,"path":95,"stem":96},{"title":100,"path":101,"stem":102},"Bundle Setup","\u002Fapi\u002Fbundle-setup","4.api\u002F02.bundle-setup",{"title":104,"path":105,"stem":106},"Configuration Reference","\u002Fapi\u002Fconfiguration","4.api\u002F03.configuration",{"title":108,"path":109,"stem":110,"children":111,"page":132},"Users","\u002Fapi\u002Fusers","4.api\u002F04.users",[112,116,120,124,128],{"title":113,"path":114,"stem":115},"Authentication","\u002Fapi\u002Fusers\u002Fauthentication","4.api\u002F04.users\u002F1.authentication",{"title":117,"path":118,"stem":119},"User Emails","\u002Fapi\u002Fusers\u002Fuser-emails","4.api\u002F04.users\u002F2.user-emails",{"title":121,"path":122,"stem":123},"Access Control","\u002Fapi\u002Fusers\u002Faccess-control","4.api\u002F04.users\u002F3.access-control",{"title":125,"path":126,"stem":127},"Sites with Non-Admin Users","\u002Fapi\u002Fusers\u002Fnon-admin-users","4.api\u002F04.users\u002F4.non-admin-users",{"title":129,"path":130,"stem":131},"Admin Roles","\u002Fapi\u002Fusers\u002Fadmin-roles","4.api\u002F04.users\u002F5.admin-roles",false,{"title":48,"path":134,"stem":135,"children":136,"page":132},"\u002Fapi\u002Fcomponents","4.api\u002F05.components",[137,141,162,175],{"title":138,"path":139,"stem":140},"Creating Components","\u002Fapi\u002Fcomponents\u002Fcreating-components","4.api\u002F05.components\u002F1.creating-components",{"title":142,"path":143,"stem":144,"children":145,"page":132},"Annotations","\u002Fapi\u002Fcomponents\u002Fannotations","4.api\u002F05.components\u002F2.annotations",[146,150,154,158],{"title":147,"path":148,"stem":149},"Publishable","\u002Fapi\u002Fcomponents\u002Fannotations\u002Fpublishable","4.api\u002F05.components\u002F2.annotations\u002F1.publishable",{"title":151,"path":152,"stem":153},"Uploadable","\u002Fapi\u002Fcomponents\u002Fannotations\u002Fuploadable","4.api\u002F05.components\u002F2.annotations\u002F2.uploadable",{"title":155,"path":156,"stem":157},"Timestamped","\u002Fapi\u002Fcomponents\u002Fannotations\u002Ftimestamped","4.api\u002F05.components\u002F2.annotations\u002F3.timestamped",{"title":159,"path":160,"stem":161},"Explicit Allow Only","\u002Fapi\u002Fcomponents\u002Fannotations\u002Fexplicit-allow-only","4.api\u002F05.components\u002F2.annotations\u002F4.explicit-allow-only",{"title":163,"path":164,"stem":165,"children":166,"page":132},"Built Ins","\u002Fapi\u002Fcomponents\u002Fbuilt-ins","4.api\u002F05.components\u002F3.built-ins",[167,171],{"title":168,"path":169,"stem":170},"Collection Component","\u002Fapi\u002Fcomponents\u002Fbuilt-ins\u002Fcollection-component","4.api\u002F05.components\u002F3.built-ins\u002F1.collection-component",{"title":172,"path":173,"stem":174},"Form Component","\u002Fapi\u002Fcomponents\u002Fbuilt-ins\u002Fform-component","4.api\u002F05.components\u002F3.built-ins\u002F2.form-component",{"title":176,"path":177,"stem":178},"Groups & Positions","\u002Fapi\u002Fcomponents\u002Fcomponent-groups","4.api\u002F05.components\u002F4.component-groups",{"title":180,"path":181,"stem":182},"Page Data & Nested Pages","\u002Fapi\u002Fdynamic-pages","4.api\u002F06.dynamic-pages",{"title":184,"path":185,"stem":186},"Routes","\u002Fapi\u002Froutes","4.api\u002F07.routes",{"title":188,"path":189,"stem":190,"children":191,"page":132},"Data Fixtures","\u002Fapi\u002Fdata-fixtures","4.api\u002F08.data-fixtures",[192,196,200,204,208,212],{"title":193,"path":194,"stem":195},"Getting Started with Fixtures","\u002Fapi\u002Fdata-fixtures\u002Fgetting-started","4.api\u002F08.data-fixtures\u002F1.getting-started",{"title":197,"path":198,"stem":199},"Writing a Scaffold","\u002Fapi\u002Fdata-fixtures\u002Fwriting-a-scaffold","4.api\u002F08.data-fixtures\u002F2.writing-a-scaffold",{"title":201,"path":202,"stem":203},"Builder Reference","\u002Fapi\u002Fdata-fixtures\u002Fbuilder-reference","4.api\u002F08.data-fixtures\u002F3.builder-reference",{"title":205,"path":206,"stem":207},"Seeding Content","\u002Fapi\u002Fdata-fixtures\u002Fseeding-content","4.api\u002F08.data-fixtures\u002F4.seeding-content",{"title":209,"path":210,"stem":211},"Appending & Multiple Scaffolds","\u002Fapi\u002Fdata-fixtures\u002Fappending","4.api\u002F08.data-fixtures\u002F5.appending",{"title":213,"path":214,"stem":215},"Generating Fixtures","\u002Fapi\u002Fdata-fixtures\u002Fgenerating-fixtures","4.api\u002F08.data-fixtures\u002F6.generating-fixtures",{"title":217,"path":218,"stem":219},"Real-Time (Mercure)","\u002Fapi\u002Freal-time","4.api\u002F09.real-time",{"title":221,"path":222,"stem":223},"Versions & Conflicts","\u002Fapi\u002Fversions-and-conflicts","4.api\u002F09.versions-and-conflicts",{"title":225,"path":226,"stem":227},"HTTP Caching","\u002Fapi\u002Fhttp-caching","4.api\u002F10.http-caching",{"title":229,"path":230,"stem":231},"Orphaned Data","\u002Fapi\u002Forphaned-data","4.api\u002F11.orphaned-data",{"title":233,"path":234,"stem":235},"Console Commands","\u002Fapi\u002Fconsole-commands","4.api\u002F12.console-commands",{"title":237,"path":238,"stem":239},"Debugging & Errors","\u002Fapi\u002Fdebugging","4.api\u002F13.debugging",{"title":241,"path":242,"stem":243,"children":244,"collapsed":23},"Nuxt Module (Front-End)","\u002Fnuxt-module","5.nuxt-module\u002F0.index",[245,246,250,263,287,316,337,468,502,505,533,537],{"title":30,"path":242,"stem":243},{"title":247,"path":248,"stem":249},"Module Setup","\u002Fnuxt-module\u002Fmodule-setup","5.nuxt-module\u002F01.module-setup",{"title":251,"path":252,"stem":253,"children":254,"page":132},"Configuration","\u002Fnuxt-module\u002Fconfiguration","5.nuxt-module\u002F02.configuration",[255,259],{"title":256,"path":257,"stem":258},"Nuxt Config","\u002Fnuxt-module\u002Fconfiguration\u002Fnuxt-config","5.nuxt-module\u002F02.configuration\u002F1.nuxt-config",{"title":260,"path":261,"stem":262},"Site Config & SEO","\u002Fnuxt-module\u002Fconfiguration\u002Fsite-config-and-seo","5.nuxt-module\u002F02.configuration\u002F2.site-config-and-seo",{"title":264,"path":265,"stem":266,"children":267,"page":132},"Building Your Ui","\u002Fnuxt-module\u002Fbuilding-your-ui","5.nuxt-module\u002F03.building-your-ui",[268,272,276,279,283],{"title":269,"path":270,"stem":271},"Layouts","\u002Fnuxt-module\u002Fbuilding-your-ui\u002Fcreating-layouts","5.nuxt-module\u002F03.building-your-ui\u002F1.creating-layouts",{"title":273,"path":274,"stem":275},"Page Templates","\u002Fnuxt-module\u002Fbuilding-your-ui\u002Fcreating-page-templates","5.nuxt-module\u002F03.building-your-ui\u002F2.creating-page-templates",{"title":48,"path":277,"stem":278},"\u002Fnuxt-module\u002Fbuilding-your-ui\u002Fcreating-components","5.nuxt-module\u002F03.building-your-ui\u002F3.creating-components",{"title":280,"path":281,"stem":282},"CLI Generator","\u002Fnuxt-module\u002Fbuilding-your-ui\u002Fcwa-cli","5.nuxt-module\u002F03.building-your-ui\u002F4.cwa-cli",{"title":284,"path":285,"stem":286},"Categorise and Restrict","\u002Fnuxt-module\u002Fbuilding-your-ui\u002Fcategorise-and-restrict","5.nuxt-module\u002F03.building-your-ui\u002F5.categorise-and-restrict",{"title":288,"path":289,"stem":290,"children":291,"page":132},"Component Helpers","\u002Fnuxt-module\u002Fcomponent-helpers","5.nuxt-module\u002F04.component-helpers",[292,296,300,304,308,312],{"title":293,"path":294,"stem":295},"Images & Media","\u002Fnuxt-module\u002Fcomponent-helpers\u002Fimages-and-uploads","5.nuxt-module\u002F04.component-helpers\u002F1.images-and-uploads",{"title":297,"path":298,"stem":299},"Collections & Pagination","\u002Fnuxt-module\u002Fcomponent-helpers\u002Fcollections-and-pagination","5.nuxt-module\u002F04.component-helpers\u002F2.collections-and-pagination",{"title":301,"path":302,"stem":303},"HTML Content","\u002Fnuxt-module\u002Fcomponent-helpers\u002Fhtml-content","5.nuxt-module\u002F04.component-helpers\u002F3.html-content",{"title":305,"path":306,"stem":307},"Rich-Text Editor","\u002Fnuxt-module\u002Fcomponent-helpers\u002Frich-text-editor","5.nuxt-module\u002F04.component-helpers\u002F4.rich-text-editor",{"title":309,"path":310,"stem":311},"Real-Time Updates","\u002Fnuxt-module\u002Fcomponent-helpers\u002Freal-time-updates","5.nuxt-module\u002F04.component-helpers\u002F5.real-time-updates",{"title":313,"path":314,"stem":315},"Forms","\u002Fnuxt-module\u002Fcomponent-helpers\u002Fforms","5.nuxt-module\u002F04.component-helpers\u002F6.forms",{"title":317,"path":318,"stem":319,"children":320,"page":132},"Cwa Components","\u002Fnuxt-module\u002Fcwa-components","5.nuxt-module\u002F05.cwa-components",[321,325,329,333],{"title":322,"path":323,"stem":324},"\u003CCwaComponentGroup \u002F>","\u002Fnuxt-module\u002Fcwa-components\u002Fcwa-component-group","5.nuxt-module\u002F05.cwa-components\u002F1.cwa-component-group",{"title":326,"path":327,"stem":328},"\u003CCwaPage \u002F>","\u002Fnuxt-module\u002Fcwa-components\u002Fcwa-page","5.nuxt-module\u002F05.cwa-components\u002F2.cwa-page",{"title":330,"path":331,"stem":332},"\u003CCwaLink \u002F>","\u002Fnuxt-module\u002Fcwa-components\u002Fcwa-link","5.nuxt-module\u002F05.cwa-components\u002F3.cwa-link",{"title":334,"path":335,"stem":336},"\u003CCwaDefaultLayout \u002F>","\u002Fnuxt-module\u002Fcwa-components\u002Fcwa-default-layout","5.nuxt-module\u002F05.cwa-components\u002F5.cwa-default-layout",{"title":338,"path":339,"stem":340,"children":341,"page":132},"Composables","\u002Fnuxt-module\u002Fcomposables","5.nuxt-module\u002F06.composables",[342,345,353,378,398,423,443],{"title":30,"path":343,"stem":344},"\u002Fnuxt-module\u002Fcomposables\u002Foverview","5.nuxt-module\u002F06.composables\u002F0.overview",{"title":346,"path":347,"stem":348,"children":349,"page":132},"Layout","\u002Fnuxt-module\u002Fcomposables\u002Flayout","5.nuxt-module\u002F06.composables\u002F1.layout",[350],{"title":346,"path":351,"stem":352},"\u002Fnuxt-module\u002Fcomposables\u002Flayout\u002Fuse-cwa-layout","5.nuxt-module\u002F06.composables\u002F1.layout\u002F1.use-cwa-layout",{"title":354,"path":355,"stem":356,"children":357,"page":132},"Component","\u002Fnuxt-module\u002Fcomposables\u002Fcomponent","5.nuxt-module\u002F06.composables\u002F2.component",[358,362,366,370,374],{"title":359,"path":360,"stem":361},"Component (recommended)","\u002Fnuxt-module\u002Fcomposables\u002Fcomponent\u002Fuse-cwa-component","5.nuxt-module\u002F06.composables\u002F2.component\u002F1.use-cwa-component",{"title":363,"path":364,"stem":365},"Resource","\u002Fnuxt-module\u002Fcomposables\u002Fcomponent\u002Fuse-cwa-resource","5.nuxt-module\u002F06.composables\u002F2.component\u002F2.use-cwa-resource",{"title":367,"path":368,"stem":369},"File Field","\u002Fnuxt-module\u002Fcomposables\u002Fcomponent\u002Fuse-cwa-file-field","5.nuxt-module\u002F06.composables\u002F2.component\u002F3.use-cwa-file-field",{"title":371,"path":372,"stem":373},"Collection Pagination","\u002Fnuxt-module\u002Fcomposables\u002Fcomponent\u002Fuse-cwa-collection-pagination","5.nuxt-module\u002F06.composables\u002F2.component\u002F4.use-cwa-collection-pagination",{"title":375,"path":376,"stem":377},"Collection Resource (deprecated)","\u002Fnuxt-module\u002Fcomposables\u002Fcomponent\u002Fuse-cwa-collection-resource","5.nuxt-module\u002F06.composables\u002F2.component\u002F9.use-cwa-collection-resource",{"title":379,"path":380,"stem":381,"children":382,"page":132},"Form","\u002Fnuxt-module\u002Fcomposables\u002Fform","5.nuxt-module\u002F06.composables\u002F3.form",[383,386,390,394],{"title":379,"path":384,"stem":385},"\u002Fnuxt-module\u002Fcomposables\u002Fform\u002Fuse-cwa-form","5.nuxt-module\u002F06.composables\u002F3.form\u002F1.use-cwa-form",{"title":387,"path":388,"stem":389},"Form Input","\u002Fnuxt-module\u002Fcomposables\u002Fform\u002Fuse-cwa-form-input","5.nuxt-module\u002F06.composables\u002F3.form\u002F2.use-cwa-form-input",{"title":391,"path":392,"stem":393},"Form Repeated","\u002Fnuxt-module\u002Fcomposables\u002Fform\u002Fuse-cwa-form-repeated","5.nuxt-module\u002F06.composables\u002F3.form\u002F3.use-cwa-form-repeated",{"title":395,"path":396,"stem":397},"Form Collection","\u002Fnuxt-module\u002Fcomposables\u002Fform\u002Fuse-cwa-form-collection","5.nuxt-module\u002F06.composables\u002F3.form\u002F4.use-cwa-form-collection",{"title":399,"path":400,"stem":401,"children":402,"page":132},"Admin Manager","\u002Fnuxt-module\u002Fcomposables\u002Fadmin-manager","5.nuxt-module\u002F06.composables\u002F4.admin-manager",[403,407,411,415,419],{"title":404,"path":405,"stem":406},"Manager Tab","\u002Fnuxt-module\u002Fcomposables\u002Fadmin-manager\u002Fuse-cwa-resource-manager-tab","5.nuxt-module\u002F06.composables\u002F4.admin-manager\u002F1.use-cwa-resource-manager-tab",{"title":408,"path":409,"stem":410},"Resource Model","\u002Fnuxt-module\u002Fcomposables\u002Fadmin-manager\u002Fuse-cwa-resource-model","5.nuxt-module\u002F06.composables\u002F4.admin-manager\u002F2.use-cwa-resource-model",{"title":412,"path":413,"stem":414},"Resource Upload","\u002Fnuxt-module\u002Fcomposables\u002Fadmin-manager\u002Fuse-cwa-resource-upload","5.nuxt-module\u002F06.composables\u002F4.admin-manager\u002F3.use-cwa-resource-upload",{"title":416,"path":417,"stem":418},"Remote Changes","\u002Fnuxt-module\u002Fcomposables\u002Fadmin-manager\u002Fon-remote-change","5.nuxt-module\u002F06.composables\u002F4.admin-manager\u002F4.on-remote-change",{"title":420,"path":421,"stem":422},"Real-Time Events","\u002Fnuxt-module\u002Fcomposables\u002Fadmin-manager\u002Fuse-cwa-realtime","5.nuxt-module\u002F06.composables\u002F4.admin-manager\u002F5.use-cwa-realtime",{"title":424,"path":425,"stem":426,"children":427,"page":132},"Utilities","\u002Fnuxt-module\u002Fcomposables\u002Futilities","5.nuxt-module\u002F06.composables\u002F5.utilities",[428,432,436,440],{"title":429,"path":430,"stem":431},"Resource Endpoint","\u002Fnuxt-module\u002Fcomposables\u002Futilities\u002Fuse-cwa-resource-endpoint","5.nuxt-module\u002F06.composables\u002F5.utilities\u002F1.use-cwa-resource-endpoint",{"title":433,"path":434,"stem":435},"Query Model","\u002Fnuxt-module\u002Fcomposables\u002Futilities\u002Fuse-query-bound-model","5.nuxt-module\u002F06.composables\u002F5.utilities\u002F2.use-query-bound-model",{"title":437,"path":438,"stem":439},"Resource Route","\u002Fnuxt-module\u002Fcomposables\u002Futilities\u002Fuse-cwa-resource-route","5.nuxt-module\u002F06.composables\u002F5.utilities\u002F3.use-cwa-resource-route",{"title":301,"path":441,"stem":442},"\u002Fnuxt-module\u002Fcomposables\u002Futilities\u002Fuse-html-content","5.nuxt-module\u002F06.composables\u002F5.utilities\u002F4.use-html-content",{"title":444,"path":445,"stem":446,"children":447,"page":132},"Auth","\u002Fnuxt-module\u002Fcomposables\u002Fauth","5.nuxt-module\u002F06.composables\u002F6.auth",[448,452,456,460,464],{"title":449,"path":450,"stem":451},"Login","\u002Fnuxt-module\u002Fcomposables\u002Fauth\u002Fuse-login","5.nuxt-module\u002F06.composables\u002F6.auth\u002F1.use-login",{"title":453,"path":454,"stem":455},"Forgot Password","\u002Fnuxt-module\u002Fcomposables\u002Fauth\u002Fuse-forgot-password","5.nuxt-module\u002F06.composables\u002F6.auth\u002F2.use-forgot-password",{"title":457,"path":458,"stem":459},"Reset Password","\u002Fnuxt-module\u002Fcomposables\u002Fauth\u002Fuse-reset-password","5.nuxt-module\u002F06.composables\u002F6.auth\u002F3.use-reset-password",{"title":461,"path":462,"stem":463},"Verify Email","\u002Fnuxt-module\u002Fcomposables\u002Fauth\u002Fuse-verify-email","5.nuxt-module\u002F06.composables\u002F6.auth\u002F4.use-verify-email",{"title":465,"path":466,"stem":467},"Resend Verify Email","\u002Fnuxt-module\u002Fcomposables\u002Fauth\u002Fuse-resend-verify-email","5.nuxt-module\u002F06.composables\u002F6.auth\u002F5.use-resend-verify-email",{"title":469,"path":470,"stem":471,"children":472,"page":132},"Cwa Api","\u002Fnuxt-module\u002Fcwa-api","5.nuxt-module\u002F07.cwa-api",[473,476,480,484,487,490,494,498],{"title":30,"path":474,"stem":475},"\u002Fnuxt-module\u002Fcwa-api\u002Foverview","5.nuxt-module\u002F07.cwa-api\u002F1.overview",{"title":477,"path":478,"stem":479},"Resources","\u002Fnuxt-module\u002Fcwa-api\u002Fresources","5.nuxt-module\u002F07.cwa-api\u002F2.resources",{"title":481,"path":482,"stem":483},"Resources Manager","\u002Fnuxt-module\u002Fcwa-api\u002Fresources-manager","5.nuxt-module\u002F07.cwa-api\u002F3.resources-manager",{"title":444,"path":485,"stem":486},"\u002Fnuxt-module\u002Fcwa-api\u002Fauth","5.nuxt-module\u002F07.cwa-api\u002F4.auth",{"title":313,"path":488,"stem":489},"\u002Fnuxt-module\u002Fcwa-api\u002Fforms","5.nuxt-module\u002F07.cwa-api\u002F5.forms",{"title":491,"path":492,"stem":493},"Admin","\u002Fnuxt-module\u002Fcwa-api\u002Fadmin","5.nuxt-module\u002F07.cwa-api\u002F6.admin",{"title":495,"path":496,"stem":497},"Site Config","\u002Fnuxt-module\u002Fcwa-api\u002Fsite-config","5.nuxt-module\u002F07.cwa-api\u002F7.site-config",{"title":499,"path":500,"stem":501},"Orphaned Resources","\u002Fnuxt-module\u002Fcwa-api\u002Forphaned-resources","5.nuxt-module\u002F07.cwa-api\u002F8.orphaned-resources",{"title":113,"path":503,"stem":504},"\u002Fnuxt-module\u002Fauthentication","5.nuxt-module\u002F08.authentication",{"title":506,"path":507,"stem":508,"children":509,"page":132},"Cwa Layer","\u002Fnuxt-module\u002Fcwa-layer","5.nuxt-module\u002F9.cwa-layer",[510,513,517,521,525,529],{"title":30,"path":511,"stem":512},"\u002Fnuxt-module\u002Fcwa-layer\u002Foverview","5.nuxt-module\u002F9.cwa-layer\u002F1.overview",{"title":514,"path":515,"stem":516},"Auth Pages","\u002Fnuxt-module\u002Fcwa-layer\u002Fauth-pages","5.nuxt-module\u002F9.cwa-layer\u002F2.auth-pages",{"title":518,"path":519,"stem":520},"Admin Panel","\u002Fnuxt-module\u002Fcwa-layer\u002Fadmin-panel","5.nuxt-module\u002F9.cwa-layer\u002F3.admin-panel",{"title":522,"path":523,"stem":524},"Styling","\u002Fnuxt-module\u002Fcwa-layer\u002Fstyling","5.nuxt-module\u002F9.cwa-layer\u002F4.styling",{"title":526,"path":527,"stem":528},"Date Pickers","\u002Fnuxt-module\u002Fcwa-layer\u002Fdate-pickers","5.nuxt-module\u002F9.cwa-layer\u002F5.date-pickers",{"title":530,"path":531,"stem":532},"Maintenance","\u002Fnuxt-module\u002Fcwa-layer\u002Fmaintenance","5.nuxt-module\u002F9.cwa-layer\u002F6.maintenance",{"title":534,"path":535,"stem":536},"PWA & Offline","\u002Fnuxt-module\u002Fpwa","5.nuxt-module\u002F91.pwa",{"title":538,"path":539,"stem":540},"Page Caching","\u002Fnuxt-module\u002Fpage-caching","5.nuxt-module\u002F92.page-caching",{"title":542,"path":543,"stem":544,"children":545,"collapsed":23},"Extending the CWA","\u002Fextending-the-cwa","55.extending-the-cwa\u002F0.index",[546,547,551,555],{"title":30,"path":543,"stem":544},{"title":548,"path":549,"stem":550},"Registering an Extension","\u002Fextending-the-cwa\u002Fregistering-an-extension","55.extending-the-cwa\u002F1.registering-an-extension",{"title":552,"path":553,"stem":554},"Admin Pages","\u002Fextending-the-cwa\u002Fadmin-pages","55.extending-the-cwa\u002F2.admin-pages",{"title":556,"path":557,"stem":558},"Sign-In and Sign-Out Events","\u002Fextending-the-cwa\u002Fauth-events","55.extending-the-cwa\u002F3.auth-events",{"title":560,"path":561,"stem":562,"children":563,"collapsed":23},"Deployment & Operations","\u002Fdeployment","6.deployment\u002F0.index",[564,566,570,574,578,582,586,590,594,598,602,606,610,614,618,622,626],{"title":565,"path":561,"stem":562},"Deploying a CWA Site",{"title":567,"path":568,"stem":569},"Docker","\u002Fdeployment\u002Fdocker","6.deployment\u002F1.docker",{"title":571,"path":572,"stem":573},"Deploy to One Server","\u002Fdeployment\u002Fone-server","6.deployment\u002F1.one-server",{"title":575,"path":576,"stem":577},"Kubernetes & Helm","\u002Fdeployment\u002Fkubernetes","6.deployment\u002F2.kubernetes",{"title":579,"path":580,"stem":581},"Moving From One Server to Kubernetes","\u002Fdeployment\u002Fmoving-to-kubernetes","6.deployment\u002F2.moving-to-kubernetes",{"title":583,"path":584,"stem":585},"Scaled Mode","\u002Fdeployment\u002Fscaled-mode","6.deployment\u002F2.scaled-mode",{"title":587,"path":588,"stem":589},"CI\u002FCD","\u002Fdeployment\u002Fci-cd","6.deployment\u002F3.ci-cd",{"title":591,"path":592,"stem":593},"Migrations and Backups","\u002Fdeployment\u002Fmigrations-and-backups","6.deployment\u002F3.migrations-and-backups",{"title":595,"path":596,"stem":597},"CI\u002FCD Variables","\u002Fdeployment\u002Fvariables","6.deployment\u002F4.variables",{"title":599,"path":600,"stem":601},"Cloudflare","\u002Fdeployment\u002Fcloudflare","6.deployment\u002F5.cloudflare",{"title":603,"path":604,"stem":605},"Origin Protection","\u002Fdeployment\u002Forigin-protection","6.deployment\u002F5.origin-protection",{"title":607,"path":608,"stem":609},"Load Testing","\u002Fdeployment\u002Fload-testing","6.deployment\u002F6.load-testing",{"title":611,"path":612,"stem":613},"Performance Audit","\u002Fdeployment\u002Fperformance-audit","6.deployment\u002F6.performance-audit",{"title":615,"path":616,"stem":617},"Reading Lighthouse Scores","\u002Fdeployment\u002Freading-lighthouse-scores","6.deployment\u002F6.reading-lighthouse-scores",{"title":619,"path":620,"stem":621},"Browser Tests","\u002Fdeployment\u002Fbrowser-tests","6.deployment\u002F7.browser-tests",{"title":623,"path":624,"stem":625},"Faster Functional Tests","\u002Fdeployment\u002Ffaster-functional-tests","6.deployment\u002F7.faster-functional-tests",{"title":627,"path":628,"stem":629},"Troubleshooting","\u002Fdeployment\u002Ftroubleshooting","6.deployment\u002F7.troubleshooting",{"id":631,"title":548,"badge":632,"body":633,"description":1792,"extension":1793,"links":632,"meta":1794,"navigation":23,"path":549,"seo":1795,"stem":550,"__hash__":1796},"docs\u002F55.extending-the-cwa\u002F1.registering-an-extension.md",null,{"type":634,"value":635,"toc":1782},"minimark",[636,649,654,1112,1122,1233,1236,1239,1257,1283,1290,1295,1303,1382,1403,1413,1418,1424,1432,1441,1444,1453,1494,1516,1523,1599,1602,1638,1643,1647,1650,1766,1773,1778],[637,638,639,640,644,645,648],"p",{},"An extension's Nuxt module registers with CWA in the ",[641,642,643],"code",{},"cwa:extend"," hook. It calls ",[641,646,647],{},"register()"," once, with a name, a prefix and what it adds.",[650,651,653],"h2",{"id":652},"the-module-file","The Module File",[655,656,661],"pre",{"className":657,"code":658,"language":659,"meta":660,"style":660},"language-ts shiki shiki-themes github-light github-dark material-theme-palenight has-focused","\u002F\u002F cwa-shop\u002Fmodule.ts\nimport { createResolver, defineNuxtModule } from '@nuxt\u002Fkit'\n\nexport default defineNuxtModule({\n  meta: { name: '@acme\u002Fcwa-shop' },\n  setup(_options, nuxt) {\n    const { resolve } = createResolver(import.meta.url)\n\n    nuxt.hook('cwa:extend', (register) => { \u002F\u002F [!code focus]\n      register({ \u002F\u002F [!code focus]\n        name: '@acme\u002Fcwa-shop', \u002F\u002F [!code focus]\n        prefix: 'Shop', \u002F\u002F [!code focus]\n        dir: resolve('.\u002Fcwa'), \u002F\u002F [!code focus]\n        adminPages: [\n          { path: 'shop-orders', file: resolve('.\u002Fadmin\u002Forders.vue'), item: resolve('.\u002Fadmin\u002Forder.vue'), menu: { label: 'Orders' } },\n        ],\n        pageCache: { '\u002Fbasket': false, '\u002Faccount\u002F**': false },\n      }) \u002F\u002F [!code focus]\n    }) \u002F\u002F [!code focus]\n  },\n})\n","ts","",[641,662,663,672,710,716,734,762,786,825,830,866,878,895,913,937,948,1031,1040,1079,1089,1098,1104],{"__ignoreMap":660},[664,665,668],"span",{"class":666,"line":667},"line",1,[664,669,671],{"class":670},"sTBSN","\u002F\u002F cwa-shop\u002Fmodule.ts\n",[664,673,675,679,683,687,690,693,696,699,703,707],{"class":666,"line":674},2,[664,676,678],{"class":677},"sm4w6","import",[664,680,682],{"class":681},"sOvfz"," {",[664,684,686],{"class":685},"sPB8G"," createResolver",[664,688,689],{"class":681},",",[664,691,692],{"class":685}," defineNuxtModule",[664,694,695],{"class":681}," }",[664,697,698],{"class":677}," from",[664,700,702],{"class":701},"seSrl"," '",[664,704,706],{"class":705},"sLL54","@nuxt\u002Fkit",[664,708,709],{"class":701},"'\n",[664,711,713],{"class":666,"line":712},3,[664,714,715],{"emptyLinePlaceholder":23},"\n",[664,717,719,722,725,728,731],{"class":666,"line":718},4,[664,720,721],{"class":677},"export",[664,723,724],{"class":677}," default",[664,726,692],{"class":727},"sKpYG",[664,729,730],{"class":685},"(",[664,732,733],{"class":681},"{\n",[664,735,737,741,744,746,749,751,753,756,759],{"class":666,"line":736},5,[664,738,740],{"class":739},"sDHlG","  meta",[664,742,743],{"class":681},":",[664,745,682],{"class":681},[664,747,748],{"class":739}," name",[664,750,743],{"class":681},[664,752,702],{"class":701},[664,754,755],{"class":705},"@acme\u002Fcwa-shop",[664,757,758],{"class":701},"'",[664,760,761],{"class":681}," },\n",[664,763,765,769,771,775,777,780,783],{"class":666,"line":764},6,[664,766,768],{"class":767},"sNbXC","  setup",[664,770,730],{"class":681},[664,772,774],{"class":773},"sNTR6","_options",[664,776,689],{"class":681},[664,778,779],{"class":773}," nuxt",[664,781,782],{"class":681},")",[664,784,785],{"class":681}," {\n",[664,787,789,793,795,799,801,805,807,809,811,814,817,819,822],{"class":666,"line":788},7,[664,790,792],{"class":791},"swB56","    const",[664,794,682],{"class":681},[664,796,798],{"class":797},"sc2zw"," resolve",[664,800,695],{"class":681},[664,802,804],{"class":803},"sVlFx"," =",[664,806,686],{"class":727},[664,808,730],{"class":739},[664,810,678],{"class":677},[664,812,813],{"class":681},".",[664,815,816],{"class":797},"meta",[664,818,813],{"class":681},[664,820,821],{"class":685},"url",[664,823,824],{"class":739},")\n",[664,826,828],{"class":666,"line":827},8,[664,829,715],{"emptyLinePlaceholder":23},[664,831,835,838,840,843,845,847,849,851,853,856,859,861,864],{"class":832,"line":834},[666,833],"focused",9,[664,836,837],{"class":685},"    nuxt",[664,839,813],{"class":681},[664,841,842],{"class":727},"hook",[664,844,730],{"class":739},[664,846,758],{"class":701},[664,848,643],{"class":705},[664,850,758],{"class":701},[664,852,689],{"class":681},[664,854,855],{"class":681}," (",[664,857,858],{"class":773},"register",[664,860,782],{"class":681},[664,862,863],{"class":791}," =>",[664,865,682],{"class":681},[664,867,870,873,875],{"class":868,"line":869},[666,833],10,[664,871,872],{"class":727},"      register",[664,874,730],{"class":739},[664,876,877],{"class":681},"{",[664,879,882,885,887,889,891,893],{"class":880,"line":881},[666,833],11,[664,883,884],{"class":739},"        name",[664,886,743],{"class":681},[664,888,702],{"class":701},[664,890,755],{"class":705},[664,892,758],{"class":701},[664,894,689],{"class":681},[664,896,899,902,904,906,909,911],{"class":897,"line":898},[666,833],12,[664,900,901],{"class":739},"        prefix",[664,903,743],{"class":681},[664,905,702],{"class":701},[664,907,908],{"class":705},"Shop",[664,910,758],{"class":701},[664,912,689],{"class":681},[664,914,917,920,922,924,926,928,931,933,935],{"class":915,"line":916},[666,833],13,[664,918,919],{"class":739},"        dir",[664,921,743],{"class":681},[664,923,798],{"class":727},[664,925,730],{"class":739},[664,927,758],{"class":701},[664,929,930],{"class":705},".\u002Fcwa",[664,932,758],{"class":701},[664,934,782],{"class":739},[664,936,689],{"class":681},[664,938,940,943,945],{"class":666,"line":939},14,[664,941,942],{"class":739},"        adminPages",[664,944,743],{"class":681},[664,946,947],{"class":739}," [\n",[664,949,951,954,957,959,961,964,966,968,971,973,975,977,979,982,984,986,988,991,993,995,997,999,1002,1004,1006,1008,1011,1013,1015,1018,1020,1022,1025,1027,1029],{"class":666,"line":950},15,[664,952,953],{"class":681},"          {",[664,955,956],{"class":739}," path",[664,958,743],{"class":681},[664,960,702],{"class":701},[664,962,963],{"class":705},"shop-orders",[664,965,758],{"class":701},[664,967,689],{"class":681},[664,969,970],{"class":739}," file",[664,972,743],{"class":681},[664,974,798],{"class":727},[664,976,730],{"class":739},[664,978,758],{"class":701},[664,980,981],{"class":705},".\u002Fadmin\u002Forders.vue",[664,983,758],{"class":701},[664,985,782],{"class":739},[664,987,689],{"class":681},[664,989,990],{"class":739}," item",[664,992,743],{"class":681},[664,994,798],{"class":727},[664,996,730],{"class":739},[664,998,758],{"class":701},[664,1000,1001],{"class":705},".\u002Fadmin\u002Forder.vue",[664,1003,758],{"class":701},[664,1005,782],{"class":739},[664,1007,689],{"class":681},[664,1009,1010],{"class":739}," menu",[664,1012,743],{"class":681},[664,1014,682],{"class":681},[664,1016,1017],{"class":739}," label",[664,1019,743],{"class":681},[664,1021,702],{"class":701},[664,1023,1024],{"class":705},"Orders",[664,1026,758],{"class":701},[664,1028,695],{"class":681},[664,1030,761],{"class":681},[664,1032,1034,1037],{"class":666,"line":1033},16,[664,1035,1036],{"class":739},"        ]",[664,1038,1039],{"class":681},",\n",[664,1041,1043,1046,1048,1050,1052,1056,1058,1060,1064,1066,1068,1071,1073,1075,1077],{"class":666,"line":1042},17,[664,1044,1045],{"class":739},"        pageCache",[664,1047,743],{"class":681},[664,1049,682],{"class":681},[664,1051,702],{"class":701},[664,1053,1055],{"class":1054},"syBAL","\u002Fbasket",[664,1057,758],{"class":701},[664,1059,743],{"class":681},[664,1061,1063],{"class":1062},"swWMF"," false",[664,1065,689],{"class":681},[664,1067,702],{"class":701},[664,1069,1070],{"class":1054},"\u002Faccount\u002F**",[664,1072,758],{"class":701},[664,1074,743],{"class":681},[664,1076,1063],{"class":1062},[664,1078,761],{"class":681},[664,1080,1083,1086],{"class":1081,"line":1082},[666,833],18,[664,1084,1085],{"class":681},"      }",[664,1087,1088],{"class":739},") ",[664,1090,1093,1096],{"class":1091,"line":1092},[666,833],19,[664,1094,1095],{"class":681},"    }",[664,1097,1088],{"class":739},[664,1099,1101],{"class":666,"line":1100},20,[664,1102,1103],{"class":681},"  },\n",[664,1105,1107,1110],{"class":666,"line":1106},21,[664,1108,1109],{"class":681},"}",[664,1111,824],{"class":685},[637,1113,1114,1115,1118,1119,813],{},"CWA calls the hook once every module has set up, so the extension can be listed before or after ",[641,1116,1117],{},"@cwa\u002Fnuxt"," in the site's ",[641,1120,1121],{},"modules",[1123,1124,1125,1141],"table",{},[1126,1127,1128],"thead",{},[1129,1130,1131,1135,1138],"tr",{},[1132,1133,1134],"th",{},"Option",[1132,1136,1137],{},"Required",[1132,1139,1140],{},"What it does",[1142,1143,1144,1158,1175,1200,1217],"tbody",{},[1129,1145,1146,1152,1155],{},[1147,1148,1149],"td",{},[641,1150,1151],{},"name",[1147,1153,1154],{},"Yes",[1147,1156,1157],{},"The extension's name, used in build messages. Usually the package name",[1129,1159,1160,1165,1167],{},[1147,1161,1162],{},[641,1163,1164],{},"prefix",[1147,1166,1154],{},[1147,1168,1169,1170],{},"The PascalCase prefix every component, layout and page template name starts with. See ",[1171,1172,1174],"a",{"href":1173},"#the-prefix","The Prefix",[1129,1176,1177,1182,1185],{},[1147,1178,1179],{},[641,1180,1181],{},"dir",[1147,1183,1184],{},"No",[1147,1186,1187,1188,1191,1192],{},"An absolute path to a folder laid out like ",[641,1189,1190],{},"app\u002Fcwa\u002F",". See ",[1171,1193,1195,1196,1199],{"href":1194},"#the-cwa-folder","The ",[641,1197,1198],{},"cwa\u002F"," Folder",[1129,1201,1202,1207,1209],{},[1147,1203,1204],{},[641,1205,1206],{},"adminPages",[1147,1208,1184],{},[1147,1210,1211,1212,1191,1215],{},"Pages added under ",[641,1213,1214],{},"\u002F_cwa",[1171,1216,552],{"href":553},[1129,1218,1219,1224,1226],{},[1147,1220,1221],{},[641,1222,1223],{},"pageCache",[1147,1225,1184],{},[1147,1227,1228,1229],{},"Paths kept out of the shared page cache. See ",[1171,1230,1232],{"href":1231},"#paths-the-page-cache-skips","Paths the Page Cache Skips",[637,1234,1235],{},"An extension only adds. It can't remove or change CWA's own pages, components or settings.",[650,1237,1174],{"id":1238},"the-prefix",[637,1240,1241,1242,1244,1245,1248,1249,1252,1253,1256],{},"Every name in the extension's ",[641,1243,1198],{}," folder starts with its prefix: a folder ",[641,1246,1247],{},"ShopProductCard\u002F",", a layout ",[641,1250,1251],{},"ShopCheckout.vue",", a page template ",[641,1254,1255],{},"ShopProduct.vue",". The prefix stops two extensions, or an extension and a site, from using the same name by accident.",[1258,1259,1262],"callout",{"color":1260,"icon":1261},"warning","i-heroicons-exclamation-triangle",[637,1263,1264,1271,1272,1275,1276,1279,1280,1282],{},[1265,1266,1267,1268,813],"strong",{},"The prefix is PascalCase letters and digits, and doesn't start with ",[641,1269,1270],{},"Cwa"," Every name must start with it and add something after it: ",[641,1273,1274],{},"ShopProductCard"," is fine, ",[641,1277,1278],{},"ProductCard"," and ",[641,1281,908],{}," aren't. Two extensions can't share a prefix.",[637,1284,1285,1286,813],{},"The prefix only applies to the Vue files. The API's component classes need the same names, prefix included, because a component's PHP class, Vue folder and display file are one name. See ",[1171,1287,1289],{"href":1288},"\u002Fcore-concepts\u002Farchitecture#naming-conventions","Architecture › Naming Conventions",[650,1291,1195,1293,1199],{"id":1292},"the-cwa-folder",[641,1294,1198],{},[637,1296,1297,1299,1300,743],{},[641,1298,1181],{}," holds up to three folders, the same as a site's ",[641,1301,1302],{},"app\u002Fapp\u002Fcwa\u002F",[1123,1304,1305,1318],{},[1126,1306,1307],{},[1129,1308,1309,1312,1315],{},[1132,1310,1311],{},"Folder",[1132,1313,1314],{},"Holds",[1132,1316,1317],{},"Registered as",[1142,1319,1320,1347,1365],{},[1129,1321,1322,1327,1342],{},[1147,1323,1324],{},[641,1325,1326],{},"components\u002F",[1147,1328,1329,1330,1333,1334,1337,1338,1341],{},"One folder per component: ",[641,1331,1332],{},"\u003CName>\u002F\u003CName>.vue",", with ",[641,1335,1336],{},"admin\u002F"," tabs and ",[641,1339,1340],{},"ui\u002F"," variants",[1147,1343,1344],{},[641,1345,1346],{},"CwaComponent\u003CName>",[1129,1348,1349,1354,1360],{},[1147,1350,1351],{},[641,1352,1353],{},"layouts\u002F",[1147,1355,1356,1359],{},[641,1357,1358],{},"\u003CName>.vue"," layouts",[1147,1361,1362],{},[641,1363,1364],{},"CwaLayout\u003CName>",[1129,1366,1367,1372,1377],{},[1147,1368,1369],{},[641,1370,1371],{},"pages\u002F",[1147,1373,1374,1376],{},[641,1375,1358],{}," page templates",[1147,1378,1379],{},[641,1380,1381],{},"CwaPage\u003CName>",[637,1383,1384,1385,1387,1388,1391,1392,1279,1395,1398,1399,1402],{},"Only the folders that exist are read, so an extension with only components needs only ",[641,1386,1326],{},". Each file works as it would in a site: ",[1171,1389,1390],{"href":277},"Component Files",", ",[1171,1393,1394],{"href":270},"Layout Files",[1171,1396,1397],{"href":274},"Page Template Files"," describe them, ",[641,1400,1401],{},"defineCwaConfig"," included.",[637,1404,1405,1406,1409,1410,813],{},"A component from an extension is a component like any other: editors add it from the Add dialog, and ",[641,1407,1408],{},"CwaComponentNames.ShopProductCard"," names it in a group's ",[641,1411,1412],{},"allowed-components",[1414,1415,1417],"h3",{"id":1416},"replacing-an-extensions-file","Replacing an Extension's File",[637,1419,1420,1421,1423],{},"A site replaces an extension's component, layout or page template by adding one with the same name to its own ",[641,1422,1302],{},". The site's file wins, and the build logs which file replaced which:",[655,1425,1430],{"className":1426,"code":1428,"language":1429},[1427],"language-text","@cwa\u002Fnuxt: app\u002Fcwa\u002Fcomponents\u002FShopProductCard replaces ShopProductCard from @acme\u002Fcwa-shop\n","text",[641,1431,1428],{"__ignoreMap":660},[637,1433,1434,1435,1437,1438,1440],{},"The site's folder replaces the extension's whole folder for that name. Its manager tabs come only from the site's ",[641,1436,1336],{}," folder and its UI variants only from the site's ",[641,1439,1340],{},", so copy any of the extension's tabs or variants you still want.",[650,1442,1232],{"id":1443},"paths-the-page-cache-skips",[637,1445,1446,1447,1449,1450,1452],{},"The module lets a shared cache store rendered pages (see ",[1171,1448,538],{"href":539},"). A page that shows something different to each visitor, such as a basket, mustn't be stored, because the next visitor would get it. ",[641,1451,1223],{}," lists those paths:",[655,1454,1457],{"className":1455,"code":1456,"language":659,"meta":660,"style":660},"language-ts shiki shiki-themes github-light github-dark material-theme-palenight","pageCache: { '\u002Fbasket': false, '\u002Faccount\u002F**': false },\n",[641,1458,1459],{"__ignoreMap":660},[664,1460,1461,1464,1466,1468,1470,1472,1474,1477,1480,1482,1484,1486,1488,1490,1492],{"class":666,"line":667},[664,1462,1223],{"class":1463},"sRCss",[664,1465,743],{"class":681},[664,1467,682],{"class":681},[664,1469,702],{"class":701},[664,1471,1055],{"class":705},[664,1473,758],{"class":701},[664,1475,1476],{"class":739},": ",[664,1478,1479],{"class":1062},"false",[664,1481,689],{"class":681},[664,1483,702],{"class":701},[664,1485,1070],{"class":705},[664,1487,758],{"class":701},[664,1489,1476],{"class":739},[664,1491,1479],{"class":1062},[664,1493,761],{"class":681},[637,1495,1496,1497,1500,1501,1504,1505,1508,1509,1511,1512,1515],{},"Each entry becomes the route rule ",[641,1498,1499],{},"cwa: { pageCache: false }",", and a page under it is sent with ",[641,1502,1503],{},"Cache-Control: private, no-store"," and no ",[641,1506,1507],{},"Surrogate-Key",". ",[641,1510,1070],{}," covers ",[641,1513,1514],{},"\u002Faccount"," itself as well as every path below it.",[637,1517,1518,1519,1522],{},"A site can set the same route rule in its own ",[641,1520,1521],{},"routeRules",", for a page of its own:",[655,1524,1526],{"className":657,"code":1525,"language":659,"meta":660,"style":660},"\u002F\u002F app\u002Fnuxt.config.ts\nexport default defineNuxtConfig({\n  routeRules: {\n    '\u002Fmy-orders': { cwa: { pageCache: false } }, \u002F\u002F [!code focus]\n  },\n})\n",[641,1527,1528,1533,1546,1555,1589,1593],{"__ignoreMap":660},[664,1529,1530],{"class":666,"line":667},[664,1531,1532],{"class":670},"\u002F\u002F app\u002Fnuxt.config.ts\n",[664,1534,1535,1537,1539,1542,1544],{"class":666,"line":674},[664,1536,721],{"class":677},[664,1538,724],{"class":677},[664,1540,1541],{"class":727}," defineNuxtConfig",[664,1543,730],{"class":685},[664,1545,733],{"class":681},[664,1547,1548,1551,1553],{"class":666,"line":712},[664,1549,1550],{"class":739},"  routeRules",[664,1552,743],{"class":681},[664,1554,785],{"class":681},[664,1556,1558,1561,1564,1566,1568,1570,1573,1575,1577,1580,1582,1584,1586],{"class":1557,"line":718},[666,833],[664,1559,1560],{"class":701},"    '",[664,1562,1563],{"class":1054},"\u002Fmy-orders",[664,1565,758],{"class":701},[664,1567,743],{"class":681},[664,1569,682],{"class":681},[664,1571,1572],{"class":739}," cwa",[664,1574,743],{"class":681},[664,1576,682],{"class":681},[664,1578,1579],{"class":739}," pageCache",[664,1581,743],{"class":681},[664,1583,1063],{"class":1062},[664,1585,695],{"class":681},[664,1587,1588],{"class":681}," },",[664,1590,1591],{"class":666,"line":736},[664,1592,1103],{"class":681},[664,1594,1595,1597],{"class":666,"line":764},[664,1596,1109],{"class":681},[664,1598,824],{"class":685},[637,1600,1601],{},"When rules overlap:",[1603,1604,1605,1625],"ul",{},[1606,1607,1608,1609,1612,1613,1616,1617,1620,1621,1624],"li",{},"A site rule that sets ",[641,1610,1611],{},"cwa.pageCache"," for ",[1265,1614,1615],{},"the same path"," wins over the extension's. Other keys in a site rule for that path are kept, and the extension's ",[641,1618,1619],{},"pageCache: false"," is added beside them. A site that sets ",[641,1622,1623],{},"'\u002Faccount\u002F**': { cwa: { pageCache: true } }"," keeps its account pages cacheable.",[1606,1626,1627,1628,1631,1632,1635,1636,813],{},"For ",[1265,1629,1630],{},"different paths",", the most specific matching rule wins, as for any Nuxt route rule. A site rule for ",[641,1633,1634],{},"\u002Faccount\u002Fhelp"," overrides the extension's ",[641,1637,1070],{},[637,1639,1640,1642],{},[641,1641,1479],{}," is the only value an extension can give.",[650,1644,1646],{"id":1645},"when-the-build-fails","When the Build Fails",[637,1648,1649],{},"CWA checks every extension when the site builds and stops the build on the first problem. Each message names the extension and the file:",[1123,1651,1652,1662],{},[1126,1653,1654],{},[1129,1655,1656,1659],{},[1132,1657,1658],{},"Problem",[1132,1660,1661],{},"Message",[1142,1663,1664,1674,1684,1696,1706,1716,1726,1736,1746,1756],{},[1129,1665,1666,1669],{},[1147,1667,1668],{},"The same extension registered twice",[1147,1670,1671],{},[641,1672,1673],{},"@acme\u002Fcwa-shop is registered twice",[1129,1675,1676,1679],{},[1147,1677,1678],{},"A prefix that isn't PascalCase",[1147,1680,1681],{},[641,1682,1683],{},"@acme\u002Fcwa-shop's prefix \"shop\" must be PascalCase letters and digits",[1129,1685,1686,1691],{},[1147,1687,1688,1689],{},"A prefix starting with ",[641,1690,1270],{},[1147,1692,1693],{},[641,1694,1695],{},"@acme\u002Fcwa-shop's prefix \"CwaShop\" must not start with Cwa",[1129,1697,1698,1701],{},[1147,1699,1700],{},"Two extensions with one prefix",[1147,1702,1703],{},[641,1704,1705],{},"@acme\u002Fcwa-shop and @other\u002Fshop both use the prefix \"Shop\"",[1129,1707,1708,1711],{},[1147,1709,1710],{},"A name without the prefix",[1147,1712,1713],{},[641,1714,1715],{},"\u002F…\u002Fcwa\u002Fcomponents\u002FPrice from @acme\u002Fcwa-shop must be named Shop\u003CName>, as ShopPrice",[1129,1717,1718,1721],{},[1147,1719,1720],{},"Two extensions defining one name",[1147,1722,1723],{},[641,1724,1725],{},"ShopPlusBadge is defined by both \u002F…\u002Fcomponents\u002FShopPlusBadge (@acme\u002Fcwa-shop) and \u002F…\u002Fcomponents\u002FShopPlusBadge (@acme\u002Fcwa-shop-plus)",[1129,1727,1728,1731],{},[1147,1729,1730],{},"An admin page on a built-in path",[1147,1732,1733],{},[641,1734,1735],{},"@acme\u002Fcwa-shop's admin page \u002F_cwa\u002Fusers is a built-in admin page",[1129,1737,1738,1741],{},[1147,1739,1740],{},"Two extensions with one admin path",[1147,1742,1743],{},[641,1744,1745],{},"\u002F_cwa\u002Fshop-orders is registered by both @acme\u002Fcwa-shop and @acme\u002Fstore",[1129,1747,1748,1751],{},[1147,1749,1750],{},"An admin page role that isn't allowed",[1147,1752,1753],{},[641,1754,1755],{},"@acme\u002Fcwa-shop's admin page \u002F_cwa\u002Fshop-orders declares the role \"admin\". Use a ROLE_ name other than ROLE_USER, or leave it out for ROLE_ADMIN.",[1129,1757,1758,1761],{},[1147,1759,1760],{},"Admin pages without the CWA layer",[1147,1762,1763],{},[641,1764,1765],{},"@acme\u002Fcwa-shop's admin pages need the \u002F_cwa page from @cwa\u002Fnuxt\u002Flayer",[637,1767,1768,1769,1772],{},"A site file with the same name as an extension's isn't an error: it replaces it (see ",[1171,1770,1417],{"href":1771},"#replacing-an-extensions-file",").",[637,1774,1775,1776,813],{},"Next: ",[1171,1777,552],{"href":553},[1779,1780,1781],"style",{},"html pre.shiki code .sTBSN, html code.shiki .sTBSN{--shiki-light:#6A737D;--shiki-light-font-style:inherit;--shiki-default:#6A737D;--shiki-default-font-style:inherit;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sm4w6, html code.shiki .sm4w6{--shiki-light:#D73A49;--shiki-light-font-style:inherit;--shiki-default:#F97583;--shiki-default-font-style:inherit;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sOvfz, html code.shiki .sOvfz{--shiki-light:#24292E;--shiki-default:#E1E4E8;--shiki-dark:#89DDFF}html pre.shiki code .sPB8G, html code.shiki .sPB8G{--shiki-light:#24292E;--shiki-default:#E1E4E8;--shiki-dark:#BABED8}html pre.shiki code .seSrl, html code.shiki .seSrl{--shiki-light:#032F62;--shiki-default:#9ECBFF;--shiki-dark:#89DDFF}html pre.shiki code .sLL54, html code.shiki .sLL54{--shiki-light:#032F62;--shiki-default:#9ECBFF;--shiki-dark:#C3E88D}html pre.shiki code .sKpYG, html code.shiki .sKpYG{--shiki-light:#6F42C1;--shiki-default:#B392F0;--shiki-dark:#82AAFF}html pre.shiki code .sDHlG, html code.shiki .sDHlG{--shiki-light:#24292E;--shiki-default:#E1E4E8;--shiki-dark:#F07178}html pre.shiki code .sNbXC, html code.shiki .sNbXC{--shiki-light:#6F42C1;--shiki-default:#B392F0;--shiki-dark:#F07178}html pre.shiki code .sNTR6, html code.shiki .sNTR6{--shiki-light:#E36209;--shiki-light-font-style:inherit;--shiki-default:#FFAB70;--shiki-default-font-style:inherit;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}html pre.shiki code .swB56, html code.shiki .swB56{--shiki-light:#D73A49;--shiki-default:#F97583;--shiki-dark:#C792EA}html pre.shiki code .sc2zw, html code.shiki .sc2zw{--shiki-light:#005CC5;--shiki-default:#79B8FF;--shiki-dark:#BABED8}html pre.shiki code .sVlFx, html code.shiki .sVlFx{--shiki-light:#D73A49;--shiki-default:#F97583;--shiki-dark:#89DDFF}html pre.shiki code .syBAL, html code.shiki .syBAL{--shiki-light:#032F62;--shiki-default:#9ECBFF;--shiki-dark:#F07178}html pre.shiki code .swWMF, html code.shiki .swWMF{--shiki-light:#005CC5;--shiki-default:#79B8FF;--shiki-dark:#FF9CAC}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 .sRCss, html code.shiki .sRCss{--shiki-light:#6F42C1;--shiki-default:#B392F0;--shiki-dark:#FFCB6B}",{"title":660,"searchDepth":674,"depth":674,"links":1783},[1784,1785,1786,1790,1791],{"id":652,"depth":674,"text":653},{"id":1238,"depth":674,"text":1174},{"id":1292,"depth":674,"text":1787,"children":1788},"The cwa\u002F Folder",[1789],{"id":1416,"depth":712,"text":1417},{"id":1443,"depth":674,"text":1232},{"id":1645,"depth":674,"text":1646},"The cwa:extend hook, the extension's prefix and cwa\u002F folder, how a site replaces an extension's file, page cache rules, and the build errors.","md",{},{"title":548,"description":1792},"YUEoUFUDEf6cfJeLBXnc58k53T-bsi9OsRxDKo75FBE",[1798,1800],{"title":30,"path":543,"stem":544,"description":1799,"children":-1},"What a CWA extension is, what it can add to a site, and how its files are laid out.",{"title":552,"path":553,"stem":554,"description":1801,"children":-1},"Adding an extension's pages under \u002F_cwa with a role and a menu entry, and building a list and an item dialog from the admin's own parts.",1795626704579]