fixing projects ui

This commit is contained in:
ngn
2023-06-18 19:31:37 +03:00
parent 044675dd93
commit ad6b29be01
3 changed files with 23 additions and 21 deletions

View File

@@ -53,28 +53,30 @@ export default {
list: []
}
for(let i = 0; i<all.length; i++){
if(project["list"].length!==3)
project["list"].push({
name: all[i]["name"],
desc: all[i]["desc"],
click: all[i]["click"],
url: `/l/${all[i]["name"].toLowerCase().replaceAll(" ", "")}`
})
else{
projects.push(project)
pcounter += 1
project = {
id: pcounter,
list: []
}
if(project["list"].length===3){
projects.push(project)
pcounter += 1
project = {
id: pcounter,
list: []
}
}
if(i===all.length-1){
projects.push(project)
}
project["list"].push({
name: all[i]["name"],
desc: all[i]["desc"],
click: all[i]["click"],
url: `/l/${all[i]["name"]
.toLowerCase()
.replaceAll(" ", "")}`
})
if(i===all.length-1){
projects.push(project)
}
}
this.projects = projects
console.log(this.projects)
}
}
</script>