Commit graph

488 commits

Author SHA1 Message Date
Juan Gallo
e1d9ae27f0 only-client-render-external-dependencies example (#3229) 2017-11-05 17:20:24 +01:00
Tim Neutkens
18f8ab392a Merge branch 'master' into canary
# Conflicts:
#	examples/with-apollo/lib/initApollo.js
#	examples/with-apollo/package.json
#	examples/with-react-with-styles/package.json
#	examples/with-static-export/package.json
#	package.json
2017-11-05 11:01:59 +01:00
Leandro Ardissone
a35e747e24 Added Sentry.io example (#3215)
* Added Sentry example

* Code style fixes

* Fixes docs + removed demo DSN + send error to comp
2017-11-04 15:06:16 +01:00
Leonardo Quixada
b41d177609 Dropped isomorphic-fetch in examples in favor of isomorphic-unfetch. (#3230) 2017-11-04 15:05:16 +01:00
Andy Kenward
8bb31f0960 fix : example/with-noscript to use next@latest and react-dom (#3237)
* example with-noscript use next@latest

* fix : example/with-noscript react-dom/server usage

Since the update to react ^16.0.0 react-dom import location has changed
2017-11-04 11:25:39 +01:00
Andy Kenward
c29ec6bdd0 example/with-static-export update react & next dependencies (#3238)
`next@latest` instead of beta
react 16
2017-11-04 11:24:54 +01:00
Jerome Fitzgerald
a450502a0d [fix] with-apollo: Cannot read property 'data' (#3226)
* [fix] with-apollo: Cannot read property 'data'

When we create the initial serverState, we need to create the
 eventual construct of the Apollo Data to reside within

Later in the constructor this allows for the initApollo to either
 be generated from SSR, or to init from scratch.

Fixes
> Cannot read property 'data' of undefined
> TypeError: Cannot read property 'data' of undefined

* [refactor] with-apollo: reduce init `serverState`

No need to explicitly set `data` as empty.
This trims up 4 lines. 😀
2017-11-04 11:24:16 +01:00
Kitti Piyapan
28767c06d1 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
2017-11-02 17:56:14 +01:00
Thomas Kolar
6089377c6b Fix/Update react-with-styles & aphrodite example (#3224)
* chore(package): Update dependencies for aphrodite and react-with-styles

* refactor: Update example to current version of react-with-styles
2017-11-01 19:53:45 +01:00
Tim Neutkens
c8059b9f12 Make sure linting passes 2017-10-31 08:58:00 +01:00
Remy Sharp
4c18678d54 Create example of activeClassLink using withRouter (#3188) 2017-10-30 15:24:31 +01:00
Ismael Martínez
015d06a331 Upgrade React for examples with next@latest (#3196) 2017-10-29 00:58:17 +02:00
Sebastian
741f211331 with-apollo example using Apollo 2 (#3180)
* Updated dependencies related to Apollo and React.

* Updated libs with Apollo 2 new set of modules.

* Updated to Apollo 2 react integration modules.

* Updated withData to separate apollo state from the app's state.
2017-10-29 00:58:17 +02:00
Wes Bos
4314802422 Update styled components for React 16 (#3187)
Next 4 only works with React 16, so for this example to work we need an update.
2017-10-29 00:58:17 +02:00
Ismael Martínez
78aa068a12 Upgrade React for examples with next@latest (#3196) 2017-10-28 09:26:00 +02:00
Sebastian
c0eca35810 with-apollo example using Apollo 2 (#3180)
* Updated dependencies related to Apollo and React.

* Updated libs with Apollo 2 new set of modules.

* Updated to Apollo 2 react integration modules.

* Updated withData to separate apollo state from the app's state.
2017-10-28 09:19:56 +02:00
Wes Bos
2d3192e4b8 Update styled components for React 16 (#3187)
Next 4 only works with React 16, so for this example to work we need an update.
2017-10-26 21:29:53 +02:00
Shu Uesugi
9320d9f006 Add with-global-stylesheet-simple (#3157)
* Add with-global-stylesheet-simple

* Lint fix
2017-10-23 20:25:16 +02:00
Ismael Martínez
8c60a2e35d Fix with-amp example (#3153)
React v16 supports invalid DOM attributes now. 
ReactInjection and DOMProperty throws an error.
Reference: #3152
2017-10-23 14:37:45 +02:00
Ismael Martínez
e5c46c2632 Update React on with-socket.io example (#3151)
Next.js v4 requires React v16.
2017-10-23 11:23:50 +02:00
Jerome Fitzgerald
89691cbe0c [chore] Examples: styled-jsx-plugin-sass@0.2.0, show dynamic (#3137)
* [chore] styled-jsx-plugin-sass@0.2.0, show dynamic

styled-jsx-plugin-sass had an update that now allows for sass and
 dynamic to live together.

This updates that package and updates the example slightly to show how.

* [fix] errant space in styled-jsx-scss example
2017-10-20 19:29:02 +02:00
Li Weinan
9b53d007e7 [update example - with-apollo-and-redux] pin dependencies (#3130)
* update dependnecies

* keep next version as `latest` and depend on `react@^16.0.0`
2017-10-19 14:42:24 +02:00
Mariano Fernández Cocirio
474085b68a Jest example updated (#3123)
* jest example updated

* reverted changes on yarn.lock
2017-10-17 20:59:22 +02:00
Tim Neutkens
47d3cfd0fd Upgrade React for all examples (#3113) 2017-10-17 08:11:46 +02:00
Stephen Daves
b7406e90c5 Fix url typo (#3111) 2017-10-16 21:28:25 +02:00
Tim Neutkens
ae44109f6d Add styled-jsx-plugin-sass example (#3104)
* Upgrade dependency on next

* Add styled-jsx-plugin-sass example

* Update readme
2017-10-16 12:08:24 +05:30
Connor Bär
9b129f883d Fix 'Deploy to now' link for with-styled-jsx-plugins example (#3103) 2017-10-16 08:16:09 +02:00
Tim Neutkens
e9d14613d4 Make styled-jsx configurable (#3050)
* Make styled-jsx configurable

* Add styled-jsx-plugin-postcss example

* Add styled-jsx 2.1.0 with plugins support

* Move examples around and add description

* Add link to new example
2017-10-15 19:54:57 +02:00
Mariano Fernández Cocirio
2f6e43f57f Update styled-jsx-postcss example (#3083)
* Update babel-preset.js

As './dist/server/build/babel/preset' now return a function, in this example we need to first call the function and after that replace styled-jsx

* linting issues solved
2017-10-13 23:28:42 +02:00
Sitian Liu
a25cb412bf Firebase server side auth example update: don't fetch messages server-side if user is not found (#3087)
* don't fetch messages server-side if user is not found 

Currently, the component always fetch everything under '/messages' even if the user is not authenticated on the server side. Update it to not fetch if the user is not found as a better example on handling.

* fix lint error
2017-10-13 23:08:41 +02:00
Kohei Hasegawa
63ac27b900 Update TypeScript example (#3074) 2017-10-11 21:36:04 +02:00
Eric Redon
96f5bcbd57 Uplift with-global-stylesheet example (#3076)
* Fix with-global-stylesheet example by depending on React≥16

* Bump other dependencies of with-global-stylesheet example
2017-10-11 21:32:45 +02:00
Hugo Meissner
573692c137 emotion v8 + adjustments for breaking changes (#3054)
* emotion v8 + adjustments for breaking changes

* Corrected versioning

* Take hydrate from 'react-emotion'

I was actually wondering that, but haven't seen hydrate in the medium post (even though you pointed out that react-emotion exports all of emotion and I've seen it in source) and didn't want to risk it for the off chance that it *should* be imported directly from emotion for some reason :D
2017-10-09 23:18:37 +02:00
Simon Hänisch
7fe20ed285 update readme for using-preact example (#3062)
There was a missing "is" in one of the sentences.
2017-10-09 22:55:56 +02:00
Guilherme Diego
ebfa08fdff Add details to with-scoped-external-css (#3055) 2017-10-08 16:55:17 +02:00
Tom MacWright
559c25253e Configurable opts for babel-preset-env + babel-plugin-transform-runtime (#2991)
* Configurable opts for babel-preset-env + babel-plugin-transform-runtime

This adds `preset-env` and `transform-runtime` options to the
`next/babel` Babel preset, which are then passed through to those
presets and transforms. This allows configuration to keep next.js
from the default 'maximum' transform, and instead use built-in
implementations of globals, classes, async, and other commonly-supported
features.

Fixes #2989

* Use spread notation instead of Object.assign
2017-10-07 08:38:59 +02:00
James Hegedus
594b214a23 Update with-firebase-hosting. (#3032)
Simplify scripts.
2017-10-05 08:28:46 +02:00
Ryan Ponce
97a6a62a6b Fix typo in README (#3038) 2017-10-03 22:13:07 +02:00
Theodore Vorillas
de8ecbbe19 Added Fastify example (#3034) 2017-10-03 07:58:26 +02:00
Alain
df5b96adec typo on line 7 (#3031)
bsb make world instead of nake world.
2017-10-02 16:12:52 +02:00
Nicholas Rakoto
016920e3e0 Example: Improve ReasonML example (#3021)
* Git ignore with-reasonml/lib folder

The lib folder contains code generated by BuckleScript, it shouldn't be
versioned.

* Fix, case sensitive paths

Next.js use case-sensitive-paths-webpack-plugin and BuckleScript tries
to maintain the filename case.

* Refactor, use a .babelrc file instead of a babel config in package.json

This is the official recommended way in Next.js

* Enable way, way, waaaay nicer error messages!

Adds `"bsc-flags": ["-bs-super-errors"]` to the bsconfig.json file.

https://reasonml.github.io/community/blog/#way-way-waaaay-nicer-error-messages

* Fix npm scripts & use concurrently to run bsb & next in parallel for dev

* Upgrade bs-platform

* Replace statefulComponent with new reducerComponent

https://github.com/reasonml/reason-react/blob/master/HISTORY.md#024

* Upgrade with-reasonml example to next.js 3
2017-09-30 22:02:45 +02:00
Tim Lucas
bf1927436c Update the hash-statics example to support sub-dirs (#3015) 2017-09-30 09:00:23 +02:00
Jimmy Moon
846f734da3 Add webpack-bundle-size-analyzer example (#3013) 2017-09-28 22:03:59 +02:00
José Netto
362fcf917a Update with-dotenv example README.md to add troubleshooting information (#2995) 2017-09-26 23:06:29 +02:00
Christian Alfoni
094bb1f7b9 Add Cerebral example (#2976) 2017-09-23 16:30:22 +02:00
estrada9166
4bd30c8713 Example: Form handler with Redux and React-bootstrap (#2949)
* Example: Form handler with Redux and React-bootstrap

* inputChange refactoring

* Destructuring inputChange
2017-09-19 21:24:28 +02:00
Srigi
d03ce5386d Example: with Freactal (#2955)
* Define dependencies & NPM stuff for the example

* Setup Babel preset

* Add sources of working version of example

* Indicate ajax loading state

* Add readme file

* Remove unneeded .babelrc
2017-09-17 23:16:19 +02:00
Shaleen Jain
093b091a5c Update styled components example (#2945)
* Update styled components example

Updates the styled-components example to pass HOC to renderPage() and fix SSR.

* fix lint errors
2017-09-14 14:17:18 +02:00
Márcio Vinícius Oliveira Sena
87d7ad2fc0 Example: Overwriting meta tag with react-helmet (#2942) 2017-09-12 14:55:40 +02:00
David Nguyen
3e8d2b37bb added with-noscript example (#2767) 2017-09-08 23:33:15 +02:00
Sergio Xalambrí
8b507a7943 Example: Add asset imports example (#2864) 2017-09-08 23:21:06 +02:00
Andrey Marchenko
b66490835c Corrected dependencies for preact and inferno (#2583)
* Corrected dependencies for the preact example. Require react and react-dom

* Corrected dependencies for the inferno example. Require react and react-dom
2017-09-08 23:15:03 +02:00
starriv
ace748dcfe More elegant application of antd (#2840)
* Update .babelrc

* Create index.js

* Update index.js

* Update index.js

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Fix linting errors
2017-09-08 23:13:52 +02:00
Tim Neutkens
6e88780419 Add missing variables (#2905) 2017-09-05 21:43:31 +02:00
Kent C. Dodds
32c3dd0476 docs(jest): add note about .babelrc (#2911)
Closes #2895
2017-09-05 18:27:17 +02:00
Sergio Xalambrí
e13bb3f62f Example: hashed statics (#2891)
* Add hashed statics example

* Fix linting
2017-09-02 00:35:45 +02:00
Brikou CARRE
32d9b75d55 Use https to prevent mixed content when served over https (#2741) 2017-09-01 11:54:03 +05:30
Arunoda Susiripala
8f874f050c [WIP] Use buildId in chunk urls as well (#2873)
Use buildId in chunk urls as well
2017-08-31 05:47:06 +05:30
Sergio Xalambrí
fd198d28a8 Example: with absolute imports (#2863)
* Add with-absolute-imports example

* Fix examples repo urls to point to master instead of v3-beta
2017-08-30 20:03:36 +02:00
Matteo Mazzarolo
a142848ef5 Added side note about enabling gzip on Koa (#2867)
I'll share this small snippet here, it might be useful.
2017-08-30 17:45:28 +02:00
Arunoda Susiripala
56662b4d84 Add/with router (#2870)
* Add withRoute HOC

Rebased (squashed)
- removed routerToProps
- updated hoist-non-react-statics
- improved propTypes

* Expose the whole Router instead of the route.

* Make the example simple.

* Update examples and the readme.

* Add a test case.
2017-08-30 19:37:12 +05:30
Tim Neutkens
eba9ebef5f Merge v3-beta into master (#2809)
* Add examples/with-redux-code-splitting. (#2721)

* #1757 Relay Modern Example (#2696)

* Add ReasonML example (#2640)

* Add ReasonML example

* Add a gitignore specifically for the reasonml example

* Allow custom className for <Main /> (#2802)

* 3.0.2

* Remove beta information from the README.

* 3.0.3

* Remove unnecessary lookup in example with emotion (#2731)

* Document SCSS/Less (#2742)

* Document SCSS/Less

* Add missing word

* Add docs for examples dir

* Add extra example

* uppercase J

* Add with pkg example (#2751)

* Add custom server micro example (#2750)

* Ease running multiple examples at the same time with process.env.PORT (#2753)

* Add line-height rule for error page h2 (#2761)

* Add support for fetching multiple translation files (#2743)

* Add support for fetching multiple translation files

* Cleanup

* Clear missed interval (#2611)

* clear missed interval

* remove trailing whitespace

* Relay Modern Example (#1757) (#2773)

* Simplification of Relay Modern Example (#1757) (#2776)

* Use deterministic names for dynamic import (#2788)

* Always use the same name for the same dynamic import.

* Add unit tests for the modulePath generation.

* Allow tests to run correctly on Windows.

* Make the chunk name a bit pretty.

* Fix tests to run on Windows.

* 3.0.4

* Revert "Make the chunk name a bit pretty." (#2792)

This reverts commit 0c9e8cf2271955e74ab9f752b5869b98c1dc60f9.

* 3.0.5

* Use _ as the divider for dynamic import name splitter. (#2793)

Using - gives us some weird webpack errors.

* 3.0.6

* next/dynamic Error Message Tweaks (#2798)

* Fixed issue (#2804)

https://github.com/zeit/next.js/issues/2800

* docs(material-ui): move the source code to Material-UI repository (#2808)
2017-08-27 22:13:35 +02:00
Julian Wilson
b543795fc0 Clarify usage of connect in README.md (#2845)
Added a quick example of how to use `connect` in `react-redux` as there are no examples in this example.
2017-08-27 20:56:52 +02:00
Matija Marohnić
3c92524b06 Update example with emotion (#2837)
* Update example with emotion

Emotion is now split into separate packages using Lerna.

* Update Next.js in emotion example
2017-08-24 08:27:49 +02:00
Brikou CARRE
c689bc9f8b Simplify condition in mobx example (#2812) 2017-08-19 18:02:40 +02:00
Leo Lamprecht
18e447afc5 Linked post about Next.js + Electron 2017-08-19 16:37:09 +02:00
Olivier Tassinari
232ba01f84 docs(material-ui): move the source code to Material-UI repository (#2808) 2017-08-18 22:42:45 +02:00
Penn Su
ccc9ff2201 Fixed issue (#2804)
https://github.com/zeit/next.js/issues/2800
2017-08-18 18:46:30 +02:00
Petr Vlček
ed0c144af9 Simplification of Relay Modern Example (#1757) (#2776) 2017-08-15 07:50:56 +02:00
Petr Vlček
708193d227 Relay Modern Example (#1757) (#2773) 2017-08-14 18:41:12 +02:00
Denis Lukov
726499ff14 Clear missed interval (#2611)
* clear missed interval

* remove trailing whitespace
2017-08-13 15:44:14 +02:00
whphhg
8acdae66d7 Add support for fetching multiple translation files (#2743)
* Add support for fetching multiple translation files

* Cleanup
2017-08-13 02:28:20 +02:00
Brikou CARRE
ba65b07dff Ease running multiple examples at the same time with process.env.PORT (#2753) 2017-08-10 20:15:46 +02:00
Sergio Xalambrí
d0b95d9bda Add custom server micro example (#2750) 2017-08-10 08:07:00 +02:00
Sergio Xalambrí
cc5289a89f Add with pkg example (#2751) 2017-08-10 08:06:14 +02:00
Matija Marohnić
029bac4fd9 Remove unnecessary lookup in example with emotion (#2731) 2017-08-09 17:26:45 +02:00
Arunoda Susiripala
4fc545245a Merge with master. 2017-08-09 12:04:14 +05:30
Sergio Xalambrí
4b0467ed42 Add Electron example (#1430)
* Add Electron usage example

* Remove the deploy part

* Only allow GET request to our HTTP server

* Only allow request from an electron app (checking the user agent)

* Add warning about the local HTTP server

* Update package.json

* Update example to use Next.js v3

* Added required package.json fields with placeholders

* Use next:// file protocol to open internal built files

* Create next.config.js

* Update set-menu.js

* Update example to merge it with electron-next-skeleton ideas
2017-08-09 07:56:23 +02:00
Sergio Xalambrí
fe4e53e5db With recompose (#2712) 2017-08-07 19:37:44 +02:00
Dmytro V. Dogadailo
256f9dc765 Add missed dev dependencies for examples/using-preact (#2714) 2017-08-06 19:22:01 +02:00
Alvin
65ff72aada renames misspelt placeholder.html (#2703) 2017-08-03 08:04:03 +02:00
SangWon Kim
37362c3e98 Fix typo (#2692) 2017-08-01 07:29:52 +05:30
Boris Berman
f0779e95d6 Grammar fix (#2686)
pseedo -> pseudo
2017-07-31 17:36:28 +05:30
Claus Klingberg
4f0592a584 Material-UI example: Pass through unrelated props to wrapped component (#2664) 2017-07-30 22:22:38 +02:00
James Hegedus
b27526b6ff with-firebase-hosting update (#2683)
* Fix link in with-firebase-hosting example

* with-firebase-hosting example

Update npm scripts & README
2017-07-30 14:02:16 +02:00
Tran Dac Anh
c87b471b22 Example to add custom reverse proxy like in webpack-dev-server (#2660)
* add with-custom-reverse-proxy example

* cleanup

* cleanup package.json

* fix linting errors

* more linting errors
2017-07-29 14:45:12 +02:00
Renan Couto
93e15a23b9 Remove stage-0 from dependencies on example (#2656)
This PR removes `babel-preset-stage-0` from the dependencies list, that was missing on #1959.
2017-07-27 13:47:49 +05:30
Tim Neutkens
cf130c70f0 Prefix process.env to avoid inconsistency (#2647) 2017-07-26 20:39:21 +02:00
James Hegedus
84de7f9397 With Firebase Hosting Example (#2642)
* Rename Firebase Auth example

* Update gitignore to include npm5 lockfile

* Cloud Function

* Add Next app with two pages to demonstrate navigation

* Add Firebase Hosting and configuration to Host & Deploy

* Fix errors in rename for firebase-auth example

* Recommend pkg managers with caches for better perf

* Update with-firebase-hosting example

Fix code

* Update with-firebase-hosting example

Fix npm scripts and package.json files

* Update with-firebase-hosting example

Update README & install scripts

* Update with-firebase-hosting example

Update example package name

* Update with-firebase-hosting example

Fix to use single-quotes

* Update with-firebase-hosting example

VSCode did not like single-quotes! Sorry

* Fix gitignore file
2017-07-26 07:52:49 +02:00
Olivier Tassinari
58c2d138d0 examples(material-ui): change the wrapping strategy (#2648)
By creating an intermediary component (with the HOC)
we save some React rendering logic.
That's also addressing an issue with JssProvider (react-jss)
that generate a new index at each render.
2017-07-25 22:42:23 +02:00
Olivier Tassinari
c84bf2ea32 Update material-ui example (#2630) 2017-07-24 06:39:36 +02:00
Talasan Nicholson
337471d684 Add page transitions example (#2613) 2017-07-22 10:00:15 +02:00
Micooz Lee
24a67ee967 examples/with-react-helmet: upgrade react-helmet to v5.1.3 and fix invariant violation caused by bodyAttributes (#2587) 2017-07-18 08:03:21 +02:00
Jan Mühlemann
e7d91bf692 adds with react-i18next example (#2558)
* adds with react-i18next example

* lint example code

* remove unneeded .babelrc
2017-07-16 22:19:45 +02:00
Matt
6ff89b1f52 Update with-emotion to flush SSR styles on refresh (#2565)
* Update with-emotion to flush SSR styles on refresh

* with-emtotion: remove @apply, use composes

* fix env determination
2017-07-15 09:32:14 +02:00
Jun Matsushita
b47395ab2f Fix non valid trailing comma (#2560) 2017-07-15 09:08:08 +05:30
Kent C. Dodds
96182bc180 add babel-macros example (#2563) 2017-07-14 23:22:25 +02:00
Brent Mealhouse
543f2854cb Add with-redux-saga example (#2551) 2017-07-13 20:55:29 +02:00
Nikolay Kolev
b253479a94 Fix the build of with-material-ui-next (#2550) 2017-07-13 13:11:20 +02:00
Marie-Laure Thuret
94c484e80d docs: add algolia-react-instantsearch example (#2544)
* docs: add algolia-react-instantsearch example

* fix: style
2017-07-12 20:00:47 +02:00
Tobias Barth
24c2e9954a Add stringify advice to MobX example readme. (#2541) 2017-07-12 15:24:03 +02:00
Nguyen Hoang Phuc
530b561039 Add example for usage of redux + reselect + recompose (#2523)
* implemented example for using redux with reselect and recompose

* removed unused package

* fixed linting issue

* fixed linting issue
2017-07-11 20:17:00 +02:00
Sagi
ab82f06c87 Added react and react-dom dependencies (#2518)
* Added react and react-dom dependencies

Added missing `react` and `react-dom` dependencies which are required by next.js

* Moved react & react-dom to dependencies

Moved react & react-dom to dependencies from devDependencies
2017-07-09 15:26:35 +02:00
Ashley
5a0c61a78c Update next.config.js (#2511) 2017-07-09 13:52:35 +02:00
myxvisual
a0d85d8bee fix: Update react-uwp example support Next 3 (#2464)
* fix: Update react-uwp example support Next 3

* style: Update linted codes
2017-07-08 14:12:01 +02:00
Sergio Xalambrí
6535b5646b Example Rebass (#2490) 2017-07-08 14:05:46 +02:00
Arunoda Susiripala
6715da98ac Update README.md 2017-07-08 17:14:14 +05:30
Arunoda Susiripala
a1b74a0849 Update README.md 2017-07-08 17:13:57 +05:30
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 &gt; .MuiGrid-typeItem-3088349198 {
  font-family: &quot;Roboto&quot;, &quot;Helvetica&quot;, &quot;Arial&quot;, sans-serif;
}
```
2017-05-30 20:51:52 +02:00