Skip to content

Commit acca050

Browse files
Merge pull request #16 from NSTMS/frontend-interceptor-and-documents
Frontend-middleweare-and-documents
2 parents bec4a94 + c2bfba1 commit acca050

95 files changed

Lines changed: 2236 additions & 881 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
49.4 KB
Loading
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

wms-praktyki-yosi-frontend/package-lock.json

Lines changed: 256 additions & 231 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wms-praktyki-yosi-frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"@angular/cdk": "^15.2.2",
1515
"@angular/common": "^15.2.0",
1616
"@angular/compiler": "^15.2.0",
17-
"@angular/core": "^15.2.0",
17+
"@angular/core": "^15.2.4",
1818
"@angular/forms": "^15.2.0",
1919
"@angular/material": "^15.2.2",
2020
"@angular/platform-browser": "^15.2.0",
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<mat-form-field appearance="fill" floatLabel="always">
2+
<mat-label>Magazine Id</mat-label>
3+
<input matInput type="number" class="example-right-align" placeholder="0" [(ngModel)]="data.magazineId">
4+
</mat-form-field>
5+
<mat-form-field appearance="fill">
6+
<mat-label>Client</mat-label>
7+
<input matInput [(ngModel)]="data.client">
8+
</mat-form-field>
9+
<mat-form-field appearance="fill">
10+
<mat-label>Choose a date</mat-label>
11+
<input matInput [matDatepicker]="picker" [(ngModel)]="data.date">
12+
<mat-hint>MM/DD/YYYY</mat-hint>
13+
<mat-datepicker-toggle matIconSuffix [for]="picker"></mat-datepicker-toggle>
14+
<mat-datepicker #picker></mat-datepicker>
15+
</mat-form-field>
16+
<br>
17+
<div *ngFor="let item of data.itemList;index as i; ">
18+
<app-list-item [item]="item" [deleteFunc]="handleDeleteItem.bind(this)" [handleChange]="handleItemChange.bind(this)"></app-list-item>
19+
</div>
20+
21+
<button mat-raised-button color="primary" (click)="handleAddItem()">add item</button>
22+
23+
<button mat-raised-button color="secondary" (click)="handleSumbit()">add document</button>
24+
25+

wms-praktyki-yosi-frontend/src/app/Components/document-pages/add-document/add-document.component.scss

Whitespace-only changes.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { ComponentFixture, TestBed } from '@angular/core/testing';
2+
3+
import { AddDocumentComponent } from './add-document.component';
4+
5+
describe('AddDocumentComponent', () => {
6+
let component: AddDocumentComponent;
7+
let fixture: ComponentFixture<AddDocumentComponent>;
8+
9+
beforeEach(async () => {
10+
await TestBed.configureTestingModule({
11+
declarations: [AddDocumentComponent],
12+
}).compileComponents();
13+
14+
fixture = TestBed.createComponent(AddDocumentComponent);
15+
component = fixture.componentInstance;
16+
fixture.detectChanges();
17+
});
18+
19+
it('should create', () => {
20+
expect(component).toBeTruthy();
21+
});
22+
});

0 commit comments

Comments
 (0)