the great renaming

This commit is contained in:
2026-02-26 15:33:24 +01:00
parent 4a4df0e799
commit 1ac2de123e
63 changed files with 11931 additions and 2674 deletions

View File

@@ -0,0 +1 @@
<p>food-pantry works!</p>

View File

@@ -0,0 +1,23 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { FoodPantryComponent } from './food-pantry.component';
describe('FoodPantryComponent', () => {
let component: FoodPantryComponent;
let fixture: ComponentFixture<FoodPantryComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [FoodPantryComponent]
})
.compileComponents();
fixture = TestBed.createComponent(FoodPantryComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@@ -0,0 +1,10 @@
import { Component } from '@angular/core';
@Component({
selector: 'ff-food-pantry',
imports: [],
templateUrl: './food-pantry.component.html',
})
export class FoodPantryComponent {
}

View File

@@ -0,0 +1,4 @@
<div class="bg-red-100 w-full max-w-[1024px] aspect-square">
<div class="text-lg text-primary-700">{{ chibi().state }}</div>
<canvas class="w-full h-full" #canvas></canvas>
</div>

View File

@@ -0,0 +1,23 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { InteractionCanvasComponent } from './interaction-canvas.component';
describe('InteractionCanvasComponent', () => {
let component: InteractionCanvasComponent;
let fixture: ComponentFixture<InteractionCanvasComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [InteractionCanvasComponent]
})
.compileComponents();
fixture = TestBed.createComponent(InteractionCanvasComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@@ -0,0 +1,16 @@
import {
Component, ElementRef, input, InputSignal, ViewChild
} from '@angular/core';
import { Chibi } from '../../types/chibi/chibi';
@Component({
selector: 'ff-interaction-canvas',
imports: [],
templateUrl: './interaction-canvas.component.html',
})
export class InteractionCanvasComponent {
public readonly chibi: InputSignal<Chibi> = input.required();
@ViewChild('canvas')
protected readonly canvas!: ElementRef<HTMLCanvasElement>;
}

View File

@@ -0,0 +1 @@
<p>inventory works!</p>

View File

@@ -0,0 +1,23 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { InventoryComponent } from './inventory.component';
describe('InventoryComponent', () => {
let component: InventoryComponent;
let fixture: ComponentFixture<InventoryComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [InventoryComponent]
})
.compileComponents();
fixture = TestBed.createComponent(InventoryComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@@ -0,0 +1,10 @@
import { Component } from '@angular/core';
@Component({
selector: 'ff-inventory',
imports: [],
templateUrl: './inventory.component.html',
})
export class InventoryComponent {
}

View File

@@ -0,0 +1,12 @@
import { Component, inject } from "@angular/core";
import { LanguageSupportService } from "../logic/language-support/language-support.service";
@Component({
selector: 'ff-translateable',
imports: [],
template: '',
})
export class TranslateableComponent {
private readonly langSupportService: LanguageSupportService = inject(LanguageSupportService);
protected readonly lang = this.langSupportService.acticeLanguage;
}

View File

@@ -0,0 +1,6 @@
<button
type="button"
class="rounded-lg bg-primary-500 hover:bg-primary-700 cursor-pointer text-white px-4 py-2"
>
<ng-content></ng-content>
</button>

View File

@@ -0,0 +1,23 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ButtonComponent } from './button.component';
describe('ButtonComponent', () => {
let component: ButtonComponent;
let fixture: ComponentFixture<ButtonComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [ButtonComponent]
})
.compileComponents();
fixture = TestBed.createComponent(ButtonComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@@ -0,0 +1,10 @@
import { Component } from '@angular/core';
@Component({
selector: 'ff-button',
imports: [],
templateUrl: './button.component.html',
})
export class ButtonComponent {
}

View File

@@ -0,0 +1,6 @@
<div
class="w-full flex flex-row gap-2 bg-primary-600 px-4 py-2 text-white h-12"
>
<a [routerLink]="[link()]">CC</a>
<div>{{ page() }}</div>
</div>

View File

@@ -0,0 +1,23 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { HeaderComponent } from './header.component';
describe('HeaderComponent', () => {
let component: HeaderComponent;
let fixture: ComponentFixture<HeaderComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [HeaderComponent]
})
.compileComponents();
fixture = TestBed.createComponent(HeaderComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@@ -0,0 +1,13 @@
import { Component, input, InputSignal } from '@angular/core';
import { RouterLink } from "@angular/router";
import { ERouteKey } from '../../../types/route-key';
@Component({
selector: 'ff-header',
imports: [RouterLink],
templateUrl: './header.component.html',
})
export class HeaderComponent {
public readonly link: InputSignal<ERouteKey> = input<ERouteKey>(ERouteKey.Home);
public readonly page: InputSignal<string> = input('Test');
}