[READ-ONLY] Mirror of https://github.com/probablykasper/ferrum. Music library app for Mac, Linux and Windows ferrum.kasper.space
electron linux macos music music-library music-player napi windows
0

Configure Feed

Select the types of activity you want to include in your feed.

Define some types

Kasper (Jun 5, 2022, 8:48 AM +0200) acb391b9 da918135

+8 -4
+1 -1
src/App.svelte
··· 28 28 pageStatusWarnings += warning + '\n' 29 29 } 30 30 ) 31 - if (result.err) pageStatusErr = result.err.stack 31 + if (result.err) pageStatusErr = String(result.err.stack) 32 32 else if (result.cancelled) pageStatus = '' 33 33 else pageStatus = 'Done. Restart Ferrum' 34 34 }
+7 -3
src/lib/window.ts
··· 7 7 const invoke = ipcRenderer.invoke 8 8 9 9 type addon = { 10 - copy_file: Function 11 - atomic_file_save: Function 10 + copy_file: (from: string, to: string) => void 11 + atomic_file_save: (filePath: string, content: string) => void 12 12 load_data: (isDev: boolean) => Data 13 13 load_data_async: (isDev: boolean) => Promise<Data> 14 14 } ··· 16 16 interface Window { 17 17 addon: addon 18 18 toFileUrl: (...args: string[]) => string 19 - iTunesImport: Function 19 + iTunesImport: ( 20 + paths: { library_dir: string; tracks_dir: string; library_json: string }, 21 + statusHandler: (status: string) => void, 22 + warningHandler: (status: string) => void 23 + ) => { err: Error | null; cancelled: boolean | null | undefined } 20 24 } 21 25 } 22 26