diff --git a/package-lock.json b/package-lock.json index 79fed48..99237d9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,7 @@ "name": "unduck", "version": "0.0.0", "dependencies": { + "prettier": "^3.5.3", "vite-plugin-pwa": "^0.21.1" }, "devDependencies": { @@ -3262,6 +3263,21 @@ "node": "^10 || ^12 || >=14" } }, + "node_modules/prettier": { + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.5.3.tgz", + "integrity": "sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==", + "license": "MIT", + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, "node_modules/pretty-bytes": { "version": "6.1.1", "license": "MIT", diff --git a/package.json b/package.json index b184742..abe6c06 100644 --- a/package.json +++ b/package.json @@ -7,10 +7,13 @@ "dev": "vite", "build": "tsc && vite build", "preview": "vite preview", + "format:check": "prettier --check .", + "format:write": "prettier --write .", "update": "npx npm-check-updates -u && npm install" }, "devDependencies": { "npm-check-updates": "^17.1.15", + "prettier": "^3.5.3", "typescript": "~5.8.2", "vite": "^6.2.0" }, diff --git a/src/global.css b/src/global.css index 4738303..e656fdf 100644 --- a/src/global.css +++ b/src/global.css @@ -1,5 +1,7 @@ :root { - font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; + font-family: + system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, + "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-synthesis: none; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; diff --git a/src/main.ts b/src/main.ts index 0f734a1..e70c5ed 100644 --- a/src/main.ts +++ b/src/main.ts @@ -8,7 +8,7 @@ function noSearchDefaultPageRender() {
DuckDuckGo's bang redirects are too slow. Add the following URL as a custom search engine to your browser. Enables all of DuckDuckGo's bangs.
+DuckDuckGo's bang redirects are too slow. Add the following URL as a custom search engine to your browser. Enables all of DuckDuckGo's bangs.
Added so that some browsers treat this page as a search engine
+ +