From 8f05a7a5cbe86da4d66a9413d016ab9a45e51a75 Mon Sep 17 00:00:00 2001 From: fsociety Date: Tue, 10 Sep 2024 21:17:28 +0200 Subject: [PATCH] remove comments --- .../comments/components/avatar.blade.php | 15 -- .../comments/components/button.blade.php | 12 -- .../vendor/comments/components/date.blade.php | 7 - .../components/editors/easymde.blade.php | 104 ---------- .../components/editors/textarea.blade.php | 1 - .../comments/components/icons/close.blade.php | 1 - .../comments/components/icons/copy.blade.php | 1 - .../components/icons/delete.blade.php | 1 - .../comments/components/icons/edit.blade.php | 1 - .../comments/components/icons/menu.blade.php | 1 - .../comments/components/icons/smile.blade.php | 1 - .../comments/components/modal.blade.php | 14 -- .../comments/components/scripts.blade.php | 9 - .../comments/components/styles.blade.php | 3 - .../extraCommentHeaderActions.blade.php | 0 .../comments/livewire/comment.blade.php | 196 ------------------ .../comments/livewire/comments.blade.php | 61 ------ .../livewire/partials/newComment.blade.php | 24 --- .../livewire/partials/replyTo.blade.php | 47 ----- .../approvedCommentNotification.blade.php | 24 --- .../mail/pendingCommentNotification.blade.php | 20 -- .../signed/approval/approveComment.blade.php | 5 - .../approveCommentConfirmation.blade.php | 15 -- .../signed/approval/rejectComment.blade.php | 5 - .../approval/rejectCommentApproval.blade.php | 14 -- .../unsubscribe.blade.php | 5 - .../unsubscribeAll.blade.php | 5 - .../unsubscribeAllApproval.blade.php | 14 -- .../unsubscribeApproval.blade.php | 14 -- .../comments/signed/signedLayout.blade.php | 10 - 30 files changed, 630 deletions(-) delete mode 100644 resources/views/vendor/comments/components/avatar.blade.php delete mode 100644 resources/views/vendor/comments/components/button.blade.php delete mode 100644 resources/views/vendor/comments/components/date.blade.php delete mode 100644 resources/views/vendor/comments/components/editors/easymde.blade.php delete mode 100644 resources/views/vendor/comments/components/editors/textarea.blade.php delete mode 100644 resources/views/vendor/comments/components/icons/close.blade.php delete mode 100644 resources/views/vendor/comments/components/icons/copy.blade.php delete mode 100644 resources/views/vendor/comments/components/icons/delete.blade.php delete mode 100644 resources/views/vendor/comments/components/icons/edit.blade.php delete mode 100644 resources/views/vendor/comments/components/icons/menu.blade.php delete mode 100644 resources/views/vendor/comments/components/icons/smile.blade.php delete mode 100644 resources/views/vendor/comments/components/modal.blade.php delete mode 100644 resources/views/vendor/comments/components/scripts.blade.php delete mode 100644 resources/views/vendor/comments/components/styles.blade.php delete mode 100644 resources/views/vendor/comments/extraCommentHeaderActions.blade.php delete mode 100644 resources/views/vendor/comments/livewire/comment.blade.php delete mode 100644 resources/views/vendor/comments/livewire/comments.blade.php delete mode 100644 resources/views/vendor/comments/livewire/partials/newComment.blade.php delete mode 100644 resources/views/vendor/comments/livewire/partials/replyTo.blade.php delete mode 100644 resources/views/vendor/comments/mail/approvedCommentNotification.blade.php delete mode 100644 resources/views/vendor/comments/mail/pendingCommentNotification.blade.php delete mode 100644 resources/views/vendor/comments/signed/approval/approveComment.blade.php delete mode 100644 resources/views/vendor/comments/signed/approval/approveCommentConfirmation.blade.php delete mode 100644 resources/views/vendor/comments/signed/approval/rejectComment.blade.php delete mode 100644 resources/views/vendor/comments/signed/approval/rejectCommentApproval.blade.php delete mode 100644 resources/views/vendor/comments/signed/notificationSubscription/unsubscribe.blade.php delete mode 100644 resources/views/vendor/comments/signed/notificationSubscription/unsubscribeAll.blade.php delete mode 100644 resources/views/vendor/comments/signed/notificationSubscription/unsubscribeAllApproval.blade.php delete mode 100644 resources/views/vendor/comments/signed/notificationSubscription/unsubscribeApproval.blade.php delete mode 100644 resources/views/vendor/comments/signed/signedLayout.blade.php diff --git a/resources/views/vendor/comments/components/avatar.blade.php b/resources/views/vendor/comments/components/avatar.blade.php deleted file mode 100644 index c4b5a611..00000000 --- a/resources/views/vendor/comments/components/avatar.blade.php +++ /dev/null @@ -1,15 +0,0 @@ -@php - $defaultImage = Spatie\Comments\Support\Config::getGravatarDefaultImage(); - $defaultAvatar = "https://www.gravatar.com/avatar/unknown?d={$defaultImage}"; - - if ($user = auth()->user()) { - $segment = md5(strtolower($user->email)); - $defaultAvatar = "https://www.gravatar.com/avatar/{$segment}?d={$defaultImage}"; - } -@endphp - -{{--avatar--}} diff --git a/resources/views/vendor/comments/components/button.blade.php b/resources/views/vendor/comments/components/button.blade.php deleted file mode 100644 index 3ca9d0e8..00000000 --- a/resources/views/vendor/comments/components/button.blade.php +++ /dev/null @@ -1,12 +0,0 @@ - diff --git a/resources/views/vendor/comments/components/date.blade.php b/resources/views/vendor/comments/components/date.blade.php deleted file mode 100644 index 9f8fe9cf..00000000 --- a/resources/views/vendor/comments/components/date.blade.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/resources/views/vendor/comments/components/editors/easymde.blade.php b/resources/views/vendor/comments/components/editors/easymde.blade.php deleted file mode 100644 index 9607a6e2..00000000 --- a/resources/views/vendor/comments/components/editors/easymde.blade.php +++ /dev/null @@ -1,104 +0,0 @@ -
-
- -
- -
- {!! __('You can use Markdown') !!} -
-
- -@push('comments-scripts') - -@endpush diff --git a/resources/views/vendor/comments/components/editors/textarea.blade.php b/resources/views/vendor/comments/components/editors/textarea.blade.php deleted file mode 100644 index 9da655da..00000000 --- a/resources/views/vendor/comments/components/editors/textarea.blade.php +++ /dev/null @@ -1 +0,0 @@ - diff --git a/resources/views/vendor/comments/components/icons/close.blade.php b/resources/views/vendor/comments/components/icons/close.blade.php deleted file mode 100644 index ee17689f..00000000 --- a/resources/views/vendor/comments/components/icons/close.blade.php +++ /dev/null @@ -1 +0,0 @@ - diff --git a/resources/views/vendor/comments/components/icons/copy.blade.php b/resources/views/vendor/comments/components/icons/copy.blade.php deleted file mode 100644 index 3ed38263..00000000 --- a/resources/views/vendor/comments/components/icons/copy.blade.php +++ /dev/null @@ -1 +0,0 @@ - diff --git a/resources/views/vendor/comments/components/icons/delete.blade.php b/resources/views/vendor/comments/components/icons/delete.blade.php deleted file mode 100644 index 42d105a1..00000000 --- a/resources/views/vendor/comments/components/icons/delete.blade.php +++ /dev/null @@ -1 +0,0 @@ - diff --git a/resources/views/vendor/comments/components/icons/edit.blade.php b/resources/views/vendor/comments/components/icons/edit.blade.php deleted file mode 100644 index eaf2288f..00000000 --- a/resources/views/vendor/comments/components/icons/edit.blade.php +++ /dev/null @@ -1 +0,0 @@ - diff --git a/resources/views/vendor/comments/components/icons/menu.blade.php b/resources/views/vendor/comments/components/icons/menu.blade.php deleted file mode 100644 index a3aaf2ca..00000000 --- a/resources/views/vendor/comments/components/icons/menu.blade.php +++ /dev/null @@ -1 +0,0 @@ - diff --git a/resources/views/vendor/comments/components/icons/smile.blade.php b/resources/views/vendor/comments/components/icons/smile.blade.php deleted file mode 100644 index 511534cf..00000000 --- a/resources/views/vendor/comments/components/icons/smile.blade.php +++ /dev/null @@ -1 +0,0 @@ - diff --git a/resources/views/vendor/comments/components/modal.blade.php b/resources/views/vendor/comments/components/modal.blade.php deleted file mode 100644 index 94d1b4d3..00000000 --- a/resources/views/vendor/comments/components/modal.blade.php +++ /dev/null @@ -1,14 +0,0 @@ -
$compact ?? false, 'is-left' => $left ?? false, 'is-bottom' => $bottom ?? false]) - {{ $attributes }} -> - @isset($title) -

- {{ $title }} -

- @endisset -
- {{ $slot }} -
-
diff --git a/resources/views/vendor/comments/components/scripts.blade.php b/resources/views/vendor/comments/components/scripts.blade.php deleted file mode 100644 index fa709f54..00000000 --- a/resources/views/vendor/comments/components/scripts.blade.php +++ /dev/null @@ -1,9 +0,0 @@ - -@stack('comments-scripts') diff --git a/resources/views/vendor/comments/components/styles.blade.php b/resources/views/vendor/comments/components/styles.blade.php deleted file mode 100644 index 2eb158a0..00000000 --- a/resources/views/vendor/comments/components/styles.blade.php +++ /dev/null @@ -1,3 +0,0 @@ - diff --git a/resources/views/vendor/comments/extraCommentHeaderActions.blade.php b/resources/views/vendor/comments/extraCommentHeaderActions.blade.php deleted file mode 100644 index e69de29b..00000000 diff --git a/resources/views/vendor/comments/livewire/comment.blade.php b/resources/views/vendor/comments/livewire/comment.blade.php deleted file mode 100644 index 57a4898a..00000000 --- a/resources/views/vendor/comments/livewire/comment.blade.php +++ /dev/null @@ -1,196 +0,0 @@ -
-
- @if($showAvatar) - - @endif -
-
- @if($url = $comment->commentatorProperties()?->url) - - {{ $comment->commentatorProperties()->name }} - - @else - {{ $comment->commentatorProperties()?->name ?? __('comments::comments.guest') }} - @endif - -
- @if($comment->isPending()) -
- - {{__('comments::comments.awaits_approval')}} - - - @can('reject', $comment) - - @endcan - @can('approve', $comment) - - @endcan - -
- @endif - @if($isEditing) -
-
- - @error('editText') -

- {{ $message }} -

- @enderror - - {{ __('comments::comments.edit_comment') }} - - - {{ __('comments::comments.cancel') }} - - -
- @else -
- {!! $comment->text !!} -
- @if($writable || $comment->reactions->summary()->isNotEmpty()) -
- @foreach($comment->reactions->summary() as $summary) -
$summary['commentator_reacted']]) - > - {{ $summary['reaction'] }} {{ $summary['count'] }} -
- @endforeach - @if($writable) -
- @can('react', $comment) - - -
- @foreach(config('comments.allowed_reactions') as $reaction) - @php - $commentatorReacted = ! is_bool(array_search( - $reaction, - array_column($comment->reactions->toArray(), 'reaction'), - )); - @endphp - - @endforeach -
-
- @endcan -
- @endif -
- @endif - @endif -
-
- - @if($showReplies) - - @if($comment->isTopLevel()) - -
- @if($this->newestFirst) - @if(auth()->check() || config('comments.allow_anonymous_comments')) - @include('comments::livewire.partials.replyTo') - @endif - - @endif - @foreach ($comment->nestedComments as $nestedComment) - @can('see', $nestedComment) - - @endcan - @endforeach - @if(! $this->newestFirst) - @if(auth()->check() || config('comments.allow_anonymous_comments')) - @include('comments::livewire.partials.replyTo') - @endif - @endif -
- @endif - @endif -
diff --git a/resources/views/vendor/comments/livewire/comments.blade.php b/resources/views/vendor/comments/livewire/comments.blade.php deleted file mode 100644 index 9404da6d..00000000 --- a/resources/views/vendor/comments/livewire/comments.blade.php +++ /dev/null @@ -1,61 +0,0 @@ -@php - use Spatie\Comments\Enums\NotificationSubscriptionType; -@endphp - -
-
- @if($writable) - @auth - @if($showNotificationOptions) -
- - - @foreach(NotificationSubscriptionType::cases() as $case) - - @endforeach - -
- @endif - @endif - @endauth -
- - @if ($newestFirst) - @include('comments::livewire.partials.newComment') - @endif - - @if($comments->count()) - @foreach($comments as $comment) - @can('see', $comment) - - @endcan - @endforeach - - @if ($comments->hasPages()) - {{ $comments->links() }} - @endif - - @else -

{{ $noCommentsText ?? __('comments::comments.no_comments_yet') }}

- @endif - - @if (! $newestFirst) - @include('comments::livewire.partials.newComment') - @endif -
diff --git a/resources/views/vendor/comments/livewire/partials/newComment.blade.php b/resources/views/vendor/comments/livewire/partials/newComment.blade.php deleted file mode 100644 index c6172b9b..00000000 --- a/resources/views/vendor/comments/livewire/partials/newComment.blade.php +++ /dev/null @@ -1,24 +0,0 @@ -@if($writable) - @can('createComment', $model) -
- @if($showAvatars) - - @endif -
- - @error('text') -

- {{ $message }} -

- @enderror - - {{ __('comments::comments.create_comment') }} - - -
- @endcan -@endif diff --git a/resources/views/vendor/comments/livewire/partials/replyTo.blade.php b/resources/views/vendor/comments/livewire/partials/replyTo.blade.php deleted file mode 100644 index e3c6ddf9..00000000 --- a/resources/views/vendor/comments/livewire/partials/replyTo.blade.php +++ /dev/null @@ -1,47 +0,0 @@ -@if($writable) -
- @if($showAvatar) - - @endif -
-
- -
-
- - @error('replyText') -

- {{ $message }} -

- @enderror - - {{ __('comments::comments.create_reply') }} - - - {{ __('comments::comments.cancel') }} - -
-
-
-
-
-@endif diff --git a/resources/views/vendor/comments/mail/approvedCommentNotification.blade.php b/resources/views/vendor/comments/mail/approvedCommentNotification.blade.php deleted file mode 100644 index 9024b1f9..00000000 --- a/resources/views/vendor/comments/mail/approvedCommentNotification.blade.php +++ /dev/null @@ -1,24 +0,0 @@ -@component('mail::message') -# {{ __('comments::notifications.approved_comment_mail_title', [ - 'commentable_name' => $topLevelComment->commentable->commentableName(), - 'commentable_url' => $topLevelComment->commentable->commentUrl(), - 'commentator_name' => $comment->commentatorProperties()->name ?? 'anonymous', -]) }} - -{{ __('comments::notifications.approved_comment_mail_body', [ - 'commentable_name' => $topLevelComment->commentable->commentableName(), - 'commentable_url' => $topLevelComment->commentable->commentUrl(), - 'commentator_name' => $comment->commentatorProperties()->name ?? 'anonymous', -]) }} - -{!! $comment->text !!} - -@component('mail::button', ['url' => $comment->commentUrl()]) -{{ __('comments::notifications.view_comment') }} -@endcomponent - -@if($unsubscribeUrl = $commentator->unsubscribeFromCommentNotificationsUrl($comment)) -{{ __('Unsubscribe from receive notification about :commentableName', ['commentableName' => $topLevelComment->commentable->commentableName()]) }} -@endif - -@endcomponent diff --git a/resources/views/vendor/comments/mail/pendingCommentNotification.blade.php b/resources/views/vendor/comments/mail/pendingCommentNotification.blade.php deleted file mode 100644 index ea3eb0c3..00000000 --- a/resources/views/vendor/comments/mail/pendingCommentNotification.blade.php +++ /dev/null @@ -1,20 +0,0 @@ -@component('mail::message') - -{{ __('comments::notifications.pending_comment_mail_body', [ - 'commentable_name' => $topLevelComment->commentable->commentableName(), - 'commentator_name' => $comment->commentatorProperties()->name ?? 'anonymous', -]) }} - -[{{ __('comments::notifications.view_comment') }}]({{ $comment->commentUrl() }}) - -{!! $comment->text !!} - -@component('mail::button', ['url' => $comment->approveUrl()]) - {{ __('comments::notifications.approve_comment') }} -@endcomponent - -@component('mail::button', ['url' => $comment->rejectUrl()]) - {{ __('comments::notifications.reject_comment') }} -@endcomponent - -@endcomponent diff --git a/resources/views/vendor/comments/signed/approval/approveComment.blade.php b/resources/views/vendor/comments/signed/approval/approveComment.blade.php deleted file mode 100644 index 3c081d71..00000000 --- a/resources/views/vendor/comments/signed/approval/approveComment.blade.php +++ /dev/null @@ -1,5 +0,0 @@ - - - {{ __('The comment has been approved.') }} - - diff --git a/resources/views/vendor/comments/signed/approval/approveCommentConfirmation.blade.php b/resources/views/vendor/comments/signed/approval/approveCommentConfirmation.blade.php deleted file mode 100644 index 131720ed..00000000 --- a/resources/views/vendor/comments/signed/approval/approveCommentConfirmation.blade.php +++ /dev/null @@ -1,15 +0,0 @@ - - - {{ __('Do you want to approve the comment?') }} - -
- @csrf - -
- -
- - - diff --git a/resources/views/vendor/comments/signed/approval/rejectComment.blade.php b/resources/views/vendor/comments/signed/approval/rejectComment.blade.php deleted file mode 100644 index 31d40ac5..00000000 --- a/resources/views/vendor/comments/signed/approval/rejectComment.blade.php +++ /dev/null @@ -1,5 +0,0 @@ - - - {{ __('The comment has been rejected.') }} - - diff --git a/resources/views/vendor/comments/signed/approval/rejectCommentApproval.blade.php b/resources/views/vendor/comments/signed/approval/rejectCommentApproval.blade.php deleted file mode 100644 index 75c0b1a0..00000000 --- a/resources/views/vendor/comments/signed/approval/rejectCommentApproval.blade.php +++ /dev/null @@ -1,14 +0,0 @@ - - - {{ __('Do you want to reject the comment?') }} - -
- @csrf - -
- -
- - diff --git a/resources/views/vendor/comments/signed/notificationSubscription/unsubscribe.blade.php b/resources/views/vendor/comments/signed/notificationSubscription/unsubscribe.blade.php deleted file mode 100644 index 4c991b4e..00000000 --- a/resources/views/vendor/comments/signed/notificationSubscription/unsubscribe.blade.php +++ /dev/null @@ -1,5 +0,0 @@ - - - {{ __('You have been unsubscribed.') }} - - diff --git a/resources/views/vendor/comments/signed/notificationSubscription/unsubscribeAll.blade.php b/resources/views/vendor/comments/signed/notificationSubscription/unsubscribeAll.blade.php deleted file mode 100644 index 2ee8746a..00000000 --- a/resources/views/vendor/comments/signed/notificationSubscription/unsubscribeAll.blade.php +++ /dev/null @@ -1,5 +0,0 @@ - - - {{ __('You have been unsubscribed from every comment notification.') }} - - diff --git a/resources/views/vendor/comments/signed/notificationSubscription/unsubscribeAllApproval.blade.php b/resources/views/vendor/comments/signed/notificationSubscription/unsubscribeAllApproval.blade.php deleted file mode 100644 index d1855216..00000000 --- a/resources/views/vendor/comments/signed/notificationSubscription/unsubscribeAllApproval.blade.php +++ /dev/null @@ -1,14 +0,0 @@ - - - {{ __('Do you want to unsubscribe from every comment notification?') }} - -
- @csrf - -
- -
- - diff --git a/resources/views/vendor/comments/signed/notificationSubscription/unsubscribeApproval.blade.php b/resources/views/vendor/comments/signed/notificationSubscription/unsubscribeApproval.blade.php deleted file mode 100644 index 77e51dd5..00000000 --- a/resources/views/vendor/comments/signed/notificationSubscription/unsubscribeApproval.blade.php +++ /dev/null @@ -1,14 +0,0 @@ - - - {{ __('Do you want to unsubscribe?') }} - -
- @csrf - -
- -
- - diff --git a/resources/views/vendor/comments/signed/signedLayout.blade.php b/resources/views/vendor/comments/signed/signedLayout.blade.php deleted file mode 100644 index d634ae1b..00000000 --- a/resources/views/vendor/comments/signed/signedLayout.blade.php +++ /dev/null @@ -1,10 +0,0 @@ - - - - - -
- {{ $slot }} -
- -