cool.
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
const assets = (this.props.posts && this.props.posts.length > 0) | |
? this.props.posts.map(({_id, path, title}) => | |
<AssetTile | |
id={_id} | |
title={title} | |
path={path} | |
key={`asset-${_id}`} | |
size="small" | |
showControls={false} | |
onClick={this.props.onAssetSelect.bind(this, {_id, path, title})} |
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
var express = require('express'); | |
var passport = require('passport'); | |
var passportSaml = require('passport-saml'); | |
var logger = require('morgan'); | |
var bodyParser = require('body-parser'); | |
var fs = require('fs'); | |
var https = require('https'); | |
var app = express(); | |
app.use(logger('common')); |
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
const testArray = [ | |
{ | |
email: 'test@test.com', | |
name: '' | |
}, | |
{ | |
email: 'test@test.com', | |
name: '' | |
}, | |
{ |
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
// AKA yoDawgIHeardYouLikeArrays.js. | |
const flattenArrayLoop = (itemToFlatten, callback) => { | |
if (itemToFlatten instanceof Array) { | |
itemToFlatten.map((nestedItem, nestedItemIndex) => { | |
if (nestedItem instanceof Array) { | |
// This is a nested array, attach this loop to it. | |
flattenArrayLoop(nestedItem, callback); | |
} else { | |
callback(nestedItem); |
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
// XLSX class for creating excel reports. | |
import XLSX from 'xlsx'; | |
export default class Workbook { | |
constructor() { | |
this.SheetNames = []; | |
this.Sheets = {}; | |
this.addSheetName = this.addSheetName.bind(this); |
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 React from 'react'; | |
import styled from 'styled-components'; | |
import Box from 'grommet/components/Box'; | |
export const MobileShow = styled( | |
({ maxWidth, children, ...rest }) => // eslint-disable-line | |
<Box {...rest}>{children}</Box> | |
)` | |
display: none; |
- package name: brand-central
- purpose: Brand Central's front facing application.
- github repo: https://github.com/grommet/brand-central
- package name: brand-central-cms
- purpose: Content storage, editing, API, user session management.
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
/* | |
* I have more visual feedback than technical. My main concern technically is your route changes render a different | |
* view then reload the page. It looks like JS is handling your route changes then it's pushing to the browser | |
* to change the page. I'd have to see your JS to show you where that's happening but if it's a single page | |
* app then Javascript should be handling the page changes not the browser. This generally happens with | |
* how the user handles route changes url replace vs push. | |
* | |
* I would disable your service worker, you dont need that shit. It's too confusing for a beginner, its confusing for me. | |
*/ |
OlderNewer