mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -05:00
Update changelog
This commit is contained in:
parent
5688d66972
commit
e511eb7548
11 changed files with 11 additions and 11 deletions
|
|
@ -41,6 +41,7 @@ If you're running your own Photon instance, you can safely set `STORE_GEODATA` t
|
|||
- Reverse geocoding is now working as on-demand job instead of storing the result in the database.
|
||||
- Stats cards now show the last update time. #733
|
||||
- Visit card now shows buttons to confirm or decline a visit only if it's not confirmed or declined yet.
|
||||
- Distance unit is now being stored in the user settings. You can choose between kilometers and miles, default is kilometers. The setting is accessible in the user settings -> Maps -> Distance Unit. You might want to recalculate your stats after changing the unit.
|
||||
|
||||
## Fixed
|
||||
|
||||
|
|
@ -50,6 +51,10 @@ If you're running your own Photon instance, you can safely set `STORE_GEODATA` t
|
|||
- PostGIS extension is now being enabled only if it's not already enabled. #1186
|
||||
- Fixed a bug where visits were returning into Suggested state after being confirmed or declined. #848
|
||||
|
||||
## Removed
|
||||
|
||||
- Removed `DISTANCE_UNIT` constant. It can be safely removed from your environment variables in docker-compose.yml.
|
||||
|
||||
|
||||
# 0.26.0 - 2025-05-08
|
||||
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -47,7 +47,7 @@ export default class extends BaseController {
|
|||
this.clearFogRadius = parseInt(this.userSettings.fog_of_war_meters) || 50;
|
||||
this.fogLinethreshold = parseInt(this.userSettings.fog_of_war_threshold) || 90;
|
||||
this.routeOpacity = parseFloat(this.userSettings.route_opacity) || 0.6;
|
||||
this.distanceUnit = this.element.dataset.distance_unit || "km";
|
||||
this.distanceUnit = this.userSettings.maps.distance_unit || "km";
|
||||
this.pointsRenderingMode = this.userSettings.points_rendering_mode || "raw";
|
||||
this.liveMapEnabled = this.userSettings.live_map_enabled || false;
|
||||
this.countryCodesMap = countryCodesMap();
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ export default class extends BaseController {
|
|||
this.apiKey = this.containerTarget.dataset.api_key
|
||||
this.userSettings = JSON.parse(this.containerTarget.dataset.user_settings || '{}')
|
||||
this.timezone = this.containerTarget.dataset.timezone
|
||||
this.distanceUnit = this.containerTarget.dataset.distance_unit
|
||||
this.distanceUnit = this.userSettings.maps.distance_unit || "km"
|
||||
|
||||
// Initialize map and layers
|
||||
this.initializeMap()
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ class ReverseGeocoding::Places::FetchData
|
|||
limit: 10,
|
||||
distance_sort: true,
|
||||
radius: 1,
|
||||
units: ::DISTANCE_UNIT
|
||||
units: :km
|
||||
)
|
||||
|
||||
data.reject do |place|
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ module Visits
|
|||
|
||||
def geocoder_results
|
||||
@geocoder_results ||= Geocoder.search(
|
||||
center, limit: 10, distance_sort: true, radius: 1, units: ::DISTANCE_UNIT
|
||||
center, limit: 10, distance_sort: true, radius: 1, units: :km
|
||||
)
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -65,7 +65,6 @@
|
|||
class="w-full z-0"
|
||||
data-controller="maps points"
|
||||
data-points-target="map"
|
||||
data-distance_unit="<%= DISTANCE_UNIT %>"
|
||||
data-api_key="<%= current_user.api_key %>"
|
||||
data-self_hosted="<%= @self_hosted %>"
|
||||
data-user_settings='<%= current_user.settings.to_json.html_safe %>'
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@
|
|||
id='map trips-container'
|
||||
class="w-full h-full rounded-lg"
|
||||
data-trips-target="container"
|
||||
data-distance_unit="<%= DISTANCE_UNIT %>"
|
||||
data-api_key="<%= current_user.api_key %>"
|
||||
data-user_settings="<%= current_user.settings.to_json %>"
|
||||
data-path="<%= trip.path.to_json %>"
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@
|
|||
class="w-full h-full rounded-lg z-0"
|
||||
data-controller="trips"
|
||||
data-trips-target="container"
|
||||
data-distance_unit="<%= DISTANCE_UNIT %>"
|
||||
data-api_key="<%= trip.user.api_key %>"
|
||||
data-user_settings="<%= trip.user.settings.to_json %>"
|
||||
data-path="<%= trip.path.coordinates.to_json %>"
|
||||
|
|
|
|||
|
|
@ -16,8 +16,7 @@
|
|||
data-trip-map-path-value="<%= trip.path.coordinates.to_json %>"
|
||||
data-trip-map-api-key-value="<%= current_user.api_key %>"
|
||||
data-trip-map-user-settings-value="<%= current_user.settings.to_json %>"
|
||||
data-trip-map-timezone-value="<%= Rails.configuration.time_zone %>"
|
||||
data-trip-map-distance-unit-value="<%= DISTANCE_UNIT %>">
|
||||
data-trip-map-timezone-value="<%= Rails.configuration.time_zone %>">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
SELF_HOSTED = ENV.fetch('SELF_HOSTED', 'true') == 'true'
|
||||
|
||||
MIN_MINUTES_SPENT_IN_CITY = ENV.fetch('MIN_MINUTES_SPENT_IN_CITY', 60).to_i
|
||||
DISTANCE_UNIT = ENV.fetch('DISTANCE_UNIT', 'km').to_sym
|
||||
|
||||
DISTANCE_UNITS = {
|
||||
km: 1000, # to meters
|
||||
|
|
|
|||
Loading…
Reference in a new issue