From 3e06030864cb858decf79c713c324692ba385e8a Mon Sep 17 00:00:00 2001 From: Rico Date: Fri, 29 Jul 2022 12:24:47 +0800 Subject: [PATCH] react-app, deploy: Add github url to footerlinks config refs #328 --- deploy/likedao/templates/react-app.config.yaml | 1 + deploy/likedao/values.sample.yaml | 1 + react-app/config/config.template.js | 1 + react-app/src/config/Config.ts | 2 ++ 4 files changed, 5 insertions(+) diff --git a/deploy/likedao/templates/react-app.config.yaml b/deploy/likedao/templates/react-app.config.yaml index bd04e098..1d06789f 100644 --- a/deploy/likedao/templates/react-app.config.yaml +++ b/deploy/likedao/templates/react-app.config.yaml @@ -46,6 +46,7 @@ data: {{- end}} ], footerLinks: { + githubLink: {{ .Values.reactApp.githubLink | quote }}, tokenLinks: [ {{- range .Values.reactApp.footerLinks.tokenLinks }} {{- with .}} diff --git a/deploy/likedao/values.sample.yaml b/deploy/likedao/values.sample.yaml index 009b69c1..68b19964 100644 --- a/deploy/likedao/values.sample.yaml +++ b/deploy/likedao/values.sample.yaml @@ -33,6 +33,7 @@ reactApp: - chainId: likecoin-mainnet-2 link: http://localhost:3000 footerLinks: + githubLink: https://github.com/likecoin/likedao tokenLinks: - name: osmosis link: https://app.osmosis.zone/?from=ATOM&to=LIKE diff --git a/react-app/config/config.template.js b/react-app/config/config.template.js index 76cd0476..3d9027dd 100644 --- a/react-app/config/config.template.js +++ b/react-app/config/config.template.js @@ -24,6 +24,7 @@ window.appConfig = { authEndpoint: "http://localhost:8080/auth", chainLinks: [], footerLinks: { + githubLink: "https://github.com/likecoin/likedao", tokenLinks: [ { name: "osmosis", diff --git a/react-app/src/config/Config.ts b/react-app/src/config/Config.ts index c0efa687..2759f02a 100644 --- a/react-app/src/config/Config.ts +++ b/react-app/src/config/Config.ts @@ -30,6 +30,7 @@ export interface ChainInfo { } interface FooterLinks { + githubLink: string; tokenLinks: TokenLink[]; contactSupport?: string; } @@ -74,6 +75,7 @@ const defaultConfig: IConfig = { authEndpoint: "http://localhost:8080/auth", chainLinks: [], footerLinks: { + githubLink: "https://github.com/likecoin/likedao", tokenLinks: [ { name: "osmosis",