Commit Graph

80 Commits

Author SHA1 Message Date
f385a154d5 Update pathfinding.component.ts
Created new normal case
2026-02-05 08:35:34 +01:00
38bf7edd53 Unify pathfinding visualize; update About CSS
Consolidate separate visualizeDijkstra/visualizeAStar into a single visualize(algorithm) method and update the template buttons to call visualize('dijkstra') or visualize('astar'). The new method dispatches to the appropriate pathfindingService method, centralizes timing/animation handling, and reduces duplicated logic. Also apply minor About page styling tweaks: add left margin to the Experience h2 and remove the .xp-list rules from the SCSS (small cleanup/reformat).
2026-02-05 08:27:19 +01:00
b52790c9a1 Merge pull request 'Mark sorted bounds and clamp array size' (#10) from bugfix/sorting_fix into main
All checks were successful
Build & Push Frontend A / docker (push) Successful in 45s
Reviewed-on: #10
2026-02-04 16:01:44 +01:00
e3d835300b Mark sorted bounds and clamp array size
In the sorting service, mark boundary elements as 'sorted' after each forward/backward pass and push snapshots to capture those states; also adjust the backward loop to start at end-1 to avoid rechecking the already-placed element. In the component, clamp new array size to the MIN_ARRAY_SIZE..MAX_ARRAY_SIZE range in newArraySizeSet. Adds an import for MIN from @angular/forms/signals.
2026-02-04 16:01:18 +01:00
6b64c5f4e9 Merge pull request 'feature/OneMoreSorting' (#9) from feature/OneMoreSorting into main
All checks were successful
Build & Push Frontend A / docker (push) Successful in 43s
Reviewed-on: #9
2026-02-04 15:34:18 +01:00
6f282a004b Add Cocktail Sort algorithm and UI
Introduce Cocktail (Shaker) Sort to the sorting visualizer: implement cocktailSort and a helper switchValuesIfCorrect in the SortingService to generate snapshots for the animation. Add SHAKE_SORT_WIKI URL constant and a UI paragraph (with a link) plus German translation text for the algorithm explanation. Expose the new algorithm in the component (availableAlgorithms and switch handling). Also refactor the component to use Angular's inject() for SortingService and ChangeDetectorRef, tighten some typings (timeoutIds -> number[]), adjust default arraySize, and use const where appropriate.
2026-02-04 15:33:51 +01:00
e1680426ad Update sorting.service.ts 2026-02-04 15:01:36 +01:00
3cb3a86b75 Merge pull request 'feature/sortingAlgorithm' (#8) from feature/sortingAlgorithm into main
All checks were successful
Build & Push Frontend A / docker (push) Successful in 46s
Reviewed-on: #8
2026-02-04 14:19:59 +01:00
beb5bb7db1 Add sorting explanations, wiki links, and i18n
Introduce Bubble, Quick and Heap Sort documentation: add wiki URL constants, update sorting component to show Bubble/Quick/Heap Sort explanations with Wikipedia links, and include additional disclaimer text and list in the UI. Add corresponding i18n entries in English and German containing algorithm descriptions, note/title and several disclaimer lines.
2026-02-04 14:19:27 +01:00
a10f62f2dd Refactor pathfinding/sorting UI and update i18n
Replace plain container with Angular Material mat-card in pathfinding view and reorganize UI: add mat-card header/content, algorithm explanation block, control buttons, node-type toggle group, grid-size inputs, legend and results display (path length & execution time). Import and wire MatCard modules in the pathfinding component. Move .algo-info styling from the component SCSS into global styles.scss and remove it from the component stylesheet. Update sorting template to use new SORTING translation keys and add an UrlConstants reference in the sorting component TS for external links. Add/adjust i18n keys in en.json and de.json for sorting and grid labels to match the updated templates.
2026-02-04 12:17:54 +01:00
450ab0b837 Implement snapshot-based sorting visualizer
Refactor sorting to produce and consume SortSnapshot sequences for visualization. SortingService now creates immutable snapshots and implements bubble, quick and heap sorts (with helper methods) instead of performing UI delays; a swap/heapify/partition flow records state changes. SortingComponent was updated to animate snapshots (with start/stop timeout handling), added array size input and controls, stores an unsorted copy for resets, and uses ChangeDetectorRef for updates. Minor UI tweaks: faster bar transitions, info color, updated default array size and animation speed, and added i18n keys for ARRAY_SIZE (en/de).
2026-02-04 11:37:11 +01:00
cbc46cf858 initial implementation of sorting algorithms 2026-02-04 09:22:05 +01:00
2aca34fb9c Update package-lock.json 2026-02-04 08:43:08 +01:00
24bf329628 Merge pull request 'Add touch support to pathfinding canvas' (#7) from bugfix/touchbugfix into main
All checks were successful
Build & Push Frontend A / docker (push) Successful in 43s
Reviewed-on: #7
2026-02-04 08:36:08 +01:00
e195e93f1a Add touch support to pathfinding canvas
Register touch event handlers (touchstart, touchmove, touchend) that call existing mouse handlers and prevent default scrolling (passive: false) so the canvas can be interacted with on touch devices. Update getGridPosition to accept TouchEvent or MouseEvent, read touch coordinates, and apply canvas-to-CSS scaling (canvas.width/rect.width and canvas.height/rect.height) to correctly map client coordinates to grid cells. This enables accurate touch interaction and handles high-DPI / CSS-scaled canvases.
2026-02-04 08:35:41 +01:00
afe0670098 Merge pull request 'Adjusted small things, norhting serious' (#6) from feature/optimize into main
All checks were successful
Build & Push Frontend A / docker (push) Successful in 41s
Reviewed-on: #6
2026-02-02 10:44:38 +01:00
668640dcc6 Adjusted small things, norhting serious 2026-02-02 10:44:13 +01:00
ac937eb2fb Merge pull request 'feature/cleanup' (#5) from feature/cleanup into main
All checks were successful
Build & Push Frontend A / docker (push) Successful in 42s
Reviewed-on: #5
2026-02-02 10:07:26 +01:00
e0f0a0ed04 Enhance pathfinding UI with grid resizing and scenarios
Added controls for dynamic grid size adjustment and scenario presets (normal and edge case) to the pathfinding component. Improved UI/UX with algorithm explanations, Wikipedia links, and reorganized controls. Refactored grid logic for flexibility, updated translations, and improved code structure for maintainability.
2026-02-02 10:06:59 +01:00
17a787b0f1 Small refactoring for better readabilty 2026-02-02 09:28:05 +01:00
01f66d4b8f Fixed smaller rounting bugs 2026-02-02 08:56:51 +01:00
3a13d62c9e Remove particles background and update routing
Deleted the particles background component and its related files. Updated routing logic and constants, refactored topbar and algorithms pages, and performed dependency updates and cleanup in package files. Also improved i18n translations and adjusted TypeScript configuration.
2026-02-02 08:51:10 +01:00
05fc70e583 Update package-lock.json 2026-02-02 07:43:53 +01:00
061d4844ad Merge pull request 'Remove 'Clear Path' button and translation keys' (#4) from feature/algorithm_pathfinding into main
All checks were successful
Build & Push Frontend A / docker (push) Successful in 46s
Reviewed-on: #4
2026-02-01 17:09:36 +01:00
1ce7927f14 Remove 'Clear Path' button and translation keys
Deleted the 'Clear Path' button from the pathfinding component and removed its associated translation entries from both English and German i18n files.
2026-02-01 17:08:55 +01:00
4681662c02 Merge pull request 'feature/algorithm_pathfinding' (#3) from feature/algorithm_pathfinding into main
All checks were successful
Build & Push Frontend A / docker (push) Successful in 1m28s
Reviewed-on: #3
2026-02-01 17:04:35 +01:00
2d25b568f5 Add ESLint integration and Angular linting support
Configured ESLint for the project with Angular and TypeScript support. Added angular-eslint dependencies, updated angular.json to include linting, and created eslint.config.js for lint rules. Updated package.json and package-lock.json with new dev dependencies.
2026-02-01 17:04:07 +01:00
b0ad2dc3d1 Update pathfinding.component.ts 2026-02-01 16:18:55 +01:00
17db997398 Add algorithms section with pathfinding visualizer
Introduces a new 'Algorithms' section, replacing the previous 'Hobbies' page. Adds components, services, and models for algorithm categories and a pathfinding visualizer supporting Dijkstra and A* algorithms. Updates navigation and i18n files to reflect the new section and removes all hobbies-related files.
2026-02-01 16:00:10 +01:00
0b64a4b354 Update Angular and dependencies to 21.1.0
All checks were successful
Build & Push Frontend A / docker (push) Successful in 44s
Upgraded Angular packages and related dependencies from 21.0.x to 21.1.0 in package.json and package-lock.json. Updated asset references in AssetsConstants.ts and made minor adjustments in about and projects components to align with the new Angular version.
2026-01-21 16:40:39 +01:00
547bd2f94e Merge pull request 'bugfix/translationProblems' (#2) from bugfix/translationProblems into main
All checks were successful
Build & Push Frontend A / docker (push) Successful in 1m3s
Reviewed-on: #2
2026-01-18 10:55:32 +01:00
238e279435 Fixed problem with project dialog 2026-01-18 10:55:12 +01:00
e713e3b1c1 Fixed translation problems 2026-01-18 10:17:10 +01:00
9f97890dc1 Merge pull request 'Fixed external link problem' (#1) from bugfix/external-link-problem into main
All checks were successful
Build & Push Frontend A / docker (push) Successful in 1m4s
Reviewed-on: #1
2026-01-17 11:42:50 +01:00
deb089e6ec Fixed external link problem 2026-01-17 11:40:32 +01:00
93a7bd7863 Extended about page and fixed internal links
All checks were successful
Build & Push Frontend A / docker (push) Successful in 1m37s
2026-01-17 11:25:53 +01:00
eaf0cd8a74 Changed some structure and basics 2026-01-17 11:11:51 +01:00
bbf029dc60 Added new project for my homeserver 2026-01-17 10:55:18 +01:00
24c438a01e refactored projects site 2026-01-17 10:27:35 +01:00
93b2a0fed7 Extended project page a little bit
All checks were successful
Build & Push Frontend A / docker (push) Successful in 42s
2026-01-01 12:57:23 +01:00
9771d7a38d Added diploma as asset and extrended projects strcuture 2026-01-01 12:03:10 +01:00
a08a11d249 Changed style and image 2026-01-01 11:42:27 +01:00
aa639634a8 Delete docker.yml
All checks were successful
Build & Push Frontend A / docker (push) Successful in 2m18s
2026-01-01 10:39:52 +01:00
59b3c0f544 Create build-Frontend-a.yml
Some checks failed
Build & Push Frontend A / docker (push) Failing after 2m8s
2026-01-01 10:30:32 +01:00
fad24f2a61 fixed error 2025-12-20 16:20:40 +01:00
b72ad8c78f Try particles 2025-12-20 15:54:22 +01:00
8f888851e8 optimized ui a little bit and added impressum 2025-12-20 15:36:47 +01:00
436a7a151d Update en.json 2025-12-14 17:27:10 +01:00
2a315fe7ca Changed vocab and build trigger 2025-12-14 17:23:09 +01:00
8c98833633 Update nginx.conf 2025-12-14 17:17:22 +01:00