From 7222f26b17f910ef51e6371997d74930f202fcfb Mon Sep 17 00:00:00 2001 From: krzysztofrewak Date: Mon, 19 Aug 2024 09:15:14 +0200 Subject: [PATCH] #24 - code review changes --- config/app.php | 2 +- lang/pl/validation.php | 1 + resources/js/Pages/Public/News/Index.vue | 13 +++++++++---- resources/js/Pages/Public/News/News.vue | 6 ++---- 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/config/app.php b/config/app.php index 9794b54..9e87668 100644 --- a/config/app.php +++ b/config/app.php @@ -8,7 +8,7 @@ "debug" => (bool)env("APP_DEBUG", false), "url" => env("APP_URL", "http://localhost"), "asset_url" => env("ASSET_URL"), - "timezone" => env("APP_TIMEZONE", "UTC"), + "timezone" => env("APP_TIMEZONE", "Europe/Warsaw"), "locale" => "pl", "fallback_locale" => "en", "faker_locale" => "pl", diff --git a/lang/pl/validation.php b/lang/pl/validation.php index cb5b43d..0169d94 100644 --- a/lang/pl/validation.php +++ b/lang/pl/validation.php @@ -129,6 +129,7 @@ "university_name" => "nazwa uczelni", "department_name" => "nazwa wydziału", "title" => "tytuł", + "content" => "treść", "value" => "opis", ], ]; diff --git a/resources/js/Pages/Public/News/Index.vue b/resources/js/Pages/Public/News/Index.vue index c97f6ad..dc450e3 100644 --- a/resources/js/Pages/Public/News/Index.vue +++ b/resources/js/Pages/Public/News/Index.vue @@ -4,6 +4,8 @@ import BackgroundGrid from '../../../Components/BackgroundGrid.vue' import SectionHeader from '../../../Components/SectionHeader.vue' import Pagination from '../../../Components/Pagination.vue' +import { NoSymbolIcon } from '@heroicons/vue/24/outline' + defineProps({ paginator: Object, }) @@ -37,14 +39,17 @@ defineProps({ {{ post.title }} -

- {{ post.content }} -

+

-
+
+ +

Brak aktualności

+
+ +
diff --git a/resources/js/Pages/Public/News/News.vue b/resources/js/Pages/Public/News/News.vue index 5755f0d..b7e44fb 100644 --- a/resources/js/Pages/Public/News/News.vue +++ b/resources/js/Pages/Public/News/News.vue @@ -19,13 +19,11 @@ defineProps({ {{ news.title }} -
-

Faucibus commodo massa rhoncus, volutpat. Dignissim sed eget risus enim. Mattis mauris semper sed amet vitae sed turpis id. Id dolor praesent donec est. Odio penatibus risus viverra tellus varius sit neque erat velit. Faucibus commodo massa rhoncus, volutpat. Dignissim sed eget risus enim. Mattis mauris semper sed amet vitae sed turpis id.

-
+