MCPcopy Create free account

hub / github.com/akhilrex/hammond / functions

Functions307 in github.com/akhilrex/hammond

↓ 19 callersMethodError
()
server/models/errors.go:9
↓ 18 callersFunctionlazyLoadView
(AsyncView)
ui/src/router/routes.js:458
↓ 8 callersFunctionmountBaseLink
(options = {})
ui/src/components/_base-link.unit.js:3
↓ 5 callersFunctionincludes
includes checks for inclusion of a string in a []string.
server/internal/sanitize/sanitize.go:381
↓ 4 callersMethodSetPassword
(password string)
server/db/dbModels.go:42
↓ 4 callersFunctionformatDateRelative
(fromDate, toDate = new Date())
ui/src/utils/format-date-relative.js:6
↓ 3 callersMethodRoleDetail
()
server/db/dbModels.go:35
↓ 3 callersFunctionShouldBeAdmin
()
server/controllers/auth.go:32
↓ 3 callersFunctionUpdateContextUserModel
A helper to write user_id and user_model to the context
server/controllers/middlewares.go:38
↓ 3 callersFunctioncleanString
cleanString replaces separators with - and removes characters listed in the regexp provided from string. Accents, spaces, and all characters not in A-
server/internal/sanitize/sanitize.go:360
↓ 3 callersFunctionformatDate
(date)
ui/src/utils/format-date.js:5
↓ 3 callersFunctionmountLogin
()
ui/src/router/views/login.unit.js:58
↓ 2 callersFunctionCanInitializeSystem
()
server/db/dbfunctions.go:12
↓ 2 callersMethodCheckPassword
(password string)
server/db/dbModels.go:53
↓ 2 callersFunctionGetLatestOdoReadingForVehicle
(vehicleId string)
server/service/vehicleService.go:247
↓ 2 callersFunctionGetLock
(name string)
server/db/dbfunctions.go:322
↓ 2 callersFunctionGetUserById
(id string)
server/service/userService.go:27
↓ 2 callersFunctionGetUserVehicles
(id string)
server/service/vehicleService.go:117
↓ 2 callersMethodSetStats
(fillups *[]db.Fillup, expenses *[]db.Expense)
server/models/vehicle.go:93
↓ 2 callersFunctioncleanAttributes
cleanAttributes returns an array of attributes after removing malicious ones.
server/internal/sanitize/sanitize.go:319
↓ 2 callersFunctioncreateConfigFolderIfNotExists
(folder string)
server/service/fileService.go:207
↓ 2 callersFunctioncreateFolder
(folder string, parent string)
server/service/fileService.go:192
↓ 2 callersFunctiongetSavedState
(key)
ui/src/state/modules/auth.js:85
↓ 2 callersFunctionmountRoutes
(options)
ui/src/components/nav-bar-routes.unit.js:3
↓ 2 callersFunctionredirectToLogin
()
ui/src/router/index.js:75
↓ 2 callersFunctionsaveState
(key, state)
ui/src/state/modules/auth.js:89
↓ 2 callersFunctionsaveUploadedFile
(c *gin.Context, fileVariable string)
server/controllers/files.go:149
↓ 2 callersFunctionsetDefaultAuthHeaders
(state)
ui/src/state/modules/auth.js:93
↓ 1 callersFunctionAccents
Accents replaces a set of accented characters with ascii equivalents.
server/internal/sanitize/sanitize.go:294
↓ 1 callersFunctionCreateAlertInstance
(alertId string)
server/service/alertSevice.go:35
↓ 1 callersFunctionCreateUser
(user *User)
server/db/dbfunctions.go:22
↓ 1 callersFunctionDeleteFile
(filePath string)
server/service/fileService.go:225
↓ 1 callersMethodDistanceUnitDetail
()
server/db/dbModels.go:38
↓ 1 callersFunctionExecuteAndSaveMigration
(name string, query string)
server/db/migrations.go:32
↓ 1 callersMethodFuelTypeDetail
()
server/db/dbModels.go:87
↓ 1 callersMethodFuelUnitDetail
()
server/models/report.go:23
↓ 1 callersMethodFuelUnitDetail
()
server/db/dbModels.go:91
↓ 1 callersMethodFuelUnitDetail
()
server/db/dbModels.go:125
↓ 1 callersFunctionGetAllBackupFiles
()
server/service/fileService.go:72
↓ 1 callersFunctionGetAllUsers
()
server/db/dbfunctions.go:41
↓ 1 callersFunctionGetExpenseById
(expenseId string)
server/service/vehicleService.go:92
↓ 1 callersFunctionGetFillupById
(fillupId string)
server/service/vehicleService.go:89
↓ 1 callersFunctionGetOrCreateSetting
()
server/db/dbfunctions.go:312
↓ 1 callersFunctionGetUserById
(id string)
server/db/dbfunctions.go:142
↓ 1 callersFunctionGetVehicleById
(vehicleID string)
server/service/vehicleService.go:80
↓ 1 callersFunctionGetVehicleById
(id string)
server/db/dbfunctions.go:147
↓ 1 callersFunctionGetVehicleOwner
(vehicleId string)
server/service/vehicleService.go:41
↓ 1 callersFunctionRunMigrations
()
server/db/migrations.go:27
↓ 1 callersFunctionUnlock
(name string)
server/db/dbfunctions.go:347
↓ 1 callersFunctionUpdateSettings
(setting *Setting)
server/db/dbfunctions.go:308
↓ 1 callersFunctionaddFileToTarWriter
(filePath string, tarWriter *tar.Writer)
server/service/fileService.go:150
↓ 1 callersFunctionassetEnv
()
server/main.go:79
↓ 1 callersFunctionchangeOwnership
(path string)
server/service/fileService.go:215
↓ 1 callersFunctioncleanFileName
(original string)
server/service/fileService.go:212
↓ 1 callersFunctiondefinesAPageTitleAndDescription
()
ui/tests/unit/matchers.js:54
↓ 1 callersFunctiondeleteOldBackup
()
server/service/fileService.go:93
↓ 1 callersFunctiondispatchActionForAllModules
( actionName, { modules = allModules, modulePrefix = '', flags = {} } = {} )
ui/src/utils/dispatch-action-for-all-modules.js:4
↓ 1 callersFunctiongetFileBytes
(c *gin.Context, fileVariable string)
server/controllers/files.go:137
↓ 1 callersFunctiongetFileName
(orig string)
server/service/fileService.go:113
↓ 1 callersFunctiongetNamespace
(subtree, path)
ui/src/state/modules/index.js:69
↓ 1 callersFunctiongetStore
()
ui/tests/e2e/support/utils.js:2
↓ 1 callersFunctionintiCron
()
server/main.go:72
↓ 1 callersFunctionisAComponent
()
ui/tests/unit/matchers.js:26
↓ 1 callersFunctionisAVuexModule
()
ui/tests/unit/matchers.js:93
↓ 1 callersFunctionredirectToHome
()
ui/src/router/index.js:79
↓ 1 callersFunctionresolveSrc
(_path)
ui/aliases.config.js:72
↓ 1 callersFunctionsaveMultipleUploadedFile
(c *gin.Context, fileVariable string)
server/controllers/files.go:164
↓ 1 callersFunctionsetupSettings
()
server/main.go:61
↓ 1 callersFunctionusesALayout
()
ui/tests/unit/matchers.js:50
FunctionAsyncHandler
()
ui/src/router/routes.js:459
FunctionAuthMiddleware
You can custom middlewares yourself as the doc: https://github.com/gin-gonic/gin#custom-middleware r.Use(AuthMiddleware(true))
server/controllers/middlewares.go:52
FunctionBaseName
BaseName makes a string safe to use in a file name, producing a sanitized basename replacing . or / with -. No attempt is made to normalise a path or
server/internal/sanitize/sanitize.go:204
MethodBeforeCreate
BeforeCreate
server/db/base.go:19
FunctionBind
Changed the c.MustBindWith() -> c.ShouldBindWith(). I don't want to auto return 400 when error happened. origin function is here: https://github.com/
server/common/utils.go:86
FunctionCACHE_CURRENCY_MASTERS
(state, masters)
ui/src/state/modules/vehicles.js:41
FunctionCACHE_DISTANCE_UNIT_MASTERS
(state, masters)
ui/src/state/modules/vehicles.js:35
FunctionCACHE_FUEL_TYPE_MASTERS
(state, masters)
ui/src/state/modules/vehicles.js:38
FunctionCACHE_FUEL_UNIT_MASTERS
(state, masters)
ui/src/state/modules/vehicles.js:32
FunctionCACHE_ISMOBILE
(state, isMobile)
ui/src/state/modules/utils.js:8
FunctionCACHE_MY_USER
(state, newUser)
ui/src/state/modules/users.js:14
FunctionCACHE_QUICK_ENTRIES
(state, entries)
ui/src/state/modules/vehicles.js:44
FunctionCACHE_ROLE_MASTERS
(state, roles)
ui/src/state/modules/vehicles.js:47
FunctionCACHE_SETTINGS
(state, settings)
ui/src/state/modules/utils.js:11
FunctionCACHE_USER
(state, newUser)
ui/src/state/modules/users.js:11
FunctionCACHE_VEHICLE
(state, newVehicles)
ui/src/state/modules/vehicles.js:26
FunctionCACHE_VEHICLE_STATS
(state, stats)
ui/src/state/modules/vehicles.js:29
FunctionCanDeleteVehicle
(vehicleId, userId string)
server/service/vehicleService.go:48
FunctionCanInitializeSystem
()
server/service/miscService.go:7
FunctionCanMigrate
(connectionString string)
server/db/clarkson.go:11
FunctionCreateAlert
(model models.CreateAlertModel, vehicleId, userId string)
server/service/alertSevice.go:11
FunctionCreateAttachment
(path, originalName string, size int64, contentType, userId string)
server/service/fileService.go:22
FunctionCreateBackup
()
server/service/fileService.go:120
FunctionCreateExpense
(model models.CreateExpenseRequest)
server/service/vehicleService.go:156
FunctionCreateFillup
(model models.CreateFillupRequest)
server/service/vehicleService.go:121
FunctionCreateQuickEntry
(model models.CreateQuickEntryModel, attachmentId, userId string)
server/service/fileService.go:38
FunctionCreateUser
(userModel *models.RegisterRequest, role db.Role)
server/service/userService.go:10
FunctionCreateVehicle
(model models.CreateVehicleRequest, userId string)
server/service/vehicleService.go:12
FunctionCreateVehicleAttachment
(vehicleId, attachmentId, title string)
server/service/vehicleService.go:229
FunctionDeleteExpenseById
(expenseId string)
server/service/vehicleService.go:225
FunctionDeleteExpenseById
(id string)
server/db/dbfunctions.go:219
next →1–100 of 307, ranked by callers