Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
a01352a
Consolidate env vars
AugustMiller Nov 18, 2025
20cbf48
Remove `use` statements
AugustMiller Nov 18, 2025
393f8b6
Remove db.php
AugustMiller Nov 18, 2025
d0842db
Update to 5.9, entrify news categories, revise volume/fs config
AugustMiller Nov 18, 2025
a6120ff
Relocate error templates to agree with config
AugustMiller Nov 18, 2025
6795480
Whitespace
AugustMiller Nov 18, 2025
b17ca0a
Human-readable conditional
AugustMiller Nov 18, 2025
7f95b1b
Readme: casing
AugustMiller Nov 18, 2025
000e8c3
Relocate uploads
AugustMiller Nov 18, 2025
c7237de
More entry type icons
AugustMiller Nov 18, 2025
d9d7b0c
r ->
AugustMiller Nov 18, 2025
334be30
Replace, rename screenshot
AugustMiller Nov 18, 2025
3dafd79
News category index defaults
AugustMiller Nov 18, 2025
658b6c7
Don't upscale images
AugustMiller Nov 21, 2025
6ac59f6
Define basic image transforms
AugustMiller Nov 21, 2025
9478714
Major schema overhaul
AugustMiller Nov 21, 2025
ef388df
Changelog
AugustMiller Nov 21, 2025
86d9299
Remove unused tag group
AugustMiller Nov 21, 2025
8946644
Fix form seeding
AugustMiller Nov 21, 2025
c39232f
Done :)
AugustMiller Nov 21, 2025
ce33da3
Batched deletion
AugustMiller Nov 21, 2025
1b6f587
Remove French site
AugustMiller Nov 21, 2025
7c3ae1e
Remove dynamodb adapter
AugustMiller Nov 21, 2025
8cc6889
Remove custom backup command
AugustMiller Nov 21, 2025
73abdef
Don't prevent updates in general.php
AugustMiller Nov 21, 2025
8a2a495
Notes
AugustMiller Nov 21, 2025
f5409b8
PHP 8.3
AugustMiller Nov 22, 2025
ae28042
Squelch Sass warnings
AugustMiller Nov 22, 2025
fc95269
Browsersync ports for `npm run sync`
AugustMiller Nov 22, 2025
4fd94ce
Update sass?
AugustMiller Nov 22, 2025
63b4b13
Update dependencies after 8.3
AugustMiller Nov 22, 2025
6680df4
Update seed
AugustMiller Nov 22, 2025
716256a
Readme
AugustMiller Nov 22, 2025
e7ebc61
Whitespace
AugustMiller Nov 24, 2025
0d247b8
Hero title fallback handling
AugustMiller Nov 24, 2025
8cb9a62
Prevent stretching images in rich text blocks
AugustMiller Nov 24, 2025
7827468
Fix mobile nav menu?
AugustMiller Nov 24, 2025
966b80a
App config comments
AugustMiller Nov 24, 2025
4d92ef7
Remove debug.php
AugustMiller Nov 24, 2025
a49e274
Notes on changes, fixes, affected issues
AugustMiller Nov 24, 2025
34f4760
Update everything? :sweat_smile:
AugustMiller Nov 25, 2025
80ec704
Nix embed field override
AugustMiller Nov 25, 2025
e64cbd4
No more "locoscroll"
AugustMiller Nov 25, 2025
f371490
Always show pagination, dim inactive/unused links
AugustMiller Nov 25, 2025
e8c8483
Remove unused featured exhibits field from news articles
AugustMiller Nov 25, 2025
88821de
Full overhaul of front-end toolchain and dependencies
AugustMiller Nov 25, 2025
cd57f0f
Re-seed
AugustMiller Nov 25, 2025
17ddc38
Update dependencies
AugustMiller Nov 25, 2025
5a3bc84
Add uploads
AugustMiller Nov 25, 2025
f66587a
Simplify how `srcset` is generated
AugustMiller Dec 1, 2025
063f94a
Purge thumbs
AugustMiller Dec 1, 2025
e3e9a72
Delete stray image
AugustMiller Dec 1, 2025
ba2223e
Don't transform GIFs
AugustMiller Dec 1, 2025
5a083c4
Remove unused variable
AugustMiller Dec 1, 2025
9d3e6fc
Remove dead `sizes` references
AugustMiller Dec 1, 2025
e4f642e
Fields cleanup
AugustMiller Dec 1, 2025
1edd4f4
Comment edits
AugustMiller Dec 1, 2025
dad2fc0
Refresh thumbs
AugustMiller Dec 1, 2025
6b1bb5a
Custom source for assets missing alt text
AugustMiller Dec 3, 2025
db96f86
More thumbs
AugustMiller Dec 3, 2025
e0101fd
Seed
AugustMiller Dec 3, 2025
bb02513
Thumbs
AugustMiller Dec 4, 2025
8fc1b03
Update dependencies
AugustMiller Dec 4, 2025
49edfef
Entry type groups for content builder field
AugustMiller Dec 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 12 additions & 0 deletions .ddev/.env.web
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
CRAFT_DB_PASSWORD="db"
CRAFT_DB_DRIVER="pgsql"
CRAFT_DB_PORT="5432"
CRAFT_DB_SERVER="db"
CRAFT_DB_DATABASE="db"
CRAFT_DB_USER="db"

