File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<template >
22 <div >
3- <div class =" card-container" >
3+ <div class =" card-container"
4+ v-for =" (category, index) in categories"
5+ :key =" index"
6+ >
7+ <h2 class =" title" >{{category.name}}</h2 >
8+ <br >
9+
410 <div
5- v-for =" (tool, index) in tools"
11+ v-for =" (tool, index) in category. tools"
612 :key =" index"
713 class =" card"
814 @click =" openLink(tool.link)"
2430 name: ' ToolBox' ,
2531 data () {
2632 return {
33+ categories: [
34+ {
35+ name: ' 编程工具' ,
2736 tools: [
2837 {
2938 title: ' Compiler Explorer' ,
4958 logo: ' https://app.diagrams.net/favicon.ico' ,
5059 link: ' https://app.diagrams.net/' ,
5160 },
61+ {
62+ title: ' Regulex' ,
63+ desc: ' 正则表达式可视化工具' ,
64+ logo: ' https://jex.im/favicon.ico' ,
65+ link: ' https://jex.im/regulex/' ,
66+ },
67+ {
68+ title: ' Visualgo' ,
69+ desc: ' 算法可视化工具' ,
70+ logo: ' https://visualgo.net/img/favicon.png' ,
71+ link: ' https://visualgo.net' ,
72+ },
73+
74+ ]
75+ }
5276 ]
5377 };
5478 },
You can’t perform that action at this time.
0 commit comments