albingroen / prismabuilder.io

Build your Prisma schema visually in this easy-to-use web based tool
https://www.prismabuilder.io
278 stars 30 forks source link

Add file upload support #63

Closed dmateiu closed 1 year ago

dmateiu commented 1 year ago

Description

I've added support for uploading a Prisma schema from the local file system, as copying the schema felt cumbersome.

Disclaimer: I'm usually not working on frontends, and this is the first time I'm working on a react app - you might want to check the code more carefully.

vercel[bot] commented 1 year ago

Someone is attempting to deploy a commit to a Personal Account owned by @albingroen on Vercel.

@albingroen first needs to authorize it.

albingroen commented 1 year ago

I think you could reuse quite a bit of code between the FileUploadSchemaEditor.tsx and ManualSchemaEditor.tsx files

albingroen commented 1 year ago

Since I released a big refactor and design refresh yesterday which will cause a lot of merge conflicts, I will close this PR and take on the responsibility of reimplementing this functionality myself 👍

albingroen commented 1 year ago

Since I released a big refactor and design refresh yesterday which will cause a lot of merge conflicts, I will close this PR and take on the responsibility of reimplementing this functionality myself 👍

It's now live 🎉