language stringclasses 1
value | owner stringlengths 2 15 | repo stringlengths 2 21 | sha stringlengths 45 45 | message stringlengths 7 36.3k | path stringlengths 1 199 | patch stringlengths 15 102k | is_multipart bool 2
classes |
|---|---|---|---|---|---|---|---|
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-ant-design-less/pages/index.js | @@ -1,4 +1,12 @@
-import { Form, Select, InputNumber, DatePicker, Switch, Slider, Button } from 'antd'
+import {
+ Form,
+ Select,
+ InputNumber,
+ DatePicker,
+ Switch,
+ Slider,
+ Button
+} from 'antd'
const FormItem = Form.Item
const Option = Select.Option
@@ -11,35 +19,37 @@ export default () => (
... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-ant-design/next.config.js | @@ -3,7 +3,7 @@ const withCss = require('@zeit/next-css')
// fix: prevents error when .css files are required by node
if (typeof require !== 'undefined') {
- require.extensions['.css'] = (file) => {}
+ require.extensions['.css'] = file => {}
}
module.exports = withCss() | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-ant-design/pages/index.js | @@ -1,4 +1,12 @@
-import { Form, Select, InputNumber, DatePicker, Switch, Slider, Button } from 'antd'
+import {
+ Form,
+ Select,
+ InputNumber,
+ DatePicker,
+ Switch,
+ Slider,
+ Button
+} from 'antd'
const FormItem = Form.Item
const Option = Select.Option
@@ -11,35 +19,37 @@ export default () => (
... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-antd-mobile/components/Layout.js | @@ -26,8 +26,6 @@ export default withRouter(({ router, children, title }) => (
position: relative;
}
`}</style>
- <WingBlank>
- {children}
- </WingBlank>
+ <WingBlank>{children}</WingBlank>
</div>
)) | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-antd-mobile/next.config.js | @@ -3,7 +3,7 @@ const withCSS = require('@zeit/next-css')
// fix: prevents error when .css files are required by node
if (typeof require !== 'undefined') {
// eslint-disable-next-line
- require.extensions['.css'] = (file) => {}
+ require.extensions['.css'] = file => {}
}
module.exports = withCSS() | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-antd-mobile/pages/_app.js | @@ -8,11 +8,15 @@ export default class CustomApp extends App {
return (
<Container>
<Head>
- <meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no' />
+ <meta
+ name='viewport'
+ content='width=... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-aphrodite/pages/_document.js | @@ -27,7 +27,10 @@ export default class MyDocument extends Document {
return (
<html>
<Head>
- <style data-aphrodite dangerouslySetInnerHTML={{ __html: this.props.css.content }} />
+ <style
+ data-aphrodite
+ dangerouslySetInnerHTML={{ __html: this.props.css.... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-apollo-and-redux-saga/components/App.js | @@ -3,14 +3,16 @@ export default ({ children }) => (
{children}
<style jsx global>{`
* {
- font-family: Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, serif;
+ font-family: Menlo, Monaco, 'Lucida Console', 'Lib... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-apollo-and-redux-saga/components/ErrorMessage.js | @@ -1,4 +1,4 @@
-export default ({message}) => (
+export default ({ message }) => (
<aside>
{message}
<style jsx>{` | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-apollo-and-redux-saga/components/PageCount.js | @@ -12,7 +12,7 @@ class PageCount extends Component {
this.props.dispatch(countDecrease())
}
- render () {
+ render() {
const { count } = this.props
return (
<div> | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-apollo-and-redux-saga/components/Placeholder.js | @@ -1,6 +1,6 @@
import React from 'react'
-export default ({placeholder}) => (
+export default ({ placeholder }) => (
<React.Fragment>
<h2>JSON:</h2>
{placeholder.data && ( | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-apollo-and-redux-saga/components/Post.js | @@ -14,7 +14,11 @@ function Post ({ id, data: { error, Post } }) {
<section>
<div key={Post.id}>
<h1>{Post.title}</h1>
- <p>ID: {Post.id}<br />URL: {Post.url}</p>
+ <p>
+ ID: {Post.id}
+ <br />
+ URL: {Post.url}
+ </p>
<sp... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-apollo-and-redux-saga/components/PostList.js | @@ -32,7 +32,7 @@ function PostList ({
<span>{index + 1}. </span>
<a
href={`/blog/${post.id}`}
- onClick={(event) => handleClick(event, post.id)}
+ onClick={event => handleClick(event, post.id)}
>
... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-apollo-and-redux-saga/components/PostVoteButton.js | @@ -1,4 +1,4 @@
-export default ({id, votes, onClickHandler, className}) => (
+export default ({ id, votes, onClickHandler, className }) => (
<button className={className} onClick={() => onClickHandler()}>
<style jsx>{`
button { | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-apollo-and-redux-saga/components/PostVoteCount.js | @@ -1,4 +1,4 @@
-export default ({votes}) => (
+export default ({ votes }) => (
<span>
{votes}
<style jsx>{` | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-apollo-and-redux-saga/lib/withApollo.js | @@ -64,10 +64,9 @@ export default ComposedComponent => {
const state = {}
// Extract query data from the Apollo store
- serverState = Object.assign(
- state,
- { apollo: { data: apollo.cache.extract() } }
- )
+ serverState = Object.assign(state, {
+ ap... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-apollo-and-redux-saga/pages/about.js | @@ -7,16 +7,36 @@ export default () => (
<article>
<h1>The Idea Behind This Example</h1>
<p>
- <a href='https://www.apollographql.com/client/'>Apollo</a> is a GraphQL client that allows you to easily query the exact data you need from a GraphQL server. In addition to fetching and mutating data... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-apollo-and-redux-saga/pages/blog/index.js | @@ -26,6 +26,4 @@ class BlogIndex extends React.Component {
}
}
-export default withReduxSaga(
- withApollo(BlogIndex)
-)
+export default withReduxSaga(withApollo(BlogIndex)) | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-apollo-and-redux-saga/routes.js | @@ -2,7 +2,7 @@
* Parameterized Routing with next-route
*
* Benefits: Less code, and easily handles complex url structures
-**/
+ **/
const routes = (module.exports = require('next-routes')())
routes.add('blog/entry', '/blog/:id') | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-apollo-and-redux-saga/server.js | @@ -13,19 +13,18 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-const {createServer} = require('http')
+const { createServer } = require('http')
const next = require('next')
const port = parseInt(process.env.PORT, 10) || 3000
const dev = process.env.NODE_ENV !== 'producti... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-apollo-and-redux/components/AddCount.js | @@ -1,4 +1,4 @@
-import React, {Component} from 'react'
+import React, { Component } from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import { addCount } from '../lib/store'
@@ -12,7 +12,9 @@ class AddCount extends Component {
const { count } = this.props
return... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-apollo-and-redux/components/Clock.js | @@ -6,7 +6,7 @@ export default ({ lastUpdate, light }) => {
div {
padding: 15px;
display: inline-block;
- color: #82FA58;
+ color: #82fa58;
font: 50px menlo, monaco, monospace;
background-color: #000;
}
@@ -18,6 +18,7 @@ export default ({ l... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-apollo-and-redux/lib/store.js | @@ -17,28 +17,39 @@ export const actionTypes = {
export const reducer = (state = exampleInitialState, action) => {
switch (action.type) {
case actionTypes.TICK:
- return Object.assign({}, state, { lastUpdate: action.ts, light: !!action.light })
+ return Object.assign({}, state, {
+ lastUpdate:... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-apollo-and-redux/pages/index.js | @@ -50,6 +50,4 @@ const mapDispatchToProps = dispatch => {
}
}
-export default withApollo(
- withRedux(initStore, null, mapDispatchToProps)(Index)
-)
+export default withApollo(withRedux(initStore, null, mapDispatchToProps)(Index)) | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-apollo-auth/components/RegisterBox.js | @@ -4,57 +4,87 @@ import cookie from 'cookie'
import redirect from '../lib/redirect'
const CREATE_USER = gql`
- mutation Create($name: String!, $email: String!, $password: String!) {
- createUser(name: $name, authProvider: { email: { email: $email, password: $password }}) {
- id
- }
- ... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-apollo-auth/components/SigninBox.js | @@ -4,49 +4,70 @@ import cookie from 'cookie'
import redirect from '../lib/redirect'
const SIGN_IN = gql`
- mutation Signin($email: String!, $password: String!) {
- signinUser(email: { email: $email, password: $password}) {
- token
- }
+ mutation Signin($email: String!, $password: Strin... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-apollo-auth/lib/checkLoggedIn.js | @@ -1,19 +1,21 @@
import gql from 'graphql-tag'
-export default apolloClient => (
- apolloClient.query({
- query: gql`
- query getUser {
- user {
- id
- name
+export default apolloClient =>
+ apolloClient
+ .query({
+ query: gql`
+ query getUser {
+ user {
+... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-apollo-auth/lib/withApollo.js | @@ -7,10 +7,7 @@ import Head from 'next/head'
import initApollo from './initApollo'
function parseCookies (req, options = {}) {
- return cookie.parse(
- req ? req.headers.cookie || '' : document.cookie,
- options
- )
+ return cookie.parse(req ? req.headers.cookie || '' : document.cookie, options)
}
exp... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-apollo-auth/pages/_app.js | @@ -6,11 +6,13 @@ import withApollo from '../lib/withApollo'
class MyApp extends App {
render () {
const { Component, pageProps, apolloClient } = this.props
- return <Container>
- <ApolloProvider client={apolloClient}>
- <Component {...pageProps} />
- </ApolloProvider>
- </Container>
+ ... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-apollo-auth/pages/create-account.js | @@ -25,8 +25,11 @@ export default class CreateAccount extends React.Component {
{/* RegisterBox handles all register logic. */}
<RegisterBox />
<hr />
- Already have an account? <Link prefetch href='/signin'><a>Sign in</a></Link>
+ Already have an account?{' '}
+ <Link pr... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-apollo-auth/pages/index.js | @@ -42,4 +42,4 @@ export default class Index extends React.Component {
</ApolloConsumer>
)
}
-};
+} | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-apollo-auth/pages/signin.js | @@ -25,8 +25,11 @@ export default class Signin extends React.Component {
{/* SigninBox handles all login logic. */}
<SigninBox />
<hr />
- New? <Link prefetch href='/create-account'><a>Create account</a></Link>
+ New?{' '}
+ <Link prefetch href='/create-account'>
+ ... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-apollo/lib/with-apollo-client.js | @@ -3,7 +3,7 @@ import initApollo from './init-apollo'
import Head from 'next/head'
import { getDataFromTree } from 'react-apollo'
-export default (App) => {
+export default App => {
return class Apollo extends React.Component {
static displayName = 'withApollo(App)'
static async getInitialProps (ctx) ... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-apollo/pages/_app.js | @@ -1,16 +1,18 @@
-import App, {Container} from 'next/app'
+import App, { Container } from 'next/app'
import React from 'react'
import withApolloClient from '../lib/with-apollo-client'
import { ApolloProvider } from 'react-apollo'
class MyApp extends App {
render () {
- const {Component, pageProps, apolloCl... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-apollo/pages/about.js | @@ -7,29 +7,31 @@ export default () => (
<article>
<h1>The Idea Behind This Example</h1>
<p>
- <a href='https://www.apollographql.com/client/'>Apollo</a> is a GraphQL client that
- allows you to easily query the exact data you need from a GraphQL
- server. In addition to fetching... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-app-layout/pages/_app.js | @@ -1,22 +1,22 @@
import React from 'react'
-import App, {Container} from 'next/app'
+import App, { Container } from 'next/app'
class Layout extends React.Component {
render () {
- const {children} = this.props
- return <div className='layout'>
- {children}
- </div>
+ const { children } = this.p... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-asset-imports/pages/index.js | @@ -1,4 +1,3 @@
import avatar from '../static/logo.png'
-export default () =>
- <img src={avatar} />
+export default () => <img src={avatar} /> | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-babel-macros/pages/_document.js | @@ -1,12 +1,12 @@
import React from 'react'
-import Document, {Head, Main, NextScript} from 'next/document'
+import Document, { Head, Main, NextScript } from 'next/document'
export default class MyDocument extends Document {
render () {
return (
<html>
<Head>
- <style dangerouslySet... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-babel-macros/pages/index.js | @@ -10,11 +10,9 @@ export default WhoAmI
function WhoAmI () {
return (
- <div style={{display: 'flex', justifyContent: 'center'}}>
+ <div style={{ display: 'flex', justifyContent: 'center' }}>
<h1>
- <pre>
- whoami: {whoami}
- </pre>
+ <pre>whoami: {whoami}</pre>
... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-carbon-components/next.config.js | @@ -1,21 +1,23 @@
const withSass = require('@zeit/next-sass')
const withImages = require('next-images')
-module.exports = withImages(withSass({
- webpack (config) {
- config.module.rules.push({
- test: /\.(png|svg|eot|otf|ttf|woff|woff2)$/,
- use: {
- loader: 'url-loader',
- options: {
-... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-carbon-components/pages/_document.js | @@ -5,10 +5,7 @@ export default class MyDocument extends Document {
return (
<html>
<Head>
- <link
- rel='stylesheet'
- href='/_next/static/style.css'
- />
+ <link rel='stylesheet' href='/_next/static/style.css' />
</Head>
<body>
... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-cerebral/components/Clock.js | @@ -1,11 +1,11 @@
-export default (props) => {
+export default props => {
return (
<div className={props.light ? 'light' : ''}>
{format(new Date(props.lastUpdate))}
<style jsx>{`
div {
padding: 15px;
- color: #82FA58;
+ color: #82fa58;
display: inli... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-cerebral/components/Page.js | @@ -4,30 +4,33 @@ import { connect } from '@cerebral/react'
import { state, signal } from 'cerebral/tags'
import Clock from './Clock'
-export default connect({
- lastUpdate: state`clock.lastUpdate`,
- light: state`clock.light`,
- mounted: signal`clock.mounted`,
- unMounted: signal`clock.unMounted`
-},
-class Pa... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-cerebral/modules/clock/actions.js | @@ -1,7 +1,7 @@
-export function startTimer ({clock}) {
+export function startTimer ({ clock }) {
clock.start('clock.secondTicked')
}
-export function stopTimer ({clock}) {
+export function stopTimer ({ clock }) {
clock.stop()
} | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-cerebral/modules/clock/index.js | @@ -1,5 +1,4 @@
-
-import {mounted, unMounted, secondTicked} from './signals'
+import { mounted, unMounted, secondTicked } from './signals'
import provider from './provider'
export default { | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-cerebral/modules/clock/provider.js | @@ -2,15 +2,15 @@
const SECOND = 1000
let timer = null
-export default (context) => {
+export default context => {
context.clock = {
start (signalPath) {
const signal = context.controller.getSignal(signalPath)
function tick () {
const now = Date.now()
- signal({now})
+ ... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-cerebral/modules/clock/signals.js | @@ -1,10 +1,7 @@
-import {set} from 'cerebral/operators'
-import {state, props} from 'cerebral/tags'
-import {startTimer, stopTimer} from './actions'
+import { set } from 'cerebral/operators'
+import { state, props } from 'cerebral/tags'
+import { startTimer, stopTimer } from './actions'
-export const mounted = [
- ... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-cerebral/pages/index.js | @@ -1,20 +1,20 @@
import React from 'react'
-import {Controller, UniversalController} from 'cerebral'
+import { Controller, UniversalController } from 'cerebral'
import Devtools from 'cerebral/devtools'
import { Container } from '@cerebral/react'
import Page from '../components/Page'
import clock from '../modules/... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-cerebral/pages/other.js | @@ -1,20 +1,20 @@
import React from 'react'
-import {Controller, UniversalController} from 'cerebral'
+import { Controller, UniversalController } from 'cerebral'
import Devtools from 'cerebral/devtools'
import { Container } from '@cerebral/react'
import Page from '../components/Page'
import clock from '../modules/... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-configured-preset-env/pages/index.js | @@ -1,4 +1,4 @@
-import {Component} from 'react'
+import { Component } from 'react'
function * generatorMethod () {
yield 1 | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-custom-babel-config/pages/index.js | @@ -20,21 +20,21 @@ export default class MyLuckNo extends React.Component {
const { randomNo } = this.state
if (randomNo === null) {
- return (<p>Please wait..</p>)
+ return <p>Please wait..</p>
}
// This is an experimental JavaScript feature where we can get with
// using babel-p... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-custom-reverse-proxy/pages/index.js | @@ -29,16 +29,15 @@ export default class extends React.Component {
return (
<content>
<p>
- /api/{this.props.queryString} routed to https://swapi.co/api/{this.props.queryString}
+ /api/{this.props.queryString} routed to https://swapi.co/api/
+ {this.props.queryString}
... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-custom-reverse-proxy/server.js | @@ -5,7 +5,7 @@ const next = require('next')
const devProxy = {
'/api': {
target: 'https://swapi.co/api/',
- pathRewrite: {'^/api': '/'},
+ pathRewrite: { '^/api': '/' },
changeOrigin: true
}
} | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-cxs/pages/_document.js | @@ -12,7 +12,10 @@ export default class MyDocument extends Document {
return (
<html>
<Head>
- <style id='cxs-style' dangerouslySetInnerHTML={{ __html: this.props.style }} />
+ <style
+ id='cxs-style'
+ dangerouslySetInnerHTML={{ __html: this.props.style }}
+... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-data-prefetch/components/link.js | @@ -5,23 +5,17 @@ import { execOnce, warn } from 'next/dist/lib/utils'
import exact from 'prop-types-exact'
import { format, resolve, parse } from 'url'
-export const prefetch = async (href) => {
+export const prefetch = async href => {
// if we're running server side do nothing
if (typeof window === 'undefi... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-data-prefetch/pages/index.js | @@ -16,8 +16,8 @@ export default () => (
</Link>
</li>
<li>
- <Link href='/article?id=3' >
- <a onMouseOver={e => prefetch('/article?id=3')} >Article 3</a>
+ <Link href='/article?id=3'>
+ <a onMouseOver={e => prefetch('/article?id=3')}>Article 3</a>
</Link... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-docker/next.config.js | @@ -1,9 +1,11 @@
// next.config.js
module.exports = {
- serverRuntimeConfig: { // Will only be available on the server side
+ serverRuntimeConfig: {
+ // Will only be available on the server side
mySecret: 'secret'
},
- publicRuntimeConfig: { // Will be available on both server and client
+ publicRunti... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-docker/pages/index.js | @@ -11,8 +11,6 @@ export default class extends React.Component {
}
render () {
- return <div>
- The API_URL is {API_URL}
- </div>
+ return <div>The API_URL is {API_URL}</div>
}
} | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-dotenv/next.config.js | @@ -4,7 +4,7 @@ const path = require('path')
const Dotenv = require('dotenv-webpack')
module.exports = {
- webpack: (config) => {
+ webpack: config => {
config.plugins = config.plugins || []
config.plugins = [ | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-dotenv/pages/index.js | @@ -1,3 +1 @@
-export default () => (
- <div>{ process.env.TEST }</div>
-)
+export default () => <div>{process.env.TEST}</div> | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-draft-js/pages/index.js | @@ -34,7 +34,7 @@ export default class App extends React.Component {
}
this.focus = () => this.editor.focus()
- this.onChange = (editorState) => this.setState({editorState})
+ this.onChange = editorState => this.setState({ editorState })
}
onClickEditor = () => {
@@ -60,48 +60,67 @@ export def... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-dynamic-app-layout/layouts/BlueLayout.js | @@ -1,5 +1,3 @@
export default ({ children }) => {
- return <main style={{ border: '4px dashed blue' }}>
- {children}
- </main>
+ return <main style={{ border: '4px dashed blue' }}>{children}</main>
} | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-dynamic-app-layout/layouts/GreenLayout.js | @@ -1,5 +1,3 @@
export default ({ children }) => {
- return <main style={{ border: '4px dashed green' }}>
- {children}
- </main>
+ return <main style={{ border: '4px dashed green' }}>{children}</main>
} | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-dynamic-app-layout/layouts/RedLayout.js | @@ -1,5 +1,3 @@
export default ({ children }) => {
- return <main style={{ border: '4px dashed red' }}>
- {children}
- </main>
+ return <main style={{ border: '4px dashed red' }}>{children}</main>
} | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-dynamic-app-layout/pages/_app.js | @@ -4,10 +4,12 @@ import App, { Container } from 'next/app'
export default class MyApp extends App {
render () {
const { Component, pageProps } = this.props
- return <Container>
- <Component.Layout>
- <Component {...pageProps} />
- </Component.Layout>
- </Container>
+ return (
+ ... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-dynamic-app-layout/pages/green.js | @@ -4,10 +4,18 @@ import Link from 'next/link'
import GreenLayout from '../layouts/GreenLayout'
const GreenPage = () => {
- return <p>
- This is the <strong style={{ color: 'green' }}>Green</strong> page, it's borders are green<br /><br />
- Go back to the <Link href='/'><a style={{ color: 'blue' }}>Blue Pag... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-dynamic-app-layout/pages/index.js | @@ -4,11 +4,24 @@ import Link from 'next/link'
import BlueLayout from '../layouts/BlueLayout'
const BluePage = () => {
- return <p>
- This is the <strong style={{ color: 'blue' }}>Blue</strong> page, it's borders are blue<br /><br />
- Go to the <Link href='/red'><a style={{ color: 'red' }}>Red Page</a></Lin... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-dynamic-app-layout/pages/red.js | @@ -4,10 +4,18 @@ import Link from 'next/link'
import RedLayout from '../layouts/RedLayout'
const RedPage = () => {
- return <p>
- This is the <strong style={{ color: 'red' }} >Red</strong> page, it's borders are red<br /><br />
- Go back to the <Link href='/'><a>Blue Page</a></Link>
- </p>
+ return (
+ ... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-dynamic-import/components/Header.js | @@ -3,11 +3,11 @@ import Link from 'next/link'
export default () => (
<div>
<Link href='/'>
- <a style={styles.a} >Home</a>
+ <a style={styles.a}>Home</a>
</Link>
<Link href='/about'>
- <a style={styles.a} >About</a>
+ <a style={styles.a}>About</a>
</Link>
</div>
) | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-dynamic-import/components/hello1.js | @@ -1,3 +1 @@
-export default () => (
- <p>Hello World 1 (imported dynamiclly) </p>
-)
+export default () => <p>Hello World 1 (imported dynamiclly) </p> | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-dynamic-import/components/hello2.js | @@ -1,3 +1 @@
-export default () => (
- <p>Hello World 2 (imported dynamiclly) </p>
-)
+export default () => <p>Hello World 2 (imported dynamiclly) </p> | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-dynamic-import/components/hello3.js | @@ -1,3 +1 @@
-export default () => (
- <p>Hello World 3 (imported dynamiclly) </p>
-)
+export default () => <p>Hello World 3 (imported dynamiclly) </p> | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-dynamic-import/components/hello4.js | @@ -1,3 +1 @@
-export default () => (
- <p>Hello World 4 (imported dynamiclly) </p>
-)
+export default () => <p>Hello World 4 (imported dynamiclly) </p> | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-dynamic-import/components/hello5.js | @@ -1,3 +1 @@
-export default () => (
- <p>Hello World 5 (imported dynamiclly) </p>
-)
+export default () => <p>Hello World 5 (imported dynamiclly) </p> | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-dynamic-import/components/hello6.js | @@ -1,3 +1 @@
-export default () => (
- <p>Hello World 6 (imported dynamiclly) </p>
-)
+export default () => <p>Hello World 6 (imported dynamiclly) </p> | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-dynamic-import/components/hello7.js | @@ -1,3 +1 @@
-export default () => (
- <p>Hello World 7 (imported dynamiclly) </p>
-)
+export default () => <p>Hello World 7 (imported dynamiclly) </p> | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-dynamic-import/pages/index.js | @@ -8,12 +8,12 @@ const DynamicComponent1 = dynamic(import('../components/hello1'))
const DynamicComponent2WithCustomLoading = dynamic({
loader: () => import('../components/hello2'),
- loading: () => (<p>Loading caused by client page transition ...</p>)
+ loading: () => <p>Loading caused by client page transiti... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-electron/renderer/pages/start.js | @@ -36,9 +36,7 @@ export default class extends Component {
<div>
<h1>Hello Electron!</h1>
- {this.state.message &&
- <p>{this.state.message}</p>
- }
+ {this.state.message && <p>{this.state.message}</p>}
<form onSubmit={this.handleSubmit}>
<input type... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-emotion-fiber/features/home.component.js | @@ -1,4 +1,4 @@
-import {Basic, Combined, Animated, bounce} from '../shared/styles'
+import { Basic, Combined, Animated, bounce } from '../shared/styles'
const Home = () => (
<div>
<Basic>Cool Styles</Basic> | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-emotion-fiber/hoc/withEmotion.component.js | @@ -14,7 +14,7 @@ const withEmotion = ComposedComponent => {
render () {
return <ComposedComponent />
}
- };
+ }
return HOC
} | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-emotion-fiber/shared/styles.js | @@ -12,24 +12,24 @@ html, body {
`
export const basicStyles = css`
-background-color: white;
-color: cornflowerblue;
-border: 1px solid lightgreen;
-border-right: none;
-border-bottom: none;
-box-shadow: 5px 5px 0 0 lightgreen, 10px 10px 0 0 lightyellow;
-transition: all 0.1s linear;
-margin: 3rem 0;
-padding: 1rem... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-external-styled-jsx-sass/pages/index.js | @@ -1,7 +1,8 @@
import styles from '../styles/style.scss'
-export default () =>
+export default () => (
<div>
Hello World!
<style jsx>{styles}</style>
</div>
+) | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-fela/FelaProvider.js | @@ -10,18 +10,14 @@ const clientRenderer = getFelaRenderer()
export default class FelaProvider extends Component {
static contextTypes = {
renderer: PropTypes.object
- };
+ }
- render () {
+ render() {
if (this.context.renderer) {
return this.props.children
}
const renderer = this... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-fela/getFelaRenderer.js | @@ -3,8 +3,6 @@ import webPreset from 'fela-preset-web'
export default function getRenderer () {
return createRenderer({
- plugins: [
- ...webPreset
- ]
+ plugins: [...webPreset]
})
} | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-fela/pages/_document.js | @@ -38,9 +38,7 @@ export default class MyDocument extends Document {
return (
<html>
- <Head>
- {styleNodes}
- </Head>
+ <Head>{styleNodes}</Head>
<body>
<Main />
<NextScript /> | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-firebase-authentication/pages/index.js | @@ -6,7 +6,7 @@ import 'isomorphic-unfetch'
import clientCredentials from '../credentials/client'
export default class Index extends Component {
- static async getInitialProps ({req, query}) {
+ static async getInitialProps ({ req, query }) {
const user = req && req.session ? req.session.decodedToken : null
... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-firebase-authentication/server.js | @@ -10,55 +10,61 @@ const dev = process.env.NODE_ENV !== 'production'
const app = next({ dev })
const handle = app.getRequestHandler()
-const firebase = admin.initializeApp({
- credential: admin.credential.cert(require('./credentials/server')),
- databaseURL: '' // TODO database URL goes here
-}, 'server')
+const... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-flow/pages/_app.js | @@ -1,4 +1,4 @@
-import App, {Container} from 'next/app'
+import App, { Container } from 'next/app'
import Link from 'next/link'
import React from 'react'
@@ -10,26 +10,32 @@ export default class MyApp extends App {
pageProps = await Component.getInitialProps(ctx)
}
- return {pageProps}
+ return... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-freactal/components/app.js | @@ -2,7 +2,7 @@ import React from 'react'
import { fetchUserRepos } from '../githubApi'
import provideStateFactory from '../provideState'
-export default (Page) => {
+export default Page => {
const App = ({ serverState }) => {
const withState = provideStateFactory(serverState)
const PageWithState = wit... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-freactal/githubApi.js | @@ -4,5 +4,6 @@ import 'isomorphic-unfetch'
const API_BASE_URL = 'https://api.github.com'
export const fetchUserRepos = (username, page = 1) =>
- fetch(`${API_BASE_URL}/users/${username}/repos?page=${page}`)
- .then(response => response.json())
+ fetch(`${API_BASE_URL}/users/${username}/repos?page=${page}`).th... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-freactal/pages/index.js | @@ -2,45 +2,49 @@ import React from 'react'
import { injectState } from 'freactal'
import app from '../components/app'
-const Index = injectState(({ state: { ajaxStatus, githubReposList }, effects }) => {
- const fetchMore = () =>
- effects.fetchGithubReposList(githubReposList.username, githubReposList.page + 1... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-freactal/provideState.js | @@ -1,26 +1,28 @@
import { provideState, update } from 'freactal'
import { fetchUserRepos } from './githubApi'
-export default serverState => provideState({
- initialState: () => ({
- ...serverState,
- ajaxStatus: false
- }),
+export default serverState =>
+ provideState({
+ initialState: () => ({
+ ... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-glamorous/pages/index.js | @@ -10,7 +10,14 @@ if (typeof window !== 'undefined') {
}
export default () => {
- css.global('html, body', { padding: '3rem 1rem', margin: 0, background: 'papayawhip', minHeight: '100%', fontFamily: 'Helvetica, Arial, sans-serif', fontSize: '24px' })
+ css.global('html, body', {
+ padding: '3rem 1rem',
+ m... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-google-analytics/pages/_document.js | @@ -28,7 +28,8 @@ export default class extends Document {
gtag('js', new Date());
gtag('config', '${GA_TRACKING_ID}');
- `}}
+ `
+ }}
/>
</Head>
<body> | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-immutable-redux-wrapper/components/AddCount.js | @@ -1,5 +1,5 @@
/* eslint-disable */
-import React, {Component} from 'react'
+import React, { Component } from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import { addCount } from '../store'
@@ -9,28 +9,33 @@ class AddCount extends Component {
this.props.addCount()
... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-immutable-redux-wrapper/components/Clock.js | @@ -6,7 +6,7 @@ export default ({ lastUpdate, light }) => {
div {
padding: 15px;
display: inline-block;
- color: #82FA58;
+ color: #82fa58;
font: 50px menlo, monaco, monospace;
background-color: #000;
}
@@ -19,6 +19,7 @@ export default ({ l... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-immutable-redux-wrapper/components/Page.js | @@ -13,7 +13,9 @@ export default connect(state => ({
<Clock lastUpdate={lastUpdate} light={light} />
<AddCount />
<nav>
- <Link href={linkTo}><a>Navigate</a></Link>
+ <Link href={linkTo}>
+ <a>Navigate</a>
+ </Link>
</nav>
</div>
) | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-immutable-redux-wrapper/pages/index.js | @@ -21,17 +21,18 @@ class Counter extends React.Component {
}
render () {
- return (
- <Page title='Index Page' linkTo='/other' />
- )
+ return <Page title='Index Page' linkTo='/other' />
}
}
-const mapDispatchToProps = (dispatch) => {
+const mapDispatchToProps = dispatch => {
return {
... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-immutable-redux-wrapper/pages/other.js | @@ -20,17 +20,18 @@ class Counter extends React.Component {
}
render () {
- return (
- <Page title='Other Page' linkTo='/' />
- )
+ return <Page title='Other Page' linkTo='/' />
}
}
-const mapDispatchToProps = (dispatch) => {
+const mapDispatchToProps = dispatch => {
return {
addCoun... | true |
Other | vercel | next.js | 9c4eefcdbf4058b65c8b88fe98387166acad127b.json | Add prettier for examples directory (#5909)
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again | examples/with-immutable-redux-wrapper/store.js | @@ -28,23 +28,31 @@ export const reducer = (state = exampleInitialState, action) => {
count: state.get('count') + 1
})
- default: return state
+ default:
+ return state
}
}
// ACTIONS
-export const serverRenderClock = (isServer) => dispatch => {
+export const serverRenderClock = isSe... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.