Statistics - Per day and per stream statistics (src/periodstats.js, one generic stat_day table), backfilled once from the older tables; Stream / Week / Month / Year / All time views, Community and Streams tabs. - Viewer count every 5 minutes and title / category history per stream (EventSub channel.update): viewer graph, games played (donut), games in the streams list. - Twitch sync (src/twitchsync.js): followers with follow dates, current subs, mods, VIPs, all-time bits, channel emotes, past streams from VODs. Twitch analytics CSV import (src/twitchcsv.js). - Public stats page on its own host (Settings -> Stats and data): no message text, no bots, !hideme / !showme opt-out. Viewer page: roles, follow age, sub status, bits, a menu for rarely used actions. - StreamElements watch-time importer removed (already imported minutes stay as a baseline). Dashboard - Settings and Actions with a left sidebar; each settings page saves only its own fields. Connections (Twitch, StreamElements token now set here, HUDFX), OBS links (hidden behind an eye toggle) with a link builder, Chat (sound picked from the media library), TTS, Stats and data, Backup (export / import the whole setup), Advanced. Time zone setting for the stats pages. - Actions -> Alerts: alert style, pictures, sounds, bits tiers and card colours, stored in the database (src/theme.js); an old file-based theme is imported once. Alert preview page (/actions/alerts/preview, tools/preview/export.js for a static copy). - Old /actions page removed; Actions = Redeems / Alerts / TTS voices / Media. Alerts - New plain Card style for everyone (public/alerts/card.js); Polaroid, Cassette and the TTS letter stay as optional looks. Redeem variations can be Card, Cassette, Sound only or Video. Repo - No channel data in git: the channel's art, stickers and sounds stay on disk (gitignored) and are picked in the dashboard; examples for the server config (apache.example.sh, .env.example). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
44 lines
3.2 KiB
CSS
44 lines
3.2 KiB
CSS
/* Polaroid alerts (see polaroid.js). Fonts: Caveat (loaded by overlay.ejs). */
|
|
#polaroid-alert { --red:#b74347; --ink:#3a2a20;
|
|
position:fixed; left:85px; top:90px; width:340px; visibility:hidden; z-index:50; }
|
|
|
|
#polaroid-alert .photo { position:absolute; left:0; top:0; width:340px; padding:18px 18px 0; background:#fffdf7;
|
|
box-shadow:0 14px 30px rgba(0,0,0,.45); transform-origin:50% 40%; box-sizing:content-box; }
|
|
#polaroid-alert .photo.main { position:relative; }
|
|
#polaroid-alert .ph { height:290px; background:var(--phbg, linear-gradient(#ffd9e0,#f8c3cf)); position:relative; overflow:hidden; }
|
|
#polaroid-alert .ph img { position:absolute; bottom:0; left:50%; transform:translateX(-50%); width:300px; display:block; }
|
|
#polaroid-alert .back .blank { height:70px; }
|
|
|
|
#polaroid-alert .cap { font:700 34px/1.05 'Caveat', cursive; color:var(--ink); text-align:center; padding:14px 34px 20px; }
|
|
#polaroid-alert .cap .u { color:var(--red); display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
|
|
#polaroid-alert .cap .msg { font-size:24px; line-height:1.1; color:#7a6656; margin-top:6px;
|
|
overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
|
|
|
|
#polaroid-alert .tape { position:absolute; z-index:3; width:130px; height:36px; top:-16px; opacity:0;
|
|
background-color:var(--tape, rgba(201,182,228,.85));
|
|
background-image:repeating-linear-gradient(45deg,#fff6 0 8px,#0000 8px 16px);
|
|
box-shadow:0 1px 2px rgba(0,0,0,.15); }
|
|
#polaroid-alert .t1 { left:-30px; }
|
|
#polaroid-alert .t2 { right:-30px; }
|
|
|
|
#polaroid-alert .sticker { filter:drop-shadow(4px 0 0 #fff) drop-shadow(-4px 0 0 #fff) drop-shadow(0 4px 0 #fff)
|
|
drop-shadow(0 -4px 0 #fff) drop-shadow(0 6px 10px rgba(0,0,0,.35)); }
|
|
#polaroid-alert .heart { position:absolute; z-index:4; right:-66px; bottom:-34px; width:104px; opacity:0; }
|
|
#polaroid-alert .heart.extra { width:70px; bottom:30px; }
|
|
|
|
#polaroid-alert .badge { position:absolute; z-index:5; right:-34px; top:40px; width:96px; height:96px; border-radius:50%;
|
|
background:var(--badge, #f6c75b); border:5px solid #fff; box-shadow:0 6px 10px rgba(0,0,0,.35); box-sizing:content-box;
|
|
display:flex; flex-direction:column; align-items:center; justify-content:center; opacity:0;
|
|
font:700 40px/0.9 'Caveat', cursive; color:#fff; text-shadow:0 2px 0 rgba(0,0,0,.25); }
|
|
#polaroid-alert .badge small { font-size:19px; line-height:1; }
|
|
|
|
/* variation name on a paper label (redeems) */
|
|
#polaroid-alert .tag { position:absolute; left:10px; bottom:10px; max-width:85%; padding:2px 12px; background:#fffdf7;
|
|
font:700 26px/1.2 'Caveat', cursive; color:var(--ink); transform:rotate(-3deg); box-shadow:0 2px 4px rgba(0,0,0,.25);
|
|
white-space:nowrap; overflow:hidden; text-overflow:ellipsis; box-sizing:border-box; }
|
|
|
|
/* raid send-off: square Twitch avatar fills the photo instead of standing on the bottom edge */
|
|
#polaroid-alert .ph.avatar img { width:100%; height:100%; bottom:0; object-fit:cover; }
|
|
|
|
/* no picture set (Actions → Alerts): the first letter of the name, handwritten */
|
|
#polaroid-alert .ph .ini { position:absolute; inset:0; display:grid; place-items:center; font:700 170px/1 'Caveat', cursive; color:rgba(255,255,255,.9); text-shadow:0 4px 12px rgba(0,0,0,.12); }
|