MCPcopy Index your code

hub / github.com/SlavomirDurej/claude-usage-widget / functions

Functions65 in github.com/SlavomirDurej/claude-usage-widget

↓ 13 callersFunctiondebugLog
(...args)
src/renderer/app.js:22
↓ 12 callersFunctiondebugLog
(...args)
main.js:49
↓ 10 callersFunctionfetchUsageData
(options = {})
src/renderer/app.js:502
↓ 8 callersFunctionresizeWidget
(bannerVisible)
src/renderer/app.js:749
↓ 6 callersFunctionstartAutoUpdate
()
src/renderer/app.js:1242
↓ 5 callersFunctionapplyCompactMode
(compact)
src/renderer/app.js:848
↓ 5 callersFunctionshowLoginRequired
()
src/renderer/app.js:1186
↓ 4 callersFunctionapplyTheme
(theme)
src/renderer/app.js:1626
↓ 4 callersFunctionloadChart
()
src/renderer/app.js:1260
↓ 4 callersFunctionpopulateOrgSelector
(organizations, selectedOrgId)
src/renderer/app.js:107
↓ 4 callersFunctionsetSessionCookie
(sessionKey)
main.js:142
↓ 4 callersFunctionshowMainContent
()
src/renderer/app.js:1222
↓ 4 callersFunctionstopAutoUpdate
()
src/renderer/app.js:1253
↓ 3 callersFunction_saveCompactSetting
(compact)
src/renderer/app.js:929
↓ 3 callersFunctioncreateMainWindow
()
main.js:155
↓ 3 callersFunctioncreateTray
()
main.js:550
↓ 3 callersFunctiondestroyTrayIcons
()
main.js:650
↓ 3 callersFunctionformatCurrency
(amountCents, currencyCode)
src/renderer/app.js:540
↓ 3 callersFunctionformatResetsAt
(resetsAt, isWeekly, timeFormat, weeklyDateFormat)
src/renderer/app.js:1093
↓ 3 callersFunctionrefreshExtraTimers
()
src/renderer/app.js:732
↓ 3 callersFunctionrefreshTimers
()
src/renderer/app.js:990
↓ 3 callersFunctionshowMainWindowClean
* Show the main window without the double-blink artifact on Windows. * * On Windows, transparent + alwaysOnTop + frameless windows re-enter the DWM
main.js:543
↓ 3 callersFunctionupdateTimer
(timerElement, textElement, resetsAt, totalMinutes)
src/renderer/app.js:1125
↓ 2 callersFunction_saveViewState
()
src/renderer/app.js:941
↓ 2 callersFunctionbuildExtraRows
(data)
src/renderer/app.js:557
↓ 2 callersFunctioncallback
(value)
src/renderer/app.js:1449
↓ 2 callersFunctionformatResetTime
* Format reset time for tray tooltip * @param {string} resetsAt - ISO timestamp string * @param {string} timeFormat - '12h' or '24h' * @param {bool
main.js:688
↓ 2 callersFunctionformatTime
()
main.js:692
↓ 2 callersFunctionformatTime
(d)
src/renderer/app.js:1099
↓ 2 callersFunctiongeneratePercentageIcon
* Generate a single percentage badge icon with colored background and bitmap text * @param {number} percent - Usage percentage (0-100) * @param {obj
main.js:426
↓ 2 callersFunctiongenerateRedXIcon
* Generate a Red X icon for 99-100% usage (maxed out) * @returns {NativeImage} Generated red X tray icon
main.js:468
↓ 2 callersFunctiongetBackgroundColor
* Determine background color based on thresholds
main.js:202
↓ 2 callersFunctionloadNext
* Load the next URL in the sequence
src/fetch-via-window.js:127
↓ 2 callersFunctionparseResponseBody
* Parse and validate response body text * @param {string} bodyText - Raw body text from the page * @returns {Object} Parsed JSON data * @throws {Err
src/fetch-via-window.js:33
↓ 2 callersFunctionparseVersion
(ver)
main.js:1224
↓ 2 callersFunctionupdateCompactBars
(data)
src/renderer/app.js:909
↓ 2 callersFunctionupdateProgressBar
(progressElement, percentageElement, value, isWeekly = false)
src/renderer/app.js:1076
↓ 2 callersFunctionupdateTrayIcon
* Update tray icons with current usage data * @param {Object} usageData - Usage data object containing session and weekly percentages
main.js:718
↓ 1 callersFunctioncheckForUpdate
()
src/renderer/app.js:1633
↓ 1 callersFunctioncheckUsageAlerts
(data)
src/renderer/app.js:795
↓ 1 callersFunctiondrawChar
* Draw a crisp bitmap character at position (x, y) in the buffer
main.js:394
↓ 1 callersFunctionfetchMultipleViaWindow
* Fetch multiple URLs sequentially using a single reused BrowserWindow * This reduces memory overhead by avoiding repeated window creation/destructio
src/fetch-via-window.js:108
↓ 1 callersFunctionfetchViaWindow
* Fetch a single URL using a dedicated BrowserWindow (legacy single-call approach) * @param {string} url - URL to fetch * @param {Object} options -
src/fetch-via-window.js:56
↓ 1 callersFunctionformatTimestampTick
(timestamp, spanMs, timeFormat)
src/renderer/app.js:1499
↓ 1 callersFunctionhandleConnect
()
src/renderer/app.js:425
↓ 1 callersFunctioninit
()
src/renderer/app.js:149
↓ 1 callersFunctionisAllowedExternalUrl
(url)
preload.js:10
↓ 1 callersFunctionisNewerVersion
(remote, local)
main.js:1222
↓ 1 callersFunctionloadSettings
()
src/renderer/app.js:1530
↓ 1 callersFunctionmigrateUsageHistoryKey
()
main.js:104
↓ 1 callersFunctionnormalizeUsageData
(data)
src/renderer/app.js:763
↓ 1 callersFunctionpruneStaleHistoryKeys
()
main.js:119
↓ 1 callersFunctionrenderChart
(history)
src/renderer/app.js:1266
↓ 1 callersFunctionsaveSettings
()
src/renderer/app.js:1576
↓ 1 callersFunctionseedAlertFlags
(data)
src/renderer/app.js:971
↓ 1 callersFunctionsetupEventListeners
()
src/renderer/app.js:217
↓ 1 callersFunctionstartCountdown
()
src/renderer/app.js:1067
↓ 1 callersFunctionstoreUsageHistory
(data)
main.js:65
↓ 1 callersFunctionupdateUI
(data)
src/renderer/app.js:767
FunctionafterBuildTicks
(axis)
src/renderer/app.js:1433
FunctionhandleAutoDetect
()
src/renderer/app.js:462
FunctionhandleOrgChange
()
src/renderer/app.js:138
Functionlabel
(item)
src/renderer/app.js:1489
FunctiononCookieChanged
(event, cookie, cause, removed)
main.js:1156
Functiontitle
(items)
src/renderer/app.js:1481