In yourtheme.libraries.yml
global:
js:
dist/js/global.js: { minified: true }
dependencies:
- core/drupal
- core/drupal.debounce| # Based on https://gitlab.com/mog33/gitlab-ci-drupal/-/blob/3.x-dev/.gitlab-ci/ci/06_deploy.yml | |
| # | |
| # Basic docker image with ssh to be able to access a remote. | |
| # Each access must add a ssh key, see samples below. | |
| .deploy_ssh: | |
| image: alpine:latest | |
| needs: | |
| - drush make | |
| rules: | |
| - if: '$CI_COMMIT_TAG != null' |
| #!/bin/bash | |
| function greenecho { | |
| echo "" && echo -e "\e[30;48;5;82m ✔ $1 \e[0m" | |
| } | |
| function orangeecho { | |
| echo "" && echo -e "\e[30;48;5;208m ⚠ $1 \e[0m" | |
| } | |
| # Get document root path |
| #!/bin/bash | |
| function greenecho { | |
| echo "" && echo -e "\e[30;48;5;82m ✔ $1 \e[0m" | |
| } | |
| function orangeecho { | |
| echo "" && echo -e "\e[30;48;5;208m ⚠ $1 \e[0m" | |
| } | |
| # Get document root path |
| <?php | |
| /** | |
| * @When I switch to the frame by selector "[title=:arg1]" | |
| */ | |
| public function switchToIFrameFromSelector($iframeSelector) { | |
| $function = <<<JS | |
| (function(){var iframe = document.querySelector("$iframeSelector");iframe.name = "iframeToSwitchTo";})() | |
| JS; | |
| try { |
| #!/bin/bash | |
| # How to use this script? | |
| # | |
| # 1. create an empty module that depends on default_content or reuse an | |
| # existing one. | |
| # 2. use `drush dcer --folder=path/to/module/content ENTITY_TYPE ID` | |
| # to add default content to your module. | |
| # 3. once all your content is in your module, clean up the content folder | |
| # to only keep the content you need (ie. remove users most of the time). |
| <?php | |
| namespace Drupal\custom_commerce_recurring; | |
| use Drupal\commerce_order\Entity\OrderInterface; | |
| use Drupal\commerce_recurring\RecurringOrderManager as BaseRecurringOrderManager; | |
| use Drupal\commerce_recurring\RecurringOrderManagerInterface; | |
| use Drupal\Component\Datetime\TimeInterface; | |
| use Drupal\Core\Entity\EntityTypeManagerInterface; |
MailHog is a nice mail testing tool for developers.
Website: https://github.com/mailhog/MailHog
Download the latest release on your local machine
| /* entire container, keeps perspective */ | |
| body .flip-container { | |
| width: 100%; | |
| } | |
| body .flip-container .flipper { | |
| position: relative; | |
| } | |
| /* hide back of pane during swap */ |