Commit graph

380 commits

Author SHA1 Message Date
Josh Hawkins
5bd3a5f1d1 Update emotion example to use css instead of fragment (#2497) 2017-07-07 17:25:26 +02:00
Wei Zhu
df1cd7ebf3 Fix "Deploy to now" link (#2489) 2017-07-07 11:23:25 +05:30
Arunoda Susiripala
c5c270c576 Merge master into v3-beta. 2017-07-06 12:24:31 +05:30
Matt Hamlin
0f3fecfe8b Update emotion examples with new API for SSR and React endpoint (#2456)
* Update emotion examples with new API for SSR and React endpoint

* Actually fixing tab replacement
2017-07-06 07:44:46 +02:00
Tim Neutkens
7f2acd592b Fix download link (#2463) 2017-07-05 10:48:33 +05:30
Watcharakrit Phantu
56f52db5a9 Fixed example with-scoped-stylesheets-and-postcss: css-modules reload update from files [name].css.json. (#2110)
* Fixed: css-modules reload files styles.css.json.

* update: disable uglify for next build.

add: require('fs') for next build.
add: disable uglify on next.config.js for next build.

* Fix linting errors
2017-07-02 00:36:36 +02:00
Jayden Seric
ec2b76f83b Better data fetching error handling for Apollo examples (#2227)
* Display data fetching errors in Apollo examples.

* Prevent Apollo GraphQL errors from crashing SSR.

Also tidied a few comments in the vicinity.
2017-07-01 23:56:12 +02:00
Jayden Seric
9bbdfeca63 Component display name fixes for Apollo examples (#2211)
* Fix decorated component display name issues for Apollo examples.

* Fix linting errors and implement #2286
2017-07-01 23:51:20 +02:00
Sergio Xalambrí
2b9944bf52 Add with-static-export example (#2234) 2017-07-01 21:44:58 +02:00
Colder Xihk
75de0fa5fa update with-antd-mobile example (#2425)
support windows path

remove unused hammerjs hack

remove unused 'style/css' resolver
2017-07-01 21:36:57 +02:00
Tim Neutkens
1ecba3b84d Use right next.js version for with-dynamic-import (#2423) 2017-07-01 08:13:25 +02:00
Miguel Cast
1bddb118bc Example/add react-with-styles example (#2417)
* Example/add react-with-styles example

* fix standars next
2017-06-30 22:32:33 +02:00
Jess Telford
4a0278b5c0 Apollo + Authentication + graph.cool example (#2161)
* Apollo + Authentication + graph.cool example

* Fix linting errors
2017-06-30 22:18:11 +02:00
Colder Xihk
b86bbb65a6 update with-antd-mobile example (#2403)
add support custom svg

remove expire tricks
2017-06-29 22:04:16 +02:00
Penn Su
c9bc471d3a with-dotenv example (#2399) 2017-06-29 08:32:45 +02:00
Mitchell Hamilton
31db8dd932 Add with-emotion example (#2395)
* Add with-emotion example

* Fix linting errors
2017-06-29 07:44:48 +02:00
Arunoda Susiripala
655018c0e7 Merge master into v3-beta 2017-06-29 00:51:05 +05:30
Arunoda Susiripala
23c2f02f56 Make it easy and meaningful to analyze the bundle. (#2393) 2017-06-29 00:46:21 +05:30
Daniel Steigerwald
c39e555353 Improve Fela example (#2330)
* Improve Fela example

- add webPreset
- cleaner code
- add key for style
- demonstrate Fela composition

* Fix standard lint
2017-06-28 19:14:18 +02:00
Thomas Preusse
3be175b466 Apollo Example: Fix duplicate head tags (#2362) 2017-06-28 19:07:21 +02:00
myxvisual
9da6524d30 Feature add react uwp example (#2375)
* feat: Add react-uwp examples

* fix: remove log from ThemeWrapper

* feat: Add README.md

* fix: Fixed right version

* fix: Use JavaScript Standard Style

* fix: Fixed wrong next version
2017-06-27 21:10:26 +02:00
Christoph Stock
5d039877a6 update dependencies (#2354) 2017-06-23 20:40:42 +02:00
Henrik
b2bda416b6 Fix material-ui-next example (#2348) 2017-06-23 15:51:25 +02:00
Henrik
f14297dc80 Normalize example package.json files (#2350) 2017-06-23 10:46:44 +02:00
David Nguyen
3c71e818bf Example/add high order component example (#2331)
* temporary commit

* update code

* completed example higher order component

* remove custom server
2017-06-21 19:45:06 +02:00
Robin Frischmann
d8bc386282 improve server-side rendering (#2322) 2017-06-20 17:21:17 +02:00
Arunoda Susiripala
319a2144f3 Merge master into v3-beta. 2017-06-16 21:55:46 +05:30
Arunoda Susiripala
9df59c1176 Dynamic component support with multiple modules (#2235)
* Layout ground works for next/async

* Implement the Dynamic Bundle feature.

* Add some test cases.

* Update README.

* Implement props aware dynamic bundle API.

* Update tests and README.

* Add a test case for React Context support.
2017-06-16 18:49:34 +05:30
Felipe
db1ee2e161 Add Intl API polyfill in with-react-intl example (#2283)
* Add Intl API polyfill in with-react-intl example

* fix linting
2017-06-16 12:30:35 +02:00
tashburn
6303d19a3a Edited README.md (#2276)
Explained how this example is different from /examples/with-material-ui
2017-06-15 21:51:19 +02:00
David Nguyen
7b62ef3ba6 Upgrade beta version of next for "with-dynamic-import" example (#2262)
* temporary commit

* fixed eslint & parse error when precommit

* upgrade new beta version for stability
2017-06-15 00:16:45 +05:30
Robin Frischmann
c72435fe5c update with-fela to Fela > 5.0 (#2253)
* update fela example

* fix wrong whitespace
2017-06-13 22:50:42 +02:00
Thomas Foricher
480f3ab124 Small typo (#2243) 2017-06-13 12:27:07 +05:30
Arunoda Susiripala
a36be58124 Rewrite urls with hashes correct for static export. (#2242)
* Rewrite urls with hashes correct for static export.

* Fix some lint issues inside an example app.
2017-06-13 11:44:31 +05:30
Chris Wheatley
87c4e98fa5 Add a sw-precache example (#2237)
* add sw-precache example

* remove npm run dev command
2017-06-12 19:24:57 +02:00
Vinay Puppal
7b62184c0b Add with-react-ga example (#2225)
* add with-react-ga example

* fix title in Readme
2017-06-09 23:44:26 +02:00
Adam Soffer
5d71434121 Remove warning when upvoting a post in apollo examples (#2190)
* Fix apollo warning and error when upvoting post

* Fix apollo warning and error when upvoting post in apollo-redux example as well
2017-06-08 19:26:40 +02:00
Adrian le Bas
c66cafd362 Remove hardcoded address from ws example. (#2204)
With a hard coded address on the client, the app no longer works when deploying, which is annoying since there's a handy 'deploy now' button on the readme.

By removing the hard coded address socket.io will connect to the location host automatically so it works both on development and production.
2017-06-08 19:11:08 +02:00
Guillermo Rauch
f4345e79c2 Merge branch 'v3-beta' of github.com:zeit/next.js into v3-beta 2017-06-01 18:31:14 -07:00
Guillermo Rauch
850a931e88 Merge branch 'master' into v3-beta 2017-06-01 18:30:57 -07:00
Ademola Adegbuyi
18bb8774c7 Fix with-glamorous example (#2117)
* Fixed all unsupported style properties
2017-05-31 07:56:50 +02:00
Olivier Tassinari
3a0fe4349c Fix escape issue (#2115)
For instance:
```css
.MuiGrid-gutter-xs-8-1393152966 > .MuiGrid-typeItem-3088349198 {
  font-family: "Roboto", "Helvetica", "Arial", sans-serif;
}
```
2017-05-30 20:51:52 +02:00
Bruno
9f994631f8 Small code fix (#2099)
Using actionType instead of plain string
2017-05-29 19:36:57 +02:00
偏右
9ce12a03c5 Upgrade deps and fix old usage (#2084)
Fix https://github.com/zeit/next.js/pull/1817#issuecomment-299738931
2017-05-27 18:02:53 +02:00
Colder Xihk
56cf8ad0a3 Add ant design mobile example (#1793)
* add antd-mobile example

* update antd-mobile@1.1.2

remove unsupported page

add menu to trick page
2017-05-27 14:22:13 +02:00
偏右
bd96b69049 Add ant design example (#1817)
* Add ant design example

* Reduce bundle size by importing modularized antd

* lock react version for warning
2017-05-27 14:21:01 +02:00
Victor Nahuel Chaves
5187fcdb80 add postcss after sass compilation to with-external-scoped-css example (#1640)
* add postcss after sass compilation

* Fix indent

* Fixed mixed tab indent with spaces
2017-05-27 14:18:50 +02:00
Thomas Lindstrøm
0d0ab77db7 Update example with-scoped-stylesheets-and-postcss (#1606)
Fixes #1191
2017-05-27 14:12:37 +02:00
Miles Rausch
f0c646a366 Correct "yo" to "to" (#2078) 2017-05-27 13:14:21 +02:00
João Carmona
c443635945 feat(with-redux): add redux tools to example (#1994) 2017-05-25 18:37:10 +02:00
Olivier Tassinari
15e9573ded feat: add an example with the next branch of Material-UI (#2036) 2017-05-25 18:36:21 +02:00
RasmusErik Voel Jensen
8b90e6f148 example: with react-toolbox (#2047)
* example with react-toolbox

* JavaScript standard
2017-05-25 18:32:17 +02:00
Conor Dockry
dcac093b55 Remove stage-0 from package.json (#2028) 2017-05-20 19:55:48 +02:00
Olivier Tassinari
23a480964e Update layout.js (#2018) 2017-05-19 14:02:11 +02:00
David Ďurika
55b5dbf9cd Fix: point tar.gz to v3 branch (#2007)
* Fix: point tar.gz to v3 branch

* Update README.md
2017-05-18 15:53:52 -03:00
Ardani Rohman
443dceaeec improve example fallback translation and add new sample locale for lang id (#1983) 2017-05-17 19:41:54 +02:00
Johhan Santana
dff20eae01 add next.config.js for v3 next export example with-dynamic-import (#1976)
* add next.config.js file for static routes

* reverted start npm script to default

* eslint fix

* fix curl command in README

* remove next config
2017-05-16 09:19:31 +05:30
Arunoda Susiripala
f8317f158b Add an case to show when dynamic import components won't load. 2017-05-15 10:14:26 +05:30
Arunoda Susiripala
4d0147385c Merge v3-beta in dynamic-imports 2017-05-15 09:41:42 +05:30
Tim Neutkens
bc71b89b45 Remove stage-0 from example (#1959) 2017-05-13 13:01:29 +02:00
Tim Neutkens
2ea619658b Fix react-md example 2017-05-13 00:42:39 +02:00
Roland Warmerdam
f4d6cbfc19 Many improvements to the Apollo examples (#1905)
* Many improvements to the Apollo examples

* Use static properties
2017-05-11 00:23:11 +02:00
Grokling
7c8d0246e2 Add rehydration to example/aphrodite (#1858)
* Add rehydration to example/aphrodite

* linting

* replaced yarn.lock
2017-05-10 00:33:39 +02:00
Brikou CARRE
9f194677ec Upgrade jest and simplify .babelrc (#1913)
* Upgrade jest and simplify .babelrc

* Fix linter
2017-05-09 09:00:25 -07:00
Elliot Hesp
605161df8a [with-firebase] Ensure server credentials aren't bundled with client code (#1875)
* [with-firebase] Ensure server credentials aren't bundled with client code

* [with-firebase] Fix travis build failure
2017-05-08 21:53:48 +02:00
Roland Warmerdam
5c57b43e0a Fix production builds for the material-ui example (#1906)
Also remove redundant getMuiTheme() calls, handle injectTapEventPlugin()
better and use process.browser.
2017-05-07 15:51:12 +02:00
Grokling
c77e80be30 Update README.MD with warning about BETA version. Remove redundant note. (#1909) 2017-05-07 14:51:32 +02:00
Grokling
1b893518bb Add SSR to examples/with-styled-components + bump styled_components v2 (#1908) 2017-05-07 14:25:33 +02:00
Paul Xu
d1b47146d3 Update incorrect example reference in readme (#1901)
In the `with-refnux` eample.
2017-05-06 21:59:02 +02:00
Arana Jhonny
23574b5489 Support for cxs rehydration and removal of duplicate styles. (#1860)
* add cxs.rehydrate.

* add id='cxs-style'.
2017-05-06 11:37:47 -07:00
Trevor D. Miller
93a1b73efe Removing unneeded dev dependency (#1869)
babel-jest is included automatically by jest when a babel config is present, so including it manually here doesn't do anything.

> "Note: babel-jest is automatically installed when installing Jest and will automatically transform files if a babel configuration exists in your project."
http://facebook.github.io/jest/docs/en/getting-started.html#using-babel
2017-05-04 10:06:58 -07:00
jascha ehrenreich
6e89d49f99 fix typo (#1856) 2017-05-02 21:06:33 -07:00
David Madner
d1b61afcf8 Update README.md (#1851) 2017-05-02 09:12:24 -07:00
spencer
2e7bc1074d Update to examples: with-redux (updated) (#1813)
* With-Redux-example-update-request

Hello Next.js,

I’ve added an additional example to “With-Redux” and updated some of
the original code to help illustrate to less inexperienced developers
how to implement Redux with Next.js.

The example is a simple counter to help reinforce how the client and
server renderings work together. In addition I also updated some of the
redux boilerplate code to help fully demonstrate how redux can be
implemented when using is with Next.js

Please contact me at spencer.bigum@gmail.com for further questions or
anything else you might need.

Thanks,
Spencer

* fixed listing issues: examples/with-redux

* Updated code based on @impronunciable Feedback
2017-04-30 17:44:24 -03:00
Átila Fassina
c9d0670362 with-i18next example (#1496)
* examples/with-i18next: create folder and initial settings

* examples/with-i18next:abstract url and object keys - finish readme

* examples/with-i18next: next@beta is not actually necessary

* examples/with-it18next: fix standardjs eslint warnings

* examples/with-i18next: review updates
2017-04-30 07:35:07 -07:00
Craig Ramey
8d59de4d7a example curl pointed to with-styled-components, supposed to be with-flow (#1832) 2017-04-30 07:31:03 -07:00
Brendan Houle
03bfaecf49 Add root static files example (#1835) 2017-04-30 07:30:29 -07:00
Arana Jhonny
25dbcce60b fix #1833, update all examples. (#1834) 2017-04-30 07:29:37 -07:00
Arunoda Susiripala
686dd4c4dd Merge master into dynamic-import. 2017-04-27 08:48:43 -07:00
Arunoda Susiripala
7fcd1ea760 Add async-reactor example. 2017-04-27 08:22:25 -07:00
Colder Xihk
b52b91a840 fix typo in with-material-ui readme (#1797) 2017-04-26 13:27:37 +02:00
Paul Molluzzo
1eeb8820bb Add deply now buttons to with-firebase, with-material-ui, with-socket.io (#1779) 2017-04-22 15:37:04 +02:00
Daniel Steigerwald
2a14d32235 Fix Fela example (#1663)
* Fix Fela example

Styles must be set via the innerHTML. Otherwise, a fontFamily "Segoe
UI” will have encoded quotes.

* Add example

Which didn’t work previously.

* Fix lint
2017-04-22 15:09:35 +02:00
Sébastien Dubois
612f06b7cf Document skipping cache for babel-loader + setting env at runtime (#1747) 2017-04-22 14:57:09 +02:00
captDaylight
06baed2fe8 820 firebase (#1756)
* connecting to firebase

* login and logout with sessions

*  setting messages on the client side

* should have messages served on init

* set messages in state

* updating credentials

* updating readme

* more cred

* iron out eslint issues

* highlight where to put firebase variables

* fix problem of database listener not picking up changes on load

* remove isomorphic from main package.json
2017-04-22 14:56:28 +02:00
Dan Zajdband
bbb8ff75a5 Add/semantic ui example (#1753)
* Using developit/unfetch as the Fetch API polyfill

* Added Semantic UI React example

* Fixed linting issues
2017-04-22 14:54:35 +02:00
Sergio Daniel Xalambrí
1bb20b1930 Add socket.io example (#1766)
* Add socket.io example

* [update] stop handling events before unmount

* [update] add deploy to now button

* Fix linting problems

* Fix last missing linting problem
2017-04-22 14:53:48 +02:00
Ernesto Palafox
ce0a2f7b13 Add Material-UI example (#1771)
* Add Material-UI example

* Fix linting on material-ui example
2017-04-22 14:52:49 +02:00
Paul Molluzzo
d08e027a8c Add deploy now button to the top of all example READMEs (#1763)
* Add deploy now button to the top of all example READMEs

* Remove unnecessary whitespace changes
2017-04-22 14:51:51 +02:00
Ernesto Palafox
ba5601f6da Fix dependencies install error on 'with-url-object-routing' example (#1764) 2017-04-22 14:48:09 +02:00
Dan Zajdband
865263d24a Fix/amp example (#1755)
* Using developit/unfetch as the Fetch API polyfill

* Fixed amp example checking if the amp attribute is already present

* Fix lint
2017-04-19 11:59:04 +02:00
Arunoda Susiripala
b5a03a3896 Implement ssr=false support. 2017-04-18 22:21:31 +05:30
Arunoda Susiripala
f2bfcd01b0 Add an example with custom loading component. 2017-04-18 22:07:57 +05:30
Arunoda Susiripala
90ea471aa7 Merge master into dynamic-import. 2017-04-18 21:42:21 +05:30
Arunoda Susiripala
dfa28815a5 Add server side rendering for dynamic imports. 2017-04-18 01:45:50 +05:30
Arunoda Susiripala
f51300f14b Add core import() support. 2017-04-17 21:03:40 +05:30
Orlin M Bozhinov
b46502f8f1 corrected css pre-processing #readme link (#1709) 2017-04-14 17:54:55 -03:00
C. T. Lin
8e6615dcf9 upgrade react to v15.5 and use prop-types instead of React.PropTypes (#1684)
* upgrade react to v15.5 and use prop-types instead of React.PropTypes

* Update package.json
2017-04-11 00:05:26 +05:30
Remy Sharp
0487956c47 docs: don't blow away existing query string (#1638)
* docs: don't blow away existing query string

See comments in diff - I ran across this and it took me a while to work out why my client side code worked, but the server didn't. It was because I didn't realise that `.render`'s 3rd arg was the query object, so it was losing the _actual_ query string.

* chore: remove trailing spaces

¯\_(ツ)_/¯ I think!
2017-04-07 10:01:40 -07:00
Paul Molluzzo
12a7610d9a Add example using glamorous 💄 (#1620)
* Add example using glamorous 💄

* Fix linting errors

* Fix FOUC with server rendering and rehydration

* Camelcase CSS property names

* Fix title in README

* Fix typo in README
2017-04-05 17:54:42 -07:00
Vinay Puppal
897ff6c010 fix typo in with-universal-configuration example (#1628) 2017-04-05 17:54:00 -07:00
Alexander Ryzhikov
d10d80ce3c Fix react-helmet example missing initial props (#1598)
* Fix react-helmet example missing initial props

* Fix semicolon
2017-04-03 09:51:26 +05:30
Tim Neutkens
7f0591896a Use latest version of Next for all examples (#1597)
* Use latest for all examples

* Update yarn.lock
2017-04-03 09:46:35 +05:30
jwalter
9393440402 Remove babelrc from preact example doc (#1583)
The mentioned .babelrc usage is not needed for using preact with Next anymore. The actual code change was merged in (#1194)
2017-03-31 15:15:28 -07:00
Adam Soffer
c2036e1326 Create separate Apollo example without Redux integration (#1483)
* 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

* Update Apollo example

* Remove trailing comma

* Update reduxRootKey

* Remove unnecessary babelrc

* Update with-apollo example

- Remove use of deprecated 'reduxRootKey' option
- Add loading indicator inside pagination button

* Fix with-apollo example pagination; Pass initialState to ApolloClient

* Split apollo example into two (one with and without Redux integration)

* Rename createClient private function to _initClient

* Set initialState default parameter inside initClient function

* Remove redux dep from with-apollo example
2017-03-30 11:21:13 -07:00
Dan Zajdband
d5369c01a8 Fix/example instructions (#1559)
* Using developit/unfetch as the Fetch API polyfill

* Fixed layout component example instructions
2017-03-29 12:00:13 -03:00
Tomas Roos
6de2477564 Mobx leaks memory on server side (#1550)
* Added server.js to configure useStaticRendering on start

* Update package to use server.js

* auto format with standard instead of prettier :( fixes broken test
2017-03-29 17:24:46 +05:30
Koji Ishimoto
5a11a86389 Add and update dependencies (#1531) 2017-03-28 08:22:46 +02:00
Arana Jhonny
e9d0aeb2b2 remove extra semicolon. (#1520) 2017-03-27 20:01:40 +05:30
David Ascher
84d4197a6d Add link (#1492) 2017-03-24 14:14:29 +01:00
Penn Su
b682267b50 Fix URL (#1467) 2017-03-21 09:40:09 +05:30
Vlad Frolov
1a61133dd4 fix(example): Added missing instructions for CSS "bundling" in with-react-md example (#1451) (#1456) 2017-03-18 11:45:48 +01:00
Tim Neutkens
1a7e804361 Document babel caching (#1432) 2017-03-15 20:47:31 +01:00
Henrik
8bd46c8380 Remove .DS_Store file from helmet example (#1435) 2017-03-15 20:36:47 +01:00
Stephen Mathieson
8cf965a753 examples: add svg-components (#982) 2017-03-15 15:26:08 +01:00
BDav24
db7c286740 [POC] Pretty url routing (#1001)
* [example] with pretty url routing

* use single quotes even in React components

* improve Link import
2017-03-15 15:24:54 +01:00
Steve Fan
a57fa7ebb1 An example with react-helmet (#1264)
* upload example

* fix

* fix

* fix

* fix .babelrc

* fix standard style

* fix indent

* rename helmetHead to helmet

* added gitignore

* package.json

* removed yarn.lock

* Added more examples of using react-helmet

* removed gitignore
2017-03-15 15:23:42 +01:00
Guilherme Diego
123a635f00 Example to create next application with scoped/external css. (#1340)
* First structure for external css example

* Remove: Builded files

* Fix: Identation to 2 spaces

* Fix example

* Fix lint

* Fix: Review points
2017-03-15 15:21:48 +01:00
Tim Neutkens
228bbbef74 Use jsonPageRes instead of xhr (#1424) 2017-03-15 08:07:29 +05:30
Adam Soffer
d5bd8c7d03 Update with-apollo example (#1394)
* 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

* Update Apollo example

* Remove trailing comma

* Update reduxRootKey

* Remove unnecessary babelrc

* Update with-apollo example

- Remove use of deprecated 'reduxRootKey' option
- Add loading indicator inside pagination button
2017-03-14 23:41:55 +01:00
Tim Neutkens
68a7b59b19 Upgrade styled-components. Fixes #1416 (#1422) 2017-03-14 13:18:10 -07:00
Luke Edwards
4ad5e2e0dc Examples: Update Inferno & Preact (#1407)
* clean & bump inferno & preact pkgs

* reenable UglifyJS for preact
2017-03-13 22:05:04 +01:00
Jayden Seric
02e697cb0d Updated with-apollo example. (#1389)
- Deleted several unused dependencies.
- Updated dependencies.
- Simplified Apollo related imports thanks to react-apollo exporting apollo-client and graphql-tag since [v0.13.2](https://github.com/apollographql/react-apollo/blob/master/Changelog.md#0132).
- Tidied the readme and added a link to the Apollo docs.
2017-03-12 08:33:01 +01:00
Sergio Daniel Xalambrí
38822717a9 Add support for URL objects in Link and Router (#1345)
* Add support for URL objects in Link and Router

* Fix typo in comment

* Fix possible bug if the `href` prop is `null`

* Document the usage of URL objects in Link and Router

* Update readme.md

* Parse URL to get the host & hostname in `isLocal`

This should check if the current location and the checked URL have the same `host` or `hostname`.

* Format `as` parameter from object to string if required

* Format `href` and `as` inside the construct and componentWillReceiveProps

* Use `JSON.stringify` to compare objects

* Add usage example

* chore(package): update chromedriver to version 2.28.0 (#1386)

https://greenkeeper.io/

* Refactor the codebase a bit.

* Change the example name.

* Add a few test cases.

* Add the example to the README.
2017-03-12 09:27:51 +05:30
Larry Lu
4fb7e4bc64 Fix typo (#1380)
port 300 -> 3000
2017-03-10 09:10:44 +01:00
Sergio Daniel Xalambrí
bb3ceaadea Fix styled-components server-render example (#1382) 2017-03-10 09:07:28 +01:00
Tim Suchanek
40573317f7 Update README.md (#1368)
Fix graph.cool link in example
2017-03-07 14:47:31 +01:00
Tim Neutkens
bf9d34df37 Disable uglify the pretty way (#1351) 2017-03-06 08:53:00 -08:00
Arunoda Susiripala
f8f3fa7dce Introducing Shallow Routing (#1357)
* Simplify route info handling.

* Add basic resolve=false support.

* Make sure to render getInitialProps always if it's the first render.

* Change resolve=false to shallow routing.

* Add test cases for shallow routing.

* Update README for shallow routing docs.

* Update docs.

* Update docs.

* Update docs.
2017-03-06 08:48:35 -08:00
Conor Dockry
193eaf4c9e Add missing ! in using-preact example (#1355) (#1356) 2017-03-06 10:46:02 +05:30
Orlin M Bozhinov
563856f477 postcss-loader, postcss-easy-import, normalize.css and autoprefixer (#1352) 2017-03-05 07:48:37 -08:00
Tim Neutkens
5947716ff7 Implement preact/inferno SSR (#1346)
* Use module-alias to alias preact server side

* Use module-alias to alias inferno server side

* Remove unneeded routes example
2017-03-04 17:47:56 -08:00
Tim Neutkens
2a1f8ad387 Fix linting errors in standard 9.0 (#1333)
* Fix linting errors in standard 9.0

* Update lockfile
2017-03-02 16:17:41 -08:00
Arana Jhonny
bc47aac8f4 Fixed some problems with standard (#1331) 2017-03-02 22:46:16 +01:00
Orlin M Bozhinov
38cc82d0bc With global stylesheet paths (#1327)
* with-global-stylesheet without relative paths and with node_modules

* a parenthetical remark about material-components-web not being part of the example
2017-03-02 08:37:58 -08:00
fridays
7c8cd4bc69 Example with next-routes (#1290)
* Example with next-routes

* optimize description

* rename to with-next-routes
2017-03-01 09:42:47 -08:00
Arana Jhonny
68d48cb004 Update Koa example for Koa 2 with async/await (#1317) 2017-02-28 21:49:58 +01:00
Tim Neutkens
e1babdfe9d Render styled-jsx in _document example (#1287) 2017-02-28 05:15:49 +05:30
Tim Neutkens
f8f90955c5 Add prefetch to propTypes + flow typings (#1295) 2017-02-27 10:50:28 +05:30
Tim Neutkens
408633c1dc Remove traces of glamor (#1286)
* Remove traces of glamor

As talked about with @rauchg. Glamor takes up around 60KB of the bundle (pre-gzip). Since styled-jsx is the way to go now and we support adding glamor by the user we should remove it as dependency cause it is bundled even when not used.

Added rehydration to the example, since we did that in our code.

There is only one thing I'm not sure about and want to discuss:
what should we do with next/css. Right now I added a throw for when it is imported. I'm not sure if we should do that / some other way to notify the user it has been removed. The reasoning behind the throw is that when we would do a console.warn the user would see 'css.default.<X>' not found because we don't have the glamor dependency anymore.

* Update yarn.lock

* Remove test for styles
2017-02-26 17:58:00 +05:30
Sébastien Dubois
6ede206d82 update link prefetch syntax in examples (#1276) 2017-02-25 15:54:42 +01:00
Eric Ferraiuolo
e24db68f8b Add example app with React Intl (#1055)
* Add example app with React Intl

Fixes #1022

* Update examples/with-react-intl/package.json to be consistent
2017-02-24 22:45:18 +01:00
Tim Neutkens
9ba7a10f85 Fix linting errors (#1235) 2017-02-21 21:52:44 +01:00
Fabien Le Frapper
22c22efc35 Fix missing dependencies (#1232)
Tried to pull & run this example, it failed, complaining about missing react & react-dom dependencies
2017-02-21 16:40:18 +01:00
Davide Bertola
d4b018e91f add ‘with-refnux’ example (#1215) 2017-02-20 20:13:05 -08:00
Tim Neutkens
e5844314e3 Fix linting errors (#1197) 2017-02-18 20:12:19 +01:00
胡子大哈
bdd5b9ef3d Add note for next-connect-redux #1193 (#1203) 2017-02-18 19:39:34 +01:00
Guillermo Rauch
47e5231cdd Revert "Use the original idea of provider wrapper for redux example (#1201)"
This reverts commit ba54c6ac3d.
2017-02-18 14:11:54 -03:00
胡子大哈
ba54c6ac3d Use the original idea of provider wrapper for redux example (#1201)
Use the original idea of provider wrapper from #1193 and remove
unnecessary `initStore` in every page.
2017-02-18 14:03:02 -03:00
Kirill Konshin
f0cb5b71a0 Added next-redux-wrapper to example (#1196)
* Added next-redux-wrapper to example

* Docs, renamed withRedux
2017-02-18 01:10:27 -03:00