CRAFT_WEB_ROOT="/var/www/html/web"
PRIMARY_SITE_URL="https://europa-museum.ddev.site"

MAILPIT_SMTP_HOSTNAME="127.0.0.1"
MAILPIT_SMTP_PORT="1025"
8 changes: 7 additions & 1 deletion .ddev/config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: europa-museum
type: craftcms
docroot: web
php_version: "8.2"
php_version: "8.3"
webserver_type: nginx-fpm
xdebug_enabled: false
additional_hostnames: []
Expand All @@ -13,6 +13,12 @@ use_dns_when_possible: true
composer_version: "2"
web_environment: []

web_extra_exposed_ports:
- name: browsersync
container_port: 3000
http_port: 2999
https_port: 3000

# Key features of DDEV's config.yaml:

# name: <projectname> # Name of the project, automatically provides
Expand Down
14 changes: 0 additions & 14 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,5 @@ CRAFT_ENVIRONMENT=dev

CRAFT_SECURITY_KEY=

CRAFT_DB_DRIVER=pgsql
CRAFT_DB_SERVER=localhost
CRAFT_DB_PORT=5432
CRAFT_DB_USER=postgres
CRAFT_DB_PASSWORD=
CRAFT_DB_DATABASE=
CRAFT_DB_SCHEMA=public
CRAFT_DB_TABLE_PREFIX=

DEFAULT_SITE_URL=https://europa.nitro

SMTP_HOST=mailhog.service.nitro
SMTP_PORT=1025

TWIGPACK_MANIFEST_PATH=http://host.docker.internal:8080/
TWIGPACK_PUBLIC_PATH=http://host.docker.internal:8080/
16 changes: 0 additions & 16 deletions .eslintrc

This file was deleted.

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
/web/css/site.css.map
/web/js/site.js.map

# For demo infrastucture only
# For demo infrastructure only
!seed.sql
!/web/assets
!/web/css
Expand Down
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

3 changes: 0 additions & 3 deletions .prettierignore

This file was deleted.

6 changes: 0 additions & 6 deletions .prettierrc

This file was deleted.

12 changes: 0 additions & 12 deletions .snyk

This file was deleted.

38 changes: 38 additions & 0 deletions CHANGELOG-WIP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
## Craft 5.9

