From 05577aea546296e675c2722d248bf7f515961c0d Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 17 Sep 2024 22:56:06 +0300 Subject: [PATCH] replace toSorted with sort, add artist credit --- index.html | 16 ++++++++++++++++ src/main.js | 1 + src/services/theme_data/theme_data_3.service.js | 5 ----- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 6588a287..702acfe8 100644 --- a/index.html +++ b/index.html @@ -29,6 +29,13 @@ font-size: calc(1vw + 1vh + 1vmin); } + #splash-credit { + position: absolute; + font-size: 14px; + bottom: 0; + right: 0; + } + #splash-container { align-items: center; } @@ -98,6 +105,12 @@ width: 100%; text-align: center; } + + @media (prefers-reduced-motion) { + #throbber { + animation: none; + } + } @@ -107,6 +120,9 @@
+
+ Art by pipivovott +
diff --git a/src/main.js b/src/main.js index 40347e6d..4ccdabb9 100644 --- a/src/main.js +++ b/src/main.js @@ -80,6 +80,7 @@ const persistedStateOptions = { } document.querySelector('#status').removeAttribute('class') document.querySelector('#status').textContent = i18n.global.t('splash.loading') + document.querySelector('#splash-credit').textContent = i18n.global.t('update.art_by', { linkToArtist: 'pipivovott' }) const store = createStore({ modules: { i18n: { diff --git a/src/services/theme_data/theme_data_3.service.js b/src/services/theme_data/theme_data_3.service.js index 056b78f7..cf58da11 100644 --- a/src/services/theme_data/theme_data_3.service.js +++ b/src/services/theme_data/theme_data_3.service.js @@ -196,11 +196,6 @@ export const init = ({ return rule }) - const i = 4 - if (2 + 2 === i) { - throw new Error('test') - } - const ruleset = rulesetUnsorted .map((data, index) => ({ data, index })) .sort(({ data: a, index: ai }, { data: b, index: bi }) => {