mad cleanup.
This commit is contained in:
+29
-54
@@ -1,62 +1,37 @@
|
||||
import type { Category } from "@/types/gunbuilder";
|
||||
import { CATEGORY_SLUGS } from "@/types/gunbuilder";
|
||||
// data/gunbuilderParts.ts
|
||||
import type { Category } from "@/types/builderSlots";
|
||||
|
||||
export const CATEGORIES: Category[] = [
|
||||
// Lower group
|
||||
{
|
||||
id: "lower-receiver",
|
||||
name: "Stripped Lower",
|
||||
group: "lower",
|
||||
slug: CATEGORY_SLUGS["lower-receiver"],
|
||||
},
|
||||
{
|
||||
id: "complete-lower",
|
||||
name: "Complete Lower",
|
||||
group: "lower",
|
||||
slug: CATEGORY_SLUGS["complete-lower"],
|
||||
},
|
||||
{
|
||||
id: "lower-parts",
|
||||
name: "Lower Parts Kit",
|
||||
group: "lower",
|
||||
slug: CATEGORY_SLUGS["lower-parts"],
|
||||
},
|
||||
{ id: "trigger", name: "Trigger / Fire Control", group: "lower", slug: CATEGORY_SLUGS.trigger },
|
||||
{ id: "grip", name: "Pistol Grip", group: "lower", slug: CATEGORY_SLUGS.grip },
|
||||
{ id: "safety", name: "Safety / Selector", group: "lower", slug: CATEGORY_SLUGS.safety },
|
||||
{ id: "buffer", name: "Buffer System", group: "lower", slug: CATEGORY_SLUGS.buffer },
|
||||
{ id: "stock", name: "Stock / Brace", group: "lower", slug: CATEGORY_SLUGS.stock },
|
||||
{ id: "lower-receiver", name: "Stripped Lower", group: "lower" },
|
||||
{ id: "complete-lower", name: "Complete Lower", group: "lower" },
|
||||
{ id: "lower-parts-kit", name: "Lower Parts Kit", group: "lower" },
|
||||
{ id: "trigger", name: "Trigger / Fire Control", group: "lower" },
|
||||
{ id: "grip", name: "Pistol Grip", group: "lower" },
|
||||
{ id: "safety-selector", name: "Safety / Selector", group: "lower" },
|
||||
{ id: "buffer", name: "Buffer System", group: "lower" },
|
||||
{ id: "stock", name: "Stock / Brace", group: "lower" },
|
||||
|
||||
// Upper group
|
||||
{
|
||||
id: "upper-receiver",
|
||||
name: "Stripped Upper",
|
||||
group: "upper",
|
||||
slug: CATEGORY_SLUGS["upper-receiver"],
|
||||
},
|
||||
{
|
||||
id: "complete-upper",
|
||||
name: "Complete Upper",
|
||||
group: "upper",
|
||||
slug: CATEGORY_SLUGS["complete-upper"],
|
||||
},
|
||||
{ id: "barrel", name: "Barrels", group: "upper", slug: CATEGORY_SLUGS.barrel },
|
||||
{ id: "handguard", name: "Handguards / Rails", group: "upper", slug: CATEGORY_SLUGS.handguard },
|
||||
{ id: "gas-block", name: "Gas Block", group: "upper", slug: CATEGORY_SLUGS["gas-block"] },
|
||||
{ id: "gas-tube", name: "Gas Tube", group: "upper", slug: CATEGORY_SLUGS["gas-tube"] },
|
||||
{ id: "muzzle-device", name: "Muzzle Device", group: "upper", slug: CATEGORY_SLUGS["muzzle-device"] },
|
||||
{ id: "sights", name: "Iron Sights", group: "upper", slug: CATEGORY_SLUGS.sights },
|
||||
{ id: "bcg", name: "Bolt Carrier Group", group: "upper", slug: CATEGORY_SLUGS.bcg },
|
||||
{ id: "charging-handle", name: "Charging Handle", group: "upper", slug: CATEGORY_SLUGS["charging-handle"] },
|
||||
{ id: "suppressor", name: "Suppressors", group: "upper", slug: CATEGORY_SLUGS.suppressor },
|
||||
{ id: "optic", name: "Optics", group: "upper", slug: CATEGORY_SLUGS.optic },
|
||||
{ id: "upper-receiver", name: "Stripped Upper", group: "upper" },
|
||||
{ id: "complete-upper", name: "Complete Upper", group: "upper" },
|
||||
{ id: "barrel", name: "Barrels", group: "upper" },
|
||||
{ id: "handguard", name: "Handguards / Rails", group: "upper" },
|
||||
{ id: "gas-block", name: "Gas Block", group: "upper" },
|
||||
{ id: "gas-tube", name: "Gas Tube", group: "upper" },
|
||||
{ id: "muzzle-device", name: "Muzzle Device", group: "upper" },
|
||||
{ id: "sights", name: "Iron Sights", group: "upper" },
|
||||
{ id: "bcg", name: "Bolt Carrier Group", group: "upper" },
|
||||
{ id: "charging-handle", name: "Charging Handle", group: "upper" },
|
||||
{ id: "suppressor", name: "Suppressors", group: "upper" },
|
||||
{ id: "optic", name: "Optics", group: "upper" },
|
||||
|
||||
// Accessories (platform-agnostic)
|
||||
{ id: "magazine", name: "Magazines", group: "accessories", slug: CATEGORY_SLUGS.magazine },
|
||||
{ id: "weapon-light", name: "Weapon Lights & Lasers", group: "accessories", slug: CATEGORY_SLUGS["weapon-light"] },
|
||||
{ id: "foregrip", name: "Vertical / Angled Grips", group: "accessories", slug: CATEGORY_SLUGS.foregrip },
|
||||
{ id: "bipod", name: "Bipods", group: "accessories", slug: CATEGORY_SLUGS.bipod },
|
||||
{ id: "sling", name: "Slings & Mounts", group: "accessories", slug: CATEGORY_SLUGS.sling },
|
||||
{ id: "rail-accessory", name: "Rail Accessories", group: "accessories", slug: CATEGORY_SLUGS["rail-accessory"] },
|
||||
{ id: "tools", name: "Tools & Maintenance", group: "accessories", slug: CATEGORY_SLUGS.tools },
|
||||
{ id: "magazine", name: "Magazines", group: "accessories" },
|
||||
{ id: "weapon-light", name: "Weapon Lights & Lasers", group: "accessories" },
|
||||
{ id: "foregrip", name: "Vertical / Angled Grips", group: "accessories" },
|
||||
{ id: "bipod", name: "Bipods", group: "accessories" },
|
||||
{ id: "sling", name: "Slings & Mounts", group: "accessories" },
|
||||
{ id: "rail-accessory", name: "Rail Accessories", group: "accessories" },
|
||||
{ id: "tools", name: "Tools & Maintenance", group: "accessories" },
|
||||
];
|
||||
Reference in New Issue
Block a user