Skip to content

Commit 4f0d8ac

Browse files
committed
fixed typos, layouts and formatting
1 parent 31033d8 commit 4f0d8ac

File tree

11 files changed

+10
-2052
lines changed

11 files changed

+10
-2052
lines changed

app/Http/Controllers/Frontend/CommentController.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use App\Inspections\Antispam;
88
use App\Models\Comment;
99
use App\Services\CommentHandler;
10-
use Auth;
1110
use Illuminate\Http\Request;
1211

1312
class CommentController extends Controller
@@ -21,7 +20,7 @@ public function __construct()
2120
// for guests
2221
public function store(CommentRequest $request, $post)
2322
{
24-
// honeypot for spamers, this fields must be hidden in css with "opacity: 0"
23+
// honeypot for spamers, these fields must be hidden in css with "opacity: 0"
2524
if ($request->filled('email') || $request->filled('website')) {
2625
return redirect()->route('front.posts');
2726
}

app/Models/Comment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ protected static function boot()
2626
{
2727
parent::boot();
2828

29-
// clear main page after creating comment
29+
// clear main page cache after creating comment
3030
static::saved(function () {
3131
cache()->forget('index-posts-1');
3232
});

app/Providers/RouteServiceProvider.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class RouteServiceProvider extends ServiceProvider
2626
*
2727
* @var string|null
2828
*/
29-
protected $namespace = 'App\\Http\\Controllers';
29+
protected $namespace = 'App\\Http\\Controllers';
3030

3131
/**
3232
* Define your route model bindings, pattern filters, etc.
@@ -44,9 +44,7 @@ public function boot()
4444
public function map(): void
4545
{
4646
$this->mapApiRoutes();
47-
4847
$this->mapBackendRoutes();
49-
5048
$this->mapFrontendRoutes();
5149
}
5250

app/Providers/ViewServiceProvider.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ public function boot()
2020
// view component 'chosen-posts'
2121
if (Schema::hasTable('posts')) {
2222
View::composer('components.chosen-posts', function ($view) {
23-
2423
$chosenPosts = cache()->remember('chosen-posts', 86400, function () {
2524
return Post::published()
2625
->chosen()

public/ckeditor/CHANGES.md

Lines changed: 0 additions & 1998 deletions
This file was deleted.

public/ckeditor/README.md

Lines changed: 0 additions & 39 deletions
This file was deleted.

public/css/colors/purple.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
:root {
2-
--lighter-optional: #f7eeff;
3-
--optional-color: #e4d1ff;
2+
--lighter-optional: #e0d1ee;
3+
--optional-color: #cfc1ff;
44
--darker-optional: #b68cf3;
55
--link: #6137ad;
66
}

public/css/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ table.table-alternating tbody tr:nth-of-type(2n),
3030
}
3131

3232
.chosen {
33-
background-color: var(--darker-optional) !important;
33+
background-color: #ffffff52 !important;
3434
}
3535

3636
a.active {

resources/views/components/chosen-posts.blade.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<div class="card margin-top-large margin-right-large" style="width: 20rem;">
33
<div class="card-body">
44
<h4 class="card-title">@lang('aside.choice')</h4>
5-
<p class="card-text">My favorite posts.</p>
65
@foreach($chosenPosts as $post)
76
<a href="{{ route('front.resource.show', $post->slug) }}">
87
{{ $post->first_sentence }}

resources/views/frontend/comments/_list.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<p>{{ trans_choice('comments.count', $resource->comments_count) }}</p>
44

55
@foreach($comments as $comment)
6-
<div class="row flex-right shadow padding margin border">
6+
<div class="row shadow padding margin border">
77
<a id="{{ $comment->created_at->format('Y-m-d_h-i-s') }}"></a>
88
<div class="col-3">
99
<p><strong>{{ $comment->user->name ?? $comment->name }}</strong></p>
@@ -17,7 +17,7 @@
1717
<div class="col-9">{{ $comment->comment }}</div>
1818
@endif
1919
@auth
20-
<div class="form-group">
20+
<div class="col flex-right">
2121
<a href="{{ route('comments.edit', $comment) }}" class="paper-btn btn-success-outline">Edit</a>
2222
<form action="{{route('comments.destroy', $comment)}}" method="POST">
2323
@method('DELETE')

0 commit comments

Comments
 (0)