This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const defaultTheme = require('tailwindcss/defaultTheme') | |
| const prefixedColors = Object.fromEntries(Object.entries(defaultTheme.colors).map(([k, v]) => [`tw-${k}`, v])); | |
| module.exports = { | |
| theme: { | |
| extend: { | |
| colors: { | |
| ...prefixedColors, | |
| red: '#ff0000', | |
| // your colors here… |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: "3.7" | |
| networks: | |
| backend: | |
| frontend: | |
| volumes: | |
| app: | |
| db_data: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace modules\appmodule\behaviors; | |
| use Craft; | |
| use craft\elements\Entry; | |
| use craft\events\ModelEvent; | |
| use craft\helpers\ElementHelper; | |
| use yii\base\Behavior; | |
| class Order extends Behavior |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace modules\appmodule; | |
| use Craft; | |
| use craft\elements\Entry; | |
| use craft\events\DefineBehaviorsEvent; | |
| use yii\base\Event; | |
| class Module extends \yii\base\Module |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mutation ($attachments: [String]) { | |
| save_emailOrder(emailAttachments @indexAssetPaths: $attachments) { | |
| id | |
| } | |
| } | |
| mutation ($attachments @indexAssetPaths: [String]) { | |
| save_emailOrder(emailAttachments: $attachments) { | |
| id | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3.4' | |
| services: | |
| heimdall: | |
| image: linuxserver/heimdall | |
| container_name: heimdall | |
| environment: | |
| - PUID=${PUID} | |
| - PGID=${PGID} | |
| - TZ=${TZ} | |
| volumes: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, {Component, createRef} from 'react'; | |
| import {Map as LeafletMap, TileLayer, withLeaflet} from 'react-leaflet'; | |
| import LeafletProviders from 'leaflet-providers'; | |
| import MarkerClusterGroup from 'react-leaflet-markercluster'; | |
| import Marker from '@components/leaflet/Marker.jsx'; | |
| import icons from '@js/leaflet/icons.js'; | |
| import 'leaflet/dist/leaflet.css'; | |
| import 'leaflet.markercluster/dist/MarkerCluster.css'; | |
| const northAmericaBounds = [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'postLoginRedirect' => function ($siteHandle) { | |
| return Craft::$app->request->getQueryParam('redirect', 'members/profile'); | |
| }, | |
| 'postLogoutRedirect' => function ($siteHandle) { | |
| return Craft::$app->request->getQueryParam('redirect', 'members/login'); | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {% set text = text ?? 'Learn More' %} | |
| {% set external = external ?? false %} | |
| {% set target = attrs.target ?? (external ? '_blank') %} | |
| {# Passed attrs take precedence #} | |
| {% set attrs = { | |
| href: href ?? url ?? '#', | |
| target: target, | |
| rel: target|lower == '_blank' ? 'noreferrer noopener', | |
| }|merge(attrs ?? {}) %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {% set text = text ?? 'Learn More' %} | |
| {% set external = external ?? false %} | |
| {% set target = attrs.target ?? (external ? '_blank') %} | |
| {# {% set attrs = { | |
| href: href ?? url ?? '#', | |
| target: target, | |
| rel: target|lower == '_blank' ? 'noreferrer noopener', | |
| }|merge(attrs ?? {}) %} #} |