feat: add new flake profiles and update app component

This commit is contained in:
Jan Gleytenhoover 2024-09-10 08:09:59 +02:00
parent 270782cb78
commit cecb4c94b7
Signed by: jank
GPG Key ID: B267751B8AE29EFE
5 changed files with 29 additions and 2 deletions

@ -1 +1 @@
flake-profile-2-link flake-profile-4-link

@ -0,0 +1 @@
/nix/store/rsadgr5y0wa25gvk7j7zcml5pf9ym3h5-nix-shell-env

@ -0,0 +1 @@
/nix/store/amb6zvwfmy0l7yfdhrfaclcy4997fy03-nix-shell-env

23
devenv.nix Normal file

@ -0,0 +1,23 @@
{
name = "hotel-manager";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};
packages = [
pkgs.nodePackages."@angular/cli"
pkgs.git
pkgs.bun
];
services.ng-serve = {
description = "Angular Development Server";
start = ''
echo "Starting Angular server..."
ng serve --host 0.0.0.0 --port 4200
'';
restartIfChanged = true;
after = [ "network-online.target" ];
};
}

@ -1,4 +1,6 @@
<app-search [(input)]="search"></app-search> <app-search [(input)]="search"></app-search>
<div *ngFor="let hotel of hotels"> <div *ngFor="let hotel of hotels">
<app-hotel-item *ngIf="hotel.hotelName.includes(search)" [hotel]="hotel"></app-hotel-item> @if (hotel.hotelName.includes(search)) {
<app-hotel-item [hotel]="hotel"></app-hotel-item>
}
</div> </div>