229 lines
4.7 KiB
TypeScript
229 lines
4.7 KiB
TypeScript
import Management from "../Pages/Management";
|
|
import * as R from "../routes/paths";
|
|
import Users from "../Pages/Users";
|
|
import Organizations from "../Pages/Organizations";
|
|
import Roles from "../Pages/Roles";
|
|
import Products from "../Pages/Products";
|
|
import { ProductsCategories } from "../Pages/ProductsCategories";
|
|
import Pricing from "../Pages/Pricing";
|
|
import IncentivePlans from "../Pages/IncentivePlans";
|
|
import Quota from "../Pages/Quota";
|
|
import Inventory from "../Pages/Inventory";
|
|
import Reporting from "../Pages/Reporting";
|
|
import LiveStockFarmers from "../Pages/LiveStockFarmers";
|
|
import LiveStocks from "../Pages/LiveStocks";
|
|
import Herds from "../Pages/Herds";
|
|
import Pos from "../Pages/Pos";
|
|
import PosCompanies from "../Pages/PosCompanies";
|
|
import PosAccounts from "../Pages/PosAccounts";
|
|
import RancherPlans from "../Pages/RancherPlans";
|
|
import Transactions from "../Pages/Transactions";
|
|
import Unions from "../Pages/Unions";
|
|
import Cooperatives from "../Pages/Cooperatives";
|
|
import CooperativeRanchers from "../Pages/CooperativeRanchers";
|
|
import SettingsOfUnits from "../Pages/SettingsOfUnits";
|
|
import Tagging from "../Pages/Tagging";
|
|
import Tags from "../Pages/Tags";
|
|
import TagDistribtution from "../Pages/TagDistribution";
|
|
import TagDistribtutionDetails from "../Pages/TagDistributionDetails";
|
|
|
|
export const managementCategoryItems = [
|
|
{
|
|
name: "permission_control",
|
|
path: R.PERMISSION_ACCESS,
|
|
component: Management,
|
|
},
|
|
{
|
|
name: "users",
|
|
path: R.USERS,
|
|
component: Users,
|
|
},
|
|
{
|
|
name: "organizations",
|
|
path: R.ORGANIZATIONS,
|
|
component: Organizations,
|
|
},
|
|
{
|
|
name: "roles_management",
|
|
path: R.ROLES,
|
|
component: Roles,
|
|
},
|
|
];
|
|
|
|
export const unitCategoryItems = [
|
|
{
|
|
name: "unions",
|
|
path: R.UNION_LIST,
|
|
component: Unions,
|
|
},
|
|
{
|
|
name: "cooperatives",
|
|
path: R.COOPERATIVE_LIST,
|
|
component: Cooperatives,
|
|
},
|
|
{
|
|
name: "union_cooperatives",
|
|
path: R.UNION_COOPERATIVE_LIST,
|
|
component: Cooperatives,
|
|
},
|
|
{
|
|
name: "cooperative_ranchers",
|
|
path: R.COOPERATIVE_RANCHERS_LIST,
|
|
component: CooperativeRanchers,
|
|
},
|
|
{
|
|
name: "units_settings",
|
|
path: R.UNITS_SETTINGS,
|
|
component: SettingsOfUnits,
|
|
},
|
|
];
|
|
|
|
export const feedInputCategoryItems = [
|
|
{
|
|
name: "feed_input_products",
|
|
path: R.FEED_INPUT_PRODUCTS,
|
|
component: Products,
|
|
},
|
|
{
|
|
name: "product_categories",
|
|
path: R.PRODUCT_CATEGORIES,
|
|
component: ProductsCategories,
|
|
},
|
|
{
|
|
name: "pricing",
|
|
path: R.PRODUCT_PRICING,
|
|
component: Pricing,
|
|
},
|
|
];
|
|
|
|
export const quotaCategoryItems = [
|
|
{
|
|
name: "quota",
|
|
path: R.QUOTAS,
|
|
component: Quota,
|
|
},
|
|
{
|
|
name: "quota_distributions",
|
|
path: R.QUOTA_DISTRIBUTION,
|
|
component: Quota,
|
|
},
|
|
{
|
|
name: "inventory",
|
|
path: R.INVENTORY,
|
|
component: Inventory,
|
|
},
|
|
{
|
|
name: "inventory_entries",
|
|
path: R.INVENTORY_ENTRIES,
|
|
component: Inventory,
|
|
},
|
|
{
|
|
name: "reporting",
|
|
path: R.REPORTING,
|
|
component: Reporting,
|
|
},
|
|
{
|
|
name: "reporting_details",
|
|
path: R.REPORTING_DETAIL,
|
|
component: Reporting,
|
|
},
|
|
|
|
{
|
|
name: "incentive_plans",
|
|
path: R.QUOTA_INCENTIVE_PLANS,
|
|
component: IncentivePlans,
|
|
},
|
|
];
|
|
|
|
export const livestockCategoryItems = [
|
|
{
|
|
name: "livestock_farmers",
|
|
path: R.LIVESTOCK_FARMERS,
|
|
component: LiveStockFarmers,
|
|
},
|
|
{
|
|
name: "herds",
|
|
path: R.HERDS,
|
|
component: Herds,
|
|
},
|
|
{
|
|
name: "farmer_details",
|
|
path: R.LIVESTOCK_FARMER_DETAIL,
|
|
component: Herds,
|
|
},
|
|
{
|
|
name: "farmer_plans",
|
|
path: R.LIVESTOCK_FARMERS_INCENTIVE_PLANS,
|
|
component: RancherPlans,
|
|
},
|
|
{
|
|
name: "livestocks",
|
|
path: R.LIVESTOCKS,
|
|
component: LiveStocks,
|
|
},
|
|
{
|
|
name: "livestocks",
|
|
path: R.LIVESTOCKS_HERDS_DETAIL,
|
|
component: LiveStocks,
|
|
},
|
|
];
|
|
|
|
export const taggingCategoryItems = [
|
|
{
|
|
name: "tagging",
|
|
path: R.TAGGING,
|
|
component: Tagging,
|
|
},
|
|
{
|
|
name: "tags",
|
|
path: R.TAGS,
|
|
component: Tags,
|
|
},
|
|
{
|
|
name: "tags",
|
|
path: R.TAGS_BATCH,
|
|
component: Tags,
|
|
},
|
|
{
|
|
name: "tag_distribution",
|
|
path: R.TAG_DISTRIBUTION,
|
|
component: TagDistribtution,
|
|
},
|
|
{
|
|
name: "tag_distribution_detail",
|
|
path: R.TAG_DISTRIBUTION_DETAIL,
|
|
component: TagDistribtutionDetails,
|
|
},
|
|
];
|
|
|
|
export const posCategoryItems = [
|
|
{
|
|
name: "pos_companies",
|
|
path: R.POS_COMPANIES,
|
|
component: PosCompanies,
|
|
},
|
|
{
|
|
name: "pos_company_detail",
|
|
path: R.POS_COMPANY_DETAIL,
|
|
component: Pos,
|
|
},
|
|
{
|
|
name: "pos",
|
|
path: R.POS_POS_LIST,
|
|
component: Pos,
|
|
},
|
|
{
|
|
name: "pos_accounts",
|
|
path: R.POS_COMPANY_ACCOUNTS,
|
|
component: PosAccounts,
|
|
},
|
|
];
|
|
|
|
export const transactionCategoryItems = [
|
|
{
|
|
name: "transactions",
|
|
path: R.TRANSACTIONS,
|
|
component: Transactions,
|
|
},
|
|
];
|