mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Change file name lib on example keep the same format (#3227)
Change file name format on folder lib like /examples/with-apollo and /examples/with-apollo-and-redux
This commit is contained in:
parent
ba740460c8
commit
28767c06d1
|
@ -3,7 +3,7 @@ import cookie from 'cookie'
|
||||||
import PropTypes from 'prop-types'
|
import PropTypes from 'prop-types'
|
||||||
import { ApolloProvider, getDataFromTree } from 'react-apollo'
|
import { ApolloProvider, getDataFromTree } from 'react-apollo'
|
||||||
|
|
||||||
import initApollo from './init-apollo'
|
import initApollo from './initApollo'
|
||||||
|
|
||||||
function parseCookies (ctx = {}, options = {}) {
|
function parseCookies (ctx = {}, options = {}) {
|
||||||
return cookie.parse(
|
return cookie.parse(
|
|
@ -15,9 +15,9 @@
|
||||||
"isomorphic-fetch": "^2.2.1",
|
"isomorphic-fetch": "^2.2.1",
|
||||||
"next": "latest",
|
"next": "latest",
|
||||||
"prop-types": "^15.5.10",
|
"prop-types": "^15.5.10",
|
||||||
"react": "^15.5.4",
|
"react": "^16.0.0",
|
||||||
"react-apollo": "^1.1.3",
|
"react-apollo": "^1.1.3",
|
||||||
"react-dom": "^15.5.4"
|
"react-dom": "^16.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"ava": "^0.19.1",
|
"ava": "^0.19.1",
|
||||||
|
|
|
@ -4,9 +4,9 @@ import cookie from 'cookie'
|
||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
import gql from 'graphql-tag'
|
import gql from 'graphql-tag'
|
||||||
|
|
||||||
import withData from '../lib/with-data'
|
import withData from '../lib/withData'
|
||||||
import redirect from '../lib/redirect'
|
import redirect from '../lib/redirect'
|
||||||
import checkLoggedIn from '../lib/check-logged-in'
|
import checkLoggedIn from '../lib/checkLoggedIn'
|
||||||
|
|
||||||
class CreateAccount extends React.Component {
|
class CreateAccount extends React.Component {
|
||||||
static async getInitialProps (context, apolloClient) {
|
static async getInitialProps (context, apolloClient) {
|
||||||
|
|
|
@ -2,9 +2,9 @@ import React from 'react'
|
||||||
import cookie from 'cookie'
|
import cookie from 'cookie'
|
||||||
import { withApollo, compose } from 'react-apollo'
|
import { withApollo, compose } from 'react-apollo'
|
||||||
|
|
||||||
import withData from '../lib/with-data'
|
import withData from '../lib/withData'
|
||||||
import redirect from '../lib/redirect'
|
import redirect from '../lib/redirect'
|
||||||
import checkLoggedIn from '../lib/check-logged-in'
|
import checkLoggedIn from '../lib/checkLoggedIn'
|
||||||
|
|
||||||
class Index extends React.Component {
|
class Index extends React.Component {
|
||||||
static async getInitialProps (context, apolloClient) {
|
static async getInitialProps (context, apolloClient) {
|
||||||
|
|
|
@ -4,9 +4,9 @@ import cookie from 'cookie'
|
||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
import gql from 'graphql-tag'
|
import gql from 'graphql-tag'
|
||||||
|
|
||||||
import withData from '../lib/with-data'
|
import withData from '../lib/withData'
|
||||||
import redirect from '../lib/redirect'
|
import redirect from '../lib/redirect'
|
||||||
import checkLoggedIn from '../lib/check-logged-in'
|
import checkLoggedIn from '../lib/checkLoggedIn'
|
||||||
|
|
||||||
class Signin extends React.Component {
|
class Signin extends React.Component {
|
||||||
static async getInitialProps (context, apolloClient) {
|
static async getInitialProps (context, apolloClient) {
|
||||||
|
|
Loading…
Reference in a new issue