Code Monkey home page Code Monkey logo

similarity-api's People

Contributors

joschan21 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

similarity-api's Issues

'Create' API route not working when using new Route Handler functionality in NextJS13

The current setup of the 'Create API key' route has been setup using the old 'Pages/Api' setup of NextJS. When copying this logic to the new Route Handler logic of NextJS 13, this does no longer work.

I have fixed the issue and refactored the 'Create API Keys' route so that it works with the latest functionality of Route Handlers. This new way of working with the ROUTE handlers also eliminates the need of the 'withMethods' middleware function to limit the HTTP methods that can call the route.

I can create a PR if you want.

Current NextJS version that I am using is: 13.3.1

Prisma problem after sign in

Hello there,I've got some problems with prisma after trying to sign in.It should redirect me to the /dashboard (http://localhost:3000/dashboard) but instead it redirects to a 404 page with the url of http://localhost:3000/login?callbackUrl=%2Fdashboard&error=Callback even if i have the dashboard page ready up.
Also there is a ton of errors from prisma after the sign in process such as "Invalid prisma.account.findUnique() invocation: {
where: {
provider_providerAccountId: {
~~~~~~~~~~~~~~~~~~~~~~~~~~
providerAccountId: '....',
provider: 'google'
}
},
select: {
user: true
}
}"

I also tried to change to exact same version of prisma, as the time i was watching the video,prisma have been updated their app and I do not know how to solve this. Thanks!

Updated Package "prism-react-renderer"

Hello! everyone.!!
Please note that the package of refence has many updates, and this tutorial was made using the version: 1.3.5

If you do not use this version, you'll receive and importation error doing the Code.tsx component.

yarn add [email protected]

Hope it helps.
Geetings from Argentina!! ๐Ÿ˜ƒ

Server/Client style mismatch

Hey there, really enjoyed the tutorial. I wanted to reach out to see if you had a solution for this. Due to the way we are using dark mode I am consistently getting this error in the console for this app, and can't seem to get rid of it:

Warning: Prop `className` did not match. Server: "bg-white text-slate-900 antialiased __className_0ec1f4 dark" Client: "bg-white text-slate-900 antialiased __className_0ec1f4"

It appears to be the way that maybe next themes (???) is appending 'dark' or 'light' on the server side, but it is not reflecting on the client.. Did you happen to encounter this or find a resolution for it? I have resolved this in another project using the original pages directory by migrating the styles to globals.css and using the @apply directive, but it cannot appear to work this way for the app directory because I think i'm understanding we are required to use the and tags in layout.tsx

return () => clearInterval(intervalId)

Hi, I'm studying your videos, thanks a lot, but when I started the Code.tsx part, there is a little doubt that return () => clearInterval(intervalId) is used as the return value of the callback function for setTimeout. I think it will not work and should it be used as the return value of the useEffect callback function for clearing the memory.

useEffect(() => {
    if (show && animated) {
      let i = 0
      setTimeout(() => {
        const intervalId = setInterval(() => {
          setText(code.slice(0, i))
          i++
          if (i > code.length) {
            clearInterval(intervalId)
          }
        }, 15)

        return () => clearInterval(intervalId)
      }, animationDelay || 150)
    }
  }, [code, show, animated, animationDelay])

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.