creating a browser extension with quasar is harder than it should be #13309
Replies: 2 comments 2 replies
-
I forgot to mention that it seems like bex mode is still primarily focused on creating a quasar app with support for a background script. Most browser extensions are not apps, but just extensions of the browser's functionality. It seems like a bex template for quasar that isn't a Quasar app with bex added would be more useful, more concise, and much easier to start with. |
Beta Was this translation helpful? Give feedback.
-
This is exactly my situation right now. I am new to JS and TS, front end in general but when i heard about quasar it seemed like such a great solution. but the communication is so confusing and the documentation doesn't really give you a lot. For example the content script operates in the context of Dom manipulation. Cool, got it. But we have this super cool Dom script that communicates directly with the dom and everything else via the bridge. OK so use the dom file? well you can use the content script because it too has access to the bridge... wait whats the bridge? its the super cool way that everything can talk to everything else. OK cool so I don't need the Dom script? I feel like I'm spinning my wheels for doing something that should be simple like changing options in a popup changing an element in the context of the web page. There's not a lot out there in regards to Quasar Bex.... I wish there was... but anyway.... I found this post looking for more examples / documentation and thought I'd throw in my 2 cents... |
Beta Was this translation helpful? Give feedback.
-
Currently to create a browser extension you have to create a quasar project and then add the bex parts with "-m bex". While this works, it doesn't make getting started with a browser extension easy.
A normal quasar project can be created and then immediately run with
quasar dev
.It would be nice if there was a way to create a quasar bex project that also ran immediately with and example of all the parts actually there and usable. This includes a popup, a sidebar, an options page, a page for the extension and some simple communication. It is much easier to remove what isn't needed than to go through all the steps in the doc and try to get something that works.
One example of the unnecessary difficulty is that after creating a bex, then using
quasar new page PopupPage
I have to go and add it to the router and the manifest.json. Then I just go and add some text to the page and run the bex. The popup opens but doesn't display correctly because the generated page file has been generated to only work with a layout.For someone new to creating browser extensions, and new to trying to use Quasar to do it this seems complicated and frustrating.
It would also be nice if the bex supported running with firefox
web-ext run
which starts the browser with a temporary profile and loads the extension.I love Quasar and don't want to use Vue directly, but it often seems to be overly complicated at times to just do something simple.
Any thoughts?
Beta Was this translation helpful? Give feedback.
All reactions