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 | |
| // File: modules\Module.php | |
| namespace modules; | |
| use Craft; | |
| use craft\base\Element; | |
| use craft\elements\Category; | |
| use craft\elements\Entry; | |
| use yii\base\Event; |
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 | |
| use craft\base\Element; | |
| use craft\db\Query; | |
| use craft\db\Table; | |
| use craft\elements\Asset; | |
| use craft\elements\Entry; | |
| use craft\errors\ImageException; | |
| use craft\helpers\Assets; | |
| use craft\helpers\FileHelper; |
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 | |
| use yii\base\Event; | |
| use yii\base\Module; | |
| use yii\mail\BaseMailer; | |
| use yii\mail\MailEvent; | |
| /** | |
| * In case of emergency, break email. :) | |
| * |
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 { useEffect, useState } from "react"; | |
| function useDevBgImage(src) { | |
| const [bgTop, setBgTop] = useState(0); | |
| const [opacity, setOpacity] = useState(100); | |
| useEffect(() => { | |
| document.getElementById('root').style.opacity = String(opacity / 100); | |
| }, [opacity]); |
OlderNewer