feat: Enhance CollectionLink component with search functionality and statistics display
- Implemented search functionality to filter collections based on user input. - Added statistics display for linked collections and total collections. - Updated modal layout for better user experience, including a search bar and clear filters option. - Improved accessibility and visual design of the modal and its components. refactor: Update localization files for multiple languages - Removed outdated delete collection warning messages. - Added new keys for adventures available, collections linked, and other relevant phrases in various languages. - Ensured consistency across localization files for better user experience. fix: Adjust styles in worldtravel and collections pages - Updated styles for quick stats section in worldtravel page for improved visibility. - Ensured proper handling of sorting parameters in collections page navigation.
This commit is contained in:
@@ -82,6 +82,8 @@
|
||||
url.searchParams.set('order_direction', direction);
|
||||
url.searchParams.set('page', '1'); // Reset to first page when sorting changes
|
||||
currentPage = 1;
|
||||
orderBy = by;
|
||||
orderDirection = direction;
|
||||
await goto(url.toString(), { invalidateAll: true, replaceState: true });
|
||||
if (data.props.adventures) {
|
||||
collections = data.props.adventures;
|
||||
|
||||
@@ -123,7 +123,7 @@
|
||||
|
||||
<!-- Quick Stats -->
|
||||
<div class="hidden md:flex items-center gap-2">
|
||||
<div class="stats stats-horizontal bg-base-100 shadow-lg">
|
||||
<div class="stats stats-horizontal bg-base-200/50 border border-base-300/50">
|
||||
<div class="stat py-2 px-4">
|
||||
<div class="stat-title text-xs">{$t('adventures.visited')}</div>
|
||||
<div class="stat-value text-lg text-success">{visitedCountries}</div>
|
||||
|
||||
Reference in New Issue
Block a user