fixing platform routing. not done. updated logo on builder
This commit is contained in:
+65
-160
@@ -1,163 +1,68 @@
|
||||
import type { Category, Part } from "@/types/gunbuilder";
|
||||
import type { Category } from "@/types/gunbuilder";
|
||||
|
||||
export const CATEGORY_SLUGS = {
|
||||
lower: "lower",
|
||||
"complete-lower": "complete-lower",
|
||||
"lower-parts": "lower-parts",
|
||||
trigger: "trigger",
|
||||
grip: "grip",
|
||||
safety: "safety",
|
||||
buffer: "buffer",
|
||||
stock: "stock",
|
||||
|
||||
upper: "upper",
|
||||
"complete-upper": "complete-upper",
|
||||
barrel: "barrel",
|
||||
handguard: "handguard",
|
||||
"gas-block": "gas-block",
|
||||
"gas-tube": "gas-tube",
|
||||
"muzzle-device": "muzzle-device",
|
||||
bcg: "bcg",
|
||||
sights: "sights",
|
||||
"charging-handle": "charging-handle",
|
||||
suppressor: "suppressor",
|
||||
optic: "optic",
|
||||
|
||||
magazine: "magazine",
|
||||
"weapon-light": "weapon-light",
|
||||
foregrip: "foregrip",
|
||||
bipod: "bipod",
|
||||
sling: "sling",
|
||||
"rail-accessory": "rail-accessory",
|
||||
tools: "tools",
|
||||
} as const;
|
||||
|
||||
export const CATEGORIES: Category[] = [
|
||||
// LOWER
|
||||
{
|
||||
id: "lower",
|
||||
name: "Stripped Lowers",
|
||||
description: "Serialized lower – the foundation of the build.",
|
||||
group: "lower",
|
||||
},
|
||||
{
|
||||
id: "completeLower",
|
||||
name: "Complete Lowers",
|
||||
description: "Factory-built lower with stock, buffer system, and controls.",
|
||||
group: "lower",
|
||||
},
|
||||
{
|
||||
id: "lowerParts",
|
||||
name: "Lower Parts Kits",
|
||||
description: "Pins, springs, and controls for the lower.",
|
||||
group: "lower",
|
||||
},
|
||||
{
|
||||
id: "trigger",
|
||||
name: "Trigger / Fire Control",
|
||||
description: "Single-stage, two-stage, and match triggers.",
|
||||
group: "lower",
|
||||
},
|
||||
{
|
||||
id: "grip",
|
||||
name: "Pistol Grip",
|
||||
description: "Grips that shape how the rifle handles.",
|
||||
group: "lower",
|
||||
},
|
||||
{
|
||||
id: "safety",
|
||||
name: "Safety / Selector",
|
||||
description: "Ambi selectors and control upgrades.",
|
||||
group: "lower",
|
||||
},
|
||||
{
|
||||
id: "buffer",
|
||||
name: "Buffer System",
|
||||
description: "Buffer tube, buffer, spring, and related parts.",
|
||||
group: "lower",
|
||||
},
|
||||
{
|
||||
id: "stock",
|
||||
name: "Stock / Brace",
|
||||
description: "Adjustable, fixed, and minimalist stocks.",
|
||||
group: "lower",
|
||||
},
|
||||
// Lower group
|
||||
{ id: "lower", name: "Stripped Lowers", group: "lower", slug: CATEGORY_SLUGS.lower },
|
||||
{ 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 },
|
||||
|
||||
// UPPER
|
||||
{
|
||||
id: "upper",
|
||||
name: "Stripped Uppers",
|
||||
description: "The core of the top half of your build.",
|
||||
group: "upper",
|
||||
},
|
||||
{
|
||||
id: "completeUpper",
|
||||
name: "Complete Uppers",
|
||||
description: "Pre-assembled uppers ready to pin and shoot.",
|
||||
group: "upper",
|
||||
},
|
||||
{
|
||||
id: "bcg",
|
||||
name: "Bolt Carriers",
|
||||
description: "The heartbeat of the rifle’s cycling.",
|
||||
group: "upper",
|
||||
},
|
||||
{
|
||||
id: "barrel",
|
||||
name: "Barrels",
|
||||
description: "Different lengths, profiles, and calibers.",
|
||||
group: "upper",
|
||||
},
|
||||
{
|
||||
id: "gasBlock",
|
||||
name: "Gas Blocks",
|
||||
description: "Standard and adjustable gas blocks.",
|
||||
group: "upper",
|
||||
},
|
||||
{
|
||||
id: "gasTube",
|
||||
name: "Gas Tubes",
|
||||
description: "Carbine, mid, rifle, and more.",
|
||||
group: "upper",
|
||||
},
|
||||
{
|
||||
id: "muzzleDevice",
|
||||
name: "Muzzle Devices",
|
||||
description: "Brakes, comps, and flash hiders.",
|
||||
group: "upper",
|
||||
},
|
||||
{
|
||||
id: "suppressor",
|
||||
name: "Suppressors",
|
||||
description: "Hearing-safe setups and hosts.",
|
||||
group: "upper",
|
||||
},
|
||||
{
|
||||
id: "handguard",
|
||||
name: "Handguards / Rails",
|
||||
description: "M-LOK rails and front-end furniture.",
|
||||
group: "upper",
|
||||
},
|
||||
{
|
||||
id: "chargingHandle",
|
||||
name: "Charging Handles",
|
||||
description: "Standard and ambi charging handles.",
|
||||
group: "upper",
|
||||
},
|
||||
{
|
||||
id: "sights",
|
||||
name: "Iron Sights",
|
||||
description: "Backup and primary irons.",
|
||||
group: "upper",
|
||||
},
|
||||
{
|
||||
id: "optic",
|
||||
name: "Optics",
|
||||
description: "LPVOs, red dots, and magnifiers.",
|
||||
group: "upper",
|
||||
},
|
||||
// ACCESSORIES GROUP
|
||||
{
|
||||
id: "magazine",
|
||||
name: "Magazines",
|
||||
group: "accessories",
|
||||
},
|
||||
{
|
||||
id: "weaponLight",
|
||||
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: "railAccessory",
|
||||
name: "Rail Sections & Covers",
|
||||
group: "accessories",
|
||||
},
|
||||
{
|
||||
id: "tools",
|
||||
name: "Tools & Maintenance",
|
||||
group: "accessories",
|
||||
},
|
||||
];
|
||||
// Upper group
|
||||
{ id: "upper", name: "Stripped Upper", group: "upper", slug: CATEGORY_SLUGS.upper },
|
||||
{ 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 },
|
||||
|
||||
// Accessories
|
||||
{ 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 },
|
||||
];
|
||||
Reference in New Issue
Block a user