mirror of
https://git.um-react.app/um/um-react.git
synced 2025-11-28 19:43:02 +00:00
feat: add mac import option and help text
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { getFileName } from './pathHelper';
|
||||
import { SQLDatabase, SQLStatic, loadSQL } from './sqlite';
|
||||
|
||||
export interface QMAndroidKeyEntry {
|
||||
@@ -34,7 +35,7 @@ export class DatabaseKeyExtractor {
|
||||
const keys = db.exec('select file_path, ekey from `audio_file_ekey_table`')[0].values;
|
||||
return keys.map(([path, key]) => ({
|
||||
// strip dir name
|
||||
name: String(path).replace(/.+\//, ''),
|
||||
name: getFileName(String(path)),
|
||||
key: String(key),
|
||||
}));
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user