tasks: remove debug toggle from rewards page
All checks were successful
CI / update (push) Successful in 3m39s
All checks were successful
CI / update (push) Successful in 3m39s
This commit is contained in:
@@ -25,17 +25,8 @@
|
|||||||
common: 3
|
common: 3
|
||||||
});
|
});
|
||||||
|
|
||||||
let debugShowAll = $state(false);
|
|
||||||
|
|
||||||
// Build current user's sticker collection
|
// Build current user's sticker collection
|
||||||
let displayedStickers = $derived.by(() => {
|
let displayedStickers = $derived.by(() => {
|
||||||
if (debugShowAll) {
|
|
||||||
/** @type {Map<string, number>} */
|
|
||||||
const all = new Map();
|
|
||||||
for (let i = 0; i < STICKERS.length; i++) all.set(STICKERS[i].id, (i % 5) + 1);
|
|
||||||
return all;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @type {Map<string, number>} */
|
/** @type {Map<string, number>} */
|
||||||
const collection = new Map();
|
const collection = new Map();
|
||||||
for (const entry of stats.userStickers) {
|
for (const entry of stats.userStickers) {
|
||||||
@@ -80,9 +71,6 @@
|
|||||||
<div class="progress-fill" style="width: {(collectedCount / totalCount) * 100}%"></div>
|
<div class="progress-fill" style="width: {(collectedCount / totalCount) * 100}%"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button class="debug-btn" onclick={() => debugShowAll = !debugShowAll}>
|
|
||||||
{debugShowAll ? '🐛 Debug an' : '🐛 Debug'}
|
|
||||||
</button>
|
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<StickerCalendar completions={stats.recentCompletions} {currentUser} />
|
<StickerCalendar completions={stats.recentCompletions} {currentUser} />
|
||||||
@@ -351,22 +339,6 @@
|
|||||||
background: var(--nord2);
|
background: var(--nord2);
|
||||||
}
|
}
|
||||||
|
|
||||||
.debug-btn {
|
|
||||||
position: fixed;
|
|
||||||
bottom: 1rem;
|
|
||||||
right: 1rem;
|
|
||||||
padding: 0.35rem 0.7rem;
|
|
||||||
font-size: 0.72rem;
|
|
||||||
background: var(--nord1);
|
|
||||||
color: var(--nord4);
|
|
||||||
border: 1px solid var(--nord2);
|
|
||||||
border-radius: 6px;
|
|
||||||
cursor: pointer;
|
|
||||||
opacity: 0.5;
|
|
||||||
z-index: 50;
|
|
||||||
}
|
|
||||||
.debug-btn:hover { opacity: 1; }
|
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
.sticker-grid {
|
.sticker-grid {
|
||||||
grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
|
grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
|
||||||
|
|||||||
Reference in New Issue
Block a user