Skip to content

Commit 034fe88

Browse files
committed
run npm format
1 parent 1fbef39 commit 034fe88

16 files changed

+68
-42
lines changed

resources/css/app.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,4 @@ html {
8888
body {
8989
@apply bg-background text-foreground;
9090
}
91-
}
91+
}

resources/js/components/AppHeader.vue

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ const isCurrentRoute = (url: string) => {
3535
return page.url === url;
3636
};
3737
38-
const activeItemStyles = computed(
39-
() => (url: string) => (isCurrentRoute(url) ? 'text-neutral-900 dark:bg-neutral-800 dark:text-neutral-100' : ''),
40-
);
38+
const activeItemStyles = computed(() => (url: string) => (isCurrentRoute(url) ? 'text-neutral-900 dark:bg-neutral-800 dark:text-neutral-100' : ''));
4139
4240
const mainNavItems: NavItem[] = [
4341
{
@@ -134,7 +132,7 @@ const rightNavItems: NavItem[] = [
134132

135133
<div class="ml-auto flex items-center space-x-2">
136134
<div class="relative flex items-center space-x-1">
137-
<Button variant="ghost" size="icon" class="h-9 w-9 cursor-pointer group">
135+
<Button variant="ghost" size="icon" class="group h-9 w-9 cursor-pointer">
138136
<Search class="size-5 opacity-80 group-hover:opacity-100" />
139137
</Button>
140138

@@ -143,7 +141,7 @@ const rightNavItems: NavItem[] = [
143141
<TooltipProvider :delay-duration="0">
144142
<Tooltip>
145143
<TooltipTrigger>
146-
<Button variant="ghost" size="icon" as-child class="h-9 w-9 group cursor-pointer">
144+
<Button variant="ghost" size="icon" as-child class="group h-9 w-9 cursor-pointer">
147145
<a :href="item.url" target="_blank" rel="noopener noreferrer">
148146
<span class="sr-only">{{ item.title }}</span>
149147
<component :is="item.icon" class="size-5 opacity-80 group-hover:opacity-100" />
@@ -161,10 +159,14 @@ const rightNavItems: NavItem[] = [
161159

162160
<DropdownMenu>
163161
<DropdownMenuTrigger :as-child="true">
164-
<Button variant="ghost" size="icon" class="relative size-10 w-auto rounded-full p-1 focus-within:ring-primary focus-within:ring-2">
162+
<Button
163+
variant="ghost"
164+
size="icon"
165+
class="relative size-10 w-auto rounded-full p-1 focus-within:ring-2 focus-within:ring-primary"
166+
>
165167
<Avatar class="size-8 overflow-hidden rounded-full">
166168
<AvatarImage :src="auth.user.avatar" :alt="auth.user.name" />
167-
<AvatarFallback class="rounded-lg bg-neutral-200 text-black font-semibold dark:bg-neutral-700 dark:text-white">
169+
<AvatarFallback class="rounded-lg bg-neutral-200 font-semibold text-black dark:bg-neutral-700 dark:text-white">
168170
{{ getInitials(auth.user?.name) }}
169171
</AvatarFallback>
170172
</Avatar>

resources/js/components/AppLogo.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ defineProps<Props>();
99
</script>
1010

1111
<template>
12-
<div class="bg-sidebar-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-md">
12+
<div class="flex aspect-square size-8 items-center justify-center rounded-md bg-sidebar-primary text-sidebar-primary-foreground">
1313
<AppLogoIcon class="size-5 fill-current text-white dark:text-black" />
1414
</div>
1515
<div class="ml-1 grid flex-1 text-left text-sm">
16-
<span class="mb-0.5 truncate leading-none font-semibold">Laravel Starter Kit</span>
16+
<span class="mb-0.5 truncate font-semibold leading-none">Laravel Starter Kit</span>
1717
</div>
1818
</template>

resources/js/components/AppLogoIcon.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ defineProps<Props>();
1414

1515
<template>
1616
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 42" :class="className" v-bind="$attrs">
17-
<path
18-
fill="currentColor"
19-
fill-rule="evenodd"
17+
<path
18+
fill="currentColor"
19+
fill-rule="evenodd"
2020
clip-rule="evenodd"
2121
d="M17.2 5.633 8.6.855 0 5.633v26.51l16.2 9 16.2-9v-8.442l7.6-4.223V9.856l-8.6-4.777-8.6 4.777V18.3l-5.6 3.111V5.633ZM38 18.301l-5.6 3.11v-6.157l5.6-3.11V18.3Zm-1.06-7.856-5.54 3.078-5.54-3.079 5.54-3.078 5.54 3.079ZM24.8 18.3v-6.157l5.6 3.111v6.158L24.8 18.3Zm-1 1.732 5.54 3.078-13.14 7.302-5.54-3.078 13.14-7.3v-.002Zm-16.2 7.89 7.6 4.222V38.3L2 30.966V7.92l5.6 3.111v16.892ZM8.6 9.3 3.06 6.222 8.6 3.143l5.54 3.08L8.6 9.3Zm21.8 15.51-13.2 7.334V38.3l13.2-7.334v-6.156ZM9.6 11.034l5.6-3.11v14.6l-5.6 3.11v-14.6Z"
2222
/>

resources/js/components/AppSidebarHeader.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ defineProps<{
1010

1111
<template>
1212
<header
13-
class="flex h-16 shrink-0 items-center gap-2 border-b border-sidebar-border/70 px-6 md:px-4 transition-[width,height] ease-linear group-has-[[data-collapsible=icon]]/sidebar-wrapper:h-12"
13+
class="flex h-16 shrink-0 items-center gap-2 border-b border-sidebar-border/70 px-6 transition-[width,height] ease-linear group-has-[[data-collapsible=icon]]/sidebar-wrapper:h-12 md:px-4"
1414
>
1515
<div class="flex items-center gap-2">
1616
<SidebarTrigger class="-ml-1" />

resources/js/components/Heading.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ defineProps<Props>();
1212
<template>
1313
<div class="mb-8 space-y-0.5">
1414
<h2 class="text-xl font-semibold tracking-tight">{{ title }}</h2>
15-
<p v-if="description" class="text-muted-foreground text-sm">
15+
<p v-if="description" class="text-sm text-muted-foreground">
1616
{{ description }}
1717
</p>
1818
</div>

resources/js/components/PlaceholderPattern.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script setup lang="ts">
2-
import { computed } from 'vue'
2+
import { computed } from 'vue';
33
4-
const patternId = computed(() => `pattern-${Math.random().toString(36).substring(2, 9)}`)
4+
const patternId = computed(() => `pattern-${Math.random().toString(36).substring(2, 9)}`);
55
</script>
66

77
<template>

resources/js/components/TextLink.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ defineProps<Props>();
1717
:tabindex="tabindex"
1818
:method="method"
1919
:as="as"
20-
class="text-foreground underline decoration-neutral-300 underline-offset-4 transition-colors duration-300 ease-out hover:decoration-current! dark:decoration-neutral-500"
20+
class="hover:decoration-current! text-foreground underline decoration-neutral-300 underline-offset-4 transition-colors duration-300 ease-out dark:decoration-neutral-500"
2121
>
2222
<slot />
2323
</Link>

resources/js/components/UserInfo.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ interface Props {
1010
}
1111
1212
const props = withDefaults(defineProps<Props>(), {
13-
showEmail: false
13+
showEmail: false,
1414
});
1515
1616
const { getInitials } = useInitials();

resources/js/layouts/auth/AuthSimpleLayout.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ defineProps<{
1414
<div class="flex flex-col gap-8">
1515
<div class="flex flex-col items-center gap-4">
1616
<Link :href="route('home')" class="flex flex-col items-center gap-2 font-medium">
17-
<div class="flex h-9 w-9 mb-1 items-center justify-center rounded-md">
17+
<div class="mb-1 flex h-9 w-9 items-center justify-center rounded-md">
1818
<AppLogoIcon class="size-9 fill-current text-[var(--foreground)] dark:text-white" />
1919
</div>
2020
<span class="sr-only">{{ title }}</span>
2121
</Link>
2222
<div class="space-y-2 text-center">
2323
<h1 class="text-xl font-medium">{{ title }}</h1>
24-
<p class="text-muted-foreground text-center text-sm">{{ description }}</p>
24+
<p class="text-center text-sm text-muted-foreground">{{ description }}</p>
2525
</div>
2626
</div>
2727
<slot />

resources/js/layouts/settings/Layout.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const currentPath = window.location.pathname;
2727
<div class="px-4 py-6">
2828
<Heading title="Settings" description="Manage your profile and account settings" />
2929

30-
<div class="flex flex-col space-y-8 lg:flex-row lg:space-y-0 lg:space-x-12 md:space-y-0">
30+
<div class="flex flex-col space-y-8 md:space-y-0 lg:flex-row lg:space-x-12 lg:space-y-0">
3131
<aside class="w-full max-w-xl lg:w-48">
3232
<nav class="flex flex-col space-x-0 space-y-1">
3333
<Button

resources/js/pages/auth/ForgotPassword.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const submit = () => {
2525
<AuthLayout title="Forgot password" description="Enter your email to receive a password reset link">
2626
<Head title="Forgot password" />
2727

28-
<div v-if="status" class="mb-4 text-sm font-medium text-green-600">
28+
<div v-if="status" class="mb-4 text-center text-sm font-medium text-green-600">
2929
{{ status }}
3030
</div>
3131

@@ -45,7 +45,7 @@ const submit = () => {
4545
</div>
4646
</form>
4747

48-
<div class="text-muted-foreground space-x-1 text-center text-sm">
48+
<div class="space-x-1 text-center text-sm text-muted-foreground">
4949
<span>Or, return to</span>
5050
<TextLink :href="route('login')">log in</TextLink>
5151
</div>

resources/js/pages/auth/Login.vue

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,33 @@ const submit = () => {
3939
<div class="grid gap-6">
4040
<div class="grid gap-2">
4141
<Label for="email">Email address</Label>
42-
<Input id="email" type="email" required autofocus tabindex="1" autocomplete="email" v-model="form.email" placeholder="[email protected]" />
42+
<Input
43+
id="email"
44+
type="email"
45+
required
46+
autofocus
47+
tabindex="1"
48+
autocomplete="email"
49+
v-model="form.email"
50+
placeholder="[email protected]"
51+
/>
4352
<InputError :message="form.errors.email" />
4453
</div>
4554

4655
<div class="grid gap-2">
4756
<div class="flex items-center justify-between">
4857
<Label for="password">Password</Label>
49-
<TextLink v-if="canResetPassword" :href="route('password.request')" class="text-sm" tabindex="5">
50-
Forgot password?
51-
</TextLink>
58+
<TextLink v-if="canResetPassword" :href="route('password.request')" class="text-sm" tabindex="5"> Forgot password? </TextLink>
5259
</div>
53-
<Input id="password" type="password" required tabindex="2" autocomplete="current-password" v-model="form.password" placeholder="Password" />
60+
<Input
61+
id="password"
62+
type="password"
63+
required
64+
tabindex="2"
65+
autocomplete="current-password"
66+
v-model="form.password"
67+
placeholder="Password"
68+
/>
5469
<InputError :message="form.errors.password" />
5570
</div>
5671

@@ -67,7 +82,7 @@ const submit = () => {
6782
</Button>
6883
</div>
6984

70-
<div class="text-muted-foreground text-center text-sm">
85+
<div class="text-center text-sm text-muted-foreground">
7186
Don't have an account?
7287
<TextLink :href="route('register')" :tabindex="5">Sign up</TextLink>
7388
</div>

resources/js/pages/auth/Register.vue

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,15 @@ const submit = () => {
4242

4343
<div class="grid gap-2">
4444
<Label for="password">Password</Label>
45-
<Input id="password" type="password" required tabindex="3" autocomplete="new-password" v-model="form.password" placeholder="Password" />
45+
<Input
46+
id="password"
47+
type="password"
48+
required
49+
tabindex="3"
50+
autocomplete="new-password"
51+
v-model="form.password"
52+
placeholder="Password"
53+
/>
4654
<InputError :message="form.errors.password" />
4755
</div>
4856

@@ -66,7 +74,7 @@ const submit = () => {
6674
</Button>
6775
</div>
6876

69-
<div class="text-muted-foreground text-center text-sm">
77+
<div class="text-center text-sm text-muted-foreground">
7078
Already have an account?
7179
<TextLink :href="route('login')" class="underline underline-offset-4" tabindex="6">Log in</TextLink>
7280
</div>

resources/js/pages/auth/VerifyEmail.vue

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,7 @@ const submit = () => {
3030
Resend verification email
3131
</Button>
3232

33-
<TextLink
34-
:href="route('logout')"
35-
method="post"
36-
as="button"
37-
class="mx-auto block text-sm"
38-
>
39-
Log out
40-
</TextLink>
33+
<TextLink :href="route('logout')" method="post" as="button" class="mx-auto block text-sm"> Log out </TextLink>
4134
</form>
4235
</AuthLayout>
4336
</template>

resources/js/pages/settings/Profile.vue

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,15 @@ const submit = () => {
5757

5858
<div class="grid gap-2">
5959
<Label for="email">Email address</Label>
60-
<Input id="email" type="email" class="mt-1 block w-full" v-model="form.email" required autocomplete="username" placeholder="Email address" />
60+
<Input
61+
id="email"
62+
type="email"
63+
class="mt-1 block w-full"
64+
v-model="form.email"
65+
required
66+
autocomplete="username"
67+
placeholder="Email address"
68+
/>
6169
<InputError class="mt-2" :message="form.errors.email" />
6270
</div>
6371

@@ -68,7 +76,7 @@ const submit = () => {
6876
:href="route('verification.send')"
6977
method="post"
7078
as="button"
71-
class="rounded-md text-sm text-neutral-600 underline hover:text-neutral-900 focus:ring-2 focus:ring-offset-2 focus:outline-hidden"
79+
class="focus:outline-hidden rounded-md text-sm text-neutral-600 underline hover:text-neutral-900 focus:ring-2 focus:ring-offset-2"
7280
>
7381
Click here to re-send the verification email.
7482
</Link>

0 commit comments

Comments
 (0)