Skip to content

Commit

Permalink
。。。
Browse files Browse the repository at this point in the history
  • Loading branch information
Cksheuen committed Nov 4, 2023
1 parent b796727 commit 9845f92
Show file tree
Hide file tree
Showing 4 changed files with 9,670 additions and 14,638 deletions.
23 changes: 20 additions & 3 deletions components/List.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,28 @@ const years = computed<string[]>(() => {
})
return years
})
/*
const { postDirs } = useServerFunctions()
const data = await postDirs(path)
console.log(data)
const years = computed<string[]>(() => {
const years: string[] = []
data!.forEach((element, index) => {
years[index] = element.cdate.getFullYear().toString()
if (years[index] !== years[index - 1])
icons.value[index] = true
else icons.value[index] = false
})
return years
}) */
</script>

<template>
<div relative z-1>
<ul v-if="!pending" class="list">
<ul class="list">
<!-- v-if="!pending" -->
<template v-for="(item, index) in data" :key="index">
<div v-if="icons[index]" relaive pointer-events-none z-5 h-20 flex justify-left c-gray>

Check failure on line 46 in components/List.vue

View workflow job for this annotation

GitHub Actions / typecheck

Element implicitly has an 'any' type because index expression is not of type 'number'.
<span
Expand All @@ -43,9 +60,9 @@ const years = computed<string[]>(() => {
</div>
</template>
</ul>
<div v-else>
<!-- <div v-else>
Loading...
</div>
</div> -->
</div>
</template>

Expand Down
Loading

0 comments on commit 9845f92

Please sign in to comment.