From c48bcbb2b8e5de669c9b407bd44a223791c1f87c Mon Sep 17 00:00:00 2001 From: JayJay1024 Date: Thu, 28 Mar 2024 15:21:53 +0800 Subject: [PATCH 1/7] refactor: home page redirect --- .dumi/app.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .dumi/app.js diff --git a/.dumi/app.js b/.dumi/app.js new file mode 100644 index 0000000..6a13461 --- /dev/null +++ b/.dumi/app.js @@ -0,0 +1,8 @@ +import { Navigate } from 'dumi'; + +export const patchClientRoutes = ({ routes }) => { + routes.unshift({ + path: '/', + element: , + }); +}; From 3d21207a28bef4e576d85d30ad8a01aceff5dbca Mon Sep 17 00:00:00 2001 From: JayJay1024 Date: Thu, 28 Mar 2024 15:28:42 +0800 Subject: [PATCH 2/7] refactor: remove nav config --- .dumirc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.dumirc.ts b/.dumirc.ts index 7a85ffc..9263850 100644 --- a/.dumirc.ts +++ b/.dumirc.ts @@ -5,7 +5,7 @@ export default defineConfig({ name: 'documents', footer: `
Copyright © ${(/* @__PURE__ */ new Date()).getFullYear()} | Powered by helix`, logo: "/logoLight.svg", - nav: [{ title: 'Helix Bridge', link: '/helixbridge/what_is_helix' }], + nav: [], //hideHomeNav: true, }, locales: [ From 6b7160408ce9d417f48c3e168d6aab0197d7acf5 Mon Sep 17 00:00:00 2001 From: JayJay1024 Date: Thu, 28 Mar 2024 15:29:03 +0800 Subject: [PATCH 3/7] refactor: remove name config --- .dumirc.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/.dumirc.ts b/.dumirc.ts index 9263850..74293cb 100644 --- a/.dumirc.ts +++ b/.dumirc.ts @@ -2,7 +2,6 @@ import { defineConfig } from 'dumi'; export default defineConfig({ themeConfig: { - name: 'documents', footer: `
Copyright © ${(/* @__PURE__ */ new Date()).getFullYear()} | Powered by helix`, logo: "/logoLight.svg", nav: [], From 9054615be2f1cb2840fca7d261d5bcfe8921c1b8 Mon Sep 17 00:00:00 2001 From: JayJay1024 Date: Thu, 28 Mar 2024 15:49:15 +0800 Subject: [PATCH 4/7] feat: update footer and add social --- .dumirc.ts | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.dumirc.ts b/.dumirc.ts index 74293cb..544c8fa 100644 --- a/.dumirc.ts +++ b/.dumirc.ts @@ -1,13 +1,18 @@ import { defineConfig } from 'dumi'; +import { defineThemeConfig } from 'dumi-theme-chakra'; export default defineConfig({ themeConfig: { - footer: `
Copyright © ${(/* @__PURE__ */ new Date()).getFullYear()} | Powered by helix`, - logo: "/logoLight.svg", + footer: `Copyright © ${new Date().getFullYear()} | Helix Bridge`, + logo: '/logoLight.svg', nav: [], //hideHomeNav: true, + ...defineThemeConfig({ + social: { + github: { name: 'Github', link: 'https://github.com/helix-bridge' }, + discord: { name: 'Discord', link: 'https://discord.gg/6XyyNGugdE' }, + }, + }), }, - locales: [ - { id: 'en-US', name: 'EN' }, - ], + locales: [{ id: 'en-US', name: 'EN' }], }); From 761dafda5fa11c481c6f4020e08310a1a142cac3 Mon Sep 17 00:00:00 2001 From: JayJay1024 Date: Mon, 1 Apr 2024 09:49:15 +0800 Subject: [PATCH 5/7] chore: update logo --- public/logoLight.svg | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/public/logoLight.svg b/public/logoLight.svg index e2014f5..6b68442 100644 --- a/public/logoLight.svg +++ b/public/logoLight.svg @@ -1,9 +1,6 @@ - - - Helix - - - - - + + + \ No newline at end of file From c5a71be14e3e89f1dc8f8816ede8b9475d99f923 Mon Sep 17 00:00:00 2001 From: JayJay1024 Date: Mon, 1 Apr 2024 09:50:31 +0800 Subject: [PATCH 6/7] chore: config name --- .dumirc.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/.dumirc.ts b/.dumirc.ts index 544c8fa..909e6b9 100644 --- a/.dumirc.ts +++ b/.dumirc.ts @@ -3,6 +3,7 @@ import { defineThemeConfig } from 'dumi-theme-chakra'; export default defineConfig({ themeConfig: { + name: 'Helix', footer: `Copyright © ${new Date().getFullYear()} | Helix Bridge`, logo: '/logoLight.svg', nav: [], From 0442b9a34a8d2ccc5b48e29ecc920b6b8afa7521 Mon Sep 17 00:00:00 2001 From: JayJay1024 Date: Mon, 1 Apr 2024 09:55:59 +0800 Subject: [PATCH 7/7] chore: update name and config helmetIcon --- .dumirc.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.dumirc.ts b/.dumirc.ts index 909e6b9..c745502 100644 --- a/.dumirc.ts +++ b/.dumirc.ts @@ -3,7 +3,7 @@ import { defineThemeConfig } from 'dumi-theme-chakra'; export default defineConfig({ themeConfig: { - name: 'Helix', + name: 'Helix Bridge', footer: `Copyright © ${new Date().getFullYear()} | Helix Bridge`, logo: '/logoLight.svg', nav: [], @@ -13,6 +13,7 @@ export default defineConfig({ github: { name: 'Github', link: 'https://github.com/helix-bridge' }, discord: { name: 'Discord', link: 'https://discord.gg/6XyyNGugdE' }, }, + helmetIcon: '-', }), }, locales: [{ id: 'en-US', name: 'EN' }],