1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-08-05 13:15:18 +02:00
Commit graph

67 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
57aa2c9916 Enhance download-countries command with temporary SQLite database for efficient data processing; add batch size argument for improved performance and memory management. 2025-05-27 10:12:33 -04:00
Sean Morley
37866660d3 Adjust batch size in download-countries command for improved processing efficiency; update installer banner for better visual alignment. 2025-05-27 09:59:15 -04:00
Sean Morley
bcd1f02131 Enhance download-countries command with batch processing feedback; improve logging for countries, regions, and cities processing. 2025-05-26 20:43:11 -04:00
Sean Morley
f2246921d4 Refactor download-countries command for improved memory efficiency and batch processing; enhance data import logic for countries, regions, and cities. 2025-05-26 20:39:24 -04:00
Sean Morley
575669aedf Refactor batch processing in download-countries command for clarity and safety; enhance service wait function in installer script by removing unnecessary whitespace. 2025-05-26 18:06:06 -04:00
Sean Morley
e56335d30f Refactor geocoding and integration handling: remove debug print, streamline reverse geocoding logic, and enhance integration response structure 2025-05-25 22:13:18 -04:00
Sean Morley
c123231bab Optimize country data import process: increase batch size, implement memory management, and streamline record creation and updates 2025-05-24 19:05:16 -04:00
Sean Morley
84cd136401 Add bulk geocoding command and trigger geocoding action in admin 2025-05-22 20:29:05 -04: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
d1f50dfa17 feat: Add hotel management functionality with serializer and UI integration 2025-02-05 19:38:04 -05:00
Sean Morley
921e756aef feat: Enhance CDN management with entrypoint script and update country data handling 2025-02-05 16:50:05 -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
a010afcc43 fix: replace psutil with tqdm for progress tracking in country download command 2025-01-13 17:07:52 -05:00
Sean Morley
563373dd54 fix: implement memory limit and adjust batch size for country downloads 2025-01-13 14:42:48 -05:00
Sean Morley
a766a07ea1 fix: add warning for interrupted download-countries command due to memory issues 2025-01-13 14:12:05 -05:00
Sean Morley
ac37bc98c4 fix: add insert_id field to City, Country, and Region models 2025-01-13 13:01:36 -05:00
Sean Morley
9a7667fd62 fix: increase batch size for country downloads from 10 to 250 2025-01-13 11:24:25 -05:00
Sean Morley
7f2c3c33a5 fix: switch from json to ijson for efficient country data processing 2025-01-13 11:23:57 -05:00
Sean Morley
6252f3cf14 fix: reduce batch size for country downloads from 100 to 10 2025-01-13 11:19:45 -05:00
Sean Morley
6413b9a985 fix: reduce batch size for country downloads from 250 to 100 2025-01-13 11:07:59 -05:00
Sean Morley
32125efed4 feat: adjust batch size for country updates and include longitude/latitude in bulk update 2025-01-12 22:09:55 -05:00
Sean Morley
1f7d75acfc feat: implement batch processing for country, region, and city creation and updates in download command 2025-01-12 21:53:16 -05:00
Sean Morley
30f1eaef1c feat: enhance download command with success and warning messages; update Authentik documentation for clarity 2025-01-12 20:28:27 -05:00
Sean Morley
abe870506f feat: enhance region visit tracking with improved toast messages, update localization, and modify page titles 2025-01-09 13:53:16 -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
5d12d103fc feat: enhance AdventureImage model with custom upload path and add latitude/longitude fields to Country model 2025-01-01 19:27:33 -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
87928932c2 Update download URL for countries JSON to use tagged version 2024-11-05 10:27:06 -05:00
Sean Morley
78f56a3a5f Fix max url length, adds line breaks to display, truncates long urls. Remove old seed command. 2024-09-17 10:34:31 -04:00
Sean Morley
cc7c04b0ec Redownload when region data version changes 2024-09-13 20:33:44 -04:00
Sean Morley
6ac3f0541f Add capital to countries 2024-09-11 16:08:10 -04:00
Sean Morley
bd6d60d24d Update entrypoint 2024-09-11 09:31:25 -04:00
Sean Morley
9ba5b25ab5 Update existing regions 2024-09-10 23:12:01 -04:00
Sean Morley
6e9724979a Region dataset 2024-09-10 23:00:13 -04:00
Sean Morley
5f8ea0040d Indenting fixes 2024-09-09 16:07:00 -04:00
dymek37
e1c25fcdfa
Administrative subdivisions for 31 countries
Added administrative subdivisions for 31 countries:
Namibia
Nauru
Nepal
Netherlands
New Caledonia
Nicaragua
Niger
Nigeria
Niue
Norfolk Island (NF)
North Macedonia
Northern Mariana Islands
Norway
Oman
Pakistan
Palau
Palestine, State of
Panama
Papua New Guinea
Paraguay
Peru
Philippines
Pitcairn
Poland
Portugal
Puerto Rico
Qatar
Réunion
Romania
Russian Federation
Rwanda
2024-09-09 20:30:43 +02:00
Sean Morley
2c280b24d6 Formatting and minor fixes 2024-09-08 14:46:29 -04:00
dymek37
2d45be3ab1
Administrative divisions have been added for 23 countries.
Administrative divisions have been added for 23 countries:
Lithuania 
Luxembourg
Macao
Madagascar
Malawi
Malaysia
Maldives
Mali 
Malta
Marshall Islands
Martinique
Mauritania
Mauritius
Mayotte
Micronesia (Federated States of)
Moldova (Republic of)
Monaco
Mongolia
Montenegro
Montserrat
Morocco
Mozambique
Myanmar
2024-09-08 20:31:46 +02:00
Sean Morley
6380fd3abe Formatting and minor fixes 2024-09-08 01:05:18 -04:00
dymek37
7375ad223d
Administrative subdivisions for 13 countries
Added administrative subdivisions for 13 countries:
Kazakhstan
Kenya
Kiribati
Korea (Democratic People's Republic of)
Korea (Republic of)
Kuwait
Kyrgyzstan
Lao People's Democratic Republic (Laos)
Latvia
Lebanon
Lesotho
Liberia
Libya
2024-09-07 16:18:47 +02:00
Sean Morley
1c8c6fe40a Formatting and minor fixes 2024-09-06 15:24:02 -04:00
dymek37
e09ca2333a
Adding and updating administrative subdivisions
Administrative subdivisions have been added for 26 countries:
Ghana
Gibraltar
Greece
Greenland
Grenada
Guadeloupe
Guam
Guatemala
Guernsey
Guinea
Guinea-Bissau
Guyan
Hait
Heard Island and McDonald Islands
Holy See
Honduras
Hong Kong
Hungary
Indonesia
Iran
Iraq
Isle of Man
Israel
Jamaica
Jersey
Jordan

Updates have been made for 3 countries:
India
Ireland
Italy
2024-09-06 21:07:05 +02:00
Sean Morley
4558c30d74 Formatting and minor fixes 2024-09-06 11:12:48 -04:00
dymek37
04c358a72e
Administrative divisions for 21 countries
Administrative divisions for 21 countries have been added:
Denmark
Djibouti
Dominica
Dominican Republic
Ecuador
El Salvador
Equatorial Guinea
Eritrea
Estonia
Eswatini
Ethiopia
Falkland Islands (Malvinas)
Faroe Islands
Fiji
Finland
French Guiana
French Polynesia
French Southern Territories
Gabon
Georgia
Gambia
2024-09-06 16:58:07 +02:00
Sean Morley
70c812daca Formatting and minor fixes 2024-09-06 08:53:56 -04:00
dymek37
acb3bc838d
Update worldtravel-seed.py
The list of regions for 37 countries has been updated:
Azerbaijan
Bahamas 
Bahrain 
Bangladesh 
Barbados 
Belarus 
Belgium
Belize
Benin
Bermuda
Bhutan
Bolivia
Bonaire, Sint Eustatius and Saba
Bosnia and Herzegovina
Botswana
Bouvet Island
British Indian Ocean Territory
Brunei Darussalam
Bulgaria
Burkina Faso
Burundi
Cape Verde
Cambodia
Cameroon
 Christmas Island
Cocos Islands (Keelinga)
Colombia
Comoros
Congo
Democratic Republic of the Congo
Cook Islands
Costa Rica
Croatia
Cuba
Curaçao
Cyprus
Ivory Coast 

1 capital city has been added for the Czech Republic.
2024-09-06 12:24:45 +02:00
Sean Morley
dcae936738 Formatting and minor fixes 2024-09-06 00:39:48 -04:00
dymek37
011e291d23
Update worldtravel-seed.py
Regions have been added to the following countries: 
Afghanistan (AF), 
Åland Islands (AX), 
Albania (AL), 
Algeria (DZ), 
American Samoa (AS), 
Andorra (AD), 
Angola (AO), 
Anguilla (AI), 
Antarctica (AQ), 
Armenia (AM), 
Aruba (AW), 
Antigua and Barbuda (AG).
2024-09-05 20:52:47 +02:00