-
- {{ renderHeader() }}
-
-
-
- {{ renderText() }}
-
+
+
+
+
+
+
+
+
+ {{ renderHeader() }}
+
+
+
+ {{ renderText() }}
+
+
-
-
-
-
+
+
+
+
diff --git a/resources/js/Shared/Components/FavoriteButton.vue b/resources/js/Shared/Components/FavoriteButton.vue
index 83185344..27288ba7 100644
--- a/resources/js/Shared/Components/FavoriteButton.vue
+++ b/resources/js/Shared/Components/FavoriteButton.vue
@@ -49,7 +49,7 @@ const toggleFavorite = async () => {
toast.success(__('City added to favorites.'))
}
} catch (error) {
- toast.error('There was an error!')
+ toast.error(__('There was an error'))
}
}
diff --git a/resources/js/Shared/Components/Opinion.vue b/resources/js/Shared/Components/Opinion.vue
new file mode 100644
index 00000000..f65ba8d0
--- /dev/null
+++ b/resources/js/Shared/Components/Opinion.vue
@@ -0,0 +1,157 @@
+
+
+
+
+
+ {{ opinion.user.name }}
+
+
+
+
+ {{ new Date(opinion.updated_at).toLocaleString("pl-PL", dateOptions) }}
+
+
+
+ {{ opinion.content }}
+
+
+
+
+
+
+
+
diff --git a/routes/web.php b/routes/web.php
index 1de774b1..99da75d2 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -29,6 +29,8 @@
Route::get("/favorite-cities", [FavoritesController::class, "index"]);
Route::post("/opinions", [CityOpinionController::class, "store"]);
+ Route::patch("/opinions/{cityOpinion}", [CityOpinionController::class, "update"]);
+ Route::delete("/opinions/{cityOpinion}", [CityOpinionController::class, "destroy"]);
Route::middleware(["role:admin"])->group(function (): void {
Route::get("/admin/importers", [ImportInfoController::class, "index"]);
From 40335dce1a9eda192faaeace67104a9660bf21b9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Patryk=20=C5=BBmigrodzki?=
<100092805+zmigrOO@users.noreply.github.com>
Date: Mon, 27 Nov 2023 12:30:04 +0100
Subject: [PATCH 2/2] #161 - Make providers larger on hover (#170)
* Add hover effect to provider icons
* Update providers in cities, added tooltips
* fixed tailwind classes order
* made icons larger without hover effect
* providers have no borders
* fixed problem with provider width
* linting
---------
Co-authored-by: zmigroo
---
resources/js/Shared/Components/City.vue | 10 +++++-----
resources/js/Shared/Components/ProviderIcons.vue | 6 +++---
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/resources/js/Shared/Components/City.vue b/resources/js/Shared/Components/City.vue
index 869eb0b7..ce651112 100644
--- a/resources/js/Shared/Components/City.vue
+++ b/resources/js/Shared/Components/City.vue
@@ -198,19 +198,19 @@ function toggleProvidersForm() {
-
-
+
-
- +{{ selectedCityProviders.length - 4 }}
+ +{{ selectedCityProviders.length - 3 }}
diff --git a/resources/js/Shared/Components/ProviderIcons.vue b/resources/js/Shared/Components/ProviderIcons.vue
index 4c3b6135..eef49127 100644
--- a/resources/js/Shared/Components/ProviderIcons.vue
+++ b/resources/js/Shared/Components/ProviderIcons.vue
@@ -13,10 +13,10 @@ function getProviderColor(providerName) {
-