-
-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Analyze using Vue vs. Django-Components #4738
Comments
Here's a very easy way to gradually start integrating Vue into our codebase; the only downside is you can't use Single File Components (SFC) when you include Vue via CDN cause they require a build step, and SFCs are extremely useful and one of Vue's key features, so I'd definitely look for an alternative that supports them. One option would be to create a SPA from scratch. I think the hardest part would be creating the API, because if we use Vue the frontend would be fairly easy to develop, but idk most of the logic is already there and I think DRF makes it really easy too so it might not be that bad. I love Quasar for this, it's a very underrated meta framework that works on top of Vue3 and provides several customizable components out of the box, besides taking care of many things for you. I believe it is HIGHLY underrated, and it provides several modes (SPA being one of them) that we could use which would even make it possible to eventually launch native mobile apps with the same codebase. One of Quasar's modes is SSR, which I haven't used but from what I've seen that sounds like a viable option for this. I had a chat with ChatGPT about it if you want to read it, bottom line is:
There are other alternatives I haven't used for SSR using Vue3, like Nuxt 3, so that's something we might want to consider too. |
Thanks Elisa, this is really helpful to get the conversation going. We're going to be figuring out our goals as we go a bit, unfortunately, but I'll highlight a few that I think help move this conversation forward:
I think for all of these reasons a SPA is probably out. The one reason I can think of to do an SPA would be to allow oral argument recordings to continue playing as the user navigates the site, but that's it, in my mind. I think most of our pages represent documents (except search, which should be more dynamic), and so they are well-served with SSR'ed HTML. Single File Components look great. I don't have time to look at Quasar atm, but my 30s glance makes me think it's going to be a fair bit to learn. I think we're also designing towards the tailwind component library too, not the Material Design library? Thank you again for the thoughts. I'm really looking forward to seeing where we land with this. |
PR for test components: #4800 |
I've been mulling this for days, I studied django-components a bunch over the past few days, and I spent some time talking to @elisa-a-v today. I think my post above was about right, but I'll flesh it out a bit more here. I welcome other perspectives — this is a big proposal with a lot to think about. I have growing confidence that when building front end functionality we should use the first of the following that will get the job done:
Let me explain...
I'm going to go invite others to chime in on this via our Slack. If nobody convinces me otherwise within a day or two, let's proceed with the above approach. |
Closing. We will proceed with the architecture outlined above. Thanks all. |
Figure out:
Optionally: Can add a simple component to /components/ for each, if that makes sense.
The text was updated successfully, but these errors were encountered: