web search done right
Move around some prettier options
Oliver Bøving517680220754
diff --git a/.vscode/extensions.json b/.vscode/extensions.jsonnew file mode 100644index 00000000..30810fab--- /dev/null+++ b/.vscode/extensions.json@@ -0,0 +1,3 @@+{+ "recommendations": ["astro-build.astro-vscode"]+}diff --git a/.vscode/settings.json b/.vscode/settings.jsonnew file mode 100644index 00000000..10d18f61--- /dev/null+++ b/.vscode/settings.json@@ -0,0 +1,11 @@+{+ "prettier.documentSelectors": [+ "**/*.astro"+ ],+ "prettier.configPath": "frontend/.prettierrc",+ "prettier.prettierPath": "frontend/node_modules/prettier",+ "tailwindCSS.experimental.configFile": "frontend/tailwind.config.cjs",+ "[astro]": {+ "editor.defaultFormatter": "esbenp.prettier-vscode"+ }+}diff --git a/frontend/.prettierrc b/frontend/.prettierrcnew file mode 100644index 00000000..4d983854--- /dev/null+++ b/frontend/.prettierrc@@ -0,0 +1,4 @@+{+ "pluginSearchDirs": ["./node_modules"],+ "plugins": ["prettier-plugin-astro", "prettier-plugin-tailwindcss"]+}diff --git a/frontend/.vscode/extensions.json b/frontend/.vscode/extensions.jsondeleted file mode 100644index 22a15055..00000000--- a/frontend/.vscode/extensions.json+++ /dev/null@@ -1,4 +0,0 @@-{- "recommendations": ["astro-build.astro-vscode"],- "unwantedRecommendations": []-}diff --git a/frontend/.vscode/launch.json b/frontend/.vscode/launch.jsondeleted file mode 100644index d6422097..00000000--- a/frontend/.vscode/launch.json+++ /dev/null@@ -1,11 +0,0 @@-{- "version": "0.2.0",- "configurations": [- {- "command": "./node_modules/.bin/astro dev",- "name": "Development server",- "request": "launch",- "type": "node-terminal"- }- ]-}diff --git a/frontend/.vscode/settings.json b/frontend/.vscode/settings.jsondeleted file mode 100644index 91352e3e..00000000--- a/frontend/.vscode/settings.json+++ /dev/null@@ -1,6 +0,0 @@-{- "prettier.documentSelectors": ["**/*.astro"],- "[astro]": {- "editor.defaultFormatter": "esbenp.prettier-vscode"- }-}diff --git a/frontend/src/components/Entity.astro b/frontend/src/components/Entity.astroindex ae4b6724..d2cc620d 100644--- a/frontend/src/components/Entity.astro+++ b/frontend/src/components/Entity.astro@@ -41,7 +41,7 @@ export interface Props {{askama.if_("!entity.info.is_empty()", () => (<div class="mt-5 flex w-full flex-col px-4 text-sm">- <div class="grid border-separate border-spacing-x-4 border-spacing-y-1.5 grid-cols-[auto_1fr] gap-x-4">+ <div class="border-spacing-x-4 border-spacing-y-1.5 grid border-separate grid-cols-[auto_1fr] gap-x-4">{askama.for_("(key, value) in entity.info", () => (<><div class="text-gray-500">{askama`key $ {{word.adjective}}`}</div>diff --git a/frontend/src/pages/search.astro b/frontend/src/pages/search.astroindex bc0c5be5..fa5980fd 100644--- a/frontend/src/pages/search.astro+++ b/frontend/src/pages/search.astro@@ -158,7 +158,7 @@ import Header from "../components/Header.astro";</div></div>- <div class="hidden md:block flex grow">+ <div class="hidden md:flex grow">{askama.if_("let Some(entity) = entity", <Entity entity="entity" />)}</div></div>@@ -172,7 +172,7 @@ import Header from "../components/Header.astro";@apply w-6 text-gray-500;}.change-page-active {- @apply text-brand/80 hover:text-brand w-6;+ @apply w-6 text-brand/80 hover:text-brand;}.title-link {