diff --git a/src/third_party/fancier-settings/settings.js b/src/third_party/fancier-settings/settings.js index 33d1ed6..5cc96d6 100755 --- a/src/third_party/fancier-settings/settings.js +++ b/src/third_party/fancier-settings/settings.js @@ -3,7 +3,7 @@ import { Store } from "./lib/store.js"; import { ElementWrapper } from "./js/classes/utils.js"; import { TextExpander } from "../../options/textExpander.js"; -import { +import { KEY_AUTOCOMPLETE, KEY_AUTOCOMPLETE_ON_ENTER, KEY_AUTOCOMPLETE_ON_TAB, @@ -101,7 +101,7 @@ function importUserDictFileSelected(settings) { const word = line.trim(); if (word && wordRegex.test(word)) { settings.manifest.userDictionaryList.add(word, false); - count +=1; + count += 1; } }); settings.manifest.userDictionaryList.store(); @@ -151,12 +151,12 @@ const themePresets = { compact: { tributeBgLight: "rgba(255, 255, 255, 0.85)", tributeTextLight: "#1a202c", - tributeHighlightBgLight: "rgba(237, 242, 247, 0.9)", + tributeHighlightBgLight: "rgba(226, 232, 240, 0.9)", tributeHighlightTextLight: "#1a202c", tributeBorderLight: "rgba(226, 232, 240, 0.7)", tributeBgDark: "rgba(45, 55, 72, 0.85)", tributeTextDark: "#f7fafc", - tributeHighlightBgDark: "rgba(74, 85, 104, 0.9)", + tributeHighlightBgDark: "rgba(113, 128, 150, 0.9)", tributeHighlightTextDark: "#f7fafc", tributeBorderDark: "rgba(74, 85, 104, 0.7)", tributeFontSize: "0.85rem", @@ -209,9 +209,9 @@ window.addEventListener("DOMContentLoaded", function () { // User dictionary add action settings.manifest.addUserWordBtn.addEvent("action", function () { if (settings.manifest.userDictionary.element.element.checkValidity()) { - const word = settings.manifest.userDictionary.get(); - settings.manifest.userDictionaryList.add(word); - settings.manifest.userDictionary.element.element.value = ""; + const word = settings.manifest.userDictionary.get(); + settings.manifest.userDictionaryList.add(word); + settings.manifest.userDictionary.element.element.value = ""; } }); // User dictionary remove action @@ -255,13 +255,13 @@ window.addEventListener("DOMContentLoaded", function () { ); const importUserDictElem = - settings.manifest.importUserDictButton.element.element; + settings.manifest.importUserDictButton.element.element; importUserDictElem.type = "file"; importUserDictElem.accept = ".txt"; importUserDictElem.addEventListener( - "input", - importUserDictFileSelected.bind(null, settings) - ); + "input", + importUserDictFileSelected.bind(null, settings) + ); // Theme preset buttons settings.manifest[KEY_USE_DEFAULT_THEME_BTN].addEvent("action", function () { diff --git a/tests/BackgroundServiceWorker.test.ts b/tests/BackgroundServiceWorker.test.ts index f3eb753..3856870 100644 --- a/tests/BackgroundServiceWorker.test.ts +++ b/tests/BackgroundServiceWorker.test.ts @@ -67,7 +67,7 @@ jest.unstable_mockModule("../src/background/TabMessenger", () => ({ import type { BackgroundServiceWorker as BackgroundServiceWorkerType } from "../src/background/background"; describe("BackgroundServiceWorker", () => { - let BackgroundServiceWorkerClass: { new(): BackgroundServiceWorkerType }; + let BackgroundServiceWorkerClass: { new (): BackgroundServiceWorkerType }; let worker: BackgroundServiceWorkerType; beforeAll(async () => { diff --git a/tests/e2e/puppeteer-extension.test.ts b/tests/e2e/puppeteer-extension.test.ts index 70e3427..80a01d2 100644 --- a/tests/e2e/puppeteer-extension.test.ts +++ b/tests/e2e/puppeteer-extension.test.ts @@ -195,8 +195,9 @@ describe("Chrome Extension E2E Test", () => { // Ensure textarea is focused and clear await page.evaluate( () => - (document.querySelector("#test-textarea") as HTMLTextAreaElement) - .value = "", + (( + document.querySelector("#test-textarea") as HTMLTextAreaElement + ).value = ""), ); await textarea!.type(testData.input); // Wait for predictions to update after typing @@ -220,8 +221,9 @@ describe("Chrome Extension E2E Test", () => { // Cleanup for next iteration await page.evaluate( () => - (document.querySelector("#test-textarea") as HTMLTextAreaElement) - .value = "", + (( + document.querySelector("#test-textarea") as HTMLTextAreaElement + ).value = ""), ); // Wait for predictions to disappear // Note: Tribute might not remove the container, just hide it.