Add database for library

This commit is contained in:
Myx
2025-03-28 04:46:29 +01:00
committed by Myx
parent c0cfca39a2
commit 35fd50c728
17 changed files with 382 additions and 80 deletions

View File

@@ -5,6 +5,7 @@ import { Settings } from '../Settings.js'
import { Download, DownloadProgress } from './download.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
@@ -50,6 +51,22 @@ export interface IpcInvokeEvents {
input: string
output: ThemeColors | null
}
addChart: {
input: ChartData
output: ChartData
}
removeChart: {
input: string
output: void
}
removeCharts: {
input: ChartData[]
output: void
}
getChartsBySearchTerm: {
input?: string
output: ChartData[]
}
}
export type IpcInvokeHandlers = {
@@ -75,6 +92,7 @@ export interface IpcToMainEmitEvents {
showFolder: string
showFile: string
scanIssues: void
removeAllCharts: void
}
export type IpcToMainEmitHandlers = {