Members
(constant) config
Configuration object for the chatbot.
This object defines the basic setup, appearance, and initial messages for the chatbot.
- Source:
Methods
Cart()
The Cart component handles all of the cart and checkout aspects
Like updating or removing cart items and checking out the order when finished
- Source:
CashierCategoryDisplay(props) → {JSX.Element}
Component displaying menu items for a specific category in the cashier interface.
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
props |
Object | Props object containing category and addToCart function.
Properties
|
- Source:
Returns:
The rendered cashier category display component.
- Type
- JSX.Element
CashierMenuItem(props) → {JSX.Element}
Component representing a button for a menu item in the cashier interface.
Parameters:
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
props |
Object | Props object containing category, item, and showPopup function.
Properties
|
- Source:
Returns:
The rendered menu item button component.
- Type
- JSX.Element
CashierNavigationBar(props) → {JSX.Element}
Navigation bar component allowing users to navigate between menu categories.
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
props |
Object | Props object containing handleCategoryChange function.
Properties
|
- Source:
Returns:
The rendered navigation bar component.
- Type
- JSX.Element
CashierPage() → {JSX.Element}
Root component for the Point of Sale (POS) interface.
- Source:
Returns:
The rendered POS interface.
- Type
- JSX.Element
CurrentOrderDisplay(props) → {JSX.Element}
Component displaying the current order to the user.
Parameters:
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
props |
Object | Props object containing cartItems, removeItem, and editItem functions.
Properties
|
- Source:
Returns:
The rendered current order display component.
- Type
- JSX.Element
Item(category, item)
The Item component handles the characteristics for the given item
Parameters:
| Name | Type | Description |
|---|---|---|
category |
object | Category passed in from ItemPage |
item |
object | Item passed in from ItemPage |
- Source:
ItemPage()
The ItemPage component displays all the items within the given category
- Source:
ItemPopup(props) → {JSX.Element}
Component displaying a popup for selecting modifications before adding an item to the current order.
Parameters:
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
props |
Object | Props object containing selectedItem, closePopup, and addItemToOrder functions.
Properties
|
- Source:
Returns:
The rendered item popup component.
- Type
- JSX.Element
ItemPopupCustomer(selectedItem, index, closePopup, addToCart)
The ItemPopupCustomer component handles the ingredient modifications for the selected item
Parameters:
| Name | Type | Description |
|---|---|---|
selectedItem |
object | Selected item passed in from Item |
index |
object | Index of the selected item in the cart array passed in from Item |
closePopup |
function | closePopup function passed in from Item |
addToCart |
function | addToCart function passed in from ItemPage |
- Source:
LoginPage()
LoginPage component - handles user authentication, including login and logout functionalities.
This component also includes options for Google OAuth login and a chatbot interface.
- Source:
MainCustomerPage()
The MainCustomerPage component displays all the possible drink categories
Each category button will then lead to their own pages when clicked
- Source:
ManagerEmployeeTable(employees)
ManagerEmployeeTable displays the employee table in the manager view
It handles adding, editing, deleting and updating the employee table and fetching the relevant data from the django backend
Parameters:
| Name | Type | Description |
|---|---|---|
employees |
object | null | The Employee objects retrieved from the Django backend |
- Source:
ManagerHomePage()
ManagerHomePage displays the home page when a user navigates to the manager view
It contains a carousel to display images and a navigation bar so users can navigate to other manager pages
- Source:
ManagerInventoryTable(inventory)
ManagerInventoryTable class displays the inventory table in the manager view
It handles adding, editing, deleting and updating the inventory table and fetching the relevant data from the django backend
Parameters:
| Name | Type | Description |
|---|---|---|
inventory |
object | null | The Ingredient objects retrieved from the Django backend |
- Source:
ManagerMenuTable(menu_items)
ManagerMenuTable class displays the menu table in the manager view
It handles adding, editing, deleting and updating the menu table and fetching the relevant data from the django backend
Parameters:
| Name | Type | Description |
|---|---|---|
menu_items |
object | null | The MenuItem objects retrieved from the Django backend |
- Source:
ManagerNavigationBar()
ManagerNavigationBar class displays the navbar that is used at the top of each manager page
It allows a user to navigate between the home page, trends page, and tables
- Source:
ManagerOrderTable(orders)
ManagerOrderTable class displays the order table in the manager view
It handles updating the order table and fetching the relevant data from the django backend
Parameters:
| Name | Type | Description |
|---|---|---|
orders |
object | null | The Order objects retrieved from the Django backend |
- Source:
ManagerTablesPage()
ManagerTablesPage is the basic page for the tables tab of the manager view
It contains a dropdown menu that allows the user to choose what table they would like to see
It then displays the chosen component from the dropdown menu
- Source:
MenuCategory(category)
The MenuCategory component handles all the menu items within the given category
Parameters:
| Name | Type | Description |
|---|---|---|
category |
object | Category passed in from MenuPage |
- Source:
MenuCategoryButtons(category)
The MenuCategoryButtons component displays the button for the selected category
Parameters:
| Name | Type | Description |
|---|---|---|
category |
object | Category passed in from MainCustomerPage |
- Source:
MenuItem(category, item)
The MenuItem component handles the characteristics for the given item
Parameters:
| Name | Type | Description |
|---|---|---|
category |
object | Category passed in from MenuCategory |
item |
object | Item passed in from MenuCategory |
- Source:
MenuPage()
The MenuPage component displays all of the menu items and associated characteristics
- Source:
SendOrderButton(props) → {JSX.Element}
Component representing the button to send the order in the cashier interface.
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
props |
Object | Props object containing sendOrder function.
Properties
|
- Source:
Returns:
The rendered send order button component.
- Type
- JSX.Element
SpeechInterface() → {JSX.Element}
Component representing a speech assistance interface for the cashier.
- Source:
Returns:
The rendered speech interface component.
- Type
- JSX.Element