From 21bc87be353fc3a5a3e2a601b55c90b26a9159ae Mon Sep 17 00:00:00 2001 From: Alex Panturu Date: Tue, 16 Jul 2024 16:28:06 +0300 Subject: [PATCH] explorer: add dark theme --- .../__snapshots__/BlocksCard.spec.js.snap | 130 +++--------- .../__snapshots__/BlocksList.spec.js.snap | 7 +- .../__snapshots__/BlocksTable.spec.js.snap | 60 +----- .../SearchNotification.spec.js.snap | 4 +- .../components/blocks-list/BlocksList.svelte | 7 +- .../blocks-table/BlocksTable.svelte | 8 +- .../lib/components/data-card/DataCard.svelte | 6 +- .../src/lib/components/footer/Footer.svelte | 5 +- explorer/src/lib/components/navbar/Navbar.css | 4 + .../src/lib/components/navbar/Navbar.svelte | 5 +- .../SearchNotification.svelte | 4 + explorer/src/lib/components/table/Table.css | 1 + .../textbox-and-button/TextboxAndButton.css | 9 + .../lib/components/world-map/WorldMap.svelte | 6 +- .../statistics-panel/StatisticsPanel.svelte | 3 +- .../src/lib/stores/__tests__/appStore.spec.js | 9 + explorer/src/lib/stores/appStore.js | 19 ++ explorer/src/lib/stores/stores.d.ts | 2 + explorer/src/routes/+layout.svelte | 5 + explorer/src/routes/__tests__/layout.spec.js | 31 ++- .../__tests__/__snapshots__/page.spec.js.snap | 195 ++++-------------- explorer/src/style/main.css | 2 +- 22 files changed, 190 insertions(+), 332 deletions(-) diff --git a/explorer/src/lib/components/__tests__/__snapshots__/BlocksCard.spec.js.snap b/explorer/src/lib/components/__tests__/__snapshots__/BlocksCard.spec.js.snap index dd3cdd8626..ec70ea710f 100644 --- a/explorer/src/lib/components/__tests__/__snapshots__/BlocksCard.spec.js.snap +++ b/explorer/src/lib/components/__tests__/__snapshots__/BlocksCard.spec.js.snap @@ -129,11 +129,7 @@ exports[`Blocks Card > should disable the \`Show More\` button if there is no mo - - 16 - + 16 @@ -192,11 +188,7 @@ exports[`Blocks Card > should disable the \`Show More\` button if there is no mo - - 16 - + 16 @@ -255,11 +247,7 @@ exports[`Blocks Card > should disable the \`Show More\` button if there is no mo - - 16 - + 16 @@ -318,11 +306,7 @@ exports[`Blocks Card > should disable the \`Show More\` button if there is no mo - - 16 - + 16 @@ -381,11 +365,7 @@ exports[`Blocks Card > should disable the \`Show More\` button if there is no mo - - 16 - + 16 @@ -444,11 +424,7 @@ exports[`Blocks Card > should disable the \`Show More\` button if there is no mo - - 16 - + 16 @@ -507,11 +483,7 @@ exports[`Blocks Card > should disable the \`Show More\` button if there is no mo - - 16 - + 16 @@ -570,11 +542,7 @@ exports[`Blocks Card > should disable the \`Show More\` button if there is no mo - - 16 - + 16 @@ -633,11 +601,7 @@ exports[`Blocks Card > should disable the \`Show More\` button if there is no mo - - 16 - + 16 @@ -696,11 +660,7 @@ exports[`Blocks Card > should disable the \`Show More\` button if there is no mo - - 16 - + 16 @@ -896,11 +856,8 @@ exports[`Blocks Card > should disable the \`Show More\` button if there is no mo
- - 16 DUSK - + 16 + DUSK
@@ -1086,11 +1043,8 @@ exports[`Blocks Card > should disable the \`Show More\` button if there is no mo
- - 16 DUSK - + 16 + DUSK
@@ -1276,11 +1230,8 @@ exports[`Blocks Card > should disable the \`Show More\` button if there is no mo
- - 16 DUSK - + 16 + DUSK
@@ -1466,11 +1417,8 @@ exports[`Blocks Card > should disable the \`Show More\` button if there is no mo
- - 16 DUSK - + 16 + DUSK
@@ -1656,11 +1604,8 @@ exports[`Blocks Card > should disable the \`Show More\` button if there is no mo
- - 16 DUSK - + 16 + DUSK
@@ -1846,11 +1791,8 @@ exports[`Blocks Card > should disable the \`Show More\` button if there is no mo
- - 16 DUSK - + 16 + DUSK
@@ -2036,11 +1978,8 @@ exports[`Blocks Card > should disable the \`Show More\` button if there is no mo
- - 16 DUSK - + 16 + DUSK
@@ -2226,11 +2165,8 @@ exports[`Blocks Card > should disable the \`Show More\` button if there is no mo
- - 16 DUSK - + 16 + DUSK
@@ -2416,11 +2352,8 @@ exports[`Blocks Card > should disable the \`Show More\` button if there is no mo
- - 16 DUSK - + 16 + DUSK
@@ -2606,11 +2539,8 @@ exports[`Blocks Card > should disable the \`Show More\` button if there is no mo
- - 16 DUSK - + 16 + DUSK
diff --git a/explorer/src/lib/components/__tests__/__snapshots__/BlocksList.spec.js.snap b/explorer/src/lib/components/__tests__/__snapshots__/BlocksList.spec.js.snap index 037ea4f475..11505e3ec4 100644 --- a/explorer/src/lib/components/__tests__/__snapshots__/BlocksList.spec.js.snap +++ b/explorer/src/lib/components/__tests__/__snapshots__/BlocksList.spec.js.snap @@ -183,11 +183,8 @@ exports[`Blocks List > renders the Blocks List component 1`] = `
- - 16 DUSK - + 16 + DUSK
`; diff --git a/explorer/src/lib/components/__tests__/__snapshots__/BlocksTable.spec.js.snap b/explorer/src/lib/components/__tests__/__snapshots__/BlocksTable.spec.js.snap index 2aff261078..17b4ddc24f 100644 --- a/explorer/src/lib/components/__tests__/__snapshots__/BlocksTable.spec.js.snap +++ b/explorer/src/lib/components/__tests__/__snapshots__/BlocksTable.spec.js.snap @@ -100,11 +100,7 @@ exports[`Blocks Table > should render the \`BlocksTable\` component 1`] = ` - - 16 - + 16 @@ -163,11 +159,7 @@ exports[`Blocks Table > should render the \`BlocksTable\` component 1`] = ` - - 16 - + 16 @@ -226,11 +218,7 @@ exports[`Blocks Table > should render the \`BlocksTable\` component 1`] = ` - - 16 - + 16 @@ -289,11 +277,7 @@ exports[`Blocks Table > should render the \`BlocksTable\` component 1`] = ` - - 16 - + 16 @@ -352,11 +336,7 @@ exports[`Blocks Table > should render the \`BlocksTable\` component 1`] = ` - - 16 - + 16 @@ -415,11 +395,7 @@ exports[`Blocks Table > should render the \`BlocksTable\` component 1`] = ` - - 16 - + 16 @@ -478,11 +454,7 @@ exports[`Blocks Table > should render the \`BlocksTable\` component 1`] = ` - - 16 - + 16 @@ -541,11 +513,7 @@ exports[`Blocks Table > should render the \`BlocksTable\` component 1`] = ` - - 16 - + 16 @@ -604,11 +572,7 @@ exports[`Blocks Table > should render the \`BlocksTable\` component 1`] = ` - - 16 - + 16 @@ -667,11 +631,7 @@ exports[`Blocks Table > should render the \`BlocksTable\` component 1`] = ` - - 16 - + 16 diff --git a/explorer/src/lib/components/__tests__/__snapshots__/SearchNotification.spec.js.snap b/explorer/src/lib/components/__tests__/__snapshots__/SearchNotification.spec.js.snap index 51a63a8ca0..d494e586f9 100644 --- a/explorer/src/lib/components/__tests__/__snapshots__/SearchNotification.spec.js.snap +++ b/explorer/src/lib/components/__tests__/__snapshots__/SearchNotification.spec.js.snap @@ -20,7 +20,7 @@ exports[`Search Notification > renders the Search Notification component with a