mirror of
https://github.com/Myxelium/Bridge-Multi.git
synced 2026-04-23 02:45:09 +00:00
[Library] Add Infinite Scrolling
Add infinite scrolling and fix selecting rows
This commit is contained in:
@@ -3,9 +3,9 @@ import { UpdateInfo } from 'electron-updater'
|
||||
|
||||
import { Settings } from '../Settings.js'
|
||||
import { Download, DownloadProgress } from './download.interface.js'
|
||||
import { ChartData, LibrarySearch } from './search.interface.js'
|
||||
import { ThemeColors } from './theme.interface.js'
|
||||
import { UpdateProgress } from './update.interface.js'
|
||||
import { ChartData } from './search.interface.js'
|
||||
|
||||
export interface ContextBridgeApi {
|
||||
invoke: IpcInvokeHandlers
|
||||
@@ -64,7 +64,7 @@ export interface IpcInvokeEvents {
|
||||
output: void
|
||||
}
|
||||
getChartsBySearchTerm: {
|
||||
input?: string
|
||||
input?: LibrarySearch
|
||||
output: ChartData[]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -117,6 +117,12 @@ export interface FolderIssue {
|
||||
description: string
|
||||
}
|
||||
|
||||
export interface LibrarySearch {
|
||||
searchTerm: string
|
||||
page: number
|
||||
pageSize: number
|
||||
}
|
||||
|
||||
export type ChartData = SearchResult['data'][number]
|
||||
export interface SearchResult {
|
||||
found: number
|
||||
|
||||
Reference in New Issue
Block a user