Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/rejetto/hfs
/ functions
Functions
1,412 in github.com/rejetto/hfs
⨍
Functions
1,412
◇
Types & classes
114
↓ 1,071 callers
Function
h
(n,t)
shared/polyfills.js:27
↓ 201 callers
Function
t
(keyOrTpl: string | string[] | TemplateStringsArray, params?: any, fallback?: string)
src/i18n.ts:28
↓ 107 callers
Function
req
(url: string, test:Tester, { baseUrl, throttle, ...requestOptions }: ReqOptions={})
tests/test.ts:1326
↓ 93 callers
Function
reqApi
(api: string, params: object, test:Tester, options?: ReqOptions)
tests/test.ts:1412
↓ 79 callers
Function
apiCall
(cmd: string, params?: Dict, options: ApiCallOptions={})
shared/api.ts:41
↓ 76 callers
Function
defineConfig
(k: string, defaultValue: T, compiler?: Subscriber<T,CT>)
src/config.ts:62
↓ 69 callers
Method
on
(event: string | string[], listener: Listener, { warnAfter=10, callNow=false }: OnOptions={})
src/events.ts:13
↓ 62 callers
Function
setTimeout
()
src/plugins.ts:148
↓ 55 callers
Method
emit
(event: string, ...args: any[])
src/events.ts:62
↓ 47 callers
Function
alertDialog
(msg: ReactElement | string | Error, options?: AlertType | ({ type?:AlertType, icon?: ReactElement } & Partial
admin/src/dialog.ts:82
↓ 44 callers
Function
reqList
(uri:string, tester:Tester, params?: object, options?: ReqOptions)
tests/test.ts:1421
↓ 42 callers
Function
cb
()
src/commands.ts:94
↓ 42 callers
Method
error
(msg: NonNullable<typeof this.lastError>, close=false, props?: object)
src/SendList.ts:98
↓ 41 callers
Function
join
(a: string, b: string, joiner='/')
src/cross.ts:126
↓ 41 callers
Function
prefix
(pre: Falsy | string, v: string | number | undefined | null | false, post: Falsy | string='')
src/cross.ts:122
↓ 41 callers
Function
randomId
(len = 10)
src/cross.ts:319
↓ 37 callers
Function
rmAny
(path: string)
tests/test.ts:1429
↓ 36 callers
Function
dirname
(path: string)
shared/index.ts:190
↓ 35 callers
Function
apiAssertTypes
(paramsByType: { [type:string]: { [name:string]: any } })
src/misc.ts:107
↓ 34 callers
Method
close
()
src/SendList.ts:107
↓ 33 callers
Method
preventDefault
()
src/events.ts:69
↓ 32 callers
Method
add
(rec: T)
src/SendList.ts:64
↓ 32 callers
Function
onlyTruthy
(arr: T[])
src/cross.ts:192
↓ 32 callers
Function
toast
(msg: string | ReactElement, type: AlertType | ReactElement<unknown>='info', options?: Partial<DialogOptions>)
admin/src/dialog.ts:221
↓ 31 callers
Function
reqUpload
(dest: string, tester: Tester, body?: string | Readable, size?: number, resume=0)
tests/test.ts:1260
↓ 30 callers
Function
basename
(path: string)
shared/index.ts:180
↓ 30 callers
Function
newDialog
(options: DialogOptions)
shared/dialogs.ts:203
↓ 29 callers
Function
getHFS
()
shared/index.ts:127
↓ 29 callers
Function
hIcon
(name: string, props?: Omit<IconProps, 'name'>)
frontend/src/misc.ts:30
↓ 29 callers
Function
wait
(ms: number, val?: T)
src/cross.ts:134
↓ 28 callers
Function
Type
(e)
shared/polyfills.js:11
↓ 28 callers
Function
clickIconBtn
(title: string | RegExp, page: Page)
e2e/common.ts:52
↓ 28 callers
Function
md
(text: string | TemplateStringsArray, { html=true, linkTarget='_blank', onText=(x=>x) as OnText }={})
shared/md.ts:13
↓ 27 callers
Function
with_
(par:T, cb: (par:T) => RT)
src/cross.ts:211
↓ 26 callers
Function
urlToNode
( url: string, ctx?: Koa.Context, parent: VfsNode=vfs, allowMissing?: boolean // true means mi
src/vfs.ts:107
↓ 25 callers
Function
Get
(n,t)
shared/polyfills.js:11
↓ 25 callers
Function
useApiEx
(...args: Parameters<typeof useApi>)
admin/src/api.ts:28
↓ 24 callers
Function
_
(n)
shared/polyfills.js:27
↓ 24 callers
Function
alertDialog
(msg: ReactElement | string | Error, type:AlertType='info', title='')
frontend/src/dialog.ts:122
↓ 24 callers
Function
clickAdminMenu
(page: Page, sectionName: string | RegExp)
e2e/common.ts:40
↓ 24 callers
Function
pathEncode
(s: string, all=false)
src/cross.ts:464
↓ 24 callers
Function
tryJson
(s?: string, except?: (s?: string) => unknown)
src/cross.ts:241
↓ 23 callers
Function
formatBytes
(n: number, { post='B', k=0, digits=NaN, sep=' ' }={})
src/cross.ts:107
↓ 23 callers
Function
getNodeName
(node: VfsNode)
src/vfs.ts:220
↓ 23 callers
Function
statusCodeForMissingPerm
(node: VfsNode, perm: keyof VfsPerms, ctx: Koa.Context, assign=true)
src/vfs.ts:267
↓ 21 callers
Function
useSnapState
()
frontend/src/state.ts:60
↓ 20 callers
Function
entry
(color: Color, ...content: ReactNode[])
admin/src/HomePage.ts:216
↓ 20 callers
Method
remove
(search: Partial<T>)
src/SendList.ts:67
↓ 20 callers
Function
try_
(cb: () => T, onException?: (e:any) => E)
src/cross.ts:204
↓ 19 callers
Function
confirmDialog
(msg: ReactNode, { href, trueText="Go", falseText="Don't", before, after, ...rest }: ConfirmOptions={})
admin/src/dialog.ts:116
↓ 19 callers
Function
iconTooltip
(icon: SvgIconComponent, tooltip: ReactNode, sx?: SxProps, props?: SvgIconProps)
admin/src/mui.ts:219
↓ 19 callers
Method
once
(event: string, listener?: Listener)
src/events.ts:42
↓ 18 callers
Function
debounceAsync
( // the function you want to not call too often, too soon callback: (...args: A) => Promise<R>, o
src/debounceAsync.ts:4
↓ 18 callers
Function
hasPermission
(node: VfsNode, perm: keyof VfsPerms, ctx: Koa.Context)
src/vfs.ts:263
↓ 18 callers
Function
nodeIsFolder
(node: VfsNode)
src/vfs.ts:241
↓ 18 callers
Function
useSnapState
()
admin/src/state.ts:47
↓ 18 callers
Function
useStateMounted
(init: T)
shared/react.ts:11
↓ 17 callers
Function
CreateMethodProperty
(e,r,t)
shared/polyfills.js:9
↓ 17 callers
Function
getCurrentUsername
(ctx: Context)
src/auth.ts:37
↓ 17 callers
Function
mapPlugins
(cb:(plugin:Readonly<Plugin>, pluginName:string, idx:number)=> T, includeServerCode=true)
src/plugins.ts:352
↓ 17 callers
Function
statWithTimeout
(path: string)
src/util-files.ts:21
↓ 16 callers
Function
getAccount
(username:string, normalize=true)
src/perm.ts:56
↓ 16 callers
Function
getPluginInfo
(id: string)
src/plugins.ts:106
↓ 16 callers
Function
screenshot
(page: Page, selectorForMask = '')
e2e/frontend.spec.ts:289
↓ 16 callers
Function
useBreakpoint
(breakpoint: Breakpoint)
admin/src/mui.ts:31
↓ 16 callers
Function
w
(n,t,e)
shared/polyfills.js:27
↓ 16 callers
Function
wantArray
(x?: void | T | T[])
src/cross.ts:219
↓ 16 callers
Function
webdavUpload
(uri: string, tester: Tester, body: string, userAgent=WEBDAV_UA)
tests/test.ts:741
↓ 16 callers
Function
wikiLink
(uri: string, content: ReactNode)
admin/src/mui.ts:94
↓ 15 callers
Function
e
(e)
shared/polyfills.js:12
↓ 14 callers
Function
closeDialog
(v?:any, skipHistory=false)
shared/dialogs.ts:229
↓ 14 callers
Method
update
(search: Partial<T>, change: Partial<T>)
src/SendList.ts:79
↓ 14 callers
Function
useI18N
()
src/i18n.ts:124
↓ 13 callers
Function
ToString
(t)
shared/polyfills.js:12
↓ 13 callers
Method
emitAsync
(event: string, ...args: any[])
src/events.ts:82
↓ 13 callers
Method
getData
()
src/plugins.ts:316
↓ 13 callers
Function
normalizeUsername
(username: string)
src/perm.ts:161
↓ 13 callers
Function
pendingPromise
()
src/cross.ts:234
↓ 13 callers
Method
ready
()
src/SendList.ts:89
↓ 13 callers
Function
setWebdavHeaders
(authenticate=false)
src/webdav.ts:375
↓ 12 callers
Function
Call
(t,l)
shared/polyfills.js:9
↓ 12 callers
Function
c
(n,t)
shared/polyfills.js:27
↓ 12 callers
Method
isAborted
()
src/connections.ts:109
↓ 12 callers
Function
objSameKeys
(src: S, newValue:(value:Truthy<S[keyof S]>, key:keyof S)=>VR)
src/cross.ts:148
↓ 12 callers
Function
rename
({ uri, dest }, ctx)
src/frontEndApis.ts:85
↓ 12 callers
Function
t
()
shared/polyfills.js:11
↓ 12 callers
Function
useApiList
(cmd:string|Falsy, params: Dict={}, { map, invert, pause, limit }: { limit?: number, pause?: boolean, invert?:
admin/src/api.ts:42
↓ 11 callers
Function
fail
(status=ctx.status, msg?: string)
src/upload.ts:286
↓ 11 callers
Function
hfsEvent
(name: string, params?:Dict)
frontend/src/misc.ts:57
↓ 11 callers
Function
safeDecodeURIComponent
(s: string, fallback: string=s)
src/cross.ts:550
↓ 11 callers
Function
setError
(msg: string)
src/plugins.ts:141
↓ 11 callers
Function
xlate
(input: any, table: Record<string, any>)
src/cross.ts:432
↓ 10 callers
Function
ToObject
(r)
shared/polyfills.js:11
↓ 10 callers
Method
controlledPush
(chunk: number[] | Buffer)
src/QuickZipStream.ts:64
↓ 10 callers
Method
logExtra
(o: Falsy | Dict<any>, params?: Dict<any>)
src/log.ts:162
↓ 10 callers
Function
selectVfsNode
(page: Page, name: string, expectedId: string)
e2e/admin-vfs.spec.ts:4
↓ 9 callers
Function
callable
(x: Functionable<T>, ...args: unknown[])
src/cross.ts:546
↓ 9 callers
Function
hTooltip
(title: ReactNode, ariaLabel: string | undefined, children: ReactElement, props?: Omit<TooltipProps, 'title' |
admin/src/mui.ts:332
↓ 9 callers
Function
isLocalHost
(c: Connection | Koa.Context | string)
src/misc.ts:27
↓ 9 callers
Function
n
()
shared/polyfills.js:27
next →
1–100 of 1,412, ranked by callers