1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-24 15:29:36 +02:00
Commit graph

65 commits

Author SHA1 Message Date
Sean Morley
493a13995c
Rename Adventures to Locations (#696)
* Refactor user_id to user in adventures and related models, views, and components

- Updated all instances of user_id to user in the adventures app, including models, serializers, views, and frontend components.
- Adjusted queries and filters to reflect the new user field naming convention.
- Ensured consistency across the codebase for user identification in adventures, collections, notes, and transportation entities.
- Modified frontend components to align with the updated data structure, ensuring proper access control and rendering based on user ownership.

* Refactor adventure-related views and components to use "Location" terminology

- Updated GlobalSearchView to replace AdventureSerializer with LocationSerializer.
- Modified IcsCalendarGeneratorViewSet to use LocationSerializer instead of AdventureSerializer.
- Created new LocationImageViewSet for managing location images, including primary image toggling and image deletion.
- Introduced LocationViewSet for managing locations with enhanced filtering, sorting, and sharing capabilities.
- Updated ReverseGeocodeViewSet to utilize LocationSerializer.
- Added ActivityTypesView to retrieve distinct activity types from locations.
- Refactored user views to replace AdventureSerializer with LocationSerializer.
- Updated frontend components to reflect changes from "adventure" to "location", including AdventureCard, AdventureLink, AdventureModal, and others.
- Adjusted API endpoints in frontend routes to align with new location-based structure.
- Ensured all references to adventures are replaced with locations across the codebase.

* refactor: rename adventures to locations across the application

- Updated localization files to replace adventure-related terms with location-related terms.
- Refactored TypeScript types and variables from Adventure to Location in various routes and components.
- Adjusted UI elements and labels to reflect the change from adventures to locations.
- Ensured all references to adventures in the codebase are consistent with the new location terminology.

* Refactor code structure for improved readability and maintainability

* feat: Implement location details page with server-side loading and deletion functionality

- Added +page.server.ts to handle server-side loading of additional location info.
- Created +page.svelte for displaying location details, including images, visits, and maps.
- Integrated GPX file handling and rendering on the map.
- Updated map route to link to locations instead of adventures.
- Refactored profile and search routes to use LocationCard instead of AdventureCard.

* docs: Update terminology from "Adventure" to "Location" and enhance project overview

* docs: Clarify collection examples in usage documentation

* feat: Enable credentials for GPX file fetch and add CORS_ALLOW_CREDENTIALS setting

* Refactor adventure references to locations across the backend and frontend

- Updated CategoryViewSet to reflect location context instead of adventures.
- Modified ChecklistViewSet to include locations in retrieval logic.
- Changed GlobalSearchView to search for locations instead of adventures.
- Adjusted IcsCalendarGeneratorViewSet to handle locations instead of adventures.
- Refactored LocationImageViewSet to remove unused import.
- Updated LocationViewSet to clarify public access for locations.
- Changed LodgingViewSet to reference locations instead of adventures.
- Modified NoteViewSet to prevent listing all locations.
- Updated RecommendationsViewSet to handle locations in parsing and response.
- Adjusted ReverseGeocodeViewSet to search through user locations.
- Updated StatsViewSet to count locations instead of adventures.
- Changed TagsView to reflect activity types for locations.
- Updated TransportationViewSet to reference locations instead of adventures.
- Added new translations for search results related to locations in multiple languages.
- Updated dashboard and profile pages to reflect location counts instead of adventure counts.
- Adjusted search routes to handle locations instead of adventures.

* Update banner image

* style: Update stats component background and border for improved visibility

* refactor: Rename AdventureCard and AdventureModal to LocationCard and LocationModal for consistency
2025-06-25 11:49:34 -04:00
Sean Morley
48df9ee56d
Update backend/server/main/settings.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-05-31 21:08:33 -04:00
Sean Morley
806efd71bf feat: secure CSRF cookie based on frontend URL protocol 2025-05-31 17:30:33 -04:00
Sean Morley
8be723b9ad Refactor authentication backends to enhance NoPasswordAuthBackend functionality; integrate Allauth for email login and improve password handling logic. 2025-05-28 12:21:43 -04:00
Sean Morley
a7128756bd Reorder authentication backends to prioritize NoPasswordAuthBackend while retaining Allauth and ModelBackend 2025-05-28 11:54:21 -04:00
Sean Morley
6be4acb196 Add authentication backends for Allauth and Django's ModelBackend 2025-05-28 11:06:21 -04:00
Sean Morley
3f6aa67b3f Refactor database configuration to use a helper function for environment variables, improving compatibility with legacy setups. 2025-05-26 17:18:30 -04:00
Sean Morley
40f54529a4 Refactor environment variable names in .env.example and settings.py for consistency; add install script for streamlined setup 2025-05-26 16:55:00 -04:00
Sean Morley
68ba3c4b4d Add Google Maps API integration for geocoding and reverse geocoding functionality 2025-05-24 14:59:58 -04:00
Sean Morley
3d9f4545a1
Merge branch 'development' into bool-case-sensitivity 2025-05-22 21:22:27 -04:00
Sean Morley
d52e302e9b Add geocoding functionality and enhance Adventure model with location fields 2025-05-22 20:05:13 -04:00
Sean Morley
7c3c139e61 Add DisableCSRFForMobileLoginSignup middleware to handle CSRF checks for mobile login/signup requests 2025-05-12 10:42:26 -04:00
Lars Kiesow
5136122ed9
Make boolean settings case insensitive
Having to use the Python syntax when it comes to case sensitivity for
booleans in environment variables can be unexpected and doesn't really
provide any benefit.

This patch makes all boolean settings case-insensitive. This means that,
for example, both `True` and `true` evaluate to `True` in Python.

This fixes #559
2025-04-26 23:27:25 +02:00
Sean Morley
a38828eb45 feat: Implement disable password authentication for users with social accounts 2025-03-16 21:49:00 -04:00
Sean Morley
b1068d27b0 refactor: Update API endpoint paths from "_allauth" to "auth" for consistency 2025-02-23 17:04:20 -05:00
Sean Morley
1c15e85986 feat: Enhance session cookie domain handling for IP addresses and single-label hostnames 2025-02-20 10:21:48 -05:00
Sean Morley
2713b3640f feat: Set SESSION_COOKIE_SAMESITE to 'Lax' for improved security 2025-02-16 15:35:10 -05:00
Sean Morley
b5d6788c11 feat: Add location_name to ReverseGeocode type and implement location fetching in stats view 2025-02-15 19:44:11 -05:00
Sean Morley
9b54af8d40 feat: Update country data management to use AdventureLog CDN for fetching flags and JSON files 2025-02-04 17:43:41 -05:00
Sean Morley
a00d2abe0d feat: Add achievements app with models, admin, and management command for seeding data 2025-02-04 10:37:15 -05:00
Sean Morley
7d71c84fd2 feat: Remove email field from user details response and enhance frontend user display 2025-02-01 15:10:25 -05:00
Sean Morley
3468e82b04 feat: Sanitize FRONTEND_URL by removing quotes for improved URL parsing 2025-01-27 09:23:48 -05:00
Sean Morley
f5dc0ceb0a feat: Refactor session cookie domain handling to use psl for improved domain parsing 2025-01-26 20:18:50 -05:00
Sean Morley
d326d38329 feat: Update session cookie domain handling using publicsuffix2 and psl libraries 2025-01-26 20:06:47 -05:00
Sean Morley
aa216f5688 feat: add Attachment model and implement file permission checks for media access 2025-01-18 20:06:12 -05:00
Sean Morley
433599dc20 feat: implement protected media serving and permission checks for adventure images 2025-01-18 17:03:03 -05:00
Sean Morley
e8f2c7ea81 fix: update session cookie domain handling for IP addresses and improve frontend URL configuration 2025-01-14 09:38:38 -05:00
Sean Morley
4c84ac0979 fix: enhance middleware to set HTTP_X_FORWARDED_PROTO and secure proxy SSL header 2025-01-13 19:21:35 -05:00
Sean Morley
4a36fbb4c1 fix: dynamically set session cookie domain based on request hostname 2025-01-13 18:06:16 -05:00
Sean Morley
062111d7fe fix: configure secure session cookies and dynamic domain for frontend URL 2025-01-13 17:52:25 -05:00
Sean Morley
44810e6343 feat: add City model and serializer, update RegionCard and create CityCard component, enhance admin interface for City management 2025-01-09 11:11:02 -05:00
Sean Morley
f670fbc93a feat: enhance superuser creation with email verification and update settings for two-factor authentication 2025-01-07 10:27:11 -05:00
Sean Morley
548702890d feat: update NGINX configuration for improved proxy handling and enable social account login on GET requests 2025-01-07 09:58:39 -05:00
Sean Morley
a5aa09ed7b feat: add OverrideHostMiddleware to set HTTP_HOST from PUBLIC_URL environment variable and update nginx configuration 2025-01-06 20:44:37 -05:00
Sean Morley
128c33d9a1 feat: add social authentication support with enabled providers endpoint and UI integration 2025-01-06 14:25:57 -05:00
Sean Morley
56244329f5 feat: configure REST framework renderers based on DEBUG setting 2025-01-03 16:29:39 -05:00
Sean Morley
67f6af8ca3 feat: add Immich integration view and API documentation, enhance error handling, and include SVG asset 2025-01-01 16:24:44 -05:00
Sean Morley
dc89743569 feat: add Immich integration module with API endpoints and admin interface 2024-12-31 10:38:15 -05:00
Sean Morley
7b7db1c530 Refactor email management and localization; update requirements and settings for MFA support 2024-12-12 19:20:58 -05:00
Sean Morley
673a56c6a0 Add MFA to login screen 2024-12-12 15:45:19 -05:00
Sean Morley
2ccbf4be83 Update email verification and password reset flows; refactor Docker Compose and enhance email management 2024-12-12 11:01:09 -05:00
Sean Morley
84566b8ec1 User profile settings API and remove old Dj-Rest-Auth code 2024-11-30 10:24:27 -05:00
Sean Morley
c65fcc2558 Migrate to session based auth 2024-11-29 18:20:51 -05:00
Sean Morley
b86c7258e7 Enhance admin security by integrating secure_admin_login from AllAuth and updating settings for new dependencies 2024-11-29 17:51:32 -05:00
Sean Morley
f119e6fdc2 Refactor settings.py to remove unused authentication configurations and clean up middleware 2024-11-29 16:55:28 -05:00
Sean Morley
9bc20be70e Initial migration to new session based auth system with AllAuth 2024-11-29 14:41:13 -05:00
Sean Morley
de45296dc1 Refactor media and static file paths; update countries JSON download URL to use COUNTRY_REGION_JSON_VERSION 2024-11-05 10:55:06 -05:00
Sean Morley
c27bf4baba Update COUNTRY_REGION_JSON_VERSION to v2.4 and adjust download URL in management command 2024-11-05 10:41:01 -05:00
Sean Morley
6eff9f6456 Update STATIC_ROOT path to use 'staticfiles' directory 2024-11-05 10:15:38 -05:00
Sean Morley
44c0ffc1d7 Refactor static file path and update theme selection text in Navbar; change localization keys for login and signup buttons 2024-11-05 10:13:30 -05:00