mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 17:26:38 +01:00
refactoring - moving stuff to separate files
This commit is contained in:
@@ -14,6 +14,21 @@ function error(str) {
|
||||
error.fadeOut(10000);
|
||||
}
|
||||
|
||||
function getAutocompleteItems(notes) {
|
||||
const autocompleteItems = [];
|
||||
|
||||
for (const noteId of notes) {
|
||||
const fullName = getFullName(noteId);
|
||||
|
||||
autocompleteItems.push({
|
||||
value: fullName + " (" + noteId + ")",
|
||||
label: fullName
|
||||
});
|
||||
}
|
||||
|
||||
return autocompleteItems;
|
||||
}
|
||||
|
||||
function uint8ToBase64(u8Arr) {
|
||||
const CHUNK_SIZE = 0x8000; //arbitrary number
|
||||
const length = u8Arr.length;
|
||||
|
||||
Reference in New Issue
Block a user