Commit Graph

292 Commits

Author SHA1 Message Date
ISA
befc27c60d Merge branch 'develop' of http://10.10.0.12:3000/ISA/nodeMap into develop 2024-07-18 09:32:24 +02:00
ISA
697386c60e Merge pull request 'feature/start-end-line-marker' (#1) from feature/start-end-line-marker into develop
Reviewed-on: http://10.10.0.12:3000/ISA/nodeMap/pulls/1
2024-07-18 08:21:25 +02:00
ISA
5b380b7c8f feat: Reinzoomen auf 12 wie in aspx 2024-07-18 07:34:38 +02:00
ISA
71b25d9a4d fix POI hinzufügen nach 10 Versuche hat immer noch funktioniert! 2024-07-17 15:47:36 +02:00
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
9c075a481f test: In Konextmenü POI hinzufügen Icon Platzhalter sichtbar statt hintergelegte Icon für POI 2024-07-12 13:35:03 +02:00
ISA
40ae875257 docs: Berechttigung für POIs, zum Bereiche fliegen und Stationen ein -und ausblenden auf http://localhost:3000/?m=10&u=484 , das war von develop => temp-branch => develop , alles , funktioniert! 2024-07-12 12:36:05 +02:00
ISA
43e898dfa0 docs: Berechttigung für POIs, zum Bereiche fliegen und Stationen ein -und ausblenden funktioniert! 2024-07-12 12:17:37 +02:00
ISA
7772b10e9c fix: define and initialize setSelectedArea to avoid ReferenceError
- Imported useSetRecoilState from Recoil
- Defined and initialized setSelectedArea using useSetRecoilState with selectedAreaState
- Ensured setSelectedArea is used to reset the selected area after moving the map

This resolves the ReferenceError: setSelectedArea is not defined.
2024-07-12 12:03:37 +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