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

294 commits

Author SHA1 Message Date
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