Skip to content

Commit 8e30735

Browse files
authored
chore: format codebase (#78)
1 parent 760e39d commit 8e30735

34 files changed

Lines changed: 1261 additions & 412 deletions

‎package-lock.json‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"@types/node": "^22.13.5",
2020
"@vue/eslint-config-typescript": "^14.3.0",
2121
"eslint": "^9.17.0",
22-
"eslint-config-prettier": "^10.0.1",
22+
"eslint-config-prettier": "^10.1.8",
2323
"eslint-import-resolver-typescript": "^4.4.4",
2424
"eslint-plugin-import": "^2.32.0",
2525
"eslint-plugin-vue": "^9.32.0",

‎resources/js/app.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ const appName = import.meta.env.VITE_APP_NAME || 'Laravel';
77

88
registerSW({ immediate: true });
99

10-
1110
createInertiaApp({
1211
title: (title) => (title ? `${title} - ${appName}` : appName),
1312
layout: (name) => {

‎resources/js/components/BlogRow.vue‎

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const deleteBlog = () => {
2020
>
2121
<Link
2222
:href="`/admin/blogs/edit/${blog.slug}`"
23-
class="flex flex-1 items-center gap-3 min-w-0 active:scale-[0.99]"
23+
class="flex min-w-0 flex-1 items-center gap-3 active:scale-[0.99]"
2424
>
2525
<div
2626
class="h-12 w-12 shrink-0 overflow-hidden rounded-lg border border-gray-100 bg-gray-50"
@@ -51,7 +51,9 @@ const deleteBlog = () => {
5151
<span>•</span>
5252
<span
5353
:class="
54-
blog.is_published ? 'text-green-600' : 'text-gray-400'
54+
blog.is_published
55+
? 'text-green-600'
56+
: 'text-gray-400'
5557
"
5658
>
5759
{{ blog.is_published ? 'Published' : 'Draft' }}
@@ -66,15 +68,26 @@ const deleteBlog = () => {
6668
</div>
6769
</Link>
6870

69-
<div class="flex items-center gap-2 pl-1 shrink-0">
71+
<div class="flex shrink-0 items-center gap-2 pl-1">
7072
<button
7173
@click.stop.prevent="deleteBlog"
7274
type="button"
73-
class="rounded-lg p-1.5 text-gray-400 hover:bg-red-50 hover:text-red-600 transition-colors"
75+
class="rounded-lg p-1.5 text-gray-400 transition-colors hover:bg-red-50 hover:text-red-600"
7476
title="Delete blog"
7577
>
76-
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="h-5 w-5">
77-
<path stroke-linecap="round" stroke-linejoin="round" d="m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0" />
78+
<svg
79+
xmlns="http://www.w3.org/2000/svg"
80+
fill="none"
81+
viewBox="0 0 24 24"
82+
stroke-width="1.5"
83+
stroke="currentColor"
84+
class="h-5 w-5"
85+
>
86+
<path
87+
stroke-linecap="round"
88+
stroke-linejoin="round"
89+
d="m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"
90+
/>
7891
</svg>
7992
</button>
8093

‎resources/js/components/BreadcrumbNav.vue‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,3 @@ const breadcrumbs = computed(() => {
6262
</template>
6363
</nav>
6464
</template>
65-

‎resources/js/components/EmptyState.vue‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<script setup lang="ts">
22
import { Folder } from 'lucide-vue-next';
3-
43
</script>
54

65
<template>

0 commit comments

Comments
 (0)