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

2103 commits

Author SHA1 Message Date
yhirano55 e8c7dd4958 Fix with-mobx example (#4394)
fixes #4390

* Installing only `babel-plugin-transform-decorators-legacy` didn't work
* It also needs to install `babel-plugin-transform-class-properties`
2018-05-16 10:20:13 +02:00
Tim Neutkens 4b0f10ba93 6.0.3-canary.1 2018-05-16 10:09:34 +02:00
Tim Neutkens 44c7aa44c3 Make sure _document doesn’t reload the page when switching pages 2018-05-16 10:08:18 +02:00
Tim Neutkens 3a6fee2a8a 6.0.3-canary.0 2018-05-16 00:40:36 +02:00
Tim Neutkens a65839eace Merge branch 'master' into canary 2018-05-16 00:40:02 +02:00
Tim Neutkens 535bab167b
Fix double-reload / redirect when changing pages (#4388)
When changing a page `/_app` can be seen as “updated”,  but the router shouldn’t reload it, because there is an ongoing/going to be ongoing update.
2018-05-16 00:36:24 +02:00
yhirano55 3db3f4b42a Improve with-redux example (#4377)
It's better that Counter behave not only `increment (add)` but also `decrement` or `reset`.

* Add decrement, reset handlers and rename add handler in `components/counter.js`
* Add increment, decrement, reset actions to `store.js`
* Rename page component class name: Counter => Index in `pages/index.js`
* Remove needless dispatch count event on getInitialProps in `pages/index.js`
* Format JSX to be readable in `pages/_app.js`
* Remove needless line from `components/examples.js`
* Remove needless spaces in `lib/with-redux-store.js`
2018-05-15 09:49:07 +02:00
Tim Neutkens 2c0d600280 Move template into the right directory 2018-05-14 17:42:52 +02:00
Tim Neutkens a6e3012466 Add question about Next.js template 2018-05-14 17:24:09 +02:00
Tim Neutkens 85e13b9bd9 Rename Custom.md to Nextjs.org_showcase 2018-05-14 17:16:04 +02:00
Tim Neutkens a235551487 Remove old issue template 2018-05-14 17:13:01 +02:00
Tim Neutkens f88aa60bec Add issue templates 2018-05-14 17:12:09 +02:00
yhirano55 c762dc10d7 Add license section in with-pretty-url-routing [ci skip] (#4366) 2018-05-14 01:40:08 +02:00
yhirano55 f29d6671bf Update with-asset-imports [ci skip] (#4365)
* Add name, version, license to package.json
2018-05-14 00:29:39 +02:00
yhirano55 82e77a8838 Update ssr-caching example (#4363)
* Remove unnecessary dir key from next's argument
* Add license section to package.json
2018-05-14 00:00:37 +02:00
yhirano55 8512bf49f7 Update pass-server-data example [ci skip] (#4362)
* Update react, react-dom major version
* Add license section to package.json
* Use isomorphic-unfetch instead of isomorphic-fetch
2018-05-14 00:00:03 +02:00
Tim Neutkens b0bbf72347 6.0.2 2018-05-13 20:28:21 +02:00
Gaston Fartek 4f59c95149 updating with-redux-saga example (#4356) 2018-05-13 18:26:17 +02:00
yhirano55 af1082286e Fix class name in data-fetch example (#4358)
* Fixed class name in data-fetch example
* Removed needless empty lines
2018-05-13 18:12:03 +02:00
yhirano55 b2047de51a Update package.json in with-docker example (#4359)
* Added name, version, license keys.
2018-05-13 18:10:00 +02:00
yhirano55 8c5c2c23bb Update babel-plugin-module-resolver version in with-global-stylesheet (#4360)
I found build error, so I've updated babel-plugin-module-resolver
2018-05-13 18:09:25 +02:00
yhirano55 b3e47d19f8 Update README in with-global-stylesheet-simple [ci skip] (#4361)
Use https instead of http for tachyons URL
2018-05-13 18:08:44 +02:00
Petr Messner fa5c0b8a47 Fix example with-custom-babel-config: update to Babel 7 (#4349)
The option `"decoratorsLegacy": true` seems mandatory, fails without it:

> The new decorators proposal is not supported yet. You must pass the `"decoratorsLegacy": true` option to @babel/preset-stage-0
2018-05-13 00:47:56 +02:00
Tim Neutkens 355b1ad989 6.0.2-canary.0 2018-05-12 20:22:55 +02:00
Tim Neutkens db29791cdc Merge branch 'master' into canary 2018-05-12 20:20:20 +02:00
Tim Neutkens 449f38daa7
Make sure props.url is immutable (#4352)
* Make sure props.url is immutable

* Add test for immutable url

* Match object instead of string
2018-05-12 20:10:17 +02:00
Tim Neutkens 2c3f40600c Upgrade with-typescript to use latest next-typescript 2018-05-12 13:59:15 +02:00
Karthik Muralidharan 16ff96b107 rename; Clock.js to clock (#4342)
Fixes the compilation error : 

```
* ./clock in ./components/examples.js
ModuleNotFoundError: Module not found: Error: [CaseSensit
ivePathsPlugin] `/components/clock.js` does not matc
h the corresponding path on disk `Clock.js`.
```
2018-05-11 22:08:42 +02:00
Tomas Carnecky 7f621324fc Set this.mounted to false when dynamic component is unmounted (#4333)
Otherwise you may get a React warning about calling setState() on an unmounted component.
2018-05-11 17:07:06 +02:00
Tim Neutkens 837c6ed23a 6.0.1 2018-05-11 15:10:49 +02:00
Cédric Marcone d3c710b325 Fixes 'next export' when exportPathMap function depends on runtime config (#4339) 2018-05-11 14:52:39 +02:00
Kyle Kelley 9de2c408c7 Don't comment after locking with the bot (#4331) 2018-05-11 00:04:34 +02:00
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
Tim Neutkens d6ca2f89b8 Add Lock Threads configuration 2018-05-10 19:37:56 +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
Tim Neutkens 8588e8d812 6.0.1-canary.2 2018-05-09 11:25:02 +02:00
Tim Neutkens 1dda50cbc5
Upgrade react-hot-loader (#4317) 2018-05-09 11:23:53 +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
Tim Neutkens 4bec4cc6f7
Test stateful component style update (#4309) 2018-05-08 17:34:24 +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
Drew Hays 4881cd346b Update Cache-Control for render errors (#4111)
When running some tests, I noticed that Akamai was still caching the
response for render errors for some reason.  Honestly, I would've
thought that `no-store, must-revalidate` would be enough to prevent
the CDN from caching it.

That being said, MDN's documentation on [Cache-Control] has a section
called ["Preventing Caching"] and recommends also using the `no-cache`
directive.

Given the definitions provided for `no-cache` and `no-store`, I can't
tell much of a difference between these two.  But I _do_ know that,
for whatever reason, Akamai seems to respect the `no-cache` value for
this header.

[Cache-Control]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control
["Preventing Caching"]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control#Preventing_caching
2018-05-06 22:57:27 +02:00
Tim Neutkens 91c21805f2 6.0.1-canary.1 2018-05-06 18:40:21 +02:00
Tim Neutkens eb25cf4cb5
Support Node 6 again. check if async/await is supported (#4283) 2018-05-06 18:39:29 +02:00
Tim Neutkens aaa15ebddd
Add source-map dependency (#4281) 2018-05-06 10:56:25 +02:00
Tim Neutkens e21ccad33a Revert "Add source-map module to dependencies"
This reverts commit b970e25e6f.
2018-05-06 07:02:38 +02:00