diff --git a/docs/.vitepress/constants.ts b/docs/.vitepress/constants.ts index 713fcdd7e..819d6517c 100644 --- a/docs/.vitepress/constants.ts +++ b/docs/.vitepress/constants.ts @@ -277,9 +277,9 @@ export const wikiSidebar = [ items: [ meta.build.nsfw ? { - text: ' NSFW', - link: 'https://rentry.co/NSFW-Checkpoint' - } + text: ' NSFW', + link: 'https://rentry.co/NSFW-Checkpoint' + } : {}, { text: ' Unsafe Sites', diff --git a/tsconfig.json b/tsconfig.json index a9ea1dca5..1a4386d09 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,10 +3,7 @@ "verbatimModuleSyntax": true, "module": "esnext", "target": "esnext", - "lib": [ - "DOM", - "ESNext" - ], + "lib": ["DOM", "ESNext"], "strict": true, "jsx": "preserve", "esModuleInterop": true, @@ -16,13 +13,9 @@ "noUnusedLocals": true, "strictNullChecks": true, "forceConsistentCasingInFileNames": true, - "types": [ - "vitepress" - ] + "types": ["vitepress"] }, - "exclude": [ - "node_modules" - ], + "exclude": ["node_modules"], "include": [ "website/**/*.ts", "website/**/*.d.ts", diff --git a/website/hooks/opengraph.ts b/website/hooks/opengraph.ts index 75c2154f0..60788f183 100644 --- a/website/hooks/opengraph.ts +++ b/website/hooks/opengraph.ts @@ -72,14 +72,14 @@ async function generateImage({ const _page = getPage(url) const title = frontmatter.layout === 'home' - ? frontmatter.hero.name ?? frontmatter.title + ? (frontmatter.hero.name ?? frontmatter.title) : frontmatter.title ? frontmatter.title : _page?.title const description = frontmatter.layout === 'home' - ? frontmatter.hero.tagline ?? frontmatter.description + ? (frontmatter.hero.tagline ?? frontmatter.description) : frontmatter.description ? frontmatter.description : _page?.description diff --git a/website/theme/components/ColorPicker.vue b/website/theme/components/ColorPicker.vue index bc517049c..27a59138c 100644 --- a/website/theme/components/ColorPicker.vue +++ b/website/theme/components/ColorPicker.vue @@ -85,21 +85,30 @@ const handleColorChange = (value: string) => { :style="{ backgroundColor: colors[selectedColor][500] }" /> - - + + - + - - + + {{ normalizeColorName(color) }} @@ -158,10 +167,13 @@ const handleColorChange = (value: string) => { text-align: left; border-radius: 8px; cursor: text; - transition: border-color 0.25s, background 0.4s ease; + transition: + border-color 0.25s, + background 0.4s ease; } -.color-picker:hover, .color-picker:focus { +.color-picker:hover, +.color-picker:focus { border-color: var(--vp-c-brand); background: var(--vp-c-bg-alt); } diff --git a/website/theme/components/Feedback.vue b/website/theme/components/Feedback.vue index 6c2e1e911..b25f76283 100644 --- a/website/theme/components/Feedback.vue +++ b/website/theme/components/Feedback.vue @@ -134,24 +134,36 @@ const toggleCard = () => (isCardShown.value = !isCardShown.value)