Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
b41d1776
Commit
b41d1776
authored
Nov 04, 2017
by
Leonardo Quixada
Committed by
Tim Neutkens
Nov 04, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dropped isomorphic-fetch in examples in favor of isomorphic-unfetch. (#3230)
parent
31ba48ad
Show whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
26 additions
and
26 deletions
+26
-26
package.json
examples/data-fetch/package.json
+1
-1
index.js
examples/data-fetch/pages/index.js
+1
-1
preact.js
examples/data-fetch/pages/preact.js
+1
-1
initApollo.js
examples/with-apollo-and-redux/lib/initApollo.js
+1
-1
package.json
examples/with-apollo-and-redux/package.json
+1
-1
init-apollo.js
examples/with-apollo-auth/lib/init-apollo.js
+1
-1
package.json
examples/with-apollo-auth/package.json
+1
-1
initApollo.js
examples/with-apollo/lib/initApollo.js
+1
-1
package.json
examples/with-apollo/package.json
+1
-1
package.json
examples/with-firebase-authentication/package.json
+1
-1
index.js
examples/with-firebase-authentication/pages/index.js
+1
-1
githubApi.js
examples/with-freactal/githubApi.js
+1
-1
package.json
examples/with-freactal/package.json
+1
-1
package.json
examples/with-i18next/package.json
+1
-1
translationHelpers.js
examples/with-i18next/tools/translationHelpers.js
+1
-1
package.json
examples/with-redux-saga/package.json
+1
-1
saga.js
examples/with-redux-saga/saga.js
+1
-1
createRelayEnvironment.js
examples/with-relay-modern/lib/createRelayEnvironment.js
+1
-1
package.json
examples/with-relay-modern/package.json
+1
-1
package.json
examples/with-socket.io/package.json
+1
-1
index.js
examples/with-socket.io/pages/index.js
+1
-1
next.config.js
examples/with-static-export/next.config.js
+1
-1
package.json
examples/with-static-export/package.json
+1
-1
index.js
examples/with-static-export/pages/index.js
+1
-1
post.js
examples/with-static-export/pages/post.js
+1
-1
readme.md
readme.md
+1
-1
No files found.
examples/data-fetch/package.json
View file @
b41d1776
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
"start"
:
"next start"
"start"
:
"next start"
},
},
"dependencies"
:
{
"dependencies"
:
{
"isomorphic-
fetch"
:
"^2.2.1
"
,
"isomorphic-
unfetch"
:
"^2.0.0
"
,
"next"
:
"latest"
,
"next"
:
"latest"
,
"react"
:
"^16.0.0"
,
"react"
:
"^16.0.0"
,
"react-dom"
:
"^16.0.0"
"react-dom"
:
"^16.0.0"
...
...
examples/data-fetch/pages/index.js
View file @
b41d1776
import
React
from
'react'
import
React
from
'react'
import
Link
from
'next/link'
import
Link
from
'next/link'
import
'isomorphic-fetch'
import
'isomorphic-
un
fetch'
export
default
class
MyPage
extends
React
.
Component
{
export
default
class
MyPage
extends
React
.
Component
{
static
async
getInitialProps
()
{
static
async
getInitialProps
()
{
...
...
examples/data-fetch/pages/preact.js
View file @
b41d1776
import
React
from
'react'
import
React
from
'react'
import
Link
from
'next/link'
import
Link
from
'next/link'
import
'isomorphic-fetch'
import
'isomorphic-
un
fetch'
export
default
class
MyPage
extends
React
.
Component
{
export
default
class
MyPage
extends
React
.
Component
{
static
async
getInitialProps
()
{
static
async
getInitialProps
()
{
...
...
examples/with-apollo-and-redux/lib/initApollo.js
View file @
b41d1776
import
{
ApolloClient
,
createNetworkInterface
}
from
'react-apollo'
import
{
ApolloClient
,
createNetworkInterface
}
from
'react-apollo'
import
fetch
from
'isomorphic-fetch'
import
fetch
from
'isomorphic-
un
fetch'
let
apolloClient
=
null
let
apolloClient
=
null
...
...
examples/with-apollo-and-redux/package.json
View file @
b41d1776
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
},
},
"dependencies"
:
{
"dependencies"
:
{
"graphql"
:
"^0.9.3"
,
"graphql"
:
"^0.9.3"
,
"isomorphic-
fetch"
:
"^2.2.1
"
,
"isomorphic-
unfetch"
:
"^2.0.0
"
,
"next"
:
"latest"
,
"next"
:
"latest"
,
"prop-types"
:
"^15.5.8"
,
"prop-types"
:
"^15.5.8"
,
"react"
:
"^16.0.0"
,
"react"
:
"^16.0.0"
,
...
...
examples/with-apollo-auth/lib/init-apollo.js
View file @
b41d1776
import
{
ApolloClient
,
createNetworkInterface
}
from
'react-apollo'
import
{
ApolloClient
,
createNetworkInterface
}
from
'react-apollo'
import
fetch
from
'isomorphic-fetch'
import
fetch
from
'isomorphic-
un
fetch'
let
apolloClient
=
null
let
apolloClient
=
null
...
...
examples/with-apollo-auth/package.json
View file @
b41d1776
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
"dependencies"
:
{
"dependencies"
:
{
"cookie"
:
"^0.3.1"
,
"cookie"
:
"^0.3.1"
,
"graphql"
:
"^0.9.3"
,
"graphql"
:
"^0.9.3"
,
"isomorphic-
fetch"
:
"^2.2.1
"
,
"isomorphic-
unfetch"
:
"^2.0.0
"
,
"next"
:
"latest"
,
"next"
:
"latest"
,
"prop-types"
:
"^15.5.10"
,
"prop-types"
:
"^15.5.10"
,
"react"
:
"^15.5.4"
,
"react"
:
"^15.5.4"
,
...
...
examples/with-apollo/lib/initApollo.js
View file @
b41d1776
import
{
ApolloClient
}
from
'apollo-client'
import
{
ApolloClient
}
from
'apollo-client'
import
{
HttpLink
}
from
'apollo-link-http'
import
{
HttpLink
}
from
'apollo-link-http'
import
{
InMemoryCache
}
from
'apollo-cache-inmemory'
import
{
InMemoryCache
}
from
'apollo-cache-inmemory'
import
fetch
from
'isomorphic-fetch'
import
fetch
from
'isomorphic-
un
fetch'
let
apolloClient
=
null
let
apolloClient
=
null
...
...
examples/with-apollo/package.json
View file @
b41d1776
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
"graphql"
:
"^0.11.7"
,
"graphql"
:
"^0.11.7"
,
"graphql-anywhere"
:
"^3.1.0"
,
"graphql-anywhere"
:
"^3.1.0"
,
"graphql-tag"
:
"^2.5.0"
,
"graphql-tag"
:
"^2.5.0"
,
"isomorphic-
fetch"
:
"^2.2.1
"
,
"isomorphic-
unfetch"
:
"^2.0.0
"
,
"next"
:
"latest"
,
"next"
:
"latest"
,
"prop-types"
:
"^15.5.8"
,
"prop-types"
:
"^15.5.8"
,
"react"
:
"^16.0.0"
,
"react"
:
"^16.0.0"
,
...
...
examples/with-firebase-authentication/package.json
View file @
b41d1776
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
"express-session"
:
"^1.15.2"
,
"express-session"
:
"^1.15.2"
,
"firebase"
:
"^3.7.5"
,
"firebase"
:
"^3.7.5"
,
"firebase-admin"
:
"^4.2.0"
,
"firebase-admin"
:
"^4.2.0"
,
"isomorphic-
fetch"
:
"2.2.1
"
,
"isomorphic-
unfetch"
:
"2.0.0
"
,
"next"
:
"latest"
,
"next"
:
"latest"
,
"react"
:
"^16.0.0"
,
"react"
:
"^16.0.0"
,
"react-dom"
:
"^16.0.0"
,
"react-dom"
:
"^16.0.0"
,
...
...
examples/with-firebase-authentication/pages/index.js
View file @
b41d1776
import
React
,
{
Component
}
from
'react'
import
React
,
{
Component
}
from
'react'
import
firebase
from
'firebase'
import
firebase
from
'firebase'
import
'isomorphic-fetch'
import
'isomorphic-
un
fetch'
import
clientCredentials
from
'../credentials/client'
import
clientCredentials
from
'../credentials/client'
export
default
class
Index
extends
Component
{
export
default
class
Index
extends
Component
{
...
...
examples/with-freactal/githubApi.js
View file @
b41d1776
/* global fetch */
/* global fetch */
import
'isomorphic-fetch'
import
'isomorphic-
un
fetch'
const
API_BASE_URL
=
'https://api.github.com'
const
API_BASE_URL
=
'https://api.github.com'
...
...
examples/with-freactal/package.json
View file @
b41d1776
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
},
},
"dependencies"
:
{
"dependencies"
:
{
"freactal"
:
"^1.1.1"
,
"freactal"
:
"^1.1.1"
,
"isomorphic-
fetch"
:
"^2.2.1
"
,
"isomorphic-
unfetch"
:
"^2.0.0
"
,
"next"
:
"latest"
,
"next"
:
"latest"
,
"react"
:
"^16.0.0"
,
"react"
:
"^16.0.0"
,
"react-dom"
:
"^16.0.0"
"react-dom"
:
"^16.0.0"
...
...
examples/with-i18next/package.json
View file @
b41d1776
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
},
},
"dependencies"
:
{
"dependencies"
:
{
"i18next"
:
"^7.1.3"
,
"i18next"
:
"^7.1.3"
,
"isomorphic-
fetch"
:
"^2.2.1
"
,
"isomorphic-
unfetch"
:
"^2.0.0
"
,
"next"
:
"latest"
,
"next"
:
"latest"
,
"react"
:
"^16.0.0"
,
"react"
:
"^16.0.0"
,
"react-dom"
:
"^16.0.0"
,
"react-dom"
:
"^16.0.0"
,
...
...
examples/with-i18next/tools/translationHelpers.js
View file @
b41d1776
/* global fetch */
/* global fetch */
import
'isomorphic-fetch'
import
'isomorphic-
un
fetch'
/**
/**
* Fetch translation file(s).
* Fetch translation file(s).
...
...
examples/with-redux-saga/package.json
View file @
b41d1776
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
},
},
"dependencies"
:
{
"dependencies"
:
{
"es6-promise"
:
"4.1.1"
,
"es6-promise"
:
"4.1.1"
,
"isomorphic-
fetch"
:
"2.2.1
"
,
"isomorphic-
unfetch"
:
"2.0.0
"
,
"next"
:
"latest"
,
"next"
:
"latest"
,
"next-redux-saga"
:
"1.0.1"
,
"next-redux-saga"
:
"1.0.1"
,
"next-redux-wrapper"
:
"1.2.0"
,
"next-redux-wrapper"
:
"1.2.0"
,
...
...
examples/with-redux-saga/saga.js
View file @
b41d1776
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
import
{
delay
}
from
'redux-saga'
import
{
delay
}
from
'redux-saga'
import
{
all
,
call
,
put
,
take
,
takeLatest
}
from
'redux-saga/effects'
import
{
all
,
call
,
put
,
take
,
takeLatest
}
from
'redux-saga/effects'
import
es6promise
from
'es6-promise'
import
es6promise
from
'es6-promise'
import
'isomorphic-fetch'
import
'isomorphic-
un
fetch'
import
{
actionTypes
,
failure
,
loadDataSuccess
,
tickClock
}
from
'./actions'
import
{
actionTypes
,
failure
,
loadDataSuccess
,
tickClock
}
from
'./actions'
...
...
examples/with-relay-modern/lib/createRelayEnvironment.js
View file @
b41d1776
import
{
Environment
,
Network
,
RecordSource
,
Store
}
from
'relay-runtime'
import
{
Environment
,
Network
,
RecordSource
,
Store
}
from
'relay-runtime'
import
fetch
from
'isomorphic-fetch'
import
fetch
from
'isomorphic-
un
fetch'
let
relayEnvironment
=
null
let
relayEnvironment
=
null
...
...
examples/with-relay-modern/package.json
View file @
b41d1776
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
"dependencies"
:
{
"dependencies"
:
{
"dotenv"
:
"^4.0.0"
,
"dotenv"
:
"^4.0.0"
,
"dotenv-webpack"
:
"^1.5.4"
,
"dotenv-webpack"
:
"^1.5.4"
,
"isomorphic-
fetch"
:
"^2.2.1
"
,
"isomorphic-
unfetch"
:
"^2.0.0
"
,
"next"
:
"^3.0.3"
,
"next"
:
"^3.0.3"
,
"react"
:
"^15.6.1"
,
"react"
:
"^15.6.1"
,
"react-dom"
:
"^15.6.1"
,
"react-dom"
:
"^15.6.1"
,
...
...
examples/with-socket.io/package.json
View file @
b41d1776
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
"version"
:
"1.0.0"
,
"version"
:
"1.0.0"
,
"dependencies"
:
{
"dependencies"
:
{
"express"
:
"^4.15.2"
,
"express"
:
"^4.15.2"
,
"isomorphic-
fetch"
:
"^2.2.1
"
,
"isomorphic-
unfetch"
:
"^2.0.0
"
,
"next"
:
"latest"
,
"next"
:
"latest"
,
"react"
:
"^16.0.0"
,
"react"
:
"^16.0.0"
,
"react-dom"
:
"^16.0.0"
,
"react-dom"
:
"^16.0.0"
,
...
...
examples/with-socket.io/pages/index.js
View file @
b41d1776
import
{
Component
}
from
'react'
import
{
Component
}
from
'react'
import
io
from
'socket.io-client'
import
io
from
'socket.io-client'
import
fetch
from
'isomorphic-fetch'
import
fetch
from
'isomorphic-
un
fetch'
class
HomePage
extends
Component
{
class
HomePage
extends
Component
{
// fetch old messages data from the server
// fetch old messages data from the server
...
...
examples/with-static-export/next.config.js
View file @
b41d1776
const
fetch
=
require
(
'isomorphic-fetch'
)
const
fetch
=
require
(
'isomorphic-
un
fetch'
)
module
.
exports
=
{
module
.
exports
=
{
async
exportPathMap
()
{
async
exportPathMap
()
{
...
...
examples/with-static-export/package.json
View file @
b41d1776
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
"main"
:
"server.js"
,
"main"
:
"server.js"
,
"dependencies"
:
{
"dependencies"
:
{
"express"
:
"^4.15.3"
,
"express"
:
"^4.15.3"
,
"isomorphic-
fetch"
:
"^2.2.1
"
,
"isomorphic-
unfetch"
:
"^2.0.0
"
,
"next"
:
"beta"
,
"next"
:
"beta"
,
"react"
:
"^15.5.4"
,
"react"
:
"^15.5.4"
,
"react-dom"
:
"^15.5.4"
,
"react-dom"
:
"^15.5.4"
,
...
...
examples/with-static-export/pages/index.js
View file @
b41d1776
import
{
Component
}
from
'react'
import
{
Component
}
from
'react'
import
Head
from
'next/head'
import
Head
from
'next/head'
import
fetch
from
'isomorphic-fetch'
import
fetch
from
'isomorphic-
un
fetch'
import
Post
from
'../components/post'
import
Post
from
'../components/post'
...
...
examples/with-static-export/pages/post.js
View file @
b41d1776
import
{
Component
}
from
'react'
import
{
Component
}
from
'react'
import
Link
from
'next/link'
import
Link
from
'next/link'
import
Head
from
'next/head'
import
Head
from
'next/head'
import
fetch
from
'isomorphic-fetch'
import
fetch
from
'isomorphic-
un
fetch'
export
default
class
extends
Component
{
export
default
class
extends
Component
{
static
async
getInitialProps
({
query
})
{
static
async
getInitialProps
({
query
})
{
...
...
readme.md
View file @
b41d1776
...
@@ -893,7 +893,7 @@ If you want to render the built-in error page you can by using `next/error`:
...
@@ -893,7 +893,7 @@ If you want to render the built-in error page you can by using `next/error`:
```
jsx
```
jsx
import
React
from
'react'
import
React
from
'react'
import
Error
from
'next/error'
import
Error
from
'next/error'
import
fetch
from
'isomorphic-fetch'
import
fetch
from
'isomorphic-
un
fetch'
export
default
class
Page
extends
React
.
Component
{
export
default
class
Page
extends
React
.
Component
{
static
async
getInitialProps
()
{
static
async
getInitialProps
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment