Add supportWebsite config param

This commit is contained in:
Sebastian Martinez
2024-02-15 09:38:28 -03:00
parent bdd83644a6
commit 0cd667c925
5 changed files with 11 additions and 4 deletions
+2 -2
View File
@@ -34,8 +34,8 @@
If you need help resolving this issue, copy the error message
<br />
below and send it to us on
<ExternalLink href="https://radicle.zulipchat.com">
radicle.zulipchat.com
<ExternalLink href={config.supportWebsite}>
{config.supportWebsite}
</ExternalLink>
</div>
<div style:max-width="25rem">
+1
View File
@@ -16,6 +16,7 @@
}
]
},
"supportWebsite": "https://radicle.zulipchat.com",
"reactions": ["👍", "👎", "😄", "🎉", "🙁", "🚀", "👀"],
"fallbackPreferredSeed": {
"hostname": "seed.radicle.garden",
+2
View File
@@ -12,6 +12,7 @@ export interface Config {
defaultHttpdScheme: string;
pinned: { baseUrl: BaseUrl }[];
};
supportWebsite: string;
fallbackPreferredSeed: BaseUrl;
}
@@ -27,6 +28,7 @@ function getConfig(): Config {
defaultNodePort: 8776,
pinned: [],
},
supportWebsite: "https://radicle.zulipchat.com",
fallbackPreferredSeed: {
hostname: "seed.radicle.garden",
port: 443,
+4 -2
View File
@@ -1,4 +1,6 @@
<script lang="ts">
import { config } from "@app/lib/config";
import Command from "@app/components/Command.svelte";
import ExternalLink from "@app/components/ExternalLink.svelte";
import Icon from "@app/components/Icon.svelte";
@@ -21,8 +23,8 @@
If you need help resolving this issue, copy the error message
<br />
below and send it to us on
<ExternalLink href="https://radicle.zulipchat.com">
radicle.zulipchat.com
<ExternalLink href={config.supportWebsite}>
{config.supportWebsite}
</ExternalLink>
</div>
+2
View File
@@ -90,6 +90,7 @@ export const test = base.extend<{
},
],
},
supportWebsite: "https://radicle.zulipchat.com",
fallbackPreferredSeed: {
hostname: "seed.radicle.garden",
port: 443,
@@ -221,6 +222,7 @@ export function appConfigWithFixture(defaultLocalHttpdPort = 8081) {
},
],
},
supportWebsite: "https://radicle.zulipchat.com",
fallbackPreferredSeed: {
hostname: "seed.radicle.garden",
port: 443,