the great renaming
This commit is contained in:
@@ -0,0 +1 @@
|
||||
<p>food-pantry works!</p>
|
||||
23
src/app/components/food-pantry/food-pantry.component.spec.ts
Normal file
23
src/app/components/food-pantry/food-pantry.component.spec.ts
Normal 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();
|
||||
});
|
||||
});
|
||||
10
src/app/components/food-pantry/food-pantry.component.ts
Normal file
10
src/app/components/food-pantry/food-pantry.component.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'ff-food-pantry',
|
||||
imports: [],
|
||||
templateUrl: './food-pantry.component.html',
|
||||
})
|
||||
export class FoodPantryComponent {
|
||||
|
||||
}
|
||||
@@ -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>
|
||||
@@ -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();
|
||||
});
|
||||
});
|
||||
@@ -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>;
|
||||
}
|
||||
1
src/app/components/inventory/inventory.component.html
Normal file
1
src/app/components/inventory/inventory.component.html
Normal file
@@ -0,0 +1 @@
|
||||
<p>inventory works!</p>
|
||||
23
src/app/components/inventory/inventory.component.spec.ts
Normal file
23
src/app/components/inventory/inventory.component.spec.ts
Normal 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();
|
||||
});
|
||||
});
|
||||
10
src/app/components/inventory/inventory.component.ts
Normal file
10
src/app/components/inventory/inventory.component.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'ff-inventory',
|
||||
imports: [],
|
||||
templateUrl: './inventory.component.html',
|
||||
})
|
||||
export class InventoryComponent {
|
||||
|
||||
}
|
||||
12
src/app/components/translateable.component.ts
Normal file
12
src/app/components/translateable.component.ts
Normal 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;
|
||||
}
|
||||
@@ -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>
|
||||
@@ -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();
|
||||
});
|
||||
});
|
||||
10
src/app/components/ui-elements/button/button.component.ts
Normal file
10
src/app/components/ui-elements/button/button.component.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'ff-button',
|
||||
imports: [],
|
||||
templateUrl: './button.component.html',
|
||||
})
|
||||
export class ButtonComponent {
|
||||
|
||||
}
|
||||
@@ -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>
|
||||
@@ -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();
|
||||
});
|
||||
});
|
||||
13
src/app/components/ui-elements/header/header.component.ts
Normal file
13
src/app/components/ui-elements/header/header.component.ts
Normal 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');
|
||||
}
|
||||
Reference in New Issue
Block a user