Skip to content

Commit 99f49f9

Browse files
committed
refine
1 parent e6e361e commit 99f49f9

1 file changed

Lines changed: 26 additions & 2 deletions

File tree

src/.vuepress/components/ToolBox.vue

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
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)"
@@ -24,6 +30,9 @@
2430
name: 'ToolBox',
2531
data() {
2632
return {
33+
categories: [
34+
{
35+
name: '编程工具',
2736
tools: [
2837
{
2938
title: 'Compiler Explorer',
@@ -49,6 +58,21 @@
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
},

0 commit comments

Comments
 (0)