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 {SheetsRegistry} from 'jss'; | |
import {createGenerateClassName} from '@material-ui/core/styles'; | |
import { createMuiTheme } from '@material-ui/core/styles'; | |
const theme = createMuiTheme({ | |
typography: { | |
useNextVariants: true | |
} | |
}); |
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
/* | |
Remember that _document is a SERVER-ONLY page. It will never execute on the client. | |
*/ | |
import React from "react"; | |
import Document, {Head, Main, NextScript} from "next/document"; | |
import JssProvider from "react-jss/lib/JssProvider"; | |
import flush from "styled-jsx/server"; | |
import getPageContext from "../hoc/getPageContext"; | |
const withJssProvider = (Component, pageContext, props) => ( |
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 arr = ["2016-12-09", "2016-12-09", "2016-12-09", "2016-12-09", "2016-12-10"], | |
bucket = {}, | |
data = [], | |
i; | |
for (i = 0; i < arr.length; i++) { | |
if (bucket[arr[i]]) { | |
bucket[arr[i]]++; | |
} else { | |
bucket[arr[i]] = 1; |