- This is the options page -
- - - -diff --git a/scripts/prepare.ts b/scripts/prepare.ts index 5c78c0cb..edce3e76 100644 --- a/scripts/prepare.ts +++ b/scripts/prepare.ts @@ -9,7 +9,6 @@ import { r, port, isDev, log } from './utils' */ async function stubIndexHtml() { const views = [ - 'options', 'popup', 'background', ] diff --git a/src/background/main.ts b/src/background/main.ts index 5691cbd6..a25cf11b 100644 --- a/src/background/main.ts +++ b/src/background/main.ts @@ -9,7 +9,6 @@ if (import.meta.hot) { import('./contentScriptHMR') } -// タイトルの重複する削除した履歴を返す const removeDuplicates = (histories: History.HistoryItem[]) => { return Array.from( histories @@ -21,7 +20,7 @@ const removeDuplicates = (histories: History.HistoryItem[]) => { ) } -const addHost = (histories: History.HistoryItem[]) => { +const addHostname = (histories: History.HistoryItem[]) => { return histories.map((item) => { const url = new URL(item.url!) return { @@ -44,7 +43,7 @@ browser.commands.onCommand.addListener(async() => { await sendMessage( 'history-search', - { result: JSON.stringify(addHost(removeDuplicates(result))) }, + { result: JSON.stringify(addHostname(removeDuplicates(result))) }, { context: 'content-script', tabId: tab.id!, diff --git a/src/contentScripts/views/App.vue b/src/contentScripts/views/App.vue index e666f572..1ecee062 100644 --- a/src/contentScripts/views/App.vue +++ b/src/contentScripts/views/App.vue @@ -2,7 +2,7 @@
- ↑↓Navigate, EnterOpen,Ctrl + EnterOpen in new tab + ↑↓Navigate, EnterOpen,Ctrl + EnterOpen in new tab
Fussy history search
diff --git a/src/logic/storage.ts b/src/logic/storage.ts
index 8892d8bc..37349cfb 100644
--- a/src/logic/storage.ts
+++ b/src/logic/storage.ts
@@ -1,3 +1,4 @@
-import { useLocalStorage } from '@vueuse/core'
-
-export const isDarkMode = useLocalStorage('isDarkMode', false, { listenToStorageChanges: true })
+// TODO enable dark mode
+// import { useLocalStorage } from '@vueuse/core'
+//
+// export const isDarkMode = useLocalStorage('isDarkMode', false, { listenToStorageChanges: true })
diff --git a/src/manifest.ts b/src/manifest.ts
index 670646c0..80315287 100644
--- a/src/manifest.ts
+++ b/src/manifest.ts
@@ -19,11 +19,6 @@ export async function getManifest() {
default_icon: './assets/icon-512.png',
default_popup: './dist/popup/index.html',
},
- options_ui: {
- page: './dist/options/index.html',
- open_in_tab: true,
- chrome_style: false,
- },
background: {
page: './dist/background/index.html',
persistent: false,
@@ -44,9 +39,6 @@ export async function getManifest() {
128: './assets/icon-512.png',
},
permissions: [
- 'tabs',
- 'storage',
- 'activeTab',
'http://*/',
'https://*/',
'history',
diff --git a/src/options/Options.vue b/src/options/Options.vue
deleted file mode 100644
index 5c2a110d..00000000
--- a/src/options/Options.vue
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
- This is the options page
-
Fussy history search diff --git a/vite.config.ts b/vite.config.ts index d278cd39..428a892e 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -92,7 +92,6 @@ export default defineConfig(({ command }) => ({ rollupOptions: { input: { background: r('src/background/index.html'), - options: r('src/options/index.html'), popup: r('src/popup/index.html'), }, },