chore: zentrale Versionsverwaltung verbessert und appVersion.js entfernt
- Versionsnummer wird nun automatisch in package.json, package-lock.json, .env.development und .env.production aktualisiert - appVersion.js entfernt, da die Version nun direkt über process.env.NEXT_PUBLIC_APP_VERSION verwendet wird - bumpVersion-Skript aktualisiert und vereinfacht - Vorbereitungen für klarere Versionshistorie und Releases
This commit is contained in:
@@ -11,7 +11,7 @@ import PoiUpdateModal from "@/components/pois/poiUpdateModal/PoiUpdateModal.js";
|
||||
import { ToastContainer, toast } from "react-toastify";
|
||||
import plusRoundIcon from "../icons/devices/overlapping/PlusRoundIcon.js";
|
||||
import { restoreMapSettings, checkOverlappingMarkers } from "../../utils/mapUtils.js";
|
||||
import { APP_VERSION } from "@/config/appVersion.js";
|
||||
|
||||
import addItemsToMapContextMenu from "@/components/contextmenu/useMapContextMenu.js";
|
||||
import useAreaMarkersLayer from "@/hooks/useAreaMarkersLayer.js";
|
||||
import { setupPolylines } from "@/utils/polylines/setupPolylines.js";
|
||||
@@ -87,6 +87,7 @@ import { setGisStationsStaticDistrict } from "@/redux/slices/webservice/gisStati
|
||||
//-----------------------------------------------------------------------------------------------------
|
||||
const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
|
||||
//-------------------------------
|
||||
const appVersion = process.env.NEXT_PUBLIC_APP_VERSION;
|
||||
const dispatch = useDispatch();
|
||||
// useDataUpdater();
|
||||
const [triggerUpdate, setTriggerUpdate] = useState(false);
|
||||
@@ -915,7 +916,7 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
|
||||
<div>
|
||||
<span className="text-black text-lg font-semibold"> TALAS.Map </span>
|
||||
<br />
|
||||
<span className="text-black text-lg">Version {APP_VERSION}</span>
|
||||
<span className="text-black text-lg">Version {appVersion}</span>
|
||||
</div>
|
||||
<div>
|
||||
<button onClick={openVersionInfoModal}>
|
||||
@@ -927,7 +928,7 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
|
||||
<VersionInfoModal
|
||||
showVersionInfoModal={showVersionInfoModal}
|
||||
closeVersionInfoModal={closeVersionInfoModal}
|
||||
APP_VERSION={APP_VERSION}
|
||||
APP_VERSION={appVersion}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user