From 659c795c2aff9db0e4f5062185c261e8dd96561b Mon Sep 17 00:00:00 2001 From: Joshua Pease Date: Wed, 25 Sep 2024 16:33:16 -0700 Subject: [PATCH] [#44] Adds local filesystem and asset volume --- .env.example.dev | 3 + .gitignore | 2 + config/project/project.yaml | 11 ++- ...-853413e4-e02c-487e-81a5-04e58eb18683.yaml | 76 +++++++++++++++++++ 4 files changed, 91 insertions(+), 1 deletion(-) create mode 100644 config/project/volumes/assets--853413e4-e02c-487e-81a5-04e58eb18683.yaml diff --git a/.env.example.dev b/.env.example.dev index 8a33600..19c7dce 100644 --- a/.env.example.dev +++ b/.env.example.dev @@ -30,3 +30,6 @@ CRAFT_SECURITY_KEY= CRAFT_DEV_MODE=true CRAFT_ALLOW_ADMIN_CHANGES=true CRAFT_DISALLOW_ROBOTS=true + +# Asset Settings +ASSET_FILESYSTEM=local diff --git a/.gitignore b/.gitignore index a61bc8d..42625ac 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,8 @@ .DS_Store node_modules /web/dist +/web/assets +/web/imager /.vite php-cs-fixer.cache diff --git a/config/project/project.yaml b/config/project/project.yaml index dce855a..8146e30 100644 --- a/config/project/project.yaml +++ b/config/project/project.yaml @@ -1,4 +1,4 @@ -dateModified: 1727299637 +dateModified: 1727307125 email: fromEmail: $SYSTEM_EMAIL_FROM fromName: 'Viget Craft Starter' @@ -11,10 +11,19 @@ email: useAuthentication: '1' username: $SYSTEM_EMAIL_USERNAME transportType: craft\mail\transportadapters\Smtp +fs: + local: + hasUrls: true + name: Local + settings: + path: '@webroot/assets' + type: craft\fs\Local + url: /assets/ meta: __names__: 35b563a0-4662-40b9-b885-a8450a2868d9: 'Viget Craft Starter' # Viget Craft Starter 805d8826-faed-4186-9b88-f509eb9b07e6: 'Viget Craft Starter' # Viget Craft Starter + 853413e4-e02c-487e-81a5-04e58eb18683: Assets # Assets b7e66782-af96-4012-9e17-914134073ced: Simple # Simple plugins: aws-s3: diff --git a/config/project/volumes/assets--853413e4-e02c-487e-81a5-04e58eb18683.yaml b/config/project/volumes/assets--853413e4-e02c-487e-81a5-04e58eb18683.yaml new file mode 100644 index 0000000..6efe833 --- /dev/null +++ b/config/project/volumes/assets--853413e4-e02c-487e-81a5-04e58eb18683.yaml @@ -0,0 +1,76 @@ +altTranslationKeyFormat: null +altTranslationMethod: none +fieldLayouts: + a7f496e4-142f-49a4-b241-2cb6ce1a1f30: + tabs: + - + elementCondition: null + elements: + - + autocapitalize: true + autocomplete: false + autocorrect: true + class: null + dateAdded: '2024-09-25T21:25:44+00:00' + disabled: false + elementCondition: null + id: null + includeInCards: false + inputType: null + instructions: null + label: null + max: null + min: null + name: null + orientation: null + placeholder: null + providesThumbs: false + readonly: false + requirable: false + size: null + step: null + tip: null + title: null + type: craft\fieldlayoutelements\assets\AssetTitleField + uid: 46777601-180e-43d4-8853-3ab2dcd42057 + userCondition: null + warning: null + width: 100 + - + attribute: alt + class: null + cols: null + dateAdded: '2024-09-25T21:27:17+00:00' + disabled: false + elementCondition: null + id: null + includeInCards: false + instructions: null + label: null + name: null + orientation: null + placeholder: null + providesThumbs: false + readonly: false + requirable: true + required: false + rows: null + tip: null + title: null + type: craft\fieldlayoutelements\assets\AltField + uid: d508c2f5-a04e-4614-b005-f848c95bfaa5 + userCondition: null + warning: null + width: 100 + name: Content + uid: c5d6deb9-e383-44bf-aa0f-a8de30dfca6f + userCondition: null +fs: $ASSET_FILESYSTEM +handle: assets +name: Assets +sortOrder: 1 +subpath: '' +titleTranslationKeyFormat: null +titleTranslationMethod: site +transformFs: $ASSET_FILESYSTEM +transformSubpath: transforms