feat: Add PrimeProgress, PrimeSelect, and PrimeSkeleton components with customizable styles and props

- Implemented PrimeProgress component with support for labels, helper text, and various styles (size, variant, color).
- Created PrimeSelect component with dropdown functionality, custom templates, and validation states.
- Developed PrimeSkeleton component for loading placeholders with different shapes and animations.
- Updated index.ts to export new components for easy import.
- Enhanced PrimeVueTest.vue to include tests for new components and their functionalities.
- Introduced a custom ThrillWiki theme for PrimeVue with tailored color schemes and component styles.
- Added ambient type declarations for various components to improve TypeScript support.
This commit is contained in:
pacnpal
2025-08-27 21:00:02 -04:00
parent 6125c4ee44
commit 08a4a2d034
164 changed files with 73094 additions and 11001 deletions

View File

@@ -8,8 +8,15 @@ from django.views.generic import TemplateView
from .views import HomeView
from . import views
import os
from typing import Any
# Import API documentation views
# Ensure names are always defined for static analyzers / type checkers.
# Annotate as Any so static analysis won't complain that they might be None
SpectacularAPIView: Any = None
SpectacularSwaggerView: Any = None
SpectacularRedocView: Any = None
try:
from drf_spectacular.views import (
SpectacularAPIView,
@@ -30,6 +37,7 @@ try:
HAS_AUTOCOMPLETE = True
except ImportError:
autocomplete_urls = None
HAS_AUTOCOMPLETE = False
# Build URL patterns list dynamically
@@ -40,7 +48,7 @@ urlpatterns = [
# Health Check URLs
path("health/", include("health_check.urls")),
# Centralized API URLs - routes through main API router
path("api/", include("api.urls")),
path("api/", include("apps.api.urls")),
# All API endpoints are now consolidated under /api/v1/
# Parks and Rides URLs
path("parks/", include("apps.parks.urls", namespace="parks")),
@@ -48,7 +56,7 @@ urlpatterns = [
path("rides/", include("apps.rides.urls", namespace="rides")),
# Operators URLs
path("operators/", include("apps.parks.urls", namespace="operators")),
# Note: Photo URLs now handled through centralized API at /api/v1/media/
# Note: Photo URLs handled through domain-specific APIs at /api/v1/parks/ and /api/v1/rides/
# Legacy photo namespace removed - functionality moved to domain-specific APIs
path("search/", include("apps.core.urls.search", namespace="search")),
path("maps/", include("apps.core.urls.maps", namespace="maps")),
@@ -96,9 +104,7 @@ urlpatterns = [
]
# Add autocomplete URLs if available
try:
from autocomplete import urls as autocomplete_urls
if HAS_AUTOCOMPLETE and autocomplete_urls:
urlpatterns.insert(
2,
path(
@@ -109,8 +115,6 @@ try:
),
),
)
except ImportError:
pass
# Add API Documentation URLs if available
if HAS_SPECTACULAR:
@@ -139,17 +143,6 @@ else:
if settings.DEBUG:
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
# Development monitoring URLs
try:
import debug_toolbar
urlpatterns = [
path("__debug__/", include(debug_toolbar.urls)),
] + urlpatterns
except ImportError:
pass
try:
urlpatterns += [path("silk/", include("silk.urls", namespace="silk"))]
except ImportError: