the type construct of components display. TODO: add area rug calculator.
This commit is contained in:
@@ -1,21 +1,106 @@
|
||||
import { Product } from "@/lib/product";
|
||||
import { Product } from "@/lib/product"
|
||||
import uuid from "react-native-uuid"
|
||||
|
||||
export const products = [
|
||||
// Sheet goods
|
||||
new Product(15, {l: 4, w : 8, u: "ft"}, { name: "Plywood 1/4\"" }),
|
||||
new Product(20, {l: 4, w : 8, u: "ft"}, { name: "Plywood 1/2\"" }),
|
||||
new Product(25, {l: 4, w : 8, u: "ft"}, { name: "Plywood 3/4\"" }),
|
||||
new Product(5, {l: 4, w : 8, u: "ft"}, { name: "Thin Panel Board" }),
|
||||
new Product(10, {l: 4, w : 8, u: "ft"}, { name: "Sheetrock" }),
|
||||
new Product(15, {l: 4, w : 8, u: "ft"}, { name: "OSB / Particle" }),
|
||||
new Product(20, {l: 4, w : 8, u: "ft"}, { name: "MDF" }),
|
||||
new Product(15, {l: 4, w : 8, u: "ft"}, { name: "Pegboard" }),
|
||||
new Product(5, {l: 3, w : 5, u: "ft"}, { name: "Cement" }),
|
||||
// trim
|
||||
new Product(1, {l: 0.50, u : "ft"}, { name: "trim <= 3 inches" }),
|
||||
new Product(1, {l: 0.75, u : "ft"}, { name: "trim > 3 inches" }),
|
||||
// siding
|
||||
new Product(1, {l: 1, u: "ft"}, {name: "house siding"}),
|
||||
new Product(1, {l: 1, u: "ft"}, {name: "metal / shelf bars"}),
|
||||
new Product(0.5, {l: 1, u: "ft"}, {name: "gutter spouts"}),
|
||||
];
|
||||
export default [
|
||||
// Sheet goods
|
||||
{
|
||||
id: uuid.v4().valueOf(),
|
||||
pricePerUnit: 15,
|
||||
dimensions: { l: 4, w: 8, u: "ft" },
|
||||
type: "lumber",
|
||||
attributes: { name: 'Plywood 1/4"' },
|
||||
},
|
||||
{
|
||||
id: uuid.v4().valueOf(),
|
||||
pricePerUnit: 20,
|
||||
dimensions: { l: 4, w: 8, u: "ft" },
|
||||
type: "lumber",
|
||||
attributes: { name: 'Plywood 1/2"' },
|
||||
},
|
||||
{
|
||||
id: uuid.v4().valueOf(),
|
||||
pricePerUnit: 25,
|
||||
dimensions: { l: 4, w: 8, u: "ft" },
|
||||
type: "lumber",
|
||||
attributes: { name: 'Plywood 3/4"' },
|
||||
},
|
||||
{
|
||||
id: uuid.v4().valueOf(),
|
||||
pricePerUnit: 5,
|
||||
dimensions: { l: 4, w: 8, u: "ft" },
|
||||
type: "lumber",
|
||||
attributes: { name: "Thin Panel Board" },
|
||||
},
|
||||
{
|
||||
id: uuid.v4().valueOf(),
|
||||
pricePerUnit: 10,
|
||||
dimensions: { l: 4, w: 8, u: "ft" },
|
||||
type: "lumber",
|
||||
attributes: { name: "Sheetrock" },
|
||||
},
|
||||
{
|
||||
id: uuid.v4().valueOf(),
|
||||
pricePerUnit: 15,
|
||||
dimensions: { l: 4, w: 8, u: "ft" },
|
||||
type: "lumber",
|
||||
attributes: { name: "OSB / Particle" },
|
||||
},
|
||||
{
|
||||
id: uuid.v4().valueOf(),
|
||||
pricePerUnit: 20,
|
||||
dimensions: { l: 4, w: 8, u: "ft" },
|
||||
type: "lumber",
|
||||
attributes: { name: "MDF" },
|
||||
},
|
||||
{
|
||||
id: uuid.v4().valueOf(),
|
||||
pricePerUnit: 15,
|
||||
dimensions: { l: 4, w: 8, u: "ft" },
|
||||
type: "lumber",
|
||||
attributes: { name: "Pegboard" },
|
||||
},
|
||||
{
|
||||
id: uuid.v4().valueOf(),
|
||||
pricePerUnit: 5,
|
||||
dimensions: { l: 3, w: 5, u: "ft" },
|
||||
type: "lumber",
|
||||
attributes: { name: "Cement" },
|
||||
},
|
||||
// trim
|
||||
{
|
||||
id: uuid.v4().valueOf(),
|
||||
pricePerUnit: 1,
|
||||
dimensions: { l: 0.5, u: "ft" },
|
||||
type: "lumber",
|
||||
attributes: { name: "trim <=3 inches" },
|
||||
},
|
||||
{
|
||||
id: uuid.v4().valueOf(),
|
||||
pricePerUnit: 1,
|
||||
dimensions: { l: 0.75, u: "ft" },
|
||||
type: "lumber",
|
||||
attributes: { name: "trim > 3 inches" },
|
||||
},
|
||||
// siding
|
||||
{
|
||||
id: uuid.v4().valueOf(),
|
||||
pricePerUnit: 1,
|
||||
dimensions: { l: 1, u: "ft" },
|
||||
type: "lumber",
|
||||
attributes: { name: "house siding" },
|
||||
},
|
||||
{
|
||||
id: uuid.v4().valueOf(),
|
||||
pricePerUnit: 1,
|
||||
dimensions: { l: 1, u: "ft" },
|
||||
type: "lumber",
|
||||
attributes: { name: "metal / shelf bars" },
|
||||
},
|
||||
{
|
||||
id: uuid.v4().valueOf(),
|
||||
pricePerUnit: 0.5,
|
||||
dimensions: { l: 1, u: "ft" },
|
||||
type: "lumber",
|
||||
attributes: { name: "gutter spouts" },
|
||||
},
|
||||
] as Array<Product>;
|
Reference in New Issue
Block a user