|
|
|
@ -31,7 +31,6 @@
|
|
|
|
|
|
|
|
|
|
onMount(async () => {
|
|
|
|
|
const file_lists = await fetch_things();
|
|
|
|
|
console.log(file_lists);
|
|
|
|
|
|
|
|
|
|
const thumbs_resolved = {};
|
|
|
|
|
|
|
|
|
@ -42,7 +41,6 @@
|
|
|
|
|
|
|
|
|
|
file_list = [];
|
|
|
|
|
|
|
|
|
|
console.log("uhh");
|
|
|
|
|
// Loop backwards efficiently.
|
|
|
|
|
for (let i = 0; i < file_lists.file.length; i++) {
|
|
|
|
|
const file = file_lists.file[i];
|
|
|
|
@ -56,8 +54,7 @@
|
|
|
|
|
file_list.push(file);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_list= file_list.reverse();
|
|
|
|
|
console.log({file: file_list, thumb: thumb_list});
|
|
|
|
|
thumb_list = thumb_list.reverse();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
function open_lightbox(i) {
|
|
|
|
|