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

1442 commits

Author SHA1 Message Date
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
Arunoda Susiripala e2fb50c301 Merge master with v3-beta. 2017-07-28 18:56:38 +05:30
Arunoda Susiripala a6d635e1d3 2.4.9 2017-07-28 18:36:03 +05:30
Arunoda Susiripala 5ce4f432cd Make sure the /static working properly. (#2675) 2017-07-28 18:33:39 +05:30
Arunoda Susiripala 242739eb0f 3.0.1-beta.20 2017-07-28 11:39:49 +05:30
崔宁 67697afa44 Remove the extra plugin (#2670) 2017-07-28 10:45:04 +05:30
Laurie Voss 23444fc74e Minor grammatical fix: "resembling of" -> "similar to" (#2669) 2017-07-28 10:40:17 +05:30
Arunoda Susiripala cc9b1d6ce0 Catch router events errors and print them. (#2663) 2017-07-27 19:20:39 +05:30
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
Arunoda Susiripala 37531726c2 3.0.1-beta.19 2017-07-26 22:33:15 +05:30
Arunoda Susiripala 10241fe610 Fix the route redirect error when we've multiple path params. (#2652)
For an example, with a URL like: /static/data/hello.txt
2017-07-26 22:31:49 +05:30
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
Tom Coleman 051ee314e9 Also update Router.push example with object URL (#2639)
Following on from f8950e9b4c
2017-07-25 06:53:21 +05:30
Arunoda Susiripala f8950e9b4c Fix README issue related to object-urls. 2017-07-24 20:26:22 +05:30
cyrilf 34830a05c9 Add a missing slash (#2634)
Improving `next.js`, one slash at a time
2017-07-24 20:05:47 +05:30
Arunoda Susiripala 564dbdd237 Add a test case to prevent issue #2617 to happen again. 2017-07-24 11:43:45 +05:30
Arunoda Susiripala c3fd0ed51a Fix test cases. 2017-07-24 11:17:53 +05:30
Arunoda Susiripala 1da009494c Merge branch 'v3-beta' of github.com:zeit/next.js into v3-beta 2017-07-24 10:21:57 +05:30
Arunoda Susiripala 7965cb299d Merge master into v3-beta. 2017-07-24 10:10:29 +05:30
Olivier Tassinari c84bf2ea32 Update material-ui example (#2630) 2017-07-24 06:39:36 +02:00
Arunoda Susiripala e319b4fdce 2.4.8 2017-07-24 10:06:31 +05:30
Arunoda Susiripala c03c86ee5e Make sure /static/ and /_next/ are valid internal urls. (#2631) 2017-07-24 10:04:06 +05:30
Tim Neutkens 06d42b99ec Ignore package-lock.json (#2623) 2017-07-23 19:51:12 +02:00
Tim Neutkens 2c7d0ec47a Uppercase location for consistency (#2622) 2017-07-23 19:50:48 +02:00
Talasan Nicholson 337471d684 Add page transitions example (#2613) 2017-07-22 10:00:15 +02:00
Ben Murden 6781a75d8b Hyperlink spelling (#2616) 2017-07-21 13:19:22 +02:00
Arunoda Susiripala f2f5b96ecb 3.0.1-beta.18 2017-07-20 23:50:05 +05:30
Arunoda Susiripala d4eb9455b8 Merge branch 'v3-beta' of github.com:zeit/next.js into v3-beta 2017-07-20 23:48:58 +05:30
Arunoda Susiripala 2f7e459210 Make dynamic import spec compliant. (#2612)
* Make dynamic import spec compliant.
Now we simply return the whole module incl. default field
In 'next/dynamic' we pick the default field if there is.
Since modules with default is mostly used next/dynamic, for the enduser, this change has no effect.

* Rename module into m
Using module could be confusing.
2017-07-20 23:21:04 +05:30
Arunoda Susiripala 89d4e0af4a Only use Node 6 as the testing Node.js version. (#2609)
It's safe to use this as we don't use any platform specific Node.js features.
2017-07-20 22:19:32 +05:30
Arunoda Susiripala 61ffc6da7f Change next/link proptypes to support the API. (#2607)
Add propTypes for replace and object support for href and as.
2017-07-20 21:54:04 +05:30
Arunoda Susiripala 4833e2ffb5 [WIP] Add more HMR test cases (#2599)
Add more HMR test cases
2017-07-20 21:30:45 +05:30
Arunoda Susiripala 3a2fdbec65 3.0.1-beta.17 2017-07-18 13:03:04 +05:30
Arunoda Susiripala 8ee024fd2d Reload the page only if the change is for the current page. (#2589)
Sometimes, we've to reload the page for some changes.
Even if so, we need to do it if that change is for the current page.
2017-07-18 13:00:25 +05:30
Arunoda Susiripala c97aca50e5 Show webpack errors in all pages. (#2588)
* Show webpack errors in all pages.
When there's a webpack error that means HMR failed too.
So, showing other pages won't makes sense since user
can't edit them and get changes via HMR.
That's why now we show the error on all pages.

* Remove exact propType checks from the error component.
When there's an error, something this check shows in the console.
That means it could accept more props.
Also this is not a public API. So, we don't want to do propType checks.
2017-07-18 12:30:23 +05:30
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
Arunoda Susiripala d831e6d39c Webpack's ModuleConcatenationPlugin plugin doesn't work well with HMR. (#2584)
So, now we only use it for production.
2017-07-17 22:16:39 +05:30
Arunoda Susiripala dba24dac9d 3.0.1-beta.16 2017-07-17 11:13:54 +05:30
Arunoda Susiripala 412389d64e Update yarn.lock 2017-07-17 11:13:28 +05:30
Arunoda Susiripala af7b875a18 Make sure module.context exist always (#2580)
Fixes #2578
2017-07-17 11:11:37 +05:30
Jayden Seric 1a02b0efa4 Added missing as propType to Link. (#2579)
This was causing the error “Failed prop type: Link: unknown props found: as in Link” when used with next-routes.
2017-07-17 10:42:36 +05:30
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
Arunoda Susiripala ed733dc14d 3.0.1-beta.15 2017-07-16 15:50:54 +05:30
Arunoda Susiripala b1b0b88945 Move react-dom into commons.js always. (#2572) 2017-07-16 15:48:21 +05:30
greenkeeper[bot] 99dd045d1c Update webpack to the latest version 🚀 (#2569) 2017-07-15 22:04:07 +02:00
Arunoda Susiripala 62a6247753 3.0.1-beta.14 2017-07-15 16:26:25 +05:30