How to create new tab to display contents #149
-
How this boilerplate can be used to create an extension that will use an entire tab to show contents? |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments
-
Yes, why not! Infact all the apps (popup, options, setup etc) routes can be accessed anywhere.
|
Beta Was this translation helpful? Give feedback.
-
I've solved in a simple way that I think needs to be implemented as part of the extension. I've copied the popup folder and after this renamed it in Thank you for the reply |
Beta Was this translation helpful? Give feedback.
-
This is hacky stuff! Might run into issues when scaling your extension. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to follow your suggestion, but not sure to understand needed steps. This is not clear for me at the moment because I see that each predefined folder have inside js, html and scss files. This is why I've opted for the hacky solution. |
Beta Was this translation helpful? Give feedback.
-
Both will work fine, I mean, it depends on the suage here. If you want to overried chrome new tab then you need to use html page (complete vue app). For this you need to add If you just want to open an extension link in new tab you can just do it by adding new page to /pages directory. (can even load any page from options/ popup etc too) |
Beta Was this translation helpful? Give feedback.
-
I will need to open a new tab not override the new tab default page. Into the pages folder I will need to create a vue file right?Then call it from what entry point? |
Beta Was this translation helpful? Give feedback.
-
In short, yes! I will try to add an example here, when I have time. |
Beta Was this translation helpful? Give feedback.
-
@realrecordzLab You can show/ load any existing app in new tab, like
If you have any questions, feel free to contact. |
Beta Was this translation helpful? Give feedback.
@realrecordzLab You can show/ load any existing app in new tab, like
popup
,setup
etc But for separation of concern:popup
vue appnew-tab
new-tab
to vite config too. Just look at example ofsetup
page and copy it. In recent version, it will be automatically registered.chrome.runtime.getURL("src/ui/new-tab/index.html#/")
If you have any questions, feel free to contact.