From 4204b5d340203428bc97d1b76531c8939bb179bf Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Fri, 16 Feb 2024 09:08:25 -0400 Subject: client: miscellaneous eslint cleanup --- src/static/client3.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/static/client3.js b/src/static/client3.js index 1ddccbb1..892a23c7 100644 --- a/src/static/client3.js +++ b/src/static/client3.js @@ -5,7 +5,6 @@ // that cannot 8e done at static-site compile time, 8y its fundamentally // ephemeral nature. -import {getColors} from '../util/colors.js'; import {empty, stitchArrays} from '../util/sugar.js'; import {filterMultipleArrays} from '../util/wiki-data.js'; @@ -39,6 +38,7 @@ function initInfo(key, description) { // Localiz8tion nonsense ---------------------------------- +/* const language = document.documentElement.getAttribute('lang'); let list; @@ -65,6 +65,7 @@ if (typeof Intl === 'object' && typeof Intl.ListFormat === 'function') { unit: arbitraryMock, }; } +*/ // Miscellaneous helpers ---------------------------------- @@ -112,17 +113,24 @@ function pointIsOverAnyOf(elements) { // TODO: These should pro8a8ly access some shared urlSpec path. We'd need to // separ8te the tooling around that into common-shared code too. + +/* const getLinkHref = (type, directory) => rebase(`${type}/${directory}`); +*/ + const openAlbum = (d) => rebase(`album/${d}`); const openTrack = (d) => rebase(`track/${d}`); const openArtist = (d) => rebase(`artist/${d}`); // TODO: This should also use urlSpec. + +/* function fetchData(type, directory) { return fetch(rebase(`${type}/${directory}/data.json`, 'rebaseData')).then( (res) => res.json() ); } +*/ function dispatchInternalEvent(event, eventName, ...args) { const [infoName] = @@ -2249,9 +2257,6 @@ function scrollAlbumCommentarySidebar() { const linkScrollTop = linkTopEdge - stickyPadding - 5; - const linkDistanceFromSection = - linkScrollTop - sectionTopEdge; - const linkVisibleFromTopOfSection = linkBottomEdge - sectionTopEdge > sidebarViewportHeight; -- cgit 1.3.0-6-gf8a5