- Entrified news categories
- Rearranged entry sources into pages
- `PRIMARY_SITE_URL` > `DEFAULT_SITE_URL`
- Renamed filesystems to match their storage medium rather than usage
- Removed `@web` alias
- `@assetBaseUrl` split into `@uploads` and `@dist`, simplified asset URL schemes:
- Moved uploaded assets into `web/uploads/` (`@uploads`)
- Moved build artifacts into `web/assets/disc/` (`@dist`)
- Rearranged URLs and paths in filesystem/volume config
- Renamed `FS_HANDLE` to `UPLOAD_FS` for switching filesystem types
- Converted CTA/link blocks to use the link field
- Removed unused tag group
- Merged redundant ex-Matrix fields
- Removed French site (there was no content for this, anyway—and the homepage didn't resolve)
- Deleted `config/debug.php`

### Other Issues Fixed

- Hamburger menu not working [#51](https://github.com/craftcms/europa-museum/issues/51)
- Imported auto-initializing script dropped during prior cleanup
- Few issues with setting up this demo site [#53](https://github.com/craftcms/europa-museum/issues/53)
- Some of this was handled on `stable` to get actions green again
- Additional readme steps and corresponding `Makefile` adjustments happened in here
- Steps for installation [#49](https://github.com/craftcms/europa-museum/issues/49)
- Still need to mention `mkcert` setup step? (We don’t even mention this in the main installation docs—it's generally considered part of the DDEV setup process, and is platform-dependent.)

### To-Do

- Add `cache` table to seed, or add `craft setup/db-cache-table` to Makefile/setup instructions
- Add `phpsessions` table to seed, or add `craft setup/php-session-table` to Makefile/setup instructions

## Cleanup

- Alter `craftcms/cms` constraint to `^5.9.0` upon release
- Delete all content migrations created during field merging!
- Ensure dead project config files + items are pruned
12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<h1 align="center">Europa Museum — Craft CMS Demo</h1>

![Europa Museum homepage](homepage.png)
![Europa Museum homepage](screenshot.png)

## Overview

Expand All @@ -13,7 +13,7 @@ _Europa_ shows off many of Craft’s [core features](https://craftcms.com/featur
### Development Technologies

- [Craft CMS 5.x](https://craftcms.com/docs/5.x/)
- PHP 8.2
- PHP 8.4
- PostgreSQL 13
- Native [Twig](https://craftcms.com/docs/5.x/development/twig.html) templates
- Built on the [Yii 2 framework](https://www.yiiframework.com/)
Expand All @@ -24,20 +24,16 @@ Read more about Craft’s [technical requirements](https://craftcms.com/docs/5.x

_Europa_’s front-end was built with modern Javascript and CSS tools. Craft itself has no rules about how you structure your front-end code—so we’ve taken the opportunity to share a handful of techniques that couple Twig templates with front-end interactivity.

- [Babel](https://babeljs.io/) with ES6
- [Sass](https://sass-lang.com/)
- [Laravel Mix](https://github.com/JeffreyWay/laravel-mix#readme) with [PurgeCSS](https://github.com/spatie/laravel-mix-purgecss#readme) and [Critical CSS](https://github.com/riasvdv/laravel-mix-critical#readme)
- [Highway.js](https://highway.js.org/)
- [Laravel Mix](https://github.com/JeffreyWay/laravel-mix#readme) to manage compilation of [Sass](https://sass-lang.com/) and JavaScript
- [GSAP](https://greensock.com/gsap)
- [Lazysizes](https://github.com/aFarkas/lazysizes#readme)
- [LocomotiveScroll](https://github.com/locomotivemtl/locomotive-scroll)

## Local Development

This repository is ready to use with [DDEV](#ddev) and [Docker Compose](#docker-compose).

> [!TIP]
> If you’re using a different local environment, see Craft’s [Server Requirements](https://craftcms.com/docs/5.x/requirements.html) and [Installation Instructions](https://craftcms.com/docs/5.x/install.html).
> If you’re using a different local environment, refer to Craft’s [requirements](https://craftcms.com/docs/5.x/requirements.html) and our [installation instructions](https://craftcms.com/docs/5.x/install.html).

### DDEV

Expand Down
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
"bref/bref": "^2",
"craftcms/aws-s3": "^2",
"craftcms/ckeditor": "^4",
"craftcms/cms": "^5",
"craftcms/yii2-dynamodb": "^2",
"craftcms/cms": "5.9.x-dev",
"fakerphp/faker": "^1",
"nystudio107/craft-seomatic": "^5",
"nystudio107/craft-twigpack": "^5",
Expand Down
Loading
Loading