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

100 commits

Author SHA1 Message Date
Adam Soffer 8310f812ec Fix Apollo Example (#900)
* Add minimal apollo example

* Update apollo example README

* Update apollo example demo link in README

* Fix button styles

* Fix show more button

* Alias demo url

* Include the data field on the Apollo store when hydrating

* Revert

* Include the data field on the Apollo store when hydrating per tpreusse's suggestion.

* Add example to faq section in README

* Sort by newest; Add active state to buttons

* Make optimization suggestions

* Use process.browser; inline props

* Pass wrapped component's initial props into component heirarchy if they exist

* Remove unnecessary sorting of array
2017-01-27 17:06:17 +01:00
jcsmesquita 8922e7b63a Update README.md (#895)
Just adding download instructions
2017-01-26 23:19:12 +05:30
Adam Soffer a76ec83b64 Update Apollo Example (#888)
* Add minimal apollo example

* Update apollo example README

* Update apollo example demo link in README

* Fix button styles

* Fix show more button

* Alias demo url

* Include the data field on the Apollo store when hydrating

* Revert

* Include the data field on the Apollo store when hydrating per tpreusse's suggestion.

* Add example to faq section in README

* Sort by newest; Add active state to buttons

* Make optimization suggestions

* Use process.browser; inline props

* Pass wrapped component's initial props into component heirarchy if they exist
2017-01-25 17:10:21 -08:00
Dan Zajdband 3ad3a6c1e7 Added Google AMP example (#793)
* Added Google AMP example

* Added styles and a second page

* Using regular anchor since there is no client-side routing

* Added comment on react config for amp
2017-01-24 05:20:56 -08:00
jagreehal cbb2d1c250 simpler flow task (#857) 2017-01-23 22:19:14 -08:00
Robin Frischmann 8d8d5ebdf6 Example using Fela (#863)
* added example using fela

* update package-json

* removed nested routing test

* fixed linting issues

* fixed typo
2017-01-23 20:29:15 -03:00
Adam Soffer 4b257483e2 Add Apollo example (#780)
* Add minimal apollo example

* Update apollo example README

* Update apollo example demo link in README

* Fix button styles

* Fix show more button

* Alias demo url

* Include the data field on the Apollo store when hydrating

* Revert

* Include the data field on the Apollo store when hydrating per tpreusse's suggestion.

* Add example to faq section in README

* Sort by newest; Add active state to buttons

* Make optimization suggestions

* Use process.browser; inline props
2017-01-22 13:27:06 +01:00
Kristo Jorgenson e67d62d888 Update styled-component docs (#841)
* Add details to custom Document documentation

Custom document must be created at ./Pages/_document.js, which is not
noted in the README… so I updated it.

* Add note to styled-components example about existing issue

* Made phrasing a bit more clear

* Another phrasing update.

* from P to p
2017-01-21 22:24:17 +01:00
Arunoda Susiripala 399e510389 Make sure lastAppProps always have some value. (#829)
* Make sure lastAppProps always have some value.

* Revert "Make sure lastAppProps always have some value."

This reverts commit b4ae722d9c1a4460e17dbdc041b111cbd492b2aa.

* Throw an error, if we found an empty object from getInitialProps.

* Add proper tests for getInitialProps empty check.
2017-01-20 11:33:46 -08:00
jagreehal 1e77568657 added example with flow (#814)
* added  example with flow

* Fixed linting errors
2017-01-19 01:48:55 -08:00
Arunoda Susiripala 2efabde215 Fix koa-404 issue by adding res.statusCode to 200 (#815) 2017-01-18 00:45:29 -03:00
Dan Zajdband 2c2d961844 Added Koa example (#800)
* Added Koa example

* Linted koa example
2017-01-17 08:23:06 +01:00
Dan Zajdband e28f80cd99 Updated <Link> in repo, always wrapping an anchor. (#798) 2017-01-16 22:27:55 +01:00
Sébastien Dubois a66ff658f4 Fix link (#789)
* Fix link

* Fix links
2017-01-16 18:23:24 -03:00
Dan Zajdband 7cc554c67a Fixed hapi example (#795) 2017-01-16 11:27:07 -08:00
Sébastien Dubois ffeeb682af Remove useless config override (#790) 2017-01-16 14:24:33 -03:00
Sébastien Dubois 8fa630d855 Add dynamic routing keyword (#788)
I was looking for "dynamic routing" in the examples and didn't find it because that keyword isn't used.
2017-01-16 23:33:11 +09:00
Giuseppe 0d6ceec8db Add styled-jsx-postcss example (#781)
* Add styled-jsx-postcss example

* Remove commented code
2017-01-15 19:59:22 -08:00
Tim Neutkens b6e72f59e5 Use UTC time to avoid time differences (#782) 2017-01-15 16:14:40 -08:00
nkzawa 8a06c7b092 example: fix style 2017-01-15 00:30:39 +09:00
Shawn Kelly 5ef34c6dd8 update styletron example to support multiple stylesheets (#763) 2017-01-13 15:49:35 -08:00
Arunoda Susiripala 7be5797cc2 Use the preact-compat dist version. (#760) 2017-01-13 11:40:07 -03:00
Huang Xuan c19b82dfe2 Fix title of README (#720) 2017-01-10 11:32:32 -08:00
sfhardman ec302aa289 Add custom server example using Hapi (#712) 2017-01-09 18:35:10 -08:00
Tim Neutkens f3ee901fa6 Use next.js beta for example (#710) 2017-01-09 13:40:45 -08:00
Mike Bannister 2e0f9d144b Fix link (#701) 2017-01-08 12:30:29 -08:00
Bernat Orell 3b1f7115a3 Routing on the client with Redux (#691)
* Routing on the client with Redux

* Removing unused import
2017-01-08 07:04:35 -08:00
Donald Hruska 4ac8e137cf Update README.md (#687) 2017-01-07 09:19:07 +09:00
Florian Didron 13feb8855d Adds mobx example (#676)
* Adds mobx example

* Fix coding style to match JS Standard

* Removes unecessary link

* Update README.md

* Update README.md

* Change next version from beta to ^2.0.0-beta

* Assigns the store to a local var

* Adds navigation in the example

* Removes unecessary imports

* Fix coding style to match JS Standard

* Fix Clock import
2017-01-06 03:38:51 -08:00
Alex Moldovan 07f717061f Added layout component example (#560)
* added layout component example

* coding style fixes

* trailing spaces removed

* updated README file

* added layout example in docs

* moved .babelrc so that it handles all projects from the examples folder
2017-01-05 13:03:36 -08:00
Arana Jhonny e01056d3f1 example using inferno v1.0.* (#663)
* example using inferno v1.0.*

* fix name.
2017-01-05 09:26:01 -08:00
Arana Jhonny 1d700d0240 Aphrodite example. (#634)
* add aphrodite example

* fix props

* Update README.md
2017-01-03 10:06:04 -08:00
Arana Jhonny 856978918e Add cxs example. (#613)
* add cxs example

* fix example location
2017-01-01 22:35:14 -08:00
nkzawa 64aa4454ac examples: fix SSR of styled-components 2017-01-01 20:24:48 +09:00
Arunoda Susiripala c890dc3573 Implement Router Events (#511)
* Move route loading logic to a common place.

* Add router events.

* Add EventEmitter's core API methods.

* Add example app for loading events and docs.

* Fix some typos.

* Get rid of Router.ready()

* Remove events package.
It's already shipping with webpack.

* Handling aborting properly.

* Expose simple attribute based events listener API.
Removed the proposed event listener API from the public API.

* Remove error logged when there's an abort error.
There are many other ways to capture this error.
So, it doesn't look nice to print this always.

* Change router events to pass only the current URL as arguments.

* Add a section about Cancelled Routes to README.
2016-12-30 17:15:22 -08:00
Stephen Mathieson 369bc873f8 examples/nested-components: use an apostrophe rather than a prime (#566)
This is just my OCD, but this file is much easier on the eyes when apostrophes are used rather than primes. It's also proper, as the [prime](https://en.wikipedia.org/wiki/Prime_(symbol)) is used in mathematics, not written English.
2016-12-29 10:50:36 -08:00
Dan Zajdband 31703d4c78 Fixed log on component prefetch (#563) 2016-12-29 22:56:22 +09:00
Naoyuki Kanezawa 917a96a1cd set build and start npm scripts on all examples (#549) 2016-12-28 10:12:24 -08:00
Arunoda Susiripala 1ba315fcc1 Add a preact example. (#543)
* Add preact example.

* Update .babelrc
2016-12-27 10:58:10 -08:00
nkzawa de7801df2d example: fix npm script (fix #526) 2016-12-27 23:39:00 +09:00
Arunoda Susiripala d580b8f0c9 Use ^2.0.0-beta as the version for with-prefetching example. (#530) 2016-12-26 12:37:03 -08:00
Arunoda Susiripala ac2a71876d Add support for using .babelrc in the app root. (#493)
* Add support for using .babelrc in the app root.

* Update the README about the .babelrc usage.

* Fix a typo.

* Remove additional example usage.
2016-12-26 10:13:45 -08:00
nkzawa 1888a251a8 fix npm script on examples 2016-12-26 12:59:09 +09:00
Ian Mitchell 355dbf8fdd Fix SSR Cache Example (#510) 2016-12-25 00:38:35 +05:30
Dan Zajdband 01e1883f79 Added glamor example and pointing warning to css migration guide (#500) 2016-12-23 11:18:25 -08:00
Arunoda Susiripala b9bee24787 Add an example with SSR caching. (#497)
* Add an example with SSR caching.

* Update server.js

* Update README.md

* Use app.renderError to display errors in SSR example.
2016-12-23 09:13:52 -08:00
Naoyuki Kanezawa 01da6f4761 Add styletron example (#486)
* add styletron example

* example: fix link

* example: improve README

* Added styletron example reference to readme and merge with master
2016-12-23 08:01:24 -05:00
Dan Zajdband f6ece560e4 Add/data fetch example (#485)
* Added data fetch example

* Finished updating examples install instructions and added data-fetch example to main readme
2016-12-23 08:05:49 +09:00
nkzawa 414a22d38e examples: fix README titles 2016-12-23 07:57:57 +09:00
nkzawa cf727eb1e1 typo 2016-12-23 06:43:18 +09:00