客户端 Vue 组件,通过 GET 请求读取 JSON 数据
vuejs-json-dashboardify — Vue 后台模板
作者 alphagov
一个客户端 Vue 组件,从 GET 接口读取 JSON 并动态渲染为 GovUK Frontend 模板,包含容器、网格行、标题、正文与表格,用于静态 S3 托管服务器上的动态内容展示。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
目前有 1 张原始预览,可打开完整图片查看设计细节。
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
按 GovUK Frontend 模板动态渲染容器、网格行、标题、正文与表格
面向静态 S3 托管服务器,用于在静态页面上呈现动态内容
JSON 顶层组件必须是 div,可用元素见仓库 example.json
提供 Docker 与本地两种运行方式,并含基于 nightwatch 的端到端测试
模板详细介绍
vuejs-json-dashboardify 由 alphagov 发布,采用 MIT 许可。它提供一个客户端 VueJS 组件,通过 GET 请求获取 JSON 数据,再按 GovUK Frontend 模板结构动态渲染页面,支持容器、网格行、标题、正文和表格等元素。项目定位是配合静态 S3 托管的服务器,让原本静态的页面呈现来自 JSON 接口的动态内容。
使用方式是在页面中引入组件标签,指定 group(页面内唯一)与 source(JSON 地址),例如 <json-dashboardify-url-element group="unique-within-page" source="/example.json">。JSON 中可用的 HTML 元素可参考仓库内的 example.json,唯一限制是 JSON 顶层组件必须是某种 div。
本地运行可通过 docker-compose 构建并启动 demo 服务,访问 http://localhost:8000;也可不用 Docker,先 npm install,再用 gulp 加载 govuk-frontend 并构建 CSS,最后用 http-server 在 127.0.0.1:8000 提供页面。项目还包含基于 nightwatch 的端到端测试,可通过 docker-compose 运行。README 中作者说明当前实现仍较粗糙,并计划把 pe-charts 的 table-chart 改造成可内联使用的正式 VueJS 组件。
适合你的项目吗?
适用场景
- 在静态 S3 托管的页面上展示来自 JSON 接口的动态仪表盘内容
- 需要按 GovUK Frontend 结构生成容器、网格、标题与表格的页面
- 以客户端方式渲染外部 JSON 数据,避免服务端模板渲染
适合人群
- 使用 GovUK Frontend 并需要动态 JSON 渲染的项目
- 已有静态 S3 托管环境、希望前端读取 JSON 的团队
- 需要快速搭建演示仪表盘页面的开发者
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
Docker 方式:docker-compose build,然后 docker-compose run --service-ports demo bash -c "npm run server",访问 http://localhost:8000
- 2
非 Docker 方式:先 npm install,再用 gulp 加载 govuk-frontend 并构建 CSS,最后用 http-server . -a 127.0.0.1 -p 8000 启动
- 3
端到端测试:docker-compose run demo bash -c "npm run server & npm run e2e"
- 4
页面中通过 <json-dashboardify-url-element group="unique-within-page" source="/example.json"> 调用组件,group 需在页面内唯一
- 5
JSON 顶层组件必须是 div,可用元素参考仓库 example.json
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
- JSON 数据的顶层组件必须是 div 元素,否则无法渲染;这是使用该组件时对输入 JSON 结构的硬性限制。
- 项目定位为配合静态 S3 托管服务器渲染动态内容,使用场景受此约束。
- 作者自述当前实现较为粗糙,属于早期/实验性状态,不宜视为生产就绪。
查看原文依据
Permission is hereby granted, free of charge
许可证原文
The only restriction is that the top level component in the JSON has to be a div of some sort.
README 原文
This is to be used to render dynamic content from a static S3-backed server.
README 原文
https://github.com/alphagov/vuejs-json-dashboardify/blob/main/LICENSEhttps://github.com/alphagov/vuejs-json-dashboardify/blob/main/README.mdThis is all a bit clumsy at the moment.
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-12。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料一般 · 56 / 100
- 技术栈
- Vue
- 网站类型
- 后台
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2021-09-16
- 截图检查日期
- 2026-10-12
目前没有记录演示链接。请依据仓库说明在本地评估;仅凭截图无法确认交互行为。
目录记录的主要技术栈是 Vue。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
审核声明: [email protected] · 2026-10-13
查看当时使用的来源资料
SHA-256: e37e5b111f169ed4d44e92c9a8c513e4220a7b87fc0a3cf05a780dfe24107609
2026-10-12T11:36:01.828Z
来源文件 / 仓库# vuejs-json-dashboardify
Create a client-side VueJS component which reads JSON from a GET endpoint and renders into the GovUK Frontend template dynamically including containers, grid rows headers, content and tables. This is to be used to render dynamic content from a static S3-backed server.

## Setup
You can run locally in docker as follows:
```
docker-compose build
docker-compose run --service-ports demo bash -c "npm run server"
# The demo page should be available on http://localhost:8000
```
Alternatively you can run locally without docker
`npm install` and then
`gulp` to load the govuk-frontend and build the css.
Then you can run the code with an npm http server
`http-server . -a 127.0.0.1 -p 8000`
## End-to-end tests
I've made a start on some end-to-end tests using nightwatch.
You can run the tests as follows:
```
docker-compose run demo bash -c "npm run server & npm run e2e"
```
## Invoke the component
Once you've got all the scripts loading correctly you can
use the component by just including something like this
in your page.
You can see the HTML elements supported in the example file
[example.json](example.json). The only restriction is that
the top level component in the JSON has to be a div of some
sort.
```HTML
<json-dashboardify-url-element
group="unique-within-page"
source="/example.json">
</json-dashboardify-url-element>
```
## TODO
This is all a bit clumsy at the moment.
I think the next steps are to turn the pe-charts table-chart
into a proper VueJS component so it can be included inline.
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

vuestic-admin
Vuestic Admin is an open-source, ready-to-use admin template suite designed for rapid development, easy mainte…
Vue · 后台

v3-admin-vite
v3-admin-vite 是一个主打 AI 编程友好体验的 Vue3 后台管理模板,基于 Vue3、Vite、TypeScript、Element Plus 构建。
Vue · 后台

vue-typescript-admin-template
vue-typescript-admin-template 是一套面向后台管理界面的前端解决方案,基于 Vue 2.6、TypeScript 和 Element UI 构建。
Vue · 后台

vue-antd-admin
Vue Antd Admin 是 Ant Design Pro 的 Vue 实现版本,目标是为中后台项目提供一套开箱即用的前端与设计解决方案。
Vue · 后台

coreui-free-vue-admin-template
Free Vue Admin & Dashboard Template Built for AI-Assisted Development
Vue · 后台

nova-admin
A simple and flexible admin template based on Vue3, Vite, TypeScript, NaiveUI
Vue · 后台
