add Categories management: create CategoriesList component, update admin navbar, and integrate category handling in product forms
This commit is contained in:
4
client/src/app/interfaces/category.ts
Normal file
4
client/src/app/interfaces/category.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export interface Category {
|
||||
id: string | number;
|
||||
name: string;
|
||||
}
|
||||
5
client/src/app/interfaces/condition.ts
Normal file
5
client/src/app/interfaces/condition.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export interface Condition {
|
||||
id: string | number;
|
||||
name: string;
|
||||
displayName: string;
|
||||
}
|
||||
16
client/src/app/interfaces/product.ts
Normal file
16
client/src/app/interfaces/product.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import {Category} from './category';
|
||||
import {Platform} from './platform';
|
||||
import {Condition} from './condition';
|
||||
|
||||
export interface Product {
|
||||
id: string | number;
|
||||
title: string;
|
||||
description: string;
|
||||
price: number;
|
||||
quantity: number;
|
||||
complete: boolean;
|
||||
manualIncluded: boolean;
|
||||
category: Category | undefined;
|
||||
platform: Platform | undefined;
|
||||
condition: Condition | undefined;
|
||||
}
|
||||
Reference in New Issue
Block a user