Skip to content

Commit

Permalink
feat: 增加新成员 GraphInsight (#3720)
Browse files Browse the repository at this point in the history
Co-authored-by: pomelo.lcw <[email protected]>
  • Loading branch information
pomelo-nwu and pomelo.lcw authored Jun 7, 2022
1 parent 0179634 commit 9596802
Show file tree
Hide file tree
Showing 12 changed files with 162 additions and 69 deletions.
2 changes: 0 additions & 2 deletions packages/element/README-zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ DEBUG_MODE=1 npm test -- --watch ./tests/unit/algorithm/find-path-spec
- <a href='https://g6.antv.vision/zh/docs/manual/advanced/coordinate-system' target='_blank'>扩展阅读</a>
- <a href='https://g6.antv.vision/zh/docs/api/Graph' target='_blank'>API</a>


## G6 图可视化交流群

欢迎各界 G6 使用者、图可视化爱好者加入 **G6 图可视化交流群****G6 图可视化交流二群**(钉钉群,使用钉钉扫一扫加入)讨论与交流。Graphin 的使用者,爱好者请加入 **Graphin's Group Chat**
Expand All @@ -164,7 +163,6 @@ DEBUG_MODE=1 npm test -- --watch ./tests/unit/algorithm/find-path-spec

请让我们知道您要解决或贡献什么,所以在贡献之前请先提交 [issues](https://github.com/antvis/g6/issues) 描述 bug 或建议。


## License

[MIT license](./LICENSE).
1 change: 0 additions & 1 deletion packages/pc/README-zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ DEBUG_MODE=1 npm test -- --watch ./tests/unit/algorithm/find-path-spec
- <a href='https://g6.antv.vision/zh/docs/manual/advanced/coordinate-system' target='_blank'>扩展阅读</a>
- <a href='https://g6.antv.vision/zh/docs/api/Graph' target='_blank'>API</a>


## G6 图可视化交流群

欢迎各界 G6 使用者、图可视化爱好者加入 **G6 图可视化交流群****G6 图可视化交流二群**(钉钉群,使用钉钉扫一扫加入)讨论与交流。Graphin 的使用者,爱好者请加入 **Graphin's Group Chat**
Expand Down
2 changes: 0 additions & 2 deletions packages/site/docs/manual/introduction.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ Graphin 取名意为 Graph Insight(图的分析洞察),是一个基于 G6
- <a href='https://github.com/dappsnation/ng-antv' target='_blank'>基于 G6 和 Angular 实现的编辑器</a>
- <a href='https://github.com/claudewowo/welabx-g6' target='_blank'>基于 G6 和 Vue 的流程图编辑器</a>


## G6 图可视化交流群

欢迎各界 G6 使用者、图可视化爱好者加入 **G6 图可视化交流群****G6 图可视化交流二群**(钉钉群,使用钉钉扫一扫加入)讨论与交流。Graphin 的使用者,爱好者请加入 **Graphin's Group Chat**
Expand All @@ -144,7 +143,6 @@ Graphin 取名意为 Graph Insight(图的分析洞察),是一个基于 G6

请让我们知道您要解决或贡献什么,所以在贡献之前请先提交 <a href='https://github.com/antvis/g6/issues' target='_blank'>issues</a> 描述 bug 或建议。


## License

<a href='https://github.com/antvis/g6/blob/master/LICENSE' target='_blank'>MIT license</a>。
23 changes: 23 additions & 0 deletions packages/site/examples/case/graphDemos/demo/graphinsight.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
const container = document.getElementById('container');

const iframe = document.createElement('iframe');
iframe.id = 'graphinsight-bank-demo';

iframe.src =
'https://codesandbox.io/embed/condescending-platform-mt37im?fontsize=14&hidenavigation=1&theme=dark';
iframe.style =
'width:100%; height:100%; min-height:500px; border:0; border-radius: 4px; overflow:hidden;';
iframe.allow =
'accelerometer; ambient-light-sensor; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment; usb; vr; xr-spatial-tracking';
iframe.sandbox =
'allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts';
iframe.title = 'condescending-graphinsight-bank';

const info = document.createElement('div');
info.innerHTML = `
<p>友情提示,如果CodeSandbox打开比较慢,可以访问 <a href='https://graphinsight.antgroup.com/#/workspace?type=case' target='_blank'>「GraphInsight」</a> 在线查看,
它是 AntV 团队基于 G6 研发的一款图分析应用低代码搭建工具与分析洞察产品,它既可以帮助用户在线实现关系数据的可视化,也可帮助开发者一键导出图画布SDK,极大提高研发效率
</p>
`;
container.appendChild(info);
container.appendChild(iframe);
10 changes: 9 additions & 1 deletion packages/site/examples/case/graphDemos/demo/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
"en": "Category"
},
"demos": [
{
"filename": "graphinsight.js",
"title": {
"zh": "GraphInsight 案例",
"en": "GraphInsight Case"
},
"screenshot": "https://gw.alipayobjects.com/mdn/rms_0d75e8/afts/img/A*eXL9T6xqPlUAAAAAAAAAAAAAARQnAQ"
},
{
"filename": "largeGraph.js",
"title": {
Expand Down Expand Up @@ -61,4 +69,4 @@
"screenshot": "https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*hk1QTqVIHnIAAAAAAAAAAAAAARQnAQ"
}
]
}
}
14 changes: 7 additions & 7 deletions packages/site/gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,6 @@ module.exports = {
en: 'Design System',
},
},
{
slug: 'graphmarker',
title: {
zh: '交互式文档',
en: 'GraphMarker',
},
},
{
slug: 'docs/manual/introduction',
title: {
Expand All @@ -50,6 +43,13 @@ module.exports = {
en: 'API',
},
},
{
slug: 'tools',
title: {
zh: '在线工具',
en: 'online tools',
},
},
{
slug: 'examples',
title: {
Expand Down
3 changes: 2 additions & 1 deletion packages/site/site/locale.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,6 @@
"绿点标记:新增节点": "Green Dot: Newly Added Node",
"相较于上一次结果,右上方小绿点标记了\n本次更新结果中新增的聚合节点或真实节点": "The green dot on the right-top of the node indicates that \nthe node is newly added compared to last result",
"Graphin 是一款基于 G6 封装的 React 分析组件库,专注在关系可视分析领域,简单高效,开箱即用。": "Graphin stands for Graph Insight. It's a toolkit based on G6 and React, that focuses on relational visual analysis. It's simple, efficient, out of the box.",
"Graphin 图可视分析组件": "Graphin: Graph Insight"
"Graphin 图可视分析组件": "Graphin: Graph Insight",
"G6 家族新成员:GraphInsight": "New to the G6 family: GraphInsight"
}
3 changes: 0 additions & 3 deletions packages/site/site/pages/graphmarker.en.tsx

This file was deleted.

37 changes: 0 additions & 37 deletions packages/site/site/pages/graphmarker.zh.tsx

This file was deleted.

26 changes: 11 additions & 15 deletions packages/site/site/pages/index.zh.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React from 'react';
import SEO from '@antv/gatsby-theme-antv/site/components/Seo';
import { useTranslation } from 'react-i18next';
import Banner from '@antv/gatsby-theme-antv/site/components/Banner';
import Cases from '@antv/gatsby-theme-antv/site/components/Cases';
import Companies from '@antv/gatsby-theme-antv/site/components/Companies';
import Features from '@antv/gatsby-theme-antv/site/components/Features';
import Cases from '@antv/gatsby-theme-antv/site/components/Cases';
import SEO from '@antv/gatsby-theme-antv/site/components/Seo';
import React from 'react';
import { useTranslation } from 'react-i18next';
import './index.less';

const IndexPage = () => {
Expand All @@ -19,20 +19,17 @@ const IndexPage = () => {

const features = [
{
icon:
'https://gw.alipayobjects.com/zos/basement_prod/0e03c123-031b-48ed-9050-4ee18c903e94.svg',
icon: 'https://gw.alipayobjects.com/zos/basement_prod/0e03c123-031b-48ed-9050-4ee18c903e94.svg',
title: t('专注关系,完备基建'),
description: t('G6 是一个专注于关系数据的、完备的图可视化引擎'),
},
{
icon:
'https://gw.alipayobjects.com/zos/basement_prod/42d17359-8607-4227-af93-7509eabb3163.svg',
icon: 'https://gw.alipayobjects.com/zos/basement_prod/42d17359-8607-4227-af93-7509eabb3163.svg',
title: t('领域深钻,顶尖方案'),
description: t('扎根实际具体业务场景、结合业界领先成果,沉淀顶尖解决方案'),
},
{
icon:
'https://gw.alipayobjects.com/zos/basement_prod/acd8d1f3-d256-42b7-8340-27e5d5fde92c.svg',
icon: 'https://gw.alipayobjects.com/zos/basement_prod/acd8d1f3-d256-42b7-8340-27e5d5fde92c.svg',
title: t('简单易用,扩展灵活'),
description: t('精心设计的简单、灵活、高可拓展的接口,满足你的无限创意'),
},
Expand Down Expand Up @@ -75,8 +72,7 @@ const IndexPage = () => {

const cases = [
{
logo:
'https://camo.githubusercontent.com/53886f0e306c9f01c96dee2edca3992830b7cbb769118029a7e5d677deb7e67e/68747470733a2f2f67772e616c697061796f626a656374732e636f6d2f7a6f732f616e7466696e63646e2f306234487a4f63454a592f4772617068696e2e737667',
logo: 'https://camo.githubusercontent.com/53886f0e306c9f01c96dee2edca3992830b7cbb769118029a7e5d677deb7e67e/68747470733a2f2f67772e616c697061796f626a656374732e636f6d2f7a6f732f616e7466696e63646e2f306234487a4f63454a592f4772617068696e2e737667',
title: t('Graphin 图可视分析组件'),
isAppLogo: true,
description: t(
Expand Down Expand Up @@ -136,9 +132,9 @@ const IndexPage = () => {
const insNotifications = [
{
type: t('推荐'),
title: t('图可视分析如此简单'),
date: '2020.11.22',
link: 'https://www.yuque.com/antv/g6-blog/zgb5d7',
title: t('G6 家族新成员:GraphInsight'),
date: '2022.06.06',
link: 'https://github.com/antvis/GraphInsight',
},
{
type: t('推荐'),
Expand Down
3 changes: 3 additions & 0 deletions packages/site/site/pages/tools.en.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import Tools from './tools.zh';

export default Tools;
107 changes: 107 additions & 0 deletions packages/site/site/pages/tools.zh.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
import SEO from '@antv/gatsby-theme-antv/site/components/Seo';
import { Button, Card, Col, Row } from 'antd';
import React from 'react';
import { useTranslation } from 'react-i18next';

const Tools = () => {
const { t, i18n } = useTranslation();
return (
<>
<SEO title={t('蚂蚁数据可视化')} lang={i18n.language} />

<div
style={{
margin: '20px auto',
padding: '0',
width: 'calc(100vw - 96px)',
}}
>
<Row gutter={24}>
<Col span={16}>
<Card
title={'低代码搭建平台:GraphInsight'}
extra={
<Button
type="primary"
onClick={() => {
window.open('https://graphinsight.antgroup.com/', '_blank');
}}
>
点击进入
</Button>
}
>
GraphInsight 是 AntV 团队于 2022.06.06
对外开放的一款图分析应用的低代码搭建平台。用户无需代码开发,即可在线完成关系数据的通道映射,自主布局,探索分析。基于
G6 强大图可视分析能力,以及 Graphin
的组件组合能力,用户还可一键导出配置代码,生成SDK,集成到业务系统中,大大降
低初始研发门槛 与 后续维护成本。
<img
style={{
display: 'block',
}}
width="100%"
src="https://gw.alipayobjects.com/mdn/rms_0d75e8/afts/img/A*eXL9T6xqPlUAAAAAAAAAAAAAARQnAQ"
alt=""
/>
</Card>
</Col>
<Col span={8}>
<Card
title="交互式文档工具:GraphMaker"
extra={
<Button
onClick={() => {
window.open('https://render.mybank.cn/p/c/17sfi50vhu80', '_blank');
}}
>
点击进入
</Button>
}
>
GraphMaker 是 2020.11.22 开放的一款交互式文档,用户可以在该网站上,所见即所得地配置 G6
的节点,边,布局等参数的配置,并支持一键导出代码,极大提高了 G6 的研发效率。
<img
style={{
display: 'block',
}}
width="100%"
src="https://gw.alipayobjects.com/mdn/rms_0d75e8/afts/img/A*zseJQJAnvJQAAAAAAAAAAAAAARQnAQ"
alt=""
/>
</Card>
</Col>
</Row>

{/* <iframe
src="https://graphinsight.antgroup.com"
title="Tools"
style={{
width: '100%',
height: '80%',
border: 0,
borderRadius: '4px',
overflow: 'hidden',
}}
allow="geolocation; microphone; camera; midi; vr; accelerometer; gyroscope; payment; ambient-light-sensor; encrypted-media; usb"
sandbox="allow-downloads allow-modals allow-forms allow-popups allow-scripts allow-same-origin"
></iframe> */}
{/* <iframe
src="https://render.mybank.cn/p/c/17sfi50vhu80"
title="Tools"
style={{
width: '100%',
height: '50%',
border: 0,
borderRadius: '4px',
overflow: 'hidden',
}}
allow="geolocation; microphone; camera; midi; vr; accelerometer; gyroscope; payment; ambient-light-sensor; encrypted-media; usb"
sandbox="allow-downloads allow-modals allow-forms allow-popups allow-scripts allow-same-origin"
/> */}
</div>
</>
);
};

export default Tools;

0 comments on commit 9596802

Please sign in to comment.