MCPcopy Create free account

hub / github.com/RyGuy994/MATER / functions

Functions296 in github.com/RyGuy994/MATER

↓ 26 callersFunctionretrieve_username_jwt
(user_jwt)
MATER_BE/utils/jwt/jwt_utils.py:32
↓ 10 callersFunctioncheck_admin
(data)
MATER_BE/utils/jwt/jwt_utils.py:71
↓ 6 callersMethodto_dict
(self)
MATER_BE/models/mfa.py:24
↓ 5 callersFunctionfetchMfaMethods
()
MATER_FE/src/components/settings/UserMFAForm.jsx:14
↓ 4 callersFunctionconfigureWidget
(widgetType)
MATER_FE/src/components/Home.jsx:79
↓ 4 callersFunctiongenerate_jwt
Generate a JWT for the given user ID.
MATER_BE/utils/jwt/jwt_utils.py:24
↓ 4 callersFunctionget_asset_upload_folder
Return the upload folder path for assets based on asset ID.
MATER_BE/utils/storage/storage_utils.py:16
↓ 4 callersFunctionget_attachment_upload_folder
Return the upload folder path for service attachments.
MATER_BE/utils/storage/storage_utils.py:28
↓ 4 callersFunctioninit_db
(db_type, db_url)
MATER_BE/models/main.py:4
↓ 3 callersFunctionallowed_file
Check if a file has an allowed extension.
MATER_BE/utils/storage/storage_utils.py:10
↓ 3 callersFunctioncreate_app
()
MATER_BE/common/configuration.py:11
↓ 3 callersFunctionfetchCosts
()
MATER_FE/src/components/costs/CostsForm.jsx:36
↓ 3 callersFunctionfetchNotes
()
MATER_FE/src/components/notes/NotesForm.jsx:29
↓ 3 callersFunctionfetchServices
()
MATER_FE/src/components/services/ServiceForm.jsx:29
↓ 3 callersFunctionget_env_variable
Retrieve environment variables with an option to specify a default. This helps avoid KeyError if a variable is not set.
MATER_BE/utils/config/config_utils.py:39
↓ 3 callersFunctionget_image_upload_folder
Return the upload folder path for images related to assets.
MATER_BE/utils/storage/storage_utils.py:22
↓ 3 callersFunctionget_user_id_from_jwt
(data)
MATER_BE/blueprints/settings.py:9
↓ 3 callersFunctionsend_email_notification
Send an email notification using SMTP.
MATER_BE/utils/notifications/notifications_utils.py:9
↓ 3 callersMethodto_calendar_event
(self)
MATER_BE/models/service.py:26
↓ 2 callersFunctioncreate_asset
(request_dict: dict, user_id: str, request_image: dict)
MATER_BE/blueprints/asset.py:39
↓ 2 callersFunctioncreate_image
(file, new_asset, asset_id)
MATER_BE/blueprints/asset.py:14
↓ 2 callersFunctionfetchAssets
()
MATER_FE/src/components/assets/AssetViewAll.jsx:254
↓ 2 callersFunctionhandleLayoutChange
(newLayout)
MATER_FE/src/components/Home.jsx:70
↓ 2 callersMethodinit_db
(self)
MATER_BE/models/shared.py:18
↓ 2 callersFunctionrenderServiceList
(services)
MATER_FE/src/components/Home.jsx:106
↓ 2 callersMethodto_icalendar_event
(self)
MATER_BE/models/service.py:35
↓ 2 callersFunctionvalidateFile
(file)
MATER_FE/src/components/assets/common/ImageDragDrop.jsx:16
↓ 2 callersFunctionverify_otp
Verifies an OTP for the user. Args: user_id (int): The user's ID. otp_code (str): The OTP code to verify. Returns:
MATER_BE/utils/mfa/mfa_utils.py:66
↓ 1 callersFunctioncloseModal
()
MATER_FE/src/components/assets/AssetViewAll.jsx:296
↓ 1 callersFunctioncreate_otp_entry
Creates a new OTP entry in the database.
MATER_BE/utils/mfa/mfa_utils.py:99
↓ 1 callersFunctioncreate_service
(request_dict: dict, user_id: str, request_image: dict)
MATER_BE/blueprints/service.py:52
↓ 1 callersFunctiondarkenColor
(color, percent)
MATER_FE/src/components/settings/ColorPickerForm.jsx:19
↓ 1 callersFunctiondecode_jwt
Decode the provided JWT token and return the decoded data along with any error.
MATER_BE/utils/jwt/jwt_utils.py:8
↓ 1 callersFunctiondeleteMfaMethod
(method)
MATER_FE/src/components/settings/UserMFAForm.jsx:155
↓ 1 callersFunctiondelete_attachment_from_storage
(attachment_path)
MATER_BE/utils/storage/storage_utils.py:75
↓ 1 callersMethoddrop_all_tables
(self)
MATER_BE/models/shared.py:67
↓ 1 callersFunctiondrop_db
(engine)
MATER_BE/models/main.py:20
↓ 1 callersFunctionenableMfaMethod
(method)
MATER_FE/src/components/settings/UserMFAForm.jsx:107
↓ 1 callersFunctionexport_table_data
Fetch table data and convert it to CSV format.
MATER_BE/app.py:198
↓ 1 callersFunctionfetchAssetData
()
MATER_FE/src/components/assets/AssetEditPage.jsx:35
↓ 1 callersFunctionfetchAssets
()
MATER_FE/src/components/services/ServiceAddForm.jsx:98
↓ 1 callersFunctionfetchDueServices
()
MATER_FE/src/components/Home.jsx:35
↓ 1 callersFunctionfetchOverdueServices
()
MATER_FE/src/components/Home.jsx:16
↓ 1 callersFunctionfetchServiceTypeOptions
()
MATER_FE/src/components/services/ServiceAddForm.jsx:65
↓ 1 callersFunctionfetchServices
()
MATER_FE/src/components/services/ServiceViewAll.jsx:138
↓ 1 callersFunctionfetchSettings
()
MATER_FE/src/components/settings/SettingsGlobal.jsx:21
↓ 1 callersFunctionfetchSettings
()
MATER_FE/src/components/settings/SettingsLocal.jsx:21
↓ 1 callersFunctionfetchStatusOptions
()
MATER_FE/src/components/assets/AssetAddForm.jsx:34
↓ 1 callersFunctionfetchStatusOptions
()
MATER_FE/src/components/assets/AssetEditPage.jsx:72
↓ 1 callersFunctionfetchStatusOptions
()
MATER_FE/src/components/assets/AssetEditForm.jsx:46
↓ 1 callersFunctionfetchStatusOptions
()
MATER_FE/src/components/services/ServiceAddForm.jsx:32
↓ 1 callersFunctionfetchTables
()
MATER_FE/src/components/settings/SettingsGlobal.jsx:51
↓ 1 callersFunctionfetchUsers
()
MATER_FE/src/components/settings/SettingsUser.jsx:31
↓ 1 callersFunctiongenerateRandomPassword
(length = 12)
MATER_FE/src/components/settings/SettingsUser.jsx:9
↓ 1 callersFunctiongenerate_backup_codes
Generates a list of backup codes for TOTP.
MATER_BE/utils/mfa/mfa_utils.py:57
↓ 1 callersFunctiongenerate_otp_code
Generates a random OTP code.
MATER_BE/utils/mfa/mfa_utils.py:114
↓ 1 callersFunctiongenerate_totp_secret
Generates a new TOTP secret using the pyotp library.
MATER_BE/utils/mfa/mfa_utils.py:51
↓ 1 callersFunctionget_global_setting
(setting_name)
MATER_BE/utils/jwt/jwt_utils.py:95
↓ 1 callersFunctionget_user_by_username
Helper function to retrieve a user by username.
MATER_BE/utils/jwt/jwt_utils.py:62
↓ 1 callersFunctionhandleAssetSelect
(assetId)
MATER_FE/src/components/services/ServiceAddForm.jsx:234
↓ 1 callersFunctionhandleCloseModal
()
MATER_FE/src/components/common/Header.jsx:40
↓ 1 callersFunctionhandleDelete
(asset)
MATER_FE/src/components/assets/AssetViewAll.jsx:78
↓ 1 callersFunctionhandleDelete
(asset_id)
MATER_FE/src/components/assets/AssetEditPage.jsx:167
↓ 1 callersFunctionhandleDelete
(settingId)
MATER_FE/src/components/settings/SettingsGlobal.jsx:196
↓ 1 callersFunctionhandleDelete
(userId)
MATER_FE/src/components/settings/SettingsUser.jsx:104
↓ 1 callersFunctionhandleDelete
(settingId)
MATER_FE/src/components/settings/SettingsLocal.jsx:126
↓ 1 callersFunctionhandleDeleteClick
(noteId)
MATER_FE/src/components/notes/NotesForm.jsx:123
↓ 1 callersFunctionhandleDeleteClick
(serviceId)
MATER_FE/src/components/services/ServiceForm.jsx:127
↓ 1 callersFunctionhandleDeleteClick
(costId)
MATER_FE/src/components/costs/CostsForm.jsx:132
↓ 1 callersFunctionhandleDownload
(downloadAsset)
MATER_FE/src/components/assets/AssetViewAll.jsx:47
↓ 1 callersFunctionhandleDownload
(asset_id)
MATER_FE/src/components/assets/AssetEditPage.jsx:136
↓ 1 callersFunctionhandleEdit
(settingId)
MATER_FE/src/components/settings/SettingsGlobal.jsx:159
↓ 1 callersFunctionhandleEdit
(userId)
MATER_FE/src/components/settings/SettingsUser.jsx:64
↓ 1 callersFunctionhandleEdit
(settingId)
MATER_FE/src/components/settings/SettingsLocal.jsx:91
↓ 1 callersFunctionhandleEditClick
(note)
MATER_FE/src/components/notes/NotesForm.jsx:54
↓ 1 callersFunctionhandleEditClick
(service)
MATER_FE/src/components/services/ServiceForm.jsx:54
↓ 1 callersFunctionhandleEditClick
(cost)
MATER_FE/src/components/costs/CostsForm.jsx:61
↓ 1 callersFunctionhandleLogin
(username)
MATER_FE/src/App.jsx:77
↓ 1 callersFunctionhandleRemoveAttachment
(index)
MATER_FE/src/components/services/ServiceAddForm.jsx:226
↓ 1 callersFunctionhandleTableSelection
(tableName)
MATER_FE/src/components/settings/SettingsGlobal.jsx:79
↓ 1 callersFunctionhandleToggle
(settingId, currentValue)
MATER_FE/src/components/settings/SettingsGlobal.jsx:123
↓ 1 callersFunctionhandleToggle
(settingId, currentValue)
MATER_FE/src/components/settings/SettingsLocal.jsx:58
↓ 1 callersFunctioninitalize_engine
(db_type, db_url)
MATER_BE/models/base.py:9
↓ 1 callersFunctionlog_failed_login
Log a failed login attempt with the provided username and IP address.
MATER_BE/utils/config/config_utils.py:89
↓ 1 callersFunctionopenEditModal
(asset)
MATER_FE/src/components/assets/AssetViewAll.jsx:290
↓ 1 callersFunctionremoveWidget
(id, e)
MATER_FE/src/components/Home.jsx:94
↓ 1 callersFunctionsave_attachments
(attachments, asset_id, service_id, user_id)
MATER_BE/blueprints/service.py:17
↓ 1 callersFunctionsend_sms_notification
Send an SMS notification using Twilio.
MATER_BE/utils/notifications/notifications_utils.py:38
↓ 1 callersFunctionsetPrimaryMethod
(method)
MATER_FE/src/components/settings/UserMFAForm.jsx:131
↓ 1 callersFunctiontestMfaMethod
(email)
MATER_FE/src/components/settings/UserMFAForm.jsx:60
FunctionApp
()
MATER_FE/src/App.jsx:45
FunctionAssetAddForm
({ onClose })
MATER_FE/src/components/assets/AssetAddForm.jsx:12
FunctionAssetEditForm
({ asset, onSubmit, onClose })
MATER_FE/src/components/assets/AssetEditForm.jsx:10
FunctionAssetEditPage
({ onSubmit, onClose })
MATER_FE/src/components/assets/AssetEditPage.jsx:12
FunctionAssetFormFields
({ assetData, setAssetData, statusOptions, imagePreview, setImagePreview, setImage, isSubmitting
MATER_FE/src/components/assets/common/AssetFormFields.jsx:5
FunctionAssetTable
({ assets, openEditModal, fetchAssets })
MATER_FE/src/components/assets/AssetViewAll.jsx:37
FunctionAssetViewAll
()
MATER_FE/src/components/assets/AssetViewAll.jsx:247
FunctionBulkAssetUploadForm
()
MATER_FE/src/components/assets/AssetBulkUploadForm.jsx:9
FunctionColorPickerForm
()
MATER_FE/src/components/settings/ColorPickerForm.jsx:5
FunctionConfirmationModal
({ message, onConfirm, onCancel })
MATER_FE/src/components/common/ConfirmationModal.jsx:10
next →1–100 of 296, ranked by callers