Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/SlavomirDurej/claude-usage-widget
/ functions
Functions
65 in github.com/SlavomirDurej/claude-usage-widget
⨍
Functions
65
◇
Types & classes
0
↓ 13 callers
Function
debugLog
(...args)
src/renderer/app.js:22
↓ 12 callers
Function
debugLog
(...args)
main.js:49
↓ 10 callers
Function
fetchUsageData
(options = {})
src/renderer/app.js:502
↓ 8 callers
Function
resizeWidget
(bannerVisible)
src/renderer/app.js:749
↓ 6 callers
Function
startAutoUpdate
()
src/renderer/app.js:1242
↓ 5 callers
Function
applyCompactMode
(compact)
src/renderer/app.js:848
↓ 5 callers
Function
showLoginRequired
()
src/renderer/app.js:1186
↓ 4 callers
Function
applyTheme
(theme)
src/renderer/app.js:1626
↓ 4 callers
Function
loadChart
()
src/renderer/app.js:1260
↓ 4 callers
Function
populateOrgSelector
(organizations, selectedOrgId)
src/renderer/app.js:107
↓ 4 callers
Function
setSessionCookie
(sessionKey)
main.js:142
↓ 4 callers
Function
showMainContent
()
src/renderer/app.js:1222
↓ 4 callers
Function
stopAutoUpdate
()
src/renderer/app.js:1253
↓ 3 callers
Function
_saveCompactSetting
(compact)
src/renderer/app.js:929
↓ 3 callers
Function
createMainWindow
()
main.js:155
↓ 3 callers
Function
createTray
()
main.js:550
↓ 3 callers
Function
destroyTrayIcons
()
main.js:650
↓ 3 callers
Function
formatCurrency
(amountCents, currencyCode)
src/renderer/app.js:540
↓ 3 callers
Function
formatResetsAt
(resetsAt, isWeekly, timeFormat, weeklyDateFormat)
src/renderer/app.js:1093
↓ 3 callers
Function
refreshExtraTimers
()
src/renderer/app.js:732
↓ 3 callers
Function
refreshTimers
()
src/renderer/app.js:990
↓ 3 callers
Function
showMainWindowClean
* 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 callers
Function
updateTimer
(timerElement, textElement, resetsAt, totalMinutes)
src/renderer/app.js:1125
↓ 2 callers
Function
_saveViewState
()
src/renderer/app.js:941
↓ 2 callers
Function
buildExtraRows
(data)
src/renderer/app.js:557
↓ 2 callers
Function
callback
(value)
src/renderer/app.js:1449
↓ 2 callers
Function
formatResetTime
* Format reset time for tray tooltip * @param {string} resetsAt - ISO timestamp string * @param {string} timeFormat - '12h' or '24h' * @param {bool
main.js:688
↓ 2 callers
Function
formatTime
()
main.js:692
↓ 2 callers
Function
formatTime
(d)
src/renderer/app.js:1099
↓ 2 callers
Function
generatePercentageIcon
* 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 callers
Function
generateRedXIcon
* Generate a Red X icon for 99-100% usage (maxed out) * @returns {NativeImage} Generated red X tray icon
main.js:468
↓ 2 callers
Function
getBackgroundColor
* Determine background color based on thresholds
main.js:202
↓ 2 callers
Function
loadNext
* Load the next URL in the sequence
src/fetch-via-window.js:127
↓ 2 callers
Function
parseResponseBody
* 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 callers
Function
parseVersion
(ver)
main.js:1224
↓ 2 callers
Function
updateCompactBars
(data)
src/renderer/app.js:909
↓ 2 callers
Function
updateProgressBar
(progressElement, percentageElement, value, isWeekly = false)
src/renderer/app.js:1076
↓ 2 callers
Function
updateTrayIcon
* Update tray icons with current usage data * @param {Object} usageData - Usage data object containing session and weekly percentages
main.js:718
↓ 1 callers
Function
checkForUpdate
()
src/renderer/app.js:1633
↓ 1 callers
Function
checkUsageAlerts
(data)
src/renderer/app.js:795
↓ 1 callers
Function
drawChar
* Draw a crisp bitmap character at position (x, y) in the buffer
main.js:394
↓ 1 callers
Function
fetchMultipleViaWindow
* 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 callers
Function
fetchViaWindow
* 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 callers
Function
formatTimestampTick
(timestamp, spanMs, timeFormat)
src/renderer/app.js:1499
↓ 1 callers
Function
handleConnect
()
src/renderer/app.js:425
↓ 1 callers
Function
init
()
src/renderer/app.js:149
↓ 1 callers
Function
isAllowedExternalUrl
(url)
preload.js:10
↓ 1 callers
Function
isNewerVersion
(remote, local)
main.js:1222
↓ 1 callers
Function
loadSettings
()
src/renderer/app.js:1530
↓ 1 callers
Function
migrateUsageHistoryKey
()
main.js:104
↓ 1 callers
Function
normalizeUsageData
(data)
src/renderer/app.js:763
↓ 1 callers
Function
pruneStaleHistoryKeys
()
main.js:119
↓ 1 callers
Function
renderChart
(history)
src/renderer/app.js:1266
↓ 1 callers
Function
saveSettings
()
src/renderer/app.js:1576
↓ 1 callers
Function
seedAlertFlags
(data)
src/renderer/app.js:971
↓ 1 callers
Function
setupEventListeners
()
src/renderer/app.js:217
↓ 1 callers
Function
startCountdown
()
src/renderer/app.js:1067
↓ 1 callers
Function
storeUsageHistory
(data)
main.js:65
↓ 1 callers
Function
updateUI
(data)
src/renderer/app.js:767
Function
afterBuildTicks
(axis)
src/renderer/app.js:1433
Function
handleAutoDetect
()
src/renderer/app.js:462
Function
handleOrgChange
()
src/renderer/app.js:138
Function
label
(item)
src/renderer/app.js:1489
Function
onCookieChanged
(event, cookie, cause, removed)
main.js:1156
Function
title
(items)
src/renderer/app.js:1481