mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 07:11:08 -05:00
feat: Implement comprehensive ride filtering system with API integration
- Added `useRideFiltering` composable for managing ride filters and fetching rides from the API. - Created `useParkRideFiltering` for park-specific ride filtering. - Developed `useTheme` composable for theme management with localStorage support. - Established `rideFiltering` Pinia store for centralized state management of ride filters and UI state. - Defined enhanced filter types in `filters.ts` for better type safety and clarity. - Built `RideFilteringPage.vue` to provide a user interface for filtering rides with responsive design. - Integrated filter sidebar and ride list display components for a cohesive user experience. - Added support for filter presets and search suggestions. - Implemented computed properties for active filters, average ratings, and operating counts.
This commit is contained in:
23
backend/apps/rides/api_urls.py
Normal file
23
backend/apps/rides/api_urls.py
Normal file
@@ -0,0 +1,23 @@
|
||||
from django.urls import path
|
||||
from . import api_views
|
||||
|
||||
app_name = "rides_api"
|
||||
|
||||
urlpatterns = [
|
||||
# Main ride listing and filtering API
|
||||
path("rides/", api_views.RideListAPIView.as_view(), name="ride_list"),
|
||||
# Filter options endpoint
|
||||
path("filter-options/", api_views.get_filter_options, name="filter_options"),
|
||||
# Search endpoints
|
||||
path("search/companies/", api_views.search_companies_api, name="search_companies"),
|
||||
path(
|
||||
"search/ride-models/",
|
||||
api_views.search_ride_models_api,
|
||||
name="search_ride_models",
|
||||
),
|
||||
path(
|
||||
"search/suggestions/",
|
||||
api_views.get_search_suggestions_api,
|
||||
name="search_suggestions",
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user