mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 01:31:39 -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.
|
- 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
|
- 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.
|
- 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
|
## 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
|
- 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
|
- 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
|
# 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.clearFogRadius = parseInt(this.userSettings.fog_of_war_meters) || 50;
|
||||||
this.fogLinethreshold = parseInt(this.userSettings.fog_of_war_threshold) || 90;
|
this.fogLinethreshold = parseInt(this.userSettings.fog_of_war_threshold) || 90;
|
||||||
this.routeOpacity = parseFloat(this.userSettings.route_opacity) || 0.6;
|
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.pointsRenderingMode = this.userSettings.points_rendering_mode || "raw";
|
||||||
this.liveMapEnabled = this.userSettings.live_map_enabled || false;
|
this.liveMapEnabled = this.userSettings.live_map_enabled || false;
|
||||||
this.countryCodesMap = countryCodesMap();
|
this.countryCodesMap = countryCodesMap();
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ export default class extends BaseController {
|
||||||
this.apiKey = this.containerTarget.dataset.api_key
|
this.apiKey = this.containerTarget.dataset.api_key
|
||||||
this.userSettings = JSON.parse(this.containerTarget.dataset.user_settings || '{}')
|
this.userSettings = JSON.parse(this.containerTarget.dataset.user_settings || '{}')
|
||||||
this.timezone = this.containerTarget.dataset.timezone
|
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
|
// Initialize map and layers
|
||||||
this.initializeMap()
|
this.initializeMap()
|
||||||
|
|
|
||||||
|
|
@ -100,7 +100,7 @@ class ReverseGeocoding::Places::FetchData
|
||||||
limit: 10,
|
limit: 10,
|
||||||
distance_sort: true,
|
distance_sort: true,
|
||||||
radius: 1,
|
radius: 1,
|
||||||
units: ::DISTANCE_UNIT
|
units: :km
|
||||||
)
|
)
|
||||||
|
|
||||||
data.reject do |place|
|
data.reject do |place|
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ module Visits
|
||||||
|
|
||||||
def geocoder_results
|
def geocoder_results
|
||||||
@geocoder_results ||= Geocoder.search(
|
@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
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,6 @@
|
||||||
class="w-full z-0"
|
class="w-full z-0"
|
||||||
data-controller="maps points"
|
data-controller="maps points"
|
||||||
data-points-target="map"
|
data-points-target="map"
|
||||||
data-distance_unit="<%= DISTANCE_UNIT %>"
|
|
||||||
data-api_key="<%= current_user.api_key %>"
|
data-api_key="<%= current_user.api_key %>"
|
||||||
data-self_hosted="<%= @self_hosted %>"
|
data-self_hosted="<%= @self_hosted %>"
|
||||||
data-user_settings='<%= current_user.settings.to_json.html_safe %>'
|
data-user_settings='<%= current_user.settings.to_json.html_safe %>'
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,6 @@
|
||||||
id='map trips-container'
|
id='map trips-container'
|
||||||
class="w-full h-full rounded-lg"
|
class="w-full h-full rounded-lg"
|
||||||
data-trips-target="container"
|
data-trips-target="container"
|
||||||
data-distance_unit="<%= DISTANCE_UNIT %>"
|
|
||||||
data-api_key="<%= current_user.api_key %>"
|
data-api_key="<%= current_user.api_key %>"
|
||||||
data-user_settings="<%= current_user.settings.to_json %>"
|
data-user_settings="<%= current_user.settings.to_json %>"
|
||||||
data-path="<%= trip.path.to_json %>"
|
data-path="<%= trip.path.to_json %>"
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
class="w-full h-full rounded-lg z-0"
|
class="w-full h-full rounded-lg z-0"
|
||||||
data-controller="trips"
|
data-controller="trips"
|
||||||
data-trips-target="container"
|
data-trips-target="container"
|
||||||
data-distance_unit="<%= DISTANCE_UNIT %>"
|
|
||||||
data-api_key="<%= trip.user.api_key %>"
|
data-api_key="<%= trip.user.api_key %>"
|
||||||
data-user_settings="<%= trip.user.settings.to_json %>"
|
data-user_settings="<%= trip.user.settings.to_json %>"
|
||||||
data-path="<%= trip.path.coordinates.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-path-value="<%= trip.path.coordinates.to_json %>"
|
||||||
data-trip-map-api-key-value="<%= current_user.api_key %>"
|
data-trip-map-api-key-value="<%= current_user.api_key %>"
|
||||||
data-trip-map-user-settings-value="<%= current_user.settings.to_json %>"
|
data-trip-map-user-settings-value="<%= current_user.settings.to_json %>"
|
||||||
data-trip-map-timezone-value="<%= Rails.configuration.time_zone %>"
|
data-trip-map-timezone-value="<%= Rails.configuration.time_zone %>">
|
||||||
data-trip-map-distance-unit-value="<%= DISTANCE_UNIT %>">
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
SELF_HOSTED = ENV.fetch('SELF_HOSTED', 'true') == 'true'
|
SELF_HOSTED = ENV.fetch('SELF_HOSTED', 'true') == 'true'
|
||||||
|
|
||||||
MIN_MINUTES_SPENT_IN_CITY = ENV.fetch('MIN_MINUTES_SPENT_IN_CITY', 60).to_i
|
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 = {
|
DISTANCE_UNITS = {
|
||||||
km: 1000, # to meters
|
km: 1000, # to meters
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue