From 75116c7c3ef34af78dfdc6614ab08803b6720c09 Mon Sep 17 00:00:00 2001 From: DrENDzZ Date: Mon, 23 Sep 2024 15:02:30 +0800 Subject: [PATCH] Endpoint Scope Note and Implement Directory Change --- src/renderer/features/lyrics/lyrics.tsx | 2 +- .../features/lyrics/queries/lyric-translate.ts} | 0 .../features/settings/components/playback/lyric-settings.tsx | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename src/{main/features/core/lyrics/translate.ts => renderer/features/lyrics/queries/lyric-translate.ts} (100%) diff --git a/src/renderer/features/lyrics/lyrics.tsx b/src/renderer/features/lyrics/lyrics.tsx index f606300bc..4189cf47b 100644 --- a/src/renderer/features/lyrics/lyrics.tsx +++ b/src/renderer/features/lyrics/lyrics.tsx @@ -5,6 +5,7 @@ import { ErrorBoundary } from 'react-error-boundary'; import { RiInformationFill } from 'react-icons/ri'; import styled from 'styled-components'; import { useSongLyricsByRemoteId, useSongLyricsBySong } from './queries/lyric-query'; +import { translateLyrics } from './queries/lyric-translate'; import { SynchronizedLyrics, SynchronizedLyricsProps } from './synchronized-lyrics'; import { Spinner, TextTitle } from '/@/renderer/components'; import { ErrorFallback } from '/@/renderer/features/action-required'; @@ -17,7 +18,6 @@ import { FullLyricsMetadata, LyricSource, LyricsOverride } from '/@/renderer/api import { LyricsActions } from '/@/renderer/features/lyrics/lyrics-actions'; import { queryKeys } from '/@/renderer/api/query-keys'; import { queryClient } from '/@/renderer/lib/react-query'; -import { translateLyrics } from '/@/main/features/core/lyrics/translate'; const ActionsContainer = styled.div` position: absolute; diff --git a/src/main/features/core/lyrics/translate.ts b/src/renderer/features/lyrics/queries/lyric-translate.ts similarity index 100% rename from src/main/features/core/lyrics/translate.ts rename to src/renderer/features/lyrics/queries/lyric-translate.ts diff --git a/src/renderer/features/settings/components/playback/lyric-settings.tsx b/src/renderer/features/settings/components/playback/lyric-settings.tsx index a23a02bcc..b9bd70eec 100644 --- a/src/renderer/features/settings/components/playback/lyric-settings.tsx +++ b/src/renderer/features/settings/components/playback/lyric-settings.tsx @@ -161,7 +161,7 @@ export const LyricSettings = () => { }} /> ), - description: t('Api key for translation'), + description: t('Api key for translation (Support global service endpoint only)'), isHidden: !isElectron(), title: t('setting.apiKey', { postProcess: 'sentenceCase' }), },