Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/akhilrex/hammond
/ functions
Functions
307 in github.com/akhilrex/hammond
⨍
Functions
307
◇
Types & classes
52
↓ 19 callers
Method
Error
()
server/models/errors.go:9
↓ 18 callers
Function
lazyLoadView
(AsyncView)
ui/src/router/routes.js:458
↓ 8 callers
Function
mountBaseLink
(options = {})
ui/src/components/_base-link.unit.js:3
↓ 5 callers
Function
includes
includes checks for inclusion of a string in a []string.
server/internal/sanitize/sanitize.go:381
↓ 4 callers
Method
SetPassword
(password string)
server/db/dbModels.go:42
↓ 4 callers
Function
formatDateRelative
(fromDate, toDate = new Date())
ui/src/utils/format-date-relative.js:6
↓ 3 callers
Method
RoleDetail
()
server/db/dbModels.go:35
↓ 3 callers
Function
ShouldBeAdmin
()
server/controllers/auth.go:32
↓ 3 callers
Function
UpdateContextUserModel
A helper to write user_id and user_model to the context
server/controllers/middlewares.go:38
↓ 3 callers
Function
cleanString
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 callers
Function
formatDate
(date)
ui/src/utils/format-date.js:5
↓ 3 callers
Function
mountLogin
()
ui/src/router/views/login.unit.js:58
↓ 2 callers
Function
CanInitializeSystem
()
server/db/dbfunctions.go:12
↓ 2 callers
Method
CheckPassword
(password string)
server/db/dbModels.go:53
↓ 2 callers
Function
GetLatestOdoReadingForVehicle
(vehicleId string)
server/service/vehicleService.go:247
↓ 2 callers
Function
GetLock
(name string)
server/db/dbfunctions.go:322
↓ 2 callers
Function
GetUserById
(id string)
server/service/userService.go:27
↓ 2 callers
Function
GetUserVehicles
(id string)
server/service/vehicleService.go:117
↓ 2 callers
Method
SetStats
(fillups *[]db.Fillup, expenses *[]db.Expense)
server/models/vehicle.go:93
↓ 2 callers
Function
cleanAttributes
cleanAttributes returns an array of attributes after removing malicious ones.
server/internal/sanitize/sanitize.go:319
↓ 2 callers
Function
createConfigFolderIfNotExists
(folder string)
server/service/fileService.go:207
↓ 2 callers
Function
createFolder
(folder string, parent string)
server/service/fileService.go:192
↓ 2 callers
Function
getSavedState
(key)
ui/src/state/modules/auth.js:85
↓ 2 callers
Function
mountRoutes
(options)
ui/src/components/nav-bar-routes.unit.js:3
↓ 2 callers
Function
redirectToLogin
()
ui/src/router/index.js:75
↓ 2 callers
Function
saveState
(key, state)
ui/src/state/modules/auth.js:89
↓ 2 callers
Function
saveUploadedFile
(c *gin.Context, fileVariable string)
server/controllers/files.go:149
↓ 2 callers
Function
setDefaultAuthHeaders
(state)
ui/src/state/modules/auth.js:93
↓ 1 callers
Function
Accents
Accents replaces a set of accented characters with ascii equivalents.
server/internal/sanitize/sanitize.go:294
↓ 1 callers
Function
CreateAlertInstance
(alertId string)
server/service/alertSevice.go:35
↓ 1 callers
Function
CreateUser
(user *User)
server/db/dbfunctions.go:22
↓ 1 callers
Function
DeleteFile
(filePath string)
server/service/fileService.go:225
↓ 1 callers
Method
DistanceUnitDetail
()
server/db/dbModels.go:38
↓ 1 callers
Function
ExecuteAndSaveMigration
(name string, query string)
server/db/migrations.go:32
↓ 1 callers
Method
FuelTypeDetail
()
server/db/dbModels.go:87
↓ 1 callers
Method
FuelUnitDetail
()
server/models/report.go:23
↓ 1 callers
Method
FuelUnitDetail
()
server/db/dbModels.go:91
↓ 1 callers
Method
FuelUnitDetail
()
server/db/dbModels.go:125
↓ 1 callers
Function
GetAllBackupFiles
()
server/service/fileService.go:72
↓ 1 callers
Function
GetAllUsers
()
server/db/dbfunctions.go:41
↓ 1 callers
Function
GetExpenseById
(expenseId string)
server/service/vehicleService.go:92
↓ 1 callers
Function
GetFillupById
(fillupId string)
server/service/vehicleService.go:89
↓ 1 callers
Function
GetOrCreateSetting
()
server/db/dbfunctions.go:312
↓ 1 callers
Function
GetUserById
(id string)
server/db/dbfunctions.go:142
↓ 1 callers
Function
GetVehicleById
(vehicleID string)
server/service/vehicleService.go:80
↓ 1 callers
Function
GetVehicleById
(id string)
server/db/dbfunctions.go:147
↓ 1 callers
Function
GetVehicleOwner
(vehicleId string)
server/service/vehicleService.go:41
↓ 1 callers
Function
RunMigrations
()
server/db/migrations.go:27
↓ 1 callers
Function
Unlock
(name string)
server/db/dbfunctions.go:347
↓ 1 callers
Function
UpdateSettings
(setting *Setting)
server/db/dbfunctions.go:308
↓ 1 callers
Function
addFileToTarWriter
(filePath string, tarWriter *tar.Writer)
server/service/fileService.go:150
↓ 1 callers
Function
assetEnv
()
server/main.go:79
↓ 1 callers
Function
changeOwnership
(path string)
server/service/fileService.go:215
↓ 1 callers
Function
cleanFileName
(original string)
server/service/fileService.go:212
↓ 1 callers
Function
definesAPageTitleAndDescription
()
ui/tests/unit/matchers.js:54
↓ 1 callers
Function
deleteOldBackup
()
server/service/fileService.go:93
↓ 1 callers
Function
dispatchActionForAllModules
( actionName, { modules = allModules, modulePrefix = '', flags = {} } = {} )
ui/src/utils/dispatch-action-for-all-modules.js:4
↓ 1 callers
Function
getFileBytes
(c *gin.Context, fileVariable string)
server/controllers/files.go:137
↓ 1 callers
Function
getFileName
(orig string)
server/service/fileService.go:113
↓ 1 callers
Function
getNamespace
(subtree, path)
ui/src/state/modules/index.js:69
↓ 1 callers
Function
getStore
()
ui/tests/e2e/support/utils.js:2
↓ 1 callers
Function
intiCron
()
server/main.go:72
↓ 1 callers
Function
isAComponent
()
ui/tests/unit/matchers.js:26
↓ 1 callers
Function
isAVuexModule
()
ui/tests/unit/matchers.js:93
↓ 1 callers
Function
redirectToHome
()
ui/src/router/index.js:79
↓ 1 callers
Function
resolveSrc
(_path)
ui/aliases.config.js:72
↓ 1 callers
Function
saveMultipleUploadedFile
(c *gin.Context, fileVariable string)
server/controllers/files.go:164
↓ 1 callers
Function
setupSettings
()
server/main.go:61
↓ 1 callers
Function
usesALayout
()
ui/tests/unit/matchers.js:50
Function
AsyncHandler
()
ui/src/router/routes.js:459
Function
AuthMiddleware
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
Function
BaseName
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
Method
BeforeCreate
BeforeCreate
server/db/base.go:19
Function
Bind
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
Function
CACHE_CURRENCY_MASTERS
(state, masters)
ui/src/state/modules/vehicles.js:41
Function
CACHE_DISTANCE_UNIT_MASTERS
(state, masters)
ui/src/state/modules/vehicles.js:35
Function
CACHE_FUEL_TYPE_MASTERS
(state, masters)
ui/src/state/modules/vehicles.js:38
Function
CACHE_FUEL_UNIT_MASTERS
(state, masters)
ui/src/state/modules/vehicles.js:32
Function
CACHE_ISMOBILE
(state, isMobile)
ui/src/state/modules/utils.js:8
Function
CACHE_MY_USER
(state, newUser)
ui/src/state/modules/users.js:14
Function
CACHE_QUICK_ENTRIES
(state, entries)
ui/src/state/modules/vehicles.js:44
Function
CACHE_ROLE_MASTERS
(state, roles)
ui/src/state/modules/vehicles.js:47
Function
CACHE_SETTINGS
(state, settings)
ui/src/state/modules/utils.js:11
Function
CACHE_USER
(state, newUser)
ui/src/state/modules/users.js:11
Function
CACHE_VEHICLE
(state, newVehicles)
ui/src/state/modules/vehicles.js:26
Function
CACHE_VEHICLE_STATS
(state, stats)
ui/src/state/modules/vehicles.js:29
Function
CanDeleteVehicle
(vehicleId, userId string)
server/service/vehicleService.go:48
Function
CanInitializeSystem
()
server/service/miscService.go:7
Function
CanMigrate
(connectionString string)
server/db/clarkson.go:11
Function
CreateAlert
(model models.CreateAlertModel, vehicleId, userId string)
server/service/alertSevice.go:11
Function
CreateAttachment
(path, originalName string, size int64, contentType, userId string)
server/service/fileService.go:22
Function
CreateBackup
()
server/service/fileService.go:120
Function
CreateExpense
(model models.CreateExpenseRequest)
server/service/vehicleService.go:156
Function
CreateFillup
(model models.CreateFillupRequest)
server/service/vehicleService.go:121
Function
CreateQuickEntry
(model models.CreateQuickEntryModel, attachmentId, userId string)
server/service/fileService.go:38
Function
CreateUser
(userModel *models.RegisterRequest, role db.Role)
server/service/userService.go:10
Function
CreateVehicle
(model models.CreateVehicleRequest, userId string)
server/service/vehicleService.go:12
Function
CreateVehicleAttachment
(vehicleId, attachmentId, title string)
server/service/vehicleService.go:229
Function
DeleteExpenseById
(expenseId string)
server/service/vehicleService.go:225
Function
DeleteExpenseById
(id string)
server/db/dbfunctions.go:219
next →
1–100 of 307, ranked by callers