Did some
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-11-29 22:31:55 +10:00
parent 4f38fb65c8
commit d702e01f16
36 changed files with 84 additions and 105 deletions

View File

@@ -0,0 +1,12 @@
.op {
border-width: 1px;
border-color: rgb(190,190,190);
border-style: solid;
background-color: #F0D0B6;
border-radius: 5px;
padding:20px;
width: 500px;
word-break: break-word;
word-wrap: break-word;
margin-top: 6px;
}

View File

@@ -0,0 +1,10 @@
<div class="op">
<a [routerLink] ="['/board']" [queryParams]="{thread: op.Thread_Id}" >Зайти в тред{{op.Thread_Id}} </a>
<p> # {{op.Id}} {{op.Timestamp}}</p>
<div>
<a *ngFor="let i of op.ImgURL" [href]="i" target="_blank">
<img [src]="i" style="height:140px">
</a>
</div>
<p>{{op.Text}}</p>
</div>

View File

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

View File

@@ -0,0 +1,18 @@
import {Component, Input, OnInit} from '@angular/core';
import { SinglePost } from '../../../models/post';
@Component({
selector: 'op-single',
templateUrl: './op.component.html',
styleUrls: ['./op.component.css']
})
export class OPComponent implements OnInit {
constructor() { }
@Input() op: SinglePost
ngOnInit(): void {
}
}