By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
Table of Contents
| <?php declare(strict_types=1); | |
| namespace Armin\Vieweg\ViewHelpers; | |
| use TYPO3\CMS\Core\Core\Environment; | |
| use TYPO3\CMS\Core\Utility\GeneralUtility; | |
| use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface; | |
| use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper; | |
| /** | |
| * Font Awesome SVG ViewHelper |
| plugin.tx_indexedsearch { | |
| show { | |
| rules=0 | |
| } | |
| settings { | |
| targetPid = YOURPID | |
| displayRules = 0 | |
| exactCount = 1 |
| document.addEventListener('wheel', function(e) | |
| { | |
| if(e.type != 'wheel') | |
| { | |
| return; | |
| } | |
| let delta = ((e.deltaY || -e.wheelDelta || e.detail) >> 10) || 1; | |
| delta = delta * (-300); | |
| document.documentElement.scrollLeft -= delta; | |
| e.preventDefault(); |
| <?php | |
| /** | |
| * @param FilterDto $filterDto | |
| * @return string | |
| */ | |
| protected function getSqlForRadialSearch(FilterDto $filterDto): string | |
| { | |
| $latitude = $filterDto->getLatitudeFromZip(); | |
| $longitude = $filterDto->getLongitudeFromZip(); |
| <?php | |
| namespace MyNameSpace\Myextension\Domain\Model; | |
| /** | |
| * This file is part of the TYPO3 CMS project. | |
| * | |
| * It is free software; you can redistribute it and/or modify it under | |
| * the terms of the GNU General Public License, either version 2 | |
| * of the License, or any later version. | |
| * |
| <?php | |
| namespace Pixelbrackets\AcmeExtension\ViewHelpers; | |
| use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper; | |
| /** | |
| * Checks if a given page is translated into a given language or translated at all | |
| * | |
| * = Examples = | |
| * |
| # Redirect visitors to the root domain path (e.g. www.mywebsite.ch) to the appropriate language version | |
| # Fallback to English version if no matching browser language defined | |
| # Based on language version being at e.g. www.mywebsite.ch/de/ | |
| # language starts with DE | |
| RewriteCond %{REQUEST_URI} !typo3 | |
| RewriteCond %{HTTP:Accept-Language} ^de [NC] | |
| RewriteRule ^$ /de/[L,R=301] | |
| # language starts with FR |
| <settings.link> | |
| <TCEforms> | |
| <exclude>1</exclude> | |
| <label> | |
| Link to Page or a File or a Content-Element | |
| </label> | |
| <config> | |
| <type>input</type> | |
| <size>30</size> | |
| <eval>trim</eval> |
By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
Table of Contents
| function convertMS( milliseconds ) { | |
| var day, hour, minute, seconds; | |
| seconds = Math.floor(milliseconds / 1000); | |
| minute = Math.floor(seconds / 60); | |
| seconds = seconds % 60; | |
| hour = Math.floor(minute / 60); | |
| minute = minute % 60; | |
| day = Math.floor(hour / 24); | |
| hour = hour % 24; | |
| return { |