Commit Graph

284 Commits

Author SHA1 Message Date
ISA
f07e4b32d2 doc: addItemsToMapContextMenu und hasRights in progress 2024-07-17 15:32:01 +02:00
ISA
3243cb454a fix: Beschreibung in Popup bei POI bearbeiten war nicht sichtbar, nur Platzhalter 2024-07-17 11:04:48 +02:00
ISA
de40d9ccb9 feat: npm install nextjs-cors weil
Access to fetch at 'http://localhost:3000/api/linesColorApi' from origin 'http://10.10.0.13:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
2024-07-16 14:30:17 +02:00
ISA
f59fa74e12 doc: backup dann nach 10.10.0.13 umziehen 2024-07-16 09:36:51 +02:00
ISA
6bcbf20e08 fix: POI hinzufügen, unbekannte Icon-Platzhalter => Browser neuladen funktioniert. 2024-07-16 08:37:15 +02:00
ISA
5bf16940fd fix: POI hinzufügen funktioniert! addStationCallback und Benutzerrechte in server URL: 2024-07-16 07:25:49 +02:00
ISA
d1e37a45c0 fix: POI bearbeiten in den Modal , aktualisieren und entfernen 2024-07-16 06:28:41 +02:00
ISA
a5e86f7fa5 fix: POIs können per Drag und Drop verschoben werden auf die Map 2024-07-15 16:08:57 +02:00
ISA
5b41072c46 fix: Reinzoomen, Rauszoom und CenterHere in Contextmenu 2024-07-15 11:38:13 +02:00
ISA
29eb3e8192 fix: Bereich ausgewählt dann könnte nicht mit der Maus die Kartenansicht verschieben 2024-07-15 09:42:06 +02:00
ISA
cee8b44e59 Merge branch 'temp-branch' into feature/start-end-line-marker 2024-07-12 10:55:13 +02:00
ISA
b3af793a21 Station in neue tab öffnen, in Kontextmenü 2024-07-12 10:50:21 +02:00
ISA
45d366facc feat: BASE_URL in contextMenuUtil.js importiert 2024-07-12 08:16:51 +02:00
ISA
042d086a49 feat: paste centerHere function into zoomAndCenterUtil.js with error 2024-07-12 07:03:37 +02:00
ISA
91923ef8b4 feat: Extract zoomIn and zoomOut functions to separate file
- Moved zoomIn and zoomOut functions from MapComponent.js to a new file zoomUtils.js in the utils directory.
- Updated MapComponent.js to import and use the zoomIn and zoomOut functions from the new file.
- This change improves code modularity and readability.
2024-07-12 06:25:05 +02:00
ISA
c793e1c81c feat: Move openInSameWindow function to a separate file
- Moved the openInSameWindow function from MapComponent.js to a new file openInSameWindow.js in the utils directory.
- Updated MapComponent.js to import and use the openInSameWindow function from the new file.
- This change improves code modularity and readability.
2024-07-12 06:15:54 +02:00
ISA
21d5932b8b feat: startIcon.js triangle svg 2024-07-11 13:32:29 +02:00
ISA
f75db21738 feat:Linien Mouse over polyline.setStyle 2024-07-11 13:11:40 +02:00
ISA
cd3d84f12c feat: Startpunkt Dreieck , Endpunkt Viereck, alle Punkt (Stützpunkt,Start un end) grau färben 2024-07-11 12:00:25 +02:00
ISA
f52fd2ccd9 feat: jest-Test für checkOverlappingMarkers alles auskommentiert in MapComponent.test.js 2024-07-11 10:57:20 +02:00
ISA
2ac05a1936 feat: jest-Test für checkOverlappingMarkers auskommentiert , enthält nur import 2024-07-11 10:54:31 +02:00
ISA
6b015cad0d feat: checkOverlappingMarkers jest-Test 2024-07-11 10:51:34 +02:00
ISA
18f0f8266b refactor: Move checkOverlappingMarkers to utils and update import in MapComponent
- Moved checkOverlappingMarkers function from MapComponent.js to a new file in /utils/mapUtils.js for better separation of concerns.
- Updated the import statement in MapComponent.js to reflect the new location of checkOverlappingMarkers.
2024-07-11 10:44:40 +02:00
ISA
070065e090 feat: add basic test for MapComponent.test.js to run through Jenkins 2024-07-11 10:25:25 +02:00
ISA
0079664dfb feat: Marker hinzufügen und Marker entfernen in PolyLines und der currentZoom funktioniert 2024-07-11 10:11:20 +02:00
ISA
3ea4ce99b5 Jenkins-test 2024-07-11 08:24:18 +02:00
ISA
3bbbfeb872 feat: Add Jenkins integration for testing with pre-push hook
- Configured Jenkins FreeStyle job to trigger on push
- Added `npm install` and `npm test` steps in Jenkins build configuration
- Updated pre-push hook script to trigger Jenkins job and wait for test results
- Installed jest, @testing-library/react, and @testing-library/jest-dom as dev dependencies for testing

This commit sets up automated testing in Jenkins before code is pushed to the remote repository, ensuring code quality and preventing broken builds.
2024-07-10 13:57:28 +02:00
ISA
b40aace5a1 test für Jenkins 2024-07-10 12:10:40 +02:00
ISA
2bd9558aa9 feat: create useMapContextMenu.js for Separate of Conserns or modularity 2024-07-10 10:53:28 +02:00
ISA
6d024235d0 feat: create /config/settings.js for separate of conserns SoC 2024-07-10 08:40:55 +02:00
ISA
6c60700b7c feat: Create /config/layers.js module for Separate of Consern 2024-07-10 08:27:00 +02:00
ISA
34ad670ae1 feat: create /utils/contextMenuUtils.js module 2024-07-10 07:53:27 +02:00
ISA
b82253cae1 feat: Konstanten in separate Dateien aufteilen " /config/urls.js" 2024-07-10 07:38:30 +02:00
ISA
6cc3cdc483 feat: Extracted restoreMapSettings to mapUtils.js
Moved the restoreMapSettings function from MapComponent.js to mapUtils.js for better modularity and reusability. This change also helps in maintaining cleaner code and improving readability.
2024-07-09 10:35:46 +02:00
ISA
b53fe1b3f1 feat: Refactor utils.js into specialized utility modules
- Split utils.js into three separate files to enhance modularity and maintainability:
  1. geometryUtils.js: Contains geometry-related functions like parsePoint and findClosestPoints.
  2. mapUtils.js: Contains functions related to map operations such as redrawPolyline and saveLineData.
  3. markerUtils.js: Contains functions related to marker operations like insertNewMarker and handleEditPoi.

- Updated import statements in the relevant files to reflect the new structure.
- Ensured that each utility module is self-contained and has clear responsibilities.

This refactor improves the separation of concerns, making the codebase more organized and easier to navigate. Future maintenance and enhancements can now be more easily localized to the appropriate utility module.
2024-07-09 08:10:02 +02:00
ISA
467be2c106 feat: Stützpunkte entfernen, hinzufügen und verschieben funktioniert bei Browser-Aktualisierung, zoom in Browser Local storage 2024-07-09 06:47:44 +02:00
ISA
3fbfe1c2e0 feat: Auskommentierter Code in MapComponent.js entfernt 2024-07-08 15:46:19 +02:00
ISA
27c2a8251e feat: circle, start and endIcon in components folder for Separation of Concerns (SOC) 2024-07-08 15:39:51 +02:00
ISA
f54b78eae1 feat: utils/utils.js Separation of Concerns (SOC) 2024-07-08 14:25:09 +02:00
ISA
c71761768e feat: Stützpunkte hinzufügen und Browser aktualisieren 2024-07-08 13:41:49 +02:00
ISA
33cef4fa97 feat: Stützpunkte entfernen und Browser aktualissieren 2024-07-08 13:36:44 +02:00
ISA
be1b1df0b5 feat: entfernen von Platzhalter-Icon und stattdessen CircleIcon hinzufügen in MapComponents bei insertNewMarker 2024-07-08 10:20:03 +02:00
ISA
045ad26565 plusRoundIcon in eine separate Datei auslagern und dann in MapComponent importieren, um eine bessere Struktur zu gewährleisten 2024-07-08 06:51:30 +02:00
ISA
f7cb225aab feat: marker entfernen und polylines aktualisieren 2024-06-28 10:07:54 +02:00
ISA
98723c9ca4 fix: add and delete marker on polyline (work in progress) 2024-06-28 08:47:18 +02:00
ISA
96b2ee34d7 feat: [WIP] delete marker inside polyline 2024-06-28 07:47:31 +02:00
ISA
482ead85cb Feature: Add interactive markers to polyline via context menu and edit updateLineCoordinates.js 2024-06-27 15:07:14 +02:00
ISA
d7a1816176 Feature: Add interactive markers to polyline via context menu 2024-06-27 15:03:16 +02:00
ISA
9164574559 [WIP] Feature: Hinzufügen von Markern über Kontextmenü in Polyline-> nach git add . 2024-06-27 14:40:11 +02:00
ISA
9c73d6f478 feat: Start and end line-marker 2024-06-27 07:08:17 +02:00