I hereby claim:
- I am jaysunsyn on github.
- I am jalalio (https://keybase.io/jalalio) on keybase.
- I have a public key ASB0vIi6qhwg3Phy1DgDxiG4pyI0Shu47agbmiD2WZxjowo
To claim this, I am signing this object:
<link rel="import" href="../../bower_components/polymer/polymer-element.html"> | |
<link rel="import" href="../../bower_components/polymer-redux/polymer-redux.html"> | |
<script> | |
const initialState = { | |
todos: [ | |
{text: 'Buy Veggies'}, | |
{text: 'Buy Fruits'}, | |
{text: 'Buy Pizza'}, | |
], |
<link rel="import" href="../bower_components/polymer/polymer-element.html"> | |
<link rel="import" href="../bower_components/polymer/lib/elements/dom-repeat.html"> | |
<link rel="import" href="redux/redux-mixin.html"> | |
<dom-module id="todo-list"> | |
<template> | |
<ul> | |
<template is="dom-repeat" items="[[todos]]" as="todo"> | |
<li on-click="_remove">[[todo.text]] <span style="color: white">Remove</span></li> |
<script src="../../node_modules/reselect/dist/reselect.js"></script> | |
<script> | |
(() => { | |
const getTodos = (state) => { | |
return state.todo.todos; | |
}; | |
const todos = Reselect.createSelector([getTodos], | |
(todos) => { |
<script> | |
(() => { | |
const add = (todo) => { | |
return { | |
type: 'ADD_TODO', | |
todo: {text: todo}, | |
}; | |
}; | |
const remove = (todo) => { |
<script src="../../node_modules/redux/dist/redux.min.js"></script> | |
<script> | |
(() => { | |
const initialState = { | |
todos: [ | |
{text: 'Buy Veggies'}, | |
{text: 'Buy Fruits'}, | |
{text: 'Buy Pizza'}, | |
], |
<link rel="import" href="../../bower_components/polymer/polymer-element.html"> | |
<link rel="import" href="../../bower_components/polymer-redux/polymer-redux.html"> | |
<link rel="import" href="redux-reducers.html"> | |
<link rel="import" href="redux-selectors.html"> | |
<link rel="import" href="redux-actions.html"> | |
<script> | |
(() => { | |
App = window.App || {}; |
<link rel="import" href="../bower_components/polymer/polymer-element.html"> | |
<link rel="import" href="../bower_components/polymer/lib/elements/dom-repeat.html"> | |
<link rel="import" href="redux/redux-mixin.html"> | |
<dom-module id="todo-list"> | |
<template> | |
<ul> | |
<template is="dom-repeat" items="[[todos]]" as="todo"> | |
<li on-click="_remove">[[todo.text]] <span style="color: white">Remove</span></li> |
<script src="../../node_modules/redux-thunk/dist/redux-thunk.min.js"></script> | |
<script> | |
(() => { | |
const callAPIMiddleware = ({dispatch, getState}) => { | |
return next => action => { | |
const { | |
types, | |
callAPI, | |
shouldCallAPI = () => true, |
exports.host = functions.https.onRequest((req, res) => { | |
const userAgent = req.headers['user-agent'].toLowerCase(); | |
let indexHTML = fs.readFileSync('./hosting/index.html').toString(); | |
const path = req.path ? req.path.split('/') : req.path; | |
const ogPlaceholder = '<meta name="functions-insert-dynamic-og">'; | |
const metaPlaceholder = '<meta name="functions-insert-dynamic-meta">'; | |
const isBot = userAgent.includes('googlebot') || | |
userAgent.includes('yahoou') || | |
userAgent.includes('bingbot') || |
I hereby claim:
To claim this, I am signing this object: