Skip to content

Commit

Permalink
Merge pull request #7 from ngeorger/local
Browse files Browse the repository at this point in the history
  • Loading branch information
ngeorger committed Jun 23, 2024
2 parents 5e75a4d + 5c27b76 commit 0350ae4
Show file tree
Hide file tree
Showing 36 changed files with 75 additions and 75 deletions.
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
NEXT_PUBLIC_GISCUS_APP_HOST=https://giscus.app
NEXT_PUBLIC_GISCUS_APP_HOST=https://sredevopsorg.vercel.app
NEXT_PUBLIC_REVALIDATE_FIRST_PAGE=true
NEXT_PUBLIC_DEMO_REPO=youraccount/giscus-fork
NEXT_PUBLIC_DEMO_REPO_ID=Th3R3p0IDF0rY0urF0rk
Expand All @@ -13,5 +13,5 @@ SUPABASE_URL=https://somerandomprojectname.supabase.co
SUPABASE_INSTALLATION_ACCESS_TOKENS_TABLE=installation_access_tokens
# The following values are only for CORS-related stuff in the API.
# The usage is different from the values in giscus.json.
ORIGINS=["https://giscus.app", "https://giscus.vercel.app"]
ORIGINS=["https://sredevopsorg.vercel.app", "https://giscus.vercel.app"]
ORIGINS_REGEX=["http://localhost:[0-9]+"]
16 changes: 8 additions & 8 deletions ADVANCED-USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Example `giscus.json`:

```json
{
"origins": ["https://giscus.app"]
"origins": ["https://sredevopsorg.vercel.app"]
}
```

Expand All @@ -66,7 +66,7 @@ Example `giscus.json`:

```json
{
"origins": ["https://giscus.app"],
"origins": ["https://sredevopsorg.vercel.app"],
"originsRegex": ["http://localhost:[0-9]+"]
}
```
Expand Down Expand Up @@ -134,10 +134,10 @@ for the `data-theme` attribute. The URL will be used by giscus to construct a
For example, given the following `<script>` tag:

```html
<script src="https://giscus.app/client.js"
<script src="https://sredevopsorg.vercel.app/client.js"
data-repo="giscus/giscus"
...
data-theme="https://giscus.app/themes/custom_example.css"
data-theme="https://sredevopsorg.vercel.app/themes/custom_example.css"
...>
</script>
```
Expand All @@ -146,7 +146,7 @@ then giscus will add the following element:


```html
<link id="giscus-theme" rel="stylesheet" crossorigin="anonymous" href="https://giscus.app/themes/custom_example.css">
<link id="giscus-theme" rel="stylesheet" crossorigin="anonymous" href="https://sredevopsorg.vercel.app/themes/custom_example.css">
```

Please note that loading an external CSS file **may be unsafe**. Make sure that
Expand Down Expand Up @@ -190,7 +190,7 @@ page based on giscus' state. For example:

```ts
function handleMessage(event: MessageEvent) {
if (event.origin !== 'https://giscus.app') return;
if (event.origin !== 'https://sredevopsorg.vercel.app') return;
if (!(typeof event.data === 'object' && event.data.giscus)) return;

const giscusData = event.data.giscus;
Expand Down Expand Up @@ -268,7 +268,7 @@ For example:
function sendMessage<T>(message: T) {
const iframe = document.querySelector<HTMLIFrameElement>('iframe.giscus-frame');
if (!iframe) return;
iframe.contentWindow.postMessage({ giscus: message }, 'https://giscus.app');
iframe.contentWindow.postMessage({ giscus: message }, 'https://sredevopsorg.vercel.app');
}
```

Expand Down Expand Up @@ -311,7 +311,7 @@ type `ISetConfigMessage`:
```ts
sendMessage({
setConfig: {
theme: 'https://giscus.app/themes/custom_example.css',
theme: 'https://sredevopsorg.vercel.app/themes/custom_example.css',
reactionsEnabled: false,
}
});
Expand Down
2 changes: 1 addition & 1 deletion PRIVACY-POLICY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

The [giscus organization][organization] (our organization) is an independent
organization and is not part of any company. Our organization operates the
https://giscus.app website (our website). This privacy policy will explain how
https://sredevopsorg.vercel.app website (our website). This privacy policy will explain how
our organization uses your personal data when you use our website.

Topics:
Expand Down
4 changes: 2 additions & 2 deletions README.ar.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

للتعليق على المناقشات، يجب على الزائرين تخويل [تطبيق غيسكوس][giscus-app] [للنشر نيابة عنهم][authorization] باستخدام تدفق جيب هب OAuth. أو بدلاً من ذلك يمكن للزوار التعليق على مناقشة جيت هب مباشرةً. ويمكنك الإشراف على التعليقات على جيت هب.

[giscus]: https://giscus.app/ar
[giscus]: https://sredevopsorg.vercel.app/ar
[discussions]: https://docs.github.com/en/discussions
[utterances]: https://github.com/utterance/utterances
[repo]: https://github.com/giscus/giscus
Expand All @@ -30,7 +30,7 @@
[multiple-languages]: https://github.com/giscus/giscus/blob/main/CONTRIBUTING.md#adding-localizations
[self-hosting]: https://github.com/giscus/giscus/blob/main/SELF-HOSTING.md
[search-api]: https://docs.github.com/en/graphql/guides/using-the-graphql-api-for-discussions#search
[giscus-app]: https://github.com/apps/giscus
[giscus-app]: https://github.com/apps/sredevopsorg
[authorization]: https://docs.github.com/en/developers/apps/identifying-and-authorizing-users-for-github-apps

<!-- configuration -->
Expand Down
4 changes: 2 additions & 2 deletions README.ca.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Quan es carrega giscus, s'utilitza [l'API de cerca de discussions de GitHub][sea

Per deixar un comentari, els visitants han d'autoritzar [l'aplicació de giscus][giscus-app] per [publicar en el seu nom][authorization] utilitzant el flux de GitHub OAuth. Alternativament, els visitants poden comentar directament a la Discussió de GitHub. Pots moderar els comentaris a GitHub.

[giscus]: https://giscus.app/ca
[giscus]: https://sredevopsorg.vercel.app/ca
[discussions]: https://docs.github.com/en/discussions
[utterances]: https://github.com/utterance/utterances
[repo]: https://github.com/giscus/giscus
Expand All @@ -29,7 +29,7 @@ Per deixar un comentari, els visitants han d'autoritzar [l'aplicació de giscus]
[multiple-languages]: https://github.com/giscus/giscus/blob/main/CONTRIBUTING.md#adding-localizations
[self-hosting]: https://github.com/giscus/giscus/blob/main/SELF-HOSTING.md
[search-api]: https://docs.github.com/en/graphql/guides/using-the-graphql-api-for-discussions#search
[giscus-app]: https://github.com/apps/giscus
[giscus-app]: https://github.com/apps/sredevopsorg
[authorization]: https://docs.github.com/en/developers/apps/identifying-and-authorizing-users-for-github-apps

<!-- configuration -->
Expand Down
4 changes: 2 additions & 2 deletions README.da.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Når Giscus indlæses, bruges [GitHub-diskussionssøgnings-API'et][search-api] t

For at kommentere skal besøgende autorisere [giscus app][giscus-app] til at [poste på deres vegne][authorization] ved hjælp af GitHub OAuth-flow. Alternativt kan besøgende kommentere direkte på GitHub-diskussionen. Du kan moderere kommentarerne på GitHub.

[giscus]: https://giscus.app
[giscus]: https://sredevopsorg.vercel.app
[discussions]: https://docs.github.com/en/discussions
[utterances]: https://github.com/utterance/utterances
[repo]: https://github.com/giscus/giscus
Expand All @@ -29,7 +29,7 @@ For at kommentere skal besøgende autorisere [giscus app][giscus-app] til at [po
[multiple-languages]: https://github.com/giscus/giscus/blob/main/CONTRIBUTING.md#adding-localizations
[self-hosting]: https://github.com/giscus/giscus/blob/main/SELF-HOSTING.md
[search-api]: https://docs.github.com/en/graphql/guides/using-the-graphql-api-for-discussions#search
[giscus-app]: https://github.com/apps/giscus
[giscus-app]: https://github.com/apps/sredevopsorg
[authorization]: https://docs.github.com/en/developers/apps/identifying-and-authorizing-users-for-github-apps

<!-- configuration -->
Expand Down
4 changes: 2 additions & 2 deletions README.de.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Wenn giscus lädt, wird die [GitHub Diskussionen Such-API][search-api] verwendet

Um zu kommentieren, müssen Besucher die [giscus App][giscus-app] autorisieren [in ihrem Namen][authorization] zu posten, mithilfe des GitHub OAuth flows. Alternativ können Besucher direkt auf der Diskussion kommentieren. Du kannst die Kommentare auf GitHub moderieren.

[giscus]: https://giscus.app/de
[giscus]: https://sredevopsorg.vercel.app/de
[discussions]: https://docs.github.com/en/discussions
[utterances]: https://github.com/utterance/utterances
[repo]: https://github.com/giscus/giscus
Expand All @@ -29,7 +29,7 @@ Um zu kommentieren, müssen Besucher die [giscus App][giscus-app] autorisieren [
[multiple-languages]: https://github.com/giscus/giscus/blob/main/CONTRIBUTING.md#adding-localizations
[self-hosting]: https://github.com/giscus/giscus/blob/main/SELF-HOSTING.md
[search-api]: https://docs.github.com/en/graphql/guides/using-the-graphql-api-for-discussions#search
[giscus-app]: https://github.com/apps/giscus
[giscus-app]: https://github.com/apps/sredevopsorg
[authorization]: https://docs.github.com/en/developers/apps/identifying-and-authorizing-users-for-github-apps

<!-- configuration -->
Expand Down
4 changes: 2 additions & 2 deletions README.eo.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Kiam giscus ŝargas, la [GitHub-a Diskutoj-serĉa API][search-api] estas uzata p

Por komenti, vizitantoj devas rajtigi la [giscus-an aplikaĵon][giscus-app] por [afiŝi anstataŭ sin][authorization] per la GitHub-a OAuth-fluo. Alternative, vizitantoj povas komenti rekte en la GitHub-a Diskuto. Vi povas moderi la komentojn en GitHub.

[giscus]: https://giscus.app
[giscus]: https://sredevopsorg.vercel.app
[discussions]: https://docs.github.com/en/discussions
[utterances]: https://github.com/utterance/utterances
[repo]: https://github.com/giscus/giscus
Expand All @@ -29,7 +29,7 @@ Por komenti, vizitantoj devas rajtigi la [giscus-an aplikaĵon][giscus-app] por
[multiple-languages]: https://github.com/giscus/giscus/blob/main/CONTRIBUTING.md#adding-localizations
[self-hosting]: https://github.com/giscus/giscus/blob/main/SELF-HOSTING.md
[search-api]: https://docs.github.com/en/graphql/guides/using-the-graphql-api-for-discussions#search
[giscus-app]: https://github.com/apps/giscus
[giscus-app]: https://github.com/apps/sredevopsorg
[authorization]: https://docs.github.com/en/developers/apps/identifying-and-authorizing-users-for-github-apps

<!-- configuration -->
Expand Down
4 changes: 2 additions & 2 deletions README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Cuando se carga giscus, la [API de búsqueda de discusiones de GitHub][search-ap

Para comentar, los visitantes deben autorizar la [aplicación de giscus][giscus-app] para [publicar en su nombre][authorization] utilizando el flujo de GitHub OAuth. Alternativamente, los visitantes pueden comentar sobre la Discusión de GitHub directamente. Puede moderar los comentarios en GitHub.

[giscus]: https://giscus.app/es
[giscus]: https://sredevopsorg.vercel.app/es
[discussions]: https://docs.github.com/en/discussions
[utterances]: https://github.com/utterance/utterances
[repo]: https://github.com/giscus/giscus
Expand All @@ -29,7 +29,7 @@ Para comentar, los visitantes deben autorizar la [aplicación de giscus][giscus-
[multiple-languages]: https://github.com/giscus/giscus/blob/main/CONTRIBUTING.md#adding-localizations
[self-hosting]: https://github.com/giscus/giscus/blob/main/SELF-HOSTING.md
[search-api]: https://docs.github.com/en/graphql/guides/using-the-graphql-api-for-discussions#search
[giscus-app]: https://github.com/apps/giscus
[giscus-app]: https://github.com/apps/sredevopsorg
[authorization]: https://docs.github.com/en/developers/apps/identifying-and-authorizing-users-for-github-apps

<!-- configuration -->
Expand Down
4 changes: 2 additions & 2 deletions README.fa.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

برای ثبت دیدگاه به , بازدیدکنندگان باید [برنامه giscus][giscus-app] [دسترسی لازم][authorization] را بر اساس GitHub OAuth بدهند. یا اینکه, می توانند به طور مستقیم در گیت هاب نظر خود را درج کنند. شما می توانید نظرات را در گیت هاب مدیریت کنید.

[giscus]: https://giscus.app/fa
[giscus]: https://sredevopsorg.vercel.app/fa
[discussions]: https://docs.github.com/en/discussions
[utterances]: https://github.com/utterance/utterances
[repo]: https://github.com/giscus/giscus
Expand All @@ -29,7 +29,7 @@
[multiple-languages]: https://github.com/giscus/giscus/blob/main/CONTRIBUTING.md#adding-localizations
[self-hosting]: https://github.com/giscus/giscus/blob/main/SELF-HOSTING.md
[search-api]: https://docs.github.com/en/graphql/guides/using-the-graphql-api-for-discussions#search
[giscus-app]: https://github.com/apps/giscus
[giscus-app]: https://github.com/apps/sredevopsorg
[authorization]: https://docs.github.com/en/developers/apps/identifying-and-authorizing-users-for-github-apps

<!-- configuration -->
Expand Down
4 changes: 2 additions & 2 deletions README.fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Lorsque giscus se charge, l'[API de recherche des discussions de GitHub][search-

Pour commenter, les visiteurs doivent autoriser l'[application giscus][giscus-app] à [publier en leur nom][authorization] en utilisant le flux OAuth de GitHub. Les visiteurs peuvent également commenter directement la discussion sur GitHub. Vous pouvez modérer les commentaires sur GitHub.

[giscus]: https://giscus.app/fr
[giscus]: https://sredevopsorg.vercel.app/fr
[discussions]: https://docs.github.com/en/discussions
[utterances]: https://github.com/utterance/utterances
[repo]: https://github.com/giscus/giscus
Expand All @@ -29,7 +29,7 @@ Pour commenter, les visiteurs doivent autoriser l'[application giscus][giscus-ap
[multiple-languages]: https://github.com/giscus/giscus/blob/main/CONTRIBUTING.md#adding-localizations
[self-hosting]: https://github.com/giscus/giscus/blob/main/SELF-HOSTING.md
[search-api]: https://docs.github.com/en/graphql/guides/using-the-graphql-api-for-discussions#search
[giscus-app]: https://github.com/apps/giscus
[giscus-app]: https://github.com/apps/sredevopsorg
[authorization]: https://docs.github.com/en/developers/apps/identifying-and-authorizing-users-for-github-apps

<!-- configuration -->
Expand Down
4 changes: 2 additions & 2 deletions README.gr.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

Για να μπορέσουν να σχολιάσουν, οι επισκέπτες θα πρέπει να εξουσιοδοτήσουν την [εφαρμογή giscus][giscus-app] ώστε να [αναρτά περιεχόμενο γι αυτούς][authorization] χρησιμοποιώντας τη ροή OAuth του GitHub. Εναλλακτικά, οι επισκέπτες μπορούν να σχολιάσουν απ'ευθείας στις Συζητήσεις του GitHub. Μπορείτε να διαχειριστείτε τα σχόλια στο GitHub.

[giscus]: https://giscus.app
[giscus]: https://sredevopsorg.vercel.app
[discussions]: https://docs.github.com/en/discussions
[utterances]: https://github.com/utterance/utterances
[repo]: https://github.com/giscus/giscus
Expand All @@ -29,7 +29,7 @@
[multiple-languages]: https://github.com/giscus/giscus/blob/main/CONTRIBUTING.md#adding-localizations
[self-hosting]: https://github.com/giscus/giscus/blob/main/SELF-HOSTING.md
[search-api]: https://docs.github.com/en/graphql/guides/using-the-graphql-api-for-discussions#search
[giscus-app]: https://github.com/apps/giscus
[giscus-app]: https://github.com/apps/sredevopsorg
[authorization]: https://docs.github.com/en/developers/apps/identifying-and-authorizing-users-for-github-apps

<!-- configuration -->
Expand Down
4 changes: 2 additions & 2 deletions README.hbs.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Kada se giscus učita, [API za pretragu GitHub Diskusija][search-api] se koristi

Da bi komentarisali, korisnici moraju dati autoritet [giscus aplikaciji][giscus-app] da [objavljuje u njihovo ime][authorization] koristeći GitHub OAuth tok. Alternativno, čitaoci mogu komentarisati na GitHub Diskusiji direktno. Vlasnik diskusije može biti moderator iste.

[giscus]: https://giscus.app
[giscus]: https://sredevopsorg.vercel.app
[discussions]: https://docs.github.com/en/discussions
[utterances]: https://github.com/utterance/utterances
[repo]: https://github.com/giscus/giscus
Expand All @@ -29,7 +29,7 @@ Da bi komentarisali, korisnici moraju dati autoritet [giscus aplikaciji][giscus-
[multiple-languages]: https://github.com/giscus/giscus/blob/main/CONTRIBUTING.md#adding-localizations
[self-hosting]: https://github.com/giscus/giscus/blob/main/SELF-HOSTING.md
[search-api]: https://docs.github.com/en/graphql/guides/using-the-graphql-api-for-discussions#search
[giscus-app]: https://github.com/apps/giscus
[giscus-app]: https://github.com/apps/sredevopsorg
[authorization]: https://docs.github.com/en/developers/apps/identifying-and-authorizing-users-for-github-apps

<!-- configuration -->
Expand Down
4 changes: 2 additions & 2 deletions README.he.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

בכדי להגיב, מבקרים חייבים לאשר את [אפליקציית giscus][giscus-app] ל[פרסם בשמם][authorization] באמצעות זרימת OAuth של GitHub. לחילופין, מבקרים יוכלי להגיב ישירות בדיון של GitHub. אתה יכול לנהל את התגובות ב-GitHub.

[giscus]: https://giscus.app
[giscus]: https://sredevopsorg.vercel.app
[discussions]: https://docs.github.com/en/discussions
[utterances]: https://github.com/utterance/utterances
[repo]: https://github.com/giscus/giscus
Expand All @@ -30,7 +30,7 @@
[multiple-languages]: https://github.com/giscus/giscus/blob/main/CONTRIBUTING.md#adding-localizations
[self-hosting]: https://github.com/giscus/giscus/blob/main/SELF-HOSTING.md
[search-api]: https://docs.github.com/en/graphql/guides/using-the-graphql-api-for-discussions#search
[giscus-app]: https://github.com/apps/giscus
[giscus-app]: https://github.com/apps/sredevopsorg
[authorization]: https://docs.github.com/en/developers/apps/identifying-and-authorizing-users-for-github-apps

<!-- configuration -->
Expand Down
4 changes: 2 additions & 2 deletions README.hu.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Amikor a giscus betöltődik, a [GitHub Discussions keresési API][search-api] h

A hozzászóláshoz a látogatóknak engedélyezniük kell a [giscus alkalmazást][giscus-app] számára a GitHub OAuth folyamat segítségével, hogy [a nevükben hozzászólhassanak][authorization]. Alternatív megoldásként a látogatók közvetlenül a GitHubon is hozzászólhatnak. A hozzászólásokat a GitHubon moderálhatod.

[giscus]: https://giscus.app
[giscus]: https://sredevopsorg.vercel.app
[discussions]: https://docs.github.com/en/discussions
[utterances]: https://github.com/utterance/utterances
[repo]: https://github.com/giscus/giscus
Expand All @@ -29,7 +29,7 @@ A hozzászóláshoz a látogatóknak engedélyezniük kell a [giscus alkalmazás
[multiple-languages]: https://github.com/giscus/giscus/blob/main/CONTRIBUTING.md#adding-localizations
[self-hosting]: https://github.com/giscus/giscus/blob/main/SELF-HOSTING.md
[search-api]: https://docs.github.com/en/graphql/guides/using-the-graphql-api-for-discussions#search
[giscus-app]: https://github.com/apps/giscus
[giscus-app]: https://github.com/apps/sredevopsorg
[authorization]: https://docs.github.com/en/developers/apps/identifying-and-authorizing-users-for-github-apps

<!-- configuration -->
Expand Down
4 changes: 2 additions & 2 deletions README.id.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Ketika giscus dimuat, [API pencarian GitHub Discussions][search-api] digunakan u

Untuk berkomentar, pengunjung harus mengizinkan [aplikasi giscus][giscus-app] untuk [berkomentar atas nama mereka][authorization] menggunakan alur GitHub OAuth. Atau, pengunjung dapat meninggalkan komentar pada diskusinya secara langsung di GitHub. Anda dapat memoderasi komentarnya di GitHub.

[giscus]: https://giscus.app/id
[giscus]: https://sredevopsorg.vercel.app/id
[discussions]: https://docs.github.com/en/discussions
[utterances]: https://github.com/utterance/utterances
[repo]: https://github.com/giscus/giscus
Expand All @@ -29,7 +29,7 @@ Untuk berkomentar, pengunjung harus mengizinkan [aplikasi giscus][giscus-app] un
[multiple-languages]: https://github.com/giscus/giscus/blob/main/CONTRIBUTING.md#adding-localizations
[self-hosting]: https://github.com/giscus/giscus/blob/main/SELF-HOSTING.md
[search-api]: https://docs.github.com/en/graphql/guides/using-the-graphql-api-for-discussions#search
[giscus-app]: https://github.com/apps/giscus
[giscus-app]: https://github.com/apps/sredevopsorg
[authorization]: https://docs.github.com/en/developers/apps/identifying-and-authorizing-users-for-github-apps

<!-- configuration -->
Expand Down
Loading

0 comments on commit 0350ae4

Please sign in to comment.