- 26 5月, 2020 7 次提交
-
-
由 Jan Potoms 提交于
Added a few extra types here and there while I was digging through the code
-
由 Erik 提交于
* set up with-ts-eslint-jest example app * eslint ignore new app bc it has a conflicting eslintrc * make eslint + husky setup manual * clarify app README setup notes * move page tests out of pages/ dir * Simplifying configs * extend "prettier" * format fix * Updated rules * Added husky configs and removed debug option * Removed notes and configuration * Updated pages * Added links to readme * Added example to .prettierignore * Updated snap * Make the lint work Co-authored-by: NLuis Alvarez D <luis@vercel.com>
-
由 TodorTotev 提交于
Related to [11014](https://github.com/zeit/next.js/issues/11014) First and most important, removed the getInitialProps and used getStaticProps. Then, I refactored Counter, DataList and Examples components. I have refactored them from class-based components to functional. Also in each component the redux implementation was refactored using the new hooks API, which resulted in ~40% less code. If you want me to change anything or you are not satisfied with any given change, I'm open to suggestions.
-
由 Giuseppe 提交于
-
由 TodorTotev 提交于
Related to [11014](https://github.com/zeit/next.js/issues/11014) 1. I have changed the component from class to functional. 2. I have removed the getInitialProps and used getStaticProps instead. 3. I have removed the redundant connect to redux @ the index page, due to the fact that now we can dispatch the action with the required hook. If you want me to change anything or you are not satisfied with any given change, I'm open to suggestions.
-
由 TodorTotev 提交于
Related to [11014](https://github.com/zeit/next.js/issues/11014) Upgraded all the packages from package.json, removed the saga-wrapper package since it is totally outdated to today's use. I have refactored the whole example using the new API of the next-redux-wrapper package, using their new support of "getStaticProps". All of the class components were converted to functional, using the new redux hooks API. If you want me to change anything or you are not satisfied with any given change, I'm open to suggestions.
-
由 Ayhan 提交于
-
- 25 5月, 2020 4 次提交
-
-
由 Ty Mick 提交于
https://vercel.com/blog/oss redirects to https://vercel.com. Is https://vercel.com/oss the right URL?
-
由 Jan Potoms 提交于
-
由 Takumasa Sakao 提交于
* Replace blog-starter to blog-starter-typescript * Fix unnecessary replacement
-
由 Maxi Gimenez 提交于
-
- 24 5月, 2020 14 次提交
-
-
由 Joe Haddad 提交于
* Fix method return shape * adjust type Co-authored-by: NTim Neutkens <tim@timneutkens.nl>
-
由 Joe Haddad 提交于
-
由 Joe Haddad 提交于
Noticed these tests failed for Windows on `canary`, then traced down the cause.
-
由 Maël Nison 提交于
Next is currently removing useful information from the PnP error messages. Before: ``` Module not found: Something that got detected as your top-level application (because it doesn't seem to belong to any package) tried to access a package that is not declared in your dependencies ``` After: ``` Module not found: Something that got detected as your top-level application (because it doesn't seem to belong to any package) tried to access a package that is not declared in your dependencies Required package: foo (via "foo/components/Avatar") Required by: /home/arcanis/foo/bar.tsx ```
-
由 James Mosier 提交于
This addresses #11910 in which `-e default` was not working because there was no example with the name `default`. This PR checks if a user inputted `default` as the example argument for `create-next-app` and if so it will use the local `default` template in the create-next-app directory. Closes #11910
-
由 Mohsen Azimi 提交于
My [draft PR was merged](https://github.com/zeit/next.js/pull/13193) so let's at least keep the code in canary in a working state.
-
由 Joe Haddad 提交于
This waits for the render to be committed to DOM before we render the route change complete event (no longer sync in new React). We have tests that ensure this resolves. --- Closes #12938
-
由 Joe Haddad 提交于
Closes #13254
-
由 Joe Haddad 提交于
-
由 Shu Uesugi 提交于
* Update debugging docs * typo * Update docs/debugging.md Co-authored-by: NLuis Alvarez D. <luis@vercel.com> * Update docs/debugging.md Co-authored-by: NLuis Alvarez D. <luis@vercel.com> * Clarify * Move to advanced features Co-authored-by: NLuis Alvarez D. <luis@vercel.com>
-
由 Gerald Monaco 提交于
-
由 JJ Kasper 提交于
This continues https://github.com/zeit/next.js/pull/12501 and resolves the merge conflicts since we aren't able to update that branch and would like to land this change Closes: https://github.com/zeit/next.js/pull/12501
-
由 Koji Sugimoto 提交于
* feature: add blog-starter-typescript * chore: edit tailwind.config * Fix linting Co-authored-by: Nkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> Co-authored-by: NTim Neutkens <timneutkens@me.com>
-
由 Joseph Knowles 提交于
-
- 23 5月, 2020 15 次提交
-
-
由 Jairo Tylera 提交于
This PR adds support for prepending sass code before the actual entry file. It's common for developers to import their sass mixins and variables once on their project config so they don't need to import them on every file that requires it. Frameworks like gatsby and nuxt.js already support that handy feature. The way it works is: ``` /// next.config.js module.exports = { experimental: { sassOptions: { prependData: ` /// Scss code that you want to be /// prepended to every single scss file. `, }, }, } ``` Fixes #11617 and duplicates
-
由 Vincent Voyer 提交于
This new documentation page explains how to debug your backend and frontend code in Chrome DevTools/VS Code. This works perfectly with full source map support for both Node.js and React code. Co-authored-by: Nkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
-
由 Sam Bokai 提交于
-
由 Shu Uesugi 提交于
* Add demo and note to with-mux-video * Update README.md
-
由 Dylan Jhaveri 提交于
* yarn create next-app * create an upload show page * create upload page to handle in-progress upload and asset when it is ready * move things to a layout component * add some button styling * poll for updates intelligently by dynamically setting refreshInterval on SWR hook * better title * edit gitignore, add MIT license use next 'latest' based on feedback from https://github.com/zeit/next.js/pull/12723 * add some messages and spinner to make this a little nicer * update README with environment variables info and Mux account info * add .now to gitignore * cleaner uploading state - redirect to /v/:playback_id when complete * hardset image width in footer * remove unused styles * adjust title font size on mobile and adjust footer height on mobile * use upchunk 1.0.8 so we don't have to dynamically load it * cleaner error message handling * fix brief error from returning Router on the render * yarn lint-fix * update README with note about .env.local * add min height so the layout doesn't shift after selecting a file * set poster attribute at video element * use getStaticProps and fallback:true to render meta tags for social sharing * create a pages/asset/:id route that we can be on while in the preparing state * add copy about Mux, add twitter share widget * add flash message about video ready for playback * call it pre-rendered instead of server-side rendered * pre-rendering, not server-side rendering * Next.js not NextJS * handle asset creation errors in the UI * call hls.destroy() when the component is unmounted * Updated readme and renamed .env.local * Updated description * add suggested patch with links to source code https://github.com/zeit/next.js/pull/13120#issuecomment-632858572 * Added vercel.json * Updated some links * Removed Prerequisites Co-authored-by: NLuis Alvarez <luis@vercel.com>
-
由 TodorTotev 提交于
* Modified nextjs config so that it works with all types of fonts and images. * Update next.config.js * Fix code Co-authored-by: NTim Neutkens <timneutkens@me.com> Co-authored-by: Nkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
-
由 Mohsen Azimi 提交于
Currently failing because `withStyles` can't read the interface from context: ``` Unhandled Runtime Error TypeError: Cannot read property 'createLTR' of undefined webpack-internal:///./node_modules/react-with-styles/lib/withStyles.js (150:33) ``` Manually registering the interface resolves the issue: ```diff diff --git a/examples/with-react-with-styles/pages/_app.js b/examples/with-react-with-styles/pages/_app.js index 91d09a2a9..a393572b8 100644 --- a/examples/with-react-with-styles/pages/_app.js +++ b/examples/with-react-with-styles/pages/_app.js @@ -2,11 +2,16 @@ import App from 'next/app' import React from 'react' import WithStylesContext from 'react-with-styles/lib/WithStylesContext' import AphroditeInterface from 'react-with-styles-interface-aphrodite' +import ThemedStyleSheet from 'react-with-styles/lib/ThemedStyleSheet' import defaultTheme from '../defaultTheme' class MyApp extends App { + constructor(props) { + super(props); + ThemedStyleSheet.registerInterface(AphroditeInterface) + } render() { const { Component, pageProps } = this.props ``` But that's not how it is documented. I'm following up with react-with-styles to see if this is a bug.
-
由 Jan Potoms 提交于
It seems like this was supposed to use the memoized version of `pageChecker`. I also updated the function to memoize promises instead of promise results. Just in case this function ever gets called concurrently.
-
由 Jack Moore 提交于
-
由 Ian Sutherland 提交于
-
由 Joe Haddad 提交于
This matches the `dotenv` spec: https://github.com/bkeepers/dotenv#what-other-env-files-can-i-use --- Closes #13015
-
由 Alejandro Ñáñez Ortiz 提交于
* Install UrQL dependencies - Created the examples folder `with-urql` - Installed the dependencies - Got a simple index.js page setup * Basic UrQL example - Connects to Pokemon GraphQL API * Loading Pokemon list + Pokemon page - Using `isomorphic-unfetch` because `urql` uses `window.fetch` to get data because we need to query the GraphQL API using Node (in `getStaticProps`) - Deleted `_app.js` since we're not using UrQL to query data on the clientside - Put all GraphQL related code in `/graphql` * Update README for UrQL example * Update urql casing * Update examples/with-urql/graphql/client.js Co-authored-by: NJoe Haddad <timer150@gmail.com> * Update examples/with-urql/pages/index.js Co-authored-by: NJoe Haddad <timer150@gmail.com> * Update examples/with-urql/pages/pokemon/[name].js Co-authored-by: NJoe Haddad <timer150@gmail.com> * Fix linting Co-authored-by: NTim Neutkens <tim@timneutkens.nl> Co-authored-by: NJoe Haddad <timer150@gmail.com> Co-authored-by: NJoe Haddad <joe.haddad@zeit.co>
-
由 Luis Alvarez D 提交于
-
由 xliusstk 提交于
cacheable-response.get expects a get(req, res) method signature: https://www.npmjs.com/package/cacheable-response#get Before the change: ``` curl -s -v http://localhost:3000/blog/first 2>&1 | grep HTTP/1.1 > GET /blog/first HTTP/1.1 < HTTP/1.1 404 Not Found ``` After the change: ``` curl -s -v http://localhost:3000/blog/first 2>&1 | grep HTTP/1.1 > GET /blog/first HTTP/1.1 < HTTP/1.1 200 OK ``` This is a partial fix of https://github.com/zeit/next.js/issues/12019 to make the example work. However it doesn't fix the error ``` (node:62360) UnhandledPromiseRejectionWarning: Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client ``` , which will need a change at server/next-server.ts See related issue: https://github.com/zeit/next.js/discussions/11525 https://github.com/zeit/next.js/issues/11665
-
由 Marcus Silva 提交于
This issue is related to #12964 **I changed the following examples:** `with-zeit-fetch` `with-why-did-you-render` `with-styletron` `custom-server-fastify` `custom-server-express` `with-why-did-you-render` `custom-server-hapi` `custom-server-koa` `custom-server-polka` `custom-server-typescript` `progressive-render` `ssr-caching` `svg-components` `using-preact` `with-ant-design`
-