Add URLs to various database models for improved navigation in the dashboard
This commit is contained in:
parent
75eeed16a0
commit
2df25364a0
@ -9,6 +9,7 @@ export const AppPassword = {
|
||||
name: 'appPassword',
|
||||
label: 'App Password',
|
||||
labelPlural: 'App Passwords',
|
||||
url: '/dashboard/management/apppasswords',
|
||||
prefix: 'APP',
|
||||
icon: AppPasswordIcon,
|
||||
actions: [
|
||||
|
||||
@ -4,6 +4,7 @@ export const AuditLog = {
|
||||
name: 'auditLog',
|
||||
label: 'Audit Log',
|
||||
labelPlural: 'Audit Logs',
|
||||
url: '/dashboard/management/auditlogs',
|
||||
prefix: 'ADL',
|
||||
icon: AuditLogIcon,
|
||||
actions: [],
|
||||
|
||||
@ -9,6 +9,7 @@ export const Client = {
|
||||
name: 'client',
|
||||
label: 'Client',
|
||||
labelPlural: 'Clients',
|
||||
url: '/dashboard/sales/clients',
|
||||
prefix: 'CLI',
|
||||
icon: ClientIcon,
|
||||
actions: [
|
||||
|
||||
@ -9,6 +9,7 @@ export const Courier = {
|
||||
name: 'courier',
|
||||
label: 'Courier',
|
||||
labelPlural: 'Couriers',
|
||||
url: '/dashboard/management/couriers',
|
||||
prefix: 'COR',
|
||||
icon: CourierIcon,
|
||||
actions: [
|
||||
|
||||
@ -9,6 +9,7 @@ export const CourierService = {
|
||||
name: 'courierService',
|
||||
label: 'Courier Service',
|
||||
labelPlural: 'Courier Services',
|
||||
url: '/dashboard/management/courierservices',
|
||||
prefix: 'COS',
|
||||
icon: CourierServiceIcon,
|
||||
actions: [
|
||||
|
||||
@ -9,6 +9,7 @@ export const DocumentJob = {
|
||||
name: 'documentJob',
|
||||
label: 'Document Job',
|
||||
labelPlural: 'Document Jobs',
|
||||
url: '/dashboard/management/documentjobs',
|
||||
prefix: 'DJB',
|
||||
icon: DocumentJobIcon,
|
||||
actions: [
|
||||
|
||||
@ -8,6 +8,7 @@ export const DocumentPrinter = {
|
||||
name: 'documentPrinter',
|
||||
label: 'Document Printer',
|
||||
labelPlural: 'Document Printers',
|
||||
url: '/dashboard/management/documentprinters',
|
||||
prefix: 'DPR',
|
||||
icon: DocumentPrinterIcon,
|
||||
actions: [
|
||||
|
||||
@ -8,6 +8,7 @@ export const DocumentSize = {
|
||||
name: 'documentSize',
|
||||
label: 'Document Size',
|
||||
labelPlural: 'Document Sizes',
|
||||
url: '/dashboard/management/documentsizes',
|
||||
prefix: 'DSZ',
|
||||
icon: DocumentSizeIcon,
|
||||
actions: [
|
||||
|
||||
@ -9,6 +9,7 @@ export const DocumentTemplate = {
|
||||
name: 'documentTemplate',
|
||||
label: 'Document Template',
|
||||
labelPlural: 'Document Templates',
|
||||
url: '/dashboard/management/documenttemplates',
|
||||
prefix: 'DTP',
|
||||
icon: DocumentTemplateIcon,
|
||||
actions: [
|
||||
|
||||
@ -10,6 +10,7 @@ export const Filament = {
|
||||
name: 'filament',
|
||||
label: 'Filament',
|
||||
labelPlural: 'Filaments',
|
||||
url: '/dashboard/management/filaments',
|
||||
prefix: 'FIL',
|
||||
icon: FilamentIcon,
|
||||
actions: [
|
||||
|
||||
@ -9,6 +9,7 @@ export const FilamentSku = {
|
||||
name: 'filamentSku',
|
||||
label: 'Filament SKU',
|
||||
labelPlural: 'Filament SKUs',
|
||||
url: '/dashboard/management/filamentskus',
|
||||
prefix: 'FSU',
|
||||
icon: FilamentSkuIcon,
|
||||
actions: [
|
||||
@ -62,7 +63,6 @@ export const FilamentSku = {
|
||||
`/dashboard/management/filamentskus/info?filamentSkuId=${_id}&action=delete`
|
||||
}
|
||||
],
|
||||
url: (id) => `/dashboard/management/filamentskus/info?filamentSkuId=${id}`,
|
||||
columns: [
|
||||
'_reference',
|
||||
'name',
|
||||
|
||||
@ -5,6 +5,7 @@ export const FilamentStock = {
|
||||
name: 'filamentStock',
|
||||
label: 'Filament Stock',
|
||||
labelPlural: 'Filament Stocks',
|
||||
url: '/dashboard/inventory/filamentstocks',
|
||||
prefix: 'FLS',
|
||||
icon: FilamentStockIcon,
|
||||
actions: [
|
||||
|
||||
@ -10,6 +10,7 @@ export const File = {
|
||||
name: 'file',
|
||||
label: 'File',
|
||||
labelPlural: 'Files',
|
||||
url: '/dashboard/management/files',
|
||||
prefix: 'FLE',
|
||||
icon: FileIcon,
|
||||
actions: [
|
||||
@ -70,7 +71,6 @@ export const File = {
|
||||
`/dashboard/management/files/info?fileId=${_id}&action=delete`
|
||||
}
|
||||
],
|
||||
url: (id) => `/dashboard/management/files/info?fileId=${id}`,
|
||||
columns: [
|
||||
'_reference',
|
||||
'name',
|
||||
|
||||
@ -10,6 +10,7 @@ export const GCodeFile = {
|
||||
name: 'gcodeFile',
|
||||
label: 'GCode File',
|
||||
labelPlural: 'GCode Files',
|
||||
url: '/dashboard/production/gcodefiles',
|
||||
prefix: 'GCF',
|
||||
icon: GCodeFileIcon,
|
||||
actions: [
|
||||
|
||||
@ -10,6 +10,7 @@ export const Host = {
|
||||
name: 'host',
|
||||
label: 'Host',
|
||||
labelPlural: 'Hosts',
|
||||
url: '/dashboard/management/hosts',
|
||||
prefix: 'HST',
|
||||
icon: HostIcon,
|
||||
actions: [
|
||||
|
||||
@ -17,5 +17,4 @@ export const Initial = {
|
||||
url: (_id) => `/dashboard/management/initials/info?initialId=${_id}`
|
||||
}
|
||||
],
|
||||
url: () => `#`
|
||||
}
|
||||
|
||||
@ -10,6 +10,7 @@ export const Invoice = {
|
||||
name: 'invoice',
|
||||
label: 'Invoice',
|
||||
labelPlural: 'Invoices',
|
||||
url: '/dashboard/finance/invoices',
|
||||
prefix: 'INV',
|
||||
icon: InvoiceIcon,
|
||||
actions: [
|
||||
|
||||
@ -7,6 +7,7 @@ export const Job = {
|
||||
name: 'job',
|
||||
label: 'Job',
|
||||
labelPlural: 'Jobs',
|
||||
url: '/dashboard/production/jobs',
|
||||
prefix: 'JOB',
|
||||
icon: JobIcon,
|
||||
actions: [
|
||||
|
||||
@ -10,6 +10,7 @@ export const Listing = {
|
||||
name: 'listing',
|
||||
label: 'Listing',
|
||||
labelPlural: 'Listings',
|
||||
url: '/dashboard/sales/listings',
|
||||
prefix: 'LST',
|
||||
icon: ListingIcon,
|
||||
actions: [
|
||||
|
||||
@ -11,6 +11,7 @@ export const Marketplace = {
|
||||
name: 'marketplace',
|
||||
label: 'Marketplace',
|
||||
labelPlural: 'Marketplaces',
|
||||
url: '/dashboard/sales/marketplaces',
|
||||
prefix: 'MKT',
|
||||
icon: MarketplaceIcon,
|
||||
actions: [
|
||||
|
||||
@ -9,6 +9,7 @@ export const Material = {
|
||||
name: 'material',
|
||||
label: 'Material',
|
||||
labelPlural: 'Materials',
|
||||
url: '/dashboard/management/materials',
|
||||
prefix: 'MAT',
|
||||
icon: MaterialIcon,
|
||||
actions: [
|
||||
@ -61,7 +62,6 @@ export const Material = {
|
||||
`/dashboard/management/materials/info?materialId=${_id}&action=delete`
|
||||
}
|
||||
],
|
||||
url: (id) => `/dashboard/management/materials/info?materialId=${id}`,
|
||||
columns: ['_reference', 'name', 'tags', 'createdAt', 'updatedAt'],
|
||||
filters: ['_id', 'name', 'tags'],
|
||||
sorters: ['name', 'createdAt', 'updatedAt', '_id'],
|
||||
|
||||
@ -8,6 +8,7 @@ export const NoteType = {
|
||||
name: 'noteType',
|
||||
label: 'Note Type',
|
||||
labelPlural: 'Note Types',
|
||||
url: '/dashboard/management/notetypes',
|
||||
prefix: 'NTY',
|
||||
icon: NoteTypeIcon,
|
||||
actions: [
|
||||
|
||||
@ -9,6 +9,7 @@ export const OrderItem = {
|
||||
name: 'orderItem',
|
||||
label: 'Order Item',
|
||||
labelPlural: 'Order Items',
|
||||
url: '/dashboard/inventory/orderitems',
|
||||
prefix: 'ODI',
|
||||
icon: OrderItemIcon,
|
||||
actions: [
|
||||
|
||||
@ -9,6 +9,7 @@ export const Part = {
|
||||
name: 'part',
|
||||
label: 'Part',
|
||||
labelPlural: 'Parts',
|
||||
url: '/dashboard/management/parts',
|
||||
prefix: 'PRT',
|
||||
icon: PartIcon,
|
||||
actions: [
|
||||
|
||||
@ -9,6 +9,7 @@ export const PartSku = {
|
||||
name: 'partSku',
|
||||
label: 'Part SKU',
|
||||
labelPlural: 'Part SKUs',
|
||||
url: '/dashboard/management/partskus',
|
||||
prefix: 'PSU',
|
||||
icon: PartSkuIcon,
|
||||
actions: [
|
||||
@ -61,7 +62,6 @@ export const PartSku = {
|
||||
`/dashboard/management/partskus/info?partSkuId=${_id}&action=delete`
|
||||
}
|
||||
],
|
||||
url: (id) => `/dashboard/management/partskus/info?partSkuId=${id}`,
|
||||
columns: [
|
||||
'_reference',
|
||||
'name',
|
||||
|
||||
@ -5,6 +5,7 @@ export const PartStock = {
|
||||
name: 'partStock',
|
||||
label: 'Part Stock',
|
||||
labelPlural: 'Part Stocks',
|
||||
url: '/dashboard/inventory/partstocks',
|
||||
prefix: 'PTS',
|
||||
icon: PartStockIcon,
|
||||
actions: [
|
||||
@ -17,7 +18,6 @@ export const PartStock = {
|
||||
url: (_id) => `/dashboard/inventory/partstocks/info?partStockId=${_id}`
|
||||
}
|
||||
],
|
||||
url: (id) => `/dashboard/inventory/partstocks/info?partStockId=${id}`,
|
||||
filters: ['_id', 'partSku', 'startingQuantity', 'currentQuantity'],
|
||||
sorters: ['partSku', 'startingQuantity', 'currentQuantity'],
|
||||
columns: [
|
||||
|
||||
@ -9,6 +9,7 @@ export const Payment = {
|
||||
name: 'payment',
|
||||
label: 'Payment',
|
||||
labelPlural: 'Payments',
|
||||
url: '/dashboard/finance/payments',
|
||||
prefix: 'PAY',
|
||||
icon: PaymentIcon,
|
||||
actions: [
|
||||
|
||||
@ -15,6 +15,7 @@ export const Printer = {
|
||||
name: 'printer',
|
||||
label: 'Printer',
|
||||
labelPlural: 'Printers',
|
||||
url: '/dashboard/production/printers',
|
||||
prefix: 'PRN',
|
||||
icon: PrinterIcon,
|
||||
actions: [
|
||||
|
||||
@ -9,6 +9,7 @@ export const Product = {
|
||||
name: 'product',
|
||||
label: 'Product',
|
||||
labelPlural: 'Products',
|
||||
url: '/dashboard/management/products',
|
||||
prefix: 'PRD',
|
||||
icon: ProductIcon,
|
||||
actions: [
|
||||
|
||||
@ -9,6 +9,7 @@ export const ProductCategory = {
|
||||
name: 'productCategory',
|
||||
label: 'Product Category',
|
||||
labelPlural: 'Product Categories',
|
||||
url: '/dashboard/management/productcategories',
|
||||
prefix: 'PCG',
|
||||
endpoint: 'productcategories',
|
||||
icon: ProductCategoryIcon,
|
||||
@ -63,8 +64,6 @@ export const ProductCategory = {
|
||||
`/dashboard/management/productcategories/info?productCategoryId=${_id}&action=delete`
|
||||
}
|
||||
],
|
||||
url: (id) =>
|
||||
`/dashboard/management/productcategories/info?productCategoryId=${id}`,
|
||||
columns: ['_reference', 'name', 'createdAt', 'updatedAt'],
|
||||
filters: ['_id', 'name'],
|
||||
sorters: ['name', 'createdAt', 'updatedAt', '_id'],
|
||||
|
||||
@ -9,6 +9,7 @@ export const ProductSku = {
|
||||
name: 'productSku',
|
||||
label: 'Product SKU',
|
||||
labelPlural: 'Product SKUs',
|
||||
url: '/dashboard/management/productskus',
|
||||
prefix: 'SKU',
|
||||
icon: ProductSkuIcon,
|
||||
actions: [
|
||||
@ -61,7 +62,6 @@ export const ProductSku = {
|
||||
`/dashboard/management/productskus/info?productSkuId=${_id}&action=delete`
|
||||
}
|
||||
],
|
||||
url: (id) => `/dashboard/management/productskus/info?productSkuId=${id}`,
|
||||
columns: [
|
||||
'_reference',
|
||||
'name',
|
||||
|
||||
@ -9,6 +9,7 @@ export const ProductStock = {
|
||||
name: 'productStock',
|
||||
label: 'Product Stock',
|
||||
labelPlural: 'Product Stocks',
|
||||
url: '/dashboard/inventory/productstocks',
|
||||
prefix: 'PDS',
|
||||
icon: ProductStockIcon,
|
||||
actions: [
|
||||
@ -85,7 +86,6 @@ export const ProductStock = {
|
||||
}
|
||||
}
|
||||
],
|
||||
url: (id) => `/dashboard/inventory/productstocks/info?productStockId=${id}`,
|
||||
filters: ['_id', 'productSku', 'currentQuantity'],
|
||||
sorters: ['productSku', 'currentQuantity'],
|
||||
columns: [
|
||||
|
||||
@ -10,6 +10,7 @@ export const PurchaseOrder = {
|
||||
name: 'purchaseOrder',
|
||||
label: 'Purchase Order',
|
||||
labelPlural: 'Purchase Orders',
|
||||
url: '/dashboard/inventory/purchaseorders',
|
||||
prefix: 'POR',
|
||||
icon: PurchaseOrderIcon,
|
||||
actions: [
|
||||
|
||||
@ -10,6 +10,7 @@ export const SalesOrder = {
|
||||
name: 'salesOrder',
|
||||
label: 'Sales Order',
|
||||
labelPlural: 'Sales Orders',
|
||||
url: '/dashboard/sales/salesorders',
|
||||
prefix: 'SOR',
|
||||
icon: SalesOrderIcon,
|
||||
actions: [
|
||||
|
||||
@ -9,6 +9,7 @@ export const Shipment = {
|
||||
name: 'shipment',
|
||||
label: 'Shipment',
|
||||
labelPlural: 'Shipments',
|
||||
url: '/dashboard/inventory/shipments',
|
||||
prefix: 'SHP',
|
||||
icon: ShipmentIcon,
|
||||
actions: [
|
||||
|
||||
@ -17,5 +17,4 @@ export const Spool = {
|
||||
url: (_id) => `/dashboard/inventory/spool/info?spoolId=${_id}`
|
||||
}
|
||||
],
|
||||
url: (id) => `/dashboard/inventory/spool/info?spoolId=${id}`
|
||||
}
|
||||
|
||||
@ -5,6 +5,7 @@ export const StockAudit = {
|
||||
name: 'stockAudit',
|
||||
label: 'Stock Audit',
|
||||
labelPlural: 'Stock Audits',
|
||||
url: '/dashboard/inventory/stockaudits',
|
||||
prefix: 'SAU',
|
||||
icon: StockAuditIcon,
|
||||
actions: [
|
||||
@ -17,7 +18,6 @@ export const StockAudit = {
|
||||
url: (_id) => `/dashboard/inventory/stockaudits/info?stockAuditId=${_id}`
|
||||
}
|
||||
],
|
||||
url: (id) => `/dashboard/inventory/stockaudits/info?stockAuditId=${id}`,
|
||||
columns: ['_reference', 'state', 'createdAt', 'updatedAt'],
|
||||
filters: ['_id'],
|
||||
sorters: ['createdAt', 'updatedAt'],
|
||||
|
||||
@ -4,6 +4,7 @@ export const StockEvent = {
|
||||
name: 'stockEvent',
|
||||
label: 'Stock Event',
|
||||
labelPlural: 'Stock Events',
|
||||
url: '/dashboard/inventory/stockevents',
|
||||
prefix: 'SEV',
|
||||
icon: StockEventIcon,
|
||||
actions: [],
|
||||
|
||||
@ -5,6 +5,7 @@ export const StockLocation = {
|
||||
name: 'stockLocation',
|
||||
label: 'Stock Location',
|
||||
labelPlural: 'Stock Locations',
|
||||
url: '/dashboard/inventory/stocklocations',
|
||||
prefix: 'SLN',
|
||||
icon: StockLocationIcon,
|
||||
actions: [
|
||||
@ -18,7 +19,6 @@ export const StockLocation = {
|
||||
`/dashboard/inventory/stocklocations/info?stockLocationId=${_id}`
|
||||
}
|
||||
],
|
||||
url: (id) => `/dashboard/inventory/stocklocations/info?stockLocationId=${id}`,
|
||||
filters: ['_id', 'name'],
|
||||
sorters: ['name', 'createdAt'],
|
||||
columns: ['_reference', 'name', 'address', 'createdAt', 'updatedAt'],
|
||||
|
||||
@ -9,6 +9,7 @@ export const StockTransfer = {
|
||||
name: 'stockTransfer',
|
||||
label: 'Stock Transfer',
|
||||
labelPlural: 'Stock Transfers',
|
||||
url: '/dashboard/inventory/stocktransfers',
|
||||
prefix: 'STT',
|
||||
icon: StockTransferIcon,
|
||||
actions: [
|
||||
@ -85,10 +86,16 @@ export const StockTransfer = {
|
||||
}
|
||||
}
|
||||
],
|
||||
url: (id) => `/dashboard/inventory/stocktransfers/info?stockTransferId=${id}`,
|
||||
filters: ['_id', 'name', 'state'],
|
||||
sorters: ['name', 'createdAt', 'postedAt'],
|
||||
columns: ['_reference', 'name', 'state', 'postedAt', 'createdAt', 'updatedAt'],
|
||||
columns: [
|
||||
'_reference',
|
||||
'name',
|
||||
'state',
|
||||
'postedAt',
|
||||
'createdAt',
|
||||
'updatedAt'
|
||||
],
|
||||
properties: [
|
||||
{
|
||||
name: '_id',
|
||||
|
||||
@ -7,6 +7,7 @@ export const SubJob = {
|
||||
name: 'subJob',
|
||||
label: 'Sub Job',
|
||||
labelPlural: 'Sub Jobs',
|
||||
url: '/dashboard/production/subjobs',
|
||||
prefix: 'SJB',
|
||||
icon: SubJobIcon,
|
||||
actions: [
|
||||
|
||||
@ -9,6 +9,7 @@ export const TaxRate = {
|
||||
name: 'taxRate',
|
||||
label: 'Tax Rate',
|
||||
labelPlural: 'Tax Rates',
|
||||
url: '/dashboard/management/taxrates',
|
||||
prefix: 'TXR',
|
||||
icon: TaxRateIcon,
|
||||
actions: [
|
||||
|
||||
@ -9,6 +9,7 @@ export const TaxRecord = {
|
||||
name: 'taxRecord',
|
||||
label: 'Tax Record',
|
||||
labelPlural: 'Tax Records',
|
||||
url: '/dashboard/finance/taxrecords',
|
||||
prefix: 'TXR',
|
||||
icon: TaxRecordIcon,
|
||||
actions: [
|
||||
|
||||
@ -7,6 +7,7 @@ export const User = {
|
||||
name: 'user',
|
||||
label: 'User',
|
||||
labelPlural: 'Users',
|
||||
url: '/dashboard/management/users',
|
||||
prefix: 'USR',
|
||||
icon: PersonIcon,
|
||||
actions: [
|
||||
|
||||
@ -9,6 +9,7 @@ export const Vendor = {
|
||||
name: 'vendor',
|
||||
label: 'Vendor',
|
||||
labelPlural: 'Vendors',
|
||||
url: '/dashboard/management/vendors',
|
||||
prefix: 'VEN',
|
||||
icon: VendorIcon,
|
||||
actions: [
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user