Commit Graph

43 Commits

Author SHA1 Message Date
luca 4f9653cc7b add effect and body field in content type team 2025-03-05 17:23:51 +01:00
luca 19583cff83 delete sass copy 2025-03-05 16:07:30 +01:00
luca 2232955d57 Add count effect 2025-03-05 16:05:52 +01:00
luca 409760c93c add instruction build and push 2025-03-05 15:44:32 +01:00
luca da644db851 change syntax docker compose 2025-03-05 15:27:30 +01:00
luca 0177cdf10e Changes to the team content type 2025-03-05 15:24:11 +01:00
luca 1831468314 add max_execution_time 2025-03-05 15:17:48 +01:00
luca eab89df3e3 delete adminer 2025-03-05 15:17:22 +01:00
Luca Di Fiore 9fd1318b14 Manage field field_access_request_url 2025-03-05 12:04:18 +01:00
Maicol Battistini 7508de570f
fix(config): 🔒 Allow all hosts
This change simplifies trusted host settings, removing reliance on environment variables.

- Enables all hostnames by using a wildcard pattern.
- Fixes potential issues with dynamic environments.

This is a security configuration update that is suitable for development environments.
2025-02-17 16:08:35 +01:00
Maicol Battistini f58224b3ca
chore(deps): ⬆️ Update dependencies and add libraries
Updates composer.lock with new packages and updates existing dependencies.

- Adds merge-plugin configuration to composer.json to include composer.libraries.json files from specified webform, anchor_link and masonry modules.
- Updates versions of illuminate components.
- Adds new javascript libraries such as algolia/places, choices/choices, jquery, popperjs and signature_pad.
2025-02-17 12:40:06 +01:00
Maicol Battistini da8408923f
fix(settings): 🔒 Configure trusted host patterns
Ensures proper trusted host configuration by dynamically setting patterns based on the SERVER_NAME environment variable.

- Uses SERVER_NAME env variable or defaults to 'localhost'.
- Extracts domain name and configures trusted host patterns.
- Adds localhost, 127.0.0.1 and extracted domain to the trusted host list.
2025-02-17 12:39:20 +01:00
Maicol Battistini a7567fdb61
fix(settings): 🐛 Fix database settings
Updates settings.php to include necessary database configurations.

- Adds `isolation_level` to the database settings array.
- Ensures the `autoload` path ends with a forward slash.
- Prevents potential database connection issues.
2025-02-17 12:39:09 +01:00
Maicol Battistini cc85ba7a1c
fix(drupal): 🐛 Correct server name in docker-compose
Updates the SERVER_NAME environment variable.

- Fixes incorrect `SERVER_NAME`
- Updates it to `d4science.localhost`
- Ensures proper routing.
2025-02-17 12:38:46 +01:00
Maicol Battistini b08a454d76
feat(dev): Enable TTY for web service
Adds TTY to the web service container in docker-compose.dev.yml.

- Allows interactive shell access for debugging.
- Improves development experience.
2025-02-17 12:38:28 +01:00
Maicol Battistini 21dc7df82f
feat(db): Add MariaDB service to docker-compose
Adds a MariaDB service to the docker-compose.yml file for local development.

- Defines a MariaDB container with persistent volume for data.
- Exposes port 3306 for database access.
- Sets default database credentials.
2025-02-17 09:53:08 +01:00
Maicol Battistini 97228d62f7
chore(docker): 📦 Mount default files directory
Mount the default files directory to persist uploaded media.

- Ensures persistent storage of uploaded files.
- Prevents data loss on container restarts.
2025-02-17 09:52:44 +01:00
Maicol Battistini e053394826
fix: 🐛 Fix database initialization volume path
The database initialization volume was pointing to a non-existent directory.

- Update volume mount path to use the correct directory
- Corrected `db2` to `db`

This ensures that the database is properly initialized on startup.
2025-02-17 09:52:20 +01:00
Maicol Battistini 6d03d8f6fc
chore(gitignore): 🙈 Update .gitignore to exclude contrib themes
Updates .gitignore to prevent tracking of contributed themes.

- Prevents accidental commits of contributed theme files.
- Improves repository cleanliness.
2025-02-17 09:51:03 +01:00
Maicol Battistini cf4618eeb3
refactor: ♻️ Fixes GTM noscript tag spacing
Addresses minor spacing issue in the GTM noscript tag.

- Removes extra space after the tag.
- Improves code readability.

This change doesn't affect functionality.
2025-02-17 09:50:49 +01:00
Maicol Battistini f355517695
feat(theme): Add main help menu template
This commit introduces a new Twig template for the main help menu.

- Creates `menu--main-help.html.twig` to define the menu structure.
- Implements a recursive macro for rendering nested menu links.
- Adds classes for styling and interactivity.
2025-02-17 09:50:32 +01:00
Maicol Battistini ee975cb1d9
chore: Add project IDE configuration
This commit adds the initial IDE configuration files for the project.

- Configures code style settings for consistent formatting.
- Sets up inspection profiles for code quality checks.
- Adds project-specific settings for various tools.
2025-02-17 09:49:51 +01:00
Maicol Battistini 1d05f7cfaf
chore(docker): 🐳 Use Harbor registry for Drupal image
This commit updates the Drupal image source to use the Harbor registry.

- Switch from `d4science/website` to `harbor.d4science.org/d4science-website/drupal:latest`.
- Ensures we're using the most recent Drupal image.
- Improves image management and version control.
2025-02-14 16:19:25 +01:00
Maicol Battistini 1d7883e958
chore(gitignore): 🎉 Update .gitignore and .dockerignore
This commit updates the .gitignore and .dockerignore files to use a more comprehensive template.

- Replaces the existing content with a template from gitignore.io, covering a wider range of ignored files.
- Includes ignores for Git, Linux, macOS, Windows, PhpStorm, Visual Studio Code, Drupal, and Composer.
- Simplifies file management and reduces unnecessary files in the repository.
2025-02-14 16:19:07 +01:00
Maicol Battistini c11264c05c
fix(docker): 🔧 Fix COMPOSER_ALLOW_SUPERUSER env
Fixes an issue where the COMPOSER_ALLOW_SUPERUSER environment variable was not being set correctly.

- Changes `ENV COMPOSER_ALLOW_SUPERUSER 1` to `ENV COMPOSER_ALLOW_SUPERUSER=1`
- Ensures the variable is properly interpreted by the shell.
2025-02-12 17:13:27 +01:00
Maicol Battistini 408cf86ae9
feat(docker): 🚚 Switch to MariaDB from PostgreSQL
This commit migrates the database from PostgreSQL to MariaDB for development.

- Updates docker-compose files to use MariaDB image and configuration.
- Adjusts environment variables to reflect MariaDB settings (port, driver).
- Removes PostgreSQL-related configurations.
2025-02-12 12:23:53 +01:00
luca ba51576413 feat: Add Google Tag Manager
Add Google Tag Manager
2025-02-12 11:37:44 +01:00
luca ef78a22290 Merge branch 'main' of https://code-repo.d4science.org/CatalogueRevamping/d4science_website 2025-02-04 17:27:13 +01:00
luca fd99974e11 added modules 2025-02-04 17:20:20 +01:00
luca ee80985778 Changed the form to accept more gateways. 2025-02-04 17:16:29 +01:00
Maicol Battistini 841768ef8a
chore: 🙈 Improve gitignore files
- Update .gitignore and .dockerignore with comprehensive rules from Toptal's gitignore templates.
- Add rules for macOS, Drupal, Composer, and PhpStorm to exclude unnecessary files.
- Enhance project cleanliness and reduce commit noise.
2025-02-04 14:18:43 +01:00
Maicol Battistini 4bbb347755
chore(dependencies): ⬆️ Update composer.lock
Updates dependencies in composer.lock.

- Updates drupal/better_exposed_filters from 7.0.4 to 7.0.5.
- Updates gravitypdf/querypath from 3.1.4 to 4.1.0 with PHP 8.3 support.
- Updates multiple Symfony packages to v6.4.18.
2025-02-04 11:32:05 +01:00
Maicol Battistini 01edb0255f
fix: 🐛 Use environment variable for DB driver
This commit addresses an issue where the database driver was hardcoded to 'pgsql'.

- It introduces an environment variable `DB_DRIVER` to dynamically determine the database driver.
- It updates the database configuration array to use this environment variable.
- It ensures compatibility with different database systems based on the environment configuration.
2025-02-04 11:16:39 +01:00
Maicol Battistini e04e077c9f
refactor(docker): ♻️ Simplify volume mounts in docker-compose
Refactor volume mounts for easier development.

- Reduce redundant volume declarations.
- Mount entire project directory.
- Improve development workflow.
2025-02-04 11:15:05 +01:00
Maicol Battistini 8d5c56fb64
chore: 🔧 set php memory limit
increase php memory limit to 512M

- added `php.ini` file
- set `memory_limit` to 512M
- this addresses potential memory issues during script execution
2025-02-03 15:11:28 +01:00
Maicol Battistini a88de4d249
chore: 🔧 add required php extensions
- Add `curl` and `openssl` php extensions to the docker image.
- These extensions are required for various functionalities.
- Update Dockerfile to reflect changes.
2025-02-03 15:10:59 +01:00
Maicol Battistini c861917f32
fix(docker): 🐛 update SERVER_NAME for local dev
- change SERVER_NAME from `localhost` to `d4science.localhost` in `docker-compose.dev.yml`
- this allows accessing the site via `d4science.localhost`
- improves local development workflow
2025-02-03 15:10:35 +01:00
Maicol Battistini 5900da2df9
chore: ⚙️ change restart policy to 'unless-stopped'
• Update restart policy for all services to 'unless-stopped'
• Ensure services do not restart automatically on failure
• Improve control over service management in development environment
2025-02-03 15:08:19 +01:00
Maicol Battistini c9211692a7
docs: 📝 add usage and build instructions
- Add instructions for running the application using the prebuilt image with docker-compose.
- Add instructions for building the image locally.
- Include details on configuring environment variables within the docker-compose file.
2025-01-24 10:23:01 +01:00
Maicol Battistini cfc5c570a1
fix: 🐛 Force port 80 in Caddyfile
- Add port 80 to the server address
- Add trailing newline to the Caddyfile
- Fix extra whitespace in the `Cache-Control` header

These changes ensure that Caddy listens on the correct port and prevent potential parsing issues due to the missing newline.  The whitespace fix improves consistency and readability.
2025-01-24 10:18:26 +01:00
Maicol Battistini 9590d1b0a0
chore: 📦 update .dockerignore
- Remove commented-out entries for Drupal core and config files
- Add user-generated content directories to the ignore list
- Keep ignoring vendor dependencies, scripts, and temporary files

This commit cleans up the `.dockerignore` file by removing outdated and redundant entries while ensuring that sensitive and user-generated data are not included in the Docker image.  It also ensures consistency with common Drupal practices for Docker.
2025-01-24 10:17:49 +01:00
Maicol Battistini 4ccced438d
chore(database): ⚙️ externalize database credentials
- Replace hardcoded database credentials with environment variables.
- Use `$_ENV` to retrieve credentials, defaulting to existing values if not set.
- Removed commented-out alternative database configurations.

This change improves security by removing sensitive information from the codebase and allows for easier configuration across different environments.
2025-01-24 10:17:28 +01:00
Maicol Battistini dc499eed9e
feat: 🎉 Initial commit 2025-01-23 17:43:20 +01:00