[{"data":1,"prerenderedAt":4878},["ShallowReactive",2],{"navigation_docs":3,"-developers-modules-admin-and-site":613,"-developers-modules-admin-and-site-surround":4875},[4,39,101,378,540,562,584,606],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":38},"Start","i-lucide-rocket","\u002Fstart","1.start",[10,14,18,22,26,30,34],{"title":11,"path":12,"stem":13},"Our approach","\u002Fstart\u002Four-approach","1.start\u002F0.our-approach",{"title":15,"path":16,"stem":17},"Introduction","\u002Fstart\u002Fintroduction","1.start\u002F1.introduction",{"title":19,"path":20,"stem":21},"Concepts","\u002Fstart\u002Fconcepts","1.start\u002F2.concepts",{"title":23,"path":24,"stem":25},"Glossary","\u002Fstart\u002Fglossary","1.start\u002F3.glossary",{"title":27,"path":28,"stem":29},"Try it locally","\u002Fstart\u002Ftry-it-locally","1.start\u002F4.try-it-locally",{"title":31,"path":32,"stem":33},"Features","\u002Fstart\u002Ffeatures","1.start\u002F5.features",{"title":35,"path":36,"stem":37},"Questions","\u002Fstart\u002Ffaq","1.start\u002F6.faq",false,{"title":40,"icon":41,"path":42,"stem":43,"children":44,"page":38},"Run SHADE","i-lucide-server","\u002Frun","2.run",[45,49,53,57,61,65,69,73,77,81,85,89,93,97],{"title":46,"path":47,"stem":48},"Setting up an instance (Coolify)","\u002Frun\u002Fcoolify","2.run\u002F1.coolify",{"title":50,"path":51,"stem":52},"Console commands","\u002Frun\u002Fconsole","2.run\u002F10.console",{"title":54,"path":55,"stem":56},"Rotating APP_SECRET","\u002Frun\u002Frotating-app-secret","2.run\u002F11.rotating-app-secret",{"title":58,"path":59,"stem":60},"Checking an instance","\u002Frun\u002Fdoctor","2.run\u002F12.doctor",{"title":62,"path":63,"stem":64},"Self-hosting by hand","\u002Frun\u002Fown-server-by-hand","2.run\u002F13.own-server-by-hand",{"title":66,"path":67,"stem":68},"NixOS (experimental)","\u002Frun\u002Fnixos","2.run\u002F14.nixos",{"title":70,"path":71,"stem":72},"Self-hosting without Coolify","\u002Frun\u002Fown-server","2.run\u002F2.own-server",{"title":74,"path":75,"stem":76},"Hosting the site on a static host","\u002Frun\u002Fstatic-hosts","2.run\u002F3.static-hosts",{"title":78,"path":79,"stem":80},"Licence","\u002Frun\u002Flicence","2.run\u002F4.licence",{"title":82,"path":83,"stem":84},"Updating and backups","\u002Frun\u002Fupdating-and-backups","2.run\u002F5.updating-and-backups",{"title":86,"path":87,"stem":88},"Troubleshooting","\u002Frun\u002Ftroubleshooting","2.run\u002F6.troubleshooting",{"title":90,"path":91,"stem":92},"Logs, request ids, traces and metrics","\u002Frun\u002Flogs","2.run\u002F7.logs",{"title":94,"path":95,"stem":96},"Maintenance mode","\u002Frun\u002Fmaintenance-mode","2.run\u002F8.maintenance-mode",{"title":98,"path":99,"stem":100},"Usage limits","\u002Frun\u002Fusage-limits","2.run\u002F9.usage-limits",{"title":102,"icon":103,"path":104,"stem":105,"children":106},"Guide","i-lucide-book-open","\u002Fguide","3.guide",[107,109,147,192,210,280,310,364],{"title":102,"path":104,"stem":108},"3.guide\u002Findex",{"title":110,"icon":111,"path":112,"stem":113,"children":114,"page":38},"Content","i-lucide-file-text","\u002Fguide\u002Fcontent","3.guide\u002F1.content",[115,119,123,127,131,135,139,143],{"title":116,"path":117,"stem":118},"Collections and entries","\u002Fguide\u002Fcontent\u002Fcollections","3.guide\u002F1.content\u002F1.collections",{"title":120,"path":121,"stem":122},"Field types","\u002Fguide\u002Fcontent\u002Ffields","3.guide\u002F1.content\u002F2.fields",{"title":124,"path":125,"stem":126},"Drafts, publishing and version history","\u002Fguide\u002Fcontent\u002Fversions","3.guide\u002F1.content\u002F3.versions",{"title":128,"path":129,"stem":130},"Languages","\u002Fguide\u002Fcontent\u002Flanguages","3.guide\u002F1.content\u002F4.languages",{"title":132,"path":133,"stem":134},"Data sources","\u002Fguide\u002Fcontent\u002Fdata-sources","3.guide\u002F1.content\u002F5.data-sources",{"title":136,"path":137,"stem":138},"Media","\u002Fguide\u002Fcontent\u002Fmedia","3.guide\u002F1.content\u002F6.media",{"title":140,"path":141,"stem":142},"Search","\u002Fguide\u002Fcontent\u002Fsearch","3.guide\u002F1.content\u002F7.search",{"title":144,"path":145,"stem":146},"Trash","\u002Fguide\u002Fcontent\u002Ftrash","3.guide\u002F1.content\u002F8.trash",{"title":148,"icon":149,"path":150,"stem":151,"children":152,"page":38},"Website","i-lucide-globe","\u002Fguide\u002Fwebsite","3.guide\u002F2.website",[153,156,160,164,168,172,176,180,184,188],{"title":148,"path":154,"stem":155},"\u002Fguide\u002Fwebsite\u002Fwebsite","3.guide\u002F2.website\u002F1.website",{"title":157,"path":158,"stem":159},"Scroll scenes","\u002Fguide\u002Fwebsite\u002Fscroll-scenes","3.guide\u002F2.website\u002F10.scroll-scenes",{"title":161,"path":162,"stem":163},"Pages and posts","\u002Fguide\u002Fwebsite\u002Fpages","3.guide\u002F2.website\u002F2.pages",{"title":165,"path":166,"stem":167},"The visual editor","\u002Fguide\u002Fwebsite\u002Fvisual-editor","3.guide\u002F2.website\u002F3.visual-editor",{"title":169,"path":170,"stem":171},"Roles and locks","\u002Fguide\u002Fwebsite\u002Froles-and-locks","3.guide\u002F2.website\u002F4.roles-and-locks",{"title":173,"path":174,"stem":175},"Header and footer","\u002Fguide\u002Fwebsite\u002Fheader-and-footer","3.guide\u002F2.website\u002F5.header-and-footer",{"title":177,"path":178,"stem":179},"Theme","\u002Fguide\u002Fwebsite\u002Ftheme","3.guide\u002F2.website\u002F6.theme",{"title":181,"path":182,"stem":183},"Redirects","\u002Fguide\u002Fwebsite\u002Fredirects","3.guide\u002F2.website\u002F7.redirects",{"title":185,"path":186,"stem":187},"Site settings","\u002Fguide\u002Fwebsite\u002Fsite-settings","3.guide\u002F2.website\u002F8.site-settings",{"title":189,"path":190,"stem":191},"The site","\u002Fguide\u002Fwebsite\u002Fthe-site","3.guide\u002F2.website\u002F9.the-site",{"title":193,"icon":194,"path":195,"stem":196,"children":197,"page":38},"Publishing","i-lucide-send","\u002Fguide\u002Fpublishing","3.guide\u002F3.publishing",[198,202,206],{"title":199,"path":200,"stem":201},"Publishing and preview","\u002Fguide\u002Fpublishing\u002Fpublishing","3.guide\u002F3.publishing\u002F1.publishing",{"title":203,"path":204,"stem":205},"Builds","\u002Fguide\u002Fpublishing\u002Fbuilds","3.guide\u002F3.publishing\u002F2.builds",{"title":207,"path":208,"stem":209},"CDN caches","\u002Fguide\u002Fpublishing\u002Fcaches","3.guide\u002F3.publishing\u002F3.caches",{"title":211,"icon":212,"path":213,"stem":214,"children":215,"page":38},"People, security and privacy","i-lucide-shield","\u002Fguide\u002Fpeople-and-security","3.guide\u002F4.people-and-security",[216,220,224,228,232,236,240,244,248,252,256,260,264,268,272,276],{"title":217,"path":218,"stem":219},"People in SHADE","\u002Fguide\u002Fpeople-and-security\u002Fpeople-in-shade","3.guide\u002F4.people-and-security\u002F0.people-in-shade",{"title":221,"path":222,"stem":223},"Team and roles","\u002Fguide\u002Fpeople-and-security\u002Fteam","3.guide\u002F4.people-and-security\u002F1.team",{"title":225,"path":226,"stem":227},"Errors and security alerts","\u002Fguide\u002Fpeople-and-security\u002Ferrors","3.guide\u002F4.people-and-security\u002F10.errors",{"title":229,"path":230,"stem":231},"Exporting an instance","\u002Fguide\u002Fpeople-and-security\u002Fexporting","3.guide\u002F4.people-and-security\u002F11.exporting",{"title":233,"path":234,"stem":235},"Organisations","\u002Fguide\u002Fpeople-and-security\u002Forganisations","3.guide\u002F4.people-and-security\u002F12.organisations",{"title":237,"path":238,"stem":239},"Signing in through an identity provider (team)","\u002Fguide\u002Fpeople-and-security\u002Fidentity-providers","3.guide\u002F4.people-and-security\u002F13.identity-providers",{"title":241,"path":242,"stem":243},"System status","\u002Fguide\u002Fpeople-and-security\u002Fsystem-status","3.guide\u002F4.people-and-security\u002F14.system-status",{"title":245,"path":246,"stem":247},"Appearance","\u002Fguide\u002Fpeople-and-security\u002Fappearance","3.guide\u002F4.people-and-security\u002F15.appearance",{"title":249,"path":250,"stem":251},"Accounts and personal pages","\u002Fguide\u002Fpeople-and-security\u002Faccounts","3.guide\u002F4.people-and-security\u002F2.accounts",{"title":253,"path":254,"stem":255},"Signing in (team)","\u002Fguide\u002Fpeople-and-security\u002Fsign-in","3.guide\u002F4.people-and-security\u002F3.sign-in",{"title":257,"path":258,"stem":259},"API tokens","\u002Fguide\u002Fpeople-and-security\u002Fapi-tokens","3.guide\u002F4.people-and-security\u002F4.api-tokens",{"title":261,"path":262,"stem":263},"Audit log","\u002Fguide\u002Fpeople-and-security\u002Faudit","3.guide\u002F4.people-and-security\u002F5.audit",{"title":265,"path":266,"stem":267},"Request protection","\u002Fguide\u002Fpeople-and-security\u002Fprotection","3.guide\u002F4.people-and-security\u002F6.protection",{"title":269,"path":270,"stem":271},"Personal data per person","\u002Fguide\u002Fpeople-and-security\u002Fprivacy","3.guide\u002F4.people-and-security\u002F7.privacy",{"title":273,"path":274,"stem":275},"Data retention","\u002Fguide\u002Fpeople-and-security\u002Fretention","3.guide\u002F4.people-and-security\u002F8.retention",{"title":277,"path":278,"stem":279},"Consent banner","\u002Fguide\u002Fpeople-and-security\u002Fconsent","3.guide\u002F4.people-and-security\u002F9.consent",{"title":281,"icon":282,"path":283,"stem":284,"children":285,"page":38},"Services","i-lucide-plug","\u002Fguide\u002Fservices","3.guide\u002F5.services",[286,290,294,298,302,306],{"title":287,"path":288,"stem":289},"Email","\u002Fguide\u002Fservices\u002Femail","3.guide\u002F5.services\u002F1.email",{"title":291,"path":292,"stem":293},"Opening hours","\u002Fguide\u002Fservices\u002Fopening-hours","3.guide\u002F5.services\u002F4.opening-hours",{"title":295,"path":296,"stem":297},"Webhooks","\u002Fguide\u002Fservices\u002Fwebhooks","3.guide\u002F5.services\u002F5.webhooks",{"title":299,"path":300,"stem":301},"Locations","\u002Fguide\u002Fservices\u002Flocations","3.guide\u002F5.services\u002F6.locations",{"title":303,"path":304,"stem":305},"VAT rates","\u002Fguide\u002Fservices\u002Fvat-rates","3.guide\u002F5.services\u002F7.vat-rates",{"title":307,"path":308,"stem":309},"Channels","\u002Fguide\u002Fservices\u002Fchannels","3.guide\u002F5.services\u002F8.channels",{"title":311,"icon":312,"path":313,"stem":314,"children":315,"page":38},"InstalledModules","i-lucide-puzzle","\u002Fguide\u002Fmodules","3.guide\u002F6.modules",[316,320,324,328,332,336,340,344,348,352,356,360],{"title":317,"path":318,"stem":319},"Modules","\u002Fguide\u002Fmodules\u002Fmanaging","3.guide\u002F6.modules\u002F1.managing",{"title":321,"path":322,"stem":323},"Dutch services (module)","\u002Fguide\u002Fmodules\u002Fnl","3.guide\u002F6.modules\u002F10.nl",{"title":325,"path":326,"stem":327},"Editorial (module)","\u002Fguide\u002Fmodules\u002Feditorial","3.guide\u002F6.modules\u002F11.editorial",{"title":329,"path":330,"stem":331},"Appointments (module)","\u002Fguide\u002Fmodules\u002Fappointments","3.guide\u002F6.modules\u002F2.appointments",{"title":333,"path":334,"stem":335},"Shop (the commerce module)","\u002Fguide\u002Fmodules\u002Fshop","3.guide\u002F6.modules\u002F3.shop",{"title":337,"path":338,"stem":339},"Untrusted modules","\u002Fguide\u002Fmodules\u002Funtrusted","3.guide\u002F6.modules\u002F4.untrusted",{"title":341,"path":342,"stem":343},"Analytics (module)","\u002Fguide\u002Fmodules\u002Fanalytics","3.guide\u002F6.modules\u002F5.analytics",{"title":345,"path":346,"stem":347},"Error forwarding (module)","\u002Fguide\u002Fmodules\u002Ferror-forwarding","3.guide\u002F6.modules\u002F6.error-forwarding",{"title":349,"path":350,"stem":351},"Client programs","\u002Fguide\u002Fmodules\u002Fprograms","3.guide\u002F6.modules\u002F7.programs",{"title":353,"path":354,"stem":355},"Import and export (module)","\u002Fguide\u002Fmodules\u002Fimport","3.guide\u002F6.modules\u002F8.import",{"title":357,"path":358,"stem":359},"Payments (module)","\u002Fguide\u002Fmodules\u002Fpayments","3.guide\u002F6.modules\u002F8.payments",{"title":361,"path":362,"stem":363},"Forms (module)","\u002Fguide\u002Fmodules\u002Fforms","3.guide\u002F6.modules\u002F9.forms",{"title":365,"icon":366,"path":367,"stem":368,"children":369,"page":38},"AI assistants","i-lucide-bot","\u002Fguide\u002Fai","3.guide\u002F7.ai",[370,374],{"title":371,"path":372,"stem":373},"AI assistants (MCP)","\u002Fguide\u002Fai\u002Fassistants","3.guide\u002F7.ai\u002F1.assistants",{"title":375,"path":376,"stem":377},"Connecting an AI assistant","\u002Fguide\u002Fai\u002Fconnecting","3.guide\u002F7.ai\u002F2.connecting",{"title":379,"icon":380,"path":381,"stem":382,"children":383,"page":38},"Developers","i-lucide-code","\u002Fdevelopers","4.developers",[384,388,392,396,400,404,408,412,416,420,424,428,432,435,489,493,497,501,536],{"title":385,"path":386,"stem":387},"Architecture","\u002Fdevelopers\u002Farchitecture","4.developers\u002F1.architecture",{"title":389,"path":390,"stem":391},"Capabilities","\u002Fdevelopers\u002Fcapabilities","4.developers\u002F10.capabilities",{"title":393,"path":394,"stem":395},"Trust","\u002Fdevelopers\u002Ftrust","4.developers\u002F11.trust",{"title":397,"path":398,"stem":399},"Redis and the ports","\u002Fdevelopers\u002Fredis","4.developers\u002F12.redis",{"title":401,"path":402,"stem":403},"The worker container role","\u002Fdevelopers\u002Fworker","4.developers\u002F13.worker",{"title":405,"path":406,"stem":407},"kv: a module's own key-value storage","\u002Fdevelopers\u002Fkv","4.developers\u002F14.kv",{"title":409,"path":410,"stem":411},"Processes: long-running work on the worker","\u002Fdevelopers\u002Fprocesses","4.developers\u002F15.processes",{"title":413,"path":414,"stem":415},"Network: a module's outgoing calls","\u002Fdevelopers\u002Fnetwork","4.developers\u002F16.network",{"title":417,"path":418,"stem":419},"Realtime","\u002Fdevelopers\u002Frealtime","4.developers\u002F17.realtime",{"title":421,"path":422,"stem":423},"Private files","\u002Fdevelopers\u002Ffiles","4.developers\u002F18.files",{"title":425,"path":426,"stem":427},"Notify","\u002Fdevelopers\u002Fnotify","4.developers\u002F19.notify",{"title":429,"path":430,"stem":431},"Collections","\u002Fdevelopers\u002Fcollections","4.developers\u002F2.collections",{"title":337,"path":433,"stem":434},"\u002Fdevelopers\u002Funtrusted","4.developers\u002F20.untrusted",{"title":436,"icon":312,"path":437,"stem":438,"children":439},"Writing a plugin","\u002Fdevelopers\u002Fmodules","4.developers\u002F3.modules\u002Findex",[440,442,446,450,454,458,462,466,470,473,477,481,485],{"title":441,"path":437,"stem":438},"Writing a module",{"title":443,"path":444,"stem":445},"Module SDK and tooling","\u002Fdevelopers\u002Fmodules\u002Fsdk-and-tooling","4.developers\u002F3.modules\u002F1.sdk-and-tooling",{"title":447,"path":448,"stem":449},"Connecting accounts with OAuth2","\u002Fdevelopers\u002Fmodules\u002Foauth","4.developers\u002F3.modules\u002F10.oauth",{"title":451,"path":452,"stem":453},"Calls between modules","\u002Fdevelopers\u002Fmodules\u002Fcalls-between-modules","4.developers\u002F3.modules\u002F11.calls-between-modules",{"title":455,"path":456,"stem":457},"Experimental parts","\u002Fdevelopers\u002Fmodules\u002Fexperimental-parts","4.developers\u002F3.modules\u002F12.experimental-parts",{"title":459,"path":460,"stem":461},"The manifest","\u002Fdevelopers\u002Fmodules\u002Fmanifest","4.developers\u002F3.modules\u002F2.manifest",{"title":463,"path":464,"stem":465},"Routes","\u002Fdevelopers\u002Fmodules\u002Froutes","4.developers\u002F3.modules\u002F3.routes",{"title":467,"path":468,"stem":469},"Admin screens and the site part","\u002Fdevelopers\u002Fmodules\u002Fadmin-and-site","4.developers\u002F3.modules\u002F4.admin-and-site",{"title":110,"path":471,"stem":472},"\u002Fdevelopers\u002Fmodules\u002Fcontent","4.developers\u002F3.modules\u002F5.content",{"title":474,"path":475,"stem":476},"Background work and services","\u002Fdevelopers\u002Fmodules\u002Fbackground-and-services","4.developers\u002F3.modules\u002F6.background-and-services",{"title":478,"path":479,"stem":480},"SDK reference","\u002Fdevelopers\u002Fmodules\u002Fsdk-reference","4.developers\u002F3.modules\u002F7.sdk-reference",{"title":482,"path":483,"stem":484},"The website module's SDK","\u002Fdevelopers\u002Fmodules\u002Fwebsite-sdk","4.developers\u002F3.modules\u002F8.website-sdk",{"title":486,"path":487,"stem":488},"Incoming webhooks","\u002Fdevelopers\u002Fmodules\u002Fincoming-webhooks","4.developers\u002F3.modules\u002F9.incoming-webhooks",{"title":490,"path":491,"stem":492},"Core and the website module","\u002Fdevelopers\u002Fcore-and-website-module","4.developers\u002F4.core-and-website-module",{"title":494,"path":495,"stem":496},"The API","\u002Fdevelopers\u002Fapi","4.developers\u002F6.api",{"title":498,"path":499,"stem":500},"API reference","\u002Fdevelopers\u002Fapi-reference","4.developers\u002F6.api-reference",{"title":502,"icon":503,"path":504,"stem":505,"children":506},"Sites in other frameworks","i-lucide-layout-template","\u002Fdevelopers\u002Fframeworks","4.developers\u002F7.frameworks\u002Findex",[507,508,512,516,520,524,528,532],{"title":502,"path":504,"stem":505},{"title":509,"path":510,"stem":511},"Accounts: sign-in and modules' routes","\u002Fdevelopers\u002Fframeworks\u002Faccounts","4.developers\u002F7.frameworks\u002F1.accounts",{"title":513,"path":514,"stem":515},"`@shadestack\u002Ftree`","\u002Fdevelopers\u002Fframeworks\u002Ftree","4.developers\u002F7.frameworks\u002F2.tree",{"title":517,"path":518,"stem":519},"Expressions and styles","\u002Fdevelopers\u002Fframeworks\u002Fexpressions-and-styles","4.developers\u002F7.frameworks\u002F3.expressions-and-styles",{"title":521,"path":522,"stem":523},"`@shadestack\u002Frender`","\u002Fdevelopers\u002Fframeworks\u002Frender","4.developers\u002F7.frameworks\u002F4.render",{"title":525,"path":526,"stem":527},"`@shadestack\u002Finteractions`","\u002Fdevelopers\u002Fframeworks\u002Finteractions","4.developers\u002F7.frameworks\u002F5.interactions",{"title":529,"path":530,"stem":531},"`@shadestack\u002Fa11y`","\u002Fdevelopers\u002Fframeworks\u002Fa11y","4.developers\u002F7.frameworks\u002F6.a11y",{"title":533,"path":534,"stem":535},"Your own page for SHADE's links","\u002Fdevelopers\u002Fframeworks\u002Flinks","4.developers\u002F7.frameworks\u002F7.links",{"title":537,"path":538,"stem":539},"Build a client module","\u002Fdevelopers\u002Fclient-module","4.developers\u002F9.client-module",{"title":541,"icon":542,"path":543,"stem":544,"children":545,"page":38},"Security","i-lucide-shield-check","\u002Fsecurity","5.security",[546,550,554,558],{"title":547,"path":548,"stem":549},"Reporting a vulnerability","\u002Fsecurity\u002Freporting","5.security\u002F0.reporting",{"title":551,"path":552,"stem":553},"Security testing","\u002Fsecurity\u002Ftesting","5.security\u002F1.testing",{"title":555,"path":556,"stem":557},"Hardening a production instance","\u002Fsecurity\u002Fhardening","5.security\u002F2.hardening",{"title":559,"path":560,"stem":561},"Manual testing with Kali Linux","\u002Fsecurity\u002Fmanual-testing","5.security\u002F3.manual-testing",{"title":563,"icon":564,"path":565,"stem":566,"children":567,"page":38},"Contributing","i-lucide-git-pull-request","\u002Fcontributing","6.contributing",[568,572,576,580],{"title":569,"path":570,"stem":571},"Reading the code","\u002Fcontributing\u002Freading-the-code","6.contributing\u002F1.reading-the-code",{"title":573,"path":574,"stem":575},"Docs site","\u002Fcontributing\u002Fdocs-site","6.contributing\u002F2.docs-site",{"title":577,"path":578,"stem":579},"Releases","\u002Fcontributing\u002Freleases","6.contributing\u002F3.releases",{"title":581,"path":582,"stem":583},"Load tests","\u002Fcontributing\u002Fload-tests","6.contributing\u002F4.load-tests",{"title":585,"icon":586,"path":587,"stem":588,"children":589,"page":38},"Project","i-lucide-map","\u002Fproject","7.project",[590,594,598,602],{"title":591,"path":592,"stem":593},"Roadmap","\u002Fproject\u002Froadmap","7.project\u002F1.roadmap",{"title":595,"path":596,"stem":597},"Known issues","\u002Fproject\u002Fknown-issues","7.project\u002F2.known-issues",{"title":599,"path":600,"stem":601},"Changelog","\u002Fproject\u002Fchangelog","7.project\u002F3.changelog",{"title":603,"path":604,"stem":605},"Decisions","\u002Fproject\u002Fdecisions","7.project\u002F4.decisions",{"title":607,"path":608,"stem":609,"children":610,"icon":612},"Community","\u002Fcommunity","8.community\u002Findex",[611],{"title":607,"path":608,"stem":609},"i-lucide-users",{"id":614,"title":467,"body":615,"description":1138,"extension":3478,"links":4871,"meta":4872,"navigation":4482,"path":468,"seo":4873,"stem":469,"__hash__":4874},"docs\u002F4.developers\u002F3.modules\u002F4.admin-and-site.md",{"type":616,"value":617,"toc":4860},"minimark",[618,623,627,1121,1125,1132,2480,3026,3031,3050,3128,3150,3170,3174,3183,3326,3331,3335,3367,3726,3755,3759,3804,3815,3888,3921,3951,4231,4393,4399,4547,4718,4722,4747,4789,4793,4857],[619,620,622],"h2",{"id":621},"a-packages-admin-screens-and-site-part","A package's admin screens and site part",[624,625,626],"p",{},"The admin and the site are built once, for every client, without the packages an instance installs.\nA package brings its screens compiled and its site part as sources:",[628,629,630,848,1028,1060,1115],"ul",{},[631,632,633,641,642,645,646,649,650,653,654,657,658],"li",{},[634,635,636,637],"strong",{},"Admin pages are compiled by ",[638,639,640],"code",{},"shade-module build"," (",[638,643,644],{},"shade\u002Fmodule-sdk\u002Ftools\u002Fadmin.ts","): each page in\n",[638,647,648],{},"admin.pages"," becomes an ES module, ",[638,651,652],{},"admin-dist\u002F\u003Cfile>.mjs",", with its own components and shared code bundled in.\nIt brings no Vue, Nuxt UI or composables of its own; it takes the admin's from a global the admin sets, the host\n(",[638,655,656],{},"apps\u002Fadmin\u002Fapp\u002Fmodule-host.ts","):",[628,659,660,705],{},[631,661,662,665,666,669,670,673,674,677,678,673,681,684,685,688,689,692,693,696,697,700,701,704],{},[638,663,664],{},"vue"," is a module that reads the admin's Vue, so a page and the admin share one; its ",[638,667,668],{},"resolveComponent"," finds the\nadmin's components by name (Nuxt UI's, SHADE's features', and the shell's list pieces ",[638,671,672],{},"ListEmpty",", ",[638,675,676],{},"ListError",",\n",[638,679,680],{},"ListPager",[638,682,683],{},"ListLoading"," and ",[638,686,687],{},"ListFilters",": the search field and a Filters button over the page's own filter\nfields, ",[638,690,691],{},"active"," naming the filters that are on as ",[638,694,695],{},"{ label, clear }"," chips), each loaded the first time a page\nuses it\n(",[638,698,699],{},"#build\u002Fshade-module-components.mjs",", written by ",[638,702,703],{},"modules\u002Fshade-installed-modules.ts",");",[631,706,707,708,684,711,641,714,717,718,673,721,673,724,673,727,673,730,673,733,673,736,739,740,677,743,673,746,749,750,677,753,673,756,673,759,673,762,673,765,673,768,771,772,775,776,779,780,782,783,786,787,790,791,794,795,798,799,802,803,806,807,810,811,814,815,818,819,822,823,825,826,829,830,833,834,836,837,840,841,843,844,847],{},"a page uses Vue's usual names and the admin's composables without importing them, as in a feature's page. The\nnames are ",[638,709,710],{},"ADMIN_VUE_IMPORTS",[638,712,713],{},"ADMIN_HOST_IMPORTS",[638,715,716],{},"shade\u002Ffeatures\u002Fpackages\u002Fshared\u002Fadmin-host.ts","):\n",[638,719,720],{},"useFetch",[638,722,723],{},"$fetch",[638,725,726],{},"useI18n",[638,728,729],{},"useToast",[638,731,732],{},"useRoute",[638,734,735],{},"useSeoMeta",[638,737,738],{},"refDebounced",", …, and SHADE's ",[638,741,742],{},"useCan",[638,744,745],{},"useConfirm",[638,747,748],{},"formatDate"," (the exact moment, in the admin's language and the site's time zone), ",[638,751,752],{},"timeAgo",[638,754,755],{},"apiErrorMessage",[638,757,758],{},"apiFormErrors",[638,760,761],{},"useSession",[638,763,764],{},"useLanguages",[638,766,767],{},"useMedia",[638,769,770],{},"useApiAction"," (a request with its\nbusy flag and its failure shown), ",[638,773,774],{},"useApiList"," (one page of a list, back on the first when a filter changes),\n",[638,777,778],{},"useConfirmedAction"," (the answer to a list's Delete or Revoke: one question in a modal, the request, the list loaded\nagain and a success toast, or the failure shown as ",[638,781,770],{}," shows it; its texts are functions, so a page writes\neach key out as ",[638,784,785],{},"t('…')","), ",[638,788,789],{},"useCopy"," (copies a text to the clipboard and says so), ",[638,792,793],{},"useSecondFactor"," (a typed code or a\npasskey for signing in again before a sensitive step),\n",[638,796,797],{},"useSettingsForm"," (a draft of loaded settings, whether it changed, the question before leaving; after a save,\n",[638,800,801],{},"markSaved(sent)"," with a copy of what was sent, so what the server stored replaces it), and for a list's table on a\nphone ",[638,804,805],{},"wideOnly"," (a column's ",[638,808,809],{},"meta",": shown from ",[638,812,813],{},"sm"," up only), ",[638,816,817],{},"phoneLine(children)"," (a muted second line with what\nthe hidden columns held, rendered on a phone only) and ",[638,820,821],{},"usePhone()"," (whether the admin is narrower than ",[638,824,813],{},"), ….\nAnything else\na page needs it imports, and it is bundled. ",[638,827,828],{},"definePageMeta"," does nothing in a package: the manifest says what a page needs.\nThese names reach a page's ",[638,831,832],{},"\u003Cscript setup>",", not its template: a template that needs one (say ",[638,835,748],{},") calls\nit through a binding of the script (",[638,838,839],{},"const dateTime = (value: string) => formatDate(value)","); in a development\nfolder both work, so only the package shows the difference. Components (Nuxt UI's and the shell's, such as\n",[638,842,672],{},") work in templates as usual.\n",[638,845,846],{},"apps\u002Fadmin\u002Ftest\u002Fapp\u002Fmodule-host.test.ts"," checks the host provides exactly those names.",[631,849,850,853,854,857,858,861,862,865,866,869,870,873,874,877,878,881,882,885,886,889,890,893,894,673,897,900,901,673,904,673,907,673,910,913,914,917,918,921,924,925,927,928,1014,1016,1017,1019,1020,1023,1024,1027],{},[634,851,852],{},"Its CSS"," is one stylesheet, ",[638,855,856],{},"admin-dist\u002Fstyle.css",": the Tailwind classes its files use, compiled against the\nadmin's design tokens (",[638,859,860],{},"tools\u002Fadmin-theme.css",", a copy of Nuxt UI's theme that ",[638,863,864],{},"admin-theme.test.ts"," keeps equal to\nthe admin's) without Tailwind's theme or base styles, in the admin's ",[638,867,868],{},"utilities"," layer; its pages' own ",[638,871,872],{},"\u003Cstyle>","\nblocks (scoped ones get a scope id from the module's name and the file); and the CSS of what it bundles.\n",[638,875,876],{},"\u003Cstyle module>"," is not supported. ",[634,879,880],{},"It applies to the module's own markup only","\n(",[638,883,884],{},"tools\u002Fscope-css.ts","): every style rule is put under ",[638,887,888],{},":where([data-shade-module=\"\u003Cname>\"])",", and the admin renders\nthe module's pages, widgets, panels and settings sections inside such an element, and opens its modals, menus and\npopovers (Nuxt UI's, and those of ",[638,891,892],{},"useOverlay",") in a container of its own marked the same way. So nothing in it\ncan change the admin's own screens, and inside the module's markup its classes work as in any Tailwind project\n(",[638,895,896],{},"hidden md:block",[638,898,899],{},"flex-col md:flex-row","), at their own specificity, whichever classes the admin has. A selector\nfor what is outside the module's markup (",[638,902,903],{},"html",[638,905,906],{},":root",[638,908,909],{},"body",[638,911,912],{},".dark .card",") matches nothing: write dark mode\nwith Tailwind's ",[638,915,916],{},"dark:"," variant.",[919,920],"br",{},[634,922,923],{},"What cannot be scoped is checked, and the build refuses it",", naming the module and the rule. At-rules that\nselect nothing apply to the whole admin, so in the module's own CSS (its ",[638,926,872],{}," blocks and the CSS of what it\nbundles):",[628,929,930,984,1000],{},[631,931,932,933,673,936,939,940,943,944,673,947,950,951,677,954,957,958,961,962,965,966,969,970,973,974,976,977,979,980,983],{},"the names it defines start with the module's name: ",[638,934,935],{},"@keyframes shop-spin",[638,937,938],{},"@font-face { font-family: shop-icons }","\nand ",[638,941,942],{},"@counter-style shop-steps"," with ",[638,945,946],{},"\u003Cname>-",[638,948,949],{},"@property --shop-angle"," (and ",[638,952,953],{},"@font-palette-values",[638,955,956],{},"@position-try",") with ",[638,959,960],{},"--\u003Cname>-",". A ",[638,963,964],{},"@keyframes spin"," or an ",[638,967,968],{},"@font-face"," with the admin's family would change the\nadmin's own screens. Every ",[638,971,972],{},"font-family"," in an ",[638,975,968],{}," needs the prefix, since a browser uses the last one.\nIn a scoped ",[638,978,872],{},", Vue adds the scope id to a keyframes name (",[638,981,982],{},"shop-spin-1a2b3c4d","), so\nthe prefix holds there too;",[631,985,986,987,673,990,673,993,673,996,999],{},"any other global at-rule (",[638,988,989],{},"@page",[638,991,992],{},"@font-feature-values",[638,994,995],{},"@view-transition",[638,997,998],{},"@namespace",", …) is refused;",[631,1001,1002,1005,1006,1009,1010,1013],{},[638,1003,1004],{},"@scope"," is refused anywhere (",[638,1007,1008],{},"@scope (body)"," would reach the whole page), and so is ",[638,1011,1012],{},"@import"," (a stylesheet\nloaded unscoped): import a CSS file from a page's script instead, so it is bundled and scoped, or copy it in.",[919,1015],{},"Tailwind's own output is not checked: compiled from the admin's theme, its ",[638,1018,964],{}," (for ",[638,1021,1022],{},"animate-spin",")\nand ",[638,1025,1026],{},"@property --tw-*"," are the admin's own. Library CSS a page bundles is the module's own CSS: if it defines\nkeyframes or fonts of its own, copy it in with the names prefixed. This keeps a package's mistakes off the admin's\nscreens; it is no sandbox: a module's code, which runs in the admin, can still add styles at runtime.",[631,1029,1030,641,1033,1036,1037,1040,1041,1044,1045,1048,1049,1052,1053,1056,1057,1059],{},[634,1031,1032],{},"The admin mounts them once signed in",[638,1034,1035],{},"useModulePackages",", called by ",[638,1038,1039],{},"middleware\u002Fauth.global.ts","): it reads\n",[638,1042,1043],{},"GET \u002Fapi\u002Fpackages\u002Fserver\u002Fadmin"," (pages with their module URLs, sidebar entries and group, widgets, panels and,\nfor admins, settings sections with theirs, actions, texts per language, stylesheet), adds the pages to the router, registers the actions for ",[638,1046,1047],{},"useCan()",", merges the texts and\nlinks the stylesheet. A link straight to a package's page is tried again once its pages are mounted. The files are\nserved by ",[638,1050,1051],{},"GET \u002Fapi\u002Fpackages\u002Fserver\u002F\u003Cname>\u002F\u003Cversion>\u002Fadmin-dist\u002F…",", only for the version the API runs, to signed-in\naccounts. In development, modules from ",[638,1054,1055],{},"SHADE_DEV_MODULES"," are built into the admin instead (",[638,1058,703],{},").",[631,1061,1062,1065,1066,684,1069,1072,1073,1076,1077,1080,1081,1084,1085,1088,1089,1092,1093,641,1096,1099,1100,1103,1104,684,1107,1110,1111,1114],{},[634,1063,1064],{},"The site part is compiled with the site."," A package carries its ",[638,1067,1068],{},"site\u002F",[638,1070,1071],{},"shared\u002F"," folders as sources; its\n",[638,1074,1075],{},"site\u002Findex.ts"," may export ",[638,1078,1079],{},"head",". Before every build, ",[638,1082,1083],{},"@shadestack\u002Fastro"," fetches them from\n",[638,1086,1087],{},"GET \u002Fapi\u002Fv1\u002Fcontent\u002Fmodule-sites"," (the build's read token), writes them into the site's ",[638,1090,1091],{},".shade\u002Fmodules\u002F"," (ignored by\ngit) and offers them as ",[638,1094,1095],{},"virtual:shade\u002Fmodule-sites",[638,1097,1098],{},"packages\u002Fastro\u002Fsrc\u002Fintegrations\u002Fmodule-sites.ts"," in ",[638,1101,1102],{},"shade-frontend","); the site's\nlayout renders the heads of the modules that are on. A build fails when the API can't say which packages there are,\nrather than leave them out. Their imports resolve from the site: it depends on ",[638,1105,1106],{},"@shadestack\u002Fmodule-sdk",[638,1108,1109],{},"zod",". A\nsite in another repository that uses no packages can switch it off with ",[638,1112,1113],{},"shade({ modules: false })",".",[631,1116,1117,1120],{},[634,1118,1119],{},"When:"," like the server code, screens of an installed or updated package appear after the restart; its site part\nreaches the website with the next publish (the next build).",[619,1122,1124],{"id":1123},"where-a-module-appears-in-the-admin","Where a module appears in the admin",[624,1126,1127,1128,1131],{},"Besides its pages, a module may fill these places of the admin, all in the manifest's ",[638,1129,1130],{},"admin"," part:",[1133,1134,1139],"pre",{"className":1135,"code":1136,"language":1137,"meta":1138,"style":1138},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","admin: {\n  locales: 'admin\u002Flocales',\n  \u002F\u002F `fullScreen: true` gives a page the whole window, without the sidebar; it brings its own header with a way back.\n  \u002F\u002F A page's `name` (optional) is the module's name or starts with `\u003Cmodule>-` (`shop-orders`), once per module: it\n  \u002F\u002F never takes a route of the admin's own.\n  pages: [{ path: '\u002Fmodules\u002Fshop\u002Forders', name: 'shop-orders', file: 'admin\u002FOrdersPage.vue' }],\n  \u002F\u002F `section` (on an entry or a group; its entries take the group's unless they name their own) puts the screens in\n  \u002F\u002F one of the sidebar's sections: 'content', 'customers', 'sales', 'bookings', 'website' or 'insights'; never\n  \u002F\u002F 'inbox', which is one row fed by inbox sources (below). An entry with `area: 'settings'` stands in the settings\n  \u002F\u002F area's Modules group and takes no section (refused if it names one).\n  \u002F\u002F Name a section for the module's work pages: that keeps the sidebar's top level short. Without one, a group (or a\n  \u002F\u002F plain list of entries, under the module's title) goes in the shared \"More\" row after the sections, a view with a\n  \u002F\u002F heading per module; it is the fallback, not a place to aim for.\n  sidebar: {\n    group: { label: 'shop.sidebar.group', icon: 'i-lucide-store', section: 'sales' },\n    \u002F\u002F `keywords`: more words search finds the entry by, not shown (translation keys or plain text, commas between words).\n    entries: [{ label: 'shop.sidebar.orders', icon: 'i-lucide-shopping-bag', to: '\u002Fmodules\u002Fshop\u002Forders', requires: 'shop.orders.read', keywords: ['shop.sidebar.ordersKeywords'] }]\n  },\n  \u002F\u002F Dashboard cards (decision 0012 point 22): small (4 of 12 columns), medium (6) or wide (12), the sizes it allows, whether\n  \u002F\u002F it is in the default layout, a description for the Add list, and settings kept with the layout (its prop `settings`).\n  widgets: [{ id: 'to-ship', label: 'shop.widgets.toShip', description: 'shop.widgets.toShipHelp', file: 'admin\u002FToShipWidget.vue', requires: 'shop.orders.read', size: 'small', sizes: ['small', 'medium'], settings: [{ kind: 'number', name: 'days', label: 'shop.widgets.days', defaultValue: 7 }] }],\n  \u002F\u002F A panel beside the entry editor of core's collections or the module's own (not the pages).\n  panels: [{ id: 'stock', label: 'shop.panels.stock', file: 'admin\u002FStockPanel.vue', collections: ['shop-products'], requires: 'shop.stock.manage' }],\n  \u002F\u002F Next to Publish in the entry editor, and in its status row (experimental): `entryActions` and `entryChips`. Both show\n  \u002F\u002F on the collections with drafts, or on the `collections` named.\n  entryActions: [{ id: 'schedule', file: 'admin\u002FScheduleAction.vue', requires: 'editorial.schedules.create' }],\n  entryChips: [{ id: 'release', file: 'admin\u002FReleaseChip.vue', requires: 'editorial.releases.read' }],\n  \u002F\u002F One column in the entry list (experimental): a badge per entry, from a route of the module, with an optional filter.\n  entryColumns: [{ id: 'translations', label: 'editorial.columns.translations', route: '\u002Fapi\u002Fpackages\u002Feditorial\u002Ftranslations\u002Fcolumn', requires: 'editorial.translations.read', filter: { label: 'editorial.columns.filter', options: [{ value: 'outdated', label: 'editorial.columns.outdated' }] } }],\n  \u002F\u002F A panel on a contact of the People screen (experimental): what the module keeps about that person.\n  contactPanels: [{ id: 'orders', label: 'shop.contactPanel.title', file: 'admin\u002FContactOrders.vue', requires: 'shop.orders.read' }],\n  \u002F\u002F A panel on an organisation of the Organisations screen (experimental): what the module keeps for that organisation.\n  organisationPanels: [{ id: 'orders', label: 'shop.organisationPanel.title', file: 'admin\u002FOrganisationOrders.vue', requires: 'shop.orders.read' }],\n  \u002F\u002F A tab of the Settings screen, after core's one \"Site\" tab: module configuration, for admins only.\n  settings: [{ id: 'general', label: 'shop.settings.title', file: 'admin\u002FShopSettings.vue' }],\n  \u002F\u002F A button on every collection's list (experimental): a link to one of the module's pages, opened with ?collection=\u003Cslug>.\n  listActions: [{ label: 'shop.listAction', icon: 'i-lucide-file-up', to: '\u002Fmodules\u002Fshop\u002Fcollection' }],\n  \u002F\u002F What waits for the team member, in the Inbox: a count route, an items route and the screen with all of it.\n  inbox: [{ id: 'to-ship', label: 'shop.inbox.toShip', icon: 'i-lucide-package', requires: 'shop.orders.read', count: '\u002Forders\u002Fto-ship-count', items: '\u002Forders\u002Fto-ship\u002Finbox', to: '\u002Fmodules\u002Fshop\u002Forders' }],\n  \u002F\u002F What the admin's search (Ctrl+K) finds in the module as the team member types: a route asked with ?q=.\n  search: [{ id: 'orders', label: 'shop.sidebar.orders', icon: 'i-lucide-shopping-bag', requires: 'shop.orders.read', route: '\u002Forders\u002Fsearch' }]\n}\n","ts","",[638,1140,1141,1156,1176,1183,1189,1195,1259,1265,1271,1277,1283,1289,1295,1301,1311,1365,1371,1459,1465,1471,1477,1663,1669,1755,1761,1767,1822,1877,1883,2014,2020,2087,2093,2159,2165,2220,2226,2281,2287,2393,2399,2474],{"__ignoreMap":1138},[1142,1143,1146,1149,1153],"span",{"class":1144,"line":1145},"line",1,[1142,1147,1130],{"class":1148},"sBMFI",[1142,1150,1152],{"class":1151},"sMK4o",":",[1142,1154,1155],{"class":1151}," {\n",[1142,1157,1159,1162,1164,1167,1171,1174],{"class":1144,"line":1158},2,[1142,1160,1161],{"class":1148},"  locales",[1142,1163,1152],{"class":1151},[1142,1165,1166],{"class":1151}," '",[1142,1168,1170],{"class":1169},"sfazB","admin\u002Flocales",[1142,1172,1173],{"class":1151},"'",[1142,1175,677],{"class":1151},[1142,1177,1179],{"class":1144,"line":1178},3,[1142,1180,1182],{"class":1181},"sHwdD","  \u002F\u002F `fullScreen: true` gives a page the whole window, without the sidebar; it brings its own header with a way back.\n",[1142,1184,1186],{"class":1144,"line":1185},4,[1142,1187,1188],{"class":1181},"  \u002F\u002F A page's `name` (optional) is the module's name or starts with `\u003Cmodule>-` (`shop-orders`), once per module: it\n",[1142,1190,1192],{"class":1144,"line":1191},5,[1142,1193,1194],{"class":1181},"  \u002F\u002F never takes a route of the admin's own.\n",[1142,1196,1198,1201,1203,1207,1210,1213,1215,1217,1220,1222,1225,1228,1230,1232,1235,1237,1239,1242,1244,1246,1249,1251,1254,1257],{"class":1144,"line":1197},6,[1142,1199,1200],{"class":1148},"  pages",[1142,1202,1152],{"class":1151},[1142,1204,1206],{"class":1205},"swJcz"," [",[1142,1208,1209],{"class":1151},"{",[1142,1211,1212],{"class":1205}," path",[1142,1214,1152],{"class":1151},[1142,1216,1166],{"class":1151},[1142,1218,1219],{"class":1169},"\u002Fmodules\u002Fshop\u002Forders",[1142,1221,1173],{"class":1151},[1142,1223,1224],{"class":1151},",",[1142,1226,1227],{"class":1205}," name",[1142,1229,1152],{"class":1151},[1142,1231,1166],{"class":1151},[1142,1233,1234],{"class":1169},"shop-orders",[1142,1236,1173],{"class":1151},[1142,1238,1224],{"class":1151},[1142,1240,1241],{"class":1205}," file",[1142,1243,1152],{"class":1151},[1142,1245,1166],{"class":1151},[1142,1247,1248],{"class":1169},"admin\u002FOrdersPage.vue",[1142,1250,1173],{"class":1151},[1142,1252,1253],{"class":1151}," }",[1142,1255,1256],{"class":1205},"]",[1142,1258,677],{"class":1151},[1142,1260,1262],{"class":1144,"line":1261},7,[1142,1263,1264],{"class":1181},"  \u002F\u002F `section` (on an entry or a group; its entries take the group's unless they name their own) puts the screens in\n",[1142,1266,1268],{"class":1144,"line":1267},8,[1142,1269,1270],{"class":1181},"  \u002F\u002F one of the sidebar's sections: 'content', 'customers', 'sales', 'bookings', 'website' or 'insights'; never\n",[1142,1272,1274],{"class":1144,"line":1273},9,[1142,1275,1276],{"class":1181},"  \u002F\u002F 'inbox', which is one row fed by inbox sources (below). An entry with `area: 'settings'` stands in the settings\n",[1142,1278,1280],{"class":1144,"line":1279},10,[1142,1281,1282],{"class":1181},"  \u002F\u002F area's Modules group and takes no section (refused if it names one).\n",[1142,1284,1286],{"class":1144,"line":1285},11,[1142,1287,1288],{"class":1181},"  \u002F\u002F Name a section for the module's work pages: that keeps the sidebar's top level short. Without one, a group (or a\n",[1142,1290,1292],{"class":1144,"line":1291},12,[1142,1293,1294],{"class":1181},"  \u002F\u002F plain list of entries, under the module's title) goes in the shared \"More\" row after the sections, a view with a\n",[1142,1296,1298],{"class":1144,"line":1297},13,[1142,1299,1300],{"class":1181},"  \u002F\u002F heading per module; it is the fallback, not a place to aim for.\n",[1142,1302,1304,1307,1309],{"class":1144,"line":1303},14,[1142,1305,1306],{"class":1148},"  sidebar",[1142,1308,1152],{"class":1151},[1142,1310,1155],{"class":1151},[1142,1312,1314,1317,1319,1322,1325,1327,1329,1332,1334,1336,1339,1341,1343,1346,1348,1350,1353,1355,1357,1360,1362],{"class":1144,"line":1313},15,[1142,1315,1316],{"class":1148},"    group",[1142,1318,1152],{"class":1151},[1142,1320,1321],{"class":1151}," {",[1142,1323,1324],{"class":1148}," label",[1142,1326,1152],{"class":1151},[1142,1328,1166],{"class":1151},[1142,1330,1331],{"class":1169},"shop.sidebar.group",[1142,1333,1173],{"class":1151},[1142,1335,1224],{"class":1151},[1142,1337,1338],{"class":1148}," icon",[1142,1340,1152],{"class":1151},[1142,1342,1166],{"class":1151},[1142,1344,1345],{"class":1169},"i-lucide-store",[1142,1347,1173],{"class":1151},[1142,1349,1224],{"class":1151},[1142,1351,1352],{"class":1148}," section",[1142,1354,1152],{"class":1151},[1142,1356,1166],{"class":1151},[1142,1358,1359],{"class":1169},"sales",[1142,1361,1173],{"class":1151},[1142,1363,1364],{"class":1151}," },\n",[1142,1366,1368],{"class":1144,"line":1367},16,[1142,1369,1370],{"class":1181},"    \u002F\u002F `keywords`: more words search finds the entry by, not shown (translation keys or plain text, commas between words).\n",[1142,1372,1374,1377,1379,1381,1383,1385,1387,1389,1392,1394,1396,1398,1400,1402,1405,1407,1409,1412,1414,1416,1418,1420,1422,1425,1427,1429,1432,1434,1436,1439,1441,1443,1445,1448,1450,1453,1456],{"class":1144,"line":1373},17,[1142,1375,1376],{"class":1148},"    entries",[1142,1378,1152],{"class":1151},[1142,1380,1206],{"class":1205},[1142,1382,1209],{"class":1151},[1142,1384,1324],{"class":1205},[1142,1386,1152],{"class":1151},[1142,1388,1166],{"class":1151},[1142,1390,1391],{"class":1169},"shop.sidebar.orders",[1142,1393,1173],{"class":1151},[1142,1395,1224],{"class":1151},[1142,1397,1338],{"class":1205},[1142,1399,1152],{"class":1151},[1142,1401,1166],{"class":1151},[1142,1403,1404],{"class":1169},"i-lucide-shopping-bag",[1142,1406,1173],{"class":1151},[1142,1408,1224],{"class":1151},[1142,1410,1411],{"class":1205}," to",[1142,1413,1152],{"class":1151},[1142,1415,1166],{"class":1151},[1142,1417,1219],{"class":1169},[1142,1419,1173],{"class":1151},[1142,1421,1224],{"class":1151},[1142,1423,1424],{"class":1205}," requires",[1142,1426,1152],{"class":1151},[1142,1428,1166],{"class":1151},[1142,1430,1431],{"class":1169},"shop.orders.read",[1142,1433,1173],{"class":1151},[1142,1435,1224],{"class":1151},[1142,1437,1438],{"class":1205}," keywords",[1142,1440,1152],{"class":1151},[1142,1442,1206],{"class":1205},[1142,1444,1173],{"class":1151},[1142,1446,1447],{"class":1169},"shop.sidebar.ordersKeywords",[1142,1449,1173],{"class":1151},[1142,1451,1452],{"class":1205},"] ",[1142,1454,1455],{"class":1151},"}",[1142,1457,1458],{"class":1205},"]\n",[1142,1460,1462],{"class":1144,"line":1461},18,[1142,1463,1464],{"class":1151},"  },\n",[1142,1466,1468],{"class":1144,"line":1467},19,[1142,1469,1470],{"class":1181},"  \u002F\u002F Dashboard cards (decision 0012 point 22): small (4 of 12 columns), medium (6) or wide (12), the sizes it allows, whether\n",[1142,1472,1474],{"class":1144,"line":1473},20,[1142,1475,1476],{"class":1181},"  \u002F\u002F it is in the default layout, a description for the Add list, and settings kept with the layout (its prop `settings`).\n",[1142,1478,1480,1483,1485,1487,1489,1492,1494,1496,1499,1501,1503,1505,1507,1509,1512,1514,1516,1519,1521,1523,1526,1528,1530,1532,1534,1536,1539,1541,1543,1545,1547,1549,1551,1553,1555,1558,1560,1562,1565,1567,1569,1572,1574,1576,1578,1580,1582,1584,1586,1589,1591,1593,1595,1598,1600,1602,1604,1607,1609,1611,1614,1616,1618,1620,1622,1624,1627,1629,1631,1633,1635,1637,1640,1642,1644,1647,1649,1653,1655,1657,1659,1661],{"class":1144,"line":1479},21,[1142,1481,1482],{"class":1148},"  widgets",[1142,1484,1152],{"class":1151},[1142,1486,1206],{"class":1205},[1142,1488,1209],{"class":1151},[1142,1490,1491],{"class":1205}," id",[1142,1493,1152],{"class":1151},[1142,1495,1166],{"class":1151},[1142,1497,1498],{"class":1169},"to-ship",[1142,1500,1173],{"class":1151},[1142,1502,1224],{"class":1151},[1142,1504,1324],{"class":1205},[1142,1506,1152],{"class":1151},[1142,1508,1166],{"class":1151},[1142,1510,1511],{"class":1169},"shop.widgets.toShip",[1142,1513,1173],{"class":1151},[1142,1515,1224],{"class":1151},[1142,1517,1518],{"class":1205}," description",[1142,1520,1152],{"class":1151},[1142,1522,1166],{"class":1151},[1142,1524,1525],{"class":1169},"shop.widgets.toShipHelp",[1142,1527,1173],{"class":1151},[1142,1529,1224],{"class":1151},[1142,1531,1241],{"class":1205},[1142,1533,1152],{"class":1151},[1142,1535,1166],{"class":1151},[1142,1537,1538],{"class":1169},"admin\u002FToShipWidget.vue",[1142,1540,1173],{"class":1151},[1142,1542,1224],{"class":1151},[1142,1544,1424],{"class":1205},[1142,1546,1152],{"class":1151},[1142,1548,1166],{"class":1151},[1142,1550,1431],{"class":1169},[1142,1552,1173],{"class":1151},[1142,1554,1224],{"class":1151},[1142,1556,1557],{"class":1205}," size",[1142,1559,1152],{"class":1151},[1142,1561,1166],{"class":1151},[1142,1563,1564],{"class":1169},"small",[1142,1566,1173],{"class":1151},[1142,1568,1224],{"class":1151},[1142,1570,1571],{"class":1205}," sizes",[1142,1573,1152],{"class":1151},[1142,1575,1206],{"class":1205},[1142,1577,1173],{"class":1151},[1142,1579,1564],{"class":1169},[1142,1581,1173],{"class":1151},[1142,1583,1224],{"class":1151},[1142,1585,1166],{"class":1151},[1142,1587,1588],{"class":1169},"medium",[1142,1590,1173],{"class":1151},[1142,1592,1256],{"class":1205},[1142,1594,1224],{"class":1151},[1142,1596,1597],{"class":1205}," settings",[1142,1599,1152],{"class":1151},[1142,1601,1206],{"class":1205},[1142,1603,1209],{"class":1151},[1142,1605,1606],{"class":1205}," kind",[1142,1608,1152],{"class":1151},[1142,1610,1166],{"class":1151},[1142,1612,1613],{"class":1169},"number",[1142,1615,1173],{"class":1151},[1142,1617,1224],{"class":1151},[1142,1619,1227],{"class":1205},[1142,1621,1152],{"class":1151},[1142,1623,1166],{"class":1151},[1142,1625,1626],{"class":1169},"days",[1142,1628,1173],{"class":1151},[1142,1630,1224],{"class":1151},[1142,1632,1324],{"class":1205},[1142,1634,1152],{"class":1151},[1142,1636,1166],{"class":1151},[1142,1638,1639],{"class":1169},"shop.widgets.days",[1142,1641,1173],{"class":1151},[1142,1643,1224],{"class":1151},[1142,1645,1646],{"class":1205}," defaultValue",[1142,1648,1152],{"class":1151},[1142,1650,1652],{"class":1651},"sbssI"," 7",[1142,1654,1253],{"class":1151},[1142,1656,1452],{"class":1205},[1142,1658,1455],{"class":1151},[1142,1660,1256],{"class":1205},[1142,1662,677],{"class":1151},[1142,1664,1666],{"class":1144,"line":1665},22,[1142,1667,1668],{"class":1181},"  \u002F\u002F A panel beside the entry editor of core's collections or the module's own (not the pages).\n",[1142,1670,1672,1675,1677,1679,1681,1683,1685,1687,1690,1692,1694,1696,1698,1700,1703,1705,1707,1709,1711,1713,1716,1718,1720,1723,1725,1727,1729,1732,1734,1736,1738,1740,1742,1744,1747,1749,1751,1753],{"class":1144,"line":1671},23,[1142,1673,1674],{"class":1148},"  panels",[1142,1676,1152],{"class":1151},[1142,1678,1206],{"class":1205},[1142,1680,1209],{"class":1151},[1142,1682,1491],{"class":1205},[1142,1684,1152],{"class":1151},[1142,1686,1166],{"class":1151},[1142,1688,1689],{"class":1169},"stock",[1142,1691,1173],{"class":1151},[1142,1693,1224],{"class":1151},[1142,1695,1324],{"class":1205},[1142,1697,1152],{"class":1151},[1142,1699,1166],{"class":1151},[1142,1701,1702],{"class":1169},"shop.panels.stock",[1142,1704,1173],{"class":1151},[1142,1706,1224],{"class":1151},[1142,1708,1241],{"class":1205},[1142,1710,1152],{"class":1151},[1142,1712,1166],{"class":1151},[1142,1714,1715],{"class":1169},"admin\u002FStockPanel.vue",[1142,1717,1173],{"class":1151},[1142,1719,1224],{"class":1151},[1142,1721,1722],{"class":1205}," collections",[1142,1724,1152],{"class":1151},[1142,1726,1206],{"class":1205},[1142,1728,1173],{"class":1151},[1142,1730,1731],{"class":1169},"shop-products",[1142,1733,1173],{"class":1151},[1142,1735,1256],{"class":1205},[1142,1737,1224],{"class":1151},[1142,1739,1424],{"class":1205},[1142,1741,1152],{"class":1151},[1142,1743,1166],{"class":1151},[1142,1745,1746],{"class":1169},"shop.stock.manage",[1142,1748,1173],{"class":1151},[1142,1750,1253],{"class":1151},[1142,1752,1256],{"class":1205},[1142,1754,677],{"class":1151},[1142,1756,1758],{"class":1144,"line":1757},24,[1142,1759,1760],{"class":1181},"  \u002F\u002F Next to Publish in the entry editor, and in its status row (experimental): `entryActions` and `entryChips`. Both show\n",[1142,1762,1764],{"class":1144,"line":1763},25,[1142,1765,1766],{"class":1181},"  \u002F\u002F on the collections with drafts, or on the `collections` named.\n",[1142,1768,1770,1773,1775,1777,1779,1781,1783,1785,1788,1790,1792,1794,1796,1798,1801,1803,1805,1807,1809,1811,1814,1816,1818,1820],{"class":1144,"line":1769},26,[1142,1771,1772],{"class":1148},"  entryActions",[1142,1774,1152],{"class":1151},[1142,1776,1206],{"class":1205},[1142,1778,1209],{"class":1151},[1142,1780,1491],{"class":1205},[1142,1782,1152],{"class":1151},[1142,1784,1166],{"class":1151},[1142,1786,1787],{"class":1169},"schedule",[1142,1789,1173],{"class":1151},[1142,1791,1224],{"class":1151},[1142,1793,1241],{"class":1205},[1142,1795,1152],{"class":1151},[1142,1797,1166],{"class":1151},[1142,1799,1800],{"class":1169},"admin\u002FScheduleAction.vue",[1142,1802,1173],{"class":1151},[1142,1804,1224],{"class":1151},[1142,1806,1424],{"class":1205},[1142,1808,1152],{"class":1151},[1142,1810,1166],{"class":1151},[1142,1812,1813],{"class":1169},"editorial.schedules.create",[1142,1815,1173],{"class":1151},[1142,1817,1253],{"class":1151},[1142,1819,1256],{"class":1205},[1142,1821,677],{"class":1151},[1142,1823,1825,1828,1830,1832,1834,1836,1838,1840,1843,1845,1847,1849,1851,1853,1856,1858,1860,1862,1864,1866,1869,1871,1873,1875],{"class":1144,"line":1824},27,[1142,1826,1827],{"class":1148},"  entryChips",[1142,1829,1152],{"class":1151},[1142,1831,1206],{"class":1205},[1142,1833,1209],{"class":1151},[1142,1835,1491],{"class":1205},[1142,1837,1152],{"class":1151},[1142,1839,1166],{"class":1151},[1142,1841,1842],{"class":1169},"release",[1142,1844,1173],{"class":1151},[1142,1846,1224],{"class":1151},[1142,1848,1241],{"class":1205},[1142,1850,1152],{"class":1151},[1142,1852,1166],{"class":1151},[1142,1854,1855],{"class":1169},"admin\u002FReleaseChip.vue",[1142,1857,1173],{"class":1151},[1142,1859,1224],{"class":1151},[1142,1861,1424],{"class":1205},[1142,1863,1152],{"class":1151},[1142,1865,1166],{"class":1151},[1142,1867,1868],{"class":1169},"editorial.releases.read",[1142,1870,1173],{"class":1151},[1142,1872,1253],{"class":1151},[1142,1874,1256],{"class":1205},[1142,1876,677],{"class":1151},[1142,1878,1880],{"class":1144,"line":1879},28,[1142,1881,1882],{"class":1181},"  \u002F\u002F One column in the entry list (experimental): a badge per entry, from a route of the module, with an optional filter.\n",[1142,1884,1886,1889,1891,1893,1895,1897,1899,1901,1904,1906,1908,1910,1912,1914,1917,1919,1921,1924,1926,1928,1931,1933,1935,1937,1939,1941,1944,1946,1948,1951,1953,1955,1957,1959,1961,1964,1966,1968,1971,1973,1975,1977,1980,1982,1984,1987,1989,1991,1993,1995,1997,2000,2002,2004,2006,2008,2010,2012],{"class":1144,"line":1885},29,[1142,1887,1888],{"class":1148},"  entryColumns",[1142,1890,1152],{"class":1151},[1142,1892,1206],{"class":1205},[1142,1894,1209],{"class":1151},[1142,1896,1491],{"class":1205},[1142,1898,1152],{"class":1151},[1142,1900,1166],{"class":1151},[1142,1902,1903],{"class":1169},"translations",[1142,1905,1173],{"class":1151},[1142,1907,1224],{"class":1151},[1142,1909,1324],{"class":1205},[1142,1911,1152],{"class":1151},[1142,1913,1166],{"class":1151},[1142,1915,1916],{"class":1169},"editorial.columns.translations",[1142,1918,1173],{"class":1151},[1142,1920,1224],{"class":1151},[1142,1922,1923],{"class":1205}," route",[1142,1925,1152],{"class":1151},[1142,1927,1166],{"class":1151},[1142,1929,1930],{"class":1169},"\u002Fapi\u002Fpackages\u002Feditorial\u002Ftranslations\u002Fcolumn",[1142,1932,1173],{"class":1151},[1142,1934,1224],{"class":1151},[1142,1936,1424],{"class":1205},[1142,1938,1152],{"class":1151},[1142,1940,1166],{"class":1151},[1142,1942,1943],{"class":1169},"editorial.translations.read",[1142,1945,1173],{"class":1151},[1142,1947,1224],{"class":1151},[1142,1949,1950],{"class":1205}," filter",[1142,1952,1152],{"class":1151},[1142,1954,1321],{"class":1151},[1142,1956,1324],{"class":1205},[1142,1958,1152],{"class":1151},[1142,1960,1166],{"class":1151},[1142,1962,1963],{"class":1169},"editorial.columns.filter",[1142,1965,1173],{"class":1151},[1142,1967,1224],{"class":1151},[1142,1969,1970],{"class":1205}," options",[1142,1972,1152],{"class":1151},[1142,1974,1206],{"class":1205},[1142,1976,1209],{"class":1151},[1142,1978,1979],{"class":1205}," value",[1142,1981,1152],{"class":1151},[1142,1983,1166],{"class":1151},[1142,1985,1986],{"class":1169},"outdated",[1142,1988,1173],{"class":1151},[1142,1990,1224],{"class":1151},[1142,1992,1324],{"class":1205},[1142,1994,1152],{"class":1151},[1142,1996,1166],{"class":1151},[1142,1998,1999],{"class":1169},"editorial.columns.outdated",[1142,2001,1173],{"class":1151},[1142,2003,1253],{"class":1151},[1142,2005,1452],{"class":1205},[1142,2007,1455],{"class":1151},[1142,2009,1253],{"class":1151},[1142,2011,1256],{"class":1205},[1142,2013,677],{"class":1151},[1142,2015,2017],{"class":1144,"line":2016},30,[1142,2018,2019],{"class":1181},"  \u002F\u002F A panel on a contact of the People screen (experimental): what the module keeps about that person.\n",[1142,2021,2023,2026,2028,2030,2032,2034,2036,2038,2041,2043,2045,2047,2049,2051,2054,2056,2058,2060,2062,2064,2067,2069,2071,2073,2075,2077,2079,2081,2083,2085],{"class":1144,"line":2022},31,[1142,2024,2025],{"class":1148},"  contactPanels",[1142,2027,1152],{"class":1151},[1142,2029,1206],{"class":1205},[1142,2031,1209],{"class":1151},[1142,2033,1491],{"class":1205},[1142,2035,1152],{"class":1151},[1142,2037,1166],{"class":1151},[1142,2039,2040],{"class":1169},"orders",[1142,2042,1173],{"class":1151},[1142,2044,1224],{"class":1151},[1142,2046,1324],{"class":1205},[1142,2048,1152],{"class":1151},[1142,2050,1166],{"class":1151},[1142,2052,2053],{"class":1169},"shop.contactPanel.title",[1142,2055,1173],{"class":1151},[1142,2057,1224],{"class":1151},[1142,2059,1241],{"class":1205},[1142,2061,1152],{"class":1151},[1142,2063,1166],{"class":1151},[1142,2065,2066],{"class":1169},"admin\u002FContactOrders.vue",[1142,2068,1173],{"class":1151},[1142,2070,1224],{"class":1151},[1142,2072,1424],{"class":1205},[1142,2074,1152],{"class":1151},[1142,2076,1166],{"class":1151},[1142,2078,1431],{"class":1169},[1142,2080,1173],{"class":1151},[1142,2082,1253],{"class":1151},[1142,2084,1256],{"class":1205},[1142,2086,677],{"class":1151},[1142,2088,2090],{"class":1144,"line":2089},32,[1142,2091,2092],{"class":1181},"  \u002F\u002F A panel on an organisation of the Organisations screen (experimental): what the module keeps for that organisation.\n",[1142,2094,2096,2099,2101,2103,2105,2107,2109,2111,2113,2115,2117,2119,2121,2123,2126,2128,2130,2132,2134,2136,2139,2141,2143,2145,2147,2149,2151,2153,2155,2157],{"class":1144,"line":2095},33,[1142,2097,2098],{"class":1148},"  organisationPanels",[1142,2100,1152],{"class":1151},[1142,2102,1206],{"class":1205},[1142,2104,1209],{"class":1151},[1142,2106,1491],{"class":1205},[1142,2108,1152],{"class":1151},[1142,2110,1166],{"class":1151},[1142,2112,2040],{"class":1169},[1142,2114,1173],{"class":1151},[1142,2116,1224],{"class":1151},[1142,2118,1324],{"class":1205},[1142,2120,1152],{"class":1151},[1142,2122,1166],{"class":1151},[1142,2124,2125],{"class":1169},"shop.organisationPanel.title",[1142,2127,1173],{"class":1151},[1142,2129,1224],{"class":1151},[1142,2131,1241],{"class":1205},[1142,2133,1152],{"class":1151},[1142,2135,1166],{"class":1151},[1142,2137,2138],{"class":1169},"admin\u002FOrganisationOrders.vue",[1142,2140,1173],{"class":1151},[1142,2142,1224],{"class":1151},[1142,2144,1424],{"class":1205},[1142,2146,1152],{"class":1151},[1142,2148,1166],{"class":1151},[1142,2150,1431],{"class":1169},[1142,2152,1173],{"class":1151},[1142,2154,1253],{"class":1151},[1142,2156,1256],{"class":1205},[1142,2158,677],{"class":1151},[1142,2160,2162],{"class":1144,"line":2161},34,[1142,2163,2164],{"class":1181},"  \u002F\u002F A tab of the Settings screen, after core's one \"Site\" tab: module configuration, for admins only.\n",[1142,2166,2168,2171,2173,2175,2177,2179,2181,2183,2186,2188,2190,2192,2194,2196,2199,2201,2203,2205,2207,2209,2212,2214,2216,2218],{"class":1144,"line":2167},35,[1142,2169,2170],{"class":1148},"  settings",[1142,2172,1152],{"class":1151},[1142,2174,1206],{"class":1205},[1142,2176,1209],{"class":1151},[1142,2178,1491],{"class":1205},[1142,2180,1152],{"class":1151},[1142,2182,1166],{"class":1151},[1142,2184,2185],{"class":1169},"general",[1142,2187,1173],{"class":1151},[1142,2189,1224],{"class":1151},[1142,2191,1324],{"class":1205},[1142,2193,1152],{"class":1151},[1142,2195,1166],{"class":1151},[1142,2197,2198],{"class":1169},"shop.settings.title",[1142,2200,1173],{"class":1151},[1142,2202,1224],{"class":1151},[1142,2204,1241],{"class":1205},[1142,2206,1152],{"class":1151},[1142,2208,1166],{"class":1151},[1142,2210,2211],{"class":1169},"admin\u002FShopSettings.vue",[1142,2213,1173],{"class":1151},[1142,2215,1253],{"class":1151},[1142,2217,1256],{"class":1205},[1142,2219,677],{"class":1151},[1142,2221,2223],{"class":1144,"line":2222},36,[1142,2224,2225],{"class":1181},"  \u002F\u002F A button on every collection's list (experimental): a link to one of the module's pages, opened with ?collection=\u003Cslug>.\n",[1142,2227,2229,2232,2234,2236,2238,2240,2242,2244,2247,2249,2251,2253,2255,2257,2260,2262,2264,2266,2268,2270,2273,2275,2277,2279],{"class":1144,"line":2228},37,[1142,2230,2231],{"class":1148},"  listActions",[1142,2233,1152],{"class":1151},[1142,2235,1206],{"class":1205},[1142,2237,1209],{"class":1151},[1142,2239,1324],{"class":1205},[1142,2241,1152],{"class":1151},[1142,2243,1166],{"class":1151},[1142,2245,2246],{"class":1169},"shop.listAction",[1142,2248,1173],{"class":1151},[1142,2250,1224],{"class":1151},[1142,2252,1338],{"class":1205},[1142,2254,1152],{"class":1151},[1142,2256,1166],{"class":1151},[1142,2258,2259],{"class":1169},"i-lucide-file-up",[1142,2261,1173],{"class":1151},[1142,2263,1224],{"class":1151},[1142,2265,1411],{"class":1205},[1142,2267,1152],{"class":1151},[1142,2269,1166],{"class":1151},[1142,2271,2272],{"class":1169},"\u002Fmodules\u002Fshop\u002Fcollection",[1142,2274,1173],{"class":1151},[1142,2276,1253],{"class":1151},[1142,2278,1256],{"class":1205},[1142,2280,677],{"class":1151},[1142,2282,2284],{"class":1144,"line":2283},38,[1142,2285,2286],{"class":1181},"  \u002F\u002F What waits for the team member, in the Inbox: a count route, an items route and the screen with all of it.\n",[1142,2288,2290,2293,2295,2297,2299,2301,2303,2305,2307,2309,2311,2313,2315,2317,2320,2322,2324,2326,2328,2330,2333,2335,2337,2339,2341,2343,2345,2347,2349,2352,2354,2356,2359,2361,2363,2366,2368,2370,2373,2375,2377,2379,2381,2383,2385,2387,2389,2391],{"class":1144,"line":2289},39,[1142,2291,2292],{"class":1148},"  inbox",[1142,2294,1152],{"class":1151},[1142,2296,1206],{"class":1205},[1142,2298,1209],{"class":1151},[1142,2300,1491],{"class":1205},[1142,2302,1152],{"class":1151},[1142,2304,1166],{"class":1151},[1142,2306,1498],{"class":1169},[1142,2308,1173],{"class":1151},[1142,2310,1224],{"class":1151},[1142,2312,1324],{"class":1205},[1142,2314,1152],{"class":1151},[1142,2316,1166],{"class":1151},[1142,2318,2319],{"class":1169},"shop.inbox.toShip",[1142,2321,1173],{"class":1151},[1142,2323,1224],{"class":1151},[1142,2325,1338],{"class":1205},[1142,2327,1152],{"class":1151},[1142,2329,1166],{"class":1151},[1142,2331,2332],{"class":1169},"i-lucide-package",[1142,2334,1173],{"class":1151},[1142,2336,1224],{"class":1151},[1142,2338,1424],{"class":1205},[1142,2340,1152],{"class":1151},[1142,2342,1166],{"class":1151},[1142,2344,1431],{"class":1169},[1142,2346,1173],{"class":1151},[1142,2348,1224],{"class":1151},[1142,2350,2351],{"class":1205}," count",[1142,2353,1152],{"class":1151},[1142,2355,1166],{"class":1151},[1142,2357,2358],{"class":1169},"\u002Forders\u002Fto-ship-count",[1142,2360,1173],{"class":1151},[1142,2362,1224],{"class":1151},[1142,2364,2365],{"class":1205}," items",[1142,2367,1152],{"class":1151},[1142,2369,1166],{"class":1151},[1142,2371,2372],{"class":1169},"\u002Forders\u002Fto-ship\u002Finbox",[1142,2374,1173],{"class":1151},[1142,2376,1224],{"class":1151},[1142,2378,1411],{"class":1205},[1142,2380,1152],{"class":1151},[1142,2382,1166],{"class":1151},[1142,2384,1219],{"class":1169},[1142,2386,1173],{"class":1151},[1142,2388,1253],{"class":1151},[1142,2390,1256],{"class":1205},[1142,2392,677],{"class":1151},[1142,2394,2396],{"class":1144,"line":2395},40,[1142,2397,2398],{"class":1181},"  \u002F\u002F What the admin's search (Ctrl+K) finds in the module as the team member types: a route asked with ?q=.\n",[1142,2400,2402,2405,2407,2409,2411,2413,2415,2417,2419,2421,2423,2425,2427,2429,2431,2433,2435,2437,2439,2441,2443,2445,2447,2449,2451,2453,2455,2457,2459,2461,2463,2465,2468,2470,2472],{"class":1144,"line":2401},41,[1142,2403,2404],{"class":1148},"  search",[1142,2406,1152],{"class":1151},[1142,2408,1206],{"class":1205},[1142,2410,1209],{"class":1151},[1142,2412,1491],{"class":1205},[1142,2414,1152],{"class":1151},[1142,2416,1166],{"class":1151},[1142,2418,2040],{"class":1169},[1142,2420,1173],{"class":1151},[1142,2422,1224],{"class":1151},[1142,2424,1324],{"class":1205},[1142,2426,1152],{"class":1151},[1142,2428,1166],{"class":1151},[1142,2430,1391],{"class":1169},[1142,2432,1173],{"class":1151},[1142,2434,1224],{"class":1151},[1142,2436,1338],{"class":1205},[1142,2438,1152],{"class":1151},[1142,2440,1166],{"class":1151},[1142,2442,1404],{"class":1169},[1142,2444,1173],{"class":1151},[1142,2446,1224],{"class":1151},[1142,2448,1424],{"class":1205},[1142,2450,1152],{"class":1151},[1142,2452,1166],{"class":1151},[1142,2454,1431],{"class":1169},[1142,2456,1173],{"class":1151},[1142,2458,1224],{"class":1151},[1142,2460,1923],{"class":1205},[1142,2462,1152],{"class":1151},[1142,2464,1166],{"class":1151},[1142,2466,2467],{"class":1169},"\u002Forders\u002Fsearch",[1142,2469,1173],{"class":1151},[1142,2471,1253],{"class":1151},[1142,2473,1458],{"class":1205},[1142,2475,2477],{"class":1144,"line":2476},42,[1142,2478,2479],{"class":1151},"}\n",[628,2481,2482,2585,2603,2655,2704,2746,2781,2800,2949,2963,3007,3023],{},[631,2483,2484,641,2491,2493,2494,2497,2498,2500,2501,2504,2505,673,2508,684,2511,2513,2514,641,2517,2520,2521,2524,2525,2528,2529,2504,2532,673,2534,673,2537,673,2540,684,2543,2546,2547,2550,2551,2556,2557,2504,2560,684,2562,2565,2566,2569,2570,2572,2573,2576,2577,2580,2581,2584],{},[634,2485,2486,2487,2490],{},"Each is a ",[638,2488,2489],{},".vue"," file compiled like a page",[638,2492,640],{}," puts it in ",[638,2495,2496],{},"admin-dist\u002F","), with the same host:\nVue, Nuxt UI, the composables of ",[638,2499,713],{}," and the admin's components by name. A widget gets no props; a\npanel gets ",[638,2502,2503],{},"entry"," (its ",[638,2506,2507],{},"id",[638,2509,2510],{},"data",[638,2512,809],{},", read-only) and ",[638,2515,2516],{},"collection",[638,2518,2519],{},"ModulePanelProps"," from\n",[638,2522,2523],{},"@shadestack\u002Fmodule-sdk\u002Fshared","), and may emit ",[638,2526,2527],{},"changed"," after it changed the entry through the API, so the editor\nloads it again; a contact panel gets ",[638,2530,2531],{},"contact",[638,2533,2507],{},[638,2535,2536],{},"email",[638,2538,2539],{},"confirmedAt",[638,2541,2542],{},"language",[638,2544,2545],{},"accountId",",\nread-only; ",[638,2548,2549],{},"ModuleContactPanelProps",") and reads the module's own data about it through the module's own routes\n(see ",[2552,2553,2555],"a",{"href":2554},"\u002Fdevelopers\u002Fmodules\u002Fbackground-and-services#contacts","Contacts","); an organisation panel gets ",[638,2558,2559],{},"organisation",[638,2561,2507],{},[638,2563,2564],{},"name",", read-only; ",[638,2567,2568],{},"ModuleOrganisationPanelProps","), shown on an ",[2552,2571,2559],{"href":234}," of the Organisations screen; a settings section gets ",[638,2574,2575],{},"plugin",", its module's name (",[638,2578,2579],{},"ModuleSettingsProps","), and shows on the module's settings page\n(",[638,2582,2583],{},"\u002Fmodule-settings\u002F\u003Cname>",", in the settings area), below the module's settings form.",[631,2586,2587,2590,2591,2594,2595,2598,2599,2602],{},[634,2588,2589],{},"A collection's own place"," is ",[638,2592,2593],{},"admin.section"," beside ",[638,2596,2597],{},"admin.group"," in its definition: the collection is then a link in\nthat sidebar section instead of in Content under its group. An unknown section is refused when collections are\nchecked, and so is ",[638,2600,2601],{},"inbox",", which is one row of what waits in the inbox sources.",[631,2604,2605,641,2608,673,2610,2613,2614,2617,2618,2621,2622,2625,2626,677,2629,2632,2633,2636,2637,2640,2641,2643,2644,2647,2648,2651,2652,2654],{},[634,2606,2607],{},"An inbox source",[638,2609,2601],{},[638,2611,2612],{},"ModuleInboxSource",") is what waits for the team member in the module, such as unread\nmessages or orders to ship. Its entry stays in its own section; the source adds what waits to the Inbox. ",[638,2615,2616],{},"count"," is\none of the module's routes answering ",[638,2619,2620],{},"{ count }","; ",[638,2623,2624],{},"items"," one answering ",[638,2627,2628],{},"ModuleInboxItems",[638,2630,2631],{},"{ items: [{ id, title, detail?, at, to }] }",", newest first and at most 20, where ",[638,2634,2635],{},"at"," is an ISO date and ",[638,2638,2639],{},"to"," one of\nthe module's own pages; and ",[638,2642,2639],{}," is the module's screen with all of it, behind ",[634,2645,2646],{},"See all",". Both routes check the\nteam member's rights themselves. The sidebar's Inbox row adds up the counts of every source the team member may see\n(",[638,2649,2650],{},"requires","), the Inbox screen merges the items by time with a filter per source, and the top bar's bell names the\nsources with something waiting. An item of another shape, or one whose ",[638,2653,2639],{}," leads elsewhere, is left out. Make\nsomething a source only when it can wait for someone: a list of what is coming, such as today's bookings, stays on\nits own screen.",[631,2656,2657,641,2660,673,2663,2666,2667,2670,2671,2674,2675,673,2678,2681,2682,2685,2686,2688,2689,2692,2693,2695,2696,2699,2700,2703],{},[634,2658,2659],{},"A search source",[638,2661,2662],{},"search",[638,2664,2665],{},"ModuleSearchSource",") is what the admin's search finds in the module, such as orders\nby number or customer. ",[638,2668,2669],{},"route"," is one of the module's routes, asked with ",[638,2672,2673],{},"?q="," once two characters are typed, and\nanswering ",[638,2676,2677],{},"ModuleSearchItems",[638,2679,2680],{},"{ items: [{ id, title, detail?, to }] }",", best first and at most five\n(",[638,2683,2684],{},"SEARCH_SOURCE_LIMIT","), where ",[638,2687,2639],{}," is one of the module's own pages and ",[638,2690,2691],{},"detail"," a line beside the title. The route\nchecks the team member's rights itself; search asks it only for whoever may perform ",[638,2694,2650],{},". Each source is a group\nof its own in the palette, shown as soon as it answers: one that takes longer than 1.5 seconds\n(",[638,2697,2698],{},"SEARCH_SOURCE_TIMEOUT_MS",") is left out, and one that fails is one line, so a slow source never holds up the\nothers. Open the found thing on its screen (",[638,2701,2702],{},"\u002Fmodules\u002Fshop\u002Forders?order=\u003Cid>","); search never acts by itself.",[631,2705,2706,641,2709,673,2712,2621,2715,2718,2719,673,2721,2723,2724,684,2727,2730,2731,2734,2735,2737,2738,2741,2742,2745],{},[634,2707,2708],{},"Entry actions and chips",[638,2710,2711],{},"entryActions",[638,2713,2714],{},"entryChips",[638,2716,2717],{},"ModuleEntrySlot",", experimental) are components that get\n",[638,2720,2516],{},[638,2722,2503],{}," (the editor's entry), ",[638,2725,2726],{},"canPublish",[638,2728,2729],{},"dirty"," (unsaved changes) (",[638,2732,2733],{},"ModuleEntrySlotProps",") and may\nemit ",[638,2736,2527],{},", so the editor loads the entry again. Actions sit next to ",[634,2739,2740],{},"Publish",", chips in the status row. The\nwebsite module's editor shows the same actions in its header through the admin host component ",[638,2743,2744],{},"ModuleEntrySlots","; a\nmodule with an editor of its own can mount it too.",[631,2747,2748,641,2751,673,2754,2757,2758,2761,2762,641,2765,2768,2769,2772,2773,2776,2777,2780],{},[634,2749,2750],{},"An entry column",[638,2752,2753],{},"entryColumns",[638,2755,2756],{},"ModuleEntryColumn",", experimental) adds a column to core's entry list. Core asks the\nmodule's route ",[638,2759,2760],{},"GET \u003Croute>?collection=\u003Cslug>&ids=\u003Ccomma list>"," once per page, and the route answers each id's\n",[638,2763,2764],{},"{ text, color? }",[638,2766,2767],{},"ModuleEntryColumnValues","), which the list shows as a badge. With a ",[638,2770,2771],{},"filter",", a chosen option asks\n",[638,2774,2775],{},"GET \u003Croute>?collection=\u003Cslug>&filter=\u003Cvalue>",", which answers ",[638,2778,2779],{},"{ ids }"," (at most 1000), and the list shows only those.",[631,2782,2783,641,2786,673,2789,2792,2793,2796,2797,2799],{},[634,2784,2785],{},"A list action",[638,2787,2788],{},"listActions",[638,2790,2791],{},"ModuleListAction",") is only a link: it runs no component on the list. It shows on\nevery collection's list while the module is on, and opens the module's page with ",[638,2794,2795],{},"?collection=\u003Cslug>","; the page and\nits routes check what the editor may do there, as the import module's does. Its ",[638,2798,2639],{}," must be one of the module's own\npages.",[631,2801,2802,2805,2806,2808,2809,2811,2812,2815,2816,2822,2823,641,2826,2829,2830,2833,2834,2837,2838],{},[634,2803,2804],{},"Who sees what."," Nothing shows while the module is off. Widgets, panels, contact and organisation panels show to editors who may perform their\n",[638,2807,2650],{}," (required): the module's own declared action, a core action, or an action of core's collections or the\nmodule's own. Settings sections show to admins only, whatever the module's actions (only admins configure modules):\nthey have no ",[638,2810,2650],{},", and the API sends them to nobody else. What a part reads or changes it does through the\nAPI, with the editor's own rights: a panel that saves an entry calls ",[638,2813,2814],{},"PUT \u002Fapi\u002Fcollections\u002F\u003Cslug>\u002F\u003Cid>",". ",[634,2817,2818,2819],{},"A\nsettings section only calls routes that check ",[638,2820,2821],{},"packages.manage",": it saves the module's settings with\n",[638,2824,2825],{},"PUT \u002Fapi\u002Fpackages\u002Fcatalog\u002F\u003Cname>\u002Fsettings",[638,2827,2828],{},"{ values }",", which checks it), and every session route of the module's\nown that it calls to read or change configuration (test a connection, store a key) starts with\n",[638,2831,2832],{},"assertModuleAdmin(ctx)"," from ",[638,2835,2836],{},"@shadestack\u002Fmodule-sdk\u002Fserver",". Not the module's own action: those can be granted to\neditors and to custom roles, and hiding the tab is no check.",[1133,2839,2841],{"className":1135,"code":2840,"language":1137,"meta":1138,"style":1138},"{ method: 'POST', path: '\u002Fcheck-connection', handler: async (ctx) => {\n  assertModuleAdmin(ctx) \u002F\u002F FORBIDDEN unless an admin: module configuration\n  return { ok: await pingProvider(ctx) }\n} }\n",[638,2842,2843,2897,2915,2942],{"__ignoreMap":1138},[1142,2844,2845,2847,2850,2852,2854,2857,2859,2861,2863,2865,2867,2870,2872,2874,2877,2879,2883,2885,2889,2892,2895],{"class":1144,"line":1145},[1142,2846,1209],{"class":1151},[1142,2848,2849],{"class":1148}," method",[1142,2851,1152],{"class":1151},[1142,2853,1166],{"class":1151},[1142,2855,2856],{"class":1169},"POST",[1142,2858,1173],{"class":1151},[1142,2860,1224],{"class":1151},[1142,2862,1212],{"class":1148},[1142,2864,1152],{"class":1151},[1142,2866,1166],{"class":1151},[1142,2868,2869],{"class":1169},"\u002Fcheck-connection",[1142,2871,1173],{"class":1151},[1142,2873,1224],{"class":1151},[1142,2875,2876],{"class":1148}," handler",[1142,2878,1152],{"class":1151},[1142,2880,2882],{"class":2881},"spNyl"," async",[1142,2884,641],{"class":1151},[1142,2886,2888],{"class":2887},"sHdIc","ctx",[1142,2890,2891],{"class":1151},")",[1142,2893,2894],{"class":2881}," =>",[1142,2896,1155],{"class":1151},[1142,2898,2899,2903,2906,2909,2912],{"class":1144,"line":1158},[1142,2900,2902],{"class":2901},"s2Zo4","  assertModuleAdmin",[1142,2904,2905],{"class":1205},"(",[1142,2907,2888],{"class":2908},"sTEyZ",[1142,2910,2911],{"class":1205},") ",[1142,2913,2914],{"class":1181},"\u002F\u002F FORBIDDEN unless an admin: module configuration\n",[1142,2916,2917,2921,2923,2926,2928,2931,2934,2936,2938,2940],{"class":1144,"line":1178},[1142,2918,2920],{"class":2919},"s7zQu","  return",[1142,2922,1321],{"class":1151},[1142,2924,2925],{"class":1205}," ok",[1142,2927,1152],{"class":1151},[1142,2929,2930],{"class":2919}," await",[1142,2932,2933],{"class":2901}," pingProvider",[1142,2935,2905],{"class":1205},[1142,2937,2888],{"class":2908},[1142,2939,2911],{"class":1205},[1142,2941,2479],{"class":1151},[1142,2943,2944,2946],{"class":1144,"line":1185},[1142,2945,1455],{"class":1151},[1142,2947,2948],{"class":1151}," }\n",[631,2950,2951,2954,2955,2958,2959,2962],{},[634,2952,2953],{},"A part that fails stays on its own."," Each is mounted in an error boundary: when it fails to load, or throws while\nit sets up, renders or handles an event, a short notice takes its place (naming the part and the module, never the\nerror) and the screen goes on. The error goes to the error log as ",[638,2956,2957],{},"package:\u003Cname>",", with the part (",[638,2960,2961],{},"widget to-ship",")\nand the admin's path, marked as reported by a browser: the admins' alert emails count it, never quote it, and it\nstays in groups of its own, apart from the module's server-side errors. Errors the code raises outside Vue (a\ntimer, a promise nobody waits for) are not caught: catch those yourself.",[631,2964,2965,2968,2969,2971,2972,2975,2976,2978,2979,2981,2982,677,2985,2987,2988,2990,2991,2994,2995,2998,2999,3002,3003,3006],{},[634,2966,2967],{},"Checked when the module loads",", like every part of the manifest: an ",[638,2970,1130],{}," key SHADE doesn't know (at any\nlevel, such as a widget's ",[638,2973,2974],{},"requries","), an id that isn't kebab-case or comes twice, a file outside the module's folder\nor not ",[638,2977,2489],{},", an unknown or undeclared action in ",[638,2980,2650],{},", another module's collection or the pages in ",[638,2983,2984],{},"panels",[638,2986,2650],{}," on a settings section, a page, sidebar link or badge with a ",[638,2989,1114],{}," or ",[638,2992,2993],{},".."," segment, ",[638,2996,2997],{},"\u002F\u002F",", a backslash or\n",[638,3000,3001],{},"%",", and a ",[638,3004,3005],{},"locales"," folder outside the module's all stop the module from loading, with every problem listed.",[631,3008,3009,3012,3013,3016,3017,3019,3020,3022],{},[634,3010,3011],{},"No new consent, but listed."," These parts run in the editor's browser with the editor's rights, as a module's\npages always did; they are listed under the ",[638,3014,3015],{},"adminPlaces"," capability for information, and an update that adds one\nasks nothing again. Unlike pages they run without being opened (a widget whenever an editor who may see it opens the\ndashboard), so ",[638,3018,640],{}," writes where the module shows (",[638,3021,3015],{},": its widgets, the collections of\nits panels, its settings sections) into the package, and the install screen lists them under \"Where it shows in\nthe admin\". The API leaves out a package whose manifest shows in more places than that list.",[631,3024,3025],{},"Untrusted modules have none of them: they keep admin pages described with fields.",[3027,3028,3030],"h3",{"id":3029},"the-top-bar","The top bar",[624,3032,3033,3034,3037,3038,3041,3042,3045,3046,3049],{},"Every admin screen starts with the admin's top bar, a module's too: ",[638,3035,3036],{},"AdminTopBar"," in the panel's ",[638,3039,3040],{},"header"," slot, with\nthe screen's title (its one ",[638,3043,3044],{},"h1",") and the screen's own buttons in the ",[638,3047,3048],{},"right"," slot.",[1133,3051,3054],{"className":3052,"code":3053,"language":664,"meta":1138,"style":1138},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003CUDashboardPanel id=\"orders\">\n  \u003Ctemplate #header>\n    \u003CAdminTopBar :title=\"t('commerce.orders.title')\">\n      \u003Ctemplate #right>\n        \u003CUButton :label=\"t('commerce.orders.export')\" @click=\"exportOrders\" \u002F>\n      \u003C\u002Ftemplate>\n    \u003C\u002FAdminTopBar>\n  \u003C\u002Ftemplate>\n  \u003Ctemplate #body>…\u003C\u002Ftemplate>\n\u003C\u002FUDashboardPanel>\n",[638,3055,3056,3079,3084,3089,3094,3099,3104,3109,3114,3119],{"__ignoreMap":1138},[1142,3057,3058,3061,3064,3066,3069,3072,3074,3076],{"class":1144,"line":1145},[1142,3059,3060],{"class":1151},"\u003C",[1142,3062,3063],{"class":1205},"UDashboardPanel",[1142,3065,1491],{"class":2881},[1142,3067,3068],{"class":1151},"=",[1142,3070,3071],{"class":1151},"\"",[1142,3073,2040],{"class":1169},[1142,3075,3071],{"class":1151},[1142,3077,3078],{"class":1151},">\n",[1142,3080,3081],{"class":1144,"line":1158},[1142,3082,3083],{"class":2908},"  \u003Ctemplate #header>\n",[1142,3085,3086],{"class":1144,"line":1178},[1142,3087,3088],{"class":2908},"    \u003CAdminTopBar :title=\"t('commerce.orders.title')\">\n",[1142,3090,3091],{"class":1144,"line":1185},[1142,3092,3093],{"class":2908},"      \u003Ctemplate #right>\n",[1142,3095,3096],{"class":1144,"line":1191},[1142,3097,3098],{"class":2908},"        \u003CUButton :label=\"t('commerce.orders.export')\" @click=\"exportOrders\" \u002F>\n",[1142,3100,3101],{"class":1144,"line":1197},[1142,3102,3103],{"class":2908},"      \u003C\u002Ftemplate>\n",[1142,3105,3106],{"class":1144,"line":1261},[1142,3107,3108],{"class":2908},"    \u003C\u002FAdminTopBar>\n",[1142,3110,3111],{"class":1144,"line":1267},[1142,3112,3113],{"class":2908},"  \u003C\u002Ftemplate>\n",[1142,3115,3116],{"class":1144,"line":1273},[1142,3117,3118],{"class":2908},"  \u003Ctemplate #body>…\u003C\u002Ftemplate>\n",[1142,3120,3121,3124,3126],{"class":1144,"line":1279},[1142,3122,3123],{"class":1151},"\u003C\u002F",[1142,3125,3063],{"class":1205},[1142,3127,3078],{"class":1151},[624,3129,3130,3131,3134,3135,3137,3138,3141,3142,3145,3146,3149],{},"The bar adds the rest itself, the same on every screen: on a phone or tablet the button that opens the menu, where the screen is (its\nsection or group, and on an item's screen a link to the list above it, which replaces a back button of your own),\nsearch, what waits in the Inbox and a link to the site. The screen above is the sidebar link your page's address is\nunder (",[638,3132,3133],{},"\u002Fmodules\u002Fshop\u002Forders\u002F42"," goes back to a sidebar link ",[638,3136,1219],{},"); when the address doesn't say it,\nname it yourself with ",[638,3139,3140],{},"parent",", as the import screens do for the collection they import into\n(",[638,3143,3144],{},":parent=\"{ label: 'Posts', to: '\u002Fcollections\u002Fposts' }\"","), or pass ",[638,3147,3148],{},":parent=\"null\""," for none, as a tab beside its\nsiblings does.",[624,3151,3152,3153,3156,3157,3159,3160,961,3162,3165,3166,3169],{},"Don't draw Nuxt UI's ",[638,3154,3155],{},"UDashboardNavbar"," yourself: a screen with one loses all of that, and ",[638,3158,640],{},"\nrefuses a page that draws it or has no ",[638,3161,3036],{},[638,3163,3164],{},"fullScreen"," page is the exception: it has the whole window\nand brings its own header. ",[638,3167,3168],{},"shade-module init"," writes a page this way.",[3027,3171,3173],{"id":3172},"forms-from-the-admins-field-components","Forms from the admin's field components",[624,3175,3176,3177,677,3180,3182],{},"A module's screens build their forms from SHADE's own components (",[638,3178,3179],{},"ADMIN_HOST_COMPONENTS",[638,3181,716],{},"), by name in a template:",[628,3184,3185,3225,3245,3260,3273],{},[631,3186,3187,3190,3191,3194,3195,3198,3199,3202,3203,3206,3207,3210,3211,2990,3214,3217,3218,3220,3221,3224],{},[638,3188,3189],{},"FieldForm",": a form from a list of field descriptors, ",[638,3192,3193],{},"\u003CFieldForm v-model=\"values\" :fields=\"fields\" :issues=\"issues\" \u002F>",".\n",[638,3196,3197],{},"issues"," are a VALIDATION answer's (",[638,3200,3201],{},"apiErrorOf(error)?.issues","), shown next to their fields; ",[638,3204,3205],{},"issue-prefix"," strips\na prefix from their paths, ",[638,3208,3209],{},"disabled"," locks every field. Put it in a ",[638,3212,3213],{},"\u003Cform>",[638,3215,3216],{},"UForm"," to submit it; give a\n",[638,3219,3216],{}," ",[638,3222,3223],{},":validate-on=\"['input', 'change']\"",", as core's forms have, so focusing an empty field and leaving it\nshows no error.",[631,3226,3227,3230,3231,3234,3235,3238,3239,3241,3242,3244],{},[638,3228,3229],{},"AdminFormGrid",": the cards of a form or settings page in columns of at least 22 rem that fill the page,\n",[638,3232,3233],{},"\u003CAdminFormGrid>\u003CUCard>…\u003C\u002FUCard>\u003CUCard>…\u003C\u002FUCard>\u003C\u002FAdminFormGrid>",". A card stays whole in one column; give an item\nthe class ",[638,3236,3237],{},"form-grid-wide"," to span the row. ",[638,3240,3189],{}," already lays its fields out this way, so it needs no\n",[638,3243,3229],{}," around it. Admin pages fill the width of the sheet, so a page sets no maximum\nwidth of its own, and running text keeps a reading measure of about 70 characters.",[631,3246,3247,3250,3251,673,3254,673,3257,1059],{},[638,3248,3249],{},"FieldRenderer",": one field, with its label, help and the server's message for it (",[638,3252,3253],{},"field",[638,3255,3256],{},"v-model",[638,3258,3259],{},"path",[631,3261,3262,3265,3266,3269,3270,3272],{},[638,3263,3264],{},"RelativeTime",": how long ago a moment was, for a list (",[638,3267,3268],{},"\u003CRelativeTime :value=\"order.createdAt\" \u002F>","), with the exact\nmoment on hover. Lists show it; details, logs and scheduled times show ",[638,3271,748],{},", as the admin's own screens do.",[631,3274,3275,3276,673,3279,673,3282,673,3285,673,3288,677,3291,673,3294,673,3297,673,3300,673,3303,673,3306,673,3309,677,3312,673,3315,3318,3319,673,3321,2815,3323,3325],{},"The field editors, one per field kind (",[638,3277,3278],{},"FieldText",[638,3280,3281],{},"FieldTextarea",[638,3283,3284],{},"FieldSelect",[638,3286,3287],{},"FieldToggle",[638,3289,3290],{},"FieldDate",[638,3292,3293],{},"FieldNumber",[638,3295,3296],{},"FieldImage",[638,3298,3299],{},"FieldFile",[638,3301,3302],{},"FieldLink",[638,3304,3305],{},"FieldRelation",[638,3307,3308],{},"FieldGroup",[638,3310,3311],{},"FieldRepeater",[638,3313,3314],{},"FieldRichText",[638,3316,3317],{},"FieldJson","): ",[638,3320,3253],{},[638,3322,3256],{},[638,3324,3317],{}," shows how much a json field holds and which module\nchecks it; the module's own screen edits it (the website editor a page's content).",[624,3327,3328,3330],{},[638,3329,846],{}," checks the admin has every one of them, and that every field kind's editor\nis on the list.",[3027,3332,3334],{"id":3333},"admin-patterns","Admin patterns",[624,3336,3337,3338,673,3341,673,3344,673,3347,673,3350,677,3353,684,3356,3359,3360,673,3363,3366],{},"Beside the field components, the admin lends a module's screens its patterns: the pieces Nuxt UI doesn't have, built\nfrom Nuxt UI and the admin's theme only, so a module's stats screen looks like the admin's (SHADE decision 0012 point\n16). Use them by name, as the field components. ",[638,3339,3340],{},"StatCard",[638,3342,3343],{},"StatRow",[638,3345,3346],{},"RankList",[638,3348,3349],{},"BarChart",[638,3351,3352],{},"CopyField",[638,3354,3355],{},"SettingRow",[638,3357,3358],{},"ConnectionCard"," are experimental: each may change in a minor version until a second, different\nmodule's screen uses it; the others are stable. Buttons, inputs, selects, badges, tabs and modals stay Nuxt UI's own (",[638,3361,3362],{},"UButton",[638,3364,3365],{},"USelect","…);\nSHADE doesn't wrap them.",[628,3368,3369,3393,3423,3444,3481,3498,3511,3541,3577,3614,3641,3661,3677],{},[631,3370,3371,3374,3375,673,3378,3381,3382,3385,3386,3389,3390,3049],{},[638,3372,3373],{},"PageHeader",": the top of a page's body, below the top bar's title: ",[638,3376,3377],{},"title",[638,3379,3380],{},"lead",", an optional ",[638,3383,3384],{},"note"," (with\n",[638,3387,3388],{},"note-icon",") and the page's controls in the ",[638,3391,3392],{},"actions",[631,3394,3395,3397,3398,641,3400,3403,3404,673,3407,3410,3411,3414,3415,3418,3419,3422],{},[638,3396,3340],{}," in a ",[638,3399,3343],{},[638,3401,3402],{},"columns",": 2 to 4): a figure in mono, ",[638,3405,3406],{},"label",[638,3408,3409],{},"value"," (a number is written in the\nadmin's language), ",[638,3412,3413],{},"help",", and with ",[638,3416,3417],{},"previous"," the change on the period before in words (\"20% more\"), with\n",[638,3420,3421],{},"compared"," saying which period.",[631,3424,3425,3427,3428,3430,3431,673,3434,3437,3438,3441,3442,3049],{},[638,3426,3346],{},": ranked values with a bar behind each, ",[638,3429,2624],{}," of ",[638,3432,3433],{},"{ label, value, detail?, title?, key? }",[638,3435,3436],{},"mono"," for\npaths and codes, ",[638,3439,3440],{},"empty"," for the text without items, and a ",[638,3443,3406],{},[631,3445,3446,3448,3449,3430,3451,673,3454,673,3457,673,3460,673,3463,3465,3466,673,3469,3472,3473,641,3476,2990,3479,1059],{},[638,3447,3349],{},": bars in one colour, oldest on the left, with a line of text (the total and the highest bar) and a \"Show\nas a table\" view: ",[638,3450,2624],{},[638,3452,3453],{},"{ key, label, value, more? }",[638,3455,3456],{},"caption",[638,3458,3459],{},"label-header",[638,3461,3462],{},"value-header",[638,3464,3402],{},"\nfor the figures of ",[638,3467,3468],{},"more",[638,3470,3471],{},":table=\"false\""," for a widget that links to a full report, and ",[638,3474,3475],{},"size",[638,3477,3478],{},"md",[638,3480,813],{},[631,3482,3483,3485,3486,673,3488,673,3490,3493,3494,3497],{},[638,3484,3352],{},": a value to copy (a script tag, a key), ",[638,3487,3409],{},[638,3489,3406],{},[638,3491,3492],{},"masked"," to hide it until \"Show\" is pressed,\nand ",[638,3495,3496],{},"failed-text"," for when the browser refuses to copy.",[631,3499,3500,3503,3504,3507,3508,3510],{},[638,3501,3502],{},"SectionLabel",": the mono, uppercase label above a group or a card's content; ",[638,3505,3506],{},"as"," is its element (",[638,3509,3027],{}," for a section\nheading).",[631,3512,3513,3515,3516,673,3518,3521,3522,673,3525,3527,3528,786,3530,673,3532,3534,3535,3538,3539,1114],{},[638,3514,3355],{},": one on\u002Foff setting, ",[638,3517,3406],{},[638,3519,3520],{},"description"," (one line of what it does), ",[638,3523,3524],{},"error",[638,3526,2564],{}," (for a\n",[638,3529,3216],{},[638,3531,3209],{},[638,3533,3256],{}," and a ",[638,3536,3537],{},"hint"," slot beside the label. A form's toggle fields are drawn as one already, a module's settings among\nthem, so give a toggle field a short ",[638,3540,3413],{},[631,3542,3543,3545,3546,673,3548,673,3551,673,3554,673,3556,677,3559,3562,3563,684,3566,3568,3569,3572,3573,3576],{},[638,3544,3358],{},": an outside service the module connects to, ",[638,3547,2564],{},[638,3549,3550],{},"connected",[638,3552,3553],{},"icon",[638,3555,3520],{},[638,3557,3558],{},"account",[638,3560,3561],{},"receives"," (the data it gets, listed before anyone connects), ",[638,3564,3565],{},"busy",[638,3567,3209],{},"; it emits ",[638,3570,3571],{},"connect"," and\n",[638,3574,3575],{},"disconnect"," for the screen to handle, and its default slot takes anything else (a last sync).",[631,3578,3579,3582,3583,673,3585,684,3588,3591,3592,673,3595,673,3598,673,3600,2990,3603,3606,3607,3609,3610,3613],{},[638,3580,3581],{},"StatusBadge",": a state in a dot and its word, ",[638,3584,3406],{},[638,3586,3587],{},"status",[638,3589,3590],{},"tones",", the screen's one map of its states to\n",[638,3593,3594],{},"success",[638,3596,3597],{},"warning",[638,3599,3524],{},[638,3601,3602],{},"info",[638,3604,3605],{},"neutral"," (a state the map doesn't name is ",[638,3608,3605],{},"); or ",[638,3611,3612],{},"tone"," directly.",[631,3615,3616,3619,3620,673,3623,684,3625,3627,3628,3631,3632,684,3634,3637,3638,3640],{},[638,3617,3618],{},"ListDetail",": a list and its selected item, ",[638,3621,3622],{},"v-model:open",[638,3624,3377],{},[638,3626,3520],{},"; the list (a ",[638,3629,3630],{},"UTable",", keeping\n",[638,3633,805],{},[638,3635,3636],{},"phoneLine",") in the default slot, the item in ",[638,3639,2691],{},". From 64rem wide the item opens beside the\nlist and takes the focus, and Escape or its close button gives the focus back; narrower, it opens as a sheet. The\nscreen keeps which item is selected.",[631,3642,3643,3646,3647,3649,3650,641,3653,3655,3656,3658,3659,3049],{},[638,3644,3645],{},"Timeline",": what happened, when and by whom or what, in the order given (oldest first), ",[638,3648,2624],{}," of\n",[638,3651,3652],{},"{ key, title, at?, by?, detail?, tone? }",[638,3654,2635],{}," an ISO time; an entry without one says nothing of when), ",[638,3657,3440],{},",\nand a ",[638,3660,2691],{},[631,3662,3663,3666,3667,3430,3669,3672,3673,3676],{},[638,3664,3665],{},"KeyValue",": label and value rows, ",[638,3668,2624],{},[638,3670,3671],{},"{ key, label, value?, mono? }","; a row without a value is left out, so\npass every fact and only those there show. A slot named by an item's ",[638,3674,3675],{},"key"," draws its value (a badge, a link).",[631,3678,3679,3682,3683,3649,3685,641,3688,3690,3691,3693,3694,3696,3697,3699,3700,3703,3704,786,3706,673,3708,3710,3711,684,3713,3716,3717,684,3720,3722,3723,1114],{},[638,3680,3681],{},"ContactPanelList",": the body of a contact panel, what the module keeps about one person: ",[638,3684,2624],{},[638,3686,3687],{},"{ key, title, mono?, detail?, value?, status? }",[638,3689,3377],{}," the row's lead, such as a date or a number, ",[638,3692,3436],{}," for an\nid, ",[638,3695,3409],{}," at the end in tabular figures, ",[638,3698,3587],{}," a ",[638,3701,3702],{},"{ label, tone }"," drawn as a ",[638,3705,3581],{},[638,3707,3440],{},[638,3709,3468],{},"\n(your own words for the ones not shown, such as \"and 3 older orders\"), ",[638,3712,2639],{},[638,3714,3715],{},"open"," (the link to your screen and\nits label), ",[638,3718,3719],{},"pending",[638,3721,3524],{}," from the fetch; it emits ",[638,3724,3725],{},"retry",[624,3727,3728,3729,673,3731,677,3733,684,3735,3737,3738,673,3740,3572,3742,3744,3745,3747,3748,3750,3751,3754],{},"The analytics module's report is built from them, and the shop's orders screen from ",[638,3730,3618],{},[638,3732,3581],{},[638,3734,3665],{},[638,3736,3645],{},"; the forms inbox uses the same four, the appointments screen ",[638,3739,3618],{},[638,3741,3581],{},[638,3743,3665],{},", error forwarding's settings a ",[638,3746,3645],{}," of its last sends, and the shop's and the appointments' contact\npanels ",[638,3749,3681],{},". In development, the admin's component gallery (",[638,3752,3753],{},"\u002Fgallery",") shows\neach in its states, in light and dark.",[619,3756,3758],{"id":3757},"the-site-part","The site part",[624,3760,3761,1076,3763,3765,3766,3769,3770,2833,3773,641,3776,673,3779,677,3782,3785,3786,3789,3790,3792,3793,3795,3796,3799,3800,3803],{},[638,3762,1075],{},[638,3764,1079],{},": an Astro component the site's layout renders in every page's ",[638,3767,3768],{},"\u003Chead>"," while\nthe module is on, with ",[638,3771,3772],{},"SiteHeadProps",[638,3774,3775],{},"@shadestack\u002Fmodule-sdk\u002Fsite",[638,3777,3778],{},"accountApiUrl",[638,3780,3781],{},"locale",[638,3783,3784],{},"preview","). The content API's site data lists the modules that are on (",[638,3787,3788],{},"modules","). An inline script or ",[638,3791,872],{}," in\nit is hashed into the page's Content-Security-Policy, as everything inline in the ",[638,3794,3768],{}," is; a ",[638,3797,3798],{},"style"," attribute is\nnot (only an ",[638,3801,3802],{},"Image","'s focal point is allowed). Render nothing in the team's preview unless it belongs there.",[624,3805,3806,3807,2833,3809,3812,3813,1114],{},"A site part imports the responsive ",[638,3808,3802],{},[638,3810,3811],{},"@shadestack\u002Fastro\u002Fsite",", the kit's. The SDK's site entry no longer\ngives it (24 November 2026, decision 0016 point 12), and the SDK doesn't depend on ",[638,3814,1083],{},[624,3816,3817,3820,3821,717,3824,3827,3828,3831,3832,3835,3836,3839,3840,3842,3843,3846,3847,3850,3851,3854,3855,3858,3859,3862,3863,673,3866,677,3869,673,3872,3875,3876,3879,3880,3883,3884,3887],{},[634,3818,3819],{},"Pages are node trees."," A website page's content is a json field the website module checks (",[638,3822,3823],{},"website:tree",[638,3825,3826],{},"getEntry(ctx, 'website-pages', id).data.content",", a page\nversion's ",[638,3829,3830],{},"content"," and an entry event's ",[638,3833,3834],{},"event.data.entry.data.content"," are a ",[638,3837,3838],{},"NodeTree"," (from ",[638,3841,2523],{},", with\n",[638,3844,3845],{},"TreeNode","), its ",[638,3848,3849],{},"nodes"," the top-level elements and component instances. There are no\nblocks (no ",[638,3852,3853],{},"defineBlock",", no ",[638,3856,3857],{},"blocks"," part in the manifest): what a module shows on a page it gives the editor as a\nstarter component. The new editor's styles (",[638,3860,3861],{},"@shadestack\u002Fstyles",") keep the theme's custom\nproperties as their default variables, with the same names and values (",[638,3864,3865],{},"--color-primary",[638,3867,3868],{},"--font-body",[638,3870,3871],{},"--space-4",[638,3873,3874],{},"--radius","…), so a module's components that style themselves with them keep working; a page's own variables\nand classes come on top. Styles refuse class ids and variable names starting with ",[638,3877,3878],{},"shade-"," (and classes starting\nwith ",[638,3881,3882],{},"site-","): those are SHADE's own. A module's classes are not kept from styles, so a site's class with the same\nname styles them too; name them after the module (",[638,3885,3886],{},"my-plugin-booking",") so that only happens on purpose.",[624,3889,3890,3893,3894,3897,3898,3901,3902,3905,3906,3909,3910,641,3913,3916,3917,3920],{},[634,3891,3892],{},"Modules' routes from the new editor's pages."," An element inside a client island can call a module's public or account route\nwhen it is clicked or a form is sent (the ",[638,3895,3896],{},"callRoute"," action): ",[638,3899,3900],{},"{ action: 'callRoute', module: 'wishlist', route: '\u002Fitems', method: 'POST', body: { slug: \u003Cexpression> } }",". The page's runtime makes the call with\n",[638,3903,3904],{},"callAccountRoute",", so it goes through the same dispatcher, session, origin check and rate limits as any other\n(see above). The tree is saved only when the API confirms the module has that route with ",[638,3907,3908],{},"auth: 'account'"," or\n",[638,3911,3912],{},"'public'",[638,3914,3915],{},"validateTree","'s ",[638,3918,3919],{},"visitorRoutes","); a route path can't leave the module's routes. Treat the body as any\nvisitor input: validate it with the route's schema.",[624,3922,3923,3926,3927,3930,3931,673,3934,3937,3938,673,3941,3944,3945,3947,3948,3950],{},[634,3924,3925],{},"What a route answers."," A public or account route may say what it answers, as a zod schema of what a page can show:\nobjects, lists, text (",[638,3928,3929],{},"z.url()"," for an address), numbers and on\u002Foff, each maybe nothing (",[638,3932,3933],{},".nullable()",[638,3935,3936],{},".optional()",").\nGive dates and times as ISO text (",[638,3939,3940],{},"z.iso.date()",[638,3942,3943],{},"z.iso.datetime()","): a page writes them with ",[638,3946,748],{}," in its\nown language and the site's time zone. Give them as plain text too (",[638,3949,2507],{},") where a page needs a key or a value to send:\na date is not text to the page.",[1133,3952,3954],{"className":1135,"code":3953,"language":1137,"meta":1138,"style":1138},"{\n  method: 'GET',\n  path: '\u002Fslots',\n  auth: 'public',\n  rateLimit: { limit: 120, windowMs: 600_000, key: 'ip' },\n  answer: z.object({ days: z.array(z.object({ label: z.string(), times: z.array(z.object({ start: z.string(), label: z.string() })) })) }),\n  handler: (ctx, request) => listSlots(ctx, parseInput(SlotsQuery, request.query))\n}\n",[638,3955,3956,3961,3977,3993,4009,4052,4178,4227],{"__ignoreMap":1138},[1142,3957,3958],{"class":1144,"line":1145},[1142,3959,3960],{"class":1151},"{\n",[1142,3962,3963,3966,3968,3970,3973,3975],{"class":1144,"line":1158},[1142,3964,3965],{"class":1148},"  method",[1142,3967,1152],{"class":1151},[1142,3969,1166],{"class":1151},[1142,3971,3972],{"class":1169},"GET",[1142,3974,1173],{"class":1151},[1142,3976,677],{"class":1151},[1142,3978,3979,3982,3984,3986,3989,3991],{"class":1144,"line":1178},[1142,3980,3981],{"class":1148},"  path",[1142,3983,1152],{"class":1151},[1142,3985,1166],{"class":1151},[1142,3987,3988],{"class":1169},"\u002Fslots",[1142,3990,1173],{"class":1151},[1142,3992,677],{"class":1151},[1142,3994,3995,3998,4000,4002,4005,4007],{"class":1144,"line":1185},[1142,3996,3997],{"class":1148},"  auth",[1142,3999,1152],{"class":1151},[1142,4001,1166],{"class":1151},[1142,4003,4004],{"class":1169},"public",[1142,4006,1173],{"class":1151},[1142,4008,677],{"class":1151},[1142,4010,4011,4014,4016,4018,4021,4023,4026,4028,4031,4033,4036,4038,4041,4043,4045,4048,4050],{"class":1144,"line":1191},[1142,4012,4013],{"class":1148},"  rateLimit",[1142,4015,1152],{"class":1151},[1142,4017,1321],{"class":1151},[1142,4019,4020],{"class":1148}," limit",[1142,4022,1152],{"class":1151},[1142,4024,4025],{"class":1651}," 120",[1142,4027,1224],{"class":1151},[1142,4029,4030],{"class":1148}," windowMs",[1142,4032,1152],{"class":1151},[1142,4034,4035],{"class":1651}," 600_000",[1142,4037,1224],{"class":1151},[1142,4039,4040],{"class":1148}," key",[1142,4042,1152],{"class":1151},[1142,4044,1166],{"class":1151},[1142,4046,4047],{"class":1169},"ip",[1142,4049,1173],{"class":1151},[1142,4051,1364],{"class":1151},[1142,4053,4054,4057,4059,4062,4064,4067,4069,4071,4074,4076,4078,4080,4083,4085,4088,4090,4092,4094,4096,4098,4100,4102,4104,4107,4110,4112,4115,4117,4119,4121,4123,4125,4127,4129,4131,4133,4135,4138,4140,4142,4144,4146,4148,4150,4152,4154,4156,4158,4160,4163,4165,4168,4170,4172,4174,4176],{"class":1144,"line":1197},[1142,4055,4056],{"class":1148},"  answer",[1142,4058,1152],{"class":1151},[1142,4060,4061],{"class":2908}," z",[1142,4063,1114],{"class":1151},[1142,4065,4066],{"class":2901},"object",[1142,4068,2905],{"class":1205},[1142,4070,1209],{"class":1151},[1142,4072,4073],{"class":1205}," days",[1142,4075,1152],{"class":1151},[1142,4077,4061],{"class":2908},[1142,4079,1114],{"class":1151},[1142,4081,4082],{"class":2901},"array",[1142,4084,2905],{"class":1205},[1142,4086,4087],{"class":2908},"z",[1142,4089,1114],{"class":1151},[1142,4091,4066],{"class":2901},[1142,4093,2905],{"class":1205},[1142,4095,1209],{"class":1151},[1142,4097,1324],{"class":1205},[1142,4099,1152],{"class":1151},[1142,4101,4061],{"class":2908},[1142,4103,1114],{"class":1151},[1142,4105,4106],{"class":2901},"string",[1142,4108,4109],{"class":1205},"()",[1142,4111,1224],{"class":1151},[1142,4113,4114],{"class":1205}," times",[1142,4116,1152],{"class":1151},[1142,4118,4061],{"class":2908},[1142,4120,1114],{"class":1151},[1142,4122,4082],{"class":2901},[1142,4124,2905],{"class":1205},[1142,4126,4087],{"class":2908},[1142,4128,1114],{"class":1151},[1142,4130,4066],{"class":2901},[1142,4132,2905],{"class":1205},[1142,4134,1209],{"class":1151},[1142,4136,4137],{"class":1205}," start",[1142,4139,1152],{"class":1151},[1142,4141,4061],{"class":2908},[1142,4143,1114],{"class":1151},[1142,4145,4106],{"class":2901},[1142,4147,4109],{"class":1205},[1142,4149,1224],{"class":1151},[1142,4151,1324],{"class":1205},[1142,4153,1152],{"class":1151},[1142,4155,4061],{"class":2908},[1142,4157,1114],{"class":1151},[1142,4159,4106],{"class":2901},[1142,4161,4162],{"class":1205},"() ",[1142,4164,1455],{"class":1151},[1142,4166,4167],{"class":1205},")) ",[1142,4169,1455],{"class":1151},[1142,4171,4167],{"class":1205},[1142,4173,1455],{"class":1151},[1142,4175,2891],{"class":1205},[1142,4177,677],{"class":1151},[1142,4179,4180,4183,4185,4187,4189,4191,4194,4196,4198,4201,4203,4205,4207,4210,4212,4215,4217,4219,4221,4224],{"class":1144,"line":1261},[1142,4181,4182],{"class":1148},"  handler",[1142,4184,1152],{"class":1151},[1142,4186,641],{"class":1151},[1142,4188,2888],{"class":2887},[1142,4190,1224],{"class":1151},[1142,4192,4193],{"class":2887}," request",[1142,4195,2891],{"class":1151},[1142,4197,2894],{"class":2881},[1142,4199,4200],{"class":2901}," listSlots",[1142,4202,2905],{"class":1205},[1142,4204,2888],{"class":2908},[1142,4206,1224],{"class":1151},[1142,4208,4209],{"class":2901}," parseInput",[1142,4211,2905],{"class":1205},[1142,4213,4214],{"class":2908},"SlotsQuery",[1142,4216,1224],{"class":1151},[1142,4218,4193],{"class":2908},[1142,4220,1114],{"class":1151},[1142,4222,4223],{"class":2908},"query",[1142,4225,4226],{"class":1205},"))\n",[1142,4228,4229],{"class":1144,"line":1267},[1142,4230,2479],{"class":1151},[628,4232,4233,4239,4249,4378],{},[631,4234,4235,4238],{},[634,4236,4237],{},"SHADE checks every answer"," against it before sending it, and sends what it parsed: keys the schema doesn't name are\nleft out. An answer that doesn't fit is your bug: a 500, in the error log, never sent. The OpenAPI document describes\nit.",[631,4240,4241,4244,4245,4248],{},[634,4242,4243],{},"The loader refuses"," an answer on a session or token route, and one a page can't show: a union of types, a date\nobject, a record (fields that aren't named), a field named like ",[638,4246,4247],{},"constructor",", more than 8 levels or 64 fields.",[631,4250,4251,4254,4255,4258,4259,3916,4261,4264,4265,4267,4268,3846,4271,4274,4275,673,4278,4281,4282,4285,4286,4288,4289,4291,4292,4295,4296,673,4299,673,4302,3909,4304,4307,4308,4311,4312,4314,4315,4318,4319,4322,4323,4326,4327,641,4330,4333,4334,4337,4338,641,4341,4344,4345,4348,4349,4352,4353,673,4355,4358,4359,673,4362,4365,4366,4369,4370,4373,4374,3916,4376,1059],{},[634,4252,4253],{},"On a page",", an interactive part keeps it in a state of type ",[638,4256,4257],{},"answer"," that names the route; ",[638,4260,3896],{},[638,4262,4263],{},"result","\nputs it there, its ",[638,4266,4223],{}," sends values in the address (",[638,4269,4270],{},"?offset=14",[638,4272,4273],{},"form"," sends a form of the part (its controls by name, ",[638,4276,4277],{},"website",[638,4279,4280],{},"elapsedMs"," and the ticked ",[638,4283,4284],{},"consent"," box's label, then ",[638,4287,909],{}," on\ntop; POST, PUT or PATCH only), and its ",[638,4290,3587],{}," says how the call went (",[638,4293,4294],{},"sending",", then ",[638,4297,4298],{},"done",[638,4300,4301],{},"refused",[638,4303,3565],{},[638,4305,4306],{},"failed","). A call to an ",[638,4309,4310],{},"idempotent"," route sets ",[638,4313,4310],{},": the runtime sends an ",[638,4316,4317],{},"Idempotency-Key"," it keeps for that\naction until a call of it is done. A POST, PUT or PATCH call may set ",[638,4320,4321],{},"challenge: true",": before sending, the runtime fetches the same module's public ",[638,4324,4325],{},"GET \u002Fchallenge"," route, solves the proof of work (ALTCHA) in the browser with ",[638,4328,4329],{},"solveChallenge",[638,4331,4332],{},"@shadestack\u002Fclient\u002Fchallenge",") and sends the answer as the body field ",[638,4335,4336],{},"altcha",", so a bot pays in CPU time. A GET call may ",[638,4339,4340],{},"repeat",[638,4342,4343],{},"{ every: 2–60 seconds, while: \u003Ccondition> }",") after it went\nwell, for two minutes at most; with ",[638,4346,4347],{},"realtime: true"," too, it also asks again as soon as the route says its answer changed\n(see Realtime updates below), and ",[638,4350,4351],{},"every"," is only the safety net. Name your inputs so a form's controls can carry them: a control can't be called ",[638,4354,2564],{},[638,4356,4357],{},"location"," or\nanother property of the page or a form (",[638,4360,4361],{},"fullName",[638,4363,4364],{},"locationId","). The call goes to SHADE's account API (the page's\n",[638,4367,4368],{},"shade-account-api"," address) with the visitor's cookie; public routes take that from the site's own origin. Bindings into the answer are checked when the page is saved\n(",[638,4371,4372],{},"findVisitorRoute(plugin, method, path)"," gives the type, ",[638,4375,3915],{},[638,4377,3919],{},[631,4379,4380,4381,4384,4385,4388,4389,4392],{},"Text, number and on\u002Foff state may be ",[638,4382,4383],{},"kept",": in the visitor's browser, shared by every island of the site with a kept\nstate of that name and type. ",[638,4386,4387],{},"kept: true"," stays in local storage: keep an id there, never personal data (a cart's id,\nwith the cart on your side). ",[638,4390,4391],{},"kept: 'session'"," stays in session storage and is gone when the browser closes: use it for\nwhat a visitor typed and a module's islands share, such as an address looked up by one island and shown by another.\nIslands that share a name use the same kind, and clear the state when it has done its work (an order was placed).",[624,4394,4395,4398],{},[634,4396,4397],{},"Contributions: data for another module",". A module hands another module data by its name, without\nrequiring it: the website editor takes starter components this way.",[1133,4400,4402],{"className":1135,"code":4401,"language":1137,"meta":1138,"style":1138},"\u002F\u002F appointments\ncontributes: { website: { starters: [{ name: 'appointments-booking', label: t('starters.booking.label'), … }] } }\n\n\u002F\u002F website\naccepts: { starters: ContributedStarters }\n\u002F\u002F in a service:\nconst given = moduleContributions('website', 'starters') \u002F\u002F [{ module: 'appointments', value: [...] }]\n",[638,4403,4404,4409,4478,4484,4489,4507,4512],{"__ignoreMap":1138},[1142,4405,4406],{"class":1144,"line":1145},[1142,4407,4408],{"class":1181},"\u002F\u002F appointments\n",[1142,4410,4411,4414,4416,4418,4421,4423,4425,4428,4430,4432,4434,4436,4438,4440,4443,4445,4447,4449,4451,4454,4456,4458,4461,4463,4465,4467,4470,4472,4474,4476],{"class":1144,"line":1158},[1142,4412,4413],{"class":1148},"contributes",[1142,4415,1152],{"class":1151},[1142,4417,1321],{"class":1151},[1142,4419,4420],{"class":1148}," website",[1142,4422,1152],{"class":1151},[1142,4424,1321],{"class":1151},[1142,4426,4427],{"class":1148}," starters",[1142,4429,1152],{"class":1151},[1142,4431,1206],{"class":1205},[1142,4433,1209],{"class":1151},[1142,4435,1227],{"class":1205},[1142,4437,1152],{"class":1151},[1142,4439,1166],{"class":1151},[1142,4441,4442],{"class":1169},"appointments-booking",[1142,4444,1173],{"class":1151},[1142,4446,1224],{"class":1151},[1142,4448,1324],{"class":1205},[1142,4450,1152],{"class":1151},[1142,4452,4453],{"class":2901}," t",[1142,4455,2905],{"class":1205},[1142,4457,1173],{"class":1151},[1142,4459,4460],{"class":1169},"starters.booking.label",[1142,4462,1173],{"class":1151},[1142,4464,2891],{"class":1205},[1142,4466,1224],{"class":1151},[1142,4468,4469],{"class":1205}," … ",[1142,4471,1455],{"class":1151},[1142,4473,1452],{"class":1205},[1142,4475,1455],{"class":1151},[1142,4477,2948],{"class":1151},[1142,4479,4480],{"class":1144,"line":1178},[1142,4481,4483],{"emptyLinePlaceholder":4482},true,"\n",[1142,4485,4486],{"class":1144,"line":1185},[1142,4487,4488],{"class":1181},"\u002F\u002F website\n",[1142,4490,4491,4494,4496,4498,4500,4502,4505],{"class":1144,"line":1191},[1142,4492,4493],{"class":1148},"accepts",[1142,4495,1152],{"class":1151},[1142,4497,1321],{"class":1151},[1142,4499,4427],{"class":1148},[1142,4501,1152],{"class":1151},[1142,4503,4504],{"class":2908}," ContributedStarters",[1142,4506,2948],{"class":1151},[1142,4508,4509],{"class":1144,"line":1197},[1142,4510,4511],{"class":1181},"\u002F\u002F in a service:\n",[1142,4513,4514,4517,4520,4522,4525,4527,4529,4531,4533,4535,4537,4540,4542,4544],{"class":1144,"line":1261},[1142,4515,4516],{"class":2881},"const",[1142,4518,4519],{"class":2908}," given ",[1142,4521,3068],{"class":1151},[1142,4523,4524],{"class":2901}," moduleContributions",[1142,4526,2905],{"class":2908},[1142,4528,1173],{"class":1151},[1142,4530,4277],{"class":1169},[1142,4532,1173],{"class":1151},[1142,4534,1224],{"class":1151},[1142,4536,1166],{"class":1151},[1142,4538,4539],{"class":1169},"starters",[1142,4541,1173],{"class":1151},[1142,4543,2911],{"class":2908},[1142,4545,4546],{"class":1181},"\u002F\u002F [{ module: 'appointments', value: [...] }]\n",[628,4548,4549,4643,4675,4687,4697,4711],{},[631,4550,4551,4552,641,4555,673,4558,673,4561,673,4564,677,4567,673,4570,673,4573,673,4576,673,4579,673,4582,673,4585,673,4588,2621,4591,673,4594,673,4597,673,4600,673,4602,673,4605,4608,4609,673,4612,673,4615,673,4618,673,4621,4624,4625,2833,4628,4631,4632,4635,4636,4639,4640,4642],{},"A starter is built with the website module's SDK, ",[638,4553,4554],{},"@shadestack\u002Fmodule-website\u002Fsdk",[638,4556,4557],{},"el",[638,4559,4560],{},"words",[638,4562,4563],{},"show",[638,4565,4566],{},"when",[638,4568,4569],{},"each",[638,4571,4572],{},"slot",[638,4574,4575],{},"use",[638,4577,4578],{},"on",[638,4580,4581],{},"tree",[638,4583,4584],{},"literal",[638,4586,4587],{},"bound",[638,4589,4590],{},"formula",[638,4592,4593],{},"v",[638,4595,4596],{},"rem",[638,4598,4599],{},"px",[638,4601,3798],{},[638,4603,4604],{},"sides",[638,4606,4607],{},"radius","…;\nand the starter helpers ",[638,4610,4611],{},"routeCall",[638,4613,4614],{},"stateIs",[638,4616,4617],{},"outcomes",[638,4619,4620],{},"introHead",[638,4622,4623],{},"themeButton","…), which the module takes as\nan optional peer and bundles, and checked in the module's tests as the editor would check it when an admin adds it:\n",[638,4626,4627],{},"checkComponent(starter, { uses: STARTERS })",[638,4629,4630],{},"@shadestack\u002Fmodule-website\u002Fsdk\u002Ftesting",", after\n",[638,4633,4634],{},"loadModules([plugin], …)"," so its data sources and visitor routes are known (commerce and appointments:\n",[638,4637,4638],{},"server\u002Fstarters.test.ts","). Its styles read the default theme's variables. See\n",[2552,4641,482],{"href":483}," for the optional peer and the version check.",[631,4644,4645,4646,673,4649,4652,4653,4656,4657,4659,4660,4663,4664,4667,4668,4671,4672,1059],{},"A starter may declare one ",[634,4647,4648],{},"pick",[638,4650,4651],{},"pick: { source, parameter, prop, label }",": on the Components screen the admin\nchooses from the data source ",[638,4654,4655],{},"source"," (for example the published forms), under the question ",[638,4658,3406],{},"; the starter is\nadded once per choice, and the choice is the source's ",[638,4661,4662],{},"parameter"," and the component's prop ",[638,4665,4666],{},"prop",". The forms\nmodule's ",[634,4669,4670],{},"Form"," starter is made this way (",[2552,4673,4674],{"href":362},"Forms",[631,4676,4677,4678,4681,4682,4686],{},"Every text in a starter is a key in the giving module's locale files, written ",[638,4679,4680],{},"t('starters.booking.label')"," (batch\nES2; see ",[2552,4683,4685],{"href":4684},"\u002Fdevelopers\u002Fmodules\u002Fbackground-and-services#texts-for-visitors-in-any-language","Texts for visitors","): the website module\nreads labels and descriptions in the admin's language and the words it places on pages in each of the site's\nlanguages, so a starter speaks a new language once its module has the file.",[631,4688,4689,4690,4693,4694,1059],{},"It counts only while both modules are installed and on. Neither requires the other: a client who uses bookings\nwithout website editing installs bookings alone. The appointments module's ",[638,4691,4692],{},"server\u002Fstarters.ts"," is a worked example:\ntwo starter components as data, their formulas written as expression trees (",[638,4695,4696],{},"{ type: 'path', root: 'state', keys: ['slots', 'days'] }",[631,4698,4699,4701,4702,4704,4705,4707,4708,4710],{},[638,4700,4413],{}," is plain JSON, at most 256 KB in all, under module names and keys such as ",[638,4703,4539],{},"; untrusted\nmodules may contribute too (a sandbox package's ",[638,4706,4413],{},"). ",[638,4709,4493],{}," gives each key's zod schema, trusted\nmodules only.",[631,4712,4713,4714,4717],{},"The receiver's schema parses each contribution when it is read, never at start: what doesn't fit is left out, and\n",[638,4715,4716],{},"contributionIssues(name, key)"," says why. What the receiver then does with it is its own to check: the website\nmodule checks a given component as any component and refuses raw HTML in it.",[619,4719,4721],{"id":4720},"mcp-tools","MCP tools",[624,4723,4724,4725,641,4728,4731,4732,2815,4735,4738,4739,4742,4743,4746],{},"Each tool is an ",[638,4726,4727],{},"McpToolSpec",[638,4729,4730],{},"ModuleMcpToolSpec",") plus ",[638,4733,4734],{},"exposure",[638,4736,4737],{},"defineMcpTool(spec, exposure?)"," builds the manifest's entry (",[638,4740,4741],{},"safe-for-ai"," unless you say ",[638,4744,4745],{},"admin-only",") and holds the one cast the input's type needs, so a module's list of tools needs none (experimental):",[628,4748,4749,4770,4784],{},[631,4750,4751,4753,4754,4757,4758,4761,4762,4765,4766,4769],{},[638,4752,4741],{}," — registered on the MCP server. Its action must be granted to the ",[638,4755,4756],{},"ai"," role (a module's own\ncollections' actions count when the collection's ",[638,4759,4760],{},"access.ai"," grants them) and must not be a publishing or deleting\naction of any collection, nor an account, token, settings or rebuild action. A tool with ",[638,4763,4764],{},"readOnly: true"," needs a\n",[638,4767,4768],{},".read"," action, and one that writes may not have one: a write gated only by a read permission is refused when the\nmodule loads.",[631,4771,4772,4775,4776,4779,4780,4783],{},[638,4773,4774],{},"destructive: true"," marks a write that removes something (the website module's ",[638,4777,4778],{},"website_remove_node_from_draft",").\nThe AI client sees it as the MCP annotation ",[638,4781,4782],{},"destructiveHint"," and may ask before calling it.",[631,4785,4786,4788],{},[638,4787,4745],{}," — never exposed over MCP. Commerce's order tool is admin-only because orders contain customers'\npersonal data.",[619,4790,4792],{"id":4791},"details","Details",[628,4794,4795],{},[631,4796,4797,4798,641,4801,4804,4805,4808,4809,4812,4813,4816,4817,2815,4819,4822,4823,4826,4827,4830,4831,4834,4835,4837,4838,4840,4841,4844,4845,4848,4849,4852,4853,4856],{},"Admin languages: built on ",[638,4799,4800],{},"@nuxtjs\u002Fi18n",[638,4802,4803],{},"apps\u002Fadmin\u002Fnuxt.config.ts","), strategy ",[638,4806,4807],{},"no_prefix",", locales ",[638,4810,4811],{},"en"," (en-GB)\nand ",[638,4814,4815],{},"nl"," (nl-NL), default ",[638,4818,4811],{},[638,4820,4821],{},"apps\u002Fadmin\u002Fapp\u002Fplugins\u002Fadmin-locale.ts"," picks the saved choice (cookie\n",[638,4824,4825],{},"shade_admin_locale",", one year), else the first browser language the admin has, else English. Nuxt UI's texts\n(",[638,4828,4829],{},"app.vue",") and browser-side Zod messages (",[638,4832,4833],{},"modules\u002Fzod-locale.ts",") follow the admin language (\"Required\" \u002F \"Not a\nvalid value\" instead of Zod's wording). Every ",[638,4836,3216],{}," has ",[638,4839,3223],{},", held by\n",[638,4842,4843],{},"apps\u002Fadmin\u002Ftest\u002Fchecks\u002Fforms.test.ts",". Texts: the shell's in ",[638,4846,4847],{},"apps\u002Fadmin\u002Fi18n\u002Flocales\u002F{en,nl}.json",", each feature's in\n",[638,4850,4851],{},"shade\u002Ffeatures\u002F\u003Cname>\u002Fadmin\u002Flocales",", each module's through its manifest; ",[638,4854,4855],{},"apps\u002Fadmin\u002Ftest\u002Fchecks\u002Flocales.test.ts","\nchecks every key exists in both languages.",[3798,4858,4859],{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}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 .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}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 .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 .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 .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}",{"title":1138,"searchDepth":1158,"depth":1158,"links":4861},[4862,4863,4868,4869,4870],{"id":621,"depth":1158,"text":622},{"id":1123,"depth":1158,"text":1124,"children":4864},[4865,4866,4867],{"id":3029,"depth":1178,"text":3030},{"id":3172,"depth":1178,"text":3173},{"id":3333,"depth":1178,"text":3334},{"id":3757,"depth":1158,"text":3758},{"id":4720,"depth":1158,"text":4721},{"id":4791,"depth":1158,"text":4792},null,{},{"title":467,"description":1138},"O7D-YdjVOwlmEDetk4yK7qZvhpw7muKW0rM-VfxLKP0",[4876,4877],{"title":463,"path":464,"stem":465,"description":1138,"children":-1},{"title":110,"path":471,"stem":472,"description":1138,"children":-1},1796500155679]