diff --git a/.directus/README.md b/.directus/README.md deleted file mode 100644 index b2953a92..00000000 --- a/.directus/README.md +++ /dev/null @@ -1,5 +0,0 @@ -The .directus directory holds a sample Docker Compose file that you can use to quickly spin up a local version of -AgencyOS. - -It also contains a `run-scripts` with some of the Run Script operation scripts using in the Directus instance > Flows > -Operations. diff --git a/.directus/docker-compose.yaml b/.directus/docker-compose.yaml deleted file mode 100644 index c3121cbf..00000000 --- a/.directus/docker-compose.yaml +++ /dev/null @@ -1,58 +0,0 @@ -version: '3' -services: - database: - image: postgis/postgis:13-master - # Required when running on platform other than amd64, like Apple M1/M2: - # platform: linux/amd64 - ports: - - 5432:5432 - volumes: - - ./data/database:/var/lib/postgresql/data - environment: - POSTGRES_USER: 'directus' - POSTGRES_PASSWORD: 'directus' - POSTGRES_DB: 'directus' - - cache: - image: redis:6 - - directus: - image: directus/directus:10.13.1 - ports: - - 8055:8055 - volumes: - - ./uploads:/directus/uploads - # If you want to load extensions from the host - - ./extensions:/directus/extensions - depends_on: - - cache - - database - environment: - KEY: '255d861b-5ea1-5996-9aa3-922530ec40b1' - SECRET: '6116487b-cda1-52c2-b5b5-c8022c45e263' - - DB_CLIENT: 'pg' - DB_HOST: 'database' - DB_PORT: '5432' - DB_DATABASE: 'directus' - DB_USER: 'directus' - DB_PASSWORD: 'directus' - - CACHE_ENABLED: 'false' - CACHE_STORE: 'redis' - REDIS: 'redis://cache:6379' - - ADMIN_EMAIL: 'admin@example.com' - ADMIN_PASSWORD: 'd1r3ctu5' - - # These is helpful for local developement but should probably be removed in production - CORS_ENABLED: 'true' - EXTENSIONS_AUTO_RELOAD: 'true' - - WEBSOCKETS_ENABLED: 'true' - # The default config prevents importing files from 0.0.0.0. See https://docs.directus.io/self-hosted/config-options.html#security . This can be removed in production but in local development it is recommended to keep it so you can import logos from Organization > website. - IMPORT_IP_DENY_LIST: '' - - # Make sure to set this in production - # (see https://docs.directus.io/self-hosted/config-options#general) - # PUBLIC_URL: 'https://directus.example.com' diff --git a/.directus/template/README.md b/.directus/template/README.md deleted file mode 100644 index bdcfed7e..00000000 --- a/.directus/template/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# AgencyOS Template - -This is a template for [Directus](https://directus.io/) - an open-source headless CMS and API. Use the template-cli to load / apply this template to a blank instance. - -## Why - -## What - -## License - -This template is licensed under the [MIT License](https://opensource.org/licenses/MIT). diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index f06235c4..00000000 --- a/.eslintignore +++ /dev/null @@ -1,2 +0,0 @@ -node_modules -dist diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index e9cca972..00000000 --- a/.eslintrc.js +++ /dev/null @@ -1,93 +0,0 @@ -const defaultRules = { - // No console statements in production - 'no-console': process.env.NODE_ENV !== 'development' ? 'error' : 'off', - // No debugger statements in production - 'no-debugger': process.env.NODE_ENV !== 'development' ? 'error' : 'off', - // Enforce prettier formatting - 'prettier/prettier': 'error', - 'padding-line-between-statements': [ - 'error', - { - blankLine: 'always', - prev: [ - 'block', - 'block-like', - 'cjs-export', - 'class', - 'export', - 'import', - 'multiline-block-like', - 'multiline-const', - 'multiline-expression', - 'multiline-let', - 'multiline-var', - ], - next: '*', - }, - { - blankLine: 'always', - prev: ['const', 'let'], - next: ['block', 'block-like', 'cjs-export', 'class', 'export', 'import'], - }, - { - blankLine: 'always', - prev: '*', - next: ['multiline-block-like', 'multiline-const', 'multiline-expression', 'multiline-let', 'multiline-var'], - }, - { blankLine: 'any', prev: ['export', 'import'], next: ['export', 'import'] }, - ], - 'lines-between-class-members': ['error', 'always', { exceptAfterSingleLine: true }], - 'no-nested-ternary': 'error', - curly: ['error', 'multi-line'], -}; - -module.exports = { - // Stop looking for ESLint configurations in parent folders - root: true, - // Global variables: Browser and Node.js - env: { - browser: true, - node: true, - }, - // Basic configuration for js files - plugins: ['@typescript-eslint', 'prettier'], - extends: ['eslint:recommended', 'prettier'], - rules: defaultRules, - parserOptions: { - ecmaVersion: 2022, - sourceType: 'module', - }, - overrides: [ - // Configuration for ts/vue files - { - files: ['*.ts', '*.vue'], - parser: 'vue-eslint-parser', - parserOptions: { - parser: '@typescript-eslint/parser', - }, - extends: [ - 'plugin:vue/vue3-recommended', - 'eslint:recommended', - 'plugin:@typescript-eslint/recommended', - 'prettier', - ], - rules: { - ...defaultRules, - 'vue/multi-word-component-names': 'off', - 'vue/require-default-prop': 'off', - // It's recommended to turn off this rule on TypeScript projects - 'no-undef': 'off', - // Allow ts-directive comments (used to suppress TypeScript compiler errors) - '@typescript-eslint/ban-ts-comment': 'off', - // Allow usage of the any type (consider to enable this rule later on) - '@typescript-eslint/no-explicit-any': 'off', - // Allow usage of require statements (consider to enable this rule later on) - '@typescript-eslint/no-var-requires': 'off', - // Allow non-null assertions for now (consider to enable this rule later on) - '@typescript-eslint/no-non-null-assertion': 'off', - // Allow unused arguments and variables when they begin with an underscore - '@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }], - }, - }, - ], -}; diff --git a/.github/actions/prepare/action.yml b/.github/actions/prepare/action.yml index e91205de..450f63a6 100644 --- a/.github/actions/prepare/action.yml +++ b/.github/actions/prepare/action.yml @@ -9,16 +9,17 @@ runs: using: 'composite' steps: - name: Install Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 22 registry-url: ${{ inputs.registry }} - - uses: pnpm/action-setup@v2 + - uses: pnpm/action-setup@v4 name: Install pnpm id: pnpm-install with: run_install: false + package_json_file: nuxt/package.json - name: Get pnpm store directory id: pnpm-cache @@ -26,14 +27,15 @@ runs: run: | echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT - - uses: actions/cache@v3 + - uses: actions/cache@v4 name: Setup pnpm cache with: path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('nuxt/pnpm-lock.yaml') }} restore-keys: | ${{ runner.os }}-pnpm-store- - name: Install dependencies shell: bash + working-directory: nuxt run: pnpm install diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 421a9831..dac4a06d 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -20,9 +20,12 @@ jobs: lint: name: Lint runs-on: ubuntu-latest + defaults: + run: + working-directory: nuxt steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Prepare uses: ./.github/actions/prepare diff --git a/.github/workflows/typecheck.yaml b/.github/workflows/typecheck.yaml index 1511dd03..88278219 100644 --- a/.github/workflows/typecheck.yaml +++ b/.github/workflows/typecheck.yaml @@ -20,9 +20,12 @@ jobs: typecheck: name: Typecheck runs-on: ubuntu-latest + defaults: + run: + working-directory: nuxt steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Prepare uses: ./.github/actions/prepare diff --git a/.gitignore b/.gitignore index 80157b22..5ed9499b 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ dist .vscode .eslintcache .netlify -.directus/data -.directus/uploads -directus +directus/data +directus/uploads +directus/extensions +.directus-template-cli diff --git a/README.md b/README.md index fa9116ef..ea6eb93c 100644 --- a/README.md +++ b/README.md @@ -1,64 +1,64 @@ - Agency OS - Complete Nuxt3 + Directus project + Agency OS - Complete Nuxt3 + Directus project

AgencyOS

AgencyOS is everything you need to get your agency off the ground, or improve tooling for your existing company. Nuxt 3 Website / Application + Directus Backend.

-

Brought to you by partnership magic ✨ between Directus and NuxtLabs. +

Brought to you by partnership magic between Directus and NuxtLabs.

Introduction · - ⭐ Features · - 🚧 Installation and Development · - 🚢 Deployment · - 🧰 Tech Stack · - 🛟 Community Help · - ❤️ Contributing + Features · + Installation and Development · + Deployment · + Tech Stack · + Community Help · + Contributing



# Introduction -One of the **easiest parts** of running a successful digital agency is doing the **actual work**. I mean - who doesn’t +One of the **easiest parts** of running a successful digital agency is doing the **actual work**. I mean - who doesn't love to put their head down to collaborate, design, and build amazing stuff for clients? The **hard bits** are everything else that goes along with that – managing large projects with tons of moving pieces, -communicating with clients to properly manage expectations, ensuring you’re paid on time, and more. +communicating with clients to properly manage expectations, ensuring you're paid on time, and more. -When every billable hour counts, you don’t have the time to build your own tools from scratch. And you shouldn’t be +When every billable hour counts, you don't have the time to build your own tools from scratch. And you shouldn't be forced to settle for off-the-shelf tech that falls short of your preferred workflow. -**AgencyOS is the open source operating system to help you run (or start) your digital agency.** It’s built on open +**AgencyOS is the open source operating system to help you run (or start) your digital agency.** It's built on open source tools (Nuxt and Directus) and designed to be 100% hackable so you can build YOUR solution, YOUR project -management app, YOUR agency’s operating system – in record time. +management app, YOUR agency's operating system – in record time. **Why?** Quite a few folks on the [Directus](https://github.com/directus/directus) core team have experience running agencies and -we know it’s not all rainbows and sunshine. We wanted to build an tool that our +we know it's not all rainbows and sunshine. We wanted to build an tool that our [agency partners](https://directus.io/solutions/agencies) (and any other agency) would get a lot of value from. It was also created as a complete example to showcase the power and flexibility of Directus as a platform to rapidly build your own apps and tools. **Getting Started** -- → **[Read Installation Instructions](#🚧-installation-and-development)** -- → **[View The Demo Site](https://agency-os.vercel.app/)** -- → **[Watch the Video Tutorials](https://www.youtube.com/playlist?list=PLD--x9rY3ZL1tPNZxCTE_-IsFTrFGKHH-)** +- [Read Installation Instructions](#installation-and-development) +- [View The Demo Site](https://agency-os.vercel.app/) +- [Watch the Video Tutorials](https://www.youtube.com/playlist?list=PLD--x9rY3ZL1tPNZxCTE_-IsFTrFGKHH-) --- -# ⭐ Features +# Features ## Website -When you’re hard at work delivering for clients - your own site tends to suffer. AgencyOS includes beautiful website -template that’s easily customizable and already integrated with an easy-to-use headless CMS. +When you're hard at work delivering for clients - your own site tends to suffer. AgencyOS includes beautiful website +template that's easily customizable and already integrated with an easy-to-use headless CMS. -It’s not a starter template. It’s a complete website project for you customize or inspire you to build an even better +It's not a starter template. It's a complete website project for you customize or inspire you to build an even better solution. - Dynamic page builder with live preview @@ -75,7 +75,7 @@ solution. ### CRM / Project Tracker -Maintaining important client relationships doesn’t just fall to the sales team. So why maintain separate project +Maintaining important client relationships doesn't just fall to the sales team. So why maintain separate project management and CRM tools? AgencyOS includes a completely customizable CRM so you can work the way you want. - Organizations and contacts @@ -89,7 +89,7 @@ management and CRM tools? AgencyOS includes a completely customizable CRM so you ### Client Portal -Communication is probably the biggest driver of project success. With AgencyOS’s private client portal - you can insure +Communication is probably the biggest driver of project success. With AgencyOS's private client portal - you can insure your clients stay up to date and even hold them accountable for delivering the files and information you need to complete their project @@ -104,84 +104,95 @@ complete their project
-# **🚧 Installation and Development** +# Installation and Development -There are two main pieces to AgencyOS - the backend and APIs powered by [Directus](https://directus.io) and the frontend -website and application powered by [Nuxt](https://nuxt.com). +AgencyOS is structured as a monorepo with two main parts: -## **🐰 Directus - Backend + Headless CMS** +- **`directus/`** – Directus backend (Docker Compose + template data) +- **`nuxt/`** – Nuxt 3 frontend (website + client portal) -### 1 - Create a Directus project +## Project Structure -There are two ways you can quickly setup a Directus project to use for AgencyOS. - -**1a - Register for a Directus Cloud account** +``` +agency-os/ +├── directus/ # Directus backend +│ ├── docker-compose.yaml +│ ├── .env.example +│ ├── run-scripts/ # Flow operation scripts +│ └── template/ # Directus schema and sample content +├── nuxt/ # Nuxt 3 frontend +│ ├── package.json +│ ├── nuxt.config.ts +│ └── ... +├── package.json # Root config (directus:template metadata) +└── README.md +``` -https://directus.cloud/register +## Quick Start (Recommended) -This is the easy button. You don’t have to mess with Docker or working out how to deploy a Directus instance at AWS, -Digital Ocean, or similar hosts. A couple of clicks and in less than 2 minutes you’ll have a ready to go Directus -project. +The fastest way to get started is with the Directus Template CLI: -Directus offers a 14 day free trial for Cloud projects which is plenty of time to give AgencyOS a spin. Note: After the -14 day trial you will need to pay for the service. -[Consult the Directus pricing page](https://directus.io/pricing/cloud) for the latest pricing information. +```bash +npx directus-template-cli@latest init --template=https://github.com/directus-labs/agency-os +``` -OR +This sets up both the Directus backend (Directus 11) and the Nuxt frontend for you. Before starting the frontend, create a +static token for the admin user (see [step 2](#2---generate-a-static-token-for-the-admin-user)) and set it as +`DIRECTUS_SERVER_TOKEN` in `nuxt/.env`. -**1b - Self Host a Directus Instance** +## Manual Setup -If you're prefer to self-host Directus, we highly recommend you do so with Docker. +### 1 - Set Up Directus Backend -**Important Note**: This is a free and open source community release. Therefore, we cannot provide support for -self-hosted instances WITHOUT an Enterprise Self-Hosted license or formal support agreement. -[Learn more and contact our team for details on Enterprise Self-Hosted](https://directus.io/pricing/self-hosted). +There are two ways to get a Directus instance running: -You’ll find a `docker-compose.yaml` inside the repo that you can use to quickly spin up a local instance of Directus to -test with. You should have Docker installed and running on your machine first. You -can **[download it here](https://docs.docker.com/get-docker/)**. +**Option A - Directus Cloud** -[PostgreSQL](https://www.postgresql.org/) is the **tested and preferred** database vendor for this project. The project -has been tested and verified to work against the docker-compose.yaml file included in the repo. Directus does support -many different SQL database vendors, but we ONLY test this project against PostgreSQL. +The easiest option. Register at [directus.cloud](https://directus.cloud/register) and create a new project. Directus +offers a 14 day free trial which is plenty of time to try AgencyOS. +[See pricing](https://directus.io/pricing/cloud) for details. -```bash -# Navigate to the .directus directory -$ cd .directus +**Option B - Self-Host with Docker** -# Run docker compose -$ docker compose up +[PostgreSQL](https://www.postgresql.org/) is the tested and preferred database for this project. -# Docker does it's thing and your Directus project will be available at http://localhost:8055/ or http://0.0.0.0:8055/ +```bash +cd directus +cp .env.example .env +docker compose up -d +# Directus will be available at http://localhost:8055/ ``` -You can find more [install instructions using Docker here](https://docs.directus.io/self-hosted/quickstart.html) on the -Directus documentation. +You'll need [Docker](https://docs.docker.com/get-docker/) installed. See the +[Directus Docker Guide](https://docs.directus.io/self-hosted/docker-guide.html) for more details. -For deploying the project live, please see the [Deployment](#deployment) section. +**Important Note**: Community self-hosted instances are not covered by Directus support. For enterprise support, +[contact the Directus team](https://directus.io/pricing/self-hosted). -### 2 **- Generate a static token for the admin user** +### 2 - Generate a Static Token for the Admin User -You need the static token to seed the project. +You need a static token to seed the project with the template data. -1. Go to the User Directory +1. Go to the User Directory in your Directus instance 2. Choose the Administrative User 3. Scroll down to the Token field 4. Generate token and copy it -5. Save the user (do NOT forget to save because you’ll get an error that shows Invalid token!) +5. Save the user (don't forget to save!) -### 3 **- Apply the AgencyOS Template** +### 3 - Apply the AgencyOS Template -The Directus template lives in this repo at [`.directus/template`](./.directus/template). Open your terminal, run the +The Directus template lives in this repo at [`directus/template`](./directus/template). Open your terminal, run the following command, and follow the prompts. -`npx directus-template-cli@latest apply` +```bash +npx directus-template-cli@latest apply +``` 1. Choose `From a public GitHub repository`. -2. Paste `https://github.com/directus-labs/agency-os/tree/main/.directus/template` +2. Paste `https://github.com/directus-labs/agency-os/tree/main/directus/template` 3. Paste the URL to your Directus instance 4. Paste your Admin user static token -5. Wait for script to finish +5. Wait for the script to finish Or apply it in one command: @@ -190,12 +201,10 @@ npx directus-template-cli@latest apply -p \ --directusUrl="http://localhost:8055" \ --directusToken="your-static-token" \ --templateType="github" \ - --templateLocation="https://github.com/directus-labs/agency-os/tree/main/.directus/template" + --templateLocation="https://github.com/directus-labs/agency-os/tree/main/directus/template" ``` -You can learn more about the -[Directus Template CLI tool here](https://github.com/directus-community/directus-template-cli). _Note_: It can take a -few minutes for the template script to run if you’re using a remotely hosted Directus instance. +Learn more about the [Directus Template CLI](https://github.com/directus-labs/directus-template-cli).
@@ -203,85 +212,58 @@ few minutes for the template script to run if you’re using a remotely hosted D
-## **⛰️ Nuxt - Frontend** - -For your website and client portal, AgencyOS uses Nuxt as the frontend framework of choice. - -### **1 - Clone the repo** - -[Use This Template](https://github.com/directus-community/agency-os/generate) - -_Or from the terminal_ - -`git clone https://github.com/directus-community/agency-os.git your-project` - -Navigate to the project +### 4 - Set Up the Nuxt Frontend -`cd your-project` - -### **2 - Fix your .env file** - -- Change the filename `env.example` to `.env` -- Add the url to your Directus instance -- Add the static token for your admin user you generated above - -Your `.env` file should look similar to this. - -```env -# Directus Setup -DIRECTUS_URL="https://your-instance.directus.app" -DIRECTUS_SERVER_TOKEN="your_directus_server_token_for_server_only_routes" -SITE_URL="http://localhost:3000" - -# Stripe Setup (If you want to allow payments within the portal) -STRIPE_SECRET_KEY=sk_test_xxxxxxxxxxxxxxx -STRIPE_PUBLISHABLE_KEY=pk_xxxxxxxxxxxxxxx -STRIPE_WEBHOOK_SECRET=whsec_xxxxxxxxxxxxxxx +```bash +cd nuxt +cp .env.example .env ``` -### **3 - Install your dependencies** - -`pnpm i` - -### **4 - Start the development server** +Update the `.env` with your Directus URL and token. -`pnpm dev` +```bash +pnpm install +pnpm dev +``` -[http://localhost:3000](http://localhost:3000/) +Visit [http://localhost:3000](http://localhost:3000/) -### **5 - Build for production when you're ready** +To build for production: -`pnpm build` +```bash +pnpm build +```
-# 🚢 Deployment +# Deployment -## **Deploying Nuxt - Frontend** +## Deploying the Nuxt Frontend -Please check the official [Nuxt Deployment Documentation](https://nuxt.com/docs/getting-started/deployment) for the -supported providers. Here’s a few of the more popular hosts that work well with Nuxt. +Please check the official [Nuxt Deployment Documentation](https://nuxt.com/docs/getting-started/deployment) for +supported providers. Here are a few popular options: ### One Click Options -Note: Vercel is the recommended deployment target for AgencyOS at the moment because of a few memory issues with the -build process on Netlify. +Note: When deploying, set the **Root Directory** to `nuxt/` in your hosting provider's settings. **Vercel** -Deploy with Vercel +Deploy with Vercel **Netlify** -Deploy to Netlify +Deploy to Netlify -## **Deploying Directus - Backend** +Note: For Netlify, set the **Base directory** to `nuxt/` in your site settings. -If you don't want to mess with DevOps or spinning up servers, you -can [spin up a new project on Directus Cloud](https://directus.cloud/) in about 90 seconds. +## Deploying the Directus Backend -If you prefer self-hosting, Docker is the recommended way to deploy Directus. Please check the -official [Directus Docker Guide](https://docs.directus.io/self-hosted/docker-guide.html) +If you don't want to mess with DevOps, [spin up a project on Directus Cloud](https://directus.cloud/) in about +90 seconds. + +For self-hosting, Docker is the recommended approach. See the +[Directus Docker Guide](https://docs.directus.io/self-hosted/docker-guide.html). **Resources for Self Hosting Directus** @@ -294,27 +276,25 @@ official [Directus Docker Guide](https://docs.directus.io/self-hosted/docker-gu
-# 🧰 Tech Stack +# Tech Stack - + ## Nuxt Build your next Vue.js application with confidence using Nuxt. An open source framework under MIT license that makes web -development simple and powerful. The leading Vue framework that handles routing, server side rendering, and more. +development simple and powerful. [Learn more about Nuxt](https://nuxt.com)
- + ## Directus Directus is a headless CMS that instantly turns your SQL database into REST and GraphQL APIs and gives you a beautiful, -intuitive no-code app to manage all your content and data. But it's also more than just a headless CMS. It’s an open -data platform that has all the tools you need for creating, managing, serving, visualizing, and even automating your -data for your next web, mobile, or digital project. +intuitive no-code app to manage all your content and data. [Learn more about Directus](https://directus.io) @@ -322,47 +302,37 @@ data for your next web, mobile, or digital project. ## UI -- [Nuxt UI](https://ui.nuxt.com/) - Fully styled and customizable components for Nuxt. Nuxt UI is the official UI - component library for Nuxt. -- [Tailwind CSS](https://tailwindcss.com/) – Utility-first CSS framework that allows you to rapidly build sites and - maintain consistency across team members. There are several Tailwind Plugins installed and ready to use as well – - [Typography](https://tailwindcss.com/docs/typography-plugin) and [Forms](https://tailwindcss.com/docs/plugins#forms). -- [Headless UI](https://headlessui.dev/) – Completely unstyled, fully accessible UI components. -- [FormKit](https://formkit.com/) – Form library for Vue that saves you hours of time by simplifying form creation. - Includes error handling, validation, theming, and even generation from a schema out of the box. -- [Nuxt Icon](https://github.com/nuxt-modules/icon) - Adds `` component that allows you use tons of icons. - [See available icons here](https://icones.js.org/). +- [Nuxt UI](https://ui.nuxt.com/) - Official UI component library for Nuxt. +- [Tailwind CSS](https://tailwindcss.com/) – Utility-first CSS framework with + [Typography](https://tailwindcss.com/docs/typography-plugin) and [Forms](https://tailwindcss.com/docs/plugins#forms) + plugins. +- [Headless UI](https://headlessui.dev/) – Fully accessible, unstyled UI components. +- [FormKit](https://formkit.com/) – Form library for Vue with validation, theming, and schema generation. +- [Nuxt Icon](https://github.com/nuxt-modules/icon) - Icon component with thousands of icons via + [Iconify](https://icones.js.org/). ## Utilities -- [VueUse](https://vueuse.org/) – Collection of Vue Composition Utilities. Already installed and configured so you can - just import any of the composables in their library straight away. -- [VueUse Motion](https://motion.vueuse.org/) – Composables putting your components in motion. Makes it easy to provide - tasteful animations with less effort. +- [VueUse](https://vueuse.org/) – Collection of Vue Composition Utilities. +- [VueUse Motion](https://motion.vueuse.org/) – Composables for component animations.
-# 🛟 Community Help - -For community help or support, please see the Directus Discord server. +# Community Help -- **[Directus Discord](https://discord.com/invite/directus)** – Join over 10k+ developers and community members to ask - questions and live discussion around Directus. +- **[Directus Discord](https://discord.com/invite/directus)** – Join over 10k+ developers for questions and discussion. - **[Nuxt Discord](https://discord.com/invite/ps2h6QT)**
-# ❤️ Contributing +# Contributing AgencyOS is a community driven project so we'd love to have your contributions. -Here's how you can contribute: - -- [Open an issue](https://github.com/directus-community/agency-os/issues) if you believe you've encountered a bug. -- [Make a pull request](https://github.com/directus-community/agency-os/pulls) to add new features/make quality-of-life - improvements/fix bugs. +- [Open an issue](https://github.com/directus-labs/agency-os/issues) if you believe you've encountered a bug. +- [Make a pull request](https://github.com/directus-labs/agency-os/pulls) to add new features or fix bugs. -## 🙏 Thanks To +## Thanks To AgencyOS was created by Bryant Gillespie ([@bryantgillespie](https://twitter.com/bryantgillespie)). But big thank yous are owed to... @@ -370,5 +340,5 @@ are owed to... - [@rijkvanzanten](https://github.com/rijkvanzanten) and [@benhaynes](https://github.com/benhaynes) for building Directus and including me on the journey. - [@atinux](https://github.com/Atinux) and [@alexchopin](https://github.com/alexchopin) for creating the Nuxt framework. -- [@intevel](https://github.com/Intevel) and [@becem-gharbi](https://github.com/becem-gharbi) for each of their separate +- [@intevel](https://github.com/Intevel) and [@becem-gharbi](https://github.com/becem-gharbi) for each of their separate `nuxt-directus` modules which served as source of inspiration. diff --git a/directus/.env.example b/directus/.env.example new file mode 100644 index 00000000..425de8f3 --- /dev/null +++ b/directus/.env.example @@ -0,0 +1,59 @@ +# Database Configuration +DB_USER=directus +DB_PASSWORD=directus +DB_DATABASE=directus + +# Directus Configuration +DIRECTUS_PORT=8055 +DIRECTUS_SECRET=6116487b-cda1-52c2-b5b5-c8022c45e263 +ADMIN_EMAIL=admin@example.com +ADMIN_PASSWORD=d1r3ctu5 + +# Cache Configuration +CACHE_ENABLED=true +CACHE_AUTO_PURGE=true + +# WebSocket Configuration +WEBSOCKETS_ENABLED=true + +# URL Configuration +PUBLIC_URL=http://localhost:8055 + +# CORS Configuration: +# Development: It's ok to use "*" or "http://localhost:3000" for local testing +# Production: Specify exact origins like: +# - Single origin: "https://your-domain.com" +# - Multiple origins: "https://app.domain.com,https://admin.domain.com" +# Warning: Using "*" in production is a security risk - always specify allowed origins +CORS_ENABLED=true +CORS_ORIGIN=* + +# Cookie Configuration +# Leave the domains empty for local development. Browsers reject cookies set for "localhost", which breaks portal sign-in. +REFRESH_TOKEN_COOKIE_SECURE=false +REFRESH_TOKEN_COOKIE_SAME_SITE=lax +REFRESH_TOKEN_COOKIE_DOMAIN= + +SESSION_COOKIE_SECURE=false +SESSION_COOKIE_SAME_SITE=lax +SESSION_COOKIE_DOMAIN= + +# Extensions Configuration +EXTENSIONS_PATH=./extensions +EXTENSIONS_AUTO_RELOAD=true +EXTENSIONS_ROLLDOWN=true + +# Content Security Policy +CONTENT_SECURITY_POLICY_DIRECTIVES__FRAME_SRC=http://localhost:3000,http://localhost:4321,http://localhost:5173,https://*.youtube.com,https://*.vimeo.com,https://*.wistia.net,https://*.loom.com + +# Email Configuration +# Directus needs a valid transport even to create in-app notifications: an empty EMAIL_TRANSPORT +# makes every notification fail. sendmail is the Directus default, but the Docker image has no mail server, so +# emails (notifications, password resets, flow mail) are only logged as failed. Switch to SMTP to deliver them. +EMAIL_TRANSPORT=sendmail +EMAIL_FROM=no-reply@example.com +# EMAIL_TRANSPORT=smtp +# EMAIL_SMTP_HOST=smtp.example.com +# EMAIL_SMTP_PORT=587 +# EMAIL_SMTP_USER= +# EMAIL_SMTP_PASSWORD= diff --git a/directus/README.md b/directus/README.md new file mode 100644 index 00000000..52f2882b --- /dev/null +++ b/directus/README.md @@ -0,0 +1,21 @@ +# AgencyOS - Directus Backend + +This directory contains the Directus backend configuration for AgencyOS. + +## Contents + +- `docker-compose.yaml` – Docker Compose file for running a local Directus instance with PostgreSQL and Redis +- `.env.example` – Environment variables for the Docker setup +- `template/` – Directus template data (schema, content, and files) used by the [Directus Template CLI](https://github.com/directus-labs/directus-template-cli) +- `run-scripts/` – Scripts used by Directus Flows > Run Script operations + +## Quick Start + +```bash +cp .env.example .env +docker compose up -d +``` + +Directus will be available at [http://localhost:8055](http://localhost:8055). + +See the main [README](../README.md) for full setup instructions. diff --git a/directus/docker-compose.yaml b/directus/docker-compose.yaml new file mode 100644 index 00000000..5936c476 --- /dev/null +++ b/directus/docker-compose.yaml @@ -0,0 +1,89 @@ +name: directus-agencyos-template +services: + database: + image: postgis/postgis:16-master + platform: linux/amd64 + volumes: + - ./data/database:/var/lib/postgresql/data + environment: + POSTGRES_USER: ${DB_USER} + POSTGRES_PASSWORD: ${DB_PASSWORD} + POSTGRES_DB: ${DB_DATABASE} + healthcheck: + test: ['CMD', 'pg_isready', '-U', '${DB_USER}', '-d', '${DB_DATABASE}', '-h', 'localhost'] + interval: 10s + timeout: 5s + retries: 5 + start_interval: 5s + start_period: 30s + + cache: + image: redis:6 + healthcheck: + test: ['CMD-SHELL', "[ $$(redis-cli ping) = 'PONG' ]"] + interval: 10s + timeout: 5s + retries: 5 + start_interval: 5s + start_period: 30s + + directus: + image: directus/directus:11.17.4 + ports: + - ${DIRECTUS_PORT}:8055 + volumes: + - ./uploads:/directus/uploads + - ./extensions:/directus/extensions + depends_on: + database: + condition: service_healthy + cache: + condition: service_healthy + environment: + SECRET: ${DIRECTUS_SECRET} + ADMIN_EMAIL: ${ADMIN_EMAIL} + ADMIN_PASSWORD: ${ADMIN_PASSWORD} + NODE_ENV: ${NODE_ENV:-production} + + DB_CLIENT: 'pg' + DB_HOST: 'database' + DB_PORT: '5432' + DB_DATABASE: ${DB_DATABASE} + DB_USER: ${DB_USER} + DB_PASSWORD: ${DB_PASSWORD} + + CACHE_ENABLED: ${CACHE_ENABLED} + CACHE_AUTO_PURGE: ${CACHE_AUTO_PURGE} + CACHE_STORE: 'redis' + REDIS: 'redis://cache:6379' + + WEBSOCKETS_ENABLED: ${WEBSOCKETS_ENABLED} + WEBSOCKETS_COLLAB_ENABLED: ${WEBSOCKETS_COLLAB_ENABLED} + LOG_LEVEL: ${LOG_LEVEL} + + PUBLIC_URL: ${PUBLIC_URL} + IP_TRUST_PROXY: 'true' + + CORS_ENABLED: ${CORS_ENABLED} + CORS_ORIGIN: ${CORS_ORIGIN} + + REFRESH_TOKEN_COOKIE_SECURE: ${REFRESH_TOKEN_COOKIE_SECURE} + REFRESH_TOKEN_COOKIE_SAME_SITE: ${REFRESH_TOKEN_COOKIE_SAME_SITE} + REFRESH_TOKEN_COOKIE_DOMAIN: ${REFRESH_TOKEN_COOKIE_DOMAIN} + + SESSION_COOKIE_SECURE: ${SESSION_COOKIE_SECURE} + SESSION_COOKIE_SAME_SITE: ${SESSION_COOKIE_SAME_SITE} + SESSION_COOKIE_DOMAIN: ${SESSION_COOKIE_DOMAIN} + + EXTENSIONS_PATH: ${EXTENSIONS_PATH} + EXTENSIONS_AUTO_RELOAD: ${EXTENSIONS_AUTO_RELOAD} + EXTENSIONS_ROLLDOWN: ${EXTENSIONS_ROLLDOWN} + + CONTENT_SECURITY_POLICY_DIRECTIVES__FRAME_SRC: ${CONTENT_SECURITY_POLICY_DIRECTIVES__FRAME_SRC} + + EMAIL_TRANSPORT: ${EMAIL_TRANSPORT:-sendmail} + EMAIL_FROM: ${EMAIL_FROM:-no-reply@example.com} + EMAIL_SMTP_HOST: ${EMAIL_SMTP_HOST} + EMAIL_SMTP_PORT: ${EMAIL_SMTP_PORT} + EMAIL_SMTP_USER: ${EMAIL_SMTP_USER} + EMAIL_SMTP_PASSWORD: ${EMAIL_SMTP_PASSWORD} diff --git a/.directus/run-scripts/calculate-invoice-items.ts b/directus/run-scripts/calculate-invoice-items.ts similarity index 100% rename from .directus/run-scripts/calculate-invoice-items.ts rename to directus/run-scripts/calculate-invoice-items.ts diff --git a/.directus/run-scripts/calculate-invoice.ts b/directus/run-scripts/calculate-invoice.ts similarity index 100% rename from .directus/run-scripts/calculate-invoice.ts rename to directus/run-scripts/calculate-invoice.ts diff --git a/.directus/run-scripts/extract-domain.js b/directus/run-scripts/extract-domain.js similarity index 100% rename from .directus/run-scripts/extract-domain.js rename to directus/run-scripts/extract-domain.js diff --git a/.directus/run-scripts/handle-trigger.js b/directus/run-scripts/handle-trigger.js similarity index 100% rename from .directus/run-scripts/handle-trigger.js rename to directus/run-scripts/handle-trigger.js diff --git a/.directus/run-scripts/interpolate.js b/directus/run-scripts/interpolate.js similarity index 100% rename from .directus/run-scripts/interpolate.js rename to directus/run-scripts/interpolate.js diff --git a/.directus/run-scripts/validate-schema.js b/directus/run-scripts/validate-schema.js similarity index 100% rename from .directus/run-scripts/validate-schema.js rename to directus/run-scripts/validate-schema.js diff --git a/directus/template/README.md b/directus/template/README.md new file mode 100644 index 00000000..72e6863a --- /dev/null +++ b/directus/template/README.md @@ -0,0 +1,26 @@ +# AgencyOS - Directus Template + +This directory contains the Directus template data for AgencyOS, used by the [Directus Template CLI](https://github.com/directus-community/directus-template-cli). + +## Contents + +- `src/` – Schema, collections, content, files, flows, permissions, and other Directus configuration +- `package.json` – Template metadata + +## Usage + +To apply this template to a Directus instance: + +```bash +npx directus-template-cli@latest apply +``` + +To initialize a new project with this template: + +```bash +npx directus-template-cli@latest init --template=https://github.com/directus-labs/agency-os +``` + +## License + +This template is licensed under the [MIT License](https://opensource.org/licenses/MIT). diff --git a/.directus/template/package.json b/directus/template/package.json similarity index 100% rename from .directus/template/package.json rename to directus/template/package.json diff --git a/.directus/template/src/access.json b/directus/template/src/access.json similarity index 100% rename from .directus/template/src/access.json rename to directus/template/src/access.json diff --git a/.directus/template/src/assets/08177527-b867-47e9-b5d5-eab146b3cdba.jpg b/directus/template/src/assets/08177527-b867-47e9-b5d5-eab146b3cdba.jpg similarity index 100% rename from .directus/template/src/assets/08177527-b867-47e9-b5d5-eab146b3cdba.jpg rename to directus/template/src/assets/08177527-b867-47e9-b5d5-eab146b3cdba.jpg diff --git a/.directus/template/src/assets/08242513-ca8f-471f-b69b-82703a19d1e5.svg b/directus/template/src/assets/08242513-ca8f-471f-b69b-82703a19d1e5.svg similarity index 100% rename from .directus/template/src/assets/08242513-ca8f-471f-b69b-82703a19d1e5.svg rename to directus/template/src/assets/08242513-ca8f-471f-b69b-82703a19d1e5.svg diff --git a/.directus/template/src/assets/0dfe66dd-ceba-4dca-8907-03b2dda49443.svg b/directus/template/src/assets/0dfe66dd-ceba-4dca-8907-03b2dda49443.svg similarity index 100% rename from .directus/template/src/assets/0dfe66dd-ceba-4dca-8907-03b2dda49443.svg rename to directus/template/src/assets/0dfe66dd-ceba-4dca-8907-03b2dda49443.svg diff --git a/.directus/template/src/assets/12e02b82-b4a4-4aaf-8ca4-e73c20a41c26.jpeg b/directus/template/src/assets/12e02b82-b4a4-4aaf-8ca4-e73c20a41c26.jpeg similarity index 100% rename from .directus/template/src/assets/12e02b82-b4a4-4aaf-8ca4-e73c20a41c26.jpeg rename to directus/template/src/assets/12e02b82-b4a4-4aaf-8ca4-e73c20a41c26.jpeg diff --git a/.directus/template/src/assets/1f19dd72-a433-481d-9b51-e3cc8e4f33d3.svg b/directus/template/src/assets/1f19dd72-a433-481d-9b51-e3cc8e4f33d3.svg similarity index 100% rename from .directus/template/src/assets/1f19dd72-a433-481d-9b51-e3cc8e4f33d3.svg rename to directus/template/src/assets/1f19dd72-a433-481d-9b51-e3cc8e4f33d3.svg diff --git a/.directus/template/src/assets/1f69c0b8-19b7-49d7-b420-bedad577a079.png b/directus/template/src/assets/1f69c0b8-19b7-49d7-b420-bedad577a079.png similarity index 100% rename from .directus/template/src/assets/1f69c0b8-19b7-49d7-b420-bedad577a079.png rename to directus/template/src/assets/1f69c0b8-19b7-49d7-b420-bedad577a079.png diff --git a/.directus/template/src/assets/21e179ab-72c3-4350-b46a-fadd16f5652e.svg b/directus/template/src/assets/21e179ab-72c3-4350-b46a-fadd16f5652e.svg similarity index 100% rename from .directus/template/src/assets/21e179ab-72c3-4350-b46a-fadd16f5652e.svg rename to directus/template/src/assets/21e179ab-72c3-4350-b46a-fadd16f5652e.svg diff --git a/.directus/template/src/assets/270fa8d1-45a3-4fcb-87d2-27a0248f1daf.jpg b/directus/template/src/assets/270fa8d1-45a3-4fcb-87d2-27a0248f1daf.jpg similarity index 100% rename from .directus/template/src/assets/270fa8d1-45a3-4fcb-87d2-27a0248f1daf.jpg rename to directus/template/src/assets/270fa8d1-45a3-4fcb-87d2-27a0248f1daf.jpg diff --git a/.directus/template/src/assets/27f55be1-7ef5-47c4-87ba-ab9a060ab270.jpeg b/directus/template/src/assets/27f55be1-7ef5-47c4-87ba-ab9a060ab270.jpeg similarity index 100% rename from .directus/template/src/assets/27f55be1-7ef5-47c4-87ba-ab9a060ab270.jpeg rename to directus/template/src/assets/27f55be1-7ef5-47c4-87ba-ab9a060ab270.jpeg diff --git a/.directus/template/src/assets/2b4a0ba0-52c7-4e10-b191-c803d8da6a36.png b/directus/template/src/assets/2b4a0ba0-52c7-4e10-b191-c803d8da6a36.png similarity index 100% rename from .directus/template/src/assets/2b4a0ba0-52c7-4e10-b191-c803d8da6a36.png rename to directus/template/src/assets/2b4a0ba0-52c7-4e10-b191-c803d8da6a36.png diff --git a/.directus/template/src/assets/35a67f1b-d401-4300-a503-b8e583186f2a.svg b/directus/template/src/assets/35a67f1b-d401-4300-a503-b8e583186f2a.svg similarity index 100% rename from .directus/template/src/assets/35a67f1b-d401-4300-a503-b8e583186f2a.svg rename to directus/template/src/assets/35a67f1b-d401-4300-a503-b8e583186f2a.svg diff --git a/.directus/template/src/assets/3eff7dc2-445a-47c5-9503-3f600ecdb5c6.jpeg b/directus/template/src/assets/3eff7dc2-445a-47c5-9503-3f600ecdb5c6.jpeg similarity index 100% rename from .directus/template/src/assets/3eff7dc2-445a-47c5-9503-3f600ecdb5c6.jpeg rename to directus/template/src/assets/3eff7dc2-445a-47c5-9503-3f600ecdb5c6.jpeg diff --git a/.directus/template/src/assets/44a4e780-d59b-4fa5-9b26-1c4b447474d2.jpg b/directus/template/src/assets/44a4e780-d59b-4fa5-9b26-1c4b447474d2.jpg similarity index 100% rename from .directus/template/src/assets/44a4e780-d59b-4fa5-9b26-1c4b447474d2.jpg rename to directus/template/src/assets/44a4e780-d59b-4fa5-9b26-1c4b447474d2.jpg diff --git a/.directus/template/src/assets/4b31c98e-ec03-4b91-bb18-ef55dd199638.jpg b/directus/template/src/assets/4b31c98e-ec03-4b91-bb18-ef55dd199638.jpg similarity index 100% rename from .directus/template/src/assets/4b31c98e-ec03-4b91-bb18-ef55dd199638.jpg rename to directus/template/src/assets/4b31c98e-ec03-4b91-bb18-ef55dd199638.jpg diff --git a/.directus/template/src/assets/5419bf05-9ab2-484b-a69d-d09b18602cf1.svg b/directus/template/src/assets/5419bf05-9ab2-484b-a69d-d09b18602cf1.svg similarity index 100% rename from .directus/template/src/assets/5419bf05-9ab2-484b-a69d-d09b18602cf1.svg rename to directus/template/src/assets/5419bf05-9ab2-484b-a69d-d09b18602cf1.svg diff --git a/.directus/template/src/assets/5a6dfe1e-7e5b-4a5f-9f6c-983777a67c05.svg b/directus/template/src/assets/5a6dfe1e-7e5b-4a5f-9f6c-983777a67c05.svg similarity index 100% rename from .directus/template/src/assets/5a6dfe1e-7e5b-4a5f-9f6c-983777a67c05.svg rename to directus/template/src/assets/5a6dfe1e-7e5b-4a5f-9f6c-983777a67c05.svg diff --git a/.directus/template/src/assets/643faffb-d41d-48ad-9050-881cf495cbb6.jpg b/directus/template/src/assets/643faffb-d41d-48ad-9050-881cf495cbb6.jpg similarity index 100% rename from .directus/template/src/assets/643faffb-d41d-48ad-9050-881cf495cbb6.jpg rename to directus/template/src/assets/643faffb-d41d-48ad-9050-881cf495cbb6.jpg diff --git a/.directus/template/src/assets/6464e61f-455a-4b47-b623-bb12e5251dfe.jpeg b/directus/template/src/assets/6464e61f-455a-4b47-b623-bb12e5251dfe.jpeg similarity index 100% rename from .directus/template/src/assets/6464e61f-455a-4b47-b623-bb12e5251dfe.jpeg rename to directus/template/src/assets/6464e61f-455a-4b47-b623-bb12e5251dfe.jpeg diff --git a/.directus/template/src/assets/6789bc72-ab83-40bf-8152-d6f2bafbc2a8.png b/directus/template/src/assets/6789bc72-ab83-40bf-8152-d6f2bafbc2a8.png similarity index 100% rename from .directus/template/src/assets/6789bc72-ab83-40bf-8152-d6f2bafbc2a8.png rename to directus/template/src/assets/6789bc72-ab83-40bf-8152-d6f2bafbc2a8.png diff --git a/.directus/template/src/assets/68103296-6634-4d66-918a-04b09afe6621.jpeg b/directus/template/src/assets/68103296-6634-4d66-918a-04b09afe6621.jpeg similarity index 100% rename from .directus/template/src/assets/68103296-6634-4d66-918a-04b09afe6621.jpeg rename to directus/template/src/assets/68103296-6634-4d66-918a-04b09afe6621.jpeg diff --git a/.directus/template/src/assets/690c2042-e3ad-46f4-9cd8-095a7b3a1df7.svg b/directus/template/src/assets/690c2042-e3ad-46f4-9cd8-095a7b3a1df7.svg similarity index 100% rename from .directus/template/src/assets/690c2042-e3ad-46f4-9cd8-095a7b3a1df7.svg rename to directus/template/src/assets/690c2042-e3ad-46f4-9cd8-095a7b3a1df7.svg diff --git a/.directus/template/src/assets/6a1ca349-d7ab-4f43-9284-c61671e145f2.svg b/directus/template/src/assets/6a1ca349-d7ab-4f43-9284-c61671e145f2.svg similarity index 100% rename from .directus/template/src/assets/6a1ca349-d7ab-4f43-9284-c61671e145f2.svg rename to directus/template/src/assets/6a1ca349-d7ab-4f43-9284-c61671e145f2.svg diff --git a/.directus/template/src/assets/6dad2008-3af5-407e-827e-da5744223181.svg b/directus/template/src/assets/6dad2008-3af5-407e-827e-da5744223181.svg similarity index 100% rename from .directus/template/src/assets/6dad2008-3af5-407e-827e-da5744223181.svg rename to directus/template/src/assets/6dad2008-3af5-407e-827e-da5744223181.svg diff --git a/.directus/template/src/assets/6ff389c5-3ecb-4219-8f72-f10326aab421.jpg b/directus/template/src/assets/6ff389c5-3ecb-4219-8f72-f10326aab421.jpg similarity index 100% rename from .directus/template/src/assets/6ff389c5-3ecb-4219-8f72-f10326aab421.jpg rename to directus/template/src/assets/6ff389c5-3ecb-4219-8f72-f10326aab421.jpg diff --git a/.directus/template/src/assets/7647f4c2-9880-433a-bb8e-69b0c30ae31e.svg b/directus/template/src/assets/7647f4c2-9880-433a-bb8e-69b0c30ae31e.svg similarity index 100% rename from .directus/template/src/assets/7647f4c2-9880-433a-bb8e-69b0c30ae31e.svg rename to directus/template/src/assets/7647f4c2-9880-433a-bb8e-69b0c30ae31e.svg diff --git a/.directus/template/src/assets/7775c53a-6c2c-453d-8c22-8b5445121d10.jpeg b/directus/template/src/assets/7775c53a-6c2c-453d-8c22-8b5445121d10.jpeg similarity index 100% rename from .directus/template/src/assets/7775c53a-6c2c-453d-8c22-8b5445121d10.jpeg rename to directus/template/src/assets/7775c53a-6c2c-453d-8c22-8b5445121d10.jpeg diff --git a/.directus/template/src/assets/793e9bf7-c646-4588-8865-fe22556070ff.svg b/directus/template/src/assets/793e9bf7-c646-4588-8865-fe22556070ff.svg similarity index 100% rename from .directus/template/src/assets/793e9bf7-c646-4588-8865-fe22556070ff.svg rename to directus/template/src/assets/793e9bf7-c646-4588-8865-fe22556070ff.svg diff --git a/.directus/template/src/assets/87fc0e81-45e4-4c05-8e9a-8e5c759d7aae.png b/directus/template/src/assets/87fc0e81-45e4-4c05-8e9a-8e5c759d7aae.png similarity index 100% rename from .directus/template/src/assets/87fc0e81-45e4-4c05-8e9a-8e5c759d7aae.png rename to directus/template/src/assets/87fc0e81-45e4-4c05-8e9a-8e5c759d7aae.png diff --git a/.directus/template/src/assets/88b95737-7ff4-4a09-8523-362d42caa9f9.jpg b/directus/template/src/assets/88b95737-7ff4-4a09-8523-362d42caa9f9.jpg similarity index 100% rename from .directus/template/src/assets/88b95737-7ff4-4a09-8523-362d42caa9f9.jpg rename to directus/template/src/assets/88b95737-7ff4-4a09-8523-362d42caa9f9.jpg diff --git a/.directus/template/src/assets/8f748634-d77b-4985-b27e-7e1f3559881a.jpeg b/directus/template/src/assets/8f748634-d77b-4985-b27e-7e1f3559881a.jpeg similarity index 100% rename from .directus/template/src/assets/8f748634-d77b-4985-b27e-7e1f3559881a.jpeg rename to directus/template/src/assets/8f748634-d77b-4985-b27e-7e1f3559881a.jpeg diff --git a/.directus/template/src/assets/a104c031-6ad2-4148-ace6-052e28cfda0b.svg b/directus/template/src/assets/a104c031-6ad2-4148-ace6-052e28cfda0b.svg similarity index 100% rename from .directus/template/src/assets/a104c031-6ad2-4148-ace6-052e28cfda0b.svg rename to directus/template/src/assets/a104c031-6ad2-4148-ace6-052e28cfda0b.svg diff --git a/.directus/template/src/assets/ac905071-0643-4337-8f53-48ed45b1ccf2.jpg b/directus/template/src/assets/ac905071-0643-4337-8f53-48ed45b1ccf2.jpg similarity index 100% rename from .directus/template/src/assets/ac905071-0643-4337-8f53-48ed45b1ccf2.jpg rename to directus/template/src/assets/ac905071-0643-4337-8f53-48ed45b1ccf2.jpg diff --git a/.directus/template/src/assets/b1a3fd77-8e62-4678-9d44-333a30eec13b.jpg b/directus/template/src/assets/b1a3fd77-8e62-4678-9d44-333a30eec13b.jpg similarity index 100% rename from .directus/template/src/assets/b1a3fd77-8e62-4678-9d44-333a30eec13b.jpg rename to directus/template/src/assets/b1a3fd77-8e62-4678-9d44-333a30eec13b.jpg diff --git a/.directus/template/src/assets/b210ecec-860f-4057-bab9-18c044b6e129.jpg b/directus/template/src/assets/b210ecec-860f-4057-bab9-18c044b6e129.jpg similarity index 100% rename from .directus/template/src/assets/b210ecec-860f-4057-bab9-18c044b6e129.jpg rename to directus/template/src/assets/b210ecec-860f-4057-bab9-18c044b6e129.jpg diff --git a/.directus/template/src/assets/b9db00d9-535f-4e24-8a46-5f7e5fc65bf2.jpg b/directus/template/src/assets/b9db00d9-535f-4e24-8a46-5f7e5fc65bf2.jpg similarity index 100% rename from .directus/template/src/assets/b9db00d9-535f-4e24-8a46-5f7e5fc65bf2.jpg rename to directus/template/src/assets/b9db00d9-535f-4e24-8a46-5f7e5fc65bf2.jpg diff --git a/.directus/template/src/assets/c0253924-38cd-4ca0-9989-9c0a57ec076a.png b/directus/template/src/assets/c0253924-38cd-4ca0-9989-9c0a57ec076a.png similarity index 100% rename from .directus/template/src/assets/c0253924-38cd-4ca0-9989-9c0a57ec076a.png rename to directus/template/src/assets/c0253924-38cd-4ca0-9989-9c0a57ec076a.png diff --git a/.directus/template/src/assets/ce0b845f-f8d8-4856-b0af-1df4e3a838cc.jpg b/directus/template/src/assets/ce0b845f-f8d8-4856-b0af-1df4e3a838cc.jpg similarity index 100% rename from .directus/template/src/assets/ce0b845f-f8d8-4856-b0af-1df4e3a838cc.jpg rename to directus/template/src/assets/ce0b845f-f8d8-4856-b0af-1df4e3a838cc.jpg diff --git a/.directus/template/src/assets/d0130348-9ead-49d0-b8e7-871cd43921a0.svg b/directus/template/src/assets/d0130348-9ead-49d0-b8e7-871cd43921a0.svg similarity index 100% rename from .directus/template/src/assets/d0130348-9ead-49d0-b8e7-871cd43921a0.svg rename to directus/template/src/assets/d0130348-9ead-49d0-b8e7-871cd43921a0.svg diff --git a/.directus/template/src/assets/d4fd6edc-4cc5-48c1-8bc7-e646924bbdca.jpeg b/directus/template/src/assets/d4fd6edc-4cc5-48c1-8bc7-e646924bbdca.jpeg similarity index 100% rename from .directus/template/src/assets/d4fd6edc-4cc5-48c1-8bc7-e646924bbdca.jpeg rename to directus/template/src/assets/d4fd6edc-4cc5-48c1-8bc7-e646924bbdca.jpeg diff --git a/.directus/template/src/assets/d598a4c0-4e9a-44a3-a72e-49564e34a432.jpg b/directus/template/src/assets/d598a4c0-4e9a-44a3-a72e-49564e34a432.jpg similarity index 100% rename from .directus/template/src/assets/d598a4c0-4e9a-44a3-a72e-49564e34a432.jpg rename to directus/template/src/assets/d598a4c0-4e9a-44a3-a72e-49564e34a432.jpg diff --git a/.directus/template/src/assets/d94c9355-d89e-4229-941a-62b8525fd69a.png b/directus/template/src/assets/d94c9355-d89e-4229-941a-62b8525fd69a.png similarity index 100% rename from .directus/template/src/assets/d94c9355-d89e-4229-941a-62b8525fd69a.png rename to directus/template/src/assets/d94c9355-d89e-4229-941a-62b8525fd69a.png diff --git a/.directus/template/src/assets/df0745c2-b6e3-4b37-b64d-55a4eb0033ab.avif b/directus/template/src/assets/df0745c2-b6e3-4b37-b64d-55a4eb0033ab.avif similarity index 100% rename from .directus/template/src/assets/df0745c2-b6e3-4b37-b64d-55a4eb0033ab.avif rename to directus/template/src/assets/df0745c2-b6e3-4b37-b64d-55a4eb0033ab.avif diff --git a/.directus/template/src/assets/df979753-946b-4d93-954e-e24367388d2c.svg b/directus/template/src/assets/df979753-946b-4d93-954e-e24367388d2c.svg similarity index 100% rename from .directus/template/src/assets/df979753-946b-4d93-954e-e24367388d2c.svg rename to directus/template/src/assets/df979753-946b-4d93-954e-e24367388d2c.svg diff --git a/.directus/template/src/assets/dfa90758-9700-49e4-8fa2-b6cd074811b7.png b/directus/template/src/assets/dfa90758-9700-49e4-8fa2-b6cd074811b7.png similarity index 100% rename from .directus/template/src/assets/dfa90758-9700-49e4-8fa2-b6cd074811b7.png rename to directus/template/src/assets/dfa90758-9700-49e4-8fa2-b6cd074811b7.png diff --git a/.directus/template/src/assets/e15ca910-1567-4f15-b5a0-b802da67f228.jpg b/directus/template/src/assets/e15ca910-1567-4f15-b5a0-b802da67f228.jpg similarity index 100% rename from .directus/template/src/assets/e15ca910-1567-4f15-b5a0-b802da67f228.jpg rename to directus/template/src/assets/e15ca910-1567-4f15-b5a0-b802da67f228.jpg diff --git a/.directus/template/src/assets/eef7d7b1-3bf9-4647-90c1-a16c24161335.svg b/directus/template/src/assets/eef7d7b1-3bf9-4647-90c1-a16c24161335.svg similarity index 100% rename from .directus/template/src/assets/eef7d7b1-3bf9-4647-90c1-a16c24161335.svg rename to directus/template/src/assets/eef7d7b1-3bf9-4647-90c1-a16c24161335.svg diff --git a/.directus/template/src/assets/f1693c44-52e4-4fae-a7d2-b3153a34eb72.jpg b/directus/template/src/assets/f1693c44-52e4-4fae-a7d2-b3153a34eb72.jpg similarity index 100% rename from .directus/template/src/assets/f1693c44-52e4-4fae-a7d2-b3153a34eb72.jpg rename to directus/template/src/assets/f1693c44-52e4-4fae-a7d2-b3153a34eb72.jpg diff --git a/.directus/template/src/assets/f81e1a85-5a9c-41ef-9ef3-6a9349722daa.jpg b/directus/template/src/assets/f81e1a85-5a9c-41ef-9ef3-6a9349722daa.jpg similarity index 100% rename from .directus/template/src/assets/f81e1a85-5a9c-41ef-9ef3-6a9349722daa.jpg rename to directus/template/src/assets/f81e1a85-5a9c-41ef-9ef3-6a9349722daa.jpg diff --git a/.directus/template/src/assets/fbae19f3-8739-4048-a20f-89ebbf59b032.jpg b/directus/template/src/assets/fbae19f3-8739-4048-a20f-89ebbf59b032.jpg similarity index 100% rename from .directus/template/src/assets/fbae19f3-8739-4048-a20f-89ebbf59b032.jpg rename to directus/template/src/assets/fbae19f3-8739-4048-a20f-89ebbf59b032.jpg diff --git a/.directus/template/src/collections.json b/directus/template/src/collections.json similarity index 100% rename from .directus/template/src/collections.json rename to directus/template/src/collections.json diff --git a/.directus/template/src/content/block_button.json b/directus/template/src/content/block_button.json similarity index 100% rename from .directus/template/src/content/block_button.json rename to directus/template/src/content/block_button.json diff --git a/.directus/template/src/content/block_button_group.json b/directus/template/src/content/block_button_group.json similarity index 100% rename from .directus/template/src/content/block_button_group.json rename to directus/template/src/content/block_button_group.json diff --git a/.directus/template/src/content/block_columns.json b/directus/template/src/content/block_columns.json similarity index 100% rename from .directus/template/src/content/block_columns.json rename to directus/template/src/content/block_columns.json diff --git a/.directus/template/src/content/block_columns_rows.json b/directus/template/src/content/block_columns_rows.json similarity index 100% rename from .directus/template/src/content/block_columns_rows.json rename to directus/template/src/content/block_columns_rows.json diff --git a/.directus/template/src/content/block_cta.json b/directus/template/src/content/block_cta.json similarity index 100% rename from .directus/template/src/content/block_cta.json rename to directus/template/src/content/block_cta.json diff --git a/.directus/template/src/content/block_divider.json b/directus/template/src/content/block_divider.json similarity index 100% rename from .directus/template/src/content/block_divider.json rename to directus/template/src/content/block_divider.json diff --git a/.directus/template/src/content/block_faqs.json b/directus/template/src/content/block_faqs.json similarity index 100% rename from .directus/template/src/content/block_faqs.json rename to directus/template/src/content/block_faqs.json diff --git a/.directus/template/src/content/block_form.json b/directus/template/src/content/block_form.json similarity index 100% rename from .directus/template/src/content/block_form.json rename to directus/template/src/content/block_form.json diff --git a/.directus/template/src/content/block_gallery.json b/directus/template/src/content/block_gallery.json similarity index 100% rename from .directus/template/src/content/block_gallery.json rename to directus/template/src/content/block_gallery.json diff --git a/.directus/template/src/content/block_gallery_files.json b/directus/template/src/content/block_gallery_files.json similarity index 100% rename from .directus/template/src/content/block_gallery_files.json rename to directus/template/src/content/block_gallery_files.json diff --git a/.directus/template/src/content/block_hero.json b/directus/template/src/content/block_hero.json similarity index 100% rename from .directus/template/src/content/block_hero.json rename to directus/template/src/content/block_hero.json diff --git a/.directus/template/src/content/block_html.json b/directus/template/src/content/block_html.json similarity index 100% rename from .directus/template/src/content/block_html.json rename to directus/template/src/content/block_html.json diff --git a/.directus/template/src/content/block_logocloud.json b/directus/template/src/content/block_logocloud.json similarity index 100% rename from .directus/template/src/content/block_logocloud.json rename to directus/template/src/content/block_logocloud.json diff --git a/.directus/template/src/content/block_logocloud_logos.json b/directus/template/src/content/block_logocloud_logos.json similarity index 100% rename from .directus/template/src/content/block_logocloud_logos.json rename to directus/template/src/content/block_logocloud_logos.json diff --git a/.directus/template/src/content/block_quote.json b/directus/template/src/content/block_quote.json similarity index 100% rename from .directus/template/src/content/block_quote.json rename to directus/template/src/content/block_quote.json diff --git a/.directus/template/src/content/block_richtext.json b/directus/template/src/content/block_richtext.json similarity index 100% rename from .directus/template/src/content/block_richtext.json rename to directus/template/src/content/block_richtext.json diff --git a/.directus/template/src/content/block_step_items.json b/directus/template/src/content/block_step_items.json similarity index 100% rename from .directus/template/src/content/block_step_items.json rename to directus/template/src/content/block_step_items.json diff --git a/.directus/template/src/content/block_steps.json b/directus/template/src/content/block_steps.json similarity index 100% rename from .directus/template/src/content/block_steps.json rename to directus/template/src/content/block_steps.json diff --git a/.directus/template/src/content/block_team.json b/directus/template/src/content/block_team.json similarity index 100% rename from .directus/template/src/content/block_team.json rename to directus/template/src/content/block_team.json diff --git a/.directus/template/src/content/block_testimonial_slider_items.json b/directus/template/src/content/block_testimonial_slider_items.json similarity index 100% rename from .directus/template/src/content/block_testimonial_slider_items.json rename to directus/template/src/content/block_testimonial_slider_items.json diff --git a/.directus/template/src/content/block_testimonials.json b/directus/template/src/content/block_testimonials.json similarity index 100% rename from .directus/template/src/content/block_testimonials.json rename to directus/template/src/content/block_testimonials.json diff --git a/.directus/template/src/content/block_video.json b/directus/template/src/content/block_video.json similarity index 100% rename from .directus/template/src/content/block_video.json rename to directus/template/src/content/block_video.json diff --git a/.directus/template/src/content/categories.json b/directus/template/src/content/categories.json similarity index 100% rename from .directus/template/src/content/categories.json rename to directus/template/src/content/categories.json diff --git a/.directus/template/src/content/contacts.json b/directus/template/src/content/contacts.json similarity index 100% rename from .directus/template/src/content/contacts.json rename to directus/template/src/content/contacts.json diff --git a/.directus/template/src/content/conversations.json b/directus/template/src/content/conversations.json similarity index 100% rename from .directus/template/src/content/conversations.json rename to directus/template/src/content/conversations.json diff --git a/.directus/template/src/content/forms.json b/directus/template/src/content/forms.json similarity index 100% rename from .directus/template/src/content/forms.json rename to directus/template/src/content/forms.json diff --git a/.directus/template/src/content/globals.json b/directus/template/src/content/globals.json similarity index 100% rename from .directus/template/src/content/globals.json rename to directus/template/src/content/globals.json diff --git a/.directus/template/src/content/help_articles.json b/directus/template/src/content/help_articles.json similarity index 100% rename from .directus/template/src/content/help_articles.json rename to directus/template/src/content/help_articles.json diff --git a/.directus/template/src/content/help_collections.json b/directus/template/src/content/help_collections.json similarity index 100% rename from .directus/template/src/content/help_collections.json rename to directus/template/src/content/help_collections.json diff --git a/.directus/template/src/content/help_feedback.json b/directus/template/src/content/help_feedback.json similarity index 100% rename from .directus/template/src/content/help_feedback.json rename to directus/template/src/content/help_feedback.json diff --git a/.directus/template/src/content/inbox.json b/directus/template/src/content/inbox.json similarity index 100% rename from .directus/template/src/content/inbox.json rename to directus/template/src/content/inbox.json diff --git a/.directus/template/src/content/messages.json b/directus/template/src/content/messages.json similarity index 100% rename from .directus/template/src/content/messages.json rename to directus/template/src/content/messages.json diff --git a/.directus/template/src/content/navigation.json b/directus/template/src/content/navigation.json similarity index 100% rename from .directus/template/src/content/navigation.json rename to directus/template/src/content/navigation.json diff --git a/.directus/template/src/content/navigation_items.json b/directus/template/src/content/navigation_items.json similarity index 100% rename from .directus/template/src/content/navigation_items.json rename to directus/template/src/content/navigation_items.json diff --git a/.directus/template/src/content/organization_addresses.json b/directus/template/src/content/organization_addresses.json similarity index 100% rename from .directus/template/src/content/organization_addresses.json rename to directus/template/src/content/organization_addresses.json diff --git a/.directus/template/src/content/organizations.json b/directus/template/src/content/organizations.json similarity index 100% rename from .directus/template/src/content/organizations.json rename to directus/template/src/content/organizations.json diff --git a/.directus/template/src/content/organizations_contacts.json b/directus/template/src/content/organizations_contacts.json similarity index 100% rename from .directus/template/src/content/organizations_contacts.json rename to directus/template/src/content/organizations_contacts.json diff --git a/.directus/template/src/content/os_activities.json b/directus/template/src/content/os_activities.json similarity index 100% rename from .directus/template/src/content/os_activities.json rename to directus/template/src/content/os_activities.json diff --git a/.directus/template/src/content/os_activity_contacts.json b/directus/template/src/content/os_activity_contacts.json similarity index 100% rename from .directus/template/src/content/os_activity_contacts.json rename to directus/template/src/content/os_activity_contacts.json diff --git a/.directus/template/src/content/os_deal_contacts.json b/directus/template/src/content/os_deal_contacts.json similarity index 100% rename from .directus/template/src/content/os_deal_contacts.json rename to directus/template/src/content/os_deal_contacts.json diff --git a/.directus/template/src/content/os_deal_stages.json b/directus/template/src/content/os_deal_stages.json similarity index 100% rename from .directus/template/src/content/os_deal_stages.json rename to directus/template/src/content/os_deal_stages.json diff --git a/.directus/template/src/content/os_deals.json b/directus/template/src/content/os_deals.json similarity index 100% rename from .directus/template/src/content/os_deals.json rename to directus/template/src/content/os_deals.json diff --git a/.directus/template/src/content/os_email_templates.json b/directus/template/src/content/os_email_templates.json similarity index 100% rename from .directus/template/src/content/os_email_templates.json rename to directus/template/src/content/os_email_templates.json diff --git a/.directus/template/src/content/os_expenses.json b/directus/template/src/content/os_expenses.json similarity index 100% rename from .directus/template/src/content/os_expenses.json rename to directus/template/src/content/os_expenses.json diff --git a/.directus/template/src/content/os_invoice_items.json b/directus/template/src/content/os_invoice_items.json similarity index 100% rename from .directus/template/src/content/os_invoice_items.json rename to directus/template/src/content/os_invoice_items.json diff --git a/.directus/template/src/content/os_invoices.json b/directus/template/src/content/os_invoices.json similarity index 100% rename from .directus/template/src/content/os_invoices.json rename to directus/template/src/content/os_invoices.json diff --git a/.directus/template/src/content/os_items.json b/directus/template/src/content/os_items.json similarity index 100% rename from .directus/template/src/content/os_items.json rename to directus/template/src/content/os_items.json diff --git a/.directus/template/src/content/os_payment_terms.json b/directus/template/src/content/os_payment_terms.json similarity index 100% rename from .directus/template/src/content/os_payment_terms.json rename to directus/template/src/content/os_payment_terms.json diff --git a/.directus/template/src/content/os_payments.json b/directus/template/src/content/os_payments.json similarity index 100% rename from .directus/template/src/content/os_payments.json rename to directus/template/src/content/os_payments.json diff --git a/.directus/template/src/content/os_project_contacts.json b/directus/template/src/content/os_project_contacts.json similarity index 100% rename from .directus/template/src/content/os_project_contacts.json rename to directus/template/src/content/os_project_contacts.json diff --git a/.directus/template/src/content/os_project_files.json b/directus/template/src/content/os_project_files.json similarity index 100% rename from .directus/template/src/content/os_project_files.json rename to directus/template/src/content/os_project_files.json diff --git a/.directus/template/src/content/os_project_templates.json b/directus/template/src/content/os_project_templates.json similarity index 100% rename from .directus/template/src/content/os_project_templates.json rename to directus/template/src/content/os_project_templates.json diff --git a/.directus/template/src/content/os_project_updates.json b/directus/template/src/content/os_project_updates.json similarity index 100% rename from .directus/template/src/content/os_project_updates.json rename to directus/template/src/content/os_project_updates.json diff --git a/.directus/template/src/content/os_projects.json b/directus/template/src/content/os_projects.json similarity index 100% rename from .directus/template/src/content/os_projects.json rename to directus/template/src/content/os_projects.json diff --git a/.directus/template/src/content/os_proposal_approvals.json b/directus/template/src/content/os_proposal_approvals.json similarity index 100% rename from .directus/template/src/content/os_proposal_approvals.json rename to directus/template/src/content/os_proposal_approvals.json diff --git a/.directus/template/src/content/os_proposal_blocks.json b/directus/template/src/content/os_proposal_blocks.json similarity index 100% rename from .directus/template/src/content/os_proposal_blocks.json rename to directus/template/src/content/os_proposal_blocks.json diff --git a/.directus/template/src/content/os_proposal_contacts.json b/directus/template/src/content/os_proposal_contacts.json similarity index 100% rename from .directus/template/src/content/os_proposal_contacts.json rename to directus/template/src/content/os_proposal_contacts.json diff --git a/.directus/template/src/content/os_proposals.json b/directus/template/src/content/os_proposals.json similarity index 100% rename from .directus/template/src/content/os_proposals.json rename to directus/template/src/content/os_proposals.json diff --git a/.directus/template/src/content/os_settings.json b/directus/template/src/content/os_settings.json similarity index 100% rename from .directus/template/src/content/os_settings.json rename to directus/template/src/content/os_settings.json diff --git a/.directus/template/src/content/os_task_files.json b/directus/template/src/content/os_task_files.json similarity index 100% rename from .directus/template/src/content/os_task_files.json rename to directus/template/src/content/os_task_files.json diff --git a/.directus/template/src/content/os_tasks.json b/directus/template/src/content/os_tasks.json similarity index 100% rename from .directus/template/src/content/os_tasks.json rename to directus/template/src/content/os_tasks.json diff --git a/.directus/template/src/content/os_tax_rates.json b/directus/template/src/content/os_tax_rates.json similarity index 100% rename from .directus/template/src/content/os_tax_rates.json rename to directus/template/src/content/os_tax_rates.json diff --git a/.directus/template/src/content/page_blocks.json b/directus/template/src/content/page_blocks.json similarity index 100% rename from .directus/template/src/content/page_blocks.json rename to directus/template/src/content/page_blocks.json diff --git a/.directus/template/src/content/pages.json b/directus/template/src/content/pages.json similarity index 100% rename from .directus/template/src/content/pages.json rename to directus/template/src/content/pages.json diff --git a/.directus/template/src/content/pages_blog.json b/directus/template/src/content/pages_blog.json similarity index 100% rename from .directus/template/src/content/pages_blog.json rename to directus/template/src/content/pages_blog.json diff --git a/.directus/template/src/content/pages_projects.json b/directus/template/src/content/pages_projects.json similarity index 100% rename from .directus/template/src/content/pages_projects.json rename to directus/template/src/content/pages_projects.json diff --git a/.directus/template/src/content/post_gallery_items.json b/directus/template/src/content/post_gallery_items.json similarity index 100% rename from .directus/template/src/content/post_gallery_items.json rename to directus/template/src/content/post_gallery_items.json diff --git a/.directus/template/src/content/posts.json b/directus/template/src/content/posts.json similarity index 100% rename from .directus/template/src/content/posts.json rename to directus/template/src/content/posts.json diff --git a/.directus/template/src/content/redirects.json b/directus/template/src/content/redirects.json similarity index 100% rename from .directus/template/src/content/redirects.json rename to directus/template/src/content/redirects.json diff --git a/.directus/template/src/content/seo.json b/directus/template/src/content/seo.json similarity index 100% rename from .directus/template/src/content/seo.json rename to directus/template/src/content/seo.json diff --git a/.directus/template/src/content/team.json b/directus/template/src/content/team.json similarity index 100% rename from .directus/template/src/content/team.json rename to directus/template/src/content/team.json diff --git a/.directus/template/src/content/testimonials.json b/directus/template/src/content/testimonials.json similarity index 100% rename from .directus/template/src/content/testimonials.json rename to directus/template/src/content/testimonials.json diff --git a/.directus/template/src/dashboards.json b/directus/template/src/dashboards.json similarity index 100% rename from .directus/template/src/dashboards.json rename to directus/template/src/dashboards.json diff --git a/.directus/template/src/extensions.json b/directus/template/src/extensions.json similarity index 100% rename from .directus/template/src/extensions.json rename to directus/template/src/extensions.json diff --git a/.directus/template/src/fields.json b/directus/template/src/fields.json similarity index 100% rename from .directus/template/src/fields.json rename to directus/template/src/fields.json diff --git a/.directus/template/src/files.json b/directus/template/src/files.json similarity index 100% rename from .directus/template/src/files.json rename to directus/template/src/files.json diff --git a/.directus/template/src/flows.json b/directus/template/src/flows.json similarity index 100% rename from .directus/template/src/flows.json rename to directus/template/src/flows.json diff --git a/.directus/template/src/folders.json b/directus/template/src/folders.json similarity index 100% rename from .directus/template/src/folders.json rename to directus/template/src/folders.json diff --git a/.directus/template/src/operations.json b/directus/template/src/operations.json similarity index 100% rename from .directus/template/src/operations.json rename to directus/template/src/operations.json diff --git a/.directus/template/src/panels.json b/directus/template/src/panels.json similarity index 100% rename from .directus/template/src/panels.json rename to directus/template/src/panels.json diff --git a/.directus/template/src/permissions.json b/directus/template/src/permissions.json similarity index 100% rename from .directus/template/src/permissions.json rename to directus/template/src/permissions.json diff --git a/.directus/template/src/policies.json b/directus/template/src/policies.json similarity index 100% rename from .directus/template/src/policies.json rename to directus/template/src/policies.json diff --git a/.directus/template/src/presets.json b/directus/template/src/presets.json similarity index 100% rename from .directus/template/src/presets.json rename to directus/template/src/presets.json diff --git a/.directus/template/src/public-permissions.json b/directus/template/src/public-permissions.json similarity index 100% rename from .directus/template/src/public-permissions.json rename to directus/template/src/public-permissions.json diff --git a/.directus/template/src/relations.json b/directus/template/src/relations.json similarity index 100% rename from .directus/template/src/relations.json rename to directus/template/src/relations.json diff --git a/.directus/template/src/roles.json b/directus/template/src/roles.json similarity index 100% rename from .directus/template/src/roles.json rename to directus/template/src/roles.json diff --git a/.directus/template/src/schema/snapshot.json b/directus/template/src/schema/snapshot.json similarity index 100% rename from .directus/template/src/schema/snapshot.json rename to directus/template/src/schema/snapshot.json diff --git a/.directus/template/src/settings.json b/directus/template/src/settings.json similarity index 100% rename from .directus/template/src/settings.json rename to directus/template/src/settings.json diff --git a/.directus/template/src/translations.json b/directus/template/src/translations.json similarity index 100% rename from .directus/template/src/translations.json rename to directus/template/src/translations.json diff --git a/.directus/template/src/users.json b/directus/template/src/users.json similarity index 100% rename from .directus/template/src/users.json rename to directus/template/src/users.json diff --git a/modules/directus/runtime/types/modules.d.ts b/modules/directus/runtime/types/modules.d.ts deleted file mode 100644 index a83d3258..00000000 --- a/modules/directus/runtime/types/modules.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -import type { RestClient } from "@directus/sdk"; - -declare module "#app" { - interface NuxtApp { - $directus: { - rest: RestClient; - }; - } - interface RuntimeNuxtHooks { - "directus:loggedIn": (state: boolean) => void; - } -} - -declare module "vue" { - interface ComponentCustomProperties { - $directus: { - rest: RestClient; - }; - } -} - -declare global { - interface DirectusSchema {} -} - -export {}; diff --git a/.env.example b/nuxt/.env.example similarity index 92% rename from .env.example rename to nuxt/.env.example index c4ad24c0..725741de 100644 --- a/.env.example +++ b/nuxt/.env.example @@ -1,7 +1,7 @@ # Directus Setup for Nuxt app # Directus Cloud urls typically look like this https://your-instance.directus.app or if you're running a local instance of Directus, it will look like this http://localhost:8055 or http://0.0.0.0:8055 or http://127.0.0.1:8055/ (depending on your setup) -DIRECTUS_URL="https://your-instance.directus.app" +DIRECTUS_URL="http://localhost:8055" DIRECTUS_SERVER_TOKEN="your_directus_server_token_for_server_only_routes" NUXT_PUBLIC_SITE_URL="http://localhost:3000" diff --git a/.npmrc b/nuxt/.npmrc similarity index 100% rename from .npmrc rename to nuxt/.npmrc diff --git a/.prettierignore b/nuxt/.prettierignore similarity index 100% rename from .prettierignore rename to nuxt/.prettierignore diff --git a/.prettierrc.js b/nuxt/.prettierrc.js similarity index 100% rename from .prettierrc.js rename to nuxt/.prettierrc.js diff --git a/app.config.ts b/nuxt/app.config.ts similarity index 100% rename from app.config.ts rename to nuxt/app.config.ts diff --git a/app.vue b/nuxt/app.vue similarity index 87% rename from app.vue rename to nuxt/app.vue index 6526d69c..2c25dfba 100644 --- a/app.vue +++ b/nuxt/app.vue @@ -9,10 +9,7 @@ useSchemaOrg([ defineOrganization({ name: globals?.title ?? 'AgencyOS', logo: globals?.logo_on_light_bg ? fileUrl(globals?.logo_on_light_bg) : '/logos/agencyos.png', - sameAs: () => { - const socialLinks = globals?.social_links ?? []; - return socialLinks.map((link) => link.url); - }, + sameAs: (globals?.social_links ?? []).map((link) => link.url), }), ]); diff --git a/assets/.DS_Store b/nuxt/assets/.DS_Store similarity index 100% rename from assets/.DS_Store rename to nuxt/assets/.DS_Store diff --git a/assets/css/main.css b/nuxt/assets/css/main.css similarity index 100% rename from assets/css/main.css rename to nuxt/assets/css/main.css diff --git a/assets/css/tailwind.css b/nuxt/assets/css/tailwind.css similarity index 100% rename from assets/css/tailwind.css rename to nuxt/assets/css/tailwind.css diff --git a/assets/illustrations/tokyo-attention-sign.svg b/nuxt/assets/illustrations/tokyo-attention-sign.svg similarity index 100% rename from assets/illustrations/tokyo-attention-sign.svg rename to nuxt/assets/illustrations/tokyo-attention-sign.svg diff --git a/assets/illustrations/tokyo-luminous-table-lamp-on-boxes.svg b/nuxt/assets/illustrations/tokyo-luminous-table-lamp-on-boxes.svg similarity index 100% rename from assets/illustrations/tokyo-luminous-table-lamp-on-boxes.svg rename to nuxt/assets/illustrations/tokyo-luminous-table-lamp-on-boxes.svg diff --git a/assets/img/noise.png b/nuxt/assets/img/noise.png similarity index 100% rename from assets/img/noise.png rename to nuxt/assets/img/noise.png diff --git a/components/BlockContainer.vue b/nuxt/components/BlockContainer.vue similarity index 100% rename from components/BlockContainer.vue rename to nuxt/components/BlockContainer.vue diff --git a/components/Categories.vue b/nuxt/components/Categories.vue similarity index 88% rename from components/Categories.vue rename to nuxt/components/Categories.vue index 7c8a1801..7b7396a6 100644 --- a/components/Categories.vue +++ b/nuxt/components/Categories.vue @@ -11,7 +11,7 @@ const { data: categories } = await useAsyncData('categories', () => {
- + {{ category.title }} diff --git a/components/Category.vue b/nuxt/components/Category.vue similarity index 100% rename from components/Category.vue rename to nuxt/components/Category.vue diff --git a/components/DarkModeToggle.vue b/nuxt/components/DarkModeToggle.vue similarity index 100% rename from components/DarkModeToggle.vue rename to nuxt/components/DarkModeToggle.vue diff --git a/components/DateDisplay.vue b/nuxt/components/DateDisplay.vue similarity index 98% rename from components/DateDisplay.vue rename to nuxt/components/DateDisplay.vue index 5cd3d1a2..c83981fd 100644 --- a/components/DateDisplay.vue +++ b/nuxt/components/DateDisplay.vue @@ -3,7 +3,7 @@ Display a date in the ole desk-calendar looking format */ export interface DateDisplayProps { - date: string | null; + date?: string | null; size: 'xs' | 'sm' | 'md' | 'lg'; color?: 'primary' | 'gray' | 'amber'; } diff --git a/components/DevToolbar.vue b/nuxt/components/DevToolbar.vue similarity index 100% rename from components/DevToolbar.vue rename to nuxt/components/DevToolbar.vue diff --git a/components/GlobalSearch.vue b/nuxt/components/GlobalSearch.vue similarity index 100% rename from components/GlobalSearch.vue rename to nuxt/components/GlobalSearch.vue diff --git a/components/Logo.vue b/nuxt/components/Logo.vue similarity index 97% rename from components/Logo.vue rename to nuxt/components/Logo.vue index 98616daf..15e58c68 100644 --- a/components/Logo.vue +++ b/nuxt/components/Logo.vue @@ -2,7 +2,9 @@ const appConfig = useAppConfig(); const logo = computed(() => { - return appConfig.globals?.logo_on_dark_bg; + const logo = appConfig.globals?.logo_on_dark_bg; + // Globals are read without nested fields, so the logo is always a file id + return typeof logo === 'string' ? logo : undefined; }); const props = defineProps({ diff --git a/components/Motionable.vue b/nuxt/components/Motionable.vue similarity index 100% rename from components/Motionable.vue rename to nuxt/components/Motionable.vue diff --git a/components/OgImage/Template.vue b/nuxt/components/OgImage/Template.vue similarity index 100% rename from components/OgImage/Template.vue rename to nuxt/components/OgImage/Template.vue diff --git a/components/PageBuilder.vue b/nuxt/components/PageBuilder.vue similarity index 100% rename from components/PageBuilder.vue rename to nuxt/components/PageBuilder.vue diff --git a/components/PageContainer.vue b/nuxt/components/PageContainer.vue similarity index 100% rename from components/PageContainer.vue rename to nuxt/components/PageContainer.vue diff --git a/components/RadialProgress.vue b/nuxt/components/RadialProgress.vue similarity index 100% rename from components/RadialProgress.vue rename to nuxt/components/RadialProgress.vue diff --git a/components/ScrollTop.vue b/nuxt/components/ScrollTop.vue similarity index 100% rename from components/ScrollTop.vue rename to nuxt/components/ScrollTop.vue diff --git a/components/TeamCard.vue b/nuxt/components/TeamCard.vue similarity index 100% rename from components/TeamCard.vue rename to nuxt/components/TeamCard.vue diff --git a/components/base/Author.vue b/nuxt/components/base/Author.vue similarity index 100% rename from components/base/Author.vue rename to nuxt/components/base/Author.vue diff --git a/components/base/FormCustom.ts b/nuxt/components/base/FormCustom.ts similarity index 100% rename from components/base/FormCustom.ts rename to nuxt/components/base/FormCustom.ts diff --git a/components/base/LoginForm.vue b/nuxt/components/base/LoginForm.vue similarity index 100% rename from components/base/LoginForm.vue rename to nuxt/components/base/LoginForm.vue diff --git a/components/base/UForm.vue b/nuxt/components/base/UForm.vue similarity index 96% rename from components/base/UForm.vue rename to nuxt/components/base/UForm.vue index 4654e1fe..299783bb 100644 --- a/components/base/UForm.vue +++ b/nuxt/components/base/UForm.vue @@ -1,6 +1,6 @@