Skip to content

Commit

Permalink
Merge pull request #466 from antvis/chore/gi-app
Browse files Browse the repository at this point in the history
WIP:add Preview Feature and Support for application hosting to G6VP site
  • Loading branch information
pomelo-nwu authored Jul 28, 2023
2 parents 30910c8 + 42ccabe commit 6e536fd
Show file tree
Hide file tree
Showing 23 changed files with 1,764 additions and 143 deletions.
29 changes: 29 additions & 0 deletions packages/gi-public-data/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
## GraphInsight Public Data

当我们在 G6VP 上配置了应用站点,想通过 G6VP 平台公开分享项目。那么我们需要给 `@antv/gi-public-data`提 PR,按照约定提供 JSON 文件即可。

## Step1:上传配置文件

访问 G6VP 官方站点 https://insight.antv.antgroup.com ,在画布中,点击「备份」,即可得到一个 `.txt`文件。通过 github pull request,放置在开源仓库 `https://github.com/antvis/G6VP/tree/master/packages/gi-public-data/app` 中,并在 `https://github.com/antvis/G6VP/tree/master/packages/gi-public-data/index.json` 中指定该配置文件所包含的应用信息

```json
[
{
//托管到 G6VP 官方站点的路由地址:https://insight.antv.antgroup.com/app/timeline
"route": "timeline",
// 配置文件放置的位置:/gi-public-data/app/timeline.json
"config": "/app/timeline.json",
// 应用名称
"title": "时序图项目",
// 应用描述
"desc": "这是一个时序图分析的案例,展示了区块链反洗钱的分析手法",
// 应用头图,可以省略
"cover": ""
}
]
```

## Step2:访问在线应用

当提的 PR 经过官方合并后,且确认发布 `@antv/gi-public-data`后,刷新官方站点,访问
`https://insight.antv.antgroup.com/open/app` 即可看到
8 changes: 8 additions & 0 deletions packages/gi-public-data/app/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[
{
"route": "social",
"config": "/app/social.json",
"desc": "社交网络展示项目",
"cover": ""
}
]
Loading

0 comments on commit 6e536fd

Please sign in to comment.