185 lines
3.6 KiB
JavaScript
185 lines
3.6 KiB
JavaScript
import { sidebarAttachHrefCommonOptions } from "build-scripts"
|
|
|
|
// TODO check the order of items based on the Medusa Admin's sidebar
|
|
|
|
/** @type {import('types').RawSidebarItemType[]} */
|
|
export const sidebar = sidebarAttachHrefCommonOptions([
|
|
{
|
|
type: "link",
|
|
path: "/",
|
|
title: "Introduction",
|
|
},
|
|
{
|
|
type: "separator",
|
|
},
|
|
{
|
|
type: "category",
|
|
title: "Tips",
|
|
autogenerate_path: "/tips",
|
|
},
|
|
{
|
|
type: "category",
|
|
title: "Orders",
|
|
children: [
|
|
{
|
|
type: "link",
|
|
title: "Overview",
|
|
path: "/orders",
|
|
},
|
|
{
|
|
type: "link",
|
|
title: "Manage Details",
|
|
path: "/orders/manage",
|
|
},
|
|
{
|
|
type: "link",
|
|
title: "Manage Payments",
|
|
path: "/orders/payments",
|
|
},
|
|
{
|
|
type: "link",
|
|
title: "Manage Fulfillments",
|
|
path: "/orders/fulfillments",
|
|
},
|
|
{
|
|
type: "link",
|
|
title: "Edit Order Items",
|
|
path: "/orders/edit",
|
|
},
|
|
{
|
|
type: "link",
|
|
title: "Manage Returns",
|
|
path: "/orders/returns",
|
|
},
|
|
{
|
|
type: "link",
|
|
title: "Manage Exchanges",
|
|
path: "/orders/exchanges",
|
|
},
|
|
{
|
|
type: "link",
|
|
title: "Manage Claims",
|
|
path: "/orders/claims",
|
|
},
|
|
],
|
|
},
|
|
{
|
|
type: "category",
|
|
title: "Products",
|
|
children: [
|
|
{
|
|
type: "link",
|
|
title: "Overview",
|
|
path: "/products",
|
|
},
|
|
{
|
|
type: "link",
|
|
title: "Create Product",
|
|
path: "/products/create",
|
|
children: [
|
|
{
|
|
type: "link",
|
|
title: "Multi-Part Product",
|
|
path: "/products/create/multi-part",
|
|
},
|
|
{
|
|
type: "link",
|
|
title: "Bundle Product",
|
|
path: "/products/create/bundle",
|
|
},
|
|
],
|
|
},
|
|
{
|
|
type: "link",
|
|
title: "Edit Product",
|
|
path: "/products/edit",
|
|
},
|
|
{
|
|
type: "link",
|
|
title: "Manage Variants",
|
|
path: "/proucts/variants",
|
|
},
|
|
{
|
|
type: "link",
|
|
title: "Manage Collections",
|
|
path: "/products/collections",
|
|
},
|
|
{
|
|
type: "link",
|
|
title: "Categories",
|
|
path: "/products/categories",
|
|
},
|
|
{
|
|
type: "link",
|
|
title: "Import Products",
|
|
path: "/products/import",
|
|
},
|
|
{
|
|
type: "link",
|
|
title: "Export Products",
|
|
path: "/products/export",
|
|
},
|
|
],
|
|
},
|
|
{
|
|
type: "category",
|
|
title: "Inventory",
|
|
children: [
|
|
{
|
|
type: "link",
|
|
title: "Overview",
|
|
path: "/inventory",
|
|
},
|
|
{
|
|
type: "link",
|
|
title: "Manage Inventory",
|
|
path: "/inventory/inventory",
|
|
},
|
|
{
|
|
type: "link",
|
|
title: "Manage Reservations",
|
|
path: "/inventory/reservations",
|
|
},
|
|
],
|
|
},
|
|
{
|
|
type: "category",
|
|
title: "Customers",
|
|
children: [
|
|
{
|
|
type: "link",
|
|
title: "Overview",
|
|
path: "/customers",
|
|
},
|
|
{
|
|
type: "link",
|
|
title: "Manage Customers",
|
|
path: "/customers/manage",
|
|
},
|
|
{
|
|
type: "link",
|
|
title: "Manage Groups",
|
|
path: "/customers/groups",
|
|
},
|
|
],
|
|
},
|
|
{
|
|
type: "category",
|
|
path: "/discounts",
|
|
title: "Discounts",
|
|
autogenerate_path: "/discounts",
|
|
},
|
|
{
|
|
type: "category",
|
|
path: "/pricing",
|
|
title: "Pricing",
|
|
autogenerate_path: "/pricing",
|
|
},
|
|
{
|
|
type: "category",
|
|
path: "/settings",
|
|
title: "Settings",
|
|
autogenerate_path: "/settings",
|
|
},
|
|
])
|