feat: create /config/settings.js for separate of conserns SoC

This commit is contained in:
ISA
2024-07-10 08:40:55 +02:00
parent 6c60700b7c
commit 6d024235d0
2 changed files with 7 additions and 6 deletions

View File

@@ -74,7 +74,7 @@ import {
addContextMenuToMarker,
openInNewTab,
} from "../utils/contextMenuUtils.js";
import * as settings from "../config/settings.js";
import { MAP_VERSION } from "../config/settings";
import * as layers from "../config/layers.js";
//---------------------------------------------------------------------
@@ -2275,7 +2275,7 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
</span>
<br />
<span className="text-black text-lg">Version 1.0.0</span>
<span className="text-black text-lg">Version {MAP_VERSION}</span>
</div>
<div>
<button onClick={openVersionInfoModal}>
@@ -2317,7 +2317,7 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
</h5>
</div>
<p className="text-gray-700 text-center font-bold mt-4 leading-relaxed">
TALAS.Map Version 1.0.0
TALAS.Map Version {MAP_VERSION}
</p>
<button
onClick={closeVersionInfoModal}

View File

@@ -1,4 +1,5 @@
// /config/settings.js
// Definieren der grundlegenden Umgebungseinstellungen und Konfigurationen der Karte
export const MAP_VERSION = "0.5.3";
export const STANDARD_SIDE_MENU = true;
export const FULL_SIDE_MENU = false;
export const MAP_VERSION = "1.0.0";
//export const STANDARD_SIDE_MENU = true;
//export const FULL_SIDE_MENU = false;