mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 02:13:33 +00:00
Lyrics Improvements
- Make the settings text actually consistent with behavior - Add metadata (artist/track name) for fetched tracks - Add ability to remove incorrectly fetched lyric - Add lyric fetch cache; save the last 10 fetches - Add ability to change offset in full screen, add more comments
This commit is contained in:
parent
9622cd346c
commit
007a099951
11 changed files with 314 additions and 61 deletions
9
src/renderer/preload.d.ts
vendored
9
src/renderer/preload.d.ts
vendored
|
|
@ -1,6 +1,6 @@
|
|||
import { IpcRendererEvent } from 'electron';
|
||||
import { PlayerData, PlayerState } from './store';
|
||||
import { QueueSong } from '/@/renderer/api/types';
|
||||
import { InternetProviderLyricResponse, QueueSong } from '/@/renderer/api/types';
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
|
|
@ -10,7 +10,12 @@ declare global {
|
|||
ipcRenderer: {
|
||||
APP_RESTART(): void;
|
||||
LYRIC_FETCH(data: QueueSong): void;
|
||||
LYRIC_GET(event: IpcRendererEvent, songName: string, source: string, lyric: string): void;
|
||||
LYRIC_GET(
|
||||
event: IpcRendererEvent,
|
||||
songName: string,
|
||||
source: string,
|
||||
lyric: InternetProviderLyricResponse,
|
||||
): void;
|
||||
PLAYER_AUTO_NEXT(data: PlayerData): void;
|
||||
PLAYER_CURRENT_TIME(): void;
|
||||
PLAYER_GET_TIME(): number | undefined;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue