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, { cloneElement, Component, Children } from 'react' | |
import { connect } from 'react-redux' | |
import omit from 'lodash/omit' | |
class App extends Component { | |
render() { | |
const { props } = this | |
const noform = omit(props, 'form') | |
return( | |
<div className="main"> |
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 express from 'express' | |
import routes from './routes' | |
import bootstrap from './bootstrap' | |
const app = express() | |
bootstrap(app) | |
app.listen(3000, () => { | |
console.log('listening to port 3000') |
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
<template> | |
<div class="regions container"> | |
<div v-if="regions.length == 0" class="regions-group text-center"> | |
<div class="loader-container"> | |
<div class="loader"> | |
<div class="ball-beat"> | |
<div></div> | |
<div></div> | |
<div></div> | |
</div> |
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 } from 'react' | |
export default class ShareThumbnail extends Component { | |
preloader(image) { | |
let { props } = this | |
let { src } = props | |
let loader = document.querySelector('.lazy-loader') | |
if( image !== null ) { | |
if( src ) { | |
image.style.display = 'none' |
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 createMutationTypes = (opts) => { | |
opts = opts || {}; | |
let separator = opts.separator || '_' | |
if (typeof opts === 'string') { | |
opts = {prefix: opts} | |
} | |
const defineType = (obj, prefix, n, v) => { | |
v = v || [].concat.apply([], [prefix, n]) |
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 axios from 'axios' | |
import authTypes from './mutation-types' | |
import loadingTypes from '~/store/modules/loader/types' | |
const types = authTypes(true) | |
const loading = loadingTypes() | |
export default { | |
Logout({ commit }) { |
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 Illuminate\Support\HtmlString; | |
if (! function_exists('react_assets')) { | |
function react_assets($path, $manifestDirectory = '') { | |
$manifestPath = public_path('assets-manifest.json'); | |
$files = array_reverse(json_decode(file_get_contents($manifestPath), true)); |
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
{ | |
"app.js": "http://localhost:3000/static/js/app.chunk.js", | |
"app.js.map": "http://localhost:3000/static/js/app.chunk.js.map", | |
"runtime-app.js": "http://localhost:3000/static/js/runtime-app.js", | |
"runtime-app.js.map": "http://localhost:3000/static/js/runtime-app.js.map", | |
"vendor.js": "http://localhost:3000/static/js/vendor.chunk.js", | |
"vendor.js.map": "http://localhost:3000/static/js/vendor.chunk.js.map" | |
} |
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 React; | |
class ReactBladeDirective { | |
/** | |
* Manifest file to read | |
*/ | |
protected $manifest_files = ''; | |
/** | |
* CRA generated assets | |
*/ |
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, Fragment } from "react"; | |
type Props = { | |
multiplier: number, | |
setTotal: (total: number) => void, | |
}; | |
type State = { | |
isVisible: boolean, | |
entries: number[] | null, |
OlderNewer