From e1b62792756e349720e41055c3cd437d9531e3aa Mon Sep 17 00:00:00 2001 From: huoli4844 <161576053@qq.com> Date: Sat, 20 Apr 2024 12:40:26 +0800 Subject: [PATCH] =?UTF-8?q?update:=E8=BF=87=E6=BB=A4=E4=B8=8E=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E6=97=A0=E5=85=B3=E7=9A=84=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gi-portal/src/components/Banner/index.tsx | 28 ++++----- .../src/components/Navbar/ExportSdk.tsx | 2 +- .../gi-site/src/components/Navbar/Links.tsx | 10 ++-- .../gi-site/src/components/Navbar/SiteNav.tsx | 26 ++++---- .../src/components/Navbar/WorkbookNav.tsx | 18 +++--- packages/gi-site/src/i18n/strings/en-US.json | 2 +- packages/gi-site/src/i18n/strings/zh-CN.json | 2 +- packages/gi-site/src/layouts/SideNav.tsx | 20 +++---- packages/gi-site/src/pages/Dataset/Case.tsx | 12 ++-- packages/gi-site/src/pages/Dataset/Create.tsx | 28 +++++---- .../gi-site/src/pages/Home/GuideCards.tsx | 60 +++++++++---------- packages/gi-site/src/pages/Home/index.tsx | 32 +++++----- packages/gi-site/src/pages/Template/index.tsx | 24 ++++---- 13 files changed, 135 insertions(+), 129 deletions(-) diff --git a/packages/gi-portal/src/components/Banner/index.tsx b/packages/gi-portal/src/components/Banner/index.tsx index 5e3ca6211..5995144ee 100644 --- a/packages/gi-portal/src/components/Banner/index.tsx +++ b/packages/gi-portal/src/components/Banner/index.tsx @@ -36,20 +36,20 @@ const Banner: React.FunctionComponent = props => { {$i18n.get({ id: 'gi-portal.components.Banner.EnterTheWorkbench', dm: '进入工作台' })} - - - github - + {/**/} + {/* */} )} diff --git a/packages/gi-site/src/components/Navbar/ExportSdk.tsx b/packages/gi-site/src/components/Navbar/ExportSdk.tsx index 2f09998e4..8d8f4d9cd 100644 --- a/packages/gi-site/src/components/Navbar/ExportSdk.tsx +++ b/packages/gi-site/src/components/Navbar/ExportSdk.tsx @@ -33,7 +33,7 @@ const SdkContent = () => { message={$i18n.get( { id: 'gi-site.components.Navbar.ExportSdk.GVpSupportsCountsExport', - dm: 'G6VP 支持 {counts} 种导出模式,点击即可体验,建议 UMD 模式', + dm: '支持 {counts} 种导出模式,点击即可体验,建议 UMD 模式', }, { counts: counts }, )} diff --git a/packages/gi-site/src/components/Navbar/Links.tsx b/packages/gi-site/src/components/Navbar/Links.tsx index 43e3e65f4..c67bf0c0c 100644 --- a/packages/gi-site/src/components/Navbar/Links.tsx +++ b/packages/gi-site/src/components/Navbar/Links.tsx @@ -21,11 +21,11 @@ const Links: React.FunctionComponent = props => { {$i18n.get({ id: 'gi-site.components.Navbar.Links.Workbook', dm: '工作簿' })} -
- - {$i18n.get({ id: 'gi-site.components.Navbar.Links.OpenMarket', dm: '开放市场' })} - -
+ {/*
*/} + {/* */} + {/* {$i18n.get({ id: 'gi-site.components.Navbar.Links.OpenMarket', dm: '开放市场' })}*/} + {/* */} + {/*
*/} ); }; diff --git a/packages/gi-site/src/components/Navbar/SiteNav.tsx b/packages/gi-site/src/components/Navbar/SiteNav.tsx index 3776c6141..b81e27fe8 100644 --- a/packages/gi-site/src/components/Navbar/SiteNav.tsx +++ b/packages/gi-site/src/components/Navbar/SiteNav.tsx @@ -1,9 +1,9 @@ import * as React from 'react'; import { useHistory } from 'react-router-dom'; import DataModeCard from '../DataModeCard'; -import Github from './Github'; +// import Github from './Github'; import Links from './Links'; -import Logo from './Logo'; +// import Logo from './Logo'; import Theme from './Theme'; import UserInfo from './UserInfo'; @@ -35,21 +35,21 @@ const SiteNav: React.FunctionComponent = props => { return (
- - { - history.push('/home'); - }} - size={30} - style={{ padding: '0px 8px', cursor: 'pointer' }} - /> - + {/**/} + {/* {*/} + {/* history.push('/home');*/} + {/* }}*/} + {/* size={30}*/} + {/* style={{ padding: '0px 8px', cursor: 'pointer' }}*/} + {/* />*/} + {/**/}
- + {/**/} diff --git a/packages/gi-site/src/components/Navbar/WorkbookNav.tsx b/packages/gi-site/src/components/Navbar/WorkbookNav.tsx index 5d1ce10a8..2584d41e5 100644 --- a/packages/gi-site/src/components/Navbar/WorkbookNav.tsx +++ b/packages/gi-site/src/components/Navbar/WorkbookNav.tsx @@ -5,7 +5,7 @@ import ProjectTitle from '../ProjectTitle'; import useTheme from '../ThemeVars/useTheme'; import DatasetInfo from './DatasetInfo'; import ExportSdk from './ExportSdk'; -import Github from './Github'; +// import Github from './Github'; import Language from './Language'; import Logo from './Logo'; import Preview from './Preview'; @@ -46,13 +46,13 @@ const WorkbookBar: React.FunctionComponent = props => { return (
- { - history.push('/workbook/project'); - }} - size={30} - style={{ padding: '0px 8px', cursor: 'pointer' }} - /> + {/* {*/} + {/* history.push('/workbook/project');*/} + {/* }}*/} + {/* size={30}*/} + {/* style={{ padding: '0px 8px', cursor: 'pointer' }}*/} + {/*/>*/}
@@ -64,7 +64,7 @@ const WorkbookBar: React.FunctionComponent = props => { - + {/**/}
diff --git a/packages/gi-site/src/i18n/strings/en-US.json b/packages/gi-site/src/i18n/strings/en-US.json index 2c99a1612..0fe86ee13 100644 --- a/packages/gi-site/src/i18n/strings/en-US.json +++ b/packages/gi-site/src/i18n/strings/en-US.json @@ -83,7 +83,7 @@ "gi-site.components.FileServerEngine.utils.EdgetypeEdgeType": "EdgeType (edge's schema type)", "gi-site.components.Navbar.DatasetInfo.UnnamedDataCollection": "Unnamed data collection", "gi-site.components.Navbar.DatasetInfo.UnknownType": "Unknown type", - "gi-site.components.Navbar.ExportSdk.GVpSupportsCountsExport": "G6VP supports {counts} export modes. Click to experience them. UMD mode is recommended.", + "gi-site.components.Navbar.ExportSdk.GVpSupportsCountsExport": "supports {counts} export modes. Click to experience them. UMD mode is recommended.", "gi-site.components.Navbar.ExportSdk.Open": "Open", "gi-site.components.Navbar.ExportSdk.OpenIntegrationCanvasSdkSource": "Open Integration: canvas SDK source code export", "gi-site.components.Navbar.Github.OpenSourceIsNotEasy": "Thanks for encouraging us with GitHub Star⭐", diff --git a/packages/gi-site/src/i18n/strings/zh-CN.json b/packages/gi-site/src/i18n/strings/zh-CN.json index dec89787c..dba922517 100644 --- a/packages/gi-site/src/i18n/strings/zh-CN.json +++ b/packages/gi-site/src/i18n/strings/zh-CN.json @@ -83,7 +83,7 @@ "gi-site.components.FileServerEngine.utils.EdgetypeEdgeType": "EdgeType (边的类型)", "gi-site.components.Navbar.DatasetInfo.UnnamedDataCollection": "未命名的数据集合", "gi-site.components.Navbar.DatasetInfo.UnknownType": "未知类型", - "gi-site.components.Navbar.ExportSdk.GVpSupportsCountsExport": "G6VP 支持 {counts} 种导出模式,点击即可体验,建议 UMD 模式", + "gi-site.components.Navbar.ExportSdk.GVpSupportsCountsExport": "支持 {counts} 种导出模式,点击即可体验,建议 UMD 模式", "gi-site.components.Navbar.ExportSdk.Open": "开放", "gi-site.components.Navbar.ExportSdk.OpenIntegrationCanvasSdkSource": "开放集成:画布 SDK 源码导出", "gi-site.components.Navbar.Github.OpenSourceIsNotEasy": "开源不易,给个鼓励,加个 ⭐️ 吧!", diff --git a/packages/gi-site/src/layouts/SideNav.tsx b/packages/gi-site/src/layouts/SideNav.tsx index 2957936d8..903afc365 100644 --- a/packages/gi-site/src/layouts/SideNav.tsx +++ b/packages/gi-site/src/layouts/SideNav.tsx @@ -27,16 +27,16 @@ const DATASET_ITEMS = [ key: '/dataset/create', icon: , }, - { - label: $i18n.get({ id: 'gi-site.src.layouts.SideNav.CaseData', dm: '案例数据' }), - key: '/dataset/case', - icon: , - }, - { - label: $i18n.get({ id: 'gi-site.src.layouts.SideNav.DirectSystemConnection', dm: '系统直连' }), - key: '/dataset/SYSTEM_DIRECT_CONNECT', - icon: , - }, + // { + // label: $i18n.get({ id: 'gi-site.src.layouts.SideNav.CaseData', dm: '案例数据' }), + // key: '/dataset/case', + // icon: , + // }, + // { + // label: $i18n.get({ id: 'gi-site.src.layouts.SideNav.DirectSystemConnection', dm: '系统直连' }), + // key: '/dataset/SYSTEM_DIRECT_CONNECT', + // icon: , + // }, { label: $i18n.get({ id: 'gi-site.src.layouts.SideNav.RecycleBin', dm: '回收站' }), key: '/dataset/delete', diff --git a/packages/gi-site/src/pages/Dataset/Case.tsx b/packages/gi-site/src/pages/Dataset/Case.tsx index 79c8a7a77..fefb7b139 100644 --- a/packages/gi-site/src/pages/Dataset/Case.tsx +++ b/packages/gi-site/src/pages/Dataset/Case.tsx @@ -31,12 +31,12 @@ const Cases: React.FunctionComponent = props => { label: $i18n.get({ id: 'gi-site.pages.Dataset.Case.RelationalData', dm: '关系数据' }), children: , }, - { - key: 'geo', - icon: , - label: $i18n.get({ id: 'gi-site.pages.Dataset.Case.GeographicData', dm: '地理数据' }), - children: <>{$i18n.get({ id: 'gi-site.pages.Dataset.Case.UnderConstruction', dm: '正在建设中...' })}, - }, + // { + // key: 'geo', + // icon: , + // label: $i18n.get({ id: 'gi-site.pages.Dataset.Case.GeographicData', dm: '地理数据' }), + // children: <>{$i18n.get({ id: 'gi-site.pages.Dataset.Case.UnderConstruction', dm: '正在建设中...' })}, + // }, ]} /> diff --git a/packages/gi-site/src/pages/Dataset/Create.tsx b/packages/gi-site/src/pages/Dataset/Create.tsx index ebf9f9c7d..3c83a4392 100644 --- a/packages/gi-site/src/pages/Dataset/Create.tsx +++ b/packages/gi-site/src/pages/Dataset/Create.tsx @@ -1,4 +1,10 @@ -import { ApiOutlined, DeploymentUnitOutlined, FileExcelOutlined, GlobalOutlined } from '@ant-design/icons'; +import { + ApiOutlined, + DatabaseOutlined, + DeploymentUnitOutlined, + FileExcelOutlined, + GlobalOutlined +} from '@ant-design/icons'; import { utils } from '@antv/gi-sdk'; import type { EngineServer } from '@antv/gi-sdk/lib/typing'; import { Spin, Tabs } from 'antd'; @@ -42,21 +48,21 @@ const ITEMS = [ name: $i18n.get({ id: 'gi-site.pages.Dataset.Create.GraphDatabase', dm: '图数据库' }), icon: , }, - { - id: 'GEO', - name: $i18n.get({ id: 'gi-site.pages.Dataset.Create.GeographicDatabase', dm: '地理数据库' }), - icon: , - }, + // { + // id: 'GEO', + // name: $i18n.get({ id: 'gi-site.pages.Dataset.Create.GeographicDatabase', dm: '地理数据库' }), + // icon: , + // }, // { // id: 'DB', // name: '关系型数据库', // icon: , // }, - { - id: 'API', - name: $i18n.get({ id: 'gi-site.pages.Dataset.Create.ApiService', dm: 'API 服务' }), - icon: , - }, + // { + // id: 'API', + // name: $i18n.get({ id: 'gi-site.pages.Dataset.Create.ApiService', dm: 'API 服务' }), + // icon: , + // }, ]; const { TabPane } = Tabs; diff --git a/packages/gi-site/src/pages/Home/GuideCards.tsx b/packages/gi-site/src/pages/Home/GuideCards.tsx index 47343938e..10bc5f997 100644 --- a/packages/gi-site/src/pages/Home/GuideCards.tsx +++ b/packages/gi-site/src/pages/Home/GuideCards.tsx @@ -57,11 +57,11 @@ const ITEMS = [ icon: , name: $i18n.get({ id: 'gi-site.pages.Home.GuideCards.GraphDatabase', dm: '图数据库' }), }, - { - id: 'GEO', - icon: , - name: $i18n.get({ id: 'gi-site.pages.Home.GuideCards.GeographicDatabase', dm: '地理数据库' }), - }, + // { + // id: 'GEO', + // icon: , + // name: $i18n.get({ id: 'gi-site.pages.Home.GuideCards.GeographicDatabase', dm: '地理数据库' }), + // }, ], }, { @@ -89,31 +89,31 @@ const ITEMS = [ }, ], }, - { - name: $i18n.get({ id: 'gi-site.pages.Home.GuideCards.StepDiscoverMorePossibilities', dm: 'Step 3:发现更多可能' }), - items: [ - { - id: 'AVA', - icon: , - name: $i18n.get({ id: 'gi-site.pages.Home.GuideCards.IntelligentInterpretation', dm: '智能解读' }), - }, - { - id: 'DEVELOPMENT', - icon: , - name: $i18n.get({ id: 'gi-site.pages.Home.GuideCards.CustomDevelopment', dm: '定制开发' }), - }, - { - id: 'DEPLOY', - icon: , - name: $i18n.get({ id: 'gi-site.pages.Home.GuideCards.IntegratedDeployment', dm: '集成部署' }), - }, - { - id: 'VIP_ASSETS', - icon: , - name: $i18n.get({ id: 'gi-site.pages.Home.GuideCards.VipAssets', dm: 'VIP 资产' }), - }, - ], - }, + // { + // name: $i18n.get({ id: 'gi-site.pages.Home.GuideCards.StepDiscoverMorePossibilities', dm: 'Step 3:发现更多可能' }), + // items: [ + // { + // id: 'AVA', + // icon: , + // name: $i18n.get({ id: 'gi-site.pages.Home.GuideCards.IntelligentInterpretation', dm: '智能解读' }), + // }, + // { + // id: 'DEVELOPMENT', + // icon: , + // name: $i18n.get({ id: 'gi-site.pages.Home.GuideCards.CustomDevelopment', dm: '定制开发' }), + // }, + // { + // id: 'DEPLOY', + // icon: , + // name: $i18n.get({ id: 'gi-site.pages.Home.GuideCards.IntegratedDeployment', dm: '集成部署' }), + // }, + // { + // id: 'VIP_ASSETS', + // icon: , + // name: $i18n.get({ id: 'gi-site.pages.Home.GuideCards.VipAssets', dm: 'VIP 资产' }), + // }, + // ], + // }, ]; const GuideCards: React.FunctionComponent = props => { diff --git a/packages/gi-site/src/pages/Home/index.tsx b/packages/gi-site/src/pages/Home/index.tsx index c842bf726..07b33ca22 100644 --- a/packages/gi-site/src/pages/Home/index.tsx +++ b/packages/gi-site/src/pages/Home/index.tsx @@ -38,7 +38,7 @@ const Home = props => {
{$i18n.get({ id: 'gi-site.pages.Home.BringDataToLifeIn', - dm: '让数据栩栩如生,三步完成从「数据可视分析」到「数据产品构建」~', + dm: '欢迎您来到学员知识图谱分析端(v1.0.0)', })}
@@ -55,21 +55,21 @@ const Home = props => { />
-
- - - - - - - -
+ {/*
*/} + {/* */} + {/* */} + {/* */} + {/* */} + {/* */} + {/* */} + {/* */} + {/*
*/}
diff --git a/packages/gi-site/src/pages/Template/index.tsx b/packages/gi-site/src/pages/Template/index.tsx index a164671c9..7427180e1 100644 --- a/packages/gi-site/src/pages/Template/index.tsx +++ b/packages/gi-site/src/pages/Template/index.tsx @@ -23,18 +23,18 @@ const Templates: React.FunctionComponent = props => { label: $i18n.get({ id: 'gi-site.pages.Template.DiagramTemplate', dm: '关系图模版' }), children: , }, - { - key: 'geo', - icon: , - label: $i18n.get({ id: 'gi-site.pages.Template.MapTemplate', dm: '地图模版' }), - children: <>, - }, - { - key: 'vip', - icon: , - label: $i18n.get({ id: 'gi-site.pages.Template.VipTemplate', dm: 'VIP 模版' }), - children: <>, - }, + // { + // key: 'geo', + // icon: , + // label: $i18n.get({ id: 'gi-site.pages.Template.MapTemplate', dm: '地图模版' }), + // children: <>, + // }, + // { + // key: 'vip', + // icon: , + // label: $i18n.get({ id: 'gi-site.pages.Template.VipTemplate', dm: 'VIP 模版' }), + // children: <>, + // }, ]} /> );