Skip to content

Commit

Permalink
add content to the vis-tools page
Browse files Browse the repository at this point in the history
  • Loading branch information
VicaYang committed May 15, 2024
1 parent 4c7e033 commit 734d27d
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 3 deletions.
9 changes: 9 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,15 @@
"contributions": [
"doc"
]
},
{
"login": "VicaYang",
"name": "Vica",
"avatar_url": "https://avatars.githubusercontent.com/u/22126501?v=4",
"profile": "https://github.com/VicaYang",
"contributions": [
"doc"
]
}
],
"contributorTemplate": "<a href=\"<%= contributor.profile %>\"><img src=\"<%= contributor.avatar_url %>\" width=\"<%= options.imageSize %>px;\" alt=\"\"/><br /><sub><b><%= contributor.name %></b></sub></a>",
Expand Down
3 changes: 2 additions & 1 deletion messages/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@
},
"vis-tools": {
"title": "可视化工具大全",
"desc": ""
"desc": "",
"tool": "开源工具"
},
"vis-websites": {
"title": "可视化网站推荐",
Expand Down
10 changes: 10 additions & 0 deletions src/app/[locale]/(docs)/vis-tools/data.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { ResourceItem } from "@/lib/data_types";

export const vistool: ResourceItem[] = [
{ id: "D3", name: "D3", url: "https://d3js.org/", desc: "适合做具有复杂的动画、交互的可视化" },
{ id: "Apache ECharts", name: "Apache ECharts", url: "https://echarts.apache.org/", desc: "适合做静态展示的图表" },
{ id: "Vega", name: "Vega", url: "https://vega.github.io/vega/", desc: "用声明式语言创建可视化图表" },
{ id: "Vega-Lite", name: "Vega-Lite", url: "https://vega.github.io/vega-lite/", desc: "更简洁易用的Vega" },
{ id: "Observable", name: "Observable", url: "https://observablehq.com/", desc: "在线创建基于js的可视化界面" },
{ id: "Tableau Public", name: "Tableau Public", url: "https://public.tableau.com/", desc: "免费的Tableau工具" },
]
7 changes: 5 additions & 2 deletions src/app/[locale]/(docs)/vis-tools/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { CollectionLayout } from "@/components/SimpleLayout";
import { getTranslations } from "next-intl/server";
import { SectionTitle } from "@/components/collection/SectionTitle";
import { useTranslations } from "next-intl";
import { ListView } from "@/components/collection/ListView";
import { vistool } from "@/app/[locale]/(docs)/vis-tools/data";


export default function Page() {
Expand All @@ -11,10 +13,11 @@ export default function Page() {
<CollectionLayout
title={t("title")}
intro={t("desc")}
authors={["VicaYang"]}
>

<SectionTitle title={t("title")} />

<SectionTitle title={t("tool")} />
<ListView data={vistool} />
</CollectionLayout>
)
}
Expand Down

0 comments on commit 734d27d

Please sign in to comment.