mirror of
https://git.um-react.app/um/um-react.git
synced 2025-11-28 11:33:02 +00:00
feat: kwm v2 key import ui
This commit is contained in:
@@ -3,7 +3,7 @@ import { SQLDatabase, SQLStatic, loadSQL } from './sqlite';
|
||||
|
||||
export interface QMAndroidKeyEntry {
|
||||
name: string;
|
||||
key: string;
|
||||
ekey: string;
|
||||
}
|
||||
|
||||
export class DatabaseKeyExtractor {
|
||||
@@ -33,10 +33,10 @@ export class DatabaseKeyExtractor {
|
||||
}
|
||||
|
||||
const keys = db.exec('select file_path, ekey from `audio_file_ekey_table`')[0].values;
|
||||
return keys.map(([path, key]) => ({
|
||||
return keys.map(([path, ekey]) => ({
|
||||
// strip dir name
|
||||
name: getFileName(String(path)),
|
||||
key: String(key),
|
||||
ekey: String(ekey),
|
||||
}));
|
||||
} finally {
|
||||
db?.close();
|
||||
|
||||
Reference in New Issue
Block a user