[{"data":1,"prerenderedAt":1239},["ShallowReactive",2],{"navigation_docs":3,"-guide-website-roles-and-locks":613,"-guide-website-roles-and-locks-surround":1236},[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":169,"body":615,"description":1226,"extension":1230,"links":1231,"meta":1232,"navigation":1233,"path":170,"seo":1234,"stem":171,"__hash__":1235},"docs\u002F3.guide\u002F2.website\u002F4.roles-and-locks.md",{"type":616,"value":617,"toc":1225},"minimark",[618,622,646,654,661,681,684,690,753,759,923,935,1026,1037,1126,1132,1175,1185,1214,1219],[619,620,621],"p",{},"Three roles decide what someone may change on a page:",[623,624,625,634,640],"ul",{},[626,627,628,629,633],"li",{},"A ",[630,631,632],"strong",{},"designer"," changes anything: elements, styles, data and logic, and the locks. Admins, editors and the AI are\ndesigners.",[626,635,628,636,639],{},[630,637,638],{},"builder"," adds, moves and removes components from the library, fills their slots with components and picks\ntheir variants. A builder doesn't add plain elements, and a component they add has plain values: no values from\ndata and no locks.",[626,641,628,642,645],{},[630,643,644],{},"content editor"," changes texts, images, link addresses and a component's properties. Values that come from data\nstay as they are.",[619,647,648,649,653],{},"Give a team member a custom role with ",[650,651,652],"code",{},"website.pages.build"," to make them a builder, or with only the pages' own\npermissions to make them a content editor. The editor shows their role in its header. A builder's Add offers only\ncomponents, and a content editor has no Add. Settings they may not change are read-only, and a change they may not\nmake is refused as they make it, with the reason.",[619,655,656,657,660],{},"A designer ",[630,658,659],{},"locks"," the selected part in Settings, under Locks:",[623,662,663,669,675],{},[626,664,665,668],{},[630,666,667],{},"Keep in place",": the part isn't moved or removed, and nothing is added to it or taken out of it;",[626,670,671,674],{},[630,672,673],{},"Keep styles",": its classes, its own styles and its animations stay as they are;",[626,676,677,680],{},[630,678,679],{},"Lock these settings",": chosen settings, such as a link's address or one property of a component, or all of them.",[619,682,683],{},"Locks hold builders and content editors, not designers. A locked part shows a lock in the structure panel. Roles and\nlocks are checked on every save, from the editor, an AI assistant or any other way in.",[619,685,686,689],{},[630,687,688],{},"What a page is made of",", and the rules every save checks:",[623,691,692,695,716,719,741,744,747,750],{},[626,693,694],{},"Plain HTML elements (a section, a heading, a link around a card…), texts, components with slots, conditions (show\nthis, otherwise that), lists over a collection or other data (one card per product, the six newest posts) and\nparts shown per visitor or responding in the browser.",[626,696,697,698,701,702,705,706,705,709,712,713,715],{},"Only safe HTML: no scripts, styles, frames or embedded code, no event attributes, and links only to ",[650,699,700],{},"https:\u002F\u002F",",\n",[650,703,704],{},"http:\u002F\u002F",", ",[650,707,708],{},"mailto:",[650,710,711],{},"tel:"," or an address on the site. Images come from the media library (or a file on the\nsite), never from another website; videos and audio from the site or ",[650,714,700],{},".",[626,717,718],{},"Embedded HTML (a map, a booking widget's snippet) needs its own permission. Scripts and event attributes are\nrefused in it when it is saved, and it is cleaned before it is shown.",[626,720,721,722,705,725,701,728,705,731,734,735,738,739,715],{},"Ids and form field names can't be words the browser already uses for something else (",[650,723,724],{},"submit",[650,726,727],{},"action",[650,729,730],{},"name",[650,732,733],{},"location","…): name a field ",[650,736,737],{},"full-name"," rather than ",[650,740,730],{},[626,742,743],{},"Pages stay valid HTML: no link inside a link or a button, no block inside a paragraph or heading, list items only\nin a list, table rows only in a table's head, body or foot, table cells only in a row. Components count too: a\nbutton component can't go in a link, and a link component's text can't hold another link. The editor won't offer\na place that would be refused.",[626,745,746],{},"What a visitor sees of their own data (their name, their bookings) is only filled in on the server, in the parts\nshown per visitor.",[626,748,749],{},"Text is per language, with the default language's text required; content that fails a condition is left out of\nthe page, never hidden in it.",[626,751,752],{},"Pages made today keep opening after updates.",[619,754,755,758],{},[630,756,757],{},"Formulas"," let a page follow its data without anyone writing code:",[623,760,761,777,894,904,916],{},[626,762,763,764,701,767,705,770,705,773,776],{},"A text, a link, an image, a condition or a list can take its value from a formula: ",[650,765,766],{},"entry.title",[650,768,769],{},"upper(site.name)",[650,771,772],{},"state.open ? 'Close' : 'Menu'",[650,774,775],{},"formatMoney(product.price)",". Formulas read the page's entry,\nthe site, the visitor (only in the parts shown per visitor), a component's properties, the values of a part that\nresponds in the browser, and the item a list is at.",[626,778,779,780,705,783,705,786,705,789,792,793,705,796,705,799,802,803,705,806,705,809,705,812,705,815,818,819,822,823,826,827,705,830,705,833,836,837,705,840,705,843,705,846,705,849,705,852,705,855,858,859,705,862,705,865,705,868,705,871,874,875,705,878,705,881,705,884,705,887,705,890,893],{},"They can compare (",[650,781,782],{},"==",[650,784,785],{},"!=",[650,787,788],{},"\u003C",[650,790,791],{},">","…), combine (",[650,794,795],{},"&&",[650,797,798],{},"||",[650,800,801],{},"!","), calculate (",[650,804,805],{},"+",[650,807,808],{},"-",[650,810,811],{},"*",[650,813,814],{},"\u002F",[650,816,817],{},"%","), fall back\n(",[650,820,821],{},"visitor.name ?? 'guest'",") and choose (",[650,824,825],{},"… ? … : …","), and call a fixed set of helpers: dates, numbers and amounts\nwritten the way the page's language writes them (",[650,828,829],{},"18 oktober 2026",[650,831,832],{},"1.234,50",[650,834,835],{},"€ 12,50","), the site's own\ntranslations, and helpers for texts (",[650,838,839],{},"lower",[650,841,842],{},"upper",[650,844,845],{},"trim",[650,847,848],{},"slice",[650,850,851],{},"includes",[650,853,854],{},"startsWith",[650,856,857],{},"replace","),\nlists (",[650,860,861],{},"length",[650,863,864],{},"first",[650,866,867],{},"last",[650,869,870],{},"join",[650,872,873],{},"isEmpty",") and numbers (",[650,876,877],{},"min",[650,879,880],{},"max",[650,882,883],{},"round",[650,885,886],{},"floor",[650,888,889],{},"ceil",[650,891,892],{},"abs",").",[626,895,896,897,705,900,903],{},"A formula is checked as it is typed and when the page is saved: a text can't stand where on\u002Foff is needed, a\nnumber must be formatted before it is shown as text, and something that may be empty needs a fallback where a\ndecision is made. Each problem is underlined where it is, with a hint (",[650,898,899],{},"did you mean title?",[650,901,902],{},"format it with formatNumber(…)","). Nothing is guessed: a formula that can't give its value shows an error, never a wrong value.",[626,905,906,907,705,909,705,911,705,913,915],{},"A part that responds in the browser keeps values (open or closed, a search text, a list of choices) and answers a\nclick, a key, typing, a change or a form being sent with actions: set or switch a value, go to an address\n(",[650,908,700],{},[650,910,704],{},[650,912,708],{},[650,914,711],{}," or the site's own), submit one of its forms, send a form to one of the\npublished forms under Forms, search the site, call a module (adding to a wishlist), or play an animation.\nOnly buttons, links and form fields answer clicks and keys, so everything stays usable with a keyboard. When the part\nstarts it may set its values, play an animation or read from a module, but never go elsewhere, send a form or\nchange something for the visitor without them asking.",[626,917,918,919,922],{},"A formula is never code: it can't run scripts, reach other websites or read anything beyond the data the page is\ngiven. An address a formula gives (a link, a picture, where a button goes) passes the same check as a written one:\nwhen the page is saved, for what is known then (",[650,920,921],{},"'javascript:…'"," is refused, and so is a formula with so many\npossible addresses that they can't all be checked: simplify it), and again when it is shown or followed, for what\ncomes from the data or what a visitor typed.",[619,924,925,928,929,934],{},[630,926,927],{},"Styles"," are what the Style panel sets (",[930,931,933],"a",{"href":932},"\u002Fguide\u002Fwebsite\u002Fvisual-editor#styling-an-element","Styling an element","):",[623,936,937,956,962,980,986,996,1002,1012,1023],{},[626,938,939,940,943,944,705,948,951,952,955],{},"Styling starts from ",[630,941,942],{},"classes",": a named style (",[945,946,947],"em",{},"Card",[945,949,950],{},"Button",") used on any number of elements on any page, so\nchanging it once changes them all. An element can also have its ",[630,953,954],{},"own styles",", which win over its classes on the\nsame screen size: a class's tablet value still wins on tablets over the element's own desktop value, so to change\nthe element on tablets you set its own tablet value (the editor shows which one wins). An element's own styles\nbelong to its page: a copy of the page starts without them.",[626,957,958,959,715],{},"Each control sets one style property (a colour, a padding, a font size, a grid), from a fixed list. Values are\nchosen, not typed as code: a size with its unit, a colour, one of the property's options, or a ",[630,960,961],{},"variable",[626,963,964,967,968,971,972,975,976,979],{},[630,965,966],{},"States and parts:"," a style can differ on hover, focus, keyboard focus, while pressed, when checked and when\ndisabled, and can style an element's ",[945,969,970],{},"before"," and ",[945,973,974],{},"after"," parts, a field's placeholder and a list's markers.\n",[630,977,978],{},"Checked"," applies to a checked checkbox or radio and to what holds one: a label around a radio, so two choices\ncan look like buttons, the chosen one dark, while the radios stay real radios for keyboards and screen readers.",[626,981,982,985],{},[630,983,984],{},"States together:"," keyboard focus is also focus, so a focus style shows for keyboard users too unless a\nkeyboard-focus style changes it; pressing an element with the mouse also hovers it. When several hold, the later\nin this list wins: hover, focus, keyboard focus, pressed, checked, disabled. So a checked choice keeps its look\nunder the pointer, and a disabled one always looks disabled. A state's style wins over the same property without\na state at every screen width.",[626,987,988,991,992,995],{},[630,989,990],{},"Variables"," are the site's colours, sizes, fonts, corner radii, shadows and numbers, in collections. A colour\ncan have a light and a dark value: the site follows the visitor's light or dark setting, or a ",[630,993,994],{},"Light and dark"," switch on the\npage, and one part of a page can be shown in the other mode. The theme's colours, fonts and sizes are the first\nvariables. A variable can only be used where its value fits: a size of 50 % can't be a border width, nor a\nnegative size a padding.",[626,997,998,1001],{},[630,999,1000],{},"Breakpoints:"," a style can change on tablets and phones. A site starts from the phone and goes up (a new site\ndoes), or from the desktop and goes down. A part can also change with the width of the box it stands in (a card in a narrow sidebar\nand in a wide grid), and a size can grow smoothly with the screen between a minimum and a maximum.",[626,1003,1004,1005,1008,1009,1011],{},"The editor shows where each value comes from: set here, from a larger screen, from the normal state, from\nanother class or from the element's own styles. The site's variables, breakpoints and container queries are\nmanaged on the ",[630,1006,1007],{},"Site styles"," screen (",[930,1010,177],{"href":178},"), which the Style panel links to.",[626,1013,1014,1015,1018,1019,1022],{},"Styles can't reach beyond what they style: no free CSS, no images from other websites, no addresses that run\ncode, and no class or variable can change SHADE's own parts of the page, such as the cookie banner (names\nstarting with ",[650,1016,1017],{},"shade-",", and classes starting with ",[650,1020,1021],{},"site-",", are refused). The styles go live when a page is\npublished.",[626,1024,1025],{},"Colour contrast is worked out from the variables in every mode, so the accessibility check finds text that is\nreadable in light mode but not in dark mode.",[619,1027,1028,1029,1032,1033,1036],{},"The ",[630,1030,1031],{},"accessibility check"," runs on every publish, and in the editor's ",[630,1034,1035],{},"Accessibility"," panel:",[623,1038,1039,1045,1051,1057,1123],{},[626,1040,1041,1044],{},[630,1042,1043],{},"Errors stop publishing; warnings don't."," An error is a failure of WCAG 2.1 AA, something that\nmakes the page hard or impossible to use for some visitors, or a page the check can't read at all. Everything WCAG\ndoesn't require is a warning, however questionable: the choice is yours. Warnings are, for example,\na second heading 1, a skipped heading level, navigations without labels, a link inside a link, a part that changes\non hover but has no focus style of its own (the browser's own focus ring still shows), a colour the check can't\nwork out (check that text by eye), an image whose alt text looks like a file name, or embedded HTML the check\ncan't see into.",[626,1046,1047,1050],{},[630,1048,1049],{},"It looks inside components",": a card used on ten pages is checked on each, with the text, images and settings\neach page gives it, and an issue inside a component says which one on the page it is in. A setting a page leaves\nempty counts as empty: a button component whose label you didn't fill in is an empty button. A component's\nvariants are checked too, each with the classes it adds.",[626,1052,1053,1056],{},[630,1054,1055],{},"It checks every version of the page:"," both sides of a condition (also the one you don't see while editing, such\nas the page for visitors who aren't signed in), and a list with items and without.",[626,1058,1059,1062,1063,1066,1067],{},[630,1060,1061],{},"What it checks"," (",[945,1064,1065],{},"warning"," marks what only warns; the rest stops publishing):\n",[623,1068,1069,1076,1079,1082,1085,1088,1094,1100,1103,1108,1114,1120],{},[626,1070,1071,1072,1075],{},"headings have text; and, both ",[945,1073,1074],{},"warnings",", they go down one level at a time (no heading 2 followed by a heading\n4) and a page has one heading 1;",[626,1077,1078],{},"images have alt text, or are marked decorative (an empty alt text);",[626,1080,1081],{},"links, buttons and form fields have a name or a label, and aren't empty; a placeholder is not a label;",[626,1083,1084],{},"what reacts to a click is a button or a link with an address, so it can be reached with the keyboard;",[626,1086,1087],{},"nothing hidden from screen readers can be reached with the keyboard;",[626,1089,1090,1091,1093],{},"no link inside a link, no button inside a link and no heading inside a heading, also when a component changed\nafter the page was saved (",[945,1092,1065],{},": the editor already refuses it when you save);",[626,1095,1096,1097,1099],{},"a disclosure's summary, a group of fields' legend and a table's caption come first (",[945,1098,1065],{},");",[626,1101,1102],{},"ids appear once on the page, also when a component is used twice or a list repeats, and a label or a\ndescription names an id that shows with it (not only on the other side of a condition);",[626,1104,1105,1106,1099],{},"one main area, and a label on each navigation when there is more than one (",[945,1107,1074],{},[626,1109,1110,1113],{},[630,1111,1112],{},"contrast"," of every text against its background, in light and dark mode, on every screen size, on hover,\nwhen checked and on keyboard focus (4.5:1, or 3:1 for large text), the text on buttons and in filled-in fields\ntoo. Over a gradient, linear or radial, the check takes its least readable point; for a repeating gradient or\ncolours placed at lengths (a dot grid), every colour counts. Text over a background image needs a background\ncolour below the image that passes (it shows while the image loads); the image itself is a warning, to check by\neye. A colour the check can't work out (a variable with no colour in dark mode, many see-through gradients over\none another) is a warning, to check by eye;",[626,1115,1116,1117,1119],{},"no style takes the focus outline away without showing focus another way; and a part that changes on hover also\nchanges visibly on keyboard focus (a link whose title changes colour on hover too; ",[945,1118,1065],{},", as long as the\noutline stays). A focus style counts only when it shows: a transparent outline, a colour that stays the same, a\nsee-through gradient or one of the colour already behind (an extra colour with no width included), or an\nunderline style set to what it already is, doesn't;",[626,1121,1122],{},"text shown in another language than the page's (a text not translated yet) is marked with its language.",[626,1124,1125],{},"In every language: a link that has text in Dutch but not in English is found on the English page.",[619,1127,1128,1131],{},[630,1129,1130],{},"What visitors get",":",[623,1133,1134,1137,1140,1143,1146,1160,1163,1166,1169,1172],{},[626,1135,1136],{},"Everything is decided before the page reaches the visitor: formulas filled in, conditions applied (what fails one\nis left out of the page, never hidden in it), lists repeated, components filled with their settings and slots. A\nformula that can't give its value shows nothing there, and the problem is reported.",[626,1138,1139],{},"Every address is checked again when the page is shown, for what comes from the data or what a visitor typed: a\nlink, a picture, a video, where a button goes. An address that isn't allowed is left out, never shown.",[626,1141,1142],{},"Embedded HTML is cleaned into plain elements: scripts, styles, frames, forms, event attributes and unsafe\naddresses are taken out, the rest is kept.",[626,1144,1145],{},"Parts shown per visitor are filled in for the visitor who asks, and only with what they show of that visitor\n(their name, say). Parts that respond in the browser get their values and only the data they show; never anything\nof the visitor.",[626,1147,1148,1151,1152,1155,1156,1159],{},[630,1149,1150],{},"Ready-made accessible parts:"," a disclosure (",[945,1153,1154],{},"more information","), an accordion (one open at a time), tabs, a\ndialog that opens from a button, a menu of links, and a ",[945,1157,1158],{},"skip to content"," link for keyboard users. They work with\nthe keyboard (arrow keys, Escape, Home and End), move focus where it should go and back, and say what they are to\nscreen readers, without anyone setting that up.",[626,1161,1162],{},"Text from a rich text field or setting shows with its headings, lists, bold and links; only those, and only links\nthat are allowed.",[626,1164,1165],{},"Pictures from the media library come in the size and format each visitor's screen and browser need. Every picture\nneeds a description for screen readers, or is marked as decorative; one without either is shown as decorative and\nthe editor is told.",[626,1167,1168],{},"Each page gets its title, description, canonical address, its addresses in the other languages, the details for\nsharing on social media and for search engines; sites can list their pages in a sitemap.",[626,1170,1171],{},"A page with parts shown for a visitor is that visitor's only: it is never kept for others.",[626,1173,1174],{},"A page that would take too much to show (a component inside itself, a list over thousands of items) is refused\nrather than shown in part.",[619,1176,1177,1180,1181,934],{},[630,1178,1179],{},"Animations"," follow these rules; the editor's Motion tab makes them (see\n",[930,1182,1184],{"href":1183},"\u002Fguide\u002Fwebsite\u002Fvisual-editor#animating-an-element","Animating an element",[623,1186,1187,1190,1193,1196,1199,1202,1205,1208,1211],{},[626,1188,1189],{},"An animation is something that moves or changes on the page: a heading that fades in when the page opens, a card\nthat lifts when the pointer is over it, a menu panel that slides open when its button is clicked, a section that\nappears when it scrolls into view, or a picture that drifts while the page scrolls. A button inside a part of the\npage that responds to visitors can also play one, made for that: such an animation plays only when that part of\nthe page asks for it, never on its own.",[626,1191,1192],{},"You choose what starts it, which elements of the page it moves, and how: from where to where (see-through,\nmoved, larger or smaller, turned, blurred, or another of the site's colours), how long, with which easing and how\nmany times. Several steps can follow each other or overlap, each on its own elements.",[626,1194,1195],{},"A hover also plays when someone reaches the element with the keyboard. A click only plays on what visitors can\nclick from the keyboard too, such as buttons and links; a plain box is never made clickable.",[626,1197,1198],{},"An animation can be limited to some screen sizes (only on desktop, say).",[626,1200,1201],{},"Visitors who asked their device for less motion get no animation: by default the fading and the colours jump\nstraight to how they end, and the movement is left out; an animation can also jump straight to its whole end, or\nnot play at all for them. This can't be turned off, and it holds from the moment a visitor changes the setting,\nalso for what already played once.",[626,1203,1204],{},"What starts by itself (when the page opens or something scrolls into view) stops within five seconds, and nothing\nrepeats forever. A part of the page that plays animations as it opens plays five seconds of them at most in all.",[626,1206,1207],{},"Nothing flashes more than three times a second: an animation that makes an element go back and forth more than\nthat, in one go, over its repeats or over several steps, is refused when you save it, with the element it is\nabout. What an element shows is counted together: its see-through-ness, its colours, shrinking to nothing, blurring\nor moving out of sight, and what the elements around it in the same animation do (a card's fade fades its picture\ntoo). Everything a page plays as it loads starts together, so it is counted together. A long, smooth fade doesn't\ncount as flashing, however many steps it has; going back and forth does. Something that follows the scroll may\nonly go back and forth a few times in all, as a visitor can scroll through it at once.",[626,1209,1210],{},"Something that appears when it scrolls into view always appears: a section taller than the screen counts as seen\nonce it fills enough of the screen.",[626,1212,1213],{},"Colours come from the site's colour variables, so they follow light and dark mode; there is no free code or CSS.\nPages without animations load nothing extra.",[1215,1216,1218],"h2",{"id":1217},"for-developers","For developers",[619,1220,1221,1222,715],{},"The code and its tests: the README of ",[650,1223,1224],{},"shade-plugin-website",{"title":1226,"searchDepth":1227,"depth":1227,"links":1228},"",2,[1229],{"id":1217,"depth":1227,"text":1218},"md",null,{},true,{"title":169,"description":1226},"xf99V-Xds_K20IvRaOkZMP6klbmKr9ZoBs3mc41EhSk",[1237,1238],{"title":165,"path":166,"stem":167,"description":1226,"children":-1},{"title":173,"path":174,"stem":175,"description":1226,"children":-1},1796500158774]