Understanding the architecture of a web extension is hard. This pull request implements little logic that give better comprehension of different part of an extension.
Additional context
It inject the globalProperties $app in the Vue instance. I use term context to follow webext-bridge convention.
A shared Vue component (used in options, popup and contentScripts pages) display the context.
I also added typescript, but I haven't found a better way to not create a new file modules.d.ts. I'm not a typescript expert...
Description
Understanding the architecture of a web extension is hard. This pull request implements little logic that give better comprehension of different part of an extension.
Additional context
It inject the globalProperties
$app
in the Vue instance. I use termcontext
to follow webext-bridge convention. A shared Vue component (used in options, popup and contentScripts pages) display the context. I also added typescript, but I haven't found a better way to not create a new filemodules.d.ts
. I'm not a typescript expert...