[{"data":1,"prerenderedAt":8003},["ShallowReactive",2],{"content-navigation":3,"$fY4mAj2l3kRkTDttxn6FGzqBc2O9HAJ2qp-_8LmMX7aw":1825,"/tutorials/projects/create-a-cms-using-directus-and-nuxt":1830},[4,112,119,224,333,429,481,1087,1113,1142],{"title":5,"path":6,"stem":7,"children":8,"page":89},"Partials","/_partials","_partials",[9,15,20,25,29,33,38,42,47,51,56,60,64,68,90,94,98,103,108],{"title":10,"path":11,"stem":12,"description":13,"icon":14,"links":14},"Advanced Field Creation Mode","/_partials/advanced-field-creation-mode","_partials/advanced-field-creation-mode","You can use these advanced options to automatically set the values of fields at specific events by clicking on \"Continue in Advanced Field Creation Mode\".",null,{"title":16,"path":17,"stem":18,"description":19,"icon":14,"links":14},"Authentication","/_partials/authentication","_partials/authentication","While the Public role can be configured to make data available without authentication, anything that is not public requires a user to authenticate their requests.",{"title":21,"path":22,"stem":23,"description":24,"icon":14,"links":14},"Config Env Vars","/_partials/config-env-vars","_partials/config-env-vars","",{"title":26,"path":27,"stem":28,"description":24,"icon":14,"links":14},"Deployment Public Instance","/_partials/deployment-public-instance","_partials/deployment-public-instance",{"title":30,"path":31,"stem":32,"description":24,"icon":14,"links":14},"Engine Studio Box","/_partials/engine-studio-box","_partials/engine-studio-box",{"title":34,"path":35,"stem":36,"description":37,"icon":14,"links":14},"Extension Hook Footguns","/_partials/extension-hook-footguns","_partials/extension-hook-footguns","Directus reads system collections to operate. Be careful when modifying the output of system collection read or query events. Also ensure not to directly or indirectly emit the same event your hook is handling or you will create an infinite loop.",{"title":39,"path":40,"stem":41,"description":24,"icon":14,"links":14},"Extension Hook System Collections","/_partials/extension-hook-system-collections","_partials/extension-hook-system-collections",{"title":43,"path":44,"stem":45,"description":46,"icon":14,"links":14},"Extensions Api","/_partials/extensions-api","_partials/extensions-api","This extension type is loaded into the Directus process. They can use the provided services exported by the @directus/extensions-sdk package and can be written in JavaScript or TypeScript.",{"title":48,"path":49,"stem":50,"description":24,"icon":14,"links":14},"Extensions Api Internals","/_partials/extensions-api-internals","_partials/extensions-api-internals",{"title":52,"path":53,"stem":54,"description":55,"icon":14,"links":14},"Extensions App","/_partials/extensions-app","_partials/extensions-app","This extension type is loaded into the Directus Data Studio. They are are built with Vue 3, and can use the provided composables exported by the @directus/extensions-sdk package. Extensions can be written in JavaScript or TypeScript.",{"title":57,"path":58,"stem":59,"description":24,"icon":14,"links":14},"Extensions App Internals","/_partials/extensions-app-internals","_partials/extensions-app-internals",{"title":61,"path":62,"stem":63,"description":24,"icon":14,"links":14},"Extensions Theme","/_partials/extensions-theme","_partials/extensions-theme",{"title":65,"path":66,"stem":67,"description":24,"icon":14,"links":14},"Extensions Uid","/_partials/extensions-uid","_partials/extensions-uid",{"title":69,"path":70,"stem":71,"children":72,"page":89},"Home Hero","/_partials/home-hero","_partials/home-hero",[73,77,81,85],{"title":74,"path":75,"stem":76,"description":24,"icon":14,"links":14},"Auth","/_partials/home-hero/auth","_partials/home-hero/auth",{"title":78,"path":79,"stem":80,"description":24,"icon":14,"links":14},"Data","/_partials/home-hero/data","_partials/home-hero/data",{"title":82,"path":83,"stem":84,"description":24,"icon":14,"links":14},"File","/_partials/home-hero/file","_partials/home-hero/file",{"title":86,"path":87,"stem":88,"description":24,"icon":14,"links":14},"Realtime","/_partials/home-hero/realtime","_partials/home-hero/realtime",false,{"title":91,"path":92,"stem":93,"description":24,"icon":14,"links":14},"Json Function","/_partials/json-function","_partials/json-function",{"title":95,"path":96,"stem":97,"description":24,"icon":14,"links":14},"License","/_partials/license","_partials/license",{"title":99,"path":100,"stem":101,"description":102,"icon":14,"links":14},"Query Functions","/_partials/query-functions","_partials/query-functions","Functions accept a field and return a modified value. Functions can be used in any query parameter you'd normally supply a field key, including fields, aggregation, and filters.",{"title":104,"path":105,"stem":106,"description":107,"icon":14,"links":14},"Quickstart Making Calls","/_partials/quickstart-making-calls","_partials/quickstart-making-calls","You can use a visual API testing tool like Postman or Hoppscotch, a terminal-based based tool like curl or HTTPie, or make HTTP requests directly in a script written in your programming language of choice.",{"title":109,"path":110,"stem":111,"description":24,"icon":14,"links":14},"Snippet Auth Token","/_partials/snippet-auth-token","_partials/snippet-auth-token",{"title":113,"path":114,"stem":115,"children":116,"description":118,"icon":14,"links":14},"Directus API Reference","/api","api/index",[117],{"title":113,"path":114,"stem":115,"description":118,"icon":14,"links":14},"Learn how to use our API",{"title":120,"path":121,"stem":122,"children":123,"page":89},"Cloud","/cloud","cloud",[124,144,174,204],{"title":125,"path":126,"stem":127,"children":128,"page":89},"Getting Started","/cloud/getting-started","cloud/1.getting-started",[129,134,139],{"title":130,"path":131,"stem":132,"description":133,"icon":14,"links":14},"Introduction","/cloud/getting-started/introduction","cloud/1.getting-started/1.introduction","Whether you're a hobbyist, startup, or enterprise, our flexible Directus Cloud platform lets you get up and running with Directus quickly.",{"title":135,"path":136,"stem":137,"description":138,"icon":14,"links":14},"Cloud Teams","/cloud/getting-started/teams","cloud/1.getting-started/2.teams","A team is an organizational system that groups accounts together as team members and provides consolidated billing for projects.",{"title":140,"path":141,"stem":142,"description":143,"icon":14,"links":14},"Managing Cloud Accounts","/cloud/getting-started/accounts","cloud/1.getting-started/3.accounts","An account is your portal to Directus Cloud. You can use it to manage your teams, team members, projects and billing.",{"title":145,"path":146,"stem":147,"children":148,"page":89},"Projects","/cloud/projects","cloud/2.projects",[149,154,159,164,169],{"title":150,"path":151,"stem":152,"description":153,"icon":14,"links":14},"Create a Project","/cloud/projects/create","cloud/2.projects/1.create","Create a project in Directus Cloud.",{"title":155,"path":156,"stem":157,"description":158,"icon":14,"links":14},"Destroy a Project","/cloud/projects/destroy","cloud/2.projects/2.destroy","Destroy a Directus Cloud project and cancel your subscription.",{"title":160,"path":161,"stem":162,"description":163,"icon":14,"links":14},"Version Upgrades","/cloud/projects/version-upgrades","cloud/2.projects/3.version-upgrades","Learn about automatic upgrades and version locking in Directus Cloud.",{"title":165,"path":166,"stem":167,"description":168,"icon":14,"links":14},"Monitoring Projects","/cloud/projects/monitoring","cloud/2.projects/4.monitoring","Learn how to monitor your Directus Cloud project.",{"title":170,"path":171,"stem":172,"description":173,"icon":14,"links":14},"Backups","/cloud/projects/backups","cloud/2.projects/5.backups","Learn about automatic backups in Directus Cloud.",{"title":175,"path":176,"stem":177,"children":178,"page":89},"Configuration","/cloud/configuration","cloud/3.configuration",[179,184,189,194,199],{"title":180,"path":181,"stem":182,"description":183,"icon":14,"links":14},"Custom Domains","/cloud/configuration/custom-domains","cloud/3.configuration/1.custom-domains","Learn how to set up a custom domain for your Directus Enterprise Cloud project.",{"title":185,"path":186,"stem":187,"description":188,"icon":14,"links":14},"Environment Variables","/cloud/configuration/environment-variables","cloud/3.configuration/2.environment-variables","Learn about environment variables in Directus Cloud.",{"title":190,"path":191,"stem":192,"description":193,"icon":14,"links":14},"Direct Database Access","/cloud/configuration/direct-database-access","cloud/3.configuration/3.direct-database-access","Learn how to directly access your Directus Cloud project's database.",{"title":195,"path":196,"stem":197,"description":198,"icon":14,"links":14},"Custom Extensions","/cloud/configuration/custom-extensions","cloud/3.configuration/4.custom-extensions","Learn how to deploy custom extensions to your Directus Cloud project.",{"title":200,"path":201,"stem":202,"description":203,"icon":14,"links":14},"Datacenter Regions","/cloud/configuration/datacenter-regions","cloud/3.configuration/5.datacenter-regions","Learn where datacenters for cloud projects are located.",{"title":205,"path":206,"stem":207,"children":208,"page":89},"Billing","/cloud/billing","cloud/4.billing",[209,214,219],{"title":210,"path":211,"stem":212,"description":213,"icon":14,"links":14},"Manage Billing","/cloud/billing/manage-billing","cloud/4.billing/1.manage-billing","Learn how to manage billing for your Directus Cloud project.",{"title":215,"path":216,"stem":217,"description":218,"icon":14,"links":14},"Changing Your Tier","/cloud/billing/changing-tier","cloud/4.billing/2.changing-tier","Learn how to change the tier of your Directus Cloud project.",{"title":220,"path":221,"stem":222,"description":223,"icon":14,"links":14},"Cancel Your Subscription","/cloud/billing/cancel-subscription","cloud/4.billing/3.cancel-subscription","Learn how to cancel your Directus Cloud project subscription.",{"title":225,"path":226,"stem":227,"children":228,"page":89},"Community","/community","community",[229,249,274,293,318],{"title":230,"path":231,"stem":232,"children":233,"page":89},"Overview","/community/overview","community/1.overview",[234,239,244],{"title":235,"path":236,"stem":237,"description":238,"icon":14,"links":14},"Welcome","/community/overview/welcome","community/1.overview/1.welcome","Welcome to the Directus community!",{"title":240,"path":241,"stem":242,"description":243,"icon":14,"links":14},"Code of Conduct","/community/overview/conduct","community/1.overview/2.conduct","Our standards, responsibilities, and enforcement guidelines to create a positive community.",{"title":245,"path":246,"stem":247,"description":248,"icon":14,"links":14},"Moderation Guidelines","/community/overview/moderation","community/1.overview/3.moderation","Guidelines we give to community moderators.",{"title":250,"path":251,"stem":252,"children":253,"page":89},"Contribution","/community/contribution","community/2.contribution",[254,259,264,269],{"title":255,"path":256,"stem":257,"description":258,"icon":14,"links":14},"Translations","/community/contribution/translations","community/2.contribution/1.translations","How to contribute to translating the Data Studio.",{"title":260,"path":261,"stem":262,"description":263,"icon":14,"links":14},"Documentation","/community/contribution/documentation","community/2.contribution/2.documentation","How to contribute to the Directus documentation.",{"title":265,"path":266,"stem":267,"description":268,"icon":14,"links":14},"Feature Requests","/community/contribution/feature-requests","community/2.contribution/3.feature-requests","How to add feature requests, and our process for reviewing them.",{"title":270,"path":271,"stem":272,"description":273,"icon":14,"links":14},"Pull Requests","/community/contribution/pull-requests","community/2.contribution/4.pull-requests","Our process for contributing pull requests to Directus.",{"title":275,"path":276,"stem":277,"children":278,"page":89},"Codebase","/community/codebase","community/3.codebase",[279,283,288],{"title":275,"path":280,"stem":281,"description":282,"icon":14,"links":14},"/community/codebase/overview","community/3.codebase/1.overview","Overview of the Directus codebase for new contributors",{"title":284,"path":285,"stem":286,"description":287,"icon":14,"links":14},"Development Environment","/community/codebase/dev-environment","community/3.codebase/2.dev-environment","How to set up and run a development environment for Directus so that you can work on the platform's source code.",{"title":289,"path":290,"stem":291,"description":292,"icon":14,"links":14},"Testing","/community/codebase/testing","community/3.codebase/3.testing","How to run unit and blackbox tests in the Directus codebase.",{"title":294,"path":295,"stem":296,"children":297,"page":89},"Reporting And Support","/community/reporting-and-support","community/4.reporting-and-support",[298,303,308,313],{"title":299,"path":300,"stem":301,"description":302,"icon":14,"links":14},"Troubleshooting Steps","/community/reporting-and-support/troubleshooting-steps","community/4.reporting-and-support/1.troubleshooting-steps","If you're experiencing issues or think you have found a problem in Directus, be sure to follow these steps.",{"title":304,"path":305,"stem":306,"description":307,"icon":14,"links":14},"Bug Reporting","/community/reporting-and-support/bug-reporting","community/4.reporting-and-support/2.bug-reporting","How to report bugs in Directus.",{"title":309,"path":310,"stem":311,"description":312,"icon":14,"links":14},"Security Reporting","/community/reporting-and-support/security-reporting","community/4.reporting-and-support/3.security-reporting","How to report security issues in Directus.",{"title":314,"path":315,"stem":316,"description":317,"icon":14,"links":14},"Customer Support","/community/reporting-and-support/customer-support","community/4.reporting-and-support/4.customer-support","How to get help with Directus as a user and customer.",{"title":319,"path":320,"stem":321,"children":322,"page":89},"Programs","/community/programs","community/5.programs",[323,328],{"title":324,"path":325,"stem":326,"description":327,"icon":14,"links":14},"Guest Authors","/community/programs/guest-authors","community/5.programs/1.guest-authors","Our guest author program invites authors to join and get paid to write tutorials for the Directus community.",{"title":329,"path":330,"stem":331,"description":332,"icon":14,"links":14},"Directus Labs","/community/programs/directus-labs","community/5.programs/2.directus-labs","Directus Labs is the official organization for Directus templates, settings and experimental projects.",{"title":175,"path":334,"stem":335,"children":336,"page":89},"/configuration","configuration",[337,341,346,351,356,361,366,371,376,381,386,391,396,401,406,410,415,420,425],{"title":130,"path":338,"stem":339,"description":340,"icon":14,"links":14},"/configuration/intro","configuration/0.intro","Environment variables are used for all configuration within a Directus project. These variables can be defined in a number of ways, which we cover below.",{"title":342,"path":343,"stem":344,"description":345,"icon":14,"links":14},"General","/configuration/general","configuration/1.general","Configuration for the general system, server, first admin user, and telemetry.",{"title":347,"path":348,"stem":349,"description":350,"icon":14,"links":14},"AI","/configuration/ai","configuration/ai","Configuration for AI Assistant and Model Context Protocol (MCP) features.",{"title":352,"path":353,"stem":354,"description":355,"icon":14,"links":14},"Auth & SSO","/configuration/auth-sso","configuration/auth-sso","Configuration for authentication methods, including local email/password, OAuth 2.0, OpenID, LDAP, and SAML.",{"title":357,"path":358,"stem":359,"description":360,"icon":14,"links":14},"Cache","/configuration/cache","configuration/cache","Configuration for internal and output caching.",{"title":362,"path":363,"stem":364,"description":365,"icon":14,"links":14},"Database","/configuration/database","configuration/database","Configuration for database connections.",{"title":367,"path":368,"stem":369,"description":370,"icon":14,"links":14},"Email","/configuration/email","configuration/email","Configuration for email settings and templates.",{"title":372,"path":373,"stem":374,"description":375,"icon":14,"links":14},"Extensions","/configuration/extensions","configuration/extensions","Configuration for extensions and the Directus Marketplace.",{"title":377,"path":378,"stem":379,"description":380,"icon":14,"links":14},"Files","/configuration/files","configuration/files","Configuration for storage locations, metadata, upload limits, and transformations.",{"title":382,"path":383,"stem":384,"description":385,"icon":14,"links":14},"Flows","/configuration/flows","configuration/flows","Configure environment variables, memory, and timeout for Flows.",{"title":387,"path":388,"stem":389,"description":390,"icon":14,"links":14},"Logging","/configuration/logging","configuration/logging","Configuration for general and Realtime logging.",{"title":392,"path":393,"stem":394,"description":395,"icon":14,"links":14},"Metrics","/configuration/metrics","configuration/metrics","Configuration for metrics.",{"title":397,"path":398,"stem":399,"description":400,"icon":14,"links":14},"Migrations","/configuration/migrations","configuration/migrations","Creation of custom migration files to automate database changes.",{"title":402,"path":403,"stem":404,"description":405,"icon":14,"links":14},"PM2","/configuration/pm2","configuration/pm2","Configuration for PM2, the process manager for Directus.",{"title":86,"path":407,"stem":408,"description":409,"icon":14,"links":14},"/configuration/realtime","configuration/realtime","Configuration for WebSockets and GraphQL Subscriptions.",{"title":411,"path":412,"stem":413,"description":414,"icon":14,"links":14},"Security & Limits","/configuration/security-limits","configuration/security-limits","Configuration for access tokens, cookies, CSP, hashing, CORS, rate limiting, and request limits.",{"title":416,"path":417,"stem":418,"description":419,"icon":14,"links":14},"Synchronization","/configuration/synchronization","configuration/synchronization","Configuration around synchronization and Redis.",{"title":421,"path":422,"stem":423,"description":424,"icon":14,"links":14},"Theming","/configuration/theming","configuration/theming","Configuration of the Data Studio's theming engine and appearance settings.",{"title":255,"path":426,"stem":427,"description":428,"icon":14,"links":14},"/configuration/translations","configuration/translations","Directus supports translations for both the Data Studio UI and authored content.",{"title":125,"description":14,"icon":14,"links":14,"path":430,"stem":431,"children":432,"page":89},"/getting-started","getting-started",[433,437,442,446,451,456,461,466,471,476],{"title":230,"path":434,"stem":435,"description":436,"icon":14,"links":14},"/getting-started/overview","getting-started/1.overview","Learn about the Directus Data Engine and Studio, when to use it, and a how it works.",{"title":438,"path":439,"stem":440,"description":441,"icon":14,"links":14},"Accessibility","/getting-started/accessibility","getting-started/10.accessibility","We are always looking for ways to make Directus Studio more accessible. Here are some of the methods we currently support.",{"title":150,"path":443,"stem":444,"description":445,"icon":14,"links":14},"/getting-started/create-a-project","getting-started/2.create-a-project","Learn about how to create a managed Directus project or self-host with Docker.",{"title":447,"path":448,"stem":449,"description":450,"icon":14,"links":14,"label":447},"Configure a Data Model","/getting-started/data-model","getting-started/3.data-model","This guide will cover creating a collection in Directus via the Data Studio, creating fields, and configuring relationships.",{"title":452,"path":453,"stem":454,"description":455,"icon":14,"links":14},"Use the API","/getting-started/use-the-api","getting-started/4.use-the-api","Get started with Directus APIs. Learn to interact with collections, fetch, and create data.",{"title":457,"path":458,"stem":459,"description":460,"icon":14,"links":14},"Authenticate a User","/getting-started/authenticate-user","getting-started/5.authenticate-user","Get started with Directus Auth. Learn how to register, login, create users, and make authenticated requests.",{"title":462,"path":463,"stem":464,"description":465,"icon":14,"links":14},"Upload & Access Files","/getting-started/upload-files","getting-started/6.upload-files","This guide will cover importing a file via URL, requesting assets, and using transformation parameters.",{"title":467,"path":468,"stem":469,"description":470,"icon":14,"links":14},"Create an Automation","/getting-started/create-an-automation","getting-started/7.create-an-automation","Get started using flows, triggers, operations and the data chain in Directus Automate.",{"title":472,"path":473,"stem":474,"description":475,"icon":14,"links":14},"Connect to Realtime Data","/getting-started/connect-to-realtime","getting-started/8.connect-to-realtime","This guide will cover connecting to Directus via WebSockets on the web, subscribing to changes, and creating new items over the connection.",{"title":477,"path":478,"stem":479,"description":480,"icon":14,"links":14},"Resources & Links","/getting-started/resources","getting-started/9.resources","Key links across the Directus ecosystem.",{"title":482,"path":483,"stem":484,"children":485,"page":89},"Guides","/guides","guides",[486,512,595,642,677,707,732,756,771,886,899,988],{"title":487,"description":14,"icon":488,"links":14,"path":489,"stem":490,"children":491,"page":89},"Data Model","directus-explore","/guides/data-model","guides/01.data-model",[492,497,502,507],{"title":493,"path":494,"stem":495,"description":496,"icon":14,"links":14},"Collections","/guides/data-model/collections","guides/01.data-model/1.collections","Directus collections help you manage your data. Create custom collections, define fields, configure relationships, and leverage features like content versioning and access control. Learn how to create, configure, and manage collections in Directus.",{"title":498,"path":499,"stem":500,"description":501,"icon":14,"links":14},"Fields","/guides/data-model/fields","guides/01.data-model/2.fields","Directus fields let you define how your data is stored and displayed. Learn about creating fields, data types, interfaces, validations, relationships, and more. Discover how to configure fields to perfectly suit your data modeling needs in Directus.",{"title":503,"path":504,"stem":505,"description":506,"icon":14,"links":14},"Interfaces","/guides/data-model/interfaces","guides/01.data-model/3.interfaces","Manage your data effectively with Directus fields. Discover various field types, interfaces, validations, and relationships to perfectly suit your data modeling needs.",{"title":508,"path":509,"stem":510,"description":511,"icon":14,"links":14},"Relationships","/guides/data-model/relationships","guides/01.data-model/4.relationships","Leverage Directus relationships to create powerful data connections. Explore Many to One, One to Many, Many to Many, and Many to Any relationships, along with Translations for multilingual content management.",{"title":513,"description":14,"icon":514,"links":14,"path":515,"stem":516,"children":517,"page":89},"Content","directus-editor","/guides/content","guides/02.content",[518,523,528,533,538,543,548,552,574],{"title":519,"path":520,"stem":521,"description":522,"icon":14,"links":14},"Collection Explorer","/guides/content/explore","guides/02.content/1.explore","Learn to filter, layout, batch edit and more with collections in the collection explorer.",{"title":524,"path":525,"stem":526,"description":527,"icon":14,"links":14},"Item Editor","/guides/content/editor","guides/02.content/2.editor","Learn to create, duplicate, archive and perform other actions with items using Directus.",{"title":529,"path":530,"stem":531,"description":532,"icon":14,"links":14},"Layouts","/guides/content/layouts","guides/02.content/3.layouts","Learn to use layouts for viewing and interacting with items in a collection using Directus.",{"title":534,"path":535,"stem":536,"description":537,"icon":14,"links":14},"Import & Export","/guides/content/import-export","guides/02.content/4.import-export","Learn to import and export multiple items stored as files using Directus.",{"title":539,"path":540,"stem":541,"description":542,"icon":14,"links":14},"Live Preview","/guides/content/live-preview","guides/02.content/5.live-preview","Learn to set up your project for live previewing items from your application.",{"title":544,"path":545,"stem":546,"description":547,"icon":14,"links":14},"Content Versioning","/guides/content/content-versioning","guides/02.content/6.content-versioning","This guide covers the process of enabling and utilizing Content Versioning in Directus.",{"title":255,"path":549,"stem":550,"description":551,"icon":14,"links":14},"/guides/content/translations","guides/02.content/7.translations","Both content and the data studio can be translated into multiple languages.",{"title":553,"path":554,"stem":555,"children":556,"description":558,"icon":14,"links":14},"Visual Editor","/guides/content/visual-editor","guides/02.content/8.visual-editor/0.index",[557,559,564,569],{"title":553,"path":554,"stem":555,"description":558,"icon":14,"links":14},"The Directus visual editor module allows you to visually edit the content of your website directly in-place.",{"title":560,"path":561,"stem":562,"description":563,"icon":14,"links":14},"Frontend Library","/guides/content/visual-editor/frontend-library","guides/02.content/8.visual-editor/1.frontend-library","A library that allows your website to communicate with your Directus project and enables Visual Editing.",{"title":565,"path":566,"stem":567,"description":568,"icon":14,"links":14},"Studio Module","/guides/content/visual-editor/studio-module","guides/02.content/8.visual-editor/2.studio-module","Learn how to edit your website's content in place from within the Directus Studio.",{"title":570,"path":571,"stem":572,"description":573,"icon":14,"links":14},"Customization","/guides/content/visual-editor/customization","guides/02.content/8.visual-editor/3.customization","Customize the styling of your Visual Editing experience to suit your brand or website theming.",{"title":575,"path":576,"stem":577,"children":578,"description":580,"icon":14,"links":14},"Collaborative Editing","/guides/content/collaborative-editing","guides/02.content/9.collaborative-editing/0.index",[579,581,585,590],{"title":575,"path":576,"stem":577,"description":580,"icon":14,"links":14},"Directus Collaborative Editing enables real-time data synchronization and collaborative editing across collections, allowing multiple users to edit content simultaneously without conflicts.",{"title":175,"path":582,"stem":583,"description":584,"icon":14,"links":14},"/guides/content/collaborative-editing/configuration","guides/02.content/9.collaborative-editing/1.configuration","Learn how to configure Collaborative Editing in your Directus project.",{"title":586,"path":587,"stem":588,"description":589,"icon":14,"links":14},"Usage Guide","/guides/content/collaborative-editing/usage","guides/02.content/9.collaborative-editing/2.usage","Learn how to use Collaborative Editing for real-time collaboration on content in your Directus project.",{"title":591,"path":592,"stem":593,"description":594,"icon":14,"links":14},"Development & Custom Extensions","/guides/content/collaborative-editing/development","guides/02.content/9.collaborative-editing/3.development","Learn how Custom Interfaces integrate with Collaborative Editing in Directus.",{"title":74,"description":14,"icon":596,"links":14,"path":597,"stem":598,"children":599,"page":89},"directus-auth","/guides/auth","guides/03.auth",[600,605,610,615,620,625,630],{"title":601,"path":602,"stem":603,"description":604,"icon":14,"links":14},"Access Tokens","/guides/auth/tokens-cookies","guides/03.auth/1.tokens-cookies","Learn how to authenticate requests & explore standard, session, and static token types.",{"title":606,"path":607,"stem":608,"description":609,"icon":14,"links":14},"Access Control","/guides/auth/access-control","guides/03.auth/2.access-control","Manage user and role permissions and policies for interacting with data in Directus.",{"title":611,"path":612,"stem":613,"description":614,"icon":14,"links":14},"Creating Users","/guides/auth/creating-users","guides/03.auth/3.creating-users","Learn about creating users in directus, including API creation, inviting users, and seamless invites.",{"title":616,"path":617,"stem":618,"description":619,"icon":14,"links":14},"Email Login","/guides/auth/email-login","guides/03.auth/4.email-login","Learn about user registration, login with standard/session tokens, refresh, logout, and resetting passwords.",{"title":621,"path":622,"stem":623,"description":624,"icon":14,"links":14},"Two-Factor Auth","/guides/auth/2fa","guides/03.auth/5.2fa","Secure your logins with one-time codes! Learn how to generate secrets, enable/disable 2FA.",{"title":626,"path":627,"stem":628,"description":629,"icon":14,"links":14},"Accountability","/guides/auth/accountability","guides/03.auth/6.accountability","Learn to audit user activity and enforce accountability using the activity feed.",{"title":631,"path":632,"stem":633,"children":634,"description":636,"icon":14,"links":14},"Single Sign-On","/guides/auth/sso","guides/03.auth/7.sso/1.index",[635,637],{"title":631,"path":632,"stem":633,"description":636,"icon":14,"links":14},"Single Sign-On is a mechanism which allows to use external providers to login into systems.",{"title":638,"path":639,"stem":640,"description":641,"icon":14,"links":14},"Seamless SSO","/guides/auth/sso/seamless","guides/03.auth/7.sso/2.seamless","Seamless SSO is a setup to allow logging in without the user ever seeing Directus' login page.",{"title":643,"description":14,"icon":644,"links":14,"path":645,"stem":646,"children":647,"page":89},"Connect","directus-connect","/guides/connect","guides/04.connect",[648,652,657,662,667,672],{"title":16,"path":649,"stem":650,"description":651,"icon":14,"links":14},"/guides/connect/authentication","guides/04.connect/1.authentication","Discover how to authenticate Directus Connect requests using authorization headers, session cookies, or query parameters.",{"title":653,"path":654,"stem":655,"description":656,"icon":14,"links":14},"Filter Rules","/guides/connect/filter-rules","guides/04.connect/2.filter-rules","Learn about filter rules in Directus - available operators, filter syntax, relational fields, dynamic variables, logical operators, and functions parameters. Understand how to build complex filters for permissions, validations, and automations.",{"title":658,"path":659,"stem":660,"description":661,"icon":14,"links":14},"Query Parameters","/guides/connect/query-parameters","guides/04.connect/3.query-parameters","Learn about Directus query parameters - fields, filter, search, sort, limit, offset, page, aggregate, groupBy, deep, alias, and export. Understand how to customize your API requests and retrieve specific data from your collections.",{"title":663,"path":664,"stem":665,"description":666,"icon":14,"links":14},"Relational Data","/guides/connect/relations","guides/04.connect/4.relations","Directus enables you to manage and interact with relational data. This section will guide you through the different types of relationships and how to work with them.",{"title":668,"path":669,"stem":670,"description":671,"icon":14,"links":14},"Error Codes","/guides/connect/errors","guides/04.connect/5.errors","Learn about Directus error codes - understand what each code means, from validation failures to rate limits exceeded. Troubleshoot issues with your API requests and resolve errors efficiently.",{"title":673,"path":674,"stem":675,"description":676,"icon":14,"links":14},"Directus SDK","/guides/connect/sdk","guides/04.connect/6.sdk","A JavaScript and TypeScript library that simplifies working with Directus.",{"title":377,"description":14,"icon":678,"links":14,"path":679,"stem":680,"children":681,"page":89},"directus-files","/guides/files","guides/05.files",[682,687,692,697,702],{"title":683,"path":684,"stem":685,"description":686,"icon":14,"links":14},"Upload Files","/guides/files/upload","guides/05.files/1.upload","Learn to upload files to Directus via both the data studio or API.",{"title":688,"path":689,"stem":690,"description":691,"icon":14,"links":14},"Download Files","/guides/files/download","guides/05.files/2.download","Learn to download content from the File Library",{"title":693,"path":694,"stem":695,"description":696,"icon":14,"links":14},"Manage Files","/guides/files/manage","guides/05.files/3.manage","Learn to view, modify, edit and set files' focal points.",{"title":698,"path":699,"stem":700,"description":701,"icon":14,"links":14},"Access Files","/guides/files/access","guides/05.files/4.access","Learn how to access uploaded files, authenticate, provide optional filenames and directly download them.",{"title":703,"path":704,"stem":705,"description":706,"icon":14,"links":14},"Transform Files","/guides/files/transform","guides/05.files/5.transform","Learn how to transform files and set custom presets for these transformations.",{"title":708,"description":14,"icon":709,"links":14,"path":710,"stem":711,"children":712,"page":89},"Automate","directus-automate","/guides/automate","guides/06.automate",[713,717,722,727],{"title":382,"path":714,"stem":715,"description":716,"icon":14,"links":14},"/guides/automate/flows","guides/06.automate/1.flows","Flows enable custom, event-driven data processing and task automation within Directus.",{"title":718,"path":719,"stem":720,"description":721,"icon":14,"links":14},"Data Chain","/guides/automate/data-chain","guides/06.automate/2.data-chain","Data chains are created by each flow and hold information that can be accessed within different operations.",{"title":723,"path":724,"stem":725,"description":726,"icon":14,"links":14},"Triggers","/guides/automate/triggers","guides/06.automate/3.triggers","Triggers define the action or events that start flows.",{"title":728,"path":729,"stem":730,"description":731,"icon":14,"links":14},"Operations","/guides/automate/operations","guides/06.automate/4.operations","Operations are individual customizable actions in a flow.",{"title":86,"description":14,"icon":733,"links":14,"path":734,"stem":735,"children":736,"page":89},"directus-realtime","/guides/realtime","guides/07.realtime",[737,741,746,751],{"title":16,"path":738,"stem":739,"description":740,"icon":14,"links":14},"/guides/realtime/authentication","guides/07.realtime/1.authentication","Learn to implement the three authentication modes.",{"title":742,"path":743,"stem":744,"description":745,"icon":14,"links":14},"Subscriptions","/guides/realtime/subscriptions","guides/07.realtime/2.subscriptions","Learn to manage realtime subscriptions with both websockets and GraphQL.",{"title":747,"path":748,"stem":749,"description":750,"icon":14,"links":14},"Actions","/guides/realtime/actions","guides/07.realtime/3.actions","Learn to execute CRUD actions via websockets.",{"title":752,"path":753,"stem":754,"description":755,"icon":14,"links":14},"Custom WebSocket Handlers","/guides/realtime/custom-handlers","guides/07.realtime/4.custom-handlers","Build custom WebSocket message handlers, push messages to connected clients, and react to WebSocket events using hook extensions.",{"title":757,"description":14,"icon":758,"links":14,"path":759,"stem":760,"children":761,"page":89},"Insights","directus-insights","/guides/insights","guides/08.insights",[762,766],{"title":230,"path":763,"stem":764,"description":765,"icon":14,"links":14},"/guides/insights/overview","guides/08.insights/1.overview","Insights is a module in Directus that allows rapid, no-code build-out of analytics dashboards.",{"title":767,"path":768,"stem":769,"description":770,"icon":14,"links":14},"Panels","/guides/insights/panels","guides/08.insights/2.panels","Panels are the building-blocks you can add onto insights dashboards to create, save and display data analytics.",{"title":372,"description":14,"icon":772,"links":14,"path":773,"stem":774,"children":775,"page":89},"directus-marketplace","/guides/extensions","guides/09.extensions",[776,780,785,817,864,869,881],{"title":230,"path":777,"stem":778,"description":779,"icon":14,"links":14},"/guides/extensions/overview","guides/09.extensions/0.overview","Extensions are used to extend the functionality of Directus.",{"title":781,"path":782,"stem":783,"description":784,"icon":14,"links":14},"Quickstart","/guides/extensions/quickstart","guides/09.extensions/1.quickstart","This guide will cover how to get started with developing an extension for Directus.",{"title":786,"path":787,"stem":788,"children":789,"description":791,"icon":14,"links":14},"API Extensions","/guides/extensions/api-extensions","guides/09.extensions/2.api-extensions/0.index",[790,792,797,802,807,812],{"title":786,"path":787,"stem":788,"description":791,"icon":14,"links":14},"API Extensions extend the functionality of the API.",{"title":793,"path":794,"stem":795,"description":796,"icon":14,"links":14},"Event Hooks","/guides/extensions/api-extensions/hooks","guides/09.extensions/2.api-extensions/1.hooks","Hooks allow running code when during the Directus lifecycle or database events.",{"title":798,"path":799,"stem":800,"description":801,"icon":14,"links":14},"API Endpoints","/guides/extensions/api-extensions/endpoints","guides/09.extensions/2.api-extensions/2.endpoints","Endpoints allow you to register new API routes in your Directus project.",{"title":803,"path":804,"stem":805,"description":806,"icon":14,"links":14},"Flow Operations","/guides/extensions/api-extensions/operations","guides/09.extensions/2.api-extensions/3.operations","Operations are single steps in a Flow - the no-code automation tool part of Directus Automate.",{"title":808,"path":809,"stem":810,"description":811,"icon":14,"links":14},"Services","/guides/extensions/api-extensions/services","guides/09.extensions/2.api-extensions/4.services","When building extensions, you may use internal Directus services directly.",{"title":813,"path":814,"stem":815,"description":816,"icon":14,"links":14},"Sandbox","/guides/extensions/api-extensions/sandbox","guides/09.extensions/2.api-extensions/5.sandbox","Sandboxed Extensions run in an isolated environment and must request permission scopes.",{"title":818,"path":819,"stem":820,"children":821,"description":823,"icon":14,"links":14},"App Extensions","/guides/extensions/app-extensions","guides/09.extensions/3.app-extensions/0.index",[822,824,829,834,839,844,849,854,859],{"title":818,"path":819,"stem":820,"description":823,"icon":14,"links":14},"App Extensions extend the functionality of the Data Studio.",{"title":825,"path":826,"stem":827,"description":828,"icon":14,"links":14},"Editor Interfaces","/guides/extensions/app-extensions/interfaces","guides/09.extensions/3.app-extensions/1.interfaces","Interfaces are form inputs used primarily inside of the Directus Editor.",{"title":830,"path":831,"stem":832,"description":833,"icon":14,"links":14},"Inline Displays","/guides/extensions/app-extensions/displays","guides/09.extensions/3.app-extensions/2.displays","Displays are used to display a single value throughout the Data Studio.",{"title":835,"path":836,"stem":837,"description":838,"icon":14,"links":14},"Explore Layouts","/guides/extensions/app-extensions/layouts","guides/09.extensions/3.app-extensions/3.layouts","Layouts are used to display a list of items in Explore pages in different ways.",{"title":840,"path":841,"stem":842,"description":843,"icon":14,"links":14},"Dashboard Panels","/guides/extensions/app-extensions/panels","guides/09.extensions/3.app-extensions/4.panels","Panels are customizable components within Directus Insights dashboards.",{"title":845,"path":846,"stem":847,"description":848,"icon":14,"links":14},"Custom Modules","/guides/extensions/app-extensions/modules","guides/09.extensions/3.app-extensions/5.modules","Modules are top-level areas of the Data Studio, navigated to from the left-hand module bar.",{"title":850,"path":851,"stem":852,"description":853,"icon":14,"links":14},"Custom Themes","/guides/extensions/app-extensions/themes","guides/09.extensions/3.app-extensions/6.themes","Themes are used to style elements of the Data Studio including colors and fonts.",{"title":855,"path":856,"stem":857,"description":858,"icon":14,"links":14},"UI Library","/guides/extensions/app-extensions/ui-library","guides/09.extensions/3.app-extensions/7.ui-library","Directus offers globally-registered UI components for building extensions.",{"title":860,"path":861,"stem":862,"description":863,"icon":14,"links":14},"Composables","/guides/extensions/app-extensions/composables","guides/09.extensions/3.app-extensions/8.composables","Vue composables for working with Directus services when building extensions.",{"title":865,"path":866,"stem":867,"description":868,"icon":14,"links":14},"Bundling Extensions","/guides/extensions/bundles","guides/09.extensions/4.bundles","Bundles are a way to group extensions together as a single distributable package.",{"title":870,"path":871,"stem":872,"children":873,"description":875,"icon":14,"links":14},"Marketplace Beta","/guides/extensions/marketplace","guides/09.extensions/5.marketplace/0.index",[874,876],{"title":870,"path":871,"stem":872,"description":875,"icon":14,"links":14},"The Directus Marketplace provides a way for users to install extensions in their projects directly the Data Studio.",{"title":877,"path":878,"stem":879,"description":880,"icon":14,"links":14},"Publishing Extensions","/guides/extensions/marketplace/publishing","guides/09.extensions/5.marketplace/1.publishing","Publish extensions to the Directus Marketplace via npm, including required metadata, best practices, and author profile setup.",{"title":882,"path":883,"stem":884,"description":885,"icon":14,"links":14},"CLI","/guides/extensions/cli","guides/09.extensions/6.cli","Using the create-directus-extension to build, validate and manage extensions.",{"title":887,"path":888,"stem":889,"children":890,"description":14,"icon":898,"links":14},"Deployments","/guides/deployments","guides/10.deployments/0.index",[891,893],{"title":230,"path":888,"stem":889,"description":892,"icon":14,"links":14},"Trigger, monitor, and manage frontend deployments directly from Directus.",{"title":894,"path":895,"stem":896,"description":897,"icon":14,"links":14},"Security","/guides/deployments/security","guides/10.deployments/1.security","Access control, permissions, and credential protection for the Deployment module.","directus-deployments",{"title":347,"path":900,"stem":901,"children":902,"description":14,"icon":987,"links":14},"/guides/ai","guides/11.ai/0.index",[903,906,937],{"title":904,"path":900,"stem":901,"description":905,"icon":14,"links":14},"AI + Directus","Use AI to interact with Directus - either through the built-in AI Assistant or by connecting external AI tools via MCP.",{"title":907,"path":908,"stem":909,"children":910,"description":14,"icon":14,"links":14},"AI Assistant","/guides/ai/assistant","guides/11.ai/1.assistant/0.index",[911,913,918,923,928,933],{"title":230,"path":908,"stem":909,"description":912,"icon":14,"links":14},"Chat with an AI assistant directly inside Directus. Create content, manage your schema, trigger automations, and explore your data through natural conversation.",{"title":914,"path":915,"stem":916,"description":917,"icon":14,"links":14},"Setup","/guides/ai/assistant/setup","guides/11.ai/1.assistant/1.setup","Configure AI Assistant by adding your AI provider API keys and customizing assistant behavior.",{"title":919,"path":920,"stem":921,"description":922,"icon":14,"links":14},"Usage","/guides/ai/assistant/usage","guides/11.ai/1.assistant/2.usage","Learn how to use AI Assistant to interact with your Directus instance through natural conversation.",{"title":924,"path":925,"stem":926,"description":927,"icon":14,"links":14},"Tools","/guides/ai/assistant/tools","guides/11.ai/1.assistant/3.tools","Reference of all tools available to AI Assistant for interacting with your Directus instance.",{"title":929,"path":930,"stem":931,"description":932,"icon":14,"links":14},"Best Practices","/guides/ai/assistant/tips","guides/11.ai/1.assistant/4.tips","Get the most out of AI Assistant with practical tips, example prompts, and common pitfalls to avoid.",{"title":894,"path":934,"stem":935,"description":936,"icon":14,"links":14},"/guides/ai/assistant/security","guides/11.ai/1.assistant/5.security","Security considerations for using AI Assistant safely with your Directus data.",{"title":938,"path":939,"stem":940,"children":941,"description":14,"icon":14,"links":14},"MCP Server","/guides/ai/mcp","guides/11.ai/2.mcp/0.index",[942,944,949,954,958,963,968,972],{"title":230,"path":939,"stem":940,"description":943,"icon":14,"links":14},"Connect AI assistants directly to your Directus instance. Let Claude, ChatGPT, and other AI tools manage your content without manual copy-pasting.",{"title":945,"path":946,"stem":947,"description":948,"icon":14,"links":14},"Installation","/guides/ai/mcp/installation","guides/11.ai/2.mcp/1.installation","Set up the Directus MCP server and connect your AI tools in under 5 minutes.",{"title":950,"path":951,"stem":952,"description":953,"icon":14,"links":14},"Use Cases","/guides/ai/mcp/use-cases","guides/11.ai/2.mcp/2.use-cases","Real examples of how to use AI with your Directus content to save time and reduce repetitive work.",{"title":924,"path":955,"stem":956,"description":957,"icon":14,"links":14},"/guides/ai/mcp/tools","guides/11.ai/2.mcp/3.tools","Learn about the tools available in the Directus remote MCP server and how they enable AI-powered content management.",{"title":959,"path":960,"stem":961,"description":962,"icon":14,"links":14},"Prompts","/guides/ai/mcp/prompts","guides/11.ai/2.mcp/4.prompts","Learn how to configure and use stored prompts with the Directus MCP Server.",{"title":964,"path":965,"stem":966,"description":967,"icon":14,"links":14},"Troubleshooting","/guides/ai/mcp/troubleshooting","guides/11.ai/2.mcp/5.troubleshooting","Common issues and solutions when setting up and using the Directus MCP server.",{"title":894,"path":969,"stem":970,"description":971,"icon":14,"links":14},"/guides/ai/mcp/security","guides/11.ai/2.mcp/6.security","Practical security guidelines for using the Directus MCP server safely and protecting your data.",{"title":973,"path":974,"stem":975,"children":976,"description":14,"icon":14,"links":14},"Local MCP","/guides/ai/mcp/local-mcp","guides/11.ai/2.mcp/7.local-mcp/0.index",[977,979,983],{"title":945,"path":974,"stem":975,"description":978,"icon":14,"links":14},"The Directus Content MCP Server allows you to interact with your Directus data through AI tools using the Model Context Protocol.",{"title":924,"path":980,"stem":981,"description":982,"icon":14,"links":14},"/guides/ai/mcp/local-mcp/tools","guides/11.ai/2.mcp/7.local-mcp/1.tools","Learn about the tools available in the local Directus Content MCP Server and how to configure them.",{"title":959,"path":984,"stem":985,"description":986,"icon":14,"links":14},"/guides/ai/mcp/local-mcp/prompts","guides/11.ai/2.mcp/7.local-mcp/2.prompts","Configure stored prompts with the local MCP server using environment variables and manual collection setup.","directus-ai",{"title":989,"description":14,"icon":990,"links":14,"path":991,"stem":992,"children":993},"Integrations","directus-integrations","/guides/integrations","guides/12.integrations/index",[994,996,1003,1024,1046,1065,1076],{"title":989,"path":991,"stem":992,"description":995,"icon":14,"links":14},"Connect Directus with third-party tools and services to extend functionality and automate workflows.",{"title":997,"path":998,"stem":999,"children":1000,"description":14,"icon":14,"links":14},"Framer","/guides/integrations/framer","guides/11.integrations/6.framer/0.index",[1001],{"title":997,"path":998,"stem":999,"description":1002,"icon":14,"links":14},"Connect your Directus collections to Framer's CMS to sync content in both directions using the Directus Framer plugin.",{"title":1004,"path":1005,"stem":1006,"children":1007,"description":14,"icon":14,"links":14},"n8n","/guides/integrations/n8n","guides/12.integrations/1.n8n/0.index",[1008,1011,1015,1020],{"title":1009,"path":1005,"stem":1006,"description":1010,"icon":14,"links":14},"Integration","Connect Directus with n8n to automate workflows, sync data, and integrate your CMS with other services using the Directus community node.",{"title":747,"path":1012,"stem":1013,"description":1014,"icon":14,"links":14},"/guides/integrations/n8n/directus-n8n-actions","guides/12.integrations/1.n8n/directus-n8n-actions","Complete guide for using Directus actions in n8n workflows, including working with items, users, and files.",{"title":1016,"path":1017,"stem":1018,"description":1019,"icon":14,"links":14},"Advanced","/guides/integrations/n8n/directus-n8n-advanced","guides/12.integrations/1.n8n/directus-n8n-advanced","Advanced guide for using Directus raw CRUD operations in n8n, including raw JSON operations, complex filters, relational queries, and query parameters.",{"title":723,"path":1021,"stem":1022,"description":1023,"icon":14,"links":14},"/guides/integrations/n8n/directus-n8n-triggers","guides/12.integrations/1.n8n/directus-n8n-triggers","Complete guide for using Directus triggers in n8n workflows to automate workflows when events happen in Directus.",{"title":1025,"path":1026,"stem":1027,"children":1028,"description":14,"icon":14,"links":14},"Clay","/guides/integrations/clay","guides/12.integrations/2.clay/0.index",[1029,1031,1036,1041],{"title":1009,"path":1026,"stem":1027,"description":1030,"icon":14,"links":14},"Connect Directus with Clay to automate data enrichment and sync content between platforms using webhooks and HTTP API templates.",{"title":1032,"path":1033,"stem":1034,"description":1035,"icon":14,"links":14},"Data Operations","/guides/integrations/clay/directus-clay-data-operations","guides/12.integrations/2.clay/directus-clay-data-operations","Advanced techniques for working with Directus data in Clay, including filters, pagination, common use cases, and best practices.",{"title":1037,"path":1038,"stem":1039,"description":1040,"icon":14,"links":14},"Templates","/guides/integrations/clay/use-clay-templates-with-directus","guides/12.integrations/2.clay/use-clay-templates-with-directus","Learn how to use Clay's pre-built HTTP API templates to connect with Directus for data enrichment and synchronization.",{"title":1042,"path":1043,"stem":1044,"description":1045,"icon":14,"links":14},"Webhooks","/guides/integrations/clay/use-directus-webhooks-with-clay","guides/12.integrations/2.clay/use-directus-webhooks-with-clay","Learn how to set up Directus Flows to automatically send data to Clay webhooks for real-time data synchronization.",{"title":1047,"path":1048,"stem":1049,"children":1050,"description":14,"icon":14,"links":14},"Zapier","/guides/integrations/zapier","guides/12.integrations/3.zapier/0.index",[1051,1053,1057,1061],{"title":1009,"path":1048,"stem":1049,"description":1052,"icon":14,"links":14},"Connect Directus with Zapier to automate workflows, sync data, and integrate your CMS with thousands of other apps using the Directus Zapier integration.",{"title":747,"path":1054,"stem":1055,"description":1056,"icon":14,"links":14},"/guides/integrations/zapier/actions","guides/12.integrations/3.zapier/actions","Complete guide for using Directus actions in Zapier workflows, including working with items, users, and files.",{"title":1016,"path":1058,"stem":1059,"description":1060,"icon":14,"links":14},"/guides/integrations/zapier/advanced","guides/12.integrations/3.zapier/advanced","Advanced guide for using Directus API features in Zapier, including raw request actions, advanced filtering, and custom API calls.",{"title":723,"path":1062,"stem":1063,"description":1064,"icon":14,"links":14},"/guides/integrations/zapier/triggers","guides/12.integrations/3.zapier/triggers","Complete guide for using Directus triggers in Zapier workflows to automatically start Zaps when events happen in Directus.",{"title":1066,"path":1067,"stem":1068,"children":1069,"description":14,"icon":14,"links":14},"Vercel","/guides/integrations/vercel","guides/12.integrations/4.vercel/0.index",[1070,1072],{"title":1066,"path":1067,"stem":1068,"description":1071,"icon":14,"links":14},"Connect Directus with Vercel to trigger deployments, monitor build status, and manage your frontend projects directly from your Directus instance.",{"title":887,"path":1073,"stem":1074,"description":1075,"icon":14,"links":14},"/guides/integrations/vercel/deployments","guides/12.integrations/4.vercel/deployments","Complete guide for triggering deployments, monitoring build status, and viewing logs for your Vercel projects from Directus.",{"title":1077,"path":1078,"stem":1079,"children":1080,"description":14,"icon":14,"links":14},"Netlify","/guides/integrations/netlify","guides/12.integrations/5.netlify/0.index",[1081,1083],{"title":1077,"path":1078,"stem":1079,"description":1082,"icon":14,"links":14},"Integrate Directus with Netlify to deploy your sites, track build progress, and manage frontend projects from within your Directus instance.",{"title":887,"path":1084,"stem":1085,"description":1086,"icon":14,"links":14},"/guides/integrations/netlify/deployments","guides/12.integrations/5.netlify/deployments","Full guide for triggering builds, tracking deployment progress, and viewing logs for your Netlify sites from Directus.",{"title":230,"path":1088,"stem":1089,"children":1090,"description":1092,"icon":14,"links":14},"/releases","releases/1.index",[1091,1093,1098],{"title":230,"path":1088,"stem":1089,"description":1092,"icon":14,"links":14},"Releases are how we roll out new features, updates, and fixes to Directus.",{"title":1094,"path":1095,"stem":1096,"description":1097,"icon":14,"links":14},"Changelog","/releases/changelog","releases/2.changelog","A monthly summary of what's new from the Directus team.",{"title":1099,"path":1100,"stem":1101,"children":1102,"description":1104,"icon":14,"links":14},"Breaking Changes","/releases/breaking-changes","releases/3.breaking-changes/0.index",[1103,1105,1109],{"title":1099,"path":1100,"stem":1101,"description":1104,"icon":14,"links":14},"Breaking changes may require action on your part before upgrading.",{"title":1106,"path":1107,"stem":1108,"description":1104,"icon":14,"links":14},"Version 10","/releases/breaking-changes/version-10","releases/3.breaking-changes/1.version-10",{"title":1110,"path":1111,"stem":1112,"description":1104,"icon":14,"links":14},"Version 11","/releases/breaking-changes/version-11","releases/3.breaking-changes/2.version-11",{"title":1114,"description":14,"icon":14,"links":14,"path":1115,"stem":1116,"children":1117,"page":89},"Self-Hosting","/self-hosting","self-hosting",[1118,1122,1127,1132,1137],{"title":230,"path":1119,"stem":1120,"description":1121,"icon":14,"links":14},"/self-hosting/overview","self-hosting/1.overview","Self-hosting Directus means running the Directus software on your own infrastructure.",{"title":1123,"path":1124,"stem":1125,"description":1126,"icon":14,"links":14},"Requirements","/self-hosting/requirements","self-hosting/2.requirements","This page outlines the requirements for self-hosting Directus.",{"title":1128,"path":1129,"stem":1130,"description":1131,"icon":14,"links":14},"Deployment","/self-hosting/deploying","self-hosting/3.deploying","This section covers the deployment process of Directus, including environment variables, versioning, persistence, and initial admin user setup.",{"title":1133,"path":1134,"stem":1135,"description":1136,"icon":14,"links":14},"Upgrading","/self-hosting/upgrading","self-hosting/4.upgrading","Learn how to upgrade Directus to the latest version.",{"title":1138,"path":1139,"stem":1140,"description":1141,"icon":14,"links":14},"Including Extensions","/self-hosting/including-extensions","self-hosting/5.including-extensions","Learn how to include extensions in your self-hosted Directus project.",{"title":1143,"path":1144,"stem":1145,"children":1146},"Tutorials","/tutorials","tutorials",[1147,1150,1370,1530,1576,1602,1719,1749],{"title":1143,"path":1144,"stem":1148,"description":1149,"icon":14,"links":14},"tutorials/index","This is a collection of step-by-step guides and practical examples to help you get the most out of our platform. Whether you're a beginner or an experienced user, our tutorials are designed to provide you with the knowledge and skills you need to succeed.",{"title":125,"path":1151,"stem":1152,"children":1153,"description":24,"icon":14,"links":14},"/tutorials/getting-started","tutorials/1.getting-started/index",[1154,1155,1160,1165,1170,1175,1180,1185,1190,1195,1200,1205,1210,1215,1220,1225,1230,1235,1240,1245,1250,1255,1260,1265,1270,1275,1280,1285,1290,1295,1300,1305,1310,1315,1320,1325,1330,1335,1340,1345,1350,1355,1360,1365],{"title":125,"path":1151,"stem":1152,"description":24,"icon":14,"links":14},{"title":1156,"path":1157,"stem":1158,"description":1159,"icon":14,"links":14},"Create Reusable Blocks with Many-to-Any Relationships","/tutorials/getting-started/create-reusable-blocks-with-many-to-any-relationships","tutorials/1.getting-started/create-reusable-blocks-with-many-to-any-relationships","Learn how to data model for multiple, repeating sections of content.",{"title":1161,"path":1162,"stem":1163,"description":1164,"icon":14,"links":14},"Fetch Data from Directus in Android with Kotlin","/tutorials/getting-started/fetch-data-from-directus-in-android-with-kotlin","tutorials/1.getting-started/fetch-data-from-directus-in-android-with-kotlin","Learn how to integrate Directus in your Android app with Kotlin.",{"title":1166,"path":1167,"stem":1168,"description":1169,"icon":14,"links":14},"Fetch Data from Directus in iOS with Swift","/tutorials/getting-started/fetch-data-from-directus-in-ios-with-swift","tutorials/1.getting-started/fetch-data-from-directus-in-ios-with-swift","Learn how to integrate Directus in your iOS app with Swift.",{"title":1171,"path":1172,"stem":1173,"description":1174,"icon":14,"links":14},"Fetch Data from Directus with Angular","/tutorials/getting-started/fetch-data-from-directus-with-angular","tutorials/1.getting-started/fetch-data-from-directus-with-angular","Learn how to integrate Directus in your Angular web application.",{"title":1176,"path":1177,"stem":1178,"description":1179,"icon":14,"links":14},"Fetch Data from Directus with Astro","/tutorials/getting-started/fetch-data-from-directus-with-astro","tutorials/1.getting-started/fetch-data-from-directus-with-astro","Learn how to integrate Directus in your Astro web application.",{"title":1181,"path":1182,"stem":1183,"description":1184,"icon":14,"links":14},"Fetch Data from Directus with Django","/tutorials/getting-started/fetch-data-from-directus-with-django","tutorials/1.getting-started/fetch-data-from-directus-with-django","Learn how to integrate Directus in your Django web application.",{"title":1186,"path":1187,"stem":1188,"description":1189,"icon":14,"links":14},"Fetch Data from Directus with Eleventy 3","/tutorials/getting-started/fetch-data-from-directus-with-eleventy-3","tutorials/1.getting-started/fetch-data-from-directus-with-eleventy-3","Learn how to integrate Directus in your 11ty web application.",{"title":1191,"path":1192,"stem":1193,"description":1194,"icon":14,"links":14},"Fetch Data from Directus with Flask","/tutorials/getting-started/fetch-data-from-directus-with-flask","tutorials/1.getting-started/fetch-data-from-directus-with-flask","Learn how to integrate Directus in your Flask web application.",{"title":1196,"path":1197,"stem":1198,"description":1199,"icon":14,"links":14},"Fetch Data from Directus with Flutter","/tutorials/getting-started/fetch-data-from-directus-with-flutter","tutorials/1.getting-started/fetch-data-from-directus-with-flutter","Learn how to integrate Directus in your Flutter app with Dart.",{"title":1201,"path":1202,"stem":1203,"description":1204,"icon":14,"links":14},"Fetch Data from Directus with Laravel","/tutorials/getting-started/fetch-data-from-directus-with-laravel","tutorials/1.getting-started/fetch-data-from-directus-with-laravel","Learn how to integrate Directus in your Laravel web application.",{"title":1206,"path":1207,"stem":1208,"description":1209,"icon":14,"links":14},"Fetch Data from Directus with Next.js","/tutorials/getting-started/fetch-data-from-directus-with-nextjs","tutorials/1.getting-started/fetch-data-from-directus-with-nextjs","Learn how to integrate Directus in your Next.js web application.",{"title":1211,"path":1212,"stem":1213,"description":1214,"icon":14,"links":14},"Fetch Data from Directus with Nuxt","/tutorials/getting-started/fetch-data-from-directus-with-nuxt","tutorials/1.getting-started/fetch-data-from-directus-with-nuxt","Learn how to integrate Directus in your Nuxt web application.",{"title":1216,"path":1217,"stem":1218,"description":1219,"icon":14,"links":14},"Fetch Data from Directus with SolidStart","/tutorials/getting-started/fetch-data-from-directus-with-solidstart","tutorials/1.getting-started/fetch-data-from-directus-with-solidstart","Learn how to integrate Directus in your SolidStart web application.",{"title":1221,"path":1222,"stem":1223,"description":1224,"icon":14,"links":14},"Fetch Data from Directus with Spring Boot","/tutorials/getting-started/fetch-data-from-directus-with-spring-boot","tutorials/1.getting-started/fetch-data-from-directus-with-spring-boot","Learn how to integrate Directus in your Spring Boot web application.",{"title":1226,"path":1227,"stem":1228,"description":1229,"icon":14,"links":14},"Fetch Data from Directus with SvelteKit","/tutorials/getting-started/fetch-data-from-directus-with-sveltekit","tutorials/1.getting-started/fetch-data-from-directus-with-sveltekit","Learn how to integrate Directus in your SvelteKit web application.",{"title":1231,"path":1232,"stem":1233,"description":1234,"icon":14,"links":14},"Implement Directus Auth with iOS","/tutorials/getting-started/implement-directus-auth-with-ios","tutorials/1.getting-started/implement-directus-auth-with-ios","Learn how to register, login, and protect content in your iOS app.",{"title":1236,"path":1237,"stem":1238,"description":1239,"icon":14,"links":14},"Implement Multilingual Content with Directus and SvelteKit","/tutorials/getting-started/implement-multilingual-content-with-directus-and-svelte-kit","tutorials/1.getting-started/implement-multilingual-content-with-directus-and-svelte-kit","Learn how to handle internationalization in your SvelteKit application.",{"title":1241,"path":1242,"stem":1243,"description":1244,"icon":14,"links":14},"Implementing Live Preview in Astro","/tutorials/getting-started/implementing-live-preview-in-astro","tutorials/1.getting-started/implementing-live-preview-in-astro","Learn how to setup Directus live preview with Astro.",{"title":1246,"path":1247,"stem":1248,"description":1249,"icon":14,"links":14},"Implementing Live Preview in Next.js","/tutorials/getting-started/implementing-live-preview-in-next-js","tutorials/1.getting-started/implementing-live-preview-in-next-js","Learn how to setup Directus live preview with Next.js.",{"title":1251,"path":1252,"stem":1253,"description":1254,"icon":14,"links":14},"Implementing Live Preview in Nuxt","/tutorials/getting-started/implementing-live-preview-in-nuxt","tutorials/1.getting-started/implementing-live-preview-in-nuxt","Learn how to setup Directus live preview with Nuxt.",{"title":1256,"path":1257,"stem":1258,"description":1259,"icon":14,"links":14},"Implementing Live Preview in React","/tutorials/getting-started/implementing-live-preview-in-react","tutorials/1.getting-started/implementing-live-preview-in-react","Learn how to setup Directus live preview with React.",{"title":1261,"path":1262,"stem":1263,"description":1264,"icon":14,"links":14},"Implementing Live Preview in SvelteKit","/tutorials/getting-started/implementing-live-preview-in-sveltekit","tutorials/1.getting-started/implementing-live-preview-in-sveltekit","Learn how to setup Directus live preview with SvelteKit.",{"title":1266,"path":1267,"stem":1268,"description":1269,"icon":14,"links":14},"Implementing Multilingual Content using Directus and Astro","/tutorials/getting-started/implementing-multilingual-content-using-directus-and-astro","tutorials/1.getting-started/implementing-multilingual-content-using-directus-and-astro","Learn how to access multilingual Directus content using Astro.",{"title":1271,"path":1272,"stem":1273,"description":1274,"icon":14,"links":14},"Implementing Multilingual Content using Directus and Next.js","/tutorials/getting-started/implementing-multilingual-content-using-directus-and-next","tutorials/1.getting-started/implementing-multilingual-content-using-directus-and-next","Learn how to access multilingual Directus content using Next.js.",{"title":1276,"path":1277,"stem":1278,"description":1279,"icon":14,"links":14},"Implementing Multilingual Content using Directus and Nuxt","/tutorials/getting-started/implementing-multilingual-content-using-directus-and-nuxt","tutorials/1.getting-started/implementing-multilingual-content-using-directus-and-nuxt","Learn how to access multilingual Directus content using Nuxt.",{"title":1281,"path":1282,"stem":1283,"description":1284,"icon":14,"links":14},"Implementing Multilingual Content using Directus and SvelteKit","/tutorials/getting-started/implementing-multilingual-content-using-directus-and-sveltekit","tutorials/1.getting-started/implementing-multilingual-content-using-directus-and-sveltekit","Learn how to access multilingual Directus content using SvelteKit.",{"title":1286,"path":1287,"stem":1288,"description":1289,"icon":14,"links":14},"Integrating the Directus Visual Editor with Next.js","/tutorials/getting-started/integrating-the-directus-visual-editor-with-nextjs","tutorials/1.getting-started/integrating-the-directus-visual-editor-with-nextjs","Learn how to integrate the Directus Visual Editor with Next.js.",{"title":1291,"path":1292,"stem":1293,"description":1294,"icon":14,"links":14},"Integrating the Directus Visual Editor with Nuxt","/tutorials/getting-started/integrating-the-directus-visual-editor-with-nuxt","tutorials/1.getting-started/integrating-the-directus-visual-editor-with-nuxt","Learn how to integrate the Directus Visual Editor with Nuxt.",{"title":1296,"path":1297,"stem":1298,"description":1299,"icon":14,"links":14},"Integrating the Directus Visual Editor with SvelteKit","/tutorials/getting-started/integrating-the-directus-visual-editor-with-sveltekit","tutorials/1.getting-started/integrating-the-directus-visual-editor-with-sveltekit","Learn how to integrate the Directus Visual Editor with SvelteKit.",{"title":1301,"path":1302,"stem":1303,"description":1304,"icon":14,"links":14},"Rendering Dynamic Blocks Using Astro","/tutorials/getting-started/rendering-dynamic-blocks-using-astro","tutorials/1.getting-started/rendering-dynamic-blocks-using-astro","Learn how to render dynamic blocks using Astro.",{"title":1306,"path":1307,"stem":1308,"description":1309,"icon":14,"links":14},"Rendering Dynamic Blocks Using Next.js","/tutorials/getting-started/rendering-dynamic-blocks-using-next","tutorials/1.getting-started/rendering-dynamic-blocks-using-next","Learn how to render dynamic blocks using Next.js.",{"title":1311,"path":1312,"stem":1313,"description":1314,"icon":14,"links":14},"Rendering Dynamic Blocks Using Nuxt","/tutorials/getting-started/rendering-dynamic-blocks-using-nuxt","tutorials/1.getting-started/rendering-dynamic-blocks-using-nuxt","Learn how to render dynamic blocks using Nuxt.",{"title":1316,"path":1317,"stem":1318,"description":1319,"icon":14,"links":14},"Rendering Dynamic Blocks Using SvelteKit","/tutorials/getting-started/rendering-dynamic-blocks-using-sveltekit","tutorials/1.getting-started/rendering-dynamic-blocks-using-sveltekit","Learn how to render dynamic blocks using SvelteKit.",{"title":1321,"path":1322,"stem":1323,"description":1324,"icon":14,"links":14},"Set Up Live Preview with Next.js","/tutorials/getting-started/set-up-live-preview-with-next-js","tutorials/1.getting-started/set-up-live-preview-with-next-js","Learn how to confgure Live Preview with Next.js' draft mode.",{"title":1326,"path":1327,"stem":1328,"description":1329,"icon":14,"links":14},"Set Up Live Preview with Nuxt","/tutorials/getting-started/set-up-live-preview-with-nuxt","tutorials/1.getting-started/set-up-live-preview-with-nuxt","Learn how to create a Nuxt preview plugin to configure Live Preview.",{"title":1331,"path":1332,"stem":1333,"description":1334,"icon":14,"links":14},"Submit Forms Using Directus and Next.js","/tutorials/getting-started/submit-forms-using-directus-and-nextjs","tutorials/1.getting-started/submit-forms-using-directus-and-nextjs","Learn how to submit forms using Directus and Next.js.",{"title":1336,"path":1337,"stem":1338,"description":1339,"icon":14,"links":14},"Submit Forms Using Directus and Nuxt","/tutorials/getting-started/submit-forms-using-directus-and-nuxt","tutorials/1.getting-started/submit-forms-using-directus-and-nuxt","Learn how to submit forms using Directus and Nuxt.",{"title":1341,"path":1342,"stem":1343,"description":1344,"icon":14,"links":14},"Submit Forms Using Directus and SvelteKit","/tutorials/getting-started/submit-forms-using-directus-and-sveltekit","tutorials/1.getting-started/submit-forms-using-directus-and-sveltekit","Learn how to submit forms using Directus and SvelteKit.",{"title":1346,"path":1347,"stem":1348,"description":1349,"icon":14,"links":14},"Using Authentication in Astro","/tutorials/getting-started/using-authentication-in-astro","tutorials/1.getting-started/using-authentication-in-astro","Learn how to setup Directus authentication with Astro.",{"title":1351,"path":1352,"stem":1353,"description":1354,"icon":14,"links":14},"Using Authentication in Next.js","/tutorials/getting-started/using-authentication-in-next-js","tutorials/1.getting-started/using-authentication-in-next-js","Learn how to setup Directus authentication with Next.js.",{"title":1356,"path":1357,"stem":1358,"description":1359,"icon":14,"links":14},"Using Authentication in Nuxt","/tutorials/getting-started/using-authentication-in-nuxt","tutorials/1.getting-started/using-authentication-in-nuxt","Learn how to setup Directus authentication with Nuxt.",{"title":1361,"path":1362,"stem":1363,"description":1364,"icon":14,"links":14},"Using Authentication in React","/tutorials/getting-started/using-authentication-in-react","tutorials/1.getting-started/using-authentication-in-react","Learn how to setup Directus authentication with React.",{"title":1366,"path":1367,"stem":1368,"description":1369,"icon":14,"links":14},"Using Authentication in SvelteKit","/tutorials/getting-started/using-authentication-in-sveltekit","tutorials/1.getting-started/using-authentication-in-sveltekit","Learn how to setup Directus authentication with SvelteKit.",{"title":145,"path":1371,"stem":1372,"children":1373,"description":24,"icon":14,"links":14},"/tutorials/projects","tutorials/2.projects/index",[1374,1375,1380,1385,1390,1395,1400,1405,1410,1415,1420,1425,1430,1435,1440,1445,1450,1455,1460,1465,1470,1475,1480,1485,1490,1495,1500,1505,1510,1515,1520,1525],{"title":145,"path":1371,"stem":1372,"description":24,"icon":14,"links":14},{"title":1376,"path":1377,"stem":1378,"description":1379,"icon":14,"links":14},"Build a Multi-User Chat with JavaScript and Directus Realtime","/tutorials/projects/build-a-multi-user-chat-with-javascript-and-directus-realtime","tutorials/2.projects/build-a-multi-user-chat-with-javascript-and-directus-realtime","Learn how to send and receive data over a realtime connection with JavaScript.",{"title":1381,"path":1382,"stem":1383,"description":1384,"icon":14,"links":14},"Build a Multi-User Chat with React and Directus Realtime","/tutorials/projects/build-a-multi-user-chat-with-react-and-directus-realtime","tutorials/2.projects/build-a-multi-user-chat-with-react-and-directus-realtime","Learn how to send and receive data over a realtime connection in React applications.",{"title":1386,"path":1387,"stem":1388,"description":1389,"icon":14,"links":14},"Build a Multi-User Chat with Vue.js and Directus Realtime","/tutorials/projects/build-a-multi-user-chat-with-vue-js-and-directus-realtime","tutorials/2.projects/build-a-multi-user-chat-with-vue-js-and-directus-realtime","Learn how to send and receive data over a realtime connection in a Vue.js application.",{"title":1391,"path":1392,"stem":1393,"description":1394,"icon":14,"links":14},"Build a Notebook Chrome Extension with Directus Auth","/tutorials/projects/build-a-notebook-chrome-extension-with-directus-auth","tutorials/2.projects/build-a-notebook-chrome-extension-with-directus-auth","Learn to build and integrate a Chrome Extension with Directus Auth.",{"title":1396,"path":1397,"stem":1398,"description":1399,"icon":14,"links":14},"Build a Realtime Chat App with Directus and Astro","/tutorials/projects/build-a-realtime-chat-app-using-directus-and-astro","tutorials/2.projects/build-a-realtime-chat-app-using-directus-and-astro","Learn how to setup Directus realtime with Astro.",{"title":1401,"path":1402,"stem":1403,"description":1404,"icon":14,"links":14},"Build a Realtime Chat App with Directus and Nuxt","/tutorials/projects/build-a-realtime-chat-app-using-directus-and-nuxt","tutorials/2.projects/build-a-realtime-chat-app-using-directus-and-nuxt","Learn how to setup Directus realtime with Nuxt.",{"title":1406,"path":1407,"stem":1408,"description":1409,"icon":14,"links":14},"Build a Realtime Chat App with Directus and Next.js","/tutorials/projects/build-a-realtime-chat-app-with-directus-and-next","tutorials/2.projects/build-a-realtime-chat-app-with-directus-and-next","Learn how to setup Directus realtime with Next.js.",{"title":1411,"path":1412,"stem":1413,"description":1414,"icon":14,"links":14},"Build a Realtime Chat App with Directus and SvelteKit","/tutorials/projects/build-a-realtime-chat-app-with-directus-and-sveltekit","tutorials/2.projects/build-a-realtime-chat-app-with-directus-and-sveltekit","Learn how to setup Directus realtime with SvelteKit.",{"title":1416,"path":1417,"stem":1418,"description":1419,"icon":14,"links":14},"Build a Testimonial Widget with SvelteKit and Directus","/tutorials/projects/build-a-testimonial-widget-with-sveltekit-and-directus","tutorials/2.projects/build-a-testimonial-widget-with-sveltekit-and-directus","Learn how to set up a testimonial widget using SvelteKit and Directus.",{"title":1421,"path":1422,"stem":1423,"description":1424,"icon":14,"links":14},"Build a User Feedback Widget with Vue.js","/tutorials/projects/build-a-user-feedback-widget-with-vue-js","tutorials/2.projects/build-a-user-feedback-widget-with-vue-js-","Learn how we built our docs feedback widget with Directus.",{"title":1426,"path":1427,"stem":1428,"description":1429,"icon":14,"links":14},"Build a Video Streaming App with SvelteKit and Directus","/tutorials/projects/build-a-video-streaming-app-with-sveltekit-and-directus","tutorials/2.projects/build-a-video-streaming-app-with-sveltekit-and-directus","Learn how to store and retrieve video metadata, and then build a streaming application.",{"title":1431,"path":1432,"stem":1433,"description":1434,"icon":14,"links":14},"Build an Ecommerce Platform with Next.js, Stripe, and Directus Automate","/tutorials/projects/build-an-ecommerce-platform-with-next-js-stripe-and-directus-automate","tutorials/2.projects/build-an-ecommerce-platform-with-next-js-stripe-and-directus-automate","Learn to integrate Stripe with Directus Automate to build an e-commerce website.",{"title":1436,"path":1437,"stem":1438,"description":1439,"icon":14,"links":14},"Build an Hotel Booking Platform with Next.js, Stripe, and Directus Automate","/tutorials/projects/build-an-hotel-booking-platform-with-next-js-stripe-and-directus-automate","tutorials/2.projects/build-an-hotel-booking-platform-with-next-js-stripe-and-directus-automate","Learn to build a hotel booking site with dynamic availability and payments via Stripe.",{"title":1441,"path":1442,"stem":1443,"description":1444,"icon":14,"links":14},"Build Directus Garden - A Passive Collaborative Event Booth Demo","/tutorials/projects/build-directus-garden-a-passive-collaborative-event-booth-demo","tutorials/2.projects/build-directus-garden-a-passive-collaborative-event-booth-demo","Learn how we built our engagement platform for live in-person events with P5.js.",{"title":1446,"path":1447,"stem":1448,"description":1449,"icon":14,"links":14},"Build Forms Dynamically using Directus and Astro","/tutorials/projects/build-forms-dynamically-using-directus-and-astro","tutorials/2.projects/build-forms-dynamically-using-directus-and-astro","Learn how to setup Directus fields with Astro.",{"title":1451,"path":1452,"stem":1453,"description":1454,"icon":14,"links":14},"Build Forms Dynamically using Directus and Next.js","/tutorials/projects/build-forms-dynamically-using-directus-and-next","tutorials/2.projects/build-forms-dynamically-using-directus-and-next","Learn how to setup Directus fields with Next.js.",{"title":1456,"path":1457,"stem":1458,"description":1459,"icon":14,"links":14},"Build Forms Dynamically using Directus and Nuxt","/tutorials/projects/build-forms-dynamically-using-directus-and-nuxt","tutorials/2.projects/build-forms-dynamically-using-directus-and-nuxt","Learn how to setup Directus fields with Nuxt.",{"title":1461,"path":1462,"stem":1463,"description":1464,"icon":14,"links":14},"Build Forms Dynamically using Directus and SvelteKit","/tutorials/projects/build-forms-dynamically-using-directus-and-sveltekit","tutorials/2.projects/build-forms-dynamically-using-directus-and-sveltekit","Learn how to setup Directus fields with SvelteKit.",{"title":1466,"path":1467,"stem":1468,"description":1469,"icon":14,"links":14},"Build the Leap Week Registration and Referral System","/tutorials/projects/build-the-leap-week-registration-and-referral-system","tutorials/2.projects/build-the-leap-week-registration-and-referral-system-","Learn how we built our referral-based ticketing and raffle system with AI-generated rabbitars.",{"title":1471,"path":1472,"stem":1473,"description":1474,"icon":14,"links":14},"Building AIVenture - An AI-Powered Game with Directus","/tutorials/projects/building-ai-venture-an-ai-powered-game-with-directus","tutorials/2.projects/building-ai-venture-an-ai-powered-game-with-directus","Learn the advanced techniques used with Directus Automate to build a game.",{"title":1476,"path":1477,"stem":1478,"description":1479,"icon":14,"links":14},"Create a CMS using Directus and Astro","/tutorials/projects/create-a-cms-using-directus-and-astro","tutorials/2.projects/create-a-cms-using-directus-and-astro","Learn how to create a CMS using Directus and Astro.",{"title":1481,"path":1482,"stem":1483,"description":1484,"icon":14,"links":14},"Create a CMS using Directus and Next.js","/tutorials/projects/create-a-cms-using-directus-and-nextjs","tutorials/2.projects/create-a-cms-using-directus-and-nextjs","Learn how to create a CMS using Directus and Next.js.",{"title":1486,"path":1487,"stem":1488,"description":1489,"icon":14,"links":14},"Create a CMS using Directus and Nuxt","/tutorials/projects/create-a-cms-using-directus-and-nuxt","tutorials/2.projects/create-a-cms-using-directus-and-nuxt","Learn how to create a CMS using Directus and Nuxt.",{"title":1491,"path":1492,"stem":1493,"description":1494,"icon":14,"links":14},"Create a CMS using Directus and SvelteKit","/tutorials/projects/create-a-cms-using-directus-and-sveltekit","tutorials/2.projects/create-a-cms-using-directus-and-sveltekit","Learn how to create a CMS using Directus and SvelteKit.",{"title":1496,"path":1497,"stem":1498,"description":1499,"icon":14,"links":14},"Create Dynamic Pages for a CMS using Directus and Astro","/tutorials/projects/create-dynamic-pages-for-a-cms-using-directus-and-astro","tutorials/2.projects/create-dynamic-pages-for-a-cms-using-directus-and-astro","Learn how to create dynamic pages you can use in your CMS using Directus and Astro.",{"title":1501,"path":1502,"stem":1503,"description":1504,"icon":14,"links":14},"Create Dynamic Pages for a CMS using Directus and Next.js","/tutorials/projects/create-dynamic-pages-for-a-cms-using-directus-and-nextjs","tutorials/2.projects/create-dynamic-pages-for-a-cms-using-directus-and-nextjs","Learn how to create dynamic pages you can use in your CMS using Directus and Next.js.",{"title":1506,"path":1507,"stem":1508,"description":1509,"icon":14,"links":14},"Create Dynamic Pages for a CMS using Directus and Nuxt","/tutorials/projects/create-dynamic-pages-for-a-cms-using-directus-and-nuxt","tutorials/2.projects/create-dynamic-pages-for-a-cms-using-directus-and-nuxt","Learn how to create dynamic pages you can use in your CMS using Directus and Nuxt.",{"title":1511,"path":1512,"stem":1513,"description":1514,"icon":14,"links":14},"Create Dynamic Pages for a CMS using Directus and SvelteKit","/tutorials/projects/create-dynamic-pages-for-a-cms-using-directus-and-sveltekit","tutorials/2.projects/create-dynamic-pages-for-a-cms-using-directus-and-sveltekit","Learn how to create dynamic pages you can use in your CMS using Directus and SvelteKit.",{"title":1516,"path":1517,"stem":1518,"description":1519,"icon":14,"links":14},"How I Built an AI Open Source Santa Roast App with Directus and Nuxt","/tutorials/projects/how-i-built-an-ai-open-source-santa-roast-app-with-directus-and-nuxt","tutorials/2.projects/how-i-built-an-ai-open-source-santa-roast-app-with-directus-and-nuxt","Bryant breaks down how he built an AI-powered app that roasts developers based on their GitHub contributions.",{"title":1521,"path":1522,"stem":1523,"description":1524,"icon":14,"links":14},"Integrate Directus with ESP32 Hardware Sensors","/tutorials/projects/integrate-directus-with-esp-32-hardware-sensors","tutorials/2.projects/integrate-directus-with-esp-32-hardware-sensors","Learn how to integrate Directus with IoT systems by reading and publishing sensor data.",{"title":1526,"path":1527,"stem":1528,"description":1529,"icon":14,"links":14},"Use Directus as a Baby Health Tracker with Owlet and OpsGenie","/tutorials/projects/use-directus-as-a-baby-health-tracker-with-owlet-and-ops-genie","tutorials/2.projects/use-directus-as-a-baby-health-tracker-with-owlet-and-ops-genie","Learn how to integrate Directus with hardware sensors and incident repsonse systems.",{"title":1531,"path":1532,"stem":1533,"children":1534,"description":24,"icon":14,"links":14},"Tips & Tricks","/tutorials/tips-and-tricks","tutorials/3.tips-and-tricks/index",[1535,1536,1541,1546,1551,1556,1561,1566,1571],{"title":1531,"path":1532,"stem":1533,"description":24,"icon":14,"links":14},{"title":1537,"path":1538,"stem":1539,"description":1540,"icon":14,"links":14},"Advanced Types with the Directus SDK","/tutorials/tips-and-tricks/advanced-types-with-the-directus-sdk","tutorials/3.tips-and-tricks/advanced-types-with-the-directus-sdk","Learn how to more-easily work with types and the Directus SDK.",{"title":1542,"path":1543,"stem":1544,"description":1545,"icon":14,"links":14},"Build a Monitoring Pipeline For Flows And Extensions","/tutorials/tips-and-tricks/build-a-monitoring-pipeline-for-flows-and-extensions","tutorials/3.tips-and-tricks/build-a-monitoring-pipeline-for-flows-and-extensions-","Learn how to set up complex pipelines to monitor automations and extensions.",{"title":1547,"path":1548,"stem":1549,"description":1550,"icon":14,"links":14},"Configure Okta as a Single Sign-On Provider","/tutorials/tips-and-tricks/configure-okta-as-a-single-sign-on-provider","tutorials/3.tips-and-tricks/configure-okta-as-a-single-sign-on-provider","Learn how to set up Okta SSO with the SAML authentication mechanism.",{"title":1552,"path":1553,"stem":1554,"description":1555,"icon":14,"links":14},"Implement Pagination and Infinite Scrolling in Next.js","/tutorials/tips-and-tricks/implement-pagination-and-infinite-scrolling-in-next-js","tutorials/3.tips-and-tricks/implement-pagination-and-infinite-scrolling-in-next-js-","Learn various techniques to load paginated data in your Next.js application.",{"title":1557,"path":1558,"stem":1559,"description":1560,"icon":14,"links":14},"Importing Files in Directus Automate","/tutorials/tips-and-tricks/importing-files-in-directus-automate","tutorials/3.tips-and-tricks/importing-files-in-directus-automate","Learn how to use the Request URL operation to import files in Directus Automate.",{"title":1562,"path":1563,"stem":1564,"description":1565,"icon":14,"links":14},"Preview Files in Live Preview with Google Docs Previews","/tutorials/tips-and-tricks/preview-files-in-live-preview-with-google-docs-previews","tutorials/3.tips-and-tricks/preview-files-in-live-preview-with-google-docs-previews","Learn how to use Google Gview to preview many file formats in Directus Editor.",{"title":1567,"path":1568,"stem":1569,"description":1570,"icon":14,"links":14},"Search Engine Optimization Best Practices","/tutorials/tips-and-tricks/search-engine-optimization-best-practices","tutorials/3.tips-and-tricks/search-engine-optimization-best-practices","Learn some best practices for enabling SEO in your projects using Directus.",{"title":1572,"path":1573,"stem":1574,"description":1575,"icon":14,"links":14},"Understanding Kubernetes","/tutorials/tips-and-tricks/understanding-kubernetes","tutorials/3.tips-and-tricks/understanding-kubernetes","Learn about key Kubernetes concepts and how they interact with each other.",{"title":1577,"path":1578,"stem":1579,"children":1580,"description":24,"icon":14,"links":14},"Migration","/tutorials/migration","tutorials/4.migration/index",[1581,1582,1587,1592,1597],{"title":1577,"path":1578,"stem":1579,"description":24,"icon":14,"links":14},{"title":1583,"path":1584,"stem":1585,"description":1586,"icon":14,"links":14},"Migrate from Notion to Directus","/tutorials/migration/migrate-from-notion-to-directus","tutorials/4.migration/migrate-from-notion-to-directus","Learn how to migrate data from Notion databases to Directus.",{"title":1588,"path":1589,"stem":1590,"description":1591,"icon":14,"links":14},"Migrate from Nuxt Content to Directus","/tutorials/migration/migrate-from-nuxt-content-to-directus","tutorials/4.migration/migrate-from-nuxt-content-to-directus","Learn how to move from a flat-file CMS to Directus.",{"title":1593,"path":1594,"stem":1595,"description":1596,"icon":14,"links":14},"Migrate from WordPress to Directus","/tutorials/migration/migrate-from-wordpress-to-directus","tutorials/4.migration/migrate-from-wordpress-to-directus","Learn how to migrate posts and images to Directus, with tips on plugins.",{"title":1598,"path":1599,"stem":1600,"description":1601,"icon":14,"links":14},"Promoting Changes Between Environments in Directus","/tutorials/migration/promoting-changes-between-environments-in-directus","tutorials/4.migration/promoting-changes-between-environments-in-directus","Learn the options to migrate schema and data between Directus projects.",{"title":372,"path":1603,"stem":1604,"children":1605,"description":1607,"icon":14,"links":14},"/tutorials/extensions","tutorials/5.extensions/index",[1606,1608,1613,1618,1623,1628,1633,1638,1643,1650,1657,1664,1669,1674,1679,1684,1689,1694,1699,1704,1709,1714],{"title":372,"path":1603,"stem":1604,"description":1607,"icon":14,"links":14},"All about extensions",{"title":1609,"path":1610,"stem":1611,"description":1612,"icon":14,"links":14},"Check Permissions in a Custom Endpoint","/tutorials/extensions/check-permissions-in-a-custom-endpoint","tutorials/5.extensions/check-permissions-in-a-custom-endpoint","Learn how to use internal Directus permissions when creating a custom endpoint.",{"title":1614,"path":1615,"stem":1616,"description":1617,"icon":14,"links":14},"Create Collection Items in Custom Panels","/tutorials/extensions/create-collection-items-in-custom-panels","tutorials/5.extensions/create-collection-items-in-custom-panels","Learn how to use built-in interfaces and composables to create new collections.",{"title":1619,"path":1620,"stem":1621,"description":1622,"icon":14,"links":14},"Create New Customers in Stripe in a Custom Hook","/tutorials/extensions/create-new-customers-in-stripe-in-a-custom-hook","tutorials/5.extensions/create-new-customers-in-stripe-in-a-custom-hook","Learn how to use the Stripe SDK to create data when actions occur in Directus.",{"title":1624,"path":1625,"stem":1626,"description":1627,"icon":14,"links":14},"Display External API Data From Vonage In Custom Panels","/tutorials/extensions/display-external-api-data-from-vonage-in-custom-panels","tutorials/5.extensions/display-external-api-data-from-vonage-in-custom-panels","Learn how to display records from external systems in Directus Insights.",{"title":1629,"path":1630,"stem":1631,"description":1632,"icon":14,"links":14},"Display External Weather API Data In Custom Panels","/tutorials/extensions/display-external-weather-api-data-in-custom-panels","tutorials/5.extensions/display-external-weather-api-data-in-custom-panels","Learn how to display external data in panels with a bundle and endpoint.",{"title":1634,"path":1635,"stem":1636,"description":1637,"icon":14,"links":14},"Format Dates in a Custom Display Extension","/tutorials/extensions/format-dates-in-a-custom-display-extension","tutorials/5.extensions/format-dates-in-a-custom-display-extension","Learn how to build a custom display to format data in Directus.",{"title":1639,"path":1640,"stem":1641,"description":1642,"icon":14,"links":14},"Implement Navigation in Multipage Custom Modules","/tutorials/extensions/implement-navigation-in-multipage-custom-modules","tutorials/5.extensions/implement-navigation-in-multipage-custom-modules","Learn how to navigate between multiple pages in module extensions.",{"title":1644,"path":1645,"stem":1646,"children":1647,"description":1649,"icon":14,"links":14},"Integrate Algolia Indexing with Custom Hooks","/tutorials/extensions/integrate-algolia-indexing-with-custom-hooks","tutorials/5.extensions/integrate-algolia-indexing-with-custom-hooks",[1648],{"title":1644,"path":1645,"stem":1646,"description":1649,"icon":14,"links":14},"Learn how to maintain an Algolia index when data is created, updated, and deleted.",{"title":1651,"path":1652,"stem":1653,"children":1654,"description":1656,"icon":14,"links":14},"Integrate Elasticsearch Indexing with Custom Hooks","/tutorials/extensions/integrate-elasticsearch-indexing-with-custom-hooks","tutorials/5.extensions/integrate-elasticsearch-indexing-with-custom-hooks",[1655],{"title":1651,"path":1652,"stem":1653,"description":1656,"icon":14,"links":14},"Learn how to maintain an Elasticsearch index when data is created, updated, and deleted.",{"title":1658,"path":1659,"stem":1660,"children":1661,"description":1663,"icon":14,"links":14},"Integrate Meilisearch Indexing with Custom Hooks","/tutorials/extensions/integrate-meilisearch-indexing-with-custom-hooks","tutorials/5.extensions/integrate-meilisearch-indexing-with-custom-hooks",[1662],{"title":1658,"path":1659,"stem":1660,"description":1663,"icon":14,"links":14},"Learn how to maintain an Meilisearch index when data is created, updated, and deleted.",{"title":1665,"path":1666,"stem":1667,"description":1668,"icon":14,"links":14},"Monitor and Error Track with Sentry in Custom Hooks","/tutorials/extensions/monitor-and-error-track-with-sentry-in-custom-hooks","tutorials/5.extensions/monitor-and-error-track-with-sentry-in-custom-hooks","Learn how to integrate Sentry error tracking in both your API and Data Studio.",{"title":1670,"path":1671,"stem":1672,"description":1673,"icon":14,"links":14},"Proxy an External API in a Custom Endpoint Extension","/tutorials/extensions/proxy-an-external-api-in-a-custom-endpoint-extension","tutorials/5.extensions/proxy-an-external-api-in-a-custom-endpoint-extension","Learn how to make external APIs available via Directus in a custom endpoint.",{"title":1675,"path":1676,"stem":1677,"description":1678,"icon":14,"links":14},"Read Collection Data in Custom Layouts","/tutorials/extensions/read-collection-data-in-custom-layouts","tutorials/5.extensions/read-collection-data-in-custom-layouts","Learn how to build your first layout with data from a collection.",{"title":1680,"path":1681,"stem":1682,"description":1683,"icon":14,"links":14},"Send SMS Messages with Twilio in Custom Operations","/tutorials/extensions/send-sms-messages-with-twilio-in-custom-operations","tutorials/5.extensions/send-sms-messages-with-twilio-in-custom-operations","Learn how to build a custom operation that uses the Twilio SDK.",{"title":1685,"path":1686,"stem":1687,"description":1688,"icon":14,"links":14},"Send SMS Messages with Twilio in Custom Panels","/tutorials/extensions/send-sms-messages-with-twilio-in-custom-panels","tutorials/5.extensions/send-sms-messages-with-twilio-in-custom-panels","Learn how to build a form inside a panel extension and use external APIs.",{"title":1690,"path":1691,"stem":1692,"description":1693,"icon":14,"links":14},"Summarize Relational Items in a Custom Display Extension","/tutorials/extensions/summarize-relational-items-in-a-custom-display-extension","tutorials/5.extensions/summarize-relational-items-in-a-custom-display-extension","Learn how to work with relational data in display extensions.",{"title":1695,"path":1696,"stem":1697,"description":1698,"icon":14,"links":14},"Understand Available Slots in Custom Modules","/tutorials/extensions/understand-available-slots-in-custom-modules","tutorials/5.extensions/understand-available-slots-in-custom-modules","Learn about all of the slots available in your custom modules.",{"title":1700,"path":1701,"stem":1702,"description":1703,"icon":14,"links":14},"Use Dynamic Values in Custom Email Templates","/tutorials/extensions/use-dynamic-values-in-custom-email-templates","tutorials/5.extensions/use-dynamic-values-in-custom-email-templates","Learn how to inject dynamic data into liquid templates.",{"title":1705,"path":1706,"stem":1707,"description":1708,"icon":14,"links":14},"Use npm Packages in Custom Operations","/tutorials/extensions/use-npm-packages-in-custom-operations","tutorials/5.extensions/use-npm-packages-in-custom-operations","Learn how to expose an npm package as an operation in Directus Automate.",{"title":1710,"path":1711,"stem":1712,"description":1713,"icon":14,"links":14},"Validate Phone Numbers with Twilio in a Custom Hook","/tutorials/extensions/validate-phone-numbers-with-twilio-in-a-custom-hook","tutorials/5.extensions/validate-phone-numbers-with-twilio-in-a-custom-hook","Learn how to prevent an item from saving if it has an invalid phone number.",{"title":1715,"path":1716,"stem":1717,"description":1718,"icon":14,"links":14},"Validating Third-Party JWTs in Directus (with Okta)","/tutorials/extensions/validating-third-party-jwts-in-directus","tutorials/5.extensions/validating-third-party-jwts-in-directus","Learn how to translate third part JWT's to Directus accountability",{"title":1114,"path":1720,"stem":1721,"children":1722,"description":24,"icon":14,"links":14},"/tutorials/self-hosting","tutorials/6.self-hosting/index",[1723,1724,1729,1734,1739,1744],{"title":1114,"path":1720,"stem":1721,"description":24,"icon":14,"links":14},{"title":1725,"path":1726,"stem":1727,"description":1728,"icon":14,"links":14},"Deploy Directus to an Ubuntu Server","/tutorials/self-hosting/deploy-directus-to-an-ubuntu-server","tutorials/6.self-hosting/deploy-directus-to-an-ubuntu-server","Learn how to deploy Directus on a Docker container on an Ubuntu server.",{"title":1730,"path":1731,"stem":1732,"description":1733,"icon":14,"links":14},"Deploy Directus to AWS EC2","/tutorials/self-hosting/deploy-directus-to-aws-ec2","tutorials/6.self-hosting/deploy-directus-to-aws-ec2","Learn how to deploy a Directus to AWS EC2, with a RDS database and a S3 storage bucket.",{"title":1735,"path":1736,"stem":1737,"description":1738,"icon":14,"links":14},"Deploy Directus to Azure Web Apps","/tutorials/self-hosting/deploy-directus-to-azure-web-apps","tutorials/6.self-hosting/deploy-directus-to-azure-web-apps","Learn how to deploy Directus on a Docker container on Azure.",{"title":1740,"path":1741,"stem":1742,"description":1743,"icon":14,"links":14},"Deploy Directus to Digital Ocean","/tutorials/self-hosting/deploy-directus-to-digital-ocean","tutorials/6.self-hosting/deploy-directus-to-digital-ocean","Learn how to deploy Directus on the Digital Ocean App Platform.",{"title":1745,"path":1746,"stem":1747,"description":1748,"icon":14,"links":14},"Deploy Directus to Google Cloud Platform","/tutorials/self-hosting/deploy-directus-to-google-cloud-platform","tutorials/6.self-hosting/deploy-directus-to-google-cloud-platform","Learn how to deploy Directus on GCP with a Cloud SQL database and Cloud Storage Bucket.",{"title":1750,"path":1751,"stem":1752,"children":1753,"description":24,"icon":14,"links":14},"Workflows","/tutorials/workflows","tutorials/7.workflows/index",[1754,1755,1760,1765,1770,1775,1780,1785,1790,1795,1800,1805,1810,1815,1820],{"title":1750,"path":1751,"stem":1752,"description":24,"icon":14,"links":14},{"title":1756,"path":1757,"stem":1758,"description":1759,"icon":14,"links":14},"Build Content Approval Workflows with Custom Permissions","/tutorials/workflows/build-content-approval-workflows-with-custom-permissions","tutorials/7.workflows/build-content-approval-workflows-with-custom-permissions","Learn how to configure roles and permissions for complex automations.",{"title":1761,"path":1762,"stem":1763,"description":1764,"icon":14,"links":14},"Combine Live Preview and Content Versioning with Next.js","/tutorials/workflows/combine-live-preview-and-content-versioning-with-next-js","tutorials/7.workflows/combine-live-preview-and-content-versioning-with-next-js","Learn how to set up Live Preview with different content versions in your Next.js application.",{"title":1766,"path":1767,"stem":1768,"description":1769,"icon":14,"links":14},"Create GitHub Issues with Directus Automate","/tutorials/workflows/create-github-issues-with-directus-automate","tutorials/7.workflows/create-github-issues-with-directus-automate","Learn how to integrate GitHub with Directus Automate to create new issues.",{"title":1771,"path":1772,"stem":1773,"description":1774,"icon":14,"links":14},"Detect High-Risk Phone Numbers with Vonage and Directus Automate","/tutorials/workflows/detect-high-risk-phone-numbers-with-vonage-and-directus-automate","tutorials/7.workflows/detect-high-risk-phone-numbers-with-vonage-and-directus-automate","Learn how to integrate Vonage's Number Insights API with Directus Automate to validate numbers.",{"title":1776,"path":1777,"stem":1778,"description":1779,"icon":14,"links":14},"Enrich User Data with Clearbit and Directus Automate","/tutorials/workflows/enrich-user-data-with-clearbit-and-directus-automate","tutorials/7.workflows/enrich-user-data-with-clearbit-and-directus-automate","Learn how to integrate Clearbit data enrichment with Directus Automate.",{"title":1781,"path":1782,"stem":1783,"description":1784,"icon":14,"links":14},"Generate Images with DALL•E and Directus Automate","/tutorials/workflows/generate-images-with-dall-e-and-directus-automate","tutorials/7.workflows/generate-images-with-dall-e-and-directus-automate","Learn how to integrate OpenAI's Dall•E models with Directus Automate.",{"title":1786,"path":1787,"stem":1788,"description":1789,"icon":14,"links":14},"Generate Social Posts with GPT-4 and Directus Automate","/tutorials/workflows/generate-social-posts-with-gpt-4-and-directus-automate","tutorials/7.workflows/generate-social-posts-with-gpt-4-and-directus-automate","Learn how to integrate OpenAI's GPT-4 model with Directus Automate.",{"title":1791,"path":1792,"stem":1793,"description":1794,"icon":14,"links":14},"Generate Transcripts with Deepgram and Directus Automate","/tutorials/workflows/generate-transcripts-with-deepgram-and-directus-automate","tutorials/7.workflows/generate-transcripts-with-deepgram-and-directus-automate","Learn how to integrate Deepgram's Speech-to-Text API with Directus Automate.",{"title":1796,"path":1797,"stem":1798,"description":1799,"icon":14,"links":14},"Integrating Multilingual Content with Directus and Crowdin","/tutorials/workflows/integrating-multilingual-content-with-directus-and-crowdin","tutorials/7.workflows/integrating-multilingual-content-with-directus-and-crowdin","Learn how to localize content in Directus using Crowdin's connector with Directus.",{"title":1801,"path":1802,"stem":1803,"description":1804,"icon":14,"links":14},"Invincible AI content workflows with Inngest and Directus","/tutorials/workflows/invincible-ai-content-workflows-with-inngest-and-directus","tutorials/7.workflows/invincible-ai-content-workflows-with-inngest-and-directus","Learn how to configure integration Directus and Inngest to build durable workflows for any scale.",{"title":1806,"path":1807,"stem":1808,"description":1809,"icon":14,"links":14},"Schedule Future Content with Directus Automate","/tutorials/workflows/schedule-future-content-with-directus-automate","tutorials/7.workflows/schedule-future-content-with-directus-automate","Learn how to set content to be scheduled on a future date with Directs Automate.",{"title":1811,"path":1812,"stem":1813,"description":1814,"icon":14,"links":14},"Tag Images with Clarifai and Directus Automate","/tutorials/workflows/tag-images-with-clarifai-and-directus-automate","tutorials/7.workflows/tag-images-with-clarifai-and-directus-automate","Learn how to integrate Clarifai's image recognition APIs with Directus Automate.",{"title":1816,"path":1817,"stem":1818,"description":1819,"icon":14,"links":14},"Trigger Netlify Site Builds with Directus Automate","/tutorials/workflows/trigger-netlify-site-builds-with-directus-automate","tutorials/7.workflows/trigger-netlify-site-builds-with-directus-automate","Learn how to trigger new Netlify website builds through Directus Automate.",{"title":1821,"path":1822,"stem":1823,"description":1824,"icon":14,"links":14},"Trigger Vercel Site Builds with Directus Automate","/tutorials/workflows/trigger-vercel-site-builds-with-directus-automate","tutorials/7.workflows/trigger-vercel-site-builds-with-directus-automate","Learn how to trigger new Vercel website builds through Directus Automate.",{"id":1826,"icon":1827,"content":1828,"link":1829},"812bf73d-ebfb-4246-9538-937a09a0c795","connected_tv","Learn more about our native MCP","https://directus.io/mcp",{"id":1831,"title":1486,"authors":1832,"body":1836,"description":1489,"extension":7995,"headline":14,"icon":14,"links":14,"meta":7996,"navigation":2369,"path":1487,"rawbody":7998,"seo":7999,"stem":1488,"technologies":8000,"__hash__":8002},"content/tutorials/2.projects/create-a-cms-using-directus-and-nuxt.md",[1833],{"name":1834,"title":1835},"Craig Harman","Guest Author",{"type":1837,"value":1838,"toc":7971},"minimark",[1839,1843,1848,1851,1858,1862,1865,1868,1873,1884,1909,1912,1915,1919,1923,1932,1959,1962,1966,1969,1976,1984,1991,2092,2098,2152,2159,2167,2173,2189,2198,2224,2231,2261,2265,2268,2286,2290,2297,3787,3791,3798,3864,3868,3879,3987,3990,3994,3997,4004,4011,4583,4590,4601,4605,4612,5006,5019,5026,5043,5058,5079,5085,5089,5094,5274,5279,5296,5304,5325,5330,5334,5339,5686,5696,5701,5718,5726,5747,5752,5756,5761,6022,6027,6044,6052,6073,6078,6082,6087,6665,6670,6687,6695,6716,6720,6735,6767,6770,6774,6780,7250,7263,7269,7931,7948,7953,7957,7960,7967],[1840,1841,1842],"p",{},"Directus provides a headless CMS, which when combined with Nuxt will streamline content management. This post covers how to connect them to create a flexible, modern content management system.",[1844,1845,1847],"h2",{"id":1846},"before-you-start","Before You Start",[1840,1849,1850],{},"You will need:",[1852,1853,1854],"ul",{},[1855,1856,1857],"li",{},"A new Directus project with admin access.",[1844,1859,1861],{"id":1860},"set-up-your-directus-project","Set Up Your Directus Project",[1840,1863,1864],{},"Start with a Directus Cloud or self-hosted clean install of Directus. Follow the steps below to configure Directus with the necessary collections and permissions.",[1840,1866,1867],{},"First, using the new Directus instance, generate a static token for the admin user by going to the Users Directory. Choose the Administrative User, and scroll down to the Token field and generate a static token. Copy the token and save it. Do not forget to save the user, or you will encounter an \"Invalid token\" error.",[1869,1870,1872],"h3",{"id":1871},"apply-the-cms-template","Apply the CMS Template",[1840,1874,1875,1876,1883],{},"Use the ",[1877,1878,1882],"a",{"href":1879,"rel":1880},"https://github.com/directus-labs/directus-template-cli",[1881],"nofollow","Directus Template CLI"," to apply the CMS template for your project by opening your terminal and running the following command:",[1885,1886,1890],"pre",{"className":1887,"code":1888,"language":1889,"meta":24,"style":24},"language-bash shiki shiki-themes github-light github-light github-dark","npx directus-template-cli@latest apply\n","bash",[1891,1892,1893],"code",{"__ignoreMap":24},[1894,1895,1898,1902,1906],"span",{"class":1896,"line":1897},"line",1,[1894,1899,1901],{"class":1900},"snPdu","npx",[1894,1903,1905],{"class":1904},"sIIMD"," directus-template-cli@latest",[1894,1907,1908],{"class":1904}," apply\n",[1840,1910,1911],{},"Choose Community templates, and select the CMS template. Fill in your Directus URL, and select Directus Access Token as the authentication method, filling in the token created earlier.",[1840,1913,1914],{},"The Directus Template CLI will make the required changes to Directus to add the CMS template. This includes creating the necessary collections, fields, and relationships to manage your content.",[1844,1916,1918],{"id":1917},"set-up-your-nuxt-project","Set Up Your Nuxt Project",[1869,1920,1922],{"id":1921},"initialize-your-project","Initialize Your Project",[1840,1924,1925,1926,1931],{},"Create a new Nuxt project using ",[1877,1927,1930],{"href":1928,"rel":1929},"https://nuxt.com/docs/api/commands/init",[1881],"Nuxi",":",[1885,1933,1935],{"className":1887,"code":1934,"language":1889,"meta":24,"style":24},"npx nuxi@latest init directus-cms\ncd directus-cms\n",[1891,1936,1937,1950],{"__ignoreMap":24},[1894,1938,1939,1941,1944,1947],{"class":1896,"line":1897},[1894,1940,1901],{"class":1900},[1894,1942,1943],{"class":1904}," nuxi@latest",[1894,1945,1946],{"class":1904}," init",[1894,1948,1949],{"class":1904}," directus-cms\n",[1894,1951,1953,1957],{"class":1896,"line":1952},2,[1894,1954,1956],{"class":1955},"sBjJW","cd",[1894,1958,1949],{"class":1904},[1840,1960,1961],{},"Just press enter to accept the defaults. None of the additional packages are required.",[1869,1963,1965],{"id":1964},"configure-nuxt","Configure Nuxt",[1840,1967,1968],{},"Configure Nuxt so that it is able to communicate with the (external) Directus API.",[1840,1970,1971,1972,1975],{},"Create a ",[1891,1973,1974],{},".env"," file with the Directus URL:",[1885,1977,1982],{"className":1978,"code":1980,"language":1981},[1979],"language-text","NUXT_PUBLIC_API_URL=\"http://0.0.0.0:8055\"\n","text",[1891,1983,1980],{"__ignoreMap":24},[1840,1985,1986,1987,1990],{},"Add a type definition for our new environment variable by creating an ",[1891,1988,1989],{},"env.d.ts"," file with the following content:",[1885,1992,1996],{"className":1993,"code":1994,"language":1995,"meta":24,"style":24},"language-ts shiki shiki-themes github-light github-light github-dark","/// \u003Creference types=\"vite/client\" />\ninterface ImportMetaEnv {\n    readonly NUXT_PUBLIC_API_URL: string;\n}\n  \ninterface ImportMeta {\n    readonly env: ImportMetaEnv;\n}\n","ts",[1891,1997,1998,2021,2033,2051,2057,2063,2073,2087],{"__ignoreMap":24},[1894,1999,2000,2004,2008,2011,2015,2018],{"class":1896,"line":1897},[1894,2001,2003],{"class":2002},"sCsY4","/// \u003C",[1894,2005,2007],{"class":2006},"sovSZ","reference",[1894,2009,2010],{"class":1900}," types",[1894,2012,2014],{"class":2013},"s8jYJ","=",[1894,2016,2017],{"class":1904},"\"vite/client\"",[1894,2019,2020],{"class":2002}," />\n",[1894,2022,2023,2026,2029],{"class":1896,"line":1952},[1894,2024,2025],{"class":2013},"interface",[1894,2027,2028],{"class":1900}," ImportMetaEnv",[1894,2030,2032],{"class":2031},"sxrX7"," {\n",[1894,2034,2036,2039,2043,2045,2048],{"class":1896,"line":2035},3,[1894,2037,2038],{"class":2013},"    readonly",[1894,2040,2042],{"class":2041},"sP4rz"," NUXT_PUBLIC_API_URL",[1894,2044,1931],{"class":2013},[1894,2046,2047],{"class":1955}," string",[1894,2049,2050],{"class":2031},";\n",[1894,2052,2054],{"class":1896,"line":2053},4,[1894,2055,2056],{"class":2031},"}\n",[1894,2058,2060],{"class":1896,"line":2059},5,[1894,2061,2062],{"class":2031},"  \n",[1894,2064,2066,2068,2071],{"class":1896,"line":2065},6,[1894,2067,2025],{"class":2013},[1894,2069,2070],{"class":1900}," ImportMeta",[1894,2072,2032],{"class":2031},[1894,2074,2076,2078,2081,2083,2085],{"class":1896,"line":2075},7,[1894,2077,2038],{"class":2013},[1894,2079,2080],{"class":2041}," env",[1894,2082,1931],{"class":2013},[1894,2084,2028],{"class":1900},[1894,2086,2050],{"class":2031},[1894,2088,2090],{"class":1896,"line":2089},8,[1894,2091,2056],{"class":2031},[1840,2093,2094,2095,1931],{},"Depending on your project configuration and if you are in development or production you may need to configure a Nuxt proxy to allow access between your Nuxt project and Directus in your ",[1891,2096,2097],{},"nuxt.config.ts",[1885,2099,2101],{"className":1993,"code":2100,"language":1995,"meta":24,"style":24},"routeRules: {\n    \"/directus/**\": { proxy: `${import.meta.env.NUXT_PUBLIC_API_URL}/**` },\n  },\n",[1891,2102,2103,2111,2147],{"__ignoreMap":24},[1894,2104,2105,2108],{"class":1896,"line":1897},[1894,2106,2107],{"class":1900},"routeRules",[1894,2109,2110],{"class":2031},": {\n",[1894,2112,2113,2116,2119,2122,2125,2128,2131,2133,2136,2138,2141,2144],{"class":1896,"line":1952},[1894,2114,2115],{"class":1904},"    \"/directus/**\"",[1894,2117,2118],{"class":2031},": { proxy: ",[1894,2120,2121],{"class":1904},"`${",[1894,2123,2124],{"class":2013},"import",[1894,2126,2127],{"class":1904},".",[1894,2129,2130],{"class":1955},"meta",[1894,2132,2127],{"class":1904},[1894,2134,2135],{"class":2031},"env",[1894,2137,2127],{"class":1904},[1894,2139,2140],{"class":1955},"NUXT_PUBLIC_API_URL",[1894,2142,2143],{"class":1904},"}/**`",[1894,2145,2146],{"class":2031}," },\n",[1894,2148,2149],{"class":1896,"line":2035},[1894,2150,2151],{"class":2031},"  },\n",[1840,2153,2154,2155],{},"This will allow your Nuxt project to access Directus via your Nuxt URL, eg. ",[1877,2156,2157],{"href":2157,"rel":2158},"http://localhost:3000/directus",[1881],[1840,2160,2161,2162,1931],{},"Configure ",[1877,2163,2166],{"href":2164,"rel":2165},"https://ui.nuxt.com/docs/getting-started/installation/nuxt",[1881],"Nuxt UI",[2168,2169,2170],"ol",{},[1855,2171,2172],{},"Install Nuxt UI:",[1885,2174,2176],{"className":1887,"code":2175,"language":1889,"meta":24,"style":24},"npm i @nuxt/ui\n",[1891,2177,2178],{"__ignoreMap":24},[1894,2179,2180,2183,2186],{"class":1896,"line":1897},[1894,2181,2182],{"class":1900},"npm",[1894,2184,2185],{"class":1904}," i",[1894,2187,2188],{"class":1904}," @nuxt/ui\n",[2168,2190,2191],{"start":2035},[1855,2192,2193,2194,2197],{},"Create a CSS file in ",[1891,2195,2196],{},"app/assets/css/main.css"," and add the following content:",[1885,2199,2203],{"className":2200,"code":2201,"language":2202,"meta":24,"style":24},"language-css shiki shiki-themes github-light github-light github-dark","@import \"tailwindcss\";\n@import \"@nuxt/ui\";\n","css",[1891,2204,2205,2215],{"__ignoreMap":24},[1894,2206,2207,2210,2213],{"class":1896,"line":1897},[1894,2208,2209],{"class":2013},"@import",[1894,2211,2212],{"class":1904}," \"tailwindcss\"",[1894,2214,2050],{"class":2031},[1894,2216,2217,2219,2222],{"class":1896,"line":1952},[1894,2218,2209],{"class":2013},[1894,2220,2221],{"class":1904}," \"@nuxt/ui\"",[1894,2223,2050],{"class":2031},[2168,2225,2226],{"start":2035},[1855,2227,2228,2229,1931],{},"Add the Nuxt UI module to your ",[1891,2230,2097],{},[1885,2232,2234],{"className":1993,"code":2233,"language":1995,"meta":24,"style":24},"modules: ['@nuxt/ui'],\ncss: ['./app/assets/css/main.css'],\n",[1891,2235,2236,2250],{"__ignoreMap":24},[1894,2237,2238,2241,2244,2247],{"class":1896,"line":1897},[1894,2239,2240],{"class":1900},"modules",[1894,2242,2243],{"class":2031},": [",[1894,2245,2246],{"class":1904},"'@nuxt/ui'",[1894,2248,2249],{"class":2031},"],\n",[1894,2251,2252,2254,2256,2259],{"class":1896,"line":1952},[1894,2253,2202],{"class":1900},[1894,2255,2243],{"class":2031},[1894,2257,2258],{"class":1904},"'./app/assets/css/main.css'",[1894,2260,2249],{"class":2031},[1869,2262,2264],{"id":2263},"additional-packages","Additional packages",[1840,2266,2267],{},"To assist in development install the following packages:",[1885,2269,2271],{"className":1887,"code":2270,"language":1889,"meta":24,"style":24},"npm install @directus/sdk @nuxt/ui-pro\n",[1891,2272,2273],{"__ignoreMap":24},[1894,2274,2275,2277,2280,2283],{"class":1896,"line":1897},[1894,2276,2182],{"class":1900},[1894,2278,2279],{"class":1904}," install",[1894,2281,2282],{"class":1904}," @directus/sdk",[1894,2284,2285],{"class":1904}," @nuxt/ui-pro\n",[1869,2287,2289],{"id":2288},"define-a-directus-schema","Define a Directus Schema",[1840,2291,2292,2293,2296],{},"TypeScript needs to know what the structure of the Directus data is. To achieve this create a ",[1891,2294,2295],{},"directus.d.ts"," file in the root of our project which defines our schema and add the Post collection structure:",[1885,2298,2300],{"className":1993,"code":2299,"language":1995,"meta":24,"style":24},"/// \u003Creference types=\"@directus/extensions/api.d.ts\" />\ninterface DirectusSchema {\n    pages: Page[];\n    form_submissions: FormSubmission\n    navigation: Navigation[];\n}\n\ninterface Page {\n    id: number;\n    title: string;\n    permalink: string;\n    status: string;\n    published_at: string;\n    seo: SEOMeta;\n    blocks: Block[];\n}\n\ninterface Navigation {\n    id: string;\n    title: string;\n    items: NavigationItem[];\n}\n\ninterface NavigationItem {\n    id: string;\n    navigation: string;\n    page: string | null;\n    parent: string | null;\n    sort: number;\n    title: string;\n    type: string;\n    url: string | null;\n    post: string | null;\n    children: NavigationItem[];\n}\n\ninterface FormSubmission {\n    id?: number;\n    form: string;\n    values: FormFieldValue[]\n}\n\ninterface FormFieldValue {\n    label: string;\n    value: string;\n    type: string;\n}\n\ninterface Block {\n    id: string;\n    collection: string;\n    item: Hero | RichText;\n    no_index: boolean;\n    no_follow: boolean;\n}\n\ninterface Hero {\n    tagline: string;\n    headline: string;\n    description: string;\n    button_group: ButtonGroup;\n    image: Image;\n}\n\ninterface ButtonGroup {\n    buttons: Button[];\n}\n\ninterface Button {\n    label: string;\n    url: string;\n    variant: ButtonProps['variant'];\n}\n\ninterface Image {\n    id: number;\n    title: string;\n}\n\ninterface RichText {\n    tagline: string;\n    headline: string;\n    content: string;\n    alignment: string;\n    hide_block: boolean;\n}\n\ninterface Pricing {\n    id: number;\n    tagline: string;\n    headline: string;\n    pricing_cards: PricingCard[];\n}\n\ninterface PricingCard {\n    id: number;\n    title: string;\n    description: string;\n    price: string;\n    badge: string;\n    features: string[];\n    pricing: string;\n    is_highlighted: boolean;\n    sort?: number;\n    button: Button;\n}\n\ninterface Form {\n    id: string;\n    headline: string;\n    tagline: string;\n    form: FormElement;\n}\n\ninterface FormElement {\n    id: string;\n    sort: number | null;\n    title: string;\n    is_active: boolean;\n    submit_label: string;\n    on_success: string;\n    success_message: string;\n    success_redirect_url: string | null;\n    fields: FormField[];\n}\n\ninterface FormField {\n    id: string;\n    name: string;\n    type: string;\n    label: string;\n    placeholder: string | null;\n    help: string | null;\n    validation: string | null;\n    width: string;\n    choices: string[]| null;\n    form: string;\n    sort: number;\n    required: boolean;\n}\n\ninterface SEOMeta {\n    title: string;\n    meta_description: string;\n}\n",[1891,2301,2302,2317,2326,2339,2349,2361,2365,2371,2379,2392,2404,2416,2428,2440,2453,2466,2471,2476,2485,2496,2507,2520,2525,2530,2539,2550,2561,2579,2595,2607,2618,2630,2646,2662,2674,2679,2684,2694,2706,2718,2732,2737,2742,2751,2763,2775,2786,2791,2796,2805,2816,2828,2846,2859,2871,2876,2881,2890,2902,2914,2926,2939,2952,2957,2962,2971,2984,2989,2994,3003,3014,3025,3045,3050,3055,3064,3075,3086,3091,3096,3105,3116,3127,3139,3151,3163,3168,3173,3183,3194,3205,3216,3229,3234,3239,3248,3259,3270,3281,3293,3305,3317,3329,3341,3352,3364,3369,3374,3384,3395,3406,3417,3429,3434,3439,3448,3459,3474,3485,3497,3509,3521,3533,3549,3562,3567,3572,3581,3592,3604,3615,3626,3642,3658,3674,3686,3706,3717,3728,3740,3745,3750,3759,3770,3782],{"__ignoreMap":24},[1894,2303,2304,2306,2308,2310,2312,2315],{"class":1896,"line":1897},[1894,2305,2003],{"class":2002},[1894,2307,2007],{"class":2006},[1894,2309,2010],{"class":1900},[1894,2311,2014],{"class":2013},[1894,2313,2314],{"class":1904},"\"@directus/extensions/api.d.ts\"",[1894,2316,2020],{"class":2002},[1894,2318,2319,2321,2324],{"class":1896,"line":1952},[1894,2320,2025],{"class":2013},[1894,2322,2323],{"class":1900}," DirectusSchema",[1894,2325,2032],{"class":2031},[1894,2327,2328,2331,2333,2336],{"class":1896,"line":2035},[1894,2329,2330],{"class":2041},"    pages",[1894,2332,1931],{"class":2013},[1894,2334,2335],{"class":1900}," Page",[1894,2337,2338],{"class":2031},"[];\n",[1894,2340,2341,2344,2346],{"class":1896,"line":2053},[1894,2342,2343],{"class":2041},"    form_submissions",[1894,2345,1931],{"class":2013},[1894,2347,2348],{"class":1900}," FormSubmission\n",[1894,2350,2351,2354,2356,2359],{"class":1896,"line":2059},[1894,2352,2353],{"class":2041},"    navigation",[1894,2355,1931],{"class":2013},[1894,2357,2358],{"class":1900}," Navigation",[1894,2360,2338],{"class":2031},[1894,2362,2363],{"class":1896,"line":2065},[1894,2364,2056],{"class":2031},[1894,2366,2367],{"class":1896,"line":2075},[1894,2368,2370],{"emptyLinePlaceholder":2369},true,"\n",[1894,2372,2373,2375,2377],{"class":1896,"line":2089},[1894,2374,2025],{"class":2013},[1894,2376,2335],{"class":1900},[1894,2378,2032],{"class":2031},[1894,2380,2382,2385,2387,2390],{"class":1896,"line":2381},9,[1894,2383,2384],{"class":2041},"    id",[1894,2386,1931],{"class":2013},[1894,2388,2389],{"class":1955}," number",[1894,2391,2050],{"class":2031},[1894,2393,2395,2398,2400,2402],{"class":1896,"line":2394},10,[1894,2396,2397],{"class":2041},"    title",[1894,2399,1931],{"class":2013},[1894,2401,2047],{"class":1955},[1894,2403,2050],{"class":2031},[1894,2405,2407,2410,2412,2414],{"class":1896,"line":2406},11,[1894,2408,2409],{"class":2041},"    permalink",[1894,2411,1931],{"class":2013},[1894,2413,2047],{"class":1955},[1894,2415,2050],{"class":2031},[1894,2417,2419,2422,2424,2426],{"class":1896,"line":2418},12,[1894,2420,2421],{"class":2041},"    status",[1894,2423,1931],{"class":2013},[1894,2425,2047],{"class":1955},[1894,2427,2050],{"class":2031},[1894,2429,2431,2434,2436,2438],{"class":1896,"line":2430},13,[1894,2432,2433],{"class":2041},"    published_at",[1894,2435,1931],{"class":2013},[1894,2437,2047],{"class":1955},[1894,2439,2050],{"class":2031},[1894,2441,2443,2446,2448,2451],{"class":1896,"line":2442},14,[1894,2444,2445],{"class":2041},"    seo",[1894,2447,1931],{"class":2013},[1894,2449,2450],{"class":1900}," SEOMeta",[1894,2452,2050],{"class":2031},[1894,2454,2456,2459,2461,2464],{"class":1896,"line":2455},15,[1894,2457,2458],{"class":2041},"    blocks",[1894,2460,1931],{"class":2013},[1894,2462,2463],{"class":1900}," Block",[1894,2465,2338],{"class":2031},[1894,2467,2469],{"class":1896,"line":2468},16,[1894,2470,2056],{"class":2031},[1894,2472,2474],{"class":1896,"line":2473},17,[1894,2475,2370],{"emptyLinePlaceholder":2369},[1894,2477,2479,2481,2483],{"class":1896,"line":2478},18,[1894,2480,2025],{"class":2013},[1894,2482,2358],{"class":1900},[1894,2484,2032],{"class":2031},[1894,2486,2488,2490,2492,2494],{"class":1896,"line":2487},19,[1894,2489,2384],{"class":2041},[1894,2491,1931],{"class":2013},[1894,2493,2047],{"class":1955},[1894,2495,2050],{"class":2031},[1894,2497,2499,2501,2503,2505],{"class":1896,"line":2498},20,[1894,2500,2397],{"class":2041},[1894,2502,1931],{"class":2013},[1894,2504,2047],{"class":1955},[1894,2506,2050],{"class":2031},[1894,2508,2510,2513,2515,2518],{"class":1896,"line":2509},21,[1894,2511,2512],{"class":2041},"    items",[1894,2514,1931],{"class":2013},[1894,2516,2517],{"class":1900}," NavigationItem",[1894,2519,2338],{"class":2031},[1894,2521,2523],{"class":1896,"line":2522},22,[1894,2524,2056],{"class":2031},[1894,2526,2528],{"class":1896,"line":2527},23,[1894,2529,2370],{"emptyLinePlaceholder":2369},[1894,2531,2533,2535,2537],{"class":1896,"line":2532},24,[1894,2534,2025],{"class":2013},[1894,2536,2517],{"class":1900},[1894,2538,2032],{"class":2031},[1894,2540,2542,2544,2546,2548],{"class":1896,"line":2541},25,[1894,2543,2384],{"class":2041},[1894,2545,1931],{"class":2013},[1894,2547,2047],{"class":1955},[1894,2549,2050],{"class":2031},[1894,2551,2553,2555,2557,2559],{"class":1896,"line":2552},26,[1894,2554,2353],{"class":2041},[1894,2556,1931],{"class":2013},[1894,2558,2047],{"class":1955},[1894,2560,2050],{"class":2031},[1894,2562,2564,2567,2569,2571,2574,2577],{"class":1896,"line":2563},27,[1894,2565,2566],{"class":2041},"    page",[1894,2568,1931],{"class":2013},[1894,2570,2047],{"class":1955},[1894,2572,2573],{"class":2013}," |",[1894,2575,2576],{"class":1955}," null",[1894,2578,2050],{"class":2031},[1894,2580,2582,2585,2587,2589,2591,2593],{"class":1896,"line":2581},28,[1894,2583,2584],{"class":2041},"    parent",[1894,2586,1931],{"class":2013},[1894,2588,2047],{"class":1955},[1894,2590,2573],{"class":2013},[1894,2592,2576],{"class":1955},[1894,2594,2050],{"class":2031},[1894,2596,2598,2601,2603,2605],{"class":1896,"line":2597},29,[1894,2599,2600],{"class":2041},"    sort",[1894,2602,1931],{"class":2013},[1894,2604,2389],{"class":1955},[1894,2606,2050],{"class":2031},[1894,2608,2610,2612,2614,2616],{"class":1896,"line":2609},30,[1894,2611,2397],{"class":2041},[1894,2613,1931],{"class":2013},[1894,2615,2047],{"class":1955},[1894,2617,2050],{"class":2031},[1894,2619,2621,2624,2626,2628],{"class":1896,"line":2620},31,[1894,2622,2623],{"class":2041},"    type",[1894,2625,1931],{"class":2013},[1894,2627,2047],{"class":1955},[1894,2629,2050],{"class":2031},[1894,2631,2633,2636,2638,2640,2642,2644],{"class":1896,"line":2632},32,[1894,2634,2635],{"class":2041},"    url",[1894,2637,1931],{"class":2013},[1894,2639,2047],{"class":1955},[1894,2641,2573],{"class":2013},[1894,2643,2576],{"class":1955},[1894,2645,2050],{"class":2031},[1894,2647,2649,2652,2654,2656,2658,2660],{"class":1896,"line":2648},33,[1894,2650,2651],{"class":2041},"    post",[1894,2653,1931],{"class":2013},[1894,2655,2047],{"class":1955},[1894,2657,2573],{"class":2013},[1894,2659,2576],{"class":1955},[1894,2661,2050],{"class":2031},[1894,2663,2665,2668,2670,2672],{"class":1896,"line":2664},34,[1894,2666,2667],{"class":2041},"    children",[1894,2669,1931],{"class":2013},[1894,2671,2517],{"class":1900},[1894,2673,2338],{"class":2031},[1894,2675,2677],{"class":1896,"line":2676},35,[1894,2678,2056],{"class":2031},[1894,2680,2682],{"class":1896,"line":2681},36,[1894,2683,2370],{"emptyLinePlaceholder":2369},[1894,2685,2687,2689,2692],{"class":1896,"line":2686},37,[1894,2688,2025],{"class":2013},[1894,2690,2691],{"class":1900}," FormSubmission",[1894,2693,2032],{"class":2031},[1894,2695,2697,2699,2702,2704],{"class":1896,"line":2696},38,[1894,2698,2384],{"class":2041},[1894,2700,2701],{"class":2013},"?:",[1894,2703,2389],{"class":1955},[1894,2705,2050],{"class":2031},[1894,2707,2709,2712,2714,2716],{"class":1896,"line":2708},39,[1894,2710,2711],{"class":2041},"    form",[1894,2713,1931],{"class":2013},[1894,2715,2047],{"class":1955},[1894,2717,2050],{"class":2031},[1894,2719,2721,2724,2726,2729],{"class":1896,"line":2720},40,[1894,2722,2723],{"class":2041},"    values",[1894,2725,1931],{"class":2013},[1894,2727,2728],{"class":1900}," FormFieldValue",[1894,2730,2731],{"class":2031},"[]\n",[1894,2733,2735],{"class":1896,"line":2734},41,[1894,2736,2056],{"class":2031},[1894,2738,2740],{"class":1896,"line":2739},42,[1894,2741,2370],{"emptyLinePlaceholder":2369},[1894,2743,2745,2747,2749],{"class":1896,"line":2744},43,[1894,2746,2025],{"class":2013},[1894,2748,2728],{"class":1900},[1894,2750,2032],{"class":2031},[1894,2752,2754,2757,2759,2761],{"class":1896,"line":2753},44,[1894,2755,2756],{"class":2041},"    label",[1894,2758,1931],{"class":2013},[1894,2760,2047],{"class":1955},[1894,2762,2050],{"class":2031},[1894,2764,2766,2769,2771,2773],{"class":1896,"line":2765},45,[1894,2767,2768],{"class":2041},"    value",[1894,2770,1931],{"class":2013},[1894,2772,2047],{"class":1955},[1894,2774,2050],{"class":2031},[1894,2776,2778,2780,2782,2784],{"class":1896,"line":2777},46,[1894,2779,2623],{"class":2041},[1894,2781,1931],{"class":2013},[1894,2783,2047],{"class":1955},[1894,2785,2050],{"class":2031},[1894,2787,2789],{"class":1896,"line":2788},47,[1894,2790,2056],{"class":2031},[1894,2792,2794],{"class":1896,"line":2793},48,[1894,2795,2370],{"emptyLinePlaceholder":2369},[1894,2797,2799,2801,2803],{"class":1896,"line":2798},49,[1894,2800,2025],{"class":2013},[1894,2802,2463],{"class":1900},[1894,2804,2032],{"class":2031},[1894,2806,2808,2810,2812,2814],{"class":1896,"line":2807},50,[1894,2809,2384],{"class":2041},[1894,2811,1931],{"class":2013},[1894,2813,2047],{"class":1955},[1894,2815,2050],{"class":2031},[1894,2817,2819,2822,2824,2826],{"class":1896,"line":2818},51,[1894,2820,2821],{"class":2041},"    collection",[1894,2823,1931],{"class":2013},[1894,2825,2047],{"class":1955},[1894,2827,2050],{"class":2031},[1894,2829,2831,2834,2836,2839,2841,2844],{"class":1896,"line":2830},52,[1894,2832,2833],{"class":2041},"    item",[1894,2835,1931],{"class":2013},[1894,2837,2838],{"class":1900}," Hero",[1894,2840,2573],{"class":2013},[1894,2842,2843],{"class":1900}," RichText",[1894,2845,2050],{"class":2031},[1894,2847,2849,2852,2854,2857],{"class":1896,"line":2848},53,[1894,2850,2851],{"class":2041},"    no_index",[1894,2853,1931],{"class":2013},[1894,2855,2856],{"class":1955}," boolean",[1894,2858,2050],{"class":2031},[1894,2860,2862,2865,2867,2869],{"class":1896,"line":2861},54,[1894,2863,2864],{"class":2041},"    no_follow",[1894,2866,1931],{"class":2013},[1894,2868,2856],{"class":1955},[1894,2870,2050],{"class":2031},[1894,2872,2874],{"class":1896,"line":2873},55,[1894,2875,2056],{"class":2031},[1894,2877,2879],{"class":1896,"line":2878},56,[1894,2880,2370],{"emptyLinePlaceholder":2369},[1894,2882,2884,2886,2888],{"class":1896,"line":2883},57,[1894,2885,2025],{"class":2013},[1894,2887,2838],{"class":1900},[1894,2889,2032],{"class":2031},[1894,2891,2893,2896,2898,2900],{"class":1896,"line":2892},58,[1894,2894,2895],{"class":2041},"    tagline",[1894,2897,1931],{"class":2013},[1894,2899,2047],{"class":1955},[1894,2901,2050],{"class":2031},[1894,2903,2905,2908,2910,2912],{"class":1896,"line":2904},59,[1894,2906,2907],{"class":2041},"    headline",[1894,2909,1931],{"class":2013},[1894,2911,2047],{"class":1955},[1894,2913,2050],{"class":2031},[1894,2915,2917,2920,2922,2924],{"class":1896,"line":2916},60,[1894,2918,2919],{"class":2041},"    description",[1894,2921,1931],{"class":2013},[1894,2923,2047],{"class":1955},[1894,2925,2050],{"class":2031},[1894,2927,2929,2932,2934,2937],{"class":1896,"line":2928},61,[1894,2930,2931],{"class":2041},"    button_group",[1894,2933,1931],{"class":2013},[1894,2935,2936],{"class":1900}," ButtonGroup",[1894,2938,2050],{"class":2031},[1894,2940,2942,2945,2947,2950],{"class":1896,"line":2941},62,[1894,2943,2944],{"class":2041},"    image",[1894,2946,1931],{"class":2013},[1894,2948,2949],{"class":1900}," Image",[1894,2951,2050],{"class":2031},[1894,2953,2955],{"class":1896,"line":2954},63,[1894,2956,2056],{"class":2031},[1894,2958,2960],{"class":1896,"line":2959},64,[1894,2961,2370],{"emptyLinePlaceholder":2369},[1894,2963,2965,2967,2969],{"class":1896,"line":2964},65,[1894,2966,2025],{"class":2013},[1894,2968,2936],{"class":1900},[1894,2970,2032],{"class":2031},[1894,2972,2974,2977,2979,2982],{"class":1896,"line":2973},66,[1894,2975,2976],{"class":2041},"    buttons",[1894,2978,1931],{"class":2013},[1894,2980,2981],{"class":1900}," Button",[1894,2983,2338],{"class":2031},[1894,2985,2987],{"class":1896,"line":2986},67,[1894,2988,2056],{"class":2031},[1894,2990,2992],{"class":1896,"line":2991},68,[1894,2993,2370],{"emptyLinePlaceholder":2369},[1894,2995,2997,2999,3001],{"class":1896,"line":2996},69,[1894,2998,2025],{"class":2013},[1894,3000,2981],{"class":1900},[1894,3002,2032],{"class":2031},[1894,3004,3006,3008,3010,3012],{"class":1896,"line":3005},70,[1894,3007,2756],{"class":2041},[1894,3009,1931],{"class":2013},[1894,3011,2047],{"class":1955},[1894,3013,2050],{"class":2031},[1894,3015,3017,3019,3021,3023],{"class":1896,"line":3016},71,[1894,3018,2635],{"class":2041},[1894,3020,1931],{"class":2013},[1894,3022,2047],{"class":1955},[1894,3024,2050],{"class":2031},[1894,3026,3028,3031,3033,3036,3039,3042],{"class":1896,"line":3027},72,[1894,3029,3030],{"class":2041},"    variant",[1894,3032,1931],{"class":2013},[1894,3034,3035],{"class":1900}," ButtonProps",[1894,3037,3038],{"class":2031},"[",[1894,3040,3041],{"class":1904},"'variant'",[1894,3043,3044],{"class":2031},"];\n",[1894,3046,3048],{"class":1896,"line":3047},73,[1894,3049,2056],{"class":2031},[1894,3051,3053],{"class":1896,"line":3052},74,[1894,3054,2370],{"emptyLinePlaceholder":2369},[1894,3056,3058,3060,3062],{"class":1896,"line":3057},75,[1894,3059,2025],{"class":2013},[1894,3061,2949],{"class":1900},[1894,3063,2032],{"class":2031},[1894,3065,3067,3069,3071,3073],{"class":1896,"line":3066},76,[1894,3068,2384],{"class":2041},[1894,3070,1931],{"class":2013},[1894,3072,2389],{"class":1955},[1894,3074,2050],{"class":2031},[1894,3076,3078,3080,3082,3084],{"class":1896,"line":3077},77,[1894,3079,2397],{"class":2041},[1894,3081,1931],{"class":2013},[1894,3083,2047],{"class":1955},[1894,3085,2050],{"class":2031},[1894,3087,3089],{"class":1896,"line":3088},78,[1894,3090,2056],{"class":2031},[1894,3092,3094],{"class":1896,"line":3093},79,[1894,3095,2370],{"emptyLinePlaceholder":2369},[1894,3097,3099,3101,3103],{"class":1896,"line":3098},80,[1894,3100,2025],{"class":2013},[1894,3102,2843],{"class":1900},[1894,3104,2032],{"class":2031},[1894,3106,3108,3110,3112,3114],{"class":1896,"line":3107},81,[1894,3109,2895],{"class":2041},[1894,3111,1931],{"class":2013},[1894,3113,2047],{"class":1955},[1894,3115,2050],{"class":2031},[1894,3117,3119,3121,3123,3125],{"class":1896,"line":3118},82,[1894,3120,2907],{"class":2041},[1894,3122,1931],{"class":2013},[1894,3124,2047],{"class":1955},[1894,3126,2050],{"class":2031},[1894,3128,3130,3133,3135,3137],{"class":1896,"line":3129},83,[1894,3131,3132],{"class":2041},"    content",[1894,3134,1931],{"class":2013},[1894,3136,2047],{"class":1955},[1894,3138,2050],{"class":2031},[1894,3140,3142,3145,3147,3149],{"class":1896,"line":3141},84,[1894,3143,3144],{"class":2041},"    alignment",[1894,3146,1931],{"class":2013},[1894,3148,2047],{"class":1955},[1894,3150,2050],{"class":2031},[1894,3152,3154,3157,3159,3161],{"class":1896,"line":3153},85,[1894,3155,3156],{"class":2041},"    hide_block",[1894,3158,1931],{"class":2013},[1894,3160,2856],{"class":1955},[1894,3162,2050],{"class":2031},[1894,3164,3166],{"class":1896,"line":3165},86,[1894,3167,2056],{"class":2031},[1894,3169,3171],{"class":1896,"line":3170},87,[1894,3172,2370],{"emptyLinePlaceholder":2369},[1894,3174,3176,3178,3181],{"class":1896,"line":3175},88,[1894,3177,2025],{"class":2013},[1894,3179,3180],{"class":1900}," Pricing",[1894,3182,2032],{"class":2031},[1894,3184,3186,3188,3190,3192],{"class":1896,"line":3185},89,[1894,3187,2384],{"class":2041},[1894,3189,1931],{"class":2013},[1894,3191,2389],{"class":1955},[1894,3193,2050],{"class":2031},[1894,3195,3197,3199,3201,3203],{"class":1896,"line":3196},90,[1894,3198,2895],{"class":2041},[1894,3200,1931],{"class":2013},[1894,3202,2047],{"class":1955},[1894,3204,2050],{"class":2031},[1894,3206,3208,3210,3212,3214],{"class":1896,"line":3207},91,[1894,3209,2907],{"class":2041},[1894,3211,1931],{"class":2013},[1894,3213,2047],{"class":1955},[1894,3215,2050],{"class":2031},[1894,3217,3219,3222,3224,3227],{"class":1896,"line":3218},92,[1894,3220,3221],{"class":2041},"    pricing_cards",[1894,3223,1931],{"class":2013},[1894,3225,3226],{"class":1900}," PricingCard",[1894,3228,2338],{"class":2031},[1894,3230,3232],{"class":1896,"line":3231},93,[1894,3233,2056],{"class":2031},[1894,3235,3237],{"class":1896,"line":3236},94,[1894,3238,2370],{"emptyLinePlaceholder":2369},[1894,3240,3242,3244,3246],{"class":1896,"line":3241},95,[1894,3243,2025],{"class":2013},[1894,3245,3226],{"class":1900},[1894,3247,2032],{"class":2031},[1894,3249,3251,3253,3255,3257],{"class":1896,"line":3250},96,[1894,3252,2384],{"class":2041},[1894,3254,1931],{"class":2013},[1894,3256,2389],{"class":1955},[1894,3258,2050],{"class":2031},[1894,3260,3262,3264,3266,3268],{"class":1896,"line":3261},97,[1894,3263,2397],{"class":2041},[1894,3265,1931],{"class":2013},[1894,3267,2047],{"class":1955},[1894,3269,2050],{"class":2031},[1894,3271,3273,3275,3277,3279],{"class":1896,"line":3272},98,[1894,3274,2919],{"class":2041},[1894,3276,1931],{"class":2013},[1894,3278,2047],{"class":1955},[1894,3280,2050],{"class":2031},[1894,3282,3284,3287,3289,3291],{"class":1896,"line":3283},99,[1894,3285,3286],{"class":2041},"    price",[1894,3288,1931],{"class":2013},[1894,3290,2047],{"class":1955},[1894,3292,2050],{"class":2031},[1894,3294,3296,3299,3301,3303],{"class":1896,"line":3295},100,[1894,3297,3298],{"class":2041},"    badge",[1894,3300,1931],{"class":2013},[1894,3302,2047],{"class":1955},[1894,3304,2050],{"class":2031},[1894,3306,3308,3311,3313,3315],{"class":1896,"line":3307},101,[1894,3309,3310],{"class":2041},"    features",[1894,3312,1931],{"class":2013},[1894,3314,2047],{"class":1955},[1894,3316,2338],{"class":2031},[1894,3318,3320,3323,3325,3327],{"class":1896,"line":3319},102,[1894,3321,3322],{"class":2041},"    pricing",[1894,3324,1931],{"class":2013},[1894,3326,2047],{"class":1955},[1894,3328,2050],{"class":2031},[1894,3330,3332,3335,3337,3339],{"class":1896,"line":3331},103,[1894,3333,3334],{"class":2041},"    is_highlighted",[1894,3336,1931],{"class":2013},[1894,3338,2856],{"class":1955},[1894,3340,2050],{"class":2031},[1894,3342,3344,3346,3348,3350],{"class":1896,"line":3343},104,[1894,3345,2600],{"class":2041},[1894,3347,2701],{"class":2013},[1894,3349,2389],{"class":1955},[1894,3351,2050],{"class":2031},[1894,3353,3355,3358,3360,3362],{"class":1896,"line":3354},105,[1894,3356,3357],{"class":2041},"    button",[1894,3359,1931],{"class":2013},[1894,3361,2981],{"class":1900},[1894,3363,2050],{"class":2031},[1894,3365,3367],{"class":1896,"line":3366},106,[1894,3368,2056],{"class":2031},[1894,3370,3372],{"class":1896,"line":3371},107,[1894,3373,2370],{"emptyLinePlaceholder":2369},[1894,3375,3377,3379,3382],{"class":1896,"line":3376},108,[1894,3378,2025],{"class":2013},[1894,3380,3381],{"class":1900}," Form",[1894,3383,2032],{"class":2031},[1894,3385,3387,3389,3391,3393],{"class":1896,"line":3386},109,[1894,3388,2384],{"class":2041},[1894,3390,1931],{"class":2013},[1894,3392,2047],{"class":1955},[1894,3394,2050],{"class":2031},[1894,3396,3398,3400,3402,3404],{"class":1896,"line":3397},110,[1894,3399,2907],{"class":2041},[1894,3401,1931],{"class":2013},[1894,3403,2047],{"class":1955},[1894,3405,2050],{"class":2031},[1894,3407,3409,3411,3413,3415],{"class":1896,"line":3408},111,[1894,3410,2895],{"class":2041},[1894,3412,1931],{"class":2013},[1894,3414,2047],{"class":1955},[1894,3416,2050],{"class":2031},[1894,3418,3420,3422,3424,3427],{"class":1896,"line":3419},112,[1894,3421,2711],{"class":2041},[1894,3423,1931],{"class":2013},[1894,3425,3426],{"class":1900}," FormElement",[1894,3428,2050],{"class":2031},[1894,3430,3432],{"class":1896,"line":3431},113,[1894,3433,2056],{"class":2031},[1894,3435,3437],{"class":1896,"line":3436},114,[1894,3438,2370],{"emptyLinePlaceholder":2369},[1894,3440,3442,3444,3446],{"class":1896,"line":3441},115,[1894,3443,2025],{"class":2013},[1894,3445,3426],{"class":1900},[1894,3447,2032],{"class":2031},[1894,3449,3451,3453,3455,3457],{"class":1896,"line":3450},116,[1894,3452,2384],{"class":2041},[1894,3454,1931],{"class":2013},[1894,3456,2047],{"class":1955},[1894,3458,2050],{"class":2031},[1894,3460,3462,3464,3466,3468,3470,3472],{"class":1896,"line":3461},117,[1894,3463,2600],{"class":2041},[1894,3465,1931],{"class":2013},[1894,3467,2389],{"class":1955},[1894,3469,2573],{"class":2013},[1894,3471,2576],{"class":1955},[1894,3473,2050],{"class":2031},[1894,3475,3477,3479,3481,3483],{"class":1896,"line":3476},118,[1894,3478,2397],{"class":2041},[1894,3480,1931],{"class":2013},[1894,3482,2047],{"class":1955},[1894,3484,2050],{"class":2031},[1894,3486,3488,3491,3493,3495],{"class":1896,"line":3487},119,[1894,3489,3490],{"class":2041},"    is_active",[1894,3492,1931],{"class":2013},[1894,3494,2856],{"class":1955},[1894,3496,2050],{"class":2031},[1894,3498,3500,3503,3505,3507],{"class":1896,"line":3499},120,[1894,3501,3502],{"class":2041},"    submit_label",[1894,3504,1931],{"class":2013},[1894,3506,2047],{"class":1955},[1894,3508,2050],{"class":2031},[1894,3510,3512,3515,3517,3519],{"class":1896,"line":3511},121,[1894,3513,3514],{"class":2041},"    on_success",[1894,3516,1931],{"class":2013},[1894,3518,2047],{"class":1955},[1894,3520,2050],{"class":2031},[1894,3522,3524,3527,3529,3531],{"class":1896,"line":3523},122,[1894,3525,3526],{"class":2041},"    success_message",[1894,3528,1931],{"class":2013},[1894,3530,2047],{"class":1955},[1894,3532,2050],{"class":2031},[1894,3534,3536,3539,3541,3543,3545,3547],{"class":1896,"line":3535},123,[1894,3537,3538],{"class":2041},"    success_redirect_url",[1894,3540,1931],{"class":2013},[1894,3542,2047],{"class":1955},[1894,3544,2573],{"class":2013},[1894,3546,2576],{"class":1955},[1894,3548,2050],{"class":2031},[1894,3550,3552,3555,3557,3560],{"class":1896,"line":3551},124,[1894,3553,3554],{"class":2041},"    fields",[1894,3556,1931],{"class":2013},[1894,3558,3559],{"class":1900}," FormField",[1894,3561,2338],{"class":2031},[1894,3563,3565],{"class":1896,"line":3564},125,[1894,3566,2056],{"class":2031},[1894,3568,3570],{"class":1896,"line":3569},126,[1894,3571,2370],{"emptyLinePlaceholder":2369},[1894,3573,3575,3577,3579],{"class":1896,"line":3574},127,[1894,3576,2025],{"class":2013},[1894,3578,3559],{"class":1900},[1894,3580,2032],{"class":2031},[1894,3582,3584,3586,3588,3590],{"class":1896,"line":3583},128,[1894,3585,2384],{"class":2041},[1894,3587,1931],{"class":2013},[1894,3589,2047],{"class":1955},[1894,3591,2050],{"class":2031},[1894,3593,3595,3598,3600,3602],{"class":1896,"line":3594},129,[1894,3596,3597],{"class":2041},"    name",[1894,3599,1931],{"class":2013},[1894,3601,2047],{"class":1955},[1894,3603,2050],{"class":2031},[1894,3605,3607,3609,3611,3613],{"class":1896,"line":3606},130,[1894,3608,2623],{"class":2041},[1894,3610,1931],{"class":2013},[1894,3612,2047],{"class":1955},[1894,3614,2050],{"class":2031},[1894,3616,3618,3620,3622,3624],{"class":1896,"line":3617},131,[1894,3619,2756],{"class":2041},[1894,3621,1931],{"class":2013},[1894,3623,2047],{"class":1955},[1894,3625,2050],{"class":2031},[1894,3627,3629,3632,3634,3636,3638,3640],{"class":1896,"line":3628},132,[1894,3630,3631],{"class":2041},"    placeholder",[1894,3633,1931],{"class":2013},[1894,3635,2047],{"class":1955},[1894,3637,2573],{"class":2013},[1894,3639,2576],{"class":1955},[1894,3641,2050],{"class":2031},[1894,3643,3645,3648,3650,3652,3654,3656],{"class":1896,"line":3644},133,[1894,3646,3647],{"class":2041},"    help",[1894,3649,1931],{"class":2013},[1894,3651,2047],{"class":1955},[1894,3653,2573],{"class":2013},[1894,3655,2576],{"class":1955},[1894,3657,2050],{"class":2031},[1894,3659,3661,3664,3666,3668,3670,3672],{"class":1896,"line":3660},134,[1894,3662,3663],{"class":2041},"    validation",[1894,3665,1931],{"class":2013},[1894,3667,2047],{"class":1955},[1894,3669,2573],{"class":2013},[1894,3671,2576],{"class":1955},[1894,3673,2050],{"class":2031},[1894,3675,3677,3680,3682,3684],{"class":1896,"line":3676},135,[1894,3678,3679],{"class":2041},"    width",[1894,3681,1931],{"class":2013},[1894,3683,2047],{"class":1955},[1894,3685,2050],{"class":2031},[1894,3687,3689,3692,3694,3696,3699,3702,3704],{"class":1896,"line":3688},136,[1894,3690,3691],{"class":2041},"    choices",[1894,3693,1931],{"class":2013},[1894,3695,2047],{"class":1955},[1894,3697,3698],{"class":2031},"[]",[1894,3700,3701],{"class":2013},"|",[1894,3703,2576],{"class":1955},[1894,3705,2050],{"class":2031},[1894,3707,3709,3711,3713,3715],{"class":1896,"line":3708},137,[1894,3710,2711],{"class":2041},[1894,3712,1931],{"class":2013},[1894,3714,2047],{"class":1955},[1894,3716,2050],{"class":2031},[1894,3718,3720,3722,3724,3726],{"class":1896,"line":3719},138,[1894,3721,2600],{"class":2041},[1894,3723,1931],{"class":2013},[1894,3725,2389],{"class":1955},[1894,3727,2050],{"class":2031},[1894,3729,3731,3734,3736,3738],{"class":1896,"line":3730},139,[1894,3732,3733],{"class":2041},"    required",[1894,3735,1931],{"class":2013},[1894,3737,2856],{"class":1955},[1894,3739,2050],{"class":2031},[1894,3741,3743],{"class":1896,"line":3742},140,[1894,3744,2056],{"class":2031},[1894,3746,3748],{"class":1896,"line":3747},141,[1894,3749,2370],{"emptyLinePlaceholder":2369},[1894,3751,3753,3755,3757],{"class":1896,"line":3752},142,[1894,3754,2025],{"class":2013},[1894,3756,2450],{"class":1900},[1894,3758,2032],{"class":2031},[1894,3760,3762,3764,3766,3768],{"class":1896,"line":3761},143,[1894,3763,2397],{"class":2041},[1894,3765,1931],{"class":2013},[1894,3767,2047],{"class":1955},[1894,3769,2050],{"class":2031},[1894,3771,3773,3776,3778,3780],{"class":1896,"line":3772},144,[1894,3774,3775],{"class":2041},"    meta_description",[1894,3777,1931],{"class":2013},[1894,3779,2047],{"class":1955},[1894,3781,2050],{"class":2031},[1894,3783,3785],{"class":1896,"line":3784},145,[1894,3786,2056],{"class":2031},[1869,3788,3790],{"id":3789},"use-nuxt-page-router","Use Nuxt page router",[1840,3792,3793,3794,3797],{},"Configure Nuxt to use the page router and Nuxt UI by editing ",[1891,3795,3796],{},"app.vue"," replacing the content with:",[1885,3799,3803],{"className":3800,"code":3801,"language":3802,"meta":24,"style":24},"language-html shiki shiki-themes github-light github-light github-dark","\u003Ctemplate>\n  \u003CUApp>\n    \u003CNuxtRouteAnnouncer />\n    \u003CNuxtPage />\n  \u003C/UApp>\n\u003C/template>\n","html",[1891,3804,3805,3816,3827,3837,3846,3855],{"__ignoreMap":24},[1894,3806,3807,3810,3813],{"class":1896,"line":1897},[1894,3808,3809],{"class":2031},"\u003C",[1894,3811,3812],{"class":2006},"template",[1894,3814,3815],{"class":2031},">\n",[1894,3817,3818,3821,3825],{"class":1896,"line":1952},[1894,3819,3820],{"class":2031},"  \u003C",[1894,3822,3824],{"class":3823},"sPrNH","UApp",[1894,3826,3815],{"class":2031},[1894,3828,3829,3832,3835],{"class":1896,"line":2035},[1894,3830,3831],{"class":2031},"    \u003C",[1894,3833,3834],{"class":3823},"NuxtRouteAnnouncer",[1894,3836,2020],{"class":2031},[1894,3838,3839,3841,3844],{"class":1896,"line":2053},[1894,3840,3831],{"class":2031},[1894,3842,3843],{"class":3823},"NuxtPage",[1894,3845,2020],{"class":2031},[1894,3847,3848,3851,3853],{"class":1896,"line":2059},[1894,3849,3850],{"class":2031},"  \u003C/",[1894,3852,3824],{"class":3823},[1894,3854,3815],{"class":2031},[1894,3856,3857,3860,3862],{"class":1896,"line":2065},[1894,3858,3859],{"class":2031},"\u003C/",[1894,3861,3812],{"class":2006},[1894,3863,3815],{"class":2031},[1869,3865,3867],{"id":3866},"create-a-directus-plugin","Create a Directus plugin",[1840,3869,3870,3871,3874,3875,3878],{},"Create a Nuxt plugin to streamline accessing Directus throughout your application. Create a new file ",[1891,3872,3873],{},"plugins/directus.ts","\nCopy and paste in the code below, replace the ",[1891,3876,3877],{},"your-website-url"," with your Nuxt URL and port:",[1885,3880,3882],{"className":1993,"code":3881,"language":1995,"meta":24,"style":24},"import { createDirectus, rest, readItem, readItems } from \"@directus/sdk\";\nconst directus = createDirectus\u003CDirectusSchema>(\n    \"http://localhost:3000/directus\",\n).with(rest());\nexport default defineNuxtPlugin(() => {\n    return {\n        provide: { directus, readItem, readItems },\n    };\n});\n",[1891,3883,3884,3899,3921,3929,3946,3965,3972,3977,3982],{"__ignoreMap":24},[1894,3885,3886,3888,3891,3894,3897],{"class":1896,"line":1897},[1894,3887,2124],{"class":2013},[1894,3889,3890],{"class":2031}," { createDirectus, rest, readItem, readItems } ",[1894,3892,3893],{"class":2013},"from",[1894,3895,3896],{"class":1904}," \"@directus/sdk\"",[1894,3898,2050],{"class":2031},[1894,3900,3901,3904,3907,3910,3913,3915,3918],{"class":1896,"line":1952},[1894,3902,3903],{"class":2013},"const",[1894,3905,3906],{"class":1955}," directus",[1894,3908,3909],{"class":2013}," =",[1894,3911,3912],{"class":1900}," createDirectus",[1894,3914,3809],{"class":2031},[1894,3916,3917],{"class":1900},"DirectusSchema",[1894,3919,3920],{"class":2031},">(\n",[1894,3922,3923,3926],{"class":1896,"line":2035},[1894,3924,3925],{"class":1904},"    \"http://localhost:3000/directus\"",[1894,3927,3928],{"class":2031},",\n",[1894,3930,3931,3934,3937,3940,3943],{"class":1896,"line":2053},[1894,3932,3933],{"class":2031},").",[1894,3935,3936],{"class":1900},"with",[1894,3938,3939],{"class":2031},"(",[1894,3941,3942],{"class":1900},"rest",[1894,3944,3945],{"class":2031},"());\n",[1894,3947,3948,3951,3954,3957,3960,3963],{"class":1896,"line":2059},[1894,3949,3950],{"class":2013},"export",[1894,3952,3953],{"class":2013}," default",[1894,3955,3956],{"class":1900}," defineNuxtPlugin",[1894,3958,3959],{"class":2031},"(() ",[1894,3961,3962],{"class":2013},"=>",[1894,3964,2032],{"class":2031},[1894,3966,3967,3970],{"class":1896,"line":2065},[1894,3968,3969],{"class":2013},"    return",[1894,3971,2032],{"class":2031},[1894,3973,3974],{"class":1896,"line":2075},[1894,3975,3976],{"class":2031},"        provide: { directus, readItem, readItems },\n",[1894,3978,3979],{"class":1896,"line":2089},[1894,3980,3981],{"class":2031},"    };\n",[1894,3983,3984],{"class":1896,"line":2381},[1894,3985,3986],{"class":2031},"});\n",[1840,3988,3989],{},"This file handles all the interaction with Directus and provides Nuxt with the required Directus SDK features.",[1844,3991,3993],{"id":3992},"create-the-home-page","Create the Home Page",[1840,3995,3996],{},"The Directus CMS template comes with an example home page. The home page is a collection of different sections which will be created as Nuxt components.",[1840,3998,3999],{},[4000,4001],"img",{"alt":4002,"src":4003},"Directus CMS Home page user interface","/img/directus-home-ui.png",[1840,4005,4006,4007,4010],{},"First, create a home page as a parent for all the components. This will be in ",[1891,4008,4009],{},"pages/index.vue"," with the following content:",[1885,4012,4016],{"className":4013,"code":4014,"language":4015,"meta":24,"style":24},"language-vue shiki shiki-themes github-light github-light github-dark","\u003Cscript setup lang=\"ts\">\nconst { $directus, $readItems } = useNuxtApp()\nconst route = useRoute()\nconst page: Ref\u003CPage | undefined> = ref()\n\nconst { data, error } = await useAsyncData('page', async () => {\n    return $directus.request($readItems('pages', {\n        fields: ['id', 'title', 'permalink', 'published_at', 'seo', 'blocks.collection', 'blocks.item.*', 'blocks.item.image.*', 'blocks.item.button_group.buttons.*', 'blocks.item.items.*', 'blocks.item.pricing_cards.*', 'blocks.item.pricing_cards.button.*', 'blocks.item.form.*', 'blocks.item.form.fields.*'],\n        filter: { title: { _eq: 'Home' } },\n    }))\n})\n\nif (error.value || !data.value) {\n    console.error('Error fetching home page:', error.value)\n} else {\n    page.value = data.value[0]\n}\n\nconst blockToComponent = (collectionName: string) => {\n    switch (collectionName) {\n        default:\n            return 'div'\n    }\n}\n\u003C/script>\n\u003Ctemplate>\n     \u003CUContainer class=\"mt-8\">\n        \u003Cdiv v-if=\"page\" class=\"prose dark:prose-invert\">\n            \u003Ch1>{{ page.title }}\u003C/h1>\n            \u003Cdiv v-for=\"block in page.blocks\" :key=\"block.id\">\n                \u003Ccomponent :is=\"blockToComponent(block.collection)\" v-bind=\"block.item\">\u003C/component>\n            \u003C/div>\n        \u003C/div>\n        \u003Cdiv v-else>Loading...\u003C/div>\n    \u003C/UContainer>\n\u003C/template>\n","vue",[1891,4017,4018,4038,4065,4079,4111,4115,4156,4178,4253,4264,4269,4274,4278,4295,4310,4320,4336,4340,4344,4370,4378,4386,4394,4399,4403,4411,4419,4437,4462,4477,4501,4532,4541,4550,4566,4575],{"__ignoreMap":24},[1894,4019,4020,4022,4025,4028,4031,4033,4036],{"class":1896,"line":1897},[1894,4021,3809],{"class":2031},[1894,4023,4024],{"class":2006},"script",[1894,4026,4027],{"class":1900}," setup",[1894,4029,4030],{"class":1900}," lang",[1894,4032,2014],{"class":2031},[1894,4034,4035],{"class":1904},"\"ts\"",[1894,4037,3815],{"class":2031},[1894,4039,4040,4042,4045,4048,4051,4054,4057,4059,4062],{"class":1896,"line":1952},[1894,4041,3903],{"class":2013},[1894,4043,4044],{"class":2031}," { ",[1894,4046,4047],{"class":1955},"$directus",[1894,4049,4050],{"class":2031},", ",[1894,4052,4053],{"class":1955},"$readItems",[1894,4055,4056],{"class":2031}," } ",[1894,4058,2014],{"class":2013},[1894,4060,4061],{"class":1900}," useNuxtApp",[1894,4063,4064],{"class":2031},"()\n",[1894,4066,4067,4069,4072,4074,4077],{"class":1896,"line":2035},[1894,4068,3903],{"class":2013},[1894,4070,4071],{"class":1955}," route",[1894,4073,3909],{"class":2013},[1894,4075,4076],{"class":1900}," useRoute",[1894,4078,4064],{"class":2031},[1894,4080,4081,4083,4086,4088,4091,4093,4096,4098,4101,4104,4106,4109],{"class":1896,"line":2053},[1894,4082,3903],{"class":2013},[1894,4084,4085],{"class":1955}," page",[1894,4087,1931],{"class":2013},[1894,4089,4090],{"class":1900}," Ref",[1894,4092,3809],{"class":2031},[1894,4094,4095],{"class":1900},"Page",[1894,4097,2573],{"class":2013},[1894,4099,4100],{"class":1955}," undefined",[1894,4102,4103],{"class":2031},"> ",[1894,4105,2014],{"class":2013},[1894,4107,4108],{"class":1900}," ref",[1894,4110,4064],{"class":2031},[1894,4112,4113],{"class":1896,"line":2059},[1894,4114,2370],{"emptyLinePlaceholder":2369},[1894,4116,4117,4119,4121,4124,4126,4129,4131,4133,4136,4139,4141,4144,4146,4149,4152,4154],{"class":1896,"line":2065},[1894,4118,3903],{"class":2013},[1894,4120,4044],{"class":2031},[1894,4122,4123],{"class":1955},"data",[1894,4125,4050],{"class":2031},[1894,4127,4128],{"class":1955},"error",[1894,4130,4056],{"class":2031},[1894,4132,2014],{"class":2013},[1894,4134,4135],{"class":2013}," await",[1894,4137,4138],{"class":1900}," useAsyncData",[1894,4140,3939],{"class":2031},[1894,4142,4143],{"class":1904},"'page'",[1894,4145,4050],{"class":2031},[1894,4147,4148],{"class":2013},"async",[1894,4150,4151],{"class":2031}," () ",[1894,4153,3962],{"class":2013},[1894,4155,2032],{"class":2031},[1894,4157,4158,4160,4163,4166,4168,4170,4172,4175],{"class":1896,"line":2075},[1894,4159,3969],{"class":2013},[1894,4161,4162],{"class":2031}," $directus.",[1894,4164,4165],{"class":1900},"request",[1894,4167,3939],{"class":2031},[1894,4169,4053],{"class":1900},[1894,4171,3939],{"class":2031},[1894,4173,4174],{"class":1904},"'pages'",[1894,4176,4177],{"class":2031},", {\n",[1894,4179,4180,4183,4186,4188,4191,4193,4196,4198,4201,4203,4206,4208,4211,4213,4216,4218,4221,4223,4226,4228,4231,4233,4236,4238,4241,4243,4246,4248,4251],{"class":1896,"line":2089},[1894,4181,4182],{"class":2031},"        fields: [",[1894,4184,4185],{"class":1904},"'id'",[1894,4187,4050],{"class":2031},[1894,4189,4190],{"class":1904},"'title'",[1894,4192,4050],{"class":2031},[1894,4194,4195],{"class":1904},"'permalink'",[1894,4197,4050],{"class":2031},[1894,4199,4200],{"class":1904},"'published_at'",[1894,4202,4050],{"class":2031},[1894,4204,4205],{"class":1904},"'seo'",[1894,4207,4050],{"class":2031},[1894,4209,4210],{"class":1904},"'blocks.collection'",[1894,4212,4050],{"class":2031},[1894,4214,4215],{"class":1904},"'blocks.item.*'",[1894,4217,4050],{"class":2031},[1894,4219,4220],{"class":1904},"'blocks.item.image.*'",[1894,4222,4050],{"class":2031},[1894,4224,4225],{"class":1904},"'blocks.item.button_group.buttons.*'",[1894,4227,4050],{"class":2031},[1894,4229,4230],{"class":1904},"'blocks.item.items.*'",[1894,4232,4050],{"class":2031},[1894,4234,4235],{"class":1904},"'blocks.item.pricing_cards.*'",[1894,4237,4050],{"class":2031},[1894,4239,4240],{"class":1904},"'blocks.item.pricing_cards.button.*'",[1894,4242,4050],{"class":2031},[1894,4244,4245],{"class":1904},"'blocks.item.form.*'",[1894,4247,4050],{"class":2031},[1894,4249,4250],{"class":1904},"'blocks.item.form.fields.*'",[1894,4252,2249],{"class":2031},[1894,4254,4255,4258,4261],{"class":1896,"line":2381},[1894,4256,4257],{"class":2031},"        filter: { title: { _eq: ",[1894,4259,4260],{"class":1904},"'Home'",[1894,4262,4263],{"class":2031}," } },\n",[1894,4265,4266],{"class":1896,"line":2394},[1894,4267,4268],{"class":2031},"    }))\n",[1894,4270,4271],{"class":1896,"line":2406},[1894,4272,4273],{"class":2031},"})\n",[1894,4275,4276],{"class":1896,"line":2418},[1894,4277,2370],{"emptyLinePlaceholder":2369},[1894,4279,4280,4283,4286,4289,4292],{"class":1896,"line":2430},[1894,4281,4282],{"class":2013},"if",[1894,4284,4285],{"class":2031}," (error.value ",[1894,4287,4288],{"class":2013},"||",[1894,4290,4291],{"class":2013}," !",[1894,4293,4294],{"class":2031},"data.value) {\n",[1894,4296,4297,4300,4302,4304,4307],{"class":1896,"line":2442},[1894,4298,4299],{"class":2031},"    console.",[1894,4301,4128],{"class":1900},[1894,4303,3939],{"class":2031},[1894,4305,4306],{"class":1904},"'Error fetching home page:'",[1894,4308,4309],{"class":2031},", error.value)\n",[1894,4311,4312,4315,4318],{"class":1896,"line":2455},[1894,4313,4314],{"class":2031},"} ",[1894,4316,4317],{"class":2013},"else",[1894,4319,2032],{"class":2031},[1894,4321,4322,4325,4327,4330,4333],{"class":1896,"line":2468},[1894,4323,4324],{"class":2031},"    page.value ",[1894,4326,2014],{"class":2013},[1894,4328,4329],{"class":2031}," data.value[",[1894,4331,4332],{"class":1955},"0",[1894,4334,4335],{"class":2031},"]\n",[1894,4337,4338],{"class":1896,"line":2473},[1894,4339,2056],{"class":2031},[1894,4341,4342],{"class":1896,"line":2478},[1894,4343,2370],{"emptyLinePlaceholder":2369},[1894,4345,4346,4348,4351,4353,4356,4359,4361,4363,4366,4368],{"class":1896,"line":2487},[1894,4347,3903],{"class":2013},[1894,4349,4350],{"class":1900}," blockToComponent",[1894,4352,3909],{"class":2013},[1894,4354,4355],{"class":2031}," (",[1894,4357,4358],{"class":2041},"collectionName",[1894,4360,1931],{"class":2013},[1894,4362,2047],{"class":1955},[1894,4364,4365],{"class":2031},") ",[1894,4367,3962],{"class":2013},[1894,4369,2032],{"class":2031},[1894,4371,4372,4375],{"class":1896,"line":2498},[1894,4373,4374],{"class":2013},"    switch",[1894,4376,4377],{"class":2031}," (collectionName) {\n",[1894,4379,4380,4383],{"class":1896,"line":2509},[1894,4381,4382],{"class":2013},"        default",[1894,4384,4385],{"class":2031},":\n",[1894,4387,4388,4391],{"class":1896,"line":2522},[1894,4389,4390],{"class":2013},"            return",[1894,4392,4393],{"class":1904}," 'div'\n",[1894,4395,4396],{"class":1896,"line":2527},[1894,4397,4398],{"class":2031},"    }\n",[1894,4400,4401],{"class":1896,"line":2532},[1894,4402,2056],{"class":2031},[1894,4404,4405,4407,4409],{"class":1896,"line":2541},[1894,4406,3859],{"class":2031},[1894,4408,4024],{"class":2006},[1894,4410,3815],{"class":2031},[1894,4412,4413,4415,4417],{"class":1896,"line":2552},[1894,4414,3809],{"class":2031},[1894,4416,3812],{"class":2006},[1894,4418,3815],{"class":2031},[1894,4420,4421,4424,4427,4430,4432,4435],{"class":1896,"line":2563},[1894,4422,4423],{"class":2031},"     \u003C",[1894,4425,4426],{"class":2006},"UContainer",[1894,4428,4429],{"class":1900}," class",[1894,4431,2014],{"class":2031},[1894,4433,4434],{"class":1904},"\"mt-8\"",[1894,4436,3815],{"class":2031},[1894,4438,4439,4442,4445,4448,4450,4453,4455,4457,4460],{"class":1896,"line":2581},[1894,4440,4441],{"class":2031},"        \u003C",[1894,4443,4444],{"class":2006},"div",[1894,4446,4447],{"class":1900}," v-if",[1894,4449,2014],{"class":2031},[1894,4451,4452],{"class":1904},"\"page\"",[1894,4454,4429],{"class":1900},[1894,4456,2014],{"class":2031},[1894,4458,4459],{"class":1904},"\"prose dark:prose-invert\"",[1894,4461,3815],{"class":2031},[1894,4463,4464,4467,4470,4473,4475],{"class":1896,"line":2597},[1894,4465,4466],{"class":2031},"            \u003C",[1894,4468,4469],{"class":2006},"h1",[1894,4471,4472],{"class":2031},">{{ page.title }}\u003C/",[1894,4474,4469],{"class":2006},[1894,4476,3815],{"class":2031},[1894,4478,4479,4481,4483,4486,4488,4491,4494,4496,4499],{"class":1896,"line":2609},[1894,4480,4466],{"class":2031},[1894,4482,4444],{"class":2006},[1894,4484,4485],{"class":1900}," v-for",[1894,4487,2014],{"class":2031},[1894,4489,4490],{"class":1904},"\"block in page.blocks\"",[1894,4492,4493],{"class":1900}," :key",[1894,4495,2014],{"class":2031},[1894,4497,4498],{"class":1904},"\"block.id\"",[1894,4500,3815],{"class":2031},[1894,4502,4503,4506,4509,4512,4514,4517,4520,4522,4525,4528,4530],{"class":1896,"line":2620},[1894,4504,4505],{"class":2031},"                \u003C",[1894,4507,4508],{"class":2006},"component",[1894,4510,4511],{"class":1900}," :is",[1894,4513,2014],{"class":2031},[1894,4515,4516],{"class":1904},"\"blockToComponent(block.collection)\"",[1894,4518,4519],{"class":1900}," v-bind",[1894,4521,2014],{"class":2031},[1894,4523,4524],{"class":1904},"\"block.item\"",[1894,4526,4527],{"class":2031},">\u003C/",[1894,4529,4508],{"class":2006},[1894,4531,3815],{"class":2031},[1894,4533,4534,4537,4539],{"class":1896,"line":2632},[1894,4535,4536],{"class":2031},"            \u003C/",[1894,4538,4444],{"class":2006},[1894,4540,3815],{"class":2031},[1894,4542,4543,4546,4548],{"class":1896,"line":2648},[1894,4544,4545],{"class":2031},"        \u003C/",[1894,4547,4444],{"class":2006},[1894,4549,3815],{"class":2031},[1894,4551,4552,4554,4556,4559,4562,4564],{"class":1896,"line":2664},[1894,4553,4441],{"class":2031},[1894,4555,4444],{"class":2006},[1894,4557,4558],{"class":1900}," v-else",[1894,4560,4561],{"class":2031},">Loading...\u003C/",[1894,4563,4444],{"class":2006},[1894,4565,3815],{"class":2031},[1894,4567,4568,4571,4573],{"class":1896,"line":2676},[1894,4569,4570],{"class":2031},"    \u003C/",[1894,4572,4426],{"class":2006},[1894,4574,3815],{"class":2031},[1894,4576,4577,4579,4581],{"class":1896,"line":2681},[1894,4578,3859],{"class":2031},[1894,4580,3812],{"class":2006},[1894,4582,3815],{"class":2031},[1840,4584,4585,4586,4589],{},"This page uses the Directus plugin to fetch the home page data which can then be passed to the components as they are created. Note the ",[1891,4587,4588],{},"v-for"," loop which will iterate through the blocks in the home page and render each as a component.",[1840,4591,4592,4593,4596,4597,4600],{},"Next, create each component. To work out what properties each component needs use Directus Studio. Go to Settings -> Data Model and select the block corresponding to the component you are creating. For example the Hero block can be found under ",[1891,4594,4595],{},"blocks"," -> ",[1891,4598,4599],{},"block_hero",". Click on it to the fields and their types. This is how the properties were identified for each component below.",[1869,4602,4604],{"id":4603},"hero-section","Hero Section",[1840,4606,4607,4608,4611],{},"Create a new file ",[1891,4609,4610],{},"components/Hero.vue"," and add the following code:",[1885,4613,4615],{"className":4013,"code":4614,"language":4015,"meta":24,"style":24},"\u003Cscript setup lang=\"ts\">\nimport type { ButtonProps } from '@nuxt/ui';\n\nconst props = defineProps\u003C{\n    id: string,\n    tagline: string,\n    headline: string,\n    description: string,\n    button_group?: ButtonGroup,\n    image: Image,\n}>()\n\nconst links: Ref\u003CButtonProps[]> = ref([])\n\nif (props.button_group) {\n    for (const button of props.button_group.buttons) {\n        links.value.push({\n            label: button.label,\n            to: button.url || '/',\n            variant: (button.variant === \"default\" ? \"solid\" : button.variant) as ButtonProps['variant'],\n        })\n    }\n}\n\u003C/script>\n\u003Ctemplate>\n    \u003CUPageHero\n        :title=\"headline\"\n        :description=\"description\"\n        :headline=\"tagline\"\n        :links=\"links\"\n        orientation=\"horizontal\"\n    >\n      \u003Cimg\n        :src=\"'/directus/assets/' + image.id\"\n        :alt=\"image.title || ''\"\n        class=\"rounded-lg shadow-2xl ring ring-(--ui-border)\"\n        />\n    \u003C/UPageHero>\n\u003C/template>\n",[1891,4616,4617,4633,4650,4654,4669,4679,4689,4699,4709,4719,4729,4734,4738,4764,4768,4775,4793,4804,4809,4821,4855,4860,4864,4868,4876,4884,4891,4901,4911,4921,4931,4941,4946,4954,4964,4974,4984,4989,4998],{"__ignoreMap":24},[1894,4618,4619,4621,4623,4625,4627,4629,4631],{"class":1896,"line":1897},[1894,4620,3809],{"class":2031},[1894,4622,4024],{"class":2006},[1894,4624,4027],{"class":1900},[1894,4626,4030],{"class":1900},[1894,4628,2014],{"class":2031},[1894,4630,4035],{"class":1904},[1894,4632,3815],{"class":2031},[1894,4634,4635,4637,4640,4643,4645,4648],{"class":1896,"line":1952},[1894,4636,2124],{"class":2013},[1894,4638,4639],{"class":2013}," type",[1894,4641,4642],{"class":2031}," { ButtonProps } ",[1894,4644,3893],{"class":2013},[1894,4646,4647],{"class":1904}," '@nuxt/ui'",[1894,4649,2050],{"class":2031},[1894,4651,4652],{"class":1896,"line":2035},[1894,4653,2370],{"emptyLinePlaceholder":2369},[1894,4655,4656,4658,4661,4663,4666],{"class":1896,"line":2053},[1894,4657,3903],{"class":2013},[1894,4659,4660],{"class":1955}," props",[1894,4662,3909],{"class":2013},[1894,4664,4665],{"class":1900}," defineProps",[1894,4667,4668],{"class":2031},"\u003C{\n",[1894,4670,4671,4673,4675,4677],{"class":1896,"line":2059},[1894,4672,2384],{"class":2041},[1894,4674,1931],{"class":2013},[1894,4676,2047],{"class":1955},[1894,4678,3928],{"class":2031},[1894,4680,4681,4683,4685,4687],{"class":1896,"line":2065},[1894,4682,2895],{"class":2041},[1894,4684,1931],{"class":2013},[1894,4686,2047],{"class":1955},[1894,4688,3928],{"class":2031},[1894,4690,4691,4693,4695,4697],{"class":1896,"line":2075},[1894,4692,2907],{"class":2041},[1894,4694,1931],{"class":2013},[1894,4696,2047],{"class":1955},[1894,4698,3928],{"class":2031},[1894,4700,4701,4703,4705,4707],{"class":1896,"line":2089},[1894,4702,2919],{"class":2041},[1894,4704,1931],{"class":2013},[1894,4706,2047],{"class":1955},[1894,4708,3928],{"class":2031},[1894,4710,4711,4713,4715,4717],{"class":1896,"line":2381},[1894,4712,2931],{"class":2041},[1894,4714,2701],{"class":2013},[1894,4716,2936],{"class":1900},[1894,4718,3928],{"class":2031},[1894,4720,4721,4723,4725,4727],{"class":1896,"line":2394},[1894,4722,2944],{"class":2041},[1894,4724,1931],{"class":2013},[1894,4726,2949],{"class":1900},[1894,4728,3928],{"class":2031},[1894,4730,4731],{"class":1896,"line":2406},[1894,4732,4733],{"class":2031},"}>()\n",[1894,4735,4736],{"class":1896,"line":2418},[1894,4737,2370],{"emptyLinePlaceholder":2369},[1894,4739,4740,4742,4745,4747,4749,4751,4754,4757,4759,4761],{"class":1896,"line":2430},[1894,4741,3903],{"class":2013},[1894,4743,4744],{"class":1955}," links",[1894,4746,1931],{"class":2013},[1894,4748,4090],{"class":1900},[1894,4750,3809],{"class":2031},[1894,4752,4753],{"class":1900},"ButtonProps",[1894,4755,4756],{"class":2031},"[]> ",[1894,4758,2014],{"class":2013},[1894,4760,4108],{"class":1900},[1894,4762,4763],{"class":2031},"([])\n",[1894,4765,4766],{"class":1896,"line":2442},[1894,4767,2370],{"emptyLinePlaceholder":2369},[1894,4769,4770,4772],{"class":1896,"line":2455},[1894,4771,4282],{"class":2013},[1894,4773,4774],{"class":2031}," (props.button_group) {\n",[1894,4776,4777,4780,4782,4784,4787,4790],{"class":1896,"line":2468},[1894,4778,4779],{"class":2013},"    for",[1894,4781,4355],{"class":2031},[1894,4783,3903],{"class":2013},[1894,4785,4786],{"class":1955}," button",[1894,4788,4789],{"class":2013}," of",[1894,4791,4792],{"class":2031}," props.button_group.buttons) {\n",[1894,4794,4795,4798,4801],{"class":1896,"line":2473},[1894,4796,4797],{"class":2031},"        links.value.",[1894,4799,4800],{"class":1900},"push",[1894,4802,4803],{"class":2031},"({\n",[1894,4805,4806],{"class":1896,"line":2478},[1894,4807,4808],{"class":2031},"            label: button.label,\n",[1894,4810,4811,4814,4816,4819],{"class":1896,"line":2487},[1894,4812,4813],{"class":2031},"            to: button.url ",[1894,4815,4288],{"class":2013},[1894,4817,4818],{"class":1904}," '/'",[1894,4820,3928],{"class":2031},[1894,4822,4823,4826,4829,4832,4835,4838,4841,4844,4847,4849,4851,4853],{"class":1896,"line":2498},[1894,4824,4825],{"class":2031},"            variant: (button.variant ",[1894,4827,4828],{"class":2013},"===",[1894,4830,4831],{"class":1904}," \"default\"",[1894,4833,4834],{"class":2013}," ?",[1894,4836,4837],{"class":1904}," \"solid\"",[1894,4839,4840],{"class":2013}," :",[1894,4842,4843],{"class":2031}," button.variant) ",[1894,4845,4846],{"class":2013},"as",[1894,4848,3035],{"class":1900},[1894,4850,3038],{"class":2031},[1894,4852,3041],{"class":1904},[1894,4854,2249],{"class":2031},[1894,4856,4857],{"class":1896,"line":2509},[1894,4858,4859],{"class":2031},"        })\n",[1894,4861,4862],{"class":1896,"line":2522},[1894,4863,4398],{"class":2031},[1894,4865,4866],{"class":1896,"line":2527},[1894,4867,2056],{"class":2031},[1894,4869,4870,4872,4874],{"class":1896,"line":2532},[1894,4871,3859],{"class":2031},[1894,4873,4024],{"class":2006},[1894,4875,3815],{"class":2031},[1894,4877,4878,4880,4882],{"class":1896,"line":2541},[1894,4879,3809],{"class":2031},[1894,4881,3812],{"class":2006},[1894,4883,3815],{"class":2031},[1894,4885,4886,4888],{"class":1896,"line":2552},[1894,4887,3831],{"class":2031},[1894,4889,4890],{"class":2006},"UPageHero\n",[1894,4892,4893,4896,4898],{"class":1896,"line":2563},[1894,4894,4895],{"class":1900},"        :title",[1894,4897,2014],{"class":2031},[1894,4899,4900],{"class":1904},"\"headline\"\n",[1894,4902,4903,4906,4908],{"class":1896,"line":2581},[1894,4904,4905],{"class":1900},"        :description",[1894,4907,2014],{"class":2031},[1894,4909,4910],{"class":1904},"\"description\"\n",[1894,4912,4913,4916,4918],{"class":1896,"line":2597},[1894,4914,4915],{"class":1900},"        :headline",[1894,4917,2014],{"class":2031},[1894,4919,4920],{"class":1904},"\"tagline\"\n",[1894,4922,4923,4926,4928],{"class":1896,"line":2609},[1894,4924,4925],{"class":1900},"        :links",[1894,4927,2014],{"class":2031},[1894,4929,4930],{"class":1904},"\"links\"\n",[1894,4932,4933,4936,4938],{"class":1896,"line":2620},[1894,4934,4935],{"class":1900},"        orientation",[1894,4937,2014],{"class":2031},[1894,4939,4940],{"class":1904},"\"horizontal\"\n",[1894,4942,4943],{"class":1896,"line":2632},[1894,4944,4945],{"class":2031},"    >\n",[1894,4947,4948,4951],{"class":1896,"line":2648},[1894,4949,4950],{"class":2031},"      \u003C",[1894,4952,4953],{"class":2006},"img\n",[1894,4955,4956,4959,4961],{"class":1896,"line":2664},[1894,4957,4958],{"class":1900},"        :src",[1894,4960,2014],{"class":2031},[1894,4962,4963],{"class":1904},"\"'/directus/assets/' + image.id\"\n",[1894,4965,4966,4969,4971],{"class":1896,"line":2676},[1894,4967,4968],{"class":1900},"        :alt",[1894,4970,2014],{"class":2031},[1894,4972,4973],{"class":1904},"\"image.title || ''\"\n",[1894,4975,4976,4979,4981],{"class":1896,"line":2681},[1894,4977,4978],{"class":1900},"        class",[1894,4980,2014],{"class":2031},[1894,4982,4983],{"class":1904},"\"rounded-lg shadow-2xl ring ring-(--ui-border)\"\n",[1894,4985,4986],{"class":1896,"line":2686},[1894,4987,4988],{"class":2031},"        />\n",[1894,4990,4991,4993,4996],{"class":1896,"line":2696},[1894,4992,4570],{"class":2031},[1894,4994,4995],{"class":2006},"UPageHero",[1894,4997,3815],{"class":2031},[1894,4999,5000,5002,5004],{"class":1896,"line":2708},[1894,5001,3859],{"class":2031},[1894,5003,3812],{"class":2006},[1894,5005,3815],{"class":2031},[1840,5007,5008,5009,5011,5012,5015,5016,2127],{},"This component uses the ",[1891,5010,4995],{}," component from Nuxt UI Pro. The ",[1891,5013,5014],{},"props"," object is used to define the properties that are passed to the component from Directus CMS. As the properties used for the buttons in DIrectus don't match those used in Nuxt UI they are manipulated and then stored in ",[1891,5017,5018],{},"links",[1840,5020,5021,5022,5025],{},"To use the new Hero component import it at the top of the ",[1891,5023,5024],{},"index.vue"," file:",[1885,5027,5029],{"className":1993,"code":5028,"language":1995,"meta":24,"style":24},"import Hero from '../components/Hero.vue'\n",[1891,5030,5031],{"__ignoreMap":24},[1894,5032,5033,5035,5038,5040],{"class":1896,"line":1897},[1894,5034,2124],{"class":2013},[1894,5036,5037],{"class":2031}," Hero ",[1894,5039,3893],{"class":2013},[1894,5041,5042],{"class":1904}," '../components/Hero.vue'\n",[1840,5044,5045,5046,5049,5050,5053,5054,5057],{},"Then add it as a ",[1891,5047,5048],{},"case"," to the ",[1891,5051,5052],{},"blockToComponent"," switch statement (just before the ",[1891,5055,5056],{},"default"," case):",[1885,5059,5061],{"className":1993,"code":5060,"language":1995,"meta":24,"style":24},"case 'block_hero':\n    return Hero\n",[1891,5062,5063,5072],{"__ignoreMap":24},[1894,5064,5065,5067,5070],{"class":1896,"line":1897},[1894,5066,5048],{"class":2013},[1894,5068,5069],{"class":1904}," 'block_hero'",[1894,5071,4385],{"class":2031},[1894,5073,5074,5076],{"class":1896,"line":1952},[1894,5075,3969],{"class":2013},[1894,5077,5078],{"class":2031}," Hero\n",[1840,5080,5081,5082,5084],{},"Visit ",[1891,5083,3877],{}," in the browser and you should see the Hero section of the home page properly laid out and with all its data.",[1869,5086,5088],{"id":5087},"rich-text-section","Rich Text Section",[1840,5090,4607,5091,4611],{},[1891,5092,5093],{},"components/RichText.vue",[1885,5095,5097],{"className":4013,"code":5096,"language":4015,"meta":24,"style":24},"\u003Cscript setup lang=\"ts\">\ndefineProps\u003C{\n    id: string,\n    tagline: string,\n    headline: string,\n    content: string,\n    alignment: string\n}>()\n\u003C/script>\n\u003Ctemplate>\n    \u003CUPageHero\n        :title=\"headline\"\n        :headline=\"tagline\">\n        \u003Ctemplate #description>\n            \u003Cdiv v-html=\"content\">\u003C/div>\n        \u003C/template>\n    \u003C/UPageHero>\n\u003C/template>\n",[1891,5098,5099,5115,5122,5132,5142,5152,5162,5171,5175,5183,5191,5197,5205,5216,5230,5250,5258,5266],{"__ignoreMap":24},[1894,5100,5101,5103,5105,5107,5109,5111,5113],{"class":1896,"line":1897},[1894,5102,3809],{"class":2031},[1894,5104,4024],{"class":2006},[1894,5106,4027],{"class":1900},[1894,5108,4030],{"class":1900},[1894,5110,2014],{"class":2031},[1894,5112,4035],{"class":1904},[1894,5114,3815],{"class":2031},[1894,5116,5117,5120],{"class":1896,"line":1952},[1894,5118,5119],{"class":1900},"defineProps",[1894,5121,4668],{"class":2031},[1894,5123,5124,5126,5128,5130],{"class":1896,"line":2035},[1894,5125,2384],{"class":2041},[1894,5127,1931],{"class":2013},[1894,5129,2047],{"class":1955},[1894,5131,3928],{"class":2031},[1894,5133,5134,5136,5138,5140],{"class":1896,"line":2053},[1894,5135,2895],{"class":2041},[1894,5137,1931],{"class":2013},[1894,5139,2047],{"class":1955},[1894,5141,3928],{"class":2031},[1894,5143,5144,5146,5148,5150],{"class":1896,"line":2059},[1894,5145,2907],{"class":2041},[1894,5147,1931],{"class":2013},[1894,5149,2047],{"class":1955},[1894,5151,3928],{"class":2031},[1894,5153,5154,5156,5158,5160],{"class":1896,"line":2065},[1894,5155,3132],{"class":2041},[1894,5157,1931],{"class":2013},[1894,5159,2047],{"class":1955},[1894,5161,3928],{"class":2031},[1894,5163,5164,5166,5168],{"class":1896,"line":2075},[1894,5165,3144],{"class":2041},[1894,5167,1931],{"class":2013},[1894,5169,5170],{"class":1955}," string\n",[1894,5172,5173],{"class":1896,"line":2089},[1894,5174,4733],{"class":2031},[1894,5176,5177,5179,5181],{"class":1896,"line":2381},[1894,5178,3859],{"class":2031},[1894,5180,4024],{"class":2006},[1894,5182,3815],{"class":2031},[1894,5184,5185,5187,5189],{"class":1896,"line":2394},[1894,5186,3809],{"class":2031},[1894,5188,3812],{"class":2006},[1894,5190,3815],{"class":2031},[1894,5192,5193,5195],{"class":1896,"line":2406},[1894,5194,3831],{"class":2031},[1894,5196,4890],{"class":2006},[1894,5198,5199,5201,5203],{"class":1896,"line":2418},[1894,5200,4895],{"class":1900},[1894,5202,2014],{"class":2031},[1894,5204,4900],{"class":1904},[1894,5206,5207,5209,5211,5214],{"class":1896,"line":2430},[1894,5208,4915],{"class":1900},[1894,5210,2014],{"class":2031},[1894,5212,5213],{"class":1904},"\"tagline\"",[1894,5215,3815],{"class":2031},[1894,5217,5218,5220,5222,5225,5228],{"class":1896,"line":2442},[1894,5219,4441],{"class":2031},[1894,5221,3812],{"class":2006},[1894,5223,5224],{"class":2031}," #",[1894,5226,5227],{"class":1900},"description",[1894,5229,3815],{"class":2031},[1894,5231,5232,5234,5236,5239,5241,5244,5246,5248],{"class":1896,"line":2455},[1894,5233,4466],{"class":2031},[1894,5235,4444],{"class":2006},[1894,5237,5238],{"class":1900}," v-html",[1894,5240,2014],{"class":2031},[1894,5242,5243],{"class":1904},"\"content\"",[1894,5245,4527],{"class":2031},[1894,5247,4444],{"class":2006},[1894,5249,3815],{"class":2031},[1894,5251,5252,5254,5256],{"class":1896,"line":2468},[1894,5253,4545],{"class":2031},[1894,5255,3812],{"class":2006},[1894,5257,3815],{"class":2031},[1894,5259,5260,5262,5264],{"class":1896,"line":2473},[1894,5261,4570],{"class":2031},[1894,5263,4995],{"class":2006},[1894,5265,3815],{"class":2031},[1894,5267,5268,5270,5272],{"class":1896,"line":2478},[1894,5269,3859],{"class":2031},[1894,5271,3812],{"class":2006},[1894,5273,3815],{"class":2031},[1840,5275,5276,5277,5025],{},"To use the new RichText component import it at the top of the ",[1891,5278,5024],{},[1885,5280,5282],{"className":1993,"code":5281,"language":1995,"meta":24,"style":24},"import RichText from '../components/RichText.vue'\n",[1891,5283,5284],{"__ignoreMap":24},[1894,5285,5286,5288,5291,5293],{"class":1896,"line":1897},[1894,5287,2124],{"class":2013},[1894,5289,5290],{"class":2031}," RichText ",[1894,5292,3893],{"class":2013},[1894,5294,5295],{"class":1904}," '../components/RichText.vue'\n",[1840,5297,5045,5298,5049,5300,5053,5302,5057],{},[1891,5299,5048],{},[1891,5301,5052],{},[1891,5303,5056],{},[1885,5305,5307],{"className":1993,"code":5306,"language":1995,"meta":24,"style":24},"case 'block_richtext':\n    return RichText\n",[1891,5308,5309,5318],{"__ignoreMap":24},[1894,5310,5311,5313,5316],{"class":1896,"line":1897},[1894,5312,5048],{"class":2013},[1894,5314,5315],{"class":1904}," 'block_richtext'",[1894,5317,4385],{"class":2031},[1894,5319,5320,5322],{"class":1896,"line":1952},[1894,5321,3969],{"class":2013},[1894,5323,5324],{"class":2031}," RichText\n",[1840,5326,5081,5327,5329],{},[1891,5328,3877],{}," in the browser and you should see the rich text appear formatted below the Hero section.",[1869,5331,5333],{"id":5332},"gallery-section","Gallery Section",[1840,5335,4607,5336,4611],{},[1891,5337,5338],{},"components/Gallery.vue",[1885,5340,5342],{"className":4013,"code":5341,"language":4015,"meta":24,"style":24},"\u003Cscript setup lang=\"ts\">\n\nconst props = defineProps\u003C{\n  id: string\n  tagline: string\n  headline: string\n  items: GalleryItem[]\n}>()\n\ntype GalleryItem = {\n    id: string;\n    block_gallery: string;\n    directus_file: string;\n    sort: number;\n}\n\u003C/script>\n\n\u003Ctemplate>\n  \u003CRichText\n    :id=\"id\"\n    :tagline=\"tagline\"\n    :headline=\"headline\"\n    :content=\"''\"\n    alignment=\"center\"\n  />\n  \u003CUCarousel\n    v-slot=\"{ item }\"\n    loop\n    dots\n    :autoplay=\"{ delay: 3000 }\"\n    :items=\"items\"\n    :ui=\"{ item: 'basis-1/4' }\"\n    class=\"w-full mx-auto -mt-36\"\n  >\n    \u003Cimg :src=\"'/directus/assets/' + item.directus_file\" width=\"234\" height=\"234\" class=\"rounded-lg\">\n  \u003C/UCarousel>\n\u003C/template>\n",[1891,5343,5344,5360,5364,5376,5385,5394,5403,5415,5419,5423,5434,5444,5455,5466,5476,5480,5488,5492,5500,5507,5517,5526,5535,5545,5554,5559,5566,5576,5581,5586,5596,5606,5616,5626,5631,5669,5678],{"__ignoreMap":24},[1894,5345,5346,5348,5350,5352,5354,5356,5358],{"class":1896,"line":1897},[1894,5347,3809],{"class":2031},[1894,5349,4024],{"class":2006},[1894,5351,4027],{"class":1900},[1894,5353,4030],{"class":1900},[1894,5355,2014],{"class":2031},[1894,5357,4035],{"class":1904},[1894,5359,3815],{"class":2031},[1894,5361,5362],{"class":1896,"line":1952},[1894,5363,2370],{"emptyLinePlaceholder":2369},[1894,5365,5366,5368,5370,5372,5374],{"class":1896,"line":2035},[1894,5367,3903],{"class":2013},[1894,5369,4660],{"class":1955},[1894,5371,3909],{"class":2013},[1894,5373,4665],{"class":1900},[1894,5375,4668],{"class":2031},[1894,5377,5378,5381,5383],{"class":1896,"line":2053},[1894,5379,5380],{"class":2041},"  id",[1894,5382,1931],{"class":2013},[1894,5384,5170],{"class":1955},[1894,5386,5387,5390,5392],{"class":1896,"line":2059},[1894,5388,5389],{"class":2041},"  tagline",[1894,5391,1931],{"class":2013},[1894,5393,5170],{"class":1955},[1894,5395,5396,5399,5401],{"class":1896,"line":2065},[1894,5397,5398],{"class":2041},"  headline",[1894,5400,1931],{"class":2013},[1894,5402,5170],{"class":1955},[1894,5404,5405,5408,5410,5413],{"class":1896,"line":2075},[1894,5406,5407],{"class":2041},"  items",[1894,5409,1931],{"class":2013},[1894,5411,5412],{"class":1900}," GalleryItem",[1894,5414,2731],{"class":2031},[1894,5416,5417],{"class":1896,"line":2089},[1894,5418,4733],{"class":2031},[1894,5420,5421],{"class":1896,"line":2381},[1894,5422,2370],{"emptyLinePlaceholder":2369},[1894,5424,5425,5428,5430,5432],{"class":1896,"line":2394},[1894,5426,5427],{"class":2013},"type",[1894,5429,5412],{"class":1900},[1894,5431,3909],{"class":2013},[1894,5433,2032],{"class":2031},[1894,5435,5436,5438,5440,5442],{"class":1896,"line":2406},[1894,5437,2384],{"class":2041},[1894,5439,1931],{"class":2013},[1894,5441,2047],{"class":1955},[1894,5443,2050],{"class":2031},[1894,5445,5446,5449,5451,5453],{"class":1896,"line":2418},[1894,5447,5448],{"class":2041},"    block_gallery",[1894,5450,1931],{"class":2013},[1894,5452,2047],{"class":1955},[1894,5454,2050],{"class":2031},[1894,5456,5457,5460,5462,5464],{"class":1896,"line":2430},[1894,5458,5459],{"class":2041},"    directus_file",[1894,5461,1931],{"class":2013},[1894,5463,2047],{"class":1955},[1894,5465,2050],{"class":2031},[1894,5467,5468,5470,5472,5474],{"class":1896,"line":2442},[1894,5469,2600],{"class":2041},[1894,5471,1931],{"class":2013},[1894,5473,2389],{"class":1955},[1894,5475,2050],{"class":2031},[1894,5477,5478],{"class":1896,"line":2455},[1894,5479,2056],{"class":2031},[1894,5481,5482,5484,5486],{"class":1896,"line":2468},[1894,5483,3859],{"class":2031},[1894,5485,4024],{"class":2006},[1894,5487,3815],{"class":2031},[1894,5489,5490],{"class":1896,"line":2473},[1894,5491,2370],{"emptyLinePlaceholder":2369},[1894,5493,5494,5496,5498],{"class":1896,"line":2478},[1894,5495,3809],{"class":2031},[1894,5497,3812],{"class":2006},[1894,5499,3815],{"class":2031},[1894,5501,5502,5504],{"class":1896,"line":2487},[1894,5503,3820],{"class":2031},[1894,5505,5506],{"class":2006},"RichText\n",[1894,5508,5509,5512,5514],{"class":1896,"line":2498},[1894,5510,5511],{"class":1900},"    :id",[1894,5513,2014],{"class":2031},[1894,5515,5516],{"class":1904},"\"id\"\n",[1894,5518,5519,5522,5524],{"class":1896,"line":2509},[1894,5520,5521],{"class":1900},"    :tagline",[1894,5523,2014],{"class":2031},[1894,5525,4920],{"class":1904},[1894,5527,5528,5531,5533],{"class":1896,"line":2522},[1894,5529,5530],{"class":1900},"    :headline",[1894,5532,2014],{"class":2031},[1894,5534,4900],{"class":1904},[1894,5536,5537,5540,5542],{"class":1896,"line":2527},[1894,5538,5539],{"class":1900},"    :content",[1894,5541,2014],{"class":2031},[1894,5543,5544],{"class":1904},"\"''\"\n",[1894,5546,5547,5549,5551],{"class":1896,"line":2532},[1894,5548,3144],{"class":1900},[1894,5550,2014],{"class":2031},[1894,5552,5553],{"class":1904},"\"center\"\n",[1894,5555,5556],{"class":1896,"line":2541},[1894,5557,5558],{"class":2031},"  />\n",[1894,5560,5561,5563],{"class":1896,"line":2552},[1894,5562,3820],{"class":2031},[1894,5564,5565],{"class":2006},"UCarousel\n",[1894,5567,5568,5571,5573],{"class":1896,"line":2563},[1894,5569,5570],{"class":1900},"    v-slot",[1894,5572,2014],{"class":2031},[1894,5574,5575],{"class":1904},"\"{ item }\"\n",[1894,5577,5578],{"class":1896,"line":2581},[1894,5579,5580],{"class":1900},"    loop\n",[1894,5582,5583],{"class":1896,"line":2597},[1894,5584,5585],{"class":1900},"    dots\n",[1894,5587,5588,5591,5593],{"class":1896,"line":2609},[1894,5589,5590],{"class":1900},"    :autoplay",[1894,5592,2014],{"class":2031},[1894,5594,5595],{"class":1904},"\"{ delay: 3000 }\"\n",[1894,5597,5598,5601,5603],{"class":1896,"line":2620},[1894,5599,5600],{"class":1900},"    :items",[1894,5602,2014],{"class":2031},[1894,5604,5605],{"class":1904},"\"items\"\n",[1894,5607,5608,5611,5613],{"class":1896,"line":2632},[1894,5609,5610],{"class":1900},"    :ui",[1894,5612,2014],{"class":2031},[1894,5614,5615],{"class":1904},"\"{ item: 'basis-1/4' }\"\n",[1894,5617,5618,5621,5623],{"class":1896,"line":2648},[1894,5619,5620],{"class":1900},"    class",[1894,5622,2014],{"class":2031},[1894,5624,5625],{"class":1904},"\"w-full mx-auto -mt-36\"\n",[1894,5627,5628],{"class":1896,"line":2664},[1894,5629,5630],{"class":2031},"  >\n",[1894,5632,5633,5635,5637,5640,5642,5645,5648,5650,5653,5656,5658,5660,5662,5664,5667],{"class":1896,"line":2676},[1894,5634,3831],{"class":2031},[1894,5636,4000],{"class":2006},[1894,5638,5639],{"class":1900}," :src",[1894,5641,2014],{"class":2031},[1894,5643,5644],{"class":1904},"\"'/directus/assets/' + item.directus_file\"",[1894,5646,5647],{"class":1900}," width",[1894,5649,2014],{"class":2031},[1894,5651,5652],{"class":1904},"\"234\"",[1894,5654,5655],{"class":1900}," height",[1894,5657,2014],{"class":2031},[1894,5659,5652],{"class":1904},[1894,5661,4429],{"class":1900},[1894,5663,2014],{"class":2031},[1894,5665,5666],{"class":1904},"\"rounded-lg\"",[1894,5668,3815],{"class":2031},[1894,5670,5671,5673,5676],{"class":1896,"line":2681},[1894,5672,3850],{"class":2031},[1894,5674,5675],{"class":2006},"UCarousel",[1894,5677,3815],{"class":2031},[1894,5679,5680,5682,5684],{"class":1896,"line":2686},[1894,5681,3859],{"class":2031},[1894,5683,3812],{"class":2006},[1894,5685,3815],{"class":2031},[1840,5687,5688,5689,5692,5693,5695],{},"This component makes use of the existing ",[1891,5690,5691],{},"RichText"," component to display the title and tagline. The ",[1891,5694,5675],{}," component from Nuxt UI Pro is used to display the images in a carousel format.",[1840,5697,5698,5699,5025],{},"To use the new Gallery component import it at the top of the ",[1891,5700,5024],{},[1885,5702,5704],{"className":1993,"code":5703,"language":1995,"meta":24,"style":24},"import Gallery from '../components/Gallery.vue'\n",[1891,5705,5706],{"__ignoreMap":24},[1894,5707,5708,5710,5713,5715],{"class":1896,"line":1897},[1894,5709,2124],{"class":2013},[1894,5711,5712],{"class":2031}," Gallery ",[1894,5714,3893],{"class":2013},[1894,5716,5717],{"class":1904}," '../components/Gallery.vue'\n",[1840,5719,5045,5720,5049,5722,5053,5724,5057],{},[1891,5721,5048],{},[1891,5723,5052],{},[1891,5725,5056],{},[1885,5727,5729],{"className":1993,"code":5728,"language":1995,"meta":24,"style":24},"case 'block_gallery':\n    return Gallery\n",[1891,5730,5731,5740],{"__ignoreMap":24},[1894,5732,5733,5735,5738],{"class":1896,"line":1897},[1894,5734,5048],{"class":2013},[1894,5736,5737],{"class":1904}," 'block_gallery'",[1894,5739,4385],{"class":2031},[1894,5741,5742,5744],{"class":1896,"line":1952},[1894,5743,3969],{"class":2013},[1894,5745,5746],{"class":2031}," Gallery\n",[1840,5748,5081,5749,5751],{},[1891,5750,3877],{}," in the browser and you should see the image gallery carousel displaying thumbnails from Directus.",[1869,5753,5755],{"id":5754},"pricing-section","Pricing Section",[1840,5757,4607,5758,4611],{},[1891,5759,5760],{},"components/Pricing.vue",[1885,5762,5764],{"className":4013,"code":5763,"language":4015,"meta":24,"style":24},"\u003Cscript lang=\"ts\" setup>\n\nconst props = defineProps\u003C{\n    id: string\n    tagline: string\n    headline: string\n    pricing_cards: PricingCard[]\n}>()\n\u003C/script>\n\n\u003Ctemplate>\n    \u003CRichText\n        :id=\"id\"\n        :tagline=\"tagline\"\n        :headline=\"headline\"\n        :content=\"''\"\n        alignment=\"center\"\n    />\n    \u003CUPricingPlans class=\"-mt-36\">\n        \u003CUPricingPlan\n        v-for=\"(plan, index) in pricing_cards\"\n        :key=\"index\"\n        :title=\"plan.title\"\n        :description=\"plan.description\"\n        :features=\"plan.features\"\n        :price=\"plan.price\"\n        :highlight=\"plan.is_highlighted\"\n        />\n    \u003C/UPricingPlans>\n\u003C/template>\n",[1891,5765,5766,5782,5786,5798,5806,5814,5822,5832,5836,5844,5848,5856,5862,5871,5880,5888,5897,5906,5911,5927,5934,5944,5954,5963,5972,5982,5992,6002,6006,6014],{"__ignoreMap":24},[1894,5767,5768,5770,5772,5774,5776,5778,5780],{"class":1896,"line":1897},[1894,5769,3809],{"class":2031},[1894,5771,4024],{"class":2006},[1894,5773,4030],{"class":1900},[1894,5775,2014],{"class":2031},[1894,5777,4035],{"class":1904},[1894,5779,4027],{"class":1900},[1894,5781,3815],{"class":2031},[1894,5783,5784],{"class":1896,"line":1952},[1894,5785,2370],{"emptyLinePlaceholder":2369},[1894,5787,5788,5790,5792,5794,5796],{"class":1896,"line":2035},[1894,5789,3903],{"class":2013},[1894,5791,4660],{"class":1955},[1894,5793,3909],{"class":2013},[1894,5795,4665],{"class":1900},[1894,5797,4668],{"class":2031},[1894,5799,5800,5802,5804],{"class":1896,"line":2053},[1894,5801,2384],{"class":2041},[1894,5803,1931],{"class":2013},[1894,5805,5170],{"class":1955},[1894,5807,5808,5810,5812],{"class":1896,"line":2059},[1894,5809,2895],{"class":2041},[1894,5811,1931],{"class":2013},[1894,5813,5170],{"class":1955},[1894,5815,5816,5818,5820],{"class":1896,"line":2065},[1894,5817,2907],{"class":2041},[1894,5819,1931],{"class":2013},[1894,5821,5170],{"class":1955},[1894,5823,5824,5826,5828,5830],{"class":1896,"line":2075},[1894,5825,3221],{"class":2041},[1894,5827,1931],{"class":2013},[1894,5829,3226],{"class":1900},[1894,5831,2731],{"class":2031},[1894,5833,5834],{"class":1896,"line":2089},[1894,5835,4733],{"class":2031},[1894,5837,5838,5840,5842],{"class":1896,"line":2381},[1894,5839,3859],{"class":2031},[1894,5841,4024],{"class":2006},[1894,5843,3815],{"class":2031},[1894,5845,5846],{"class":1896,"line":2394},[1894,5847,2370],{"emptyLinePlaceholder":2369},[1894,5849,5850,5852,5854],{"class":1896,"line":2406},[1894,5851,3809],{"class":2031},[1894,5853,3812],{"class":2006},[1894,5855,3815],{"class":2031},[1894,5857,5858,5860],{"class":1896,"line":2418},[1894,5859,3831],{"class":2031},[1894,5861,5506],{"class":2006},[1894,5863,5864,5867,5869],{"class":1896,"line":2430},[1894,5865,5866],{"class":1900},"        :id",[1894,5868,2014],{"class":2031},[1894,5870,5516],{"class":1904},[1894,5872,5873,5876,5878],{"class":1896,"line":2442},[1894,5874,5875],{"class":1900},"        :tagline",[1894,5877,2014],{"class":2031},[1894,5879,4920],{"class":1904},[1894,5881,5882,5884,5886],{"class":1896,"line":2455},[1894,5883,4915],{"class":1900},[1894,5885,2014],{"class":2031},[1894,5887,4900],{"class":1904},[1894,5889,5890,5893,5895],{"class":1896,"line":2468},[1894,5891,5892],{"class":1900},"        :content",[1894,5894,2014],{"class":2031},[1894,5896,5544],{"class":1904},[1894,5898,5899,5902,5904],{"class":1896,"line":2473},[1894,5900,5901],{"class":1900},"        alignment",[1894,5903,2014],{"class":2031},[1894,5905,5553],{"class":1904},[1894,5907,5908],{"class":1896,"line":2478},[1894,5909,5910],{"class":2031},"    />\n",[1894,5912,5913,5915,5918,5920,5922,5925],{"class":1896,"line":2487},[1894,5914,3831],{"class":2031},[1894,5916,5917],{"class":2006},"UPricingPlans",[1894,5919,4429],{"class":1900},[1894,5921,2014],{"class":2031},[1894,5923,5924],{"class":1904},"\"-mt-36\"",[1894,5926,3815],{"class":2031},[1894,5928,5929,5931],{"class":1896,"line":2498},[1894,5930,4441],{"class":2031},[1894,5932,5933],{"class":2006},"UPricingPlan\n",[1894,5935,5936,5939,5941],{"class":1896,"line":2509},[1894,5937,5938],{"class":1900},"        v-for",[1894,5940,2014],{"class":2031},[1894,5942,5943],{"class":1904},"\"(plan, index) in pricing_cards\"\n",[1894,5945,5946,5949,5951],{"class":1896,"line":2522},[1894,5947,5948],{"class":1900},"        :key",[1894,5950,2014],{"class":2031},[1894,5952,5953],{"class":1904},"\"index\"\n",[1894,5955,5956,5958,5960],{"class":1896,"line":2527},[1894,5957,4895],{"class":1900},[1894,5959,2014],{"class":2031},[1894,5961,5962],{"class":1904},"\"plan.title\"\n",[1894,5964,5965,5967,5969],{"class":1896,"line":2532},[1894,5966,4905],{"class":1900},[1894,5968,2014],{"class":2031},[1894,5970,5971],{"class":1904},"\"plan.description\"\n",[1894,5973,5974,5977,5979],{"class":1896,"line":2541},[1894,5975,5976],{"class":1900},"        :features",[1894,5978,2014],{"class":2031},[1894,5980,5981],{"class":1904},"\"plan.features\"\n",[1894,5983,5984,5987,5989],{"class":1896,"line":2552},[1894,5985,5986],{"class":1900},"        :price",[1894,5988,2014],{"class":2031},[1894,5990,5991],{"class":1904},"\"plan.price\"\n",[1894,5993,5994,5997,5999],{"class":1896,"line":2563},[1894,5995,5996],{"class":1900},"        :highlight",[1894,5998,2014],{"class":2031},[1894,6000,6001],{"class":1904},"\"plan.is_highlighted\"\n",[1894,6003,6004],{"class":1896,"line":2581},[1894,6005,4988],{"class":2031},[1894,6007,6008,6010,6012],{"class":1896,"line":2597},[1894,6009,4570],{"class":2031},[1894,6011,5917],{"class":2006},[1894,6013,3815],{"class":2031},[1894,6015,6016,6018,6020],{"class":1896,"line":2609},[1894,6017,3859],{"class":2031},[1894,6019,3812],{"class":2006},[1894,6021,3815],{"class":2031},[1840,6023,6024,6025,5025],{},"To use the new Pricing component import it at the top of the ",[1891,6026,5024],{},[1885,6028,6030],{"className":1993,"code":6029,"language":1995,"meta":24,"style":24},"import Pricing from '../components/Pricing.vue'\n",[1891,6031,6032],{"__ignoreMap":24},[1894,6033,6034,6036,6039,6041],{"class":1896,"line":1897},[1894,6035,2124],{"class":2013},[1894,6037,6038],{"class":2031}," Pricing ",[1894,6040,3893],{"class":2013},[1894,6042,6043],{"class":1904}," '../components/Pricing.vue'\n",[1840,6045,5045,6046,5049,6048,5053,6050,5057],{},[1891,6047,5048],{},[1891,6049,5052],{},[1891,6051,5056],{},[1885,6053,6055],{"className":1993,"code":6054,"language":1995,"meta":24,"style":24},"case 'block_pricing':\n    return Pricing\n",[1891,6056,6057,6066],{"__ignoreMap":24},[1894,6058,6059,6061,6064],{"class":1896,"line":1897},[1894,6060,5048],{"class":2013},[1894,6062,6063],{"class":1904}," 'block_pricing'",[1894,6065,4385],{"class":2031},[1894,6067,6068,6070],{"class":1896,"line":1952},[1894,6069,3969],{"class":2013},[1894,6071,6072],{"class":2031}," Pricing\n",[1840,6074,5081,6075,6077],{},[1891,6076,3877],{}," in the browser and you should see the pricing cards at the bottom of the home page.",[1869,6079,6081],{"id":6080},"form-section","Form Section",[1840,6083,4607,6084,4611],{},[1891,6085,6086],{},"components/Form.vue",[1885,6088,6090],{"className":4013,"code":6089,"language":4015,"meta":24,"style":24},"\u003Cscript setup lang=\"ts\">\nimport { UInput } from '#components';\nconst { $directus, $createItem } = useNuxtApp()\n\nconst props = defineProps\u003C{\n    id: string;\n    headline: string;\n    tagline: string;\n    form: FormElement;\n}>()\n\nconst directusToNuxtUI = (field: FormField) => {\n    switch (field.type) {\n        case 'text':\n            return UInput\n    }\n}\n\nconst state = reactive({\n  items: props.form.fields,\n})\n\nconst onSubmit = (event: Event) => {\n    event.preventDefault()\n    const formData = new FormData(event.target as HTMLFormElement)\n    const data = Object.fromEntries(formData.entries())\n}\n\n\u003C/script>\n\u003Ctemplate>\n    \u003CRichText\n        :id=\"id\"\n        :tagline=\"tagline\"\n        :headline=\"headline\"\n        :content=\"''\"\n        alignment=\"center\"\n    />\n    \u003CUForm\n        :id=\"id\"\n        :form=\"form\"\n        :fields=\"form.fields\"\n        :submitLabel=\"form.submit_label\"\n        :successMessage=\"form.success_message\"\n        :state=\"state\"\n        @submit=\"onSubmit\"\n        class=\"-mt-36 mx-auto max-w-sm\"\n    >\n        \u003CUFormField v-for=\"field in form.fields\" :key=\"field.id\" :label=\"field.label\" :name=\"field.name\">\n            \u003Ccomponent :is=\"directusToNuxtUI(field)\" v-bind=\"field\">\u003C/component>\n        \u003C/UFormField>\n\n        \u003CUButton type=\"submit\">\n        {{ form.submit_label }}\n        \u003C/UButton>\n    \u003C/UForm>\n\u003C/template>\n",[1891,6091,6092,6108,6122,6143,6147,6159,6169,6179,6189,6199,6203,6207,6231,6238,6248,6255,6259,6263,6267,6281,6286,6290,6294,6319,6329,6356,6380,6384,6388,6396,6404,6410,6418,6426,6434,6442,6450,6454,6461,6469,6479,6489,6499,6509,6519,6529,6538,6542,6581,6607,6615,6619,6635,6640,6648,6657],{"__ignoreMap":24},[1894,6093,6094,6096,6098,6100,6102,6104,6106],{"class":1896,"line":1897},[1894,6095,3809],{"class":2031},[1894,6097,4024],{"class":2006},[1894,6099,4027],{"class":1900},[1894,6101,4030],{"class":1900},[1894,6103,2014],{"class":2031},[1894,6105,4035],{"class":1904},[1894,6107,3815],{"class":2031},[1894,6109,6110,6112,6115,6117,6120],{"class":1896,"line":1952},[1894,6111,2124],{"class":2013},[1894,6113,6114],{"class":2031}," { UInput } ",[1894,6116,3893],{"class":2013},[1894,6118,6119],{"class":1904}," '#components'",[1894,6121,2050],{"class":2031},[1894,6123,6124,6126,6128,6130,6132,6135,6137,6139,6141],{"class":1896,"line":2035},[1894,6125,3903],{"class":2013},[1894,6127,4044],{"class":2031},[1894,6129,4047],{"class":1955},[1894,6131,4050],{"class":2031},[1894,6133,6134],{"class":1955},"$createItem",[1894,6136,4056],{"class":2031},[1894,6138,2014],{"class":2013},[1894,6140,4061],{"class":1900},[1894,6142,4064],{"class":2031},[1894,6144,6145],{"class":1896,"line":2053},[1894,6146,2370],{"emptyLinePlaceholder":2369},[1894,6148,6149,6151,6153,6155,6157],{"class":1896,"line":2059},[1894,6150,3903],{"class":2013},[1894,6152,4660],{"class":1955},[1894,6154,3909],{"class":2013},[1894,6156,4665],{"class":1900},[1894,6158,4668],{"class":2031},[1894,6160,6161,6163,6165,6167],{"class":1896,"line":2065},[1894,6162,2384],{"class":2041},[1894,6164,1931],{"class":2013},[1894,6166,2047],{"class":1955},[1894,6168,2050],{"class":2031},[1894,6170,6171,6173,6175,6177],{"class":1896,"line":2075},[1894,6172,2907],{"class":2041},[1894,6174,1931],{"class":2013},[1894,6176,2047],{"class":1955},[1894,6178,2050],{"class":2031},[1894,6180,6181,6183,6185,6187],{"class":1896,"line":2089},[1894,6182,2895],{"class":2041},[1894,6184,1931],{"class":2013},[1894,6186,2047],{"class":1955},[1894,6188,2050],{"class":2031},[1894,6190,6191,6193,6195,6197],{"class":1896,"line":2381},[1894,6192,2711],{"class":2041},[1894,6194,1931],{"class":2013},[1894,6196,3426],{"class":1900},[1894,6198,2050],{"class":2031},[1894,6200,6201],{"class":1896,"line":2394},[1894,6202,4733],{"class":2031},[1894,6204,6205],{"class":1896,"line":2406},[1894,6206,2370],{"emptyLinePlaceholder":2369},[1894,6208,6209,6211,6214,6216,6218,6221,6223,6225,6227,6229],{"class":1896,"line":2418},[1894,6210,3903],{"class":2013},[1894,6212,6213],{"class":1900}," directusToNuxtUI",[1894,6215,3909],{"class":2013},[1894,6217,4355],{"class":2031},[1894,6219,6220],{"class":2041},"field",[1894,6222,1931],{"class":2013},[1894,6224,3559],{"class":1900},[1894,6226,4365],{"class":2031},[1894,6228,3962],{"class":2013},[1894,6230,2032],{"class":2031},[1894,6232,6233,6235],{"class":1896,"line":2430},[1894,6234,4374],{"class":2013},[1894,6236,6237],{"class":2031}," (field.type) {\n",[1894,6239,6240,6243,6246],{"class":1896,"line":2442},[1894,6241,6242],{"class":2013},"        case",[1894,6244,6245],{"class":1904}," 'text'",[1894,6247,4385],{"class":2031},[1894,6249,6250,6252],{"class":1896,"line":2455},[1894,6251,4390],{"class":2013},[1894,6253,6254],{"class":2031}," UInput\n",[1894,6256,6257],{"class":1896,"line":2468},[1894,6258,4398],{"class":2031},[1894,6260,6261],{"class":1896,"line":2473},[1894,6262,2056],{"class":2031},[1894,6264,6265],{"class":1896,"line":2478},[1894,6266,2370],{"emptyLinePlaceholder":2369},[1894,6268,6269,6271,6274,6276,6279],{"class":1896,"line":2487},[1894,6270,3903],{"class":2013},[1894,6272,6273],{"class":1955}," state",[1894,6275,3909],{"class":2013},[1894,6277,6278],{"class":1900}," reactive",[1894,6280,4803],{"class":2031},[1894,6282,6283],{"class":1896,"line":2498},[1894,6284,6285],{"class":2031},"  items: props.form.fields,\n",[1894,6287,6288],{"class":1896,"line":2509},[1894,6289,4273],{"class":2031},[1894,6291,6292],{"class":1896,"line":2522},[1894,6293,2370],{"emptyLinePlaceholder":2369},[1894,6295,6296,6298,6301,6303,6305,6308,6310,6313,6315,6317],{"class":1896,"line":2527},[1894,6297,3903],{"class":2013},[1894,6299,6300],{"class":1900}," onSubmit",[1894,6302,3909],{"class":2013},[1894,6304,4355],{"class":2031},[1894,6306,6307],{"class":2041},"event",[1894,6309,1931],{"class":2013},[1894,6311,6312],{"class":1900}," Event",[1894,6314,4365],{"class":2031},[1894,6316,3962],{"class":2013},[1894,6318,2032],{"class":2031},[1894,6320,6321,6324,6327],{"class":1896,"line":2532},[1894,6322,6323],{"class":2031},"    event.",[1894,6325,6326],{"class":1900},"preventDefault",[1894,6328,4064],{"class":2031},[1894,6330,6331,6334,6337,6339,6342,6345,6348,6350,6353],{"class":1896,"line":2541},[1894,6332,6333],{"class":2013},"    const",[1894,6335,6336],{"class":1955}," formData",[1894,6338,3909],{"class":2013},[1894,6340,6341],{"class":2013}," new",[1894,6343,6344],{"class":1900}," FormData",[1894,6346,6347],{"class":2031},"(event.target ",[1894,6349,4846],{"class":2013},[1894,6351,6352],{"class":1900}," HTMLFormElement",[1894,6354,6355],{"class":2031},")\n",[1894,6357,6358,6360,6363,6365,6368,6371,6374,6377],{"class":1896,"line":2552},[1894,6359,6333],{"class":2013},[1894,6361,6362],{"class":1955}," data",[1894,6364,3909],{"class":2013},[1894,6366,6367],{"class":2031}," Object.",[1894,6369,6370],{"class":1900},"fromEntries",[1894,6372,6373],{"class":2031},"(formData.",[1894,6375,6376],{"class":1900},"entries",[1894,6378,6379],{"class":2031},"())\n",[1894,6381,6382],{"class":1896,"line":2563},[1894,6383,2056],{"class":2031},[1894,6385,6386],{"class":1896,"line":2581},[1894,6387,2370],{"emptyLinePlaceholder":2369},[1894,6389,6390,6392,6394],{"class":1896,"line":2597},[1894,6391,3859],{"class":2031},[1894,6393,4024],{"class":2006},[1894,6395,3815],{"class":2031},[1894,6397,6398,6400,6402],{"class":1896,"line":2609},[1894,6399,3809],{"class":2031},[1894,6401,3812],{"class":2006},[1894,6403,3815],{"class":2031},[1894,6405,6406,6408],{"class":1896,"line":2620},[1894,6407,3831],{"class":2031},[1894,6409,5506],{"class":2006},[1894,6411,6412,6414,6416],{"class":1896,"line":2632},[1894,6413,5866],{"class":1900},[1894,6415,2014],{"class":2031},[1894,6417,5516],{"class":1904},[1894,6419,6420,6422,6424],{"class":1896,"line":2648},[1894,6421,5875],{"class":1900},[1894,6423,2014],{"class":2031},[1894,6425,4920],{"class":1904},[1894,6427,6428,6430,6432],{"class":1896,"line":2664},[1894,6429,4915],{"class":1900},[1894,6431,2014],{"class":2031},[1894,6433,4900],{"class":1904},[1894,6435,6436,6438,6440],{"class":1896,"line":2676},[1894,6437,5892],{"class":1900},[1894,6439,2014],{"class":2031},[1894,6441,5544],{"class":1904},[1894,6443,6444,6446,6448],{"class":1896,"line":2681},[1894,6445,5901],{"class":1900},[1894,6447,2014],{"class":2031},[1894,6449,5553],{"class":1904},[1894,6451,6452],{"class":1896,"line":2686},[1894,6453,5910],{"class":2031},[1894,6455,6456,6458],{"class":1896,"line":2696},[1894,6457,3831],{"class":2031},[1894,6459,6460],{"class":2006},"UForm\n",[1894,6462,6463,6465,6467],{"class":1896,"line":2708},[1894,6464,5866],{"class":1900},[1894,6466,2014],{"class":2031},[1894,6468,5516],{"class":1904},[1894,6470,6471,6474,6476],{"class":1896,"line":2720},[1894,6472,6473],{"class":1900},"        :form",[1894,6475,2014],{"class":2031},[1894,6477,6478],{"class":1904},"\"form\"\n",[1894,6480,6481,6484,6486],{"class":1896,"line":2734},[1894,6482,6483],{"class":1900},"        :fields",[1894,6485,2014],{"class":2031},[1894,6487,6488],{"class":1904},"\"form.fields\"\n",[1894,6490,6491,6494,6496],{"class":1896,"line":2739},[1894,6492,6493],{"class":1900},"        :submitLabel",[1894,6495,2014],{"class":2031},[1894,6497,6498],{"class":1904},"\"form.submit_label\"\n",[1894,6500,6501,6504,6506],{"class":1896,"line":2744},[1894,6502,6503],{"class":1900},"        :successMessage",[1894,6505,2014],{"class":2031},[1894,6507,6508],{"class":1904},"\"form.success_message\"\n",[1894,6510,6511,6514,6516],{"class":1896,"line":2753},[1894,6512,6513],{"class":1900},"        :state",[1894,6515,2014],{"class":2031},[1894,6517,6518],{"class":1904},"\"state\"\n",[1894,6520,6521,6524,6526],{"class":1896,"line":2765},[1894,6522,6523],{"class":1900},"        @submit",[1894,6525,2014],{"class":2031},[1894,6527,6528],{"class":1904},"\"onSubmit\"\n",[1894,6530,6531,6533,6535],{"class":1896,"line":2777},[1894,6532,4978],{"class":1900},[1894,6534,2014],{"class":2031},[1894,6536,6537],{"class":1904},"\"-mt-36 mx-auto max-w-sm\"\n",[1894,6539,6540],{"class":1896,"line":2788},[1894,6541,4945],{"class":2031},[1894,6543,6544,6546,6549,6551,6553,6556,6558,6560,6563,6566,6568,6571,6574,6576,6579],{"class":1896,"line":2793},[1894,6545,4441],{"class":2031},[1894,6547,6548],{"class":2006},"UFormField",[1894,6550,4485],{"class":1900},[1894,6552,2014],{"class":2031},[1894,6554,6555],{"class":1904},"\"field in form.fields\"",[1894,6557,4493],{"class":1900},[1894,6559,2014],{"class":2031},[1894,6561,6562],{"class":1904},"\"field.id\"",[1894,6564,6565],{"class":1900}," :label",[1894,6567,2014],{"class":2031},[1894,6569,6570],{"class":1904},"\"field.label\"",[1894,6572,6573],{"class":1900}," :name",[1894,6575,2014],{"class":2031},[1894,6577,6578],{"class":1904},"\"field.name\"",[1894,6580,3815],{"class":2031},[1894,6582,6583,6585,6587,6589,6591,6594,6596,6598,6601,6603,6605],{"class":1896,"line":2798},[1894,6584,4466],{"class":2031},[1894,6586,4508],{"class":2006},[1894,6588,4511],{"class":1900},[1894,6590,2014],{"class":2031},[1894,6592,6593],{"class":1904},"\"directusToNuxtUI(field)\"",[1894,6595,4519],{"class":1900},[1894,6597,2014],{"class":2031},[1894,6599,6600],{"class":1904},"\"field\"",[1894,6602,4527],{"class":2031},[1894,6604,4508],{"class":2006},[1894,6606,3815],{"class":2031},[1894,6608,6609,6611,6613],{"class":1896,"line":2807},[1894,6610,4545],{"class":2031},[1894,6612,6548],{"class":2006},[1894,6614,3815],{"class":2031},[1894,6616,6617],{"class":1896,"line":2818},[1894,6618,2370],{"emptyLinePlaceholder":2369},[1894,6620,6621,6623,6626,6628,6630,6633],{"class":1896,"line":2830},[1894,6622,4441],{"class":2031},[1894,6624,6625],{"class":2006},"UButton",[1894,6627,4639],{"class":1900},[1894,6629,2014],{"class":2031},[1894,6631,6632],{"class":1904},"\"submit\"",[1894,6634,3815],{"class":2031},[1894,6636,6637],{"class":1896,"line":2848},[1894,6638,6639],{"class":2031},"        {{ form.submit_label }}\n",[1894,6641,6642,6644,6646],{"class":1896,"line":2861},[1894,6643,4545],{"class":2031},[1894,6645,6625],{"class":2006},[1894,6647,3815],{"class":2031},[1894,6649,6650,6652,6655],{"class":1896,"line":2873},[1894,6651,4570],{"class":2031},[1894,6653,6654],{"class":2006},"UForm",[1894,6656,3815],{"class":2031},[1894,6658,6659,6661,6663],{"class":1896,"line":2878},[1894,6660,3859],{"class":2031},[1894,6662,3812],{"class":2006},[1894,6664,3815],{"class":2031},[1840,6666,6667,6668,5025],{},"To use the new Form component import it at the top of the ",[1891,6669,5024],{},[1885,6671,6673],{"className":1993,"code":6672,"language":1995,"meta":24,"style":24},"import Form from '../components/Form.vue'\n",[1891,6674,6675],{"__ignoreMap":24},[1894,6676,6677,6679,6682,6684],{"class":1896,"line":1897},[1894,6678,2124],{"class":2013},[1894,6680,6681],{"class":2031}," Form ",[1894,6683,3893],{"class":2013},[1894,6685,6686],{"class":1904}," '../components/Form.vue'\n",[1840,6688,5045,6689,5049,6691,5053,6693,5057],{},[1891,6690,5048],{},[1891,6692,5052],{},[1891,6694,5056],{},[1885,6696,6698],{"className":1993,"code":6697,"language":1995,"meta":24,"style":24},"case 'block_form':\n    return Form\n",[1891,6699,6700,6709],{"__ignoreMap":24},[1894,6701,6702,6704,6707],{"class":1896,"line":1897},[1894,6703,5048],{"class":2013},[1894,6705,6706],{"class":1904}," 'block_form'",[1894,6708,4385],{"class":2031},[1894,6710,6711,6713],{"class":1896,"line":1952},[1894,6712,3969],{"class":2013},[1894,6714,6715],{"class":2031}," Form\n",[1869,6717,6719],{"id":6718},"seo","SEO",[1840,6721,6722,6723,6728,6729,6731,6732,1931],{},"The Directus CMS template comes with a set of SEO metadata fields that can be displayed for each page. Nuxt comes with a ",[1877,6724,6727],{"href":6725,"rel":6726},"https://nuxt.com/docs/getting-started/seo-meta#components",[1881],"Head component"," that allows the insertion of this metadata directly in the home page. In ",[1891,6730,5024],{}," add the following code just after ",[1891,6733,6734],{},"\u003Cdiv v-if=\"page\">",[1885,6736,6738],{"className":4013,"code":6737,"language":4015,"meta":24,"style":24},"\u003CHead>\n    \u003CTitle>{{ page.seo?.title || 'Directus CMS Post' }}\u003C/Title>\n    \u003CMeta name=\"description\" :content=\"page.seo?.meta_description || ''\" />\n\u003C/Head>\n",[1891,6739,6740,6749,6754,6759],{"__ignoreMap":24},[1894,6741,6742,6744,6747],{"class":1896,"line":1897},[1894,6743,3809],{"class":2031},[1894,6745,6746],{"class":2006},"Head",[1894,6748,3815],{"class":2031},[1894,6750,6751],{"class":1896,"line":1952},[1894,6752,6753],{"class":2031},"    \u003CTitle>{{ page.seo?.title || 'Directus CMS Post' }}\u003C/Title>\n",[1894,6755,6756],{"class":1896,"line":2035},[1894,6757,6758],{"class":2031},"    \u003CMeta name=\"description\" :content=\"page.seo?.meta_description || ''\" />\n",[1894,6760,6761,6763,6765],{"class":1896,"line":2053},[1894,6762,3859],{"class":2031},[1894,6764,6746],{"class":2006},[1894,6766,3815],{"class":2031},[1840,6768,6769],{},"Visit your application in the browser and inspect the page. You should see the SEO metadata in the head of the page.",[1869,6771,6773],{"id":6772},"header-and-footer","Header and Footer",[1840,6775,6776,6777,4611],{},"The Directus CMS template includes header and footer navigation items. These can be added to the home page by creating a new component for each.\nCreate a new file ",[1891,6778,6779],{},"components/Header.vue",[1885,6781,6783],{"className":4013,"code":6782,"language":4015,"meta":24,"style":24},"\u003Cscript lang=\"ts\" setup>\nimport type { ArrayOrNested, NavigationMenuItem } from '@nuxt/ui'\n\nconst { $directus, $readItems } = useNuxtApp()\n\nconst { data, error } = await useAsyncData('navigation', async () => {\n    return $directus.request($readItems('navigation', {\n        fields: ['id', 'title', 'items.*', 'items.children.*'],\n        filter: { id: { _eq: 'main' } },\n        limit: 1,\n    }))\n})\n\nconst items: ComputedRef\u003CNavigationMenuItem[]> = computed(() => {\n    if (!data.value || !data.value[0]?.items) return []\n    \n    function mapItem(item: NavigationItem): NavigationMenuItem {\n        return {\n            id: item.id,\n            label: item.title,\n            to: item.url ?? undefined,\n            children: item.children ? item.children.map(mapItem) : undefined\n        }\n    }\n    \n    return data.value[0].items.map(mapItem)\n})\n\u003C/script>\n\u003Ctemplate>\n    \u003CUHeader title=\"Directus CMS\">\n\n    \u003CUNavigationMenu content-orientation=\"vertical\" :items=\"items\" class=\"w-full justify-center\" />\n\n    \u003Ctemplate #right>\n      \u003CUColorModeButton />\n    \u003C/template>\n  \u003C/UHeader>\n    \n\u003C/template>\n",[1891,6784,6785,6801,6815,6819,6839,6843,6878,6896,6918,6928,6938,6942,6946,6950,6980,7011,7016,7043,7050,7055,7060,7072,7094,7099,7103,7107,7123,7127,7135,7143,7160,7164,7196,7200,7213,7222,7230,7238,7242],{"__ignoreMap":24},[1894,6786,6787,6789,6791,6793,6795,6797,6799],{"class":1896,"line":1897},[1894,6788,3809],{"class":2031},[1894,6790,4024],{"class":2006},[1894,6792,4030],{"class":1900},[1894,6794,2014],{"class":2031},[1894,6796,4035],{"class":1904},[1894,6798,4027],{"class":1900},[1894,6800,3815],{"class":2031},[1894,6802,6803,6805,6807,6810,6812],{"class":1896,"line":1952},[1894,6804,2124],{"class":2013},[1894,6806,4639],{"class":2013},[1894,6808,6809],{"class":2031}," { ArrayOrNested, NavigationMenuItem } ",[1894,6811,3893],{"class":2013},[1894,6813,6814],{"class":1904}," '@nuxt/ui'\n",[1894,6816,6817],{"class":1896,"line":2035},[1894,6818,2370],{"emptyLinePlaceholder":2369},[1894,6820,6821,6823,6825,6827,6829,6831,6833,6835,6837],{"class":1896,"line":2053},[1894,6822,3903],{"class":2013},[1894,6824,4044],{"class":2031},[1894,6826,4047],{"class":1955},[1894,6828,4050],{"class":2031},[1894,6830,4053],{"class":1955},[1894,6832,4056],{"class":2031},[1894,6834,2014],{"class":2013},[1894,6836,4061],{"class":1900},[1894,6838,4064],{"class":2031},[1894,6840,6841],{"class":1896,"line":2059},[1894,6842,2370],{"emptyLinePlaceholder":2369},[1894,6844,6845,6847,6849,6851,6853,6855,6857,6859,6861,6863,6865,6868,6870,6872,6874,6876],{"class":1896,"line":2065},[1894,6846,3903],{"class":2013},[1894,6848,4044],{"class":2031},[1894,6850,4123],{"class":1955},[1894,6852,4050],{"class":2031},[1894,6854,4128],{"class":1955},[1894,6856,4056],{"class":2031},[1894,6858,2014],{"class":2013},[1894,6860,4135],{"class":2013},[1894,6862,4138],{"class":1900},[1894,6864,3939],{"class":2031},[1894,6866,6867],{"class":1904},"'navigation'",[1894,6869,4050],{"class":2031},[1894,6871,4148],{"class":2013},[1894,6873,4151],{"class":2031},[1894,6875,3962],{"class":2013},[1894,6877,2032],{"class":2031},[1894,6879,6880,6882,6884,6886,6888,6890,6892,6894],{"class":1896,"line":2075},[1894,6881,3969],{"class":2013},[1894,6883,4162],{"class":2031},[1894,6885,4165],{"class":1900},[1894,6887,3939],{"class":2031},[1894,6889,4053],{"class":1900},[1894,6891,3939],{"class":2031},[1894,6893,6867],{"class":1904},[1894,6895,4177],{"class":2031},[1894,6897,6898,6900,6902,6904,6906,6908,6911,6913,6916],{"class":1896,"line":2089},[1894,6899,4182],{"class":2031},[1894,6901,4185],{"class":1904},[1894,6903,4050],{"class":2031},[1894,6905,4190],{"class":1904},[1894,6907,4050],{"class":2031},[1894,6909,6910],{"class":1904},"'items.*'",[1894,6912,4050],{"class":2031},[1894,6914,6915],{"class":1904},"'items.children.*'",[1894,6917,2249],{"class":2031},[1894,6919,6920,6923,6926],{"class":1896,"line":2381},[1894,6921,6922],{"class":2031},"        filter: { id: { _eq: ",[1894,6924,6925],{"class":1904},"'main'",[1894,6927,4263],{"class":2031},[1894,6929,6930,6933,6936],{"class":1896,"line":2394},[1894,6931,6932],{"class":2031},"        limit: ",[1894,6934,6935],{"class":1955},"1",[1894,6937,3928],{"class":2031},[1894,6939,6940],{"class":1896,"line":2406},[1894,6941,4268],{"class":2031},[1894,6943,6944],{"class":1896,"line":2418},[1894,6945,4273],{"class":2031},[1894,6947,6948],{"class":1896,"line":2430},[1894,6949,2370],{"emptyLinePlaceholder":2369},[1894,6951,6952,6954,6957,6959,6962,6964,6967,6969,6971,6974,6976,6978],{"class":1896,"line":2442},[1894,6953,3903],{"class":2013},[1894,6955,6956],{"class":1955}," items",[1894,6958,1931],{"class":2013},[1894,6960,6961],{"class":1900}," ComputedRef",[1894,6963,3809],{"class":2031},[1894,6965,6966],{"class":1900},"NavigationMenuItem",[1894,6968,4756],{"class":2031},[1894,6970,2014],{"class":2013},[1894,6972,6973],{"class":1900}," computed",[1894,6975,3959],{"class":2031},[1894,6977,3962],{"class":2013},[1894,6979,2032],{"class":2031},[1894,6981,6982,6985,6987,6990,6993,6995,6997,7000,7002,7005,7008],{"class":1896,"line":2455},[1894,6983,6984],{"class":2013},"    if",[1894,6986,4355],{"class":2031},[1894,6988,6989],{"class":2013},"!",[1894,6991,6992],{"class":2031},"data.value ",[1894,6994,4288],{"class":2013},[1894,6996,4291],{"class":2013},[1894,6998,6999],{"class":2031},"data.value[",[1894,7001,4332],{"class":1955},[1894,7003,7004],{"class":2031},"]?.items) ",[1894,7006,7007],{"class":2013},"return",[1894,7009,7010],{"class":2031}," []\n",[1894,7012,7013],{"class":1896,"line":2468},[1894,7014,7015],{"class":2031},"    \n",[1894,7017,7018,7021,7024,7026,7029,7031,7033,7036,7038,7041],{"class":1896,"line":2473},[1894,7019,7020],{"class":2013},"    function",[1894,7022,7023],{"class":1900}," mapItem",[1894,7025,3939],{"class":2031},[1894,7027,7028],{"class":2041},"item",[1894,7030,1931],{"class":2013},[1894,7032,2517],{"class":1900},[1894,7034,7035],{"class":2031},")",[1894,7037,1931],{"class":2013},[1894,7039,7040],{"class":1900}," NavigationMenuItem",[1894,7042,2032],{"class":2031},[1894,7044,7045,7048],{"class":1896,"line":2478},[1894,7046,7047],{"class":2013},"        return",[1894,7049,2032],{"class":2031},[1894,7051,7052],{"class":1896,"line":2487},[1894,7053,7054],{"class":2031},"            id: item.id,\n",[1894,7056,7057],{"class":1896,"line":2498},[1894,7058,7059],{"class":2031},"            label: item.title,\n",[1894,7061,7062,7065,7068,7070],{"class":1896,"line":2509},[1894,7063,7064],{"class":2031},"            to: item.url ",[1894,7066,7067],{"class":2013},"??",[1894,7069,4100],{"class":1955},[1894,7071,3928],{"class":2031},[1894,7073,7074,7077,7080,7083,7086,7089,7091],{"class":1896,"line":2522},[1894,7075,7076],{"class":2031},"            children: item.children ",[1894,7078,7079],{"class":2013},"?",[1894,7081,7082],{"class":2031}," item.children.",[1894,7084,7085],{"class":1900},"map",[1894,7087,7088],{"class":2031},"(mapItem) ",[1894,7090,1931],{"class":2013},[1894,7092,7093],{"class":1955}," undefined\n",[1894,7095,7096],{"class":1896,"line":2527},[1894,7097,7098],{"class":2031},"        }\n",[1894,7100,7101],{"class":1896,"line":2532},[1894,7102,4398],{"class":2031},[1894,7104,7105],{"class":1896,"line":2541},[1894,7106,7015],{"class":2031},[1894,7108,7109,7111,7113,7115,7118,7120],{"class":1896,"line":2552},[1894,7110,3969],{"class":2013},[1894,7112,4329],{"class":2031},[1894,7114,4332],{"class":1955},[1894,7116,7117],{"class":2031},"].items.",[1894,7119,7085],{"class":1900},[1894,7121,7122],{"class":2031},"(mapItem)\n",[1894,7124,7125],{"class":1896,"line":2563},[1894,7126,4273],{"class":2031},[1894,7128,7129,7131,7133],{"class":1896,"line":2581},[1894,7130,3859],{"class":2031},[1894,7132,4024],{"class":2006},[1894,7134,3815],{"class":2031},[1894,7136,7137,7139,7141],{"class":1896,"line":2597},[1894,7138,3809],{"class":2031},[1894,7140,3812],{"class":2006},[1894,7142,3815],{"class":2031},[1894,7144,7145,7147,7150,7153,7155,7158],{"class":1896,"line":2609},[1894,7146,3831],{"class":2031},[1894,7148,7149],{"class":2006},"UHeader",[1894,7151,7152],{"class":1900}," title",[1894,7154,2014],{"class":2031},[1894,7156,7157],{"class":1904},"\"Directus CMS\"",[1894,7159,3815],{"class":2031},[1894,7161,7162],{"class":1896,"line":2620},[1894,7163,2370],{"emptyLinePlaceholder":2369},[1894,7165,7166,7168,7171,7174,7176,7179,7182,7184,7187,7189,7191,7194],{"class":1896,"line":2632},[1894,7167,3831],{"class":2031},[1894,7169,7170],{"class":2006},"UNavigationMenu",[1894,7172,7173],{"class":1900}," content-orientation",[1894,7175,2014],{"class":2031},[1894,7177,7178],{"class":1904},"\"vertical\"",[1894,7180,7181],{"class":1900}," :items",[1894,7183,2014],{"class":2031},[1894,7185,7186],{"class":1904},"\"items\"",[1894,7188,4429],{"class":1900},[1894,7190,2014],{"class":2031},[1894,7192,7193],{"class":1904},"\"w-full justify-center\"",[1894,7195,2020],{"class":2031},[1894,7197,7198],{"class":1896,"line":2648},[1894,7199,2370],{"emptyLinePlaceholder":2369},[1894,7201,7202,7204,7206,7208,7211],{"class":1896,"line":2664},[1894,7203,3831],{"class":2031},[1894,7205,3812],{"class":2006},[1894,7207,5224],{"class":2031},[1894,7209,7210],{"class":1900},"right",[1894,7212,3815],{"class":2031},[1894,7214,7215,7217,7220],{"class":1896,"line":2676},[1894,7216,4950],{"class":2031},[1894,7218,7219],{"class":2006},"UColorModeButton",[1894,7221,2020],{"class":2031},[1894,7223,7224,7226,7228],{"class":1896,"line":2681},[1894,7225,4570],{"class":2031},[1894,7227,3812],{"class":2006},[1894,7229,3815],{"class":2031},[1894,7231,7232,7234,7236],{"class":1896,"line":2686},[1894,7233,3850],{"class":2031},[1894,7235,7149],{"class":2006},[1894,7237,3815],{"class":2031},[1894,7239,7240],{"class":1896,"line":2696},[1894,7241,7015],{"class":2031},[1894,7243,7244,7246,7248],{"class":1896,"line":2708},[1894,7245,3859],{"class":2031},[1894,7247,3812],{"class":2006},[1894,7249,3815],{"class":2031},[1840,7251,7252,7253,7255,7256,7259,7260],{},"In ",[1891,7254,5024],{}," under the ",[1891,7257,7258],{},"\u003C/head>"," tag add the header component: ",[1891,7261,7262],{},"\u003CHeader />",[1840,7264,7265,7266,4611],{},"The footer navigation is similar. Create a new file ",[1891,7267,7268],{},"components/Footer.vue",[1885,7270,7272],{"className":4013,"code":7271,"language":4015,"meta":24,"style":24},"\u003Cscript setup lang=\"ts\">\nimport type { NavigationMenuItem } from '@nuxt/ui'\n\nconst { $directus, $readItems } = useNuxtApp()\n\nconst { data, error } = await useAsyncData('navigation', async () => {\n    return $directus.request($readItems('navigation', {\n        fields: ['id', 'title', 'items.*', 'items.children.*'],\n        filter: { id: { _eq: 'footer' } },\n        limit: 1,\n    }))\n})\n\nconst items: ComputedRef\u003CNavigationMenuItem[]> = computed(() => {\n    if (!data.value || !data.value[0]?.items) return []\n    \n    function mapItem(item: NavigationItem): NavigationMenuItem {\n        return {\n            id: item.id,\n            label: item.title,\n            to: item.url ?? undefined,\n            children: item.children ? item.children.map(mapItem) : undefined\n        }\n    }\n    \n    return data.value[0].items.map(mapItem)\n})\n\u003C/script>\n\n\u003Ctemplate>\n  \u003CUSeparator type=\"solid\" class=\"h-px mt-12\" />\n  \u003CUFooter>\n    \u003Ctemplate #left>\n      \u003Cp class=\"text-(--ui-text-muted) text-sm\">Copyright © {{ new Date().getFullYear() }}\u003C/p>\n    \u003C/template>\n\n    \u003CUNavigationMenu :items=\"items\" variant=\"link\" />\n\n    \u003Ctemplate #right>\n      \u003CUButton\n        icon=\"i-simple-icons-discord\"\n        color=\"neutral\"\n        variant=\"ghost\"\n        to=\"https://directus.chat/\"\n        target=\"_blank\"\n        aria-label=\"Discord\"\n      />\n      \u003CUButton\n        icon=\"i-simple-icons-x\"\n        color=\"neutral\"\n        variant=\"ghost\"\n        to=\"https://x.com/directus\"\n        target=\"_blank\"\n        aria-label=\"X\"\n      />\n      \u003CUButton\n        icon=\"i-simple-icons-github\"\n        color=\"neutral\"\n        variant=\"ghost\"\n        to=\"https://github.com/directus/directus\"\n        target=\"_blank\"\n        aria-label=\"GitHub\"\n      />\n    \u003C/template>\n  \u003C/UFooter>\n\u003C/template>\n",[1891,7273,7274,7290,7303,7307,7327,7331,7365,7383,7403,7412,7420,7424,7428,7432,7458,7482,7486,7508,7514,7518,7522,7532,7548,7552,7556,7560,7574,7578,7586,7590,7598,7621,7630,7643,7663,7671,7675,7697,7701,7713,7720,7730,7740,7750,7760,7770,7780,7785,7791,7800,7808,7816,7825,7833,7842,7846,7852,7861,7869,7877,7886,7894,7903,7907,7915,7923],{"__ignoreMap":24},[1894,7275,7276,7278,7280,7282,7284,7286,7288],{"class":1896,"line":1897},[1894,7277,3809],{"class":2031},[1894,7279,4024],{"class":2006},[1894,7281,4027],{"class":1900},[1894,7283,4030],{"class":1900},[1894,7285,2014],{"class":2031},[1894,7287,4035],{"class":1904},[1894,7289,3815],{"class":2031},[1894,7291,7292,7294,7296,7299,7301],{"class":1896,"line":1952},[1894,7293,2124],{"class":2013},[1894,7295,4639],{"class":2013},[1894,7297,7298],{"class":2031}," { NavigationMenuItem } ",[1894,7300,3893],{"class":2013},[1894,7302,6814],{"class":1904},[1894,7304,7305],{"class":1896,"line":2035},[1894,7306,2370],{"emptyLinePlaceholder":2369},[1894,7308,7309,7311,7313,7315,7317,7319,7321,7323,7325],{"class":1896,"line":2053},[1894,7310,3903],{"class":2013},[1894,7312,4044],{"class":2031},[1894,7314,4047],{"class":1955},[1894,7316,4050],{"class":2031},[1894,7318,4053],{"class":1955},[1894,7320,4056],{"class":2031},[1894,7322,2014],{"class":2013},[1894,7324,4061],{"class":1900},[1894,7326,4064],{"class":2031},[1894,7328,7329],{"class":1896,"line":2059},[1894,7330,2370],{"emptyLinePlaceholder":2369},[1894,7332,7333,7335,7337,7339,7341,7343,7345,7347,7349,7351,7353,7355,7357,7359,7361,7363],{"class":1896,"line":2065},[1894,7334,3903],{"class":2013},[1894,7336,4044],{"class":2031},[1894,7338,4123],{"class":1955},[1894,7340,4050],{"class":2031},[1894,7342,4128],{"class":1955},[1894,7344,4056],{"class":2031},[1894,7346,2014],{"class":2013},[1894,7348,4135],{"class":2013},[1894,7350,4138],{"class":1900},[1894,7352,3939],{"class":2031},[1894,7354,6867],{"class":1904},[1894,7356,4050],{"class":2031},[1894,7358,4148],{"class":2013},[1894,7360,4151],{"class":2031},[1894,7362,3962],{"class":2013},[1894,7364,2032],{"class":2031},[1894,7366,7367,7369,7371,7373,7375,7377,7379,7381],{"class":1896,"line":2075},[1894,7368,3969],{"class":2013},[1894,7370,4162],{"class":2031},[1894,7372,4165],{"class":1900},[1894,7374,3939],{"class":2031},[1894,7376,4053],{"class":1900},[1894,7378,3939],{"class":2031},[1894,7380,6867],{"class":1904},[1894,7382,4177],{"class":2031},[1894,7384,7385,7387,7389,7391,7393,7395,7397,7399,7401],{"class":1896,"line":2089},[1894,7386,4182],{"class":2031},[1894,7388,4185],{"class":1904},[1894,7390,4050],{"class":2031},[1894,7392,4190],{"class":1904},[1894,7394,4050],{"class":2031},[1894,7396,6910],{"class":1904},[1894,7398,4050],{"class":2031},[1894,7400,6915],{"class":1904},[1894,7402,2249],{"class":2031},[1894,7404,7405,7407,7410],{"class":1896,"line":2381},[1894,7406,6922],{"class":2031},[1894,7408,7409],{"class":1904},"'footer'",[1894,7411,4263],{"class":2031},[1894,7413,7414,7416,7418],{"class":1896,"line":2394},[1894,7415,6932],{"class":2031},[1894,7417,6935],{"class":1955},[1894,7419,3928],{"class":2031},[1894,7421,7422],{"class":1896,"line":2406},[1894,7423,4268],{"class":2031},[1894,7425,7426],{"class":1896,"line":2418},[1894,7427,4273],{"class":2031},[1894,7429,7430],{"class":1896,"line":2430},[1894,7431,2370],{"emptyLinePlaceholder":2369},[1894,7433,7434,7436,7438,7440,7442,7444,7446,7448,7450,7452,7454,7456],{"class":1896,"line":2442},[1894,7435,3903],{"class":2013},[1894,7437,6956],{"class":1955},[1894,7439,1931],{"class":2013},[1894,7441,6961],{"class":1900},[1894,7443,3809],{"class":2031},[1894,7445,6966],{"class":1900},[1894,7447,4756],{"class":2031},[1894,7449,2014],{"class":2013},[1894,7451,6973],{"class":1900},[1894,7453,3959],{"class":2031},[1894,7455,3962],{"class":2013},[1894,7457,2032],{"class":2031},[1894,7459,7460,7462,7464,7466,7468,7470,7472,7474,7476,7478,7480],{"class":1896,"line":2455},[1894,7461,6984],{"class":2013},[1894,7463,4355],{"class":2031},[1894,7465,6989],{"class":2013},[1894,7467,6992],{"class":2031},[1894,7469,4288],{"class":2013},[1894,7471,4291],{"class":2013},[1894,7473,6999],{"class":2031},[1894,7475,4332],{"class":1955},[1894,7477,7004],{"class":2031},[1894,7479,7007],{"class":2013},[1894,7481,7010],{"class":2031},[1894,7483,7484],{"class":1896,"line":2468},[1894,7485,7015],{"class":2031},[1894,7487,7488,7490,7492,7494,7496,7498,7500,7502,7504,7506],{"class":1896,"line":2473},[1894,7489,7020],{"class":2013},[1894,7491,7023],{"class":1900},[1894,7493,3939],{"class":2031},[1894,7495,7028],{"class":2041},[1894,7497,1931],{"class":2013},[1894,7499,2517],{"class":1900},[1894,7501,7035],{"class":2031},[1894,7503,1931],{"class":2013},[1894,7505,7040],{"class":1900},[1894,7507,2032],{"class":2031},[1894,7509,7510,7512],{"class":1896,"line":2478},[1894,7511,7047],{"class":2013},[1894,7513,2032],{"class":2031},[1894,7515,7516],{"class":1896,"line":2487},[1894,7517,7054],{"class":2031},[1894,7519,7520],{"class":1896,"line":2498},[1894,7521,7059],{"class":2031},[1894,7523,7524,7526,7528,7530],{"class":1896,"line":2509},[1894,7525,7064],{"class":2031},[1894,7527,7067],{"class":2013},[1894,7529,4100],{"class":1955},[1894,7531,3928],{"class":2031},[1894,7533,7534,7536,7538,7540,7542,7544,7546],{"class":1896,"line":2522},[1894,7535,7076],{"class":2031},[1894,7537,7079],{"class":2013},[1894,7539,7082],{"class":2031},[1894,7541,7085],{"class":1900},[1894,7543,7088],{"class":2031},[1894,7545,1931],{"class":2013},[1894,7547,7093],{"class":1955},[1894,7549,7550],{"class":1896,"line":2527},[1894,7551,7098],{"class":2031},[1894,7553,7554],{"class":1896,"line":2532},[1894,7555,4398],{"class":2031},[1894,7557,7558],{"class":1896,"line":2541},[1894,7559,7015],{"class":2031},[1894,7561,7562,7564,7566,7568,7570,7572],{"class":1896,"line":2552},[1894,7563,3969],{"class":2013},[1894,7565,4329],{"class":2031},[1894,7567,4332],{"class":1955},[1894,7569,7117],{"class":2031},[1894,7571,7085],{"class":1900},[1894,7573,7122],{"class":2031},[1894,7575,7576],{"class":1896,"line":2563},[1894,7577,4273],{"class":2031},[1894,7579,7580,7582,7584],{"class":1896,"line":2581},[1894,7581,3859],{"class":2031},[1894,7583,4024],{"class":2006},[1894,7585,3815],{"class":2031},[1894,7587,7588],{"class":1896,"line":2597},[1894,7589,2370],{"emptyLinePlaceholder":2369},[1894,7591,7592,7594,7596],{"class":1896,"line":2609},[1894,7593,3809],{"class":2031},[1894,7595,3812],{"class":2006},[1894,7597,3815],{"class":2031},[1894,7599,7600,7602,7605,7607,7609,7612,7614,7616,7619],{"class":1896,"line":2620},[1894,7601,3820],{"class":2031},[1894,7603,7604],{"class":2006},"USeparator",[1894,7606,4639],{"class":1900},[1894,7608,2014],{"class":2031},[1894,7610,7611],{"class":1904},"\"solid\"",[1894,7613,4429],{"class":1900},[1894,7615,2014],{"class":2031},[1894,7617,7618],{"class":1904},"\"h-px mt-12\"",[1894,7620,2020],{"class":2031},[1894,7622,7623,7625,7628],{"class":1896,"line":2632},[1894,7624,3820],{"class":2031},[1894,7626,7627],{"class":2006},"UFooter",[1894,7629,3815],{"class":2031},[1894,7631,7632,7634,7636,7638,7641],{"class":1896,"line":2648},[1894,7633,3831],{"class":2031},[1894,7635,3812],{"class":2006},[1894,7637,5224],{"class":2031},[1894,7639,7640],{"class":1900},"left",[1894,7642,3815],{"class":2031},[1894,7644,7645,7647,7649,7651,7653,7656,7659,7661],{"class":1896,"line":2664},[1894,7646,4950],{"class":2031},[1894,7648,1840],{"class":2006},[1894,7650,4429],{"class":1900},[1894,7652,2014],{"class":2031},[1894,7654,7655],{"class":1904},"\"text-(--ui-text-muted) text-sm\"",[1894,7657,7658],{"class":2031},">Copyright © {{ new Date().getFullYear() }}\u003C/",[1894,7660,1840],{"class":2006},[1894,7662,3815],{"class":2031},[1894,7664,7665,7667,7669],{"class":1896,"line":2676},[1894,7666,4570],{"class":2031},[1894,7668,3812],{"class":2006},[1894,7670,3815],{"class":2031},[1894,7672,7673],{"class":1896,"line":2681},[1894,7674,2370],{"emptyLinePlaceholder":2369},[1894,7676,7677,7679,7681,7683,7685,7687,7690,7692,7695],{"class":1896,"line":2686},[1894,7678,3831],{"class":2031},[1894,7680,7170],{"class":2006},[1894,7682,7181],{"class":1900},[1894,7684,2014],{"class":2031},[1894,7686,7186],{"class":1904},[1894,7688,7689],{"class":1900}," variant",[1894,7691,2014],{"class":2031},[1894,7693,7694],{"class":1904},"\"link\"",[1894,7696,2020],{"class":2031},[1894,7698,7699],{"class":1896,"line":2696},[1894,7700,2370],{"emptyLinePlaceholder":2369},[1894,7702,7703,7705,7707,7709,7711],{"class":1896,"line":2708},[1894,7704,3831],{"class":2031},[1894,7706,3812],{"class":2006},[1894,7708,5224],{"class":2031},[1894,7710,7210],{"class":1900},[1894,7712,3815],{"class":2031},[1894,7714,7715,7717],{"class":1896,"line":2720},[1894,7716,4950],{"class":2031},[1894,7718,7719],{"class":2006},"UButton\n",[1894,7721,7722,7725,7727],{"class":1896,"line":2734},[1894,7723,7724],{"class":1900},"        icon",[1894,7726,2014],{"class":2031},[1894,7728,7729],{"class":1904},"\"i-simple-icons-discord\"\n",[1894,7731,7732,7735,7737],{"class":1896,"line":2739},[1894,7733,7734],{"class":1900},"        color",[1894,7736,2014],{"class":2031},[1894,7738,7739],{"class":1904},"\"neutral\"\n",[1894,7741,7742,7745,7747],{"class":1896,"line":2744},[1894,7743,7744],{"class":1900},"        variant",[1894,7746,2014],{"class":2031},[1894,7748,7749],{"class":1904},"\"ghost\"\n",[1894,7751,7752,7755,7757],{"class":1896,"line":2753},[1894,7753,7754],{"class":1900},"        to",[1894,7756,2014],{"class":2031},[1894,7758,7759],{"class":1904},"\"https://directus.chat/\"\n",[1894,7761,7762,7765,7767],{"class":1896,"line":2765},[1894,7763,7764],{"class":1900},"        target",[1894,7766,2014],{"class":2031},[1894,7768,7769],{"class":1904},"\"_blank\"\n",[1894,7771,7772,7775,7777],{"class":1896,"line":2777},[1894,7773,7774],{"class":1900},"        aria-label",[1894,7776,2014],{"class":2031},[1894,7778,7779],{"class":1904},"\"Discord\"\n",[1894,7781,7782],{"class":1896,"line":2788},[1894,7783,7784],{"class":2031},"      />\n",[1894,7786,7787,7789],{"class":1896,"line":2793},[1894,7788,4950],{"class":2031},[1894,7790,7719],{"class":2006},[1894,7792,7793,7795,7797],{"class":1896,"line":2798},[1894,7794,7724],{"class":1900},[1894,7796,2014],{"class":2031},[1894,7798,7799],{"class":1904},"\"i-simple-icons-x\"\n",[1894,7801,7802,7804,7806],{"class":1896,"line":2807},[1894,7803,7734],{"class":1900},[1894,7805,2014],{"class":2031},[1894,7807,7739],{"class":1904},[1894,7809,7810,7812,7814],{"class":1896,"line":2818},[1894,7811,7744],{"class":1900},[1894,7813,2014],{"class":2031},[1894,7815,7749],{"class":1904},[1894,7817,7818,7820,7822],{"class":1896,"line":2830},[1894,7819,7754],{"class":1900},[1894,7821,2014],{"class":2031},[1894,7823,7824],{"class":1904},"\"https://x.com/directus\"\n",[1894,7826,7827,7829,7831],{"class":1896,"line":2848},[1894,7828,7764],{"class":1900},[1894,7830,2014],{"class":2031},[1894,7832,7769],{"class":1904},[1894,7834,7835,7837,7839],{"class":1896,"line":2861},[1894,7836,7774],{"class":1900},[1894,7838,2014],{"class":2031},[1894,7840,7841],{"class":1904},"\"X\"\n",[1894,7843,7844],{"class":1896,"line":2873},[1894,7845,7784],{"class":2031},[1894,7847,7848,7850],{"class":1896,"line":2878},[1894,7849,4950],{"class":2031},[1894,7851,7719],{"class":2006},[1894,7853,7854,7856,7858],{"class":1896,"line":2883},[1894,7855,7724],{"class":1900},[1894,7857,2014],{"class":2031},[1894,7859,7860],{"class":1904},"\"i-simple-icons-github\"\n",[1894,7862,7863,7865,7867],{"class":1896,"line":2892},[1894,7864,7734],{"class":1900},[1894,7866,2014],{"class":2031},[1894,7868,7739],{"class":1904},[1894,7870,7871,7873,7875],{"class":1896,"line":2904},[1894,7872,7744],{"class":1900},[1894,7874,2014],{"class":2031},[1894,7876,7749],{"class":1904},[1894,7878,7879,7881,7883],{"class":1896,"line":2916},[1894,7880,7754],{"class":1900},[1894,7882,2014],{"class":2031},[1894,7884,7885],{"class":1904},"\"https://github.com/directus/directus\"\n",[1894,7887,7888,7890,7892],{"class":1896,"line":2928},[1894,7889,7764],{"class":1900},[1894,7891,2014],{"class":2031},[1894,7893,7769],{"class":1904},[1894,7895,7896,7898,7900],{"class":1896,"line":2941},[1894,7897,7774],{"class":1900},[1894,7899,2014],{"class":2031},[1894,7901,7902],{"class":1904},"\"GitHub\"\n",[1894,7904,7905],{"class":1896,"line":2954},[1894,7906,7784],{"class":2031},[1894,7908,7909,7911,7913],{"class":1896,"line":2959},[1894,7910,4570],{"class":2031},[1894,7912,3812],{"class":2006},[1894,7914,3815],{"class":2031},[1894,7916,7917,7919,7921],{"class":1896,"line":2964},[1894,7918,3850],{"class":2031},[1894,7920,7627],{"class":2006},[1894,7922,3815],{"class":2031},[1894,7924,7925,7927,7929],{"class":1896,"line":2973},[1894,7926,3859],{"class":2031},[1894,7928,3812],{"class":2006},[1894,7930,3815],{"class":2031},[1840,7932,7252,7933,7935,7936,7939,7940,7943,7944,7947],{},[1891,7934,5024],{}," place the footer component (",[1891,7937,7938],{},"\u003CFooter />",") just after the closing ",[1891,7941,7942],{},"\u003Cdiv>"," of the ",[1891,7945,7946],{},"v-for=\"block in page.blocks\""," div.",[1840,7949,5081,7950,7952],{},[1891,7951,3877],{}," in the browser and you should see the completed home page with full navigation header and footer.",[1844,7954,7956],{"id":7955},"conclusion","Conclusion",[1840,7958,7959],{},"The Directus CMS provides an immediate starting point for a headless content management system. When combined with Nuxt it allows a user to create a modern, flexible website with a powerful CMS backend. This tutorial has shown how to set up Directus and Nuxt, create a home page, and add components to display content from Directus. The next step is to complete the implementation by building out the posts, about and contacts pages.",[1840,7961,7962,2127],{},[1877,7963,7966],{"href":7964,"rel":7965},"https://github.com/directus-labs/directus-guest-authoring/tree/master/036-directus-cms-home",[1881],"You can find a repository with the finished code on GitHub",[7968,7969,7970],"style",{},"html pre.shiki code .snPdu, html code.shiki .snPdu{--shiki-light:#6F42C1;--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sIIMD, html code.shiki .sIIMD{--shiki-light:#032F62;--shiki-default:#032F62;--shiki-dark:#9ECBFF}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 .sBjJW, html code.shiki .sBjJW{--shiki-light:#005CC5;--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sCsY4, html code.shiki .sCsY4{--shiki-light:#6A737D;--shiki-default:#6A737D;--shiki-dark:#6A737D}html pre.shiki code .sovSZ, html code.shiki .sovSZ{--shiki-light:#22863A;--shiki-default:#22863A;--shiki-dark:#85E89D}html pre.shiki code .s8jYJ, html code.shiki .s8jYJ{--shiki-light:#D73A49;--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sxrX7, html code.shiki .sxrX7{--shiki-light:#24292E;--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sP4rz, html code.shiki .sP4rz{--shiki-light:#E36209;--shiki-default:#E36209;--shiki-dark:#FFAB70}html pre.shiki code .sPrNH, html code.shiki .sPrNH{--shiki-light:#B31D28;--shiki-light-font-style:italic;--shiki-default:#B31D28;--shiki-default-font-style:italic;--shiki-dark:#FDAEB7;--shiki-dark-font-style:italic}",{"title":24,"searchDepth":1897,"depth":1952,"links":7972},[7973,7974,7977,7985,7994],{"id":1846,"depth":1952,"text":1847},{"id":1860,"depth":1952,"text":1861,"children":7975},[7976],{"id":1871,"depth":2035,"text":1872},{"id":1917,"depth":1952,"text":1918,"children":7978},[7979,7980,7981,7982,7983,7984],{"id":1921,"depth":2035,"text":1922},{"id":1964,"depth":2035,"text":1965},{"id":2263,"depth":2035,"text":2264},{"id":2288,"depth":2035,"text":2289},{"id":3789,"depth":2035,"text":3790},{"id":3866,"depth":2035,"text":3867},{"id":3992,"depth":1952,"text":3993,"children":7986},[7987,7988,7989,7990,7991,7992,7993],{"id":4603,"depth":2035,"text":4604},{"id":5087,"depth":2035,"text":5088},{"id":5332,"depth":2035,"text":5333},{"id":5754,"depth":2035,"text":5755},{"id":6080,"depth":2035,"text":6081},{"id":6718,"depth":2035,"text":6719},{"id":6772,"depth":2035,"text":6773},{"id":7955,"depth":1952,"text":7956},"md",{"slug":7997},"create-a-cms-using-directus-and-nuxt","---\nid: 11a1c86f-36bf-4dd5-8bce-7eed75451514\nslug: create-a-cms-using-directus-and-nuxt\ntitle: Create a CMS using Directus and Nuxt\ntechnologies:\n  - nuxt\nauthors:\n  - name: Craig Harman\n    title: Guest Author\ndescription: Learn how to create a CMS using Directus and Nuxt.\n---\n\nDirectus provides a headless CMS, which when combined with Nuxt will streamline content management. This post covers how to connect them to create a flexible, modern content management system.\n\n## Before You Start\n\nYou will need:\n- A new Directus project with admin access.\n\n## Set Up Your Directus Project\n\nStart with a Directus Cloud or self-hosted clean install of Directus. Follow the steps below to configure Directus with the necessary collections and permissions.\n\nFirst, using the new Directus instance, generate a static token for the admin user by going to the Users Directory. Choose the Administrative User, and scroll down to the Token field and generate a static token. Copy the token and save it. Do not forget to save the user, or you will encounter an \"Invalid token\" error.\n\n### Apply the CMS Template\n\nUse the [Directus Template CLI](https://github.com/directus-labs/directus-template-cli) to apply the CMS template for your project by opening your terminal and running the following command: \n\n```bash\nnpx directus-template-cli@latest apply\n```\n\nChoose Community templates, and select the CMS template. Fill in your Directus URL, and select Directus Access Token as the authentication method, filling in the token created earlier.\n\nThe Directus Template CLI will make the required changes to Directus to add the CMS template. This includes creating the necessary collections, fields, and relationships to manage your content.\n\n## Set Up Your Nuxt Project\n\n### Initialize Your Project\n\nCreate a new Nuxt project using [Nuxi](https://nuxt.com/docs/api/commands/init):\n\n```bash\nnpx nuxi@latest init directus-cms\ncd directus-cms\n```\n\nJust press enter to accept the defaults. None of the additional packages are required.\n\n### Configure Nuxt\n\nConfigure Nuxt so that it is able to communicate with the (external) Directus API. \n\nCreate a `.env` file with the Directus URL:  \n\n```\nNUXT_PUBLIC_API_URL=\"http://0.0.0.0:8055\"\n```\n\nAdd a type definition for our new environment variable by creating an `env.d.ts` file with the following content:\n\n  ```ts\n  /// \u003Creference types=\"vite/client\" />\n  interface ImportMetaEnv {\n  \treadonly NUXT_PUBLIC_API_URL: string;\n  }\n    \n  interface ImportMeta {\n  \treadonly env: ImportMetaEnv;\n  }\n  ```\n\nDepending on your project configuration and if you are in development or production you may need to configure a Nuxt proxy to allow access between your Nuxt project and Directus in your `nuxt.config.ts`:\n\n  ```ts\n  routeRules: {\n      \"/directus/**\": { proxy: `${import.meta.env.NUXT_PUBLIC_API_URL}/**` },\n    },\n  ```\n\nThis will allow your Nuxt project to access Directus via your Nuxt URL, eg. [http://localhost:3000/directus](http://localhost:3000/directus)\n\nConfigure [Nuxt UI](https://ui.nuxt.com/docs/getting-started/installation/nuxt):\n\n1. Install Nuxt UI:\n\n```bash\nnpm i @nuxt/ui\n```\n\n3. Create a CSS file in `app/assets/css/main.css` and add the following content:\n\n```css\n@import \"tailwindcss\";\n@import \"@nuxt/ui\";\n```\n\n3. Add the Nuxt UI module to your `nuxt.config.ts`:\n\n```ts\nmodules: ['@nuxt/ui'],\ncss: ['./app/assets/css/main.css'],\n```\n\n### Additional packages\n\nTo assist in development install the following packages:\n\n```bash\nnpm install @directus/sdk @nuxt/ui-pro\n```\n\n### Define a Directus Schema\n\nTypeScript needs to know what the structure of the Directus data is. To achieve this create a `directus.d.ts` file in the root of our project which defines our schema and add the Post collection structure:\n\n```ts\n/// \u003Creference types=\"@directus/extensions/api.d.ts\" />\ninterface DirectusSchema {\n\tpages: Page[];\n\tform_submissions: FormSubmission\n\tnavigation: Navigation[];\n}\n\ninterface Page {\n\tid: number;\n\ttitle: string;\n\tpermalink: string;\n\tstatus: string;\n\tpublished_at: string;\n\tseo: SEOMeta;\n\tblocks: Block[];\n}\n\ninterface Navigation {\n\tid: string;\n\ttitle: string;\n\titems: NavigationItem[];\n}\n\ninterface NavigationItem {\n\tid: string;\n\tnavigation: string;\n\tpage: string | null;\n\tparent: string | null;\n\tsort: number;\n\ttitle: string;\n\ttype: string;\n\turl: string | null;\n\tpost: string | null;\n\tchildren: NavigationItem[];\n}\n\ninterface FormSubmission {\n\tid?: number;\n\tform: string;\n\tvalues: FormFieldValue[]\n}\n\ninterface FormFieldValue {\n\tlabel: string;\n\tvalue: string;\n\ttype: string;\n}\n\ninterface Block {\n\tid: string;\n\tcollection: string;\n\titem: Hero | RichText;\n\tno_index: boolean;\n\tno_follow: boolean;\n}\n\ninterface Hero {\n\ttagline: string;\n\theadline: string;\n\tdescription: string;\n\tbutton_group: ButtonGroup;\n\timage: Image;\n}\n\ninterface ButtonGroup {\n\tbuttons: Button[];\n}\n\ninterface Button {\n\tlabel: string;\n\turl: string;\n\tvariant: ButtonProps['variant'];\n}\n\ninterface Image {\n\tid: number;\n\ttitle: string;\n}\n\ninterface RichText {\n\ttagline: string;\n\theadline: string;\n\tcontent: string;\n\talignment: string;\n\thide_block: boolean;\n}\n\ninterface Pricing {\n\tid: number;\n\ttagline: string;\n\theadline: string;\n\tpricing_cards: PricingCard[];\n}\n\ninterface PricingCard {\n\tid: number;\n\ttitle: string;\n\tdescription: string;\n\tprice: string;\n\tbadge: string;\n\tfeatures: string[];\n\tpricing: string;\n\tis_highlighted: boolean;\n\tsort?: number;\n\tbutton: Button;\n}\n\ninterface Form {\n\tid: string;\n\theadline: string;\n\ttagline: string;\n\tform: FormElement;\n}\n\ninterface FormElement {\n\tid: string;\n\tsort: number | null;\n\ttitle: string;\n\tis_active: boolean;\n\tsubmit_label: string;\n\ton_success: string;\n\tsuccess_message: string;\n\tsuccess_redirect_url: string | null;\n\tfields: FormField[];\n}\n\ninterface FormField {\n\tid: string;\n\tname: string;\n\ttype: string;\n\tlabel: string;\n\tplaceholder: string | null;\n\thelp: string | null;\n\tvalidation: string | null;\n\twidth: string;\n\tchoices: string[]| null;\n\tform: string;\n\tsort: number;\n\trequired: boolean;\n}\n\ninterface SEOMeta {\n\ttitle: string;\n\tmeta_description: string;\n}\n```\n\n### Use Nuxt page router\n\nConfigure Nuxt to use the page router and Nuxt UI by editing `app.vue` replacing the content with:\n\n```html\n\u003Ctemplate>\n  \u003CUApp>\n    \u003CNuxtRouteAnnouncer />\n    \u003CNuxtPage />\n  \u003C/UApp>\n\u003C/template>\n```\n\n### Create a Directus plugin\n\nCreate a Nuxt plugin to streamline accessing Directus throughout your application. Create a new file `plugins/directus.ts`\nCopy and paste in the code below, replace the `your-website-url` with your Nuxt URL and port:\n\n```ts\nimport { createDirectus, rest, readItem, readItems } from \"@directus/sdk\";\nconst directus = createDirectus\u003CDirectusSchema>(\n\t\"http://localhost:3000/directus\",\n).with(rest());\nexport default defineNuxtPlugin(() => {\n\treturn {\n\t\tprovide: { directus, readItem, readItems },\n\t};\n});\n```\n\nThis file handles all the interaction with Directus and provides Nuxt with the required Directus SDK features.\n\n\n## Create the Home Page\n\nThe Directus CMS template comes with an example home page. The home page is a collection of different sections which will be created as Nuxt components.\n\n![Directus CMS Home page user interface](/img/directus-home-ui.png)\n\nFirst, create a home page as a parent for all the components. This will be in `pages/index.vue` with the following content:\n\n```vue\n\u003Cscript setup lang=\"ts\">\nconst { $directus, $readItems } = useNuxtApp()\nconst route = useRoute()\nconst page: Ref\u003CPage | undefined> = ref()\n\nconst { data, error } = await useAsyncData('page', async () => {\n\treturn $directus.request($readItems('pages', {\n\t\tfields: ['id', 'title', 'permalink', 'published_at', 'seo', 'blocks.collection', 'blocks.item.*', 'blocks.item.image.*', 'blocks.item.button_group.buttons.*', 'blocks.item.items.*', 'blocks.item.pricing_cards.*', 'blocks.item.pricing_cards.button.*', 'blocks.item.form.*', 'blocks.item.form.fields.*'],\n\t\tfilter: { title: { _eq: 'Home' } },\n\t}))\n})\n\nif (error.value || !data.value) {\n\tconsole.error('Error fetching home page:', error.value)\n} else {\n\tpage.value = data.value[0]\n}\n\nconst blockToComponent = (collectionName: string) => {\n\tswitch (collectionName) {\n\t\tdefault:\n\t\t\treturn 'div'\n\t}\n}\n\u003C/script>\n\u003Ctemplate>\n\t \u003CUContainer class=\"mt-8\">\n\t\t\u003Cdiv v-if=\"page\" class=\"prose dark:prose-invert\">\n\t\t\t\u003Ch1>{{ page.title }}\u003C/h1>\n\t\t\t\u003Cdiv v-for=\"block in page.blocks\" :key=\"block.id\">\n\t\t\t\t\u003Ccomponent :is=\"blockToComponent(block.collection)\" v-bind=\"block.item\">\u003C/component>\n\t\t\t\u003C/div>\n\t\t\u003C/div>\n\t\t\u003Cdiv v-else>Loading...\u003C/div>\n\t\u003C/UContainer>\n\u003C/template>\n```\n\nThis page uses the Directus plugin to fetch the home page data which can then be passed to the components as they are created. Note the `v-for` loop which will iterate through the blocks in the home page and render each as a component.\n\nNext, create each component. To work out what properties each component needs use Directus Studio. Go to Settings -> Data Model and select the block corresponding to the component you are creating. For example the Hero block can be found under `blocks` -> `block_hero`. Click on it to the fields and their types. This is how the properties were identified for each component below.\n\n### Hero Section\n\nCreate a new file `components/Hero.vue` and add the following code:\n\n```vue\n\u003Cscript setup lang=\"ts\">\nimport type { ButtonProps } from '@nuxt/ui';\n\nconst props = defineProps\u003C{\n\tid: string,\n\ttagline: string,\n\theadline: string,\n\tdescription: string,\n\tbutton_group?: ButtonGroup,\n\timage: Image,\n}>()\n\nconst links: Ref\u003CButtonProps[]> = ref([])\n\nif (props.button_group) {\n\tfor (const button of props.button_group.buttons) {\n\t\tlinks.value.push({\n\t\t\tlabel: button.label,\n\t\t\tto: button.url || '/',\n\t\t\tvariant: (button.variant === \"default\" ? \"solid\" : button.variant) as ButtonProps['variant'],\n\t\t})\n\t}\n}\n\u003C/script>\n\u003Ctemplate>\n\t\u003CUPageHero\n    \t:title=\"headline\"\n    \t:description=\"description\"\n    \t:headline=\"tagline\"\n\t\t:links=\"links\"\n\t\torientation=\"horizontal\"\n  \t>\n\t  \u003Cimg\n\t\t:src=\"'/directus/assets/' + image.id\"\n\t\t:alt=\"image.title || ''\"\n\t\tclass=\"rounded-lg shadow-2xl ring ring-(--ui-border)\"\n    \t/>\n\t\u003C/UPageHero>\n\u003C/template>\n```\n\nThis component uses the `UPageHero` component from Nuxt UI Pro. The `props` object is used to define the properties that are passed to the component from Directus CMS. As the properties used for the buttons in DIrectus don't match those used in Nuxt UI they are manipulated and then stored in `links`.\n\nTo use the new Hero component import it at the top of the `index.vue` file:\n\n```ts\nimport Hero from '../components/Hero.vue'\n```\n\nThen add it as a `case` to the `blockToComponent` switch statement (just before the `default` case):\n\n```ts\ncase 'block_hero':\n\treturn Hero\n```\n\nVisit `your-website-url` in the browser and you should see the Hero section of the home page properly laid out and with all its data.\n\n### Rich Text Section\n\nCreate a new file `components/RichText.vue` and add the following code:\n\n```vue\n\u003Cscript setup lang=\"ts\">\ndefineProps\u003C{\n\tid: string,\n\ttagline: string,\n\theadline: string,\n\tcontent: string,\n\talignment: string\n}>()\n\u003C/script>\n\u003Ctemplate>\n\t\u003CUPageHero\n\t\t:title=\"headline\"\n\t\t:headline=\"tagline\">\n\t\t\u003Ctemplate #description>\n\t\t\t\u003Cdiv v-html=\"content\">\u003C/div>\n\t\t\u003C/template>\n\t\u003C/UPageHero>\n\u003C/template>\n```\n\nTo use the new RichText component import it at the top of the `index.vue` file:\n\n```ts\nimport RichText from '../components/RichText.vue'\n```\n\nThen add it as a `case` to the `blockToComponent` switch statement (just before the `default` case):\n\n```ts\ncase 'block_richtext':\n\treturn RichText\n```\n\nVisit `your-website-url` in the browser and you should see the rich text appear formatted below the Hero section.\n\n### Gallery Section\n\nCreate a new file `components/Gallery.vue` and add the following code:\n\n```vue\n\u003Cscript setup lang=\"ts\">\n\nconst props = defineProps\u003C{\n  id: string\n  tagline: string\n  headline: string\n  items: GalleryItem[]\n}>()\n\ntype GalleryItem = {\n\tid: string;\n\tblock_gallery: string;\n\tdirectus_file: string;\n\tsort: number;\n}\n\u003C/script>\n\n\u003Ctemplate>\n  \u003CRichText\n\t:id=\"id\"\n\t:tagline=\"tagline\"\n\t:headline=\"headline\"\n\t:content=\"''\"\n\talignment=\"center\"\n  />\n  \u003CUCarousel\n    v-slot=\"{ item }\"\n    loop\n    dots\n    :autoplay=\"{ delay: 3000 }\"\n    :items=\"items\"\n    :ui=\"{ item: 'basis-1/4' }\"\n\tclass=\"w-full mx-auto -mt-36\"\n  >\n    \u003Cimg :src=\"'/directus/assets/' + item.directus_file\" width=\"234\" height=\"234\" class=\"rounded-lg\">\n  \u003C/UCarousel>\n\u003C/template>\n```\n\nThis component makes use of the existing `RichText` component to display the title and tagline. The `UCarousel` component from Nuxt UI Pro is used to display the images in a carousel format.\n\nTo use the new Gallery component import it at the top of the `index.vue` file:\n\n```ts\nimport Gallery from '../components/Gallery.vue'\n```\n\nThen add it as a `case` to the `blockToComponent` switch statement (just before the `default` case):\n\n```ts\ncase 'block_gallery':\n\treturn Gallery\n```\n\nVisit `your-website-url` in the browser and you should see the image gallery carousel displaying thumbnails from Directus.\n\n### Pricing Section\n\nCreate a new file `components/Pricing.vue` and add the following code:\n\n```vue\n\u003Cscript lang=\"ts\" setup>\n\nconst props = defineProps\u003C{\n\tid: string\n\ttagline: string\n\theadline: string\n\tpricing_cards: PricingCard[]\n}>()\n\u003C/script>\n\n\u003Ctemplate>\n\t\u003CRichText\n\t\t:id=\"id\"\n\t\t:tagline=\"tagline\"\n\t\t:headline=\"headline\"\n\t\t:content=\"''\"\n\t\talignment=\"center\"\n\t/>\n\t\u003CUPricingPlans class=\"-mt-36\">\n\t\t\u003CUPricingPlan\n\t\tv-for=\"(plan, index) in pricing_cards\"\n\t\t:key=\"index\"\n\t\t:title=\"plan.title\"\n\t\t:description=\"plan.description\"\n\t\t:features=\"plan.features\"\n\t\t:price=\"plan.price\"\n\t\t:highlight=\"plan.is_highlighted\"\n\t\t/>\n\t\u003C/UPricingPlans>\n\u003C/template>\n```\n\nTo use the new Pricing component import it at the top of the `index.vue` file:\n\n```ts\nimport Pricing from '../components/Pricing.vue'\n```\n\nThen add it as a `case` to the `blockToComponent` switch statement (just before the `default` case):\n\n```ts\ncase 'block_pricing':\n\treturn Pricing\n```\n\nVisit `your-website-url` in the browser and you should see the pricing cards at the bottom of the home page.\n\n### Form Section\n\nCreate a new file `components/Form.vue` and add the following code:\n\n```vue\n\u003Cscript setup lang=\"ts\">\nimport { UInput } from '#components';\nconst { $directus, $createItem } = useNuxtApp()\n\nconst props = defineProps\u003C{\n\tid: string;\n\theadline: string;\n\ttagline: string;\n\tform: FormElement;\n}>()\n\nconst directusToNuxtUI = (field: FormField) => {\n\tswitch (field.type) {\n\t\tcase 'text':\n\t\t\treturn UInput\n\t}\n}\n\nconst state = reactive({\n  items: props.form.fields,\n})\n\nconst onSubmit = (event: Event) => {\n\tevent.preventDefault()\n\tconst formData = new FormData(event.target as HTMLFormElement)\n\tconst data = Object.fromEntries(formData.entries())\n}\n\n\u003C/script>\n\u003Ctemplate>\n\t\u003CRichText\n\t\t:id=\"id\"\n\t\t:tagline=\"tagline\"\n\t\t:headline=\"headline\"\n\t\t:content=\"''\"\n\t\talignment=\"center\"\n\t/>\n\t\u003CUForm\n\t\t:id=\"id\"\n\t\t:form=\"form\"\n\t\t:fields=\"form.fields\"\n\t\t:submitLabel=\"form.submit_label\"\n\t\t:successMessage=\"form.success_message\"\n\t\t:state=\"state\"\n\t\t@submit=\"onSubmit\"\n\t\tclass=\"-mt-36 mx-auto max-w-sm\"\n\t>\n\t\t\u003CUFormField v-for=\"field in form.fields\" :key=\"field.id\" :label=\"field.label\" :name=\"field.name\">\n\t\t\t\u003Ccomponent :is=\"directusToNuxtUI(field)\" v-bind=\"field\">\u003C/component>\n\t\t\u003C/UFormField>\n\n\t\t\u003CUButton type=\"submit\">\n\t\t{{ form.submit_label }}\n\t\t\u003C/UButton>\n\t\u003C/UForm>\n\u003C/template>\n```\n\nTo use the new Form component import it at the top of the `index.vue` file:\n\n```ts\nimport Form from '../components/Form.vue'\n```\n\nThen add it as a `case` to the `blockToComponent` switch statement (just before the `default` case):\n\n```ts\ncase 'block_form':\n\treturn Form\n```\n\n### SEO\n\nThe Directus CMS template comes with a set of SEO metadata fields that can be displayed for each page. Nuxt comes with a [Head component](https://nuxt.com/docs/getting-started/seo-meta#components) that allows the insertion of this metadata directly in the home page. In `index.vue` add the following code just after `\u003Cdiv v-if=\"page\">`:\n\n```vue\n\u003CHead>\n\t\u003CTitle>{{ page.seo?.title || 'Directus CMS Post' }}\u003C/Title>\n\t\u003CMeta name=\"description\" :content=\"page.seo?.meta_description || ''\" />\n\u003C/Head>\n```\n\nVisit your application in the browser and inspect the page. You should see the SEO metadata in the head of the page.\n\n### Header and Footer\n\nThe Directus CMS template includes header and footer navigation items. These can be added to the home page by creating a new component for each.\nCreate a new file `components/Header.vue` and add the following code:\n\n```vue\n\u003Cscript lang=\"ts\" setup>\nimport type { ArrayOrNested, NavigationMenuItem } from '@nuxt/ui'\n\nconst { $directus, $readItems } = useNuxtApp()\n\nconst { data, error } = await useAsyncData('navigation', async () => {\n\treturn $directus.request($readItems('navigation', {\n\t\tfields: ['id', 'title', 'items.*', 'items.children.*'],\n\t\tfilter: { id: { _eq: 'main' } },\n\t\tlimit: 1,\n\t}))\n})\n\nconst items: ComputedRef\u003CNavigationMenuItem[]> = computed(() => {\n\tif (!data.value || !data.value[0]?.items) return []\n\t\n\tfunction mapItem(item: NavigationItem): NavigationMenuItem {\n\t\treturn {\n\t\t\tid: item.id,\n\t\t\tlabel: item.title,\n\t\t\tto: item.url ?? undefined,\n\t\t\tchildren: item.children ? item.children.map(mapItem) : undefined\n\t\t}\n\t}\n\t\n\treturn data.value[0].items.map(mapItem)\n})\n\u003C/script>\n\u003Ctemplate>\n\t\u003CUHeader title=\"Directus CMS\">\n\n\t\u003CUNavigationMenu content-orientation=\"vertical\" :items=\"items\" class=\"w-full justify-center\" />\n\n    \u003Ctemplate #right>\n      \u003CUColorModeButton />\n    \u003C/template>\n  \u003C/UHeader>\n\t\n\u003C/template>\n```\n\nIn `index.vue` under the `\u003C/head>` tag add the header component: `\u003CHeader />`\n\nThe footer navigation is similar. Create a new file `components/Footer.vue` and add the following code:\n\n```vue\n\u003Cscript setup lang=\"ts\">\nimport type { NavigationMenuItem } from '@nuxt/ui'\n\nconst { $directus, $readItems } = useNuxtApp()\n\nconst { data, error } = await useAsyncData('navigation', async () => {\n\treturn $directus.request($readItems('navigation', {\n\t\tfields: ['id', 'title', 'items.*', 'items.children.*'],\n\t\tfilter: { id: { _eq: 'footer' } },\n\t\tlimit: 1,\n\t}))\n})\n\nconst items: ComputedRef\u003CNavigationMenuItem[]> = computed(() => {\n\tif (!data.value || !data.value[0]?.items) return []\n\t\n\tfunction mapItem(item: NavigationItem): NavigationMenuItem {\n\t\treturn {\n\t\t\tid: item.id,\n\t\t\tlabel: item.title,\n\t\t\tto: item.url ?? undefined,\n\t\t\tchildren: item.children ? item.children.map(mapItem) : undefined\n\t\t}\n\t}\n\t\n\treturn data.value[0].items.map(mapItem)\n})\n\u003C/script>\n\n\u003Ctemplate>\n  \u003CUSeparator type=\"solid\" class=\"h-px mt-12\" />\n  \u003CUFooter>\n    \u003Ctemplate #left>\n      \u003Cp class=\"text-(--ui-text-muted) text-sm\">Copyright © {{ new Date().getFullYear() }}\u003C/p>\n    \u003C/template>\n\n    \u003CUNavigationMenu :items=\"items\" variant=\"link\" />\n\n    \u003Ctemplate #right>\n      \u003CUButton\n        icon=\"i-simple-icons-discord\"\n        color=\"neutral\"\n        variant=\"ghost\"\n        to=\"https://directus.chat/\"\n        target=\"_blank\"\n        aria-label=\"Discord\"\n      />\n      \u003CUButton\n        icon=\"i-simple-icons-x\"\n        color=\"neutral\"\n        variant=\"ghost\"\n        to=\"https://x.com/directus\"\n        target=\"_blank\"\n        aria-label=\"X\"\n      />\n      \u003CUButton\n        icon=\"i-simple-icons-github\"\n        color=\"neutral\"\n        variant=\"ghost\"\n        to=\"https://github.com/directus/directus\"\n        target=\"_blank\"\n        aria-label=\"GitHub\"\n      />\n    \u003C/template>\n  \u003C/UFooter>\n\u003C/template>\n```\n\nIn `index.vue` place the footer component (`\u003CFooter />`) just after the closing `\u003Cdiv>` of the `v-for=\"block in page.blocks\"` div.\n\nVisit `your-website-url` in the browser and you should see the completed home page with full navigation header and footer.\n\n## Conclusion\n\nThe Directus CMS provides an immediate starting point for a headless content management system. When combined with Nuxt it allows a user to create a modern, flexible website with a powerful CMS backend. This tutorial has shown how to set up Directus and Nuxt, create a home page, and add components to display content from Directus. The next step is to complete the implementation by building out the posts, about and contacts pages.\n\n[You can find a repository with the finished code on GitHub](https://github.com/directus-labs/directus-guest-authoring/tree/master/036-directus-cms-home).\n",{"title":1486,"description":1489},[8001],"nuxt","5zKcbEMsu2Lm0wqyIEVZW1_i0trwFarQoYHBeL-9gzo",1775038780481]