From 16a267f6dd83167266a2bc1ee6ac7187cc85004a Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Tue, 10 Jun 2025 02:50:09 -0400 Subject: [PATCH] Move autoscroll enum to bulletproof structure --- .../stable/features/lyrics/constants/autoScroll.ts} | 0 src/controllers/lyrics.js | 5 ++--- 2 files changed, 2 insertions(+), 3 deletions(-) rename src/{controllers/lyrics.types.ts => apps/stable/features/lyrics/constants/autoScroll.ts} (100%) diff --git a/src/controllers/lyrics.types.ts b/src/apps/stable/features/lyrics/constants/autoScroll.ts similarity index 100% rename from src/controllers/lyrics.types.ts rename to src/apps/stable/features/lyrics/constants/autoScroll.ts diff --git a/src/controllers/lyrics.js b/src/controllers/lyrics.js index fd1597433..74f674140 100644 --- a/src/controllers/lyrics.js +++ b/src/controllers/lyrics.js @@ -1,22 +1,21 @@ import { getLyricsApi } from '@jellyfin/sdk/lib/utils/api/lyrics-api'; import escapeHtml from 'escape-html'; +import { AutoScroll } from 'apps/stable/features/lyrics/constants/autoScroll'; import autoFocuser from 'components/autoFocuser'; import { appRouter } from 'components/router/appRouter'; import layoutManager from 'components/layoutManager'; import { playbackManager } from 'components/playback/playbackmanager'; import scrollManager from 'components/scrollManager'; import focusManager from 'components/focusManager'; - -import keyboardNavigation from 'scripts/keyboardNavigation'; import globalize from 'lib/globalize'; import { ServerConnections } from 'lib/jellyfin-apiclient'; +import keyboardNavigation from 'scripts/keyboardNavigation'; import LibraryMenu from 'scripts/libraryMenu'; import Events from 'utils/events'; import { toApi } from 'utils/jellyfin-apiclient/compat'; import '../styles/lyrics.scss'; -import { AutoScroll } from './lyrics.types'; let currentPlayer; let currentItem;