- {chatSummary.slice(0, 5).map(a => (
-
- ))}
+ // fill empty time slots
+ for (let x = min; x < max; x += windowSize) {
+ ret[x.toString()] ??= {
+ time: x,
+ zaps: 0,
+ messages: 0,
+ reactions: 0,
+ };
+ }
+ return ret;
+ }, [data]);
+
+ return (
+
+
{title}
+
{summary}
+
+
+ {streamLength > 0 && (
+ ,
+ }}
+ />
+ )}
+
+
+
+
+
+
+
+
+
+
+
+ {
+ if (active && payload && payload.length) {
+ const data = payload[0].payload as StatSlot;
+ return (
+
-
-
-
-
-
- {zapsSummary.slice(0, 5).map(a => (
-
- ))}
+
+
+
+
+
+
{data.reactions}
+
+
+
+ );
+ }
+ return null;
+ }}
+ />
+
+
+
+
+
+
+
+
+
+ {chatSummary.slice(0, 5).map(a => (
+
+
+ ))}
+
- );
+
+
+
+
+
+ {zapsSummary.slice(0, 5).map(a => (
+
+ ))}
+
+
+
+
+ );
}
diff --git a/src/lang.json b/src/lang.json
index 93a52f5..94eeb3e 100644
--- a/src/lang.json
+++ b/src/lang.json
@@ -140,6 +140,9 @@
"GGaJMU": {
"defaultMessage": "Top Chatters"
},
+ "Gmiwnd": {
+ "defaultMessage": "Refresh the page to use the latest version"
+ },
"Gq6x9o": {
"defaultMessage": "Cover Image"
},
@@ -227,6 +230,9 @@
"Qe1MJu": {
"defaultMessage": "{name} with {amount}"
},
+ "RJ2VxG": {
+ "defaultMessage": "A new version has been detected"
+ },
"RJOmzk": {
"defaultMessage": "I have read and agree with {provider}''s {terms}."
},
@@ -381,6 +387,9 @@
"r2Jjms": {
"defaultMessage": "Log In"
},
+ "rELDbB": {
+ "defaultMessage": "Refresh"
+ },
"rWBFZA": {
"defaultMessage": "Sexually explicit material ahead!"
},
diff --git a/src/pages/layout.tsx b/src/pages/layout.tsx
index 66ea0e6..08e9b31 100644
--- a/src/pages/layout.tsx
+++ b/src/pages/layout.tsx
@@ -145,20 +145,25 @@ export function LayoutPage() {
}
function NewVersionBanner() {
- const newVersion = useSyncExternalStore(c => NewVersion.hook(c), () => NewVersion.snapshot());
+ const newVersion = useSyncExternalStore(
+ c => NewVersion.hook(c),
+ () => NewVersion.snapshot()
+ );
if (!newVersion) return;
- return
-
-
-
-
-
-
-
+ return (
+
+
+
window.location.reload()} className="btn">
+
+
-
window.location.reload()} className="btn">
-
-
-
-}
\ No newline at end of file
+ );
+}
diff --git a/src/translations/en.json b/src/translations/en.json
index 4c8a0c2..4219ecd 100644
--- a/src/translations/en.json
+++ b/src/translations/en.json
@@ -46,6 +46,7 @@
"Fodi9+": "Get paid by viewers",
"G/yZLu": "Remove",
"GGaJMU": "Top Chatters",
+ "Gmiwnd": "Refresh the page to use the latest version",
"Gq6x9o": "Cover Image",
"H/bNs9": "Save this and keep it safe! If you lose this key, you won't be able to access your account ever again. Yep, it's that serious!",
"H5+NAX": "Balance",
@@ -75,6 +76,7 @@
"QRRCp0": "Stream URL",
"QceMQZ": "Goal: {amount}",
"Qe1MJu": "{name} with {amount}",
+ "RJ2VxG": "A new version has been detected",
"RJOmzk": "I have read and agree with {provider}''s {terms}.",
"RXQdxR": "Please login to write messages!",
"RrCui3": "Summary",
@@ -126,6 +128,7 @@
"oZrFyI": "Stream type should be HLS",
"pO/lPX": "Scheduled for {date}",
"r2Jjms": "Log In",
+ "rELDbB": "Refresh",
"rWBFZA": "Sexually explicit material ahead!",
"rbrahO": "Close",
"rfC1Zq": "Save card",