1. 29 12月, 2020 15 次提交
  2. 28 12月, 2020 3 次提交
    • A
      fix example using-router import wrong pathname (#20536) · e4da4e5a
      armspkt 提交于
      ![image](https://user-images.githubusercontent.com/49720317/103223063-07b23000-4958-11eb-8bf9-09c39231a092.png)
      
      About page import wrong pathname causing warning like this.
      e4da4e5a
    • L
      Fix typos found on examples docs (#20516) · d96de6ea
      Laura Beatris 提交于
      This PR fixes some typos found on examples docs 
      d96de6ea
    • L
      Style improvements on MongoDB example (#20515) · bad14484
      Laura Beatris 提交于
      I've looked at the example code and saw some consistent issues related to code style. The changes applied to this PR fixes the following points:
      
      - Differences of line breaks styles between multiple files
      - Differences of if statements styles
      - Unnecessary comment
      - A typo on a JSDocs
      
      ---
      
      There were line breaks between statements on `pages/index.js`
      ````
      export async function getServerSideProps(context) {
        const { client } = await connectToDatabase()
      
        const isConnected = await client.isConnected() 
      
        return {
          props: { isConnected },
        }
      }
      ```` 
      
      And this wasn't being applied to the MongoDB utility:
      
      ````
      export async function connectToDatabase() {
        if (cached.conn) return cached.conn
        if (!cached.promise) {
          const conn = {}
          const opts = {
            useNewUrlParser: true,
            useUnifiedTopology: true,
          }
      {...}
      ````
      
      And also, as shown in the snippet above, there are different styles of if statements being used. 
      
      With that being said, the reason I made this PR is because I think that this kind of inconsistent arises questions when a contributor looks to the codebase, even if this is a simple example. 
      bad14484
  3. 26 12月, 2020 1 次提交
  4. 23 12月, 2020 4 次提交
  5. 22 12月, 2020 10 次提交
  6. 18 12月, 2020 6 次提交
  7. 17 12月, 2020 1 次提交