From 2c15a2085320f0af6ae65064c91daab10a0e4f05 Mon Sep 17 00:00:00 2001 From: poikcue Date: Mon, 1 Aug 2022 18:14:16 +0800 Subject: [PATCH 1/6] Update Summary.svelte --- src/components/Summary.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Summary.svelte b/src/components/Summary.svelte index 45aa8ca..0651121 100644 --- a/src/components/Summary.svelte +++ b/src/components/Summary.svelte @@ -9,7 +9,7 @@ let { apiBaseUrl } = config["status-website"] || {}; if (!apiBaseUrl) apiBaseUrl = "https://api.github.com"; const userContentBaseUrl = apiBaseUrl.includes("api.github.com") - ? `https://github.com/raw` + ? `${config.i18n.GithubusercontentWebsiteUrl}` : apiBaseUrl; const owner = config.owner; const repo = config.repo; From bb0af982e45157ee9a79b5f7cd0d7cd85f486757 Mon Sep 17 00:00:00 2001 From: poikcue Date: Mon, 1 Aug 2022 18:14:35 +0800 Subject: [PATCH 2/6] Update LiveStatus.svelte --- src/components/LiveStatus.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/LiveStatus.svelte b/src/components/LiveStatus.svelte index b3b301e..067ae63 100644 --- a/src/components/LiveStatus.svelte +++ b/src/components/LiveStatus.svelte @@ -12,7 +12,7 @@ let sites = []; if (!apiBaseUrl) apiBaseUrl = "https://api.github.com"; const userContentBaseUrl = apiBaseUrl.includes("api.github.com") - ? `https://github.com/raw` + ? `${config.i18n.GithubusercontentWebsiteUrl}` : apiBaseUrl; const graphsBaseUrl = `${userContentBaseUrl}/${owner}/${repo}/master/graphs`; let form = null; From 6bf4d8fed611d82e405c629286f2db4adaf6ff94 Mon Sep 17 00:00:00 2001 From: poikcue Date: Mon, 1 Aug 2022 18:15:06 +0800 Subject: [PATCH 3/6] Update i18n.yml --- i18n.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/i18n.yml b/i18n.yml index 741969b..b0a12d5 100644 --- a/i18n.yml +++ b/i18n.yml @@ -53,3 +53,4 @@ duration: Duration durationMin: $DURATION minutes incidentCompleted: Completed incidentScheduled: Scheduled +GithubusercontentWebsiteUrl: https://github.com/raw From 0732d539aadfbc02289aa778844b105c51014e19 Mon Sep 17 00:00:00 2001 From: poikcue Date: Mon, 1 Aug 2022 18:38:23 +0800 Subject: [PATCH 4/6] Update i18n.yml Co-authored-by: Anand Chowdhary --- i18n.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/i18n.yml b/i18n.yml index b0a12d5..741969b 100644 --- a/i18n.yml +++ b/i18n.yml @@ -53,4 +53,3 @@ duration: Duration durationMin: $DURATION minutes incidentCompleted: Completed incidentScheduled: Scheduled -GithubusercontentWebsiteUrl: https://github.com/raw From e4498af79b7b5b9ee29c5756471db104cfad835b Mon Sep 17 00:00:00 2001 From: poikcue Date: Mon, 1 Aug 2022 18:38:31 +0800 Subject: [PATCH 5/6] Update src/components/Summary.svelte Co-authored-by: Anand Chowdhary --- src/components/Summary.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Summary.svelte b/src/components/Summary.svelte index 0651121..2d1b797 100644 --- a/src/components/Summary.svelte +++ b/src/components/Summary.svelte @@ -9,7 +9,7 @@ let { apiBaseUrl } = config["status-website"] || {}; if (!apiBaseUrl) apiBaseUrl = "https://api.github.com"; const userContentBaseUrl = apiBaseUrl.includes("api.github.com") - ? `${config.i18n.GithubusercontentWebsiteUrl}` + ? `${config.githubUserContentBaseUrl || "https://github.com/raw"}` : apiBaseUrl; const owner = config.owner; const repo = config.repo; From d394f83fa711765ad21c697965643dc32e2394a2 Mon Sep 17 00:00:00 2001 From: poikcue Date: Mon, 1 Aug 2022 18:38:36 +0800 Subject: [PATCH 6/6] Update src/components/LiveStatus.svelte Co-authored-by: Anand Chowdhary --- src/components/LiveStatus.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/LiveStatus.svelte b/src/components/LiveStatus.svelte index 067ae63..e6fe06a 100644 --- a/src/components/LiveStatus.svelte +++ b/src/components/LiveStatus.svelte @@ -12,7 +12,7 @@ let sites = []; if (!apiBaseUrl) apiBaseUrl = "https://api.github.com"; const userContentBaseUrl = apiBaseUrl.includes("api.github.com") - ? `${config.i18n.GithubusercontentWebsiteUrl}` + ? `${config.githubUserContentBaseUrl || "https://github.com/raw"}` : apiBaseUrl; const graphsBaseUrl = `${userContentBaseUrl}/${owner}/${repo}/master/graphs`; let form = null;