Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Add supportWebsite config param
Sebastian Martinez committed 2 years ago
commit 0cd667c925b96a068678fe144b98593bc2400c4e
parent bdd83644a66fc781d0d7e1eb795b43c8dc3c9e93
5 files changed +11 -4
modified src/components/ErrorMessage.svelte
@@ -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">
modified src/config.json
@@ -16,6 +16,7 @@
      }
    ]
  },
+
  "supportWebsite": "https://radicle.zulipchat.com",
  "reactions": ["👍", "👎", "😄", "🎉", "🙁", "🚀", "👀"],
  "fallbackPreferredSeed": {
    "hostname": "seed.radicle.garden",
modified src/lib/config.ts
@@ -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,
modified src/modals/ErrorModal.svelte
@@ -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>

modified tests/support/fixtures.ts
@@ -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,