adding dashbord

This commit is contained in:
2023-02-26 08:18:53 +01:00
parent eb9904a30b
commit a2945d2d9b
44 changed files with 928 additions and 8 deletions

View File

@@ -0,0 +1,7 @@
<style>
:host {
display: block;
margin-top: 1em;
}
</style>
<p *ngFor="let line of lines()">{{line}}</p>

View File

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

View File

@@ -0,0 +1,14 @@
import { Component, Input } from '@angular/core';
@Component({
selector: 'app-text-widget',
templateUrl: './text-widget.component.html'
})
export class TextWidgetComponent {
@Input()
text = "";
lines(): string[]{
return this.text.split(/\r?\n/);
}
}