opencode-statboard 2.10.38 → 2.10.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/public/index.html +2 -1
package/package.json
CHANGED
package/public/index.html
CHANGED
|
@@ -1069,7 +1069,6 @@ async function poll() {
|
|
|
1069
1069
|
renderTrend(null);
|
|
1070
1070
|
}
|
|
1071
1071
|
renderTools(lastTools);
|
|
1072
|
-
loadQuota(); // refresh quota after data load
|
|
1073
1072
|
const ago = Math.round((Date.now() - (j.generatedAt || 0)) / 1000);
|
|
1074
1073
|
const time = new Date().toLocaleTimeString(lang === 'zh-TW' ? 'zh-TW' : 'en', { hour12: false });
|
|
1075
1074
|
lastUpdatedText = t('lastUpdated') + ' ' + time + ' (' + t('dataAgo') + ' ' + ago + 's)';
|
|
@@ -1250,6 +1249,8 @@ poll();
|
|
|
1250
1249
|
setInterval(poll, 15000);
|
|
1251
1250
|
loadReport(scopeDays);
|
|
1252
1251
|
loadHeatmap().then(renderHeatmap);
|
|
1252
|
+
loadQuota(); // initial quota load
|
|
1253
|
+
setInterval(loadQuota, 5000); // refresh quota every 5s (server caches 5 min)
|
|
1253
1254
|
</script>
|
|
1254
1255
|
</body>
|
|
1255
1256
|
</html>
|