netless-io / flat

Project flat is the Web, Windows and macOS client of Agora Flat open source classroom.
https://flat.whiteboard.agora.io
MIT License
5.68k stars 815 forks source link

Can I use it in the vue system built by npm? #2103

Closed iFence closed 7 months ago

iFence commented 7 months ago

Can I use flat in the vue system built by npm?

I don't understand the use of pnpm,and my front-end project is developed with vue and built using npm,can I integrate this project into my system?

hyrious commented 7 months ago

Not very straightforward. As you may know Flat is an application, not a library. Flat's UI part is built on top of React. The rest of the application are services (like WebRTC and whiteboard) which are usually independent with each other.

So if you want to re-use the UI part of Flat, there's no easy way to integrate the React components in a Vue framework. If you only want the whiteboard part, Flat is using Fastboard which can be easily integrated in any framework.

If you want to re-use the services of Flat (mostly wrappers around libraries provided by Agora), there's no block for you to access the services.