From e7613aa6914384a361e5659f7603c56e4793cb78 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Fri, 12 Mar 2021 00:14:52 +0100 Subject: [PATCH] Revert "okay what the actual fuck" This reverts commit a9ab8d8b92b5075893eaada9d0b0f0f9c0f1b4b7. --- .../{App.vue => ExtensionActionButtonApp.vue} | 80 +++++++------------ src/popup/Popup.ts | 10 +++ src/popup/js/{PopupExec.ts => ExecAction.ts} | 6 +- src/popup/panels/VideoPanel.vue | 4 +- src/popup/popup.js | 5 +- 5 files changed, 46 insertions(+), 59 deletions(-) rename src/popup/{App.vue => ExtensionActionButtonApp.vue} (91%) create mode 100644 src/popup/Popup.ts rename src/popup/js/{PopupExec.ts => ExecAction.ts} (95%) diff --git a/src/popup/App.vue b/src/popup/ExtensionActionButtonApp.vue similarity index 91% rename from src/popup/App.vue rename to src/popup/ExtensionActionButtonApp.vue index cb591e7..6922723 100644 --- a/src/popup/App.vue +++ b/src/popup/ExtensionActionButtonApp.vue @@ -195,8 +195,8 @@ :settings="settings" :site="selectedSite" /> - + @@ -206,38 +206,22 @@ diff --git a/src/popup/Popup.ts b/src/popup/Popup.ts new file mode 100644 index 0000000..76694ba --- /dev/null +++ b/src/popup/Popup.ts @@ -0,0 +1,10 @@ +import { createApp } from 'vue' +import App from './ExtensionActionButtonApp.vue'; + +class Popup { + static createApp() { + createApp(App).mount('#app'); + } +} + +export default Popup; \ No newline at end of file diff --git a/src/popup/js/PopupExec.ts b/src/popup/js/ExecAction.ts similarity index 95% rename from src/popup/js/PopupExec.ts rename to src/popup/js/ExecAction.ts index 020f249..3b5f31f 100644 --- a/src/popup/js/PopupExec.ts +++ b/src/popup/js/ExecAction.ts @@ -1,7 +1,7 @@ -import { browser } from 'webextension-polyfill-ts'; +import { browser } from '../../../node_modules/webextension-polyfill-ts/lib/index'; import Settings from '../../ext/lib/Settings'; -class PopupExec { +class ExecAction { settings: Settings; site: any; @@ -82,4 +82,4 @@ class PopupExec { } } -export default PopupExec; +export default ExecAction; diff --git a/src/popup/panels/VideoPanel.vue b/src/popup/panels/VideoPanel.vue index ea36e3b..175b3cf 100644 --- a/src/popup/panels/VideoPanel.vue +++ b/src/popup/panels/VideoPanel.vue @@ -121,7 +121,7 @@