~/oss/redux-form
–master
branch ofredux-form/redux-form
~/oss/rfdocs
–master
branch ofredux-form/redux-form-docs
- This is auto deployed via Netlify to
redux-form.com
(or it was before I transfered ownership to theredux-form
org) - Contains
publish.js
, a horrible pre-Gatsby static site generator
- This is auto deployed via Netlify to
~/oss/redux-form-website-template
–website-template
branch ofredux-form/redux-form
- This is where styling tweaks sometimes need to be made
- It needs to be
npm publish
'd and the version updated in all the examplespackage.json
s andredux-form-docs
repos to get the new changes.
This file contains 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
#!/bin/bash | |
while : | |
do | |
clear | |
git --no-pager log --oneline --decorate --all --graph --date=relative $* | |
sleep 2 | |
done |
This file contains 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 Liip\CoreBundle\Command; | |
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Output\OutputInterface; | |
use Symfony\Component\Console\Input\InputOption; | |
use Symfony\Component\Translation\Loader\LoaderInterface; | |
use Symfony\Component\Finder\Finder; |
This file contains 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
Add Below Code in your Page Typoscript Configuration. | |
# For Not Displaying page Configuration tab | |
TCEFORM.pages.tx_fed_page_flexform { | |
# You cannot edit the Page Configuration field now: | |
disabled = 1 | |
} | |
TCEFORM.pages.tx_fed_page_flexform_sub { | |
# You cannot edit the Page Page Configuration - subpages field now: | |
disabled = 1 |
This file contains 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
Show hidden characters
{ | |
"presets": [ | |
"react", | |
"stage-2", | |
[ | |
"env", | |
{ | |
"targets": { | |
"browsers": [ | |
"last 2 versions", |
This file contains 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
// Adapted code from https://github.com/flepretre/use-redux | |
import { useContext, useState, useEffect, useCallback } from 'react'; | |
import { ReactReduxContext } from 'react-redux'; | |
import { bindActionCreators, ActionCreator } from 'redux'; | |
export function useRedux() { | |
const { store } = useContext(ReactReduxContext); | |
const { getState, dispatch, subscribe } = store; | |
const reduxState = getState(); |
This file contains 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 { | |
formatDistance, | |
isAfter, | |
isBefore, | |
endOfDay, | |
startOfDay, | |
isSameDay, | |
isSameSecond, | |
isSameMinute, | |
isSameHour, |
This file contains 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
angular.module('qAllSettled', []).config(function($provide) { | |
$provide.decorator('$q', function($delegate) { | |
var $q = $delegate; | |
$q.allSettled = function(promises) { | |
return $q.all(promises.map(function(promise) { | |
return promise.then(function(value) { | |
return { state: 'fulfilled', value: value }; | |
}, function(reason) { | |
return { state: 'rejected', reason: reason }; | |
}); |
This file contains 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
// Event Delegation with Plain Javascript | |
// from Adam Beres-Deak | |
// http://bdadam.com/blog/plain-javascript-event-delegation.html | |
function on(elSelector, eventName, selector, fn) { | |
var element = document.querySelector(elSelector); | |
element.addEventListener(eventName, function(event) { | |
var possibleTargets = element.querySelectorAll(selector); | |
var target = event.target; |
This file contains 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 Analytics from 'analytics' | |
import onRouteChange from '@analytics/router-utils' | |
const persistPageViewsPlugin = { | |
name: 'persist-page-data-plugin', | |
page: ({ payload }) => { | |
const { properties } = payload | |
const pageView = { | |
path: properties.path, | |
title: properties.title, |
OlderNewer