From 4fce8c95ccc3e203d5dcc91113b23cf958d1173b Mon Sep 17 00:00:00 2001 From: Index Date: Mon, 1 Jul 2024 20:07:05 -0500 Subject: [PATCH] minor: redesign debug page to use bootstrap collapse elements --- js/extra-pages.js | 44 ++++++++++++++++++++++++++++++++------------ 1 file changed, 32 insertions(+), 12 deletions(-) diff --git a/js/extra-pages.js b/js/extra-pages.js index abb65fb..0c823ba 100644 --- a/js/extra-pages.js +++ b/js/extra-pages.js @@ -256,6 +256,10 @@ if (window.location.pathname.split('/')[3] === 'polyplus' && window.location.has font-size: 0.9rem; margin-top: -4px; } + + .card:has([data-bs-toggle="collapse"]):not(:has(.card-body.collapse.show)) a:has(.card-header), .card:has([data-bs-toggle="collapse"]):not(:has(.card-body.collapse.show)) .card-header { + border-radius: inherit; + }

Poly+ Debug

@@ -264,9 +268,13 @@ if (window.location.pathname.split('/')[3] === 'polyplus' && window.location.has
-
- Sync -

Settings

+ +
${JSON.stringify((sync.PolyPlus_Settings || {}), null, 2) .replaceAll('\n','
') @@ -277,9 +285,13 @@ if (window.location.pathname.split('/')[3] === 'polyplus' && window.location.has
-
- Local -

Inventory Cache

+ +
${JSON.stringify((local.PolyPlus_InventoryCache || {data: [], requested: "never"}), null, 2) .replaceAll('\n','
') @@ -299,9 +311,13 @@ if (window.location.pathname.split('/')[3] === 'polyplus' && window.location.has
-
- Sync -

Pinned Games (${(sync.PolyPlus_PinnedGames || []).length})

+ +
${JSON.stringify((sync.PolyPlus_PinnedGames || []), null, 2) .replaceAll('\n','
') @@ -312,9 +328,13 @@ if (window.location.pathname.split('/')[3] === 'polyplus' && window.location.has
-
- Sync -

Item Wishlist (${(sync.PolyPlus_ItemWishlist || []).length})

+ +
${JSON.stringify((sync.PolyPlus_ItemWishlist || []), null, 2) .replaceAll('\n','
')