Compare commits

...

4 Commits

Author SHA1 Message Date
b3f4317129 chore(deps): update devdependencies (non-major)
Some checks failed
renovate/artifacts Artifact file update failure
2024-10-22 07:01:01 +00:00
f5673e0c24
chore: remove obsolete build workflow file 2024-10-22 08:33:29 +02:00
4f1c0b6e2e
refactor(app): simplify hotel item rendering logic
All checks were successful
Build / Build and analyze (push) Successful in 1m40s
2024-10-22 08:32:18 +02:00
e50c5686db revert 71c242f9f2ce6613ea00ad4a71915bc7c5dd504b
All checks were successful
Build / Build and analyze (push) Successful in 1m41s
revert chore(deps): lock file maintenance
2024-10-22 06:16:42 +00:00
6 changed files with 4508 additions and 3634 deletions

@ -1,30 +0,0 @@
name: Build
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
name: Build and analyze
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
# If you wish to fail your job when the Quality Gate is red, uncomment the
# following lines. This would typically be used to fail a deployment.
# We do not recommend to use this in a pull request. Prefer using pull request
# decoration instead.
# - uses: sonarsource/sonarqube-quality-gate-action@master
# timeout-minutes: 5
# env:
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

BIN
bun.lockb

Binary file not shown.

8083
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -28,7 +28,7 @@
"@angular/compiler-cli": "^18.2.3",
"@types/jasmine": "~5.1.0",
"autoprefixer": "^10.4.20",
"jasmine-core": "~5.1.0",
"jasmine-core": "~5.4.0",
"karma": "~6.4.0",
"karma-chrome-launcher": "~3.2.0",
"karma-coverage": "~2.2.0",
@ -36,6 +36,6 @@
"karma-jasmine-html-reporter": "~2.1.0",
"postcss": "^8.4.41",
"tailwindcss": "^3.4.10",
"typescript": "~5.5.2"
"typescript": "~5.6.0"
}
}

@ -1,7 +1,2 @@
<h1>{{'hello' | uppercase | text}}</h1>
<app-search [(input)]="search"></app-search>
@for (let hotel of foundHotels | async) {
@if (search === "") {
<app-hotel-item [hotel]="hotel"></app-hotel-item>
}
}

@ -5,7 +5,7 @@ import { AsyncPipe, UpperCasePipe } from '@angular/common';
import { TextPipe } from '../text.pipe';
import { HotelService } from './Parent/services/hotel.service';
import { inject } from '@angular/core';
import { filter, map, Observable, range } from 'rxjs';
import { filter, from, map, Observable, range, tap, toArray } from 'rxjs';
@Component({
selector: 'app-root',
@ -20,20 +20,18 @@ export class AppComponent {
public hotelService: HotelService = inject(HotelService);
ngOnInit() {
const stream: Observable<number> = range(1, 10);
const stream: Observable<number | string> = from([5, 1, 2, 12, 5, 14, 17, 5, "testing"]);
stream.pipe(
filter((value: number) => value % 2 === 1),
).subscribe((value) => console.log(value));
console.log('---')
stream.pipe(
map((value: number) => value * 2)
).subscribe((value) => console.log(value));
filter((value) => typeof value === "number"),
tap((value) => console.log("Zahl:" + value)),
filter((value: number) => value % 2 === 0),
tap((value) => console.log("Gerade Zahl: " + value)),
toArray(),
).subscribe(console.log);
}
public test() {
8
console.log(this.search);
}