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