1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
Commit graph

557 commits

Author SHA1 Message Date
Jason Leibowitz 126507cc1c Add Example of Redux Wrapper with Immutable.js (#4327)
* Add immutable redux example

* Updated readme

* Fix linting errors
2018-05-10 19:40:21 +02:00
Pascal Birchler 6b04b55354 Fix typo in next-with-apollo-auth test docs (#4328) 2018-05-10 19:02:29 +02:00
Andrew Razumovsky 0d4d7d840a [with-react-i18next] Fix flickering on page change via <Link /> (#4318)
* Fix flickering on page change via <Link />

* Remove process.browser check
2018-05-09 15:06:37 +02:00
Volker Rose aec4c00214 Update next-typescript to latest version 0.1.1 (#4176)
This example gave me 404s on `pages/*.tsx` when using it with the latest nextjs (`5.1.0`) and `@zeit/next-typescript@0.0.11`. The latest next-typescript plugin version fixes it.
2018-05-08 17:38:21 +02:00
Kirill Konshin 76f5e979b3 Support _app approach for upgraded Redux Wrapper (#4207)
* Support _app approach for upgraded Redux Wrapper

* Updated according to discussion

* Package.json versions
2018-05-08 14:57:41 +02:00
Michael Hsu 4b95725e09 fix(with-pkg): update pkg config for next.js (#4307)
* fix(with-pkg): update pkg config for next.js

* update docs
2018-05-08 11:52:52 +02:00
Jorge Cuadra 596bd21e33 Add eslint parser to avoid errors in IDE. (#4297) 2018-05-07 21:11:14 +02:00
Tim Neutkens 0697c289f8
Implement with-redux using _app.js (#4295)
* Simplify redux example

* Simplify redux example even more

* Remove empty space
2018-05-07 15:03:54 +02:00
Tim Neutkens 6c0091fb7a
Add new apollo example using _app.js (#4286)
* Add new apollo example

* Update readme

* Update with-apollo to use _app.js

* Move withData to _app

* Make SSR work again

* Remove withData

* Use HOC to provide apolloClient

* Spread pageprops
2018-05-07 15:02:56 +02:00
Tim Neutkens 6bc363e615
Fix with-jest example (#4278)
Fixes #4263
2018-05-05 05:36:59 -07:00
Tim Neutkens 3685c30fb4 Merge branch 'master' into canary 2018-05-05 14:23:05 +02:00
Michael Hsu 738376c812 Add docker example (#4261)
* Add docker example

* fix lint
2018-05-05 04:12:56 -07:00
Tim Phillips 08965008c6 Prevent now-env from running in production (#4259) 2018-05-04 22:14:59 -07:00
Tim Neutkens 62f9736ca3 Add basic export example 2018-05-01 19:06:06 -07:00
Tim Neutkens f1b9577210 Merge branch 'canary'
# Conflicts:
#	package.json
#	yarn.lock
2018-04-29 11:43:37 -07:00
Tony Kovanen 6158243339 with-reasonml: better setup (#4218)
With this setup we're compiling the .re/.ml files directly to source
directories with a .bs.js extension, and enabling next.js to pick up
that extension for pages.
2018-04-27 08:24:46 -07:00
Tony Kovanen f378448b79 with-reasonml: use default exports (#4217) 2018-04-26 20:35:30 -07:00
Tony Kovanen 2457df5d06 examples/with-reasonml: use bs-next for Next.Link (#4214)
Fixes #4028
2018-04-26 10:05:04 -07:00
Iago Dahlem Lorensini a0019b3dc9 Update broken link on with-redux-reselect-recompose example (#4209) 2018-04-25 09:29:48 -07:00
Tim Neutkens 0daf9beedc Add _app layout example 2018-04-24 12:31:26 -07:00
Tim Neutkens 326c84a730 Add readme for componentDidCatch example 2018-04-23 15:07:48 -07:00
Tim Neutkens 65c0014ad1 Add componentDidCatch example 2018-04-23 14:22:36 -07:00
Bhargav Ponnapalli 5187d142ea Added example for usage with rematch (#4095)
* Usage with rematch

* Run lint fix

* Add counter-display example and readme
2018-04-18 14:03:24 +02:00
Fouad Matin 676d82abf9 fix(examples/using-preact): use latest next-preact (#4152) 2018-04-14 07:49:06 +02:00
Harun Đulić c5c5564dbf Added with-jest-typescript example (#4124)
* Added with-jest-typescript example with files and readme

* Updated package.json

As per the comment, updated the package.json so the info is same as in other examples.

* Proper name in package.json
2018-04-13 16:53:59 +02:00
Prateek Rastogi fbd023c032 added example of integration with videojs (#4139)
* added videojs integration example

* added videojs example

* lint fix

* Revert "lint fix"

This reverts commit 39010fa0b58a66d06b91987a5bef46c044181470.

* removed unexpected lint fix
2018-04-12 12:22:37 +02:00
Seth Etter 769d8e3a84 Update next-typescript version in custom-typescript-server example (#4130) 2018-04-09 18:41:41 +02:00
Odin Ugedal c486682b44 Relay modern example fixes (#4120)
* Fix with-relay-modern example

Starting with react-relay 1.5.0 the schema canno't be in the same dir as
the src. This can be fixed by excluding the schema dir. Globs should
also be inside quotation marks, to avoid non-deterministic behavior of
different shells.

* Add missing key on BlogPosts
2018-04-07 12:41:26 +02:00
James Hegedus f2e56609cd Examples: stabalise README format and create-next-app usage (#4009)
* Examples: clarify language around Yarn create & npx

* add missing READMEs and create-next-app usage

* suggest people tag jthegedus in firebase related issues

* add yarn alt instructions

* cerebraljs example readme & fixes
2018-04-03 14:19:05 +02:00
Tim Neutkens 2d8c19a450
Upgrade Babel 6 to Babel 7 (major) (#4050)
Upgrade Babel 6 to Babel 7 (major)
2018-04-03 09:34:07 +02:00
Bhargav Ponnapalli 3556a3a63f Added example for usage with rematch (#4095)
* Usage with rematch

* Run lint fix

* Add counter-display example and readme
2018-04-03 09:09:30 +02:00
Tim Neutkens 43fe9ace54 Merge branch 'canary' of github.com:zeit/next.js into canary 2018-03-31 16:07:16 +02:00
Tim Neutkens c07cf5e83f Upgrade Next in with-firebase-hosting 2018-03-31 16:06:12 +02:00
Jonathan James b39958e780 Fix serve command (#3989)
* Fix serve command

From the Firebase docs, you must use --only in order to run the local function emulator.
See https://firebase.google.com/docs/functions/local-emulator

* Add production env for firebase serve

Doesn't work without this

* Update text as suggested by @jthegedus
2018-03-31 15:59:24 +02:00
Luis Fernando Alvarez D b43af823dd Updated example with-now-env (#4081)
* New example: with-now-env

* updated the example with-now-env
2018-03-31 08:17:21 +02:00
Tage A. L. K b321e6e942 Remove deprected and refactor with-apollo-auth (#4070)
* Remove deprected use of apollo-client-preset, and refactor

Changes
* Remove deprected use of apollo-client-preset in favor of apollo-boost
* Refactor for usage of react-apollo@2.1

* Use standard

Just ran standard --fix
2018-03-31 08:11:36 +02:00
Tim Neutkens 69ca73ca56 Upgrade @zeit/next-typescript in with-typescript example (patch) 2018-03-30 00:07:33 +02:00
Tim Neutkens 069f45d74e Upgrade @zeit/next-typescript in custom-server-typescript example (patch) fixes #4071 2018-03-29 21:06:53 +02:00
Wes Bos 3949c82bdf Add missing url prop (#4078)
This was causing react-apollo  to crash on any SSR page that needed the page's query to make the GraphQL queries. 

It's magically passed on the client, but we have to manually pass it to the composed component here
2018-03-29 18:01:12 +02:00
Pavel Prichodko 2ba8ad9760 Add with-google-analytics example (#4036)
* Rename example with-analytics to with-segment-analytics

* Add with-google-analytics example
2018-03-29 17:03:28 +02:00
Luis Fernando Alvarez D 9f4e707682 New example: with-now-env (#4073) 2018-03-29 00:11:40 +02:00
Will Meier 4570f2d050 Update with-apollo examples (#4067)
* Update with-apollo examples to include note about top-level withData HOC

* Update with-apollo examples to include note about top-level withData HOC
2018-03-28 22:30:42 +02:00
Tim Neutkens ebf0c47c25
Upgrade standard.js (#4064)
* Upgrade standard.js

# Conflicts:
#	yarn.lock

* Upgrade babel-eslint
2018-03-27 20:11:03 +02:00
Rasool Dastoori 603b90ce02 Fix loading and rendering GraphQL data on the server in the with-apollo-and-redux example (#4054) 2018-03-25 17:40:25 +02:00
Gianmarco 7bef864a6f Fixes install command in with-absolute-imports example. (#4049)
Fixes installation command for `with-absolute-imports` example.
2018-03-23 14:00:18 +01:00
Luke Plaster a6af11c6ae Improved with-ant-design example (#4034)
* Improved with-ant-design example

* standardjs fix maybe
2018-03-23 12:52:34 +01:00
Prateek Rastogi 9470b91ba1 migrated from apollo-client-preset to apollo-boost (#4047) 2018-03-23 12:51:58 +01:00
Shaleen Jain cd1d9e0c35 with-apollo: Improve lib/withData (#3973)
* pass down getInitialProps ctx to ComposedComponent
* pass apollo client instance directly to getDataFromTree instead of through the ApolloProvider wrapper.
* Avoid redundant empty serverState initialization (It's always initialized)
2018-03-16 11:52:30 +01:00
James Hegedus b1d8b839dd Examples: use npx and yarn create to run create-next-app on examples (#4002)
* remove global npm install of create-next-app

* add npx to create-next-app command in examples

* add bash to shell snippets

* add yarn create to next-app command in examples

* fix READMEs named with lowercase

* change READMEs to use UPPERCASE
2018-03-14 09:09:46 +01:00
Wagner Camarao 0eb5bab452 Fix a/b typo in custom-server-typescript routing (#4003) 2018-03-14 09:06:53 +01:00