Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LucklySpace/Lucky-client
/ functions
Functions
1,454 in github.com/LucklySpace/Lucky-client
⨍
Functions
1,454
◇
Types & classes
343
↓ 99 callers
Method
get
()
src/utils/TokenManager.ts:33
↓ 94 callers
Method
push
* 入队消息 * @param item 消息数据 * @param priority 优先级(默认 NORMAL)
src/utils/MessageQueue.ts:126
↓ 78 callers
Method
colorLog
* 彩色化打印日志,用于区分提示和值内容。 * @param hint - 提示文字 * @param content - 具体内容 * @param type - 日志类型(决定颜色)
src/utils/Log.ts:161
↓ 75 callers
Method
set
(payload: TokenPayload)
src/utils/TokenManager.ts:34
↓ 56 callers
Method
isArray
* 判断是否为数组 * @param value 任意值
src/utils/ObjectUtils.ts:45
↓ 54 callers
Function
Column
(columnName?: string, type: "INTEGER" | "TEXT" | "REAL" = "TEXT", nullable = false)
src/database/orm/annotation/Decorators.ts:30
↓ 44 callers
Method
log
(level: LogLevel, ...args: any[])
src/worker/Websocket.worker.ts:293
↓ 35 callers
Method
post
* POST 请求,像 Axios 的 post
src/utils/Http.ts:173
↓ 34 callers
Function
t
(key: string, params?: Record<string, any>)
src/hooks/useGlobalShortcut.ts:44
↓ 33 callers
Method
clear
()
src/utils/TokenManager.ts:35
↓ 30 callers
Method
delete
* DELETE 请求,像 Axios 的 delete
src/utils/Http.ts:187
↓ 25 callers
Method
prettyInfo
* 快捷打印 "info" 类型的分组日志。
src/utils/Log.ts:149
↓ 22 callers
Method
close
* 停止并关闭推流(关闭 this.peer 与本地流)
src/views/call/services/WebRTC.ts:303
↓ 22 callers
Method
has
* 检查键是否存在 * @param key 缓存KEY
src/utils/Storage.ts:128
↓ 22 callers
Function
useLogger
()
src/hooks/useLogger.ts:180
↓ 21 callers
Method
keys
* 获取所有内存键(只读)
src/store/plugins/TauriStorage.ts:158
↓ 19 callers
Method
prettyError
* 快捷打印 "error" 类型的分组日志。
src/utils/Log.ts:140
↓ 18 callers
Method
execute
* 使用条件构造器执行 * @returns
src/database/orm/BaseMapper.ts:376
↓ 18 callers
Function
log
(...args: any[])
src/hooks/useFFmpeg.ts:48
↓ 18 callers
Method
on
* 订阅事件 * @param eventName 事件名称 * @param callback 回调函数 * @returns 取消订阅的函数
src/utils/EventBus.ts:116
↓ 18 callers
Method
prettyWarn
* 快捷打印 "warn" 类型的分组日志。
src/utils/Log.ts:131
↓ 17 callers
Function
pad2
* 将数字补齐为两位字符(不足前置"0") * @param num 要补零的数字
src/utils/Date.ts:7
↓ 16 callers
Method
decode
(input: BinaryReader | Uint8Array, length?: number)
src/proto/google/protobuf/struct.ts:450
↓ 16 callers
Function
log
* 统一的日志处理器,将日志信息发送回主线程进行打印 * @param level 日志级别 * @param args 日志内容
src/worker/WebRTC.worker.ts:26
↓ 16 callers
Method
query
* 使用条件构造器查询 * @returns
src/database/orm/BaseMapper.ts:367
↓ 15 callers
Method
getContext
()
src/utils/TokenManager.ts:80
↓ 15 callers
Method
once
* 订阅一次性事件 * @param eventName 事件名称 * @param callback 回调函数
src/utils/EventBus.ts:128
↓ 14 callers
Function
exec
(fn: () => Promise<T>, opts?: { op?: string; fallback?: T })
src/store/modules/group.ts:62
↓ 14 callers
Function
log
(...args: any[])
src/hooks/useFFmpeg_wasm.ts:57
↓ 14 callers
Function
postCommand
(command: object)
src/hooks/useScheduler.ts:117
↓ 13 callers
Method
build
(table: string)
src/database/orm/query/QueryBuilder.ts:273
↓ 13 callers
Function
escapeHtml
(s?: string | null)
src/hooks/useChatInput.ts:68
↓ 13 callers
Method
has
检查是否有草稿
src/hooks/useInputEditor.ts:195
↓ 12 callers
Method
emit
* 发布事件 * @param eventName 事件名称 * @param data 事件数据
src/utils/EventBus.ts:91
↓ 12 callers
Method
encode
(message: T, writer?: BinaryWriter)
src/proto/google/protobuf/struct.ts:448
↓ 12 callers
Method
ensureFTSReady
()
src/database/orm/BaseFTS5Mapper.ts:37
↓ 12 callers
Function
matchAscii
(source: Uint8Array, text: string, offset = 0)
src/hooks/useInputEditor.ts:46
↓ 12 callers
Method
show
* 显示错误通知
src/utils/ErrorHandler.ts:203
↓ 12 callers
Method
updateById
* 根据主键更新,返回受影响行数
src/database/orm/BaseMapper.ts:150
↓ 11 callers
Method
unwrap
(message: Struct)
src/proto/google/protobuf/struct.ts:460
↓ 10 callers
Function
emitPluginEvent
(hook: K, ...args: any[])
src/views/screen/hooks/useScreenshot.ts:90
↓ 10 callers
Function
getSelection
()
src/hooks/useInputEditor.ts:107
↓ 10 callers
Function
init
* Initialize shortcuts from store and initial list. * Should be called once on app startup.
src/hooks/useGlobalShortcut.ts:51
↓ 10 callers
Method
prettySuccess
* 快捷打印 "success" 类型的分组日志。
src/utils/Log.ts:119
↓ 10 callers
Method
querySql
* 查询 xml 中 sql
src/database/orm/BaseMapper.ts:396
↓ 9 callers
Function
toCss
(val: number)
src/windows/notify.ts:36
↓ 8 callers
Function
doPretty
(title: string, datas: unknown[], level: LogLevel = "info", opts?: LogOptions)
src/hooks/useLogger.ts:121
↓ 8 callers
Method
fromPartial
(object: I)
src/proto/google/protobuf/struct.ts:454
↓ 8 callers
Function
getGroupStore
()
src/store/modules/chat.ts:64
↓ 8 callers
Function
getWindow
(label: string, useCache = true)
src/windows/utils.ts:7
↓ 8 callers
Method
init
(userId?: string)
src/hooks/useImageCache.ts:44
↓ 8 callers
Function
mapper
(type: number)
src/store/modules/message.ts:62
↓ 8 callers
Function
promiseTry
(fn: () => T | Promise<T>)
src/hooks/useFFmpeg_wasm.ts:51
↓ 8 callers
Function
resolveColor
(c: ColorType | string)
src/views/screen/hooks/useCanvasTool.ts:165
↓ 7 callers
Method
delete
* DELETE 请求
src/views/call/services/Http.ts:251
↓ 7 callers
Method
emit
(event: WorkerEvent)
src/worker/Scheduler.worker.ts:169
↓ 7 callers
Method
emit
(event: WorkerEvent["event"], payload: Omit<WorkerEvent, "event">)
src/worker/Websocket.worker.ts:289
↓ 7 callers
Function
exec
(fn: () => Promise<T>, opts?: { op?: string; fallback?: T })
src/store/modules/message.ts:66
↓ 7 callers
Function
findIdx
(id: any)
src/store/modules/chat.ts:78
↓ 7 callers
Function
renderAllShapes
(preview?: Shape | null)
src/views/screen/hooks/useCanvasTool.ts:173
↓ 7 callers
Method
selectList
* 根据 QueryBuilder 查询列表或无条件查询全部
src/database/orm/BaseMapper.ts:299
↓ 7 callers
Function
sendWebSocketMessage
安全发送 JSON(socket 未连接或异常时静默)
src/views/call/services/useMeeting.ts:95
↓ 7 callers
Function
withTiming
性能计时装饰器 - 简化重复的计时逻辑
src/core.ts:50
↓ 7 callers
Function
withWindow
( label: string, action: (win: Window) => Promise<void>, warnMessage?: string )
src/windows/utils.ts:30
↓ 6 callers
Function
PrimaryKey
(auto = false)
src/database/orm/annotation/Decorators.ts:23
↓ 6 callers
Function
clamp
(v: number, a: number, b: number)
src/views/screen/hooks/useScreenshot.ts:651
↓ 6 callers
Function
closeWindow
(label: string)
src/windows/utils.ts:62
↓ 6 callers
Method
create
(base?: I)
src/proto/google/protobuf/struct.ts:452
↓ 6 callers
Function
doLog
(args: unknown[], level: LogLevel = "info", opts?: LogOptions)
src/hooks/useLogger.ts:105
↓ 6 callers
Function
draw
()
src/hooks/useOcr.ts:186
↓ 6 callers
Function
drawMask
()
src/views/screen/hooks/useScreenshot.ts:275
↓ 6 callers
Function
exec
(fn: () => Promise<T>, opts?: { op?: string; fallback?: T })
src/store/modules/chat.ts:94
↓ 6 callers
Method
getConnection
懒加载并返回 Database 连接
src/database/orm/core/DatabaseManager.ts:132
↓ 6 callers
Method
getInstance
* 获取或创建实例 * @param opts 初次调用可传入配置,后续调用相同 key 时返回已有实例
src/database/orm/core/DatabaseManager.ts:59
↓ 6 callers
Method
getStore
()
src/utils/TokenManager.ts:49
↓ 6 callers
Function
handler
()
src/windows/call.ts:32
↓ 6 callers
Method
init
初始化(从存储加载)
src/hooks/useInputEditor.ts:148
↓ 6 callers
Function
resetHideTimer
()
src/views/call/services/useMeeting.ts:112
↓ 6 callers
Method
select
(...fields: (keyof T)[])
src/database/orm/query/QueryBuilder.ts:224
↓ 6 callers
Method
send
(payload: any, options?: { protocol?: ProtocolMode; sendAsRawBytes?: boolean })
src/worker/Websocket.worker.ts:202
↓ 6 callers
Function
showAndFocus
(label: string)
src/windows/utils.ts:50
↓ 6 callers
Function
updateButtonGroupPosition
()
src/views/screen/hooks/useScreenshot.ts:665
↓ 6 callers
Function
useMappers
()
src/database/index.ts:55
↓ 5 callers
Function
Entity
(tableName?: string)
src/database/orm/annotation/Decorators.ts:16
↓ 5 callers
Function
FTS5
(config: FTS5Config)
src/database/orm/annotation/Decorators.ts:48
↓ 5 callers
Method
cacheKey
* 拼接缓存键名: 前缀_key * @param key 缓存KEY * @returns 完整的缓存键名
src/utils/Storage.ts:34
↓ 5 callers
Function
createMessageInitFromPlain
从普通对象创建 IMessageInit
src/models/index.ts:698
↓ 5 callers
Function
deepClone
深拷贝工具:优先 structuredClone
src/store/plugins/TauriStorage.ts:246
↓ 5 callers
Function
emit
* 发送事件 * @param event 事件名 * @param payload 事件参数
src/hooks/useEventBus.ts:17
↓ 5 callers
Function
escapeHtml
(s: string)
src/utils/Strings.ts:113
↓ 5 callers
Method
execute
* 异步执行并处理错误
src/utils/ErrorHandler.ts:161
↓ 5 callers
Method
execute
* 执行非查询 SQL(INSERT/UPDATE/DELETE),返回底层执行结果 * @param sql SQL 语句 * @param params 占位符参数
src/database/orm/core/DatabaseManager.ts:87
↓ 5 callers
Method
getLocal
获取本地缓存路径(同步,仅查内存索引)
src/hooks/useImageCache.ts:83
↓ 5 callers
Function
getMainWindow
()
src/windows/main.ts:24
↓ 5 callers
Function
getMeta
(selectors: string[])
src/hooks/useLinkPreview.ts:86
↓ 5 callers
Function
getTextFontPx
()
src/views/screen/hooks/useCanvasTool.ts:536
↓ 5 callers
Method
handle
* 处理错误
src/utils/ErrorHandler.ts:92
↓ 5 callers
Method
isEmpty
* 判断是否为空 * 对于字符串、数组,判断 length === 0 * 对于对象,判断无自身可枚举属性 * 对于 Map/Set,判断 size === 0 * 对于 null/undefined,视为空 * @param value 任意值
src/utils/ObjectUtils.ts:134
↓ 5 callers
Method
postToWorker
(cmd: WorkerCmd)
src/hooks/useWebSocketWorker.ts:135
↓ 5 callers
Method
pretty
* 以分组形式美化打印复杂对象或数组。 * @param type - 日志类型,对应颜色 * @param title - 分组标题 * @param data - 要打印的内容,可以是对象或数组或其他类型
src/utils/Log.ts:73
next →
1–100 of 1,454, ranked by callers