Skip to content

Commit 2441ae1

Browse files
committed
Fix prettier
1 parent 353c37b commit 2441ae1

File tree

5 files changed

+26
-6
lines changed

5 files changed

+26
-6
lines changed

resources/js/components/Profile/EditModal.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@
5050
height="95"
5151
:src="userImage"
5252
:alt="`${userName || 'User'}'s avatar`"
53-
onerror="this.src='/storage/avatars/default.jpg';this.onerror=null;"
53+
onerror="
54+
this.src = '/storage/avatars/default.jpg'
55+
this.onerror = null
56+
"
5457
/>
5558
<div
5659
class="absolute bottom-0 right-0 rounded-full bg-white shadow-xl border p-2 border-gray-300 inline-flex items-center justify-center"

resources/js/components/Studio/PlaylistAddVideoModal.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,10 @@
101101
:src="video.media.thumbnail"
102102
:alt="video.caption"
103103
class="w-16 h-16 rounded-lg object-cover flex-shrink-0"
104-
onerror="this.src='/storage/videos/video-placeholder.jpg';this.onerror=null;"
104+
onerror="
105+
this.src = '/storage/videos/video-placeholder.jpg'
106+
this.onerror = null
107+
"
105108
/>
106109
<div class="flex-1 min-w-0">
107110
<p

resources/js/components/Studio/StudioPosts.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,10 @@
8585
:src="post.media.thumbnail"
8686
:alt="`${post.caption} thumbnail`"
8787
class="w-12 h-12 rounded-lg object-cover"
88-
onerror="this.src='/storage/videos/video-placeholder.jpg';this.onerror=null;"
88+
onerror="
89+
this.src = '/storage/videos/video-placeholder.jpg'
90+
this.onerror = null
91+
"
8992
/>
9093
<div>
9194
<div

resources/js/pages/studio/playlists/details.vue

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@
3535
:src="playlist.cover_image"
3636
:alt="`${playlist.name} cover`"
3737
class="w-full h-full object-cover"
38-
onerror="this.style.display='none';this.parentElement.innerHTML='<div class=\'w-full h-full flex items-center justify-center\'><svg class=\'w-16 h-16 text-gray-400\' fill=\'none\' stroke=\'currentColor\' viewBox=\'0 0 24 24\'><path stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10\'></path></svg></div>'"
38+
onerror="
39+
this.style.display = 'none'
40+
this.parentElement.innerHTML =
41+
'<div class=\'w-full h-full flex items-center justify-center\'><svg class=\'w-16 h-16 text-gray-400\' fill=\'none\' stroke=\'currentColor\' viewBox=\'0 0 24 24\'><path stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10\'></path></svg></div>'
42+
"
3943
/>
4044
<div v-else class="w-full h-full flex items-center justify-center">
4145
<QueueListIcon class="w-16 h-16 text-gray-400" />
@@ -171,7 +175,10 @@
171175
:src="video.media.thumbnail"
172176
:alt="video.caption"
173177
class="w-12 h-20 rounded-lg object-cover flex-shrink-0"
174-
onerror="this.src='/storage/videos/video-placeholder.jpg';this.onerror=null;"
178+
onerror="
179+
this.src = '/storage/videos/video-placeholder.jpg'
180+
this.onerror = null
181+
"
175182
/>
176183

177184
<div class="flex-1 min-w-0">

resources/js/pages/studio/playlists/index.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,11 @@
9696
:src="playlist.cover_image"
9797
:alt="`${playlist.name} cover`"
9898
class="w-full h-full object-cover"
99-
onerror="this.style.display='none';this.parentElement.innerHTML='<div class=\'w-full h-full flex items-center justify-center\'><svg class=\'w-8 h-8 text-gray-400\' fill=\'none\' stroke=\'currentColor\' viewBox=\'0 0 24 24\'><path stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10\'></path></svg></div>'"
99+
onerror="
100+
this.style.display = 'none'
101+
this.parentElement.innerHTML =
102+
'<div class=\'w-full h-full flex items-center justify-center\'><svg class=\'w-8 h-8 text-gray-400\' fill=\'none\' stroke=\'currentColor\' viewBox=\'0 0 24 24\'><path stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10\'></path></svg></div>'
103+
"
100104
/>
101105
<div
102106
v-else

0 commit comments

Comments
 (0)