From d64b41a363dc1043d97cab466408c32581249ba5 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Thu, 11 Mar 2021 21:58:12 +0100 Subject: [PATCH] Revert "split popup into ts" This reverts commit 73eb5ffe931b19a42e3858b3189fd1f3d65062ce. --- .../{ExtensionActionButtonApp.vue => App.vue} | 84 ++++++++++++------- src/popup/Popup.ts | 10 --- src/popup/popup.js | 5 +- 3 files changed, 56 insertions(+), 43 deletions(-) rename src/popup/{ExtensionActionButtonApp.vue => App.vue} (91%) delete mode 100644 src/popup/Popup.ts 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..ec50f96 100644 --- a/src/popup/ExtensionActionButtonApp.vue +++ b/src/popup/App.vue @@ -195,8 +195,8 @@ :settings="settings" :site="selectedSite" /> - + @@ -205,23 +205,39 @@ - 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/popup.js b/src/popup/popup.js index 905e90c..d928927 100644 --- a/src/popup/popup.js +++ b/src/popup/popup.js @@ -1,3 +1,4 @@ -import Popup from './Popup'; +import { createApp } from 'vue' +import App from './App'; -Popup.createApp(); +createApp(App).mount('#app');