This is an automated email from the ASF dual-hosted git repository.

loogn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/geaflow-website.git


The following commit(s) were added to refs/heads/main by this push:
     new d9c148b  fix: content security policy (#3)
d9c148b is described below

commit d9c148b85066f5f5f30f56653922ad4df554f3a0
Author: lkm_cc <[email protected]>
AuthorDate: Sat Oct 11 11:56:13 2025 +0800

    fix: content security policy (#3)
    
    * Update README.md
    
    * feat: config
    
    * feat: deploy
    
    * feat: add blog/docs
    
    * feat: add i18n/community
    
    * feat: add docs
    
    * feat: page
    
    * feat: add gitignore
    
    * fix: update deploy
    
    * fix: update README
    
    * fix: error display
    
    * fix: error display
    
    * fix: update guide
    
    * fix: update basePath
    
    * fix:  Content Security Policy
---
 .DS_Store                                          | Bin 8196 -> 10244 bytes
 src/constants/index.ts                             |  52 +++++++++++++++++++++
 src/css/custom.css                                 |   2 +-
 src/pages/Home/components/Architecture/index.tsx   |   2 +-
 src/pages/Home/components/Banner/index.tsx         |   5 +-
 src/pages/Home/components/Repo/index.tsx           |  37 ++++++++-------
 static/img/BG.png                                  | Bin 0 -> 1707754 bytes
 static/img/icon.png                                | Bin 0 -> 148245 bytes
 static/img/structure.png                           | Bin 0 -> 642268 bytes
 versions/version-current/docs-cn/source/1.guide.md |  10 ++--
 versions/version-current/docs-en/source/1.guide.md |  10 ++--
 versions/version-current/static/img/developers.png | Bin 0 -> 141599 bytes
 12 files changed, 87 insertions(+), 31 deletions(-)

diff --git a/.DS_Store b/.DS_Store
index 4d73fb4..8e13605 100644
Binary files a/.DS_Store and b/.DS_Store differ
diff --git a/src/constants/index.ts b/src/constants/index.ts
index a2d5486..a6f6ffd 100644
--- a/src/constants/index.ts
+++ b/src/constants/index.ts
@@ -48,3 +48,55 @@ export const LANGUAGE_ICON_COLOR = {
   'C++': '#f34b7d',
   'Vue': '#41b883'
 }
+
+
+export const REPOS_DATA = [
+  {
+    description: 'TuGraph: A High Performance Graph Database.',
+    stargazers_count: 1645,
+    forks_count: 209,
+    language: 'C++',
+    visibility: 'public',
+    repo: 'tugraph-db',
+  },
+  {
+    description: 'Chat2Graph: Graph Native Agentic System.',
+    stargazers_count: 355,
+    forks_count: 42,
+    language: 'Python',
+    visibility: 'public',
+    repo: 'chat2graph',
+  },
+  {
+    description: 'Deep Insight into Open Source Graph on GitHub.',
+    stargazers_count: 75,
+    forks_count: 15,
+    language: 'Python',
+    visibility: 'public',
+    repo: 'OSGraph',
+  },
+  {
+    description: 'Fine-Tuning Dataset Auto-Generation for Graph Query 
Languages.',
+    stargazers_count: 78,
+    forks_count: 15,
+    language: 'Python',
+    visibility: 'public',
+    repo: 'Awesome-Text2GQL',
+  },
+  {
+    description: '',
+    stargazers_count: 20,
+    forks_count: 14,
+    language: 'Rust',
+    visibility: 'public',
+    repo: 'miniGU',
+  },
+  {
+    description: 'TuGraph Community',
+    stargazers_count: 2,
+    forks_count: 0,
+    language: '',
+    visibility: 'public',
+    repo: 'community',
+  },
+]
diff --git a/src/css/custom.css b/src/css/custom.css
index 289b219..611089d 100644
--- a/src/css/custom.css
+++ b/src/css/custom.css
@@ -80,7 +80,7 @@
   font-weight: 400;
 }
 
-.menu__list {
+.menu > .menu__list {
   padding-top: 16px;
 }
 
diff --git a/src/pages/Home/components/Architecture/index.tsx 
b/src/pages/Home/components/Architecture/index.tsx
index 94c0aa6..06cae3c 100644
--- a/src/pages/Home/components/Architecture/index.tsx
+++ b/src/pages/Home/components/Architecture/index.tsx
@@ -13,7 +13,7 @@ const Architecture = () => {
       <div className={styles.maxContainer}>
         <img
           className={styles.ecosystemImage}
-          
src={'https://mdn.alipayobjects.com/huamei_qcdryc/afts/img/A*2TuZSYCq8egAAAAAAAAAAAAADgOBAQ/original'}
+          src={'/img/structure.png'}
           alt="ecosystem"
         />
       </div>
diff --git a/src/pages/Home/components/Banner/index.tsx 
b/src/pages/Home/components/Banner/index.tsx
index 3564afc..9b72c11 100644
--- a/src/pages/Home/components/Banner/index.tsx
+++ b/src/pages/Home/components/Banner/index.tsx
@@ -8,7 +8,7 @@ import { historyPushLinkAt } from '@site/src/util/link';
 const Banner = () => {
   const history = useHistory()
   let background =
-    
'url(https://mdn.alipayobjects.com/huamei_p63okt/afts/img/qm9aTJHOJGIAAAAAAAAAAAAADh8WAQFr/original)';
+    'url(/img/BG.png)';
 
   const bannerDetail = {
     title: 'Apache GeaFlow',
@@ -35,7 +35,6 @@ const Banner = () => {
         </div>
       </FadeInSection>
     ),
-    icon: 
'https://mdn.alipayobjects.com/huamei_p63okt/afts/img/9VjfR7exPyQAAAAAAAAAAAAADh8WAQFr/original',
   }
 
   return (
@@ -55,7 +54,7 @@ const Banner = () => {
           </FadeInSection>
           {bannerDetail?.btn}
         </div>
-        <img 
src='https://mdn.alipayobjects.com/huamei_p63okt/afts/img/9VjfR7exPyQAAAAAAAAAAAAADh8WAQFr/original'
 alt="" className={styles.icon} />
+        <img src='/img/icon.png' alt="" className={styles.icon} />
       </div>
     </div>
   );
diff --git a/src/pages/Home/components/Repo/index.tsx 
b/src/pages/Home/components/Repo/index.tsx
index 65bb7c7..270d004 100644
--- a/src/pages/Home/components/Repo/index.tsx
+++ b/src/pages/Home/components/Repo/index.tsx
@@ -1,27 +1,28 @@
 import { SubTitle } from '@site/src/components/SubTitle'
 import styles from './index.module.css'
 import { translate } from '@docusaurus/Translate'
-import { useEffect, useState } from 'react'
-import { LANGUAGE_ICON_COLOR, REPOS } from '@site/src/constants'
-import { getRepoServices } from '@site/src/services/RepoServices'
+import { useState } from 'react'
+import { LANGUAGE_ICON_COLOR, REPOS, REPOS_DATA } from '@site/src/constants'
 
 const Repo = () => {
-    const [repos, setRepos] = useState([])
-    const getRepoAll = async () => {
-        try {
-            const serviceALl = REPOS.map((repo) => {
-                return getRepoServices(repo)
-            })
-            const res = await Promise.all(serviceALl)
-            setRepos(res || [])
-        } catch (error) {
-            console.error(error)
-        }
-    }
+    const [repos, setRepos] = useState(REPOS_DATA)
+
+    // TODO: The domain name has a security policy and cannot be requested at 
the moment.
+    // const getRepoAll = async () => {
+    //     try {
+    //         const serviceALl = REPOS.map((repo) => {
+    //             return getRepoServices(repo)
+    //         })
+    //         const res = await Promise.all(serviceALl)
+    //         setRepos(res || [])
+    //     } catch (error) {
+    //         console.error(error)
+    //     }
+    // }
 
-    useEffect(() => {
-        getRepoAll()
-    }, [])
+    // useEffect(() => {
+    //     getRepoAll()
+    // }, [])
 
     const onLink = (repo: string, path: string) => {
         window.open(`https://github.com/TuGraph-family/${repo}/${path}`)
diff --git a/static/img/BG.png b/static/img/BG.png
new file mode 100644
index 0000000..3397092
Binary files /dev/null and b/static/img/BG.png differ
diff --git a/static/img/icon.png b/static/img/icon.png
new file mode 100644
index 0000000..05952f5
Binary files /dev/null and b/static/img/icon.png differ
diff --git a/static/img/structure.png b/static/img/structure.png
new file mode 100644
index 0000000..78ca0f3
Binary files /dev/null and b/static/img/structure.png differ
diff --git a/versions/version-current/docs-cn/source/1.guide.md 
b/versions/version-current/docs-cn/source/1.guide.md
index aad7cde..64ece56 100644
--- a/versions/version-current/docs-cn/source/1.guide.md
+++ b/versions/version-current/docs-cn/source/1.guide.md
@@ -1,11 +1,11 @@
 # GeaFlow
 
-[![Discord](https://badgen.net/badge/icon/Discord?icon=discord&label)](https://discord.gg/apKdP3DXuH)
+<!-- 
[![Discord](https://badgen.net/badge/icon/Discord?icon=discord&label)](https://discord.gg/apKdP3DXuH)
 
[![Commit](https://badgen.net/github/last-commit/tugraph-family/tugraph-analytics/master?icon=git&label=Commit)](https://github.com/TuGraph-family/tugraph-analytics/commits/master)
 
[![Docker](https://shields.io/docker/pulls/tugraph/geaflow-console?logo=docker&label=Docker&color=blue)](https://hub.docker.com/r/tugraph/geaflow-console/tags)
 
[![License](https://shields.io/github/license/tugraph-family/tugraph-analytics?logo=apache&label=License&color=blue)](https://www.apache.org/licenses/LICENSE-2.0.html)
 
[![Release](https://shields.io/github/v/release/tugraph-family/tugraph-analytics.svg?logo=stackblitz&label=Version&color=red)](https://github.com/TuGraph-family/tugraph-analytics/releases)
-[![Blog](https://badgen.net/static/Blog/github.io/orange?icon=rss)](https://geaflow.github.io/)
+[![Blog](https://badgen.net/static/Blog/github.io/orange?icon=rss)](https://geaflow.github.io/)
 -->
 
 <!--intro-start-->
 
@@ -99,9 +99,11 @@ GeaFlow 支持增量图计算的能力,即在动态图(图是不断变化的
 
 GeaFlow 开发过程中部分模块参考了一些业界优秀的开源项目,包括 Apache Flink、Apache Spark 以及 Apache Calcite 
等, 这里表示特别的感谢。也感谢对 GeaFlow 做过贡献的个人开发者,名单如下:
 
-<a 
href="https://github.com/TuGraph-family/tugraph-analytics/graphs/contributors";>
+<!-- <a 
href="https://github.com/TuGraph-family/tugraph-analytics/graphs/contributors";>
   <img src="https://contrib.rocks/image?repo=TuGraph-family/tugraph-analytics"; 
/>
-</a>
+</a> -->
+
+![contributors](../../static/img/developers.png)
 
 生成 By [contrib.rocks](https://contrib.rocks).
 
diff --git a/versions/version-current/docs-en/source/1.guide.md 
b/versions/version-current/docs-en/source/1.guide.md
index ebadec6..78e84a8 100644
--- a/versions/version-current/docs-en/source/1.guide.md
+++ b/versions/version-current/docs-en/source/1.guide.md
@@ -1,11 +1,11 @@
 # Guide
 
-[![Discord](https://badgen.net/badge/icon/Discord?icon=discord&label)](https://discord.gg/apKdP3DXuH)
+<!-- 
[![Discord](https://badgen.net/badge/icon/Discord?icon=discord&label)](https://discord.gg/apKdP3DXuH)
 
[![Commit](https://badgen.net/github/last-commit/tugraph-family/tugraph-analytics/master?icon=git&label=Commit)](https://github.com/TuGraph-family/tugraph-analytics/commits/master)
 
[![Docker](https://shields.io/docker/pulls/tugraph/geaflow-console?logo=docker&label=Docker&color=blue)](https://hub.docker.com/r/tugraph/geaflow-console/tags)
 
[![License](https://shields.io/github/license/tugraph-family/tugraph-analytics?logo=apache&label=License&color=blue)](https://www.apache.org/licenses/LICENSE-2.0.html)
 
[![Release](https://shields.io/github/v/release/tugraph-family/tugraph-analytics.svg?logo=stackblitz&label=Version&color=red)](https://github.com/TuGraph-family/tugraph-analytics/releases)
-[![Blog](https://badgen.net/static/Blog/github.io/orange?icon=rss)](https://geaflow.github.io/)
+[![Blog](https://badgen.net/static/Blog/github.io/orange?icon=rss)](https://geaflow.github.io/)
 -->
 
 <!--intro-start-->
 
@@ -98,9 +98,11 @@ a [ ⭐️ ](https://github.com/apache/geaflow).**
 
 Thanks to some outstanding open-source projects in the industry such as Apache 
Flink, Apache Spark, and Apache Calcite, some modules of GeaFlow were developed 
with their references. We would like to express our special gratitude for their 
contributions. Also, thanks to all the individual developers who have 
contributed to this repository, which are listed below.
 
-<a href="https://github.com/apache/geaflow/graphs/contributors";>
+<!-- <a href="https://github.com/apache/geaflow/graphs/contributors";>
   <img src="https://contrib.rocks/image?repo=apache/geaflow"; />
-</a>
+</a> -->
+
+![contributors](../../static/img/developers.png)
 
 Made with [contrib.rocks](https://contrib.rocks).
 
diff --git a/versions/version-current/static/img/developers.png 
b/versions/version-current/static/img/developers.png
new file mode 100644
index 0000000..8ff6bfb
Binary files /dev/null and b/versions/version-current/static/img/developers.png 
differ


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to