mirror of
https://github.com/kmc7468/arkvault.git
synced 2026-02-04 16:16:55 +00:00
카테고리 페이지에서의 네트워크 호출 최적화
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
details,
|
||||
});
|
||||
|
||||
const entries = $derived([
|
||||
let entries = $derived([
|
||||
...(showParentEntry ? ([{ type: "parent" }] as const) : []),
|
||||
...sortEntries(info.subDirectories.map(toEntry("directory"))),
|
||||
...sortEntries([
|
||||
|
||||
@@ -35,7 +35,13 @@
|
||||
actionButtonIcon={IconMoreVert}
|
||||
onActionButtonClick={() => action(onOpenMenuClick)}
|
||||
>
|
||||
{#await thumbnailPromise then thumbnail}
|
||||
{#await thumbnailPromise}
|
||||
<DirectoryEntryLabel
|
||||
type="file"
|
||||
name={info.name}
|
||||
subtext={formatDateTime(info.createdAt ?? info.lastModifiedAt)}
|
||||
/>
|
||||
{:then thumbnail}
|
||||
<DirectoryEntryLabel
|
||||
type="file"
|
||||
thumbnail={thumbnail ?? undefined}
|
||||
|
||||
@@ -98,7 +98,6 @@ export const requestFileUpload = async (
|
||||
export const requestEntryRename = async (entry: SelectedEntry, newName: string) => {
|
||||
if (!entry.dataKey) {
|
||||
// TODO: Error Handling
|
||||
console.log("hi");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user