File tree Expand file tree Collapse file tree
packages/app/src/components/page/editor/vault Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<template >
2- <section class =" flex flex-col gap-3 w-60" >
3- <div v-for =" (project, key) in projects" :key =" key" class =" flex-col w-full gap-2 " >
4- <div class =" flex gap-2 w-full" >
5- <p >$ {{ project.title }}</p >
6- <p >$ {{ project.type }}</p >
2+ <section class =" flex font-poppins flex-col gap-3 w-60 overflow-y-auto " >
3+ <div v-for =" (project, key) in projects" :key =" key" class =" flex-col p-2 text-white w-full transition-colors gap-5 hover:bg-theme-background-3 " >
4+ <div class =" flex gap-5 w-full" >
5+ <p class = " truncate " > {{ project.title }}</p >
6+ <p class = " truncate " > {{ project.size }}</p >
77 </div >
88 <div class =" flex justify-between w-full" >
9- <p >$ {{ project.level }}</p >
10- <IconVaultOpen class="wb-icon">$ {{ t('editor.vault.load') }}</IconVaultOpen >
9+ <p >Level {{ project.level }}</p >
10+ <IconVaultOpen class="wb-icon w-5 h-5"> {{ t('editor.vault.load') }}</IconVaultOpen >
1111 </div >
1212 </div >
1313 </section >
@@ -24,5 +24,18 @@ const AUTH = useAuthStore()
2424const backend = useBackend ()
2525const { t } = useI18n ()
2626
27- const projects = ref <any []>([])
27+ // TODO: Backend here
28+ const projects = ref <any []>([{
29+ title: ' A Test' ,
30+ // Maybe background
31+ background: ' base64' ,
32+ size: ' 8.12KiB' ,
33+ level: 2
34+ }, {
35+ title: ' A Test' ,
36+ // Maybe background
37+ background: ' base64' ,
38+ size: ' 8.12KiB' ,
39+ level: 2
40+ }])
2841 </script >
You can’t perform that action at this time.
0 commit comments