diff --git a/API/wwwroot/images/products/ABS-Gladiator-Gaming-PC-1749.jpg b/API/wwwroot/images/products/ABS-Gladiator-Gaming-PC-1749.jpg new file mode 100644 index 0000000..db4cec2 Binary files /dev/null and b/API/wwwroot/images/products/ABS-Gladiator-Gaming-PC-1749.jpg differ diff --git a/API/wwwroot/images/products/ABS-Legend-Gaming-PC-Intel-i9-12900K.jpg b/API/wwwroot/images/products/ABS-Legend-Gaming-PC-Intel-i9-12900K.jpg new file mode 100644 index 0000000..971c491 Binary files /dev/null and b/API/wwwroot/images/products/ABS-Legend-Gaming-PC-Intel-i9-12900K.jpg differ diff --git a/API/wwwroot/images/products/CyberpowerPC-Gaming-Desktop-Gamer-Master-1699.jpg b/API/wwwroot/images/products/CyberpowerPC-Gaming-Desktop-Gamer-Master-1699.jpg new file mode 100644 index 0000000..3cac487 Binary files /dev/null and b/API/wwwroot/images/products/CyberpowerPC-Gaming-Desktop-Gamer-Master-1699.jpg differ diff --git a/API/wwwroot/images/products/Skytech-Archangel-3.0-Gaming-Computer-PC-Desktop-1199.jpg b/API/wwwroot/images/products/Skytech-Archangel-3.0-Gaming-Computer-PC-Desktop-1199.jpg new file mode 100644 index 0000000..609600b Binary files /dev/null and b/API/wwwroot/images/products/Skytech-Archangel-3.0-Gaming-Computer-PC-Desktop-1199.jpg differ diff --git a/API/wwwroot/images/products/Skytech-Chronos-Gaming-PC-Desktop.jpg b/API/wwwroot/images/products/Skytech-Chronos-Gaming-PC-Desktop.jpg new file mode 100644 index 0000000..fb935a3 Binary files /dev/null and b/API/wwwroot/images/products/Skytech-Chronos-Gaming-PC-Desktop.jpg differ diff --git a/API/wwwroot/images/products/Velztorm-Nix-Custom-Built-Gaming-Desktop-PC-1449.jpg b/API/wwwroot/images/products/Velztorm-Nix-Custom-Built-Gaming-Desktop-PC-1449.jpg new file mode 100644 index 0000000..3d2f10f Binary files /dev/null and b/API/wwwroot/images/products/Velztorm-Nix-Custom-Built-Gaming-Desktop-PC-1449.jpg differ diff --git a/Infrastructure/Data/SeedData/brands.json b/Infrastructure/Data/SeedData/brands.json index 592b241..94f29a2 100644 --- a/Infrastructure/Data/SeedData/brands.json +++ b/Infrastructure/Data/SeedData/brands.json @@ -1,26 +1,26 @@ [ { "Id": 1, - "Name": "Angular" + "Name": "ABS" }, { "Id": 2, - "Name": "NetCore" + "Name": "Cyberpower" }, { "Id": 3, - "Name": "VS Code" + "Name": "Skytech" }, { "Id": 4, - "Name": "React" + "Name": "Velztorm" }, { "Id": 5, - "Name": "Typescript" + "Name": "Bose" }, { "Id": 6, - "Name": "Redis" + "Name": "Beats" } ] \ No newline at end of file diff --git a/Infrastructure/Data/SeedData/products.json b/Infrastructure/Data/SeedData/products.json index 600ecfc..f331500 100644 --- a/Infrastructure/Data/SeedData/products.json +++ b/Infrastructure/Data/SeedData/products.json @@ -1,51 +1,51 @@ [ { - "Name": "Angular Speedster Board 2000", + "Name": "ABS Gladiator Gaming PC", "Description": "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas porttitor congue massa. Fusce posuere, magna sed pulvinar ultricies, purus lectus malesuada libero, sit amet commodo magna eros quis urna.", - "Price": 200, - "PictureUrl": "images/products/sb-ang1.png", + "Price": 1749, + "PictureUrl": "images/products/ABS-Gladiator-Gaming-PC-1749.jpg", "ProductTypeId": 1, "ProductBrandId": 1 }, { - "Name": "Green Angular Board 3000", + "Name": "CyberpowerPC Gaming Desktop Gamer Master", "Description": "Nunc viverra imperdiet enim. Fusce est. Vivamus a tellus.", - "Price": 150, - "PictureUrl": "images/products/sb-ang2.png", + "Price": 1699, + "PictureUrl": "images/products/CyberpowerPC-Gaming-Desktop-Gamer-Master-1699.jpg", "ProductTypeId": 1, - "ProductBrandId": 1 + "ProductBrandId": 2 }, { - "Name": "Core Board Speed Rush 3", + "Name": "Skytech Archangel 3.0 Gaming Computer PC Desktop", "Description": "Suspendisse dui purus, scelerisque at, vulputate vitae, pretium mattis, nunc. Mauris eget neque at sem venenatis eleifend. Ut nonummy.", - "Price": 180, - "PictureUrl": "images/products/sb-core1.png", + "Price": 1199, + "PictureUrl": "images/products/Skytech-Archangel-3.0-Gaming-Computer-PC-Desktop-1199.jpg", "ProductTypeId": 1, - "ProductBrandId": 2 + "ProductBrandId": 3 }, { - "Name": "Net Core Super Board", + "Name": "Velztorm Nix Custom Built Gaming Desktop PC", "Description": "Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Proin pharetra nonummy pede. Mauris et orci.", - "Price": 300, - "PictureUrl": "images/products/sb-core2.png", - "ProductTypeId": 1, - "ProductBrandId": 2 - }, - { - "Name": "React Board Super Whizzy Fast", - "Description": "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas porttitor congue massa. Fusce posuere, magna sed pulvinar ultricies, purus lectus malesuada libero, sit amet commodo magna eros quis urna.", - "Price": 250, - "PictureUrl": "images/products/sb-react1.png", + "Price": 1449, + "PictureUrl": "images/products/Velztorm-Nix-Custom-Built-Gaming-Desktop-PC-1449.jpg", "ProductTypeId": 1, "ProductBrandId": 4 }, { - "Name": "Typescript Entry Board", - "Description": "Aenean nec lorem. In porttitor. Donec laoreet nonummy augue.", - "Price": 120, - "PictureUrl": "images/products/sb-ts1.png", + "Name": "ABS Legend Gaming PC - Intel i9 12900K", + "Description": "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas porttitor congue massa. Fusce posuere, magna sed pulvinar ultricies, purus lectus malesuada libero, sit amet commodo magna eros quis urna.", + "Price": 4149, + "PictureUrl": "images/products/ABS-Legend-Gaming-PC-Intel-i9-12900K.jpg", "ProductTypeId": 1, - "ProductBrandId": 5 + "ProductBrandId": 1 + }, + { + "Name": "Skytech Chronos Gaming PC Desktop", + "Description": "Aenean nec lorem. In porttitor. Donec laoreet nonummy augue.", + "Price": 1599, + "PictureUrl": "images/products/Skytech-Chronos-Gaming-PC-Desktop.jpg", + "ProductTypeId": 1, + "ProductBrandId": 3 }, { "Name": "Core Blue Hat", diff --git a/Infrastructure/Data/SeedData/types.json b/Infrastructure/Data/SeedData/types.json index 9ae0d91..7144643 100644 --- a/Infrastructure/Data/SeedData/types.json +++ b/Infrastructure/Data/SeedData/types.json @@ -1,18 +1,18 @@ [ { "Id": 1, - "Name": "Boards" + "Name": "Computers" }, { "Id": 2, - "Name": "Hats" + "Name": "Headphones" }, { "Id": 3, - "Name": "Boots" + "Name": "Gadgets" }, { "Id": 4, - "Name": "Gloves" + "Name": "Accessories" } ] \ No newline at end of file diff --git a/README.md b/README.md index 839299c..040e71a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ -# SkiNet +# SkyNet Built upon ASP.NET, Angular, Bootstrap, and Stripe for Credit Card Processing! \ No newline at end of file diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts index 9e684ac..60754d4 100644 --- a/client/src/app/app.component.ts +++ b/client/src/app/app.component.ts @@ -8,7 +8,7 @@ import { AccountService } from './account/account.service'; styleUrls: ['./app.component.scss'] }) export class AppComponent implements OnInit { - title = 'SkiNet'; + title = 'SkyNet'; constructor(private basketService: BasketService, private accountService: AccountService) {} diff --git a/client/src/app/shared/components/pager/pager.component.html b/client/src/app/shared/components/pager/pager.component.html index 9e00589..ea21caa 100644 --- a/client/src/app/shared/components/pager/pager.component.html +++ b/client/src/app/shared/components/pager/pager.component.html @@ -2,6 +2,7 @@ [boundaryLinks]="true" [totalItems]="totalCount" (pageChanged)="onPagerChange($event)" + [ngModel]="pageNumber" [itemsPerPage]="pageSize" previousText="‹" nextText="›" diff --git a/client/src/app/shared/components/pager/pager.component.ts b/client/src/app/shared/components/pager/pager.component.ts index 8874de2..1564caf 100644 --- a/client/src/app/shared/components/pager/pager.component.ts +++ b/client/src/app/shared/components/pager/pager.component.ts @@ -8,6 +8,7 @@ import { Component, EventEmitter, Input, Output, OnInit } from '@angular/core'; export class PagerComponent implements OnInit { @Input() totalCount: number; @Input() pageSize: number; + @Input() pageNumber: number; @Output() pageChanged = new EventEmitter(); constructor() { } diff --git a/client/src/app/shared/models/pagination.ts b/client/src/app/shared/models/pagination.ts index dc43aac..301becd 100644 --- a/client/src/app/shared/models/pagination.ts +++ b/client/src/app/shared/models/pagination.ts @@ -1,8 +1,15 @@ import { IProduct } from "./product" export interface IPagination { - pageIndex: number - pageSize: number - count: number - data: IProduct[] - } \ No newline at end of file + pageIndex: number; + pageSize: number; + count: number; + data: IProduct[]; +} + +export class Pagination implements IPagination { + pageIndex: number; + pageSize: number; + count: number; + data: IProduct[] = []; +} diff --git a/client/src/app/shared/shared.module.ts b/client/src/app/shared/shared.module.ts index 9114b4d..0b4f17a 100644 --- a/client/src/app/shared/shared.module.ts +++ b/client/src/app/shared/shared.module.ts @@ -29,6 +29,7 @@ import { RouterModule } from '@angular/router'; CarouselModule.forRoot(), BsDropdownModule.forRoot(), ReactiveFormsModule, + FormsModule, CdkStepperModule, RouterModule ], @@ -40,6 +41,7 @@ import { RouterModule } from '@angular/router'; OrderTotalsComponent, FormsModule, ReactiveFormsModule, + FormsModule, BsDropdownModule, TextInputsComponent, CdkStepperModule, diff --git a/client/src/app/shop/shop.component.html b/client/src/app/shop/shop.component.html index 63ed650..a2be160 100644 --- a/client/src/app/shop/shop.component.html +++ b/client/src/app/shop/shop.component.html @@ -5,6 +5,7 @@
Sort