Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .ddev/.env.web
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
CRAFT_DB_PASSWORD="db"
CRAFT_DB_PORT="3306"
CRAFT_WEB_ROOT="/var/www/html/web"
PRIMARY_SITE_URL="https://viget-craft-starter.ddev.site"
CRAFT_DB_SERVER="db"
CRAFT_DB_DATABASE="db"
CRAFT_DB_USER="db"
MAILPIT_SMTP_HOSTNAME="127.0.0.1"
MAILPIT_SMTP_PORT="1025"
CRAFT_DB_DRIVER="mysql"
3 changes: 1 addition & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"intelephense.environment.phpVersion": "8.2",
"php.version": "8.2",
"twiggy.framework": "craft"
"php.version": "8.2"
}
9 changes: 8 additions & 1 deletion config/project/project.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dateModified: 1751982681
dateModified: 1757708816
elementSources:
craft\elements\Entry:
-
Expand Down Expand Up @@ -50,6 +50,13 @@ email:
username: $SYSTEM_EMAIL_USERNAME
transportType: craft\mail\transportadapters\Smtp
fs:
local:
hasUrls: true
name: Local
settings:
path: '@webroot/local-filesystem'
type: craft\fs\Local
url: /local-filesystem
s3:
hasUrls: true
name: S3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ altTranslationKeyFormat: null
altTranslationMethod: none
fieldLayouts:
a7f496e4-142f-49a4-b241-2cb6ce1a1f30:
cardThumbAlignment: end
tabs:
-
elementCondition: null
Expand Down Expand Up @@ -65,7 +66,7 @@ fieldLayouts:
name: Content
uid: c5d6deb9-e383-44bf-aa0f-a8de30dfca6f
userCondition: null
fs: s3
fs: local
handle: assets
name: Assets
sortOrder: 1
Expand Down
18 changes: 17 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"dependencies": {
"@alpinejs/collapse": "^3.14.1",
"@alpinejs/focus": "^3.14.1",
"alpinejs": "^3.14.1"
"alpinejs": "^3.14.1",
"external-svg-loader": "^1.7.1"
}
}
4 changes: 4 additions & 0 deletions src/js/app.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import 'external-svg-loader'

// SVGLoader.destroyCache();

import '../css/app.css'

import Alpine from 'alpinejs'
Expand Down
8 changes: 5 additions & 3 deletions templates/_elements/home.twig
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{% extends '_layouts/base.twig' %}

{% set asset = craft.assets.id(427).one() %}

{% block content %}
{{ include("_blocks/index.twig", {
blocks: entry.pageBlocks,
}) }}
<div style="--icon-color: red;">
<svg data-src="{{ asset.url }}" fill="currentColor"></svg>
</div>
{% endblock %}
2 changes: 2 additions & 0 deletions web/local-filesystem/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore