Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Dec 10, 2024
1 parent 3bcde97 commit af4607f
Show file tree
Hide file tree
Showing 13 changed files with 24 additions and 24 deletions.
18 changes: 9 additions & 9 deletions docs/app/components/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,18 @@ const navigation = computed(() => {
</template>

<template #content>
<div v-if="route.path.startsWith('/docs')">
<DocsSidebarHeader />
<USeparator class="mb-5" />
</div>
<div v-if="route.path.startsWith('/docs')">
<DocsSidebarHeader />
<USeparator class="mb-5" />
</div>
<UContentNavigation :navigation="navigation">
<template #link="{ link }">
<div class="flex items-center gap-2">
<UIcon v-if="link.icon" :name="link.icon" class="w-4 h-4 text-primary-400 dark:text-sky-200" />
<div :class="link.children?.length ? 'text-sm font-bold' : ''">
{{ link.title }}
<div class="flex items-center gap-2">
<UIcon v-if="link.icon" :name="link.icon" class="w-4 h-4 text-primary-400 dark:text-sky-200" />
<div :class="link.children?.length ? 'text-sm font-bold' : ''">
{{ link.title }}
</div>
</div>
</div>
</template>
</UContentNavigation>
</template>
Expand Down
2 changes: 1 addition & 1 deletion docs/app/components/ui/ContentNavigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import type { AccordionRootEmits, AccordionRootProps } from 'radix-vue'
import _appConfig from '#build/app.config'
import theme from '#build/ui-pro/content/content-navigation'
import { useAppConfig, useRoute } from '#imports'
import { pickLinkProps } from '#ui/utils/link'
import { mapContentItem } from '#ui-pro/utils/content'
import { pickLinkProps } from '#ui/utils/link'
import { createReusableTemplate, reactivePick } from '@vueuse/core'
import { Primitive, useForwardPropsEmits } from 'radix-vue'
import { tv, type VariantProps } from 'tailwind-variants'
Expand Down
2 changes: 1 addition & 1 deletion docs/app/pages/docs/[...slug].vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const repoLinks = computed(() => [
</UPageHeader>

<UPageBody prose class="pb-0">
<Ads />
<Ads />
<ContentRenderer v-if="page.body" :value="page" />
<div class="justify-center flex items-center gap-2 font-semibold">
<UIcon name="i-simple-icons-github" class="w-5 h-5" />
Expand Down
2 changes: 1 addition & 1 deletion docs/app/pages/learn/[...slug].vue
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const repoLinks = computed(() => [
</div>
</div>
</div>
<Ads />
<Ads />
<ContentRenderer v-if="page.body" :value="page" />
<div class="justify-center flex items-center gap-2 font-semibold">
<UIcon name="i-simple-icons-github" class="w-5 h-5" />
Expand Down
2 changes: 1 addition & 1 deletion docs/app/pages/learn/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const { data: nav } = await useAsyncData(`learn`, () => queryCollectionNavigatio
<div class="max-w-[66ch]">
<UPageHeader title="Learn SEO" description="Learn more about the SEO fundamentals that power Nuxt SEO." :ui="{ title: 'text-center text-balance xl:leading-normal min-w-full', description: 'text-center ' }" />
<UPageBody prose class="pb-0">
<Ads />
<Ads />
<div class="space-y-5">
<div v-for="(item, key) in nav[0].children" :key="key">
<NuxtLink :to="item.path" class="relative inline-flex transition-all hover:shadow-lg flex-col rounded-lg font-bold border bg-gradient-to-r from-sky-700/10 to-blue-700/20 border-sky-700/20 px-5 py-3 gap-1">
Expand Down
4 changes: 2 additions & 2 deletions docs/app/pages/pro.vue
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ function onSubmitProWaitlistFeedback(event: FormSubmitEvent<ProWaitlistFeedbackS
</p>
</div>
<div class="mb-5 ">
Release estimated in<br>
Release estimated in<br>
<UIcon name="i-carbon-calendar" class="-mt-2 text-blue-300" />
~{{ daysUntilQ1 }} days
</div>
Expand Down Expand Up @@ -353,7 +353,7 @@ function onSubmitProWaitlistFeedback(event: FormSubmitEvent<ProWaitlistFeedbackS
<UAvatar src="https://cdn.discordapp.com/avatars/212548363529355264/a23dd75d7ffadac117115cb745edb25a.webp?size=240" />
<UAvatar src="https://pbs.twimg.com/profile_images/1374040164180299791/ACw4G3nZ_400x400.jpg" />
<UAvatar src="https://pbs.twimg.com/profile_images/1832800489580224512/uqwwtRlK_400x400.jpg" />
<UAvatar text="+37" class="text-white text-xs font-bold"></UAvatar>
<UAvatar text="+37" class="text-white text-xs font-bold" />
</UAvatarGroup>
<div class="text-lg text-center max-w-xs">
Join the 40 Nuxters who have already signed up.
Expand Down
2 changes: 1 addition & 1 deletion docs/app/utils/perf.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { logger } from '~~/logger'
import { appendHeader } from 'h3'
import { logger } from '~~/logger'

export function createPerformanceMeasure() {
const e = useRequestEvent()
Expand Down
2 changes: 1 addition & 1 deletion docs/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ export default defineNuxtConfig({
],

hooks: {
'components:extend'(components) {
'components:extend': function (components) {
for (const component of components) {
if (component.pascalName === 'UAlert') {
component.global = true
Expand Down
4 changes: 2 additions & 2 deletions docs/server/api/feedback-thumbs.post.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { appStorage } from '~~/server/storage'
import { type ThumbsFeedbackResponse, ThumbsFeedbackSchema } from '~~/types/schemas'
import { getHeader } from 'h3'
import { parseURL } from 'ufo'
import { appStorage } from '~~/server/storage'
import { type ThumbsFeedbackResponse, ThumbsFeedbackSchema } from '~~/types/schemas'

export default defineEventHandler<Promise<ThumbsFeedbackResponse>>(async (e) => {
const body = await readValidatedBody(e, ThumbsFeedbackSchema.safeParse)
Expand Down
4 changes: 2 additions & 2 deletions docs/server/api/feedback.post.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { appStorage } from '~~/server/storage'
import { CommentFeedbackSchema } from '~~/types/schemas'
import { getHeader } from 'h3'
import { hash } from 'ohash'
import { parseURL } from 'ufo'
import { appStorage } from '~~/server/storage'
import { CommentFeedbackSchema } from '~~/types/schemas'

export default defineEventHandler(async (e) => {
const body = await readValidatedBody(e, CommentFeedbackSchema.safeParse)
Expand Down
2 changes: 1 addition & 1 deletion docs/server/api/github/auth/callback.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { appStorage } from '~~/server/storage'
import { getQuery, getRequestHost } from 'h3'
import { appStorage } from '~~/server/storage'

export default defineEventHandler(async (e) => {
const query = getQuery(e)
Expand Down
2 changes: 1 addition & 1 deletion docs/server/api/github/sponsors.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { appStorage } from '~~/server/storage'
import { fetchGitHubSponsors } from 'sponsorkit'
import { appStorage } from '~~/server/storage'

export default defineCachedEventHandler(async (e) => {
if (!import.meta.prerender && !import.meta.dev) {
Expand Down
2 changes: 1 addition & 1 deletion docs/server/api/pro-waitlist-feedback.post.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { hash } from 'ohash'
import { appStorage } from '~~/server/storage'
import { ProWaitlistFeedbackSchema } from '~~/types/schemas'
import { hash } from 'ohash'

export default defineEventHandler(async (e) => {
const body = await readValidatedBody(e, ProWaitlistFeedbackSchema.safeParse)
Expand Down

0 comments on commit af4607f

Please sign in to comment.