Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 1 addition & 12 deletions app/[locale]/[...slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
setRequestLocale,
} from "next-intl/server"

import type { GHIssue, SlugPageParams } from "@/lib/types"
import type { SlugPageParams } from "@/lib/types"

import I18nProvider from "@/components/I18nProvider"
import mdComponents from "@/components/MdComponents"
Expand All @@ -19,7 +19,6 @@ import { checkPathValidity, getPostSlugs } from "@/lib/utils/md"
import { getRequiredNamespacesForPage } from "@/lib/utils/translations"

import { topics } from "@/data/topics"
import { getGFIs } from "@/data-layer"

import SlugJsonLD from "./page-jsonld"

Expand All @@ -40,13 +39,6 @@ export default async function Page(props: { params: Promise<SlugPageParams> }) {
// Enable static rendering
setRequestLocale(locale)

let gfissues: GHIssue[] = []
try {
gfissues = (await getGFIs()) ?? []
} catch (error) {
console.warn("Failed to fetch GFIs for slug page:", error)
}

const slug = slugArray.join("/")

const {
Expand All @@ -62,9 +54,6 @@ export default async function Page(props: { params: Promise<SlugPageParams> }) {
slug,
baseComponents: { ...mdComponents, VideoWatch },
componentsMapping,
scope: {
gfissues,
},
})

// Determine the actual layout after we have the frontmatter
Expand Down
2 changes: 1 addition & 1 deletion public/content/contributing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Any questions? 🤔 Join our [Discord server](https://discord.gg/ethereum-org)

These are few current tasks that you could help us solve and take responsibility for. For most you will need GitHub account as most changes to the website are made through GitHub.

<IssuesList issues={gfissues} my={8} />
<IssuesList my={8} />

<ButtonLink href="https://github.com/ethereum/ethereum-org-website/issues">See all tasks</ButtonLink>

Expand Down
2 changes: 1 addition & 1 deletion public/content/translations/ar/contributing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Ethereum.org هو مشروع مفتوح المصدر يضم **أكثر من 12,0

هذه بعض المهام الحالية التي يمكنك مساعدتنا في حلها وتحمل المسؤولية عنها. بالنسبة لأغلب المستخدمين، ستحتاج إلى حساب غيت هاب، حيث يتم إجراء معظم التغييرات على موقع الويب من خلال غيت هاب.

<IssuesList issues={gfissues} my={8} />
<IssuesList my={8} />

<ButtonLink href="https://github.com/ethereum/ethereum-org-website/issues">عرض كل المهام</ButtonLink>

Expand Down
2 changes: 1 addition & 1 deletion public/content/translations/bn/contributing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Ethereum.org হলো একটি ওপেন-সোর্স পরিচা

এগুলো হলো বর্তমানের কিছু কাজ যা সমাধানে আপনি আমাদের সাহায্য করতে পারেন এবং দায়িত্ব নিতে পারেন। এগুলোর বেশিরভাগের জন্যই আপনার একটি GitHub একাউন্ট প্রয়োজন হবে, কারণ ওয়েবসাইটের বেশিরভাগ পরিবর্তন GitHub-এর মাধ্যমে করা হয়।

<IssuesList issues={gfissues} my={8} />
<IssuesList my={8} />

<ButtonLink href="https://github.com/ethereum/ethereum-org-website/issues">সব কাজ দেখুন</ButtonLink>

Expand Down
2 changes: 1 addition & 1 deletion public/content/translations/cs/contributing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Nějaké dotazy? 🤔 Připojte se na náš [server na Discordu](https://discord

Toto je několik aktuálních úkolů, které byste nám mohli pomoci vyřešit a převzít za ně odpovědnost. Pro většinu z nich budete potřebovat GitHub účet, protože většina změn na webu se provádí prostřednictvím GitHubu.

<IssuesList issues={gfissues} my={8} />
<IssuesList my={8} />

<ButtonLink href="https://github.com/ethereum/ethereum-org-website/issues">Zobrazit všechny úkoly</ButtonLink>

Expand Down
2 changes: 1 addition & 1 deletion public/content/translations/de/contributing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Haben Sie Fragen? 🤔 Treten Sie unserem [Discord-Server](https://discord.gg/et

Dies sind einige aktuelle Aufgaben, bei deren Lösung Sie uns helfen und für die Sie Verantwortung übernehmen können. Für die meisten benötigen Sie ein GitHub-Konto, da die meisten Änderungen an der Website über GitHub vorgenommen werden.

<IssuesList issues={gfissues} my={8} />
<IssuesList my={8} />

<ButtonLink href="https://github.com/ethereum/ethereum-org-website/issues">Alle Aufgaben ansehen</ButtonLink>

Expand Down
2 changes: 1 addition & 1 deletion public/content/translations/es/contributing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Ethereum.org es un proyecto de código abierto gestionado por más de **12 000**

Estas son algunas tareas actuales de las que podría encargarse y ayudarnos a resolver. Para la mayoría necesitará una cuenta de GitHub, ya que muchos de los cambios al sitio se hacen a través de GitHub.

<IssuesList issues={gfissues} my={8} />
<IssuesList my={8} />

<ButtonLink href="https://github.com/ethereum/ethereum-org-website/issues">Ver todas las tareas</ButtonLink>

Expand Down
2 changes: 1 addition & 1 deletion public/content/translations/fr/contributing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Vous avez des questions ? 🤔 Rejoignez notre [serveur Discord](https://discord

Il s'agit de quelques tâches actuelles que vous pourriez nous aider à résoudre et dont vous pourriez prendre la responsabilité. Pour la plupart, vous aurez besoin d'un compte GitHub, car la plupart des modifications du site web sont effectuées via GitHub.

<IssuesList issues={gfissues} my={8} />
<IssuesList my={8} />

<ButtonLink href="https://github.com/ethereum/ethereum-org-website/issues">Voir toutes les tâches</ButtonLink>

Expand Down
2 changes: 1 addition & 1 deletion public/content/translations/hi/contributing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Ethereum.org एक ओपन-सोर्स प्रोजेक्ट है

ये कुछ मौजूदा कार्य हैं जिन्हें हल करने और जिनकी जिम्मेदारी लेने में आप हमारी मदद कर सकते हैं। अधिकांश के लिए आपको गिटहब खाते की आवश्यकता होगी क्योंकि वेबसाइट में अधिकांश परिवर्तन गिटहब के माध्यम से किए जाते हैं।

<IssuesList issues={gfissues} my={8} />
<IssuesList my={8} />

<ButtonLink href="https://github.com/ethereum/ethereum-org-website/issues">सभी कार्य देखें</ButtonLink>

Expand Down
2 changes: 1 addition & 1 deletion public/content/translations/id/contributing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Ada pertanyaan? 🤔 Bergabunglah dengan [server Discord](https://discord.gg/eth

Berikut adalah beberapa tugas saat ini yang dapat Anda bantu selesaikan dan ambil tanggung jawabnya. Untuk sebagian besar tugas, Anda akan memerlukan akun GitHub karena sebagian besar perubahan pada situs web dilakukan melalui GitHub.

<IssuesList issues={gfissues} my={8} />
<IssuesList my={8} />

<ButtonLink href="https://github.com/ethereum/ethereum-org-website/issues">Lihat semua tugas</ButtonLink>

Expand Down
2 changes: 1 addition & 1 deletion public/content/translations/it/contributing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Hai domande? 🤔 Unisciti al nostro [server Discord](https://discord.gg/ethereu

Questi sono alcuni compiti attuali che potresti aiutarci a risolvere e di cui potresti assumerti la responsabilità. Per la maggior parte avrai bisogno di un account GitHub, poiché la maggior parte delle modifiche al sito web viene effettuata tramite GitHub.

<IssuesList issues={gfissues} my={8} />
<IssuesList my={8} />

<ButtonLink href="https://github.com/ethereum/ethereum-org-website/issues">Vedi tutti i compiti</ButtonLink>

Expand Down
2 changes: 1 addition & 1 deletion public/content/translations/ja/contributing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Ethereum.orgはオープンソースで運営されているプロジェクト

現在、解決を手伝っていただきたいタスクがいくつかあります。 変更のほとんどは、GitHubを通じて行われるため、GitHubアカウントが必要になります。

<IssuesList issues={gfissues} my={8} />
<IssuesList my={8} />

<ButtonLink href="https://github.com/ethereum/ethereum-org-website/issues">すべてのタスクを見る</ButtonLink>

Expand Down
2 changes: 1 addition & 1 deletion public/content/translations/ko/contributing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Ethereum.org는 웹사이트의 번역, 집필, 디자인 및 유지 관리를

다음은 여러분이 해결을 돕고 담당할 수 있는 몇 가지 현재 작업입니다. 웹사이트에 대한 대부분의 변경 사항은 GitHub를 통해 이루어지므로 대부분의 경우 GitHub 계정이 필요합니다.

<IssuesList issues={gfissues} my={8} />
<IssuesList my={8} />

<ButtonLink href="https://github.com/ethereum/ethereum-org-website/issues">모든 작업 보기</ButtonLink>

Expand Down
2 changes: 1 addition & 1 deletion public/content/translations/mr/contributing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Ethereum.org हा एक ओपन-सोर्स चालवला जा

ही काही सध्याची कामे आहेत जी तुम्ही आम्हाला सोडविण्यात मदत करू शकता आणि त्यांची जबाबदारी घेऊ शकता. बहुतेक कामांसाठी तुम्हाला GitHub खात्याची आवश्यकता असेल कारण वेबसाइटमधील बहुतेक बदल GitHub द्वारे केले जातात.

<IssuesList issues={gfissues} my={8} />
<IssuesList my={8} />

<ButtonLink href="https://github.com/ethereum/ethereum-org-website/issues">सर्व कामे पहा</ButtonLink>

Expand Down
2 changes: 1 addition & 1 deletion public/content/translations/pl/contributing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Jakieś pytania? 🤔 Dołącz do naszego [serwera Discord](https://discord.gg/e

Oto parę aktualnych zadań, które możesz pomóc nam rozwiązać i wziąć za nie odpowiedzialność. Najprawdopodobniej będzie Ci potrzebne konto na GitHubie, ponieważ większość zmian na stronie jest robionych właśnie przez GitHuba.

<IssuesList issues={gfissues} my={8} />
<IssuesList my={8} />

<ButtonLink href="https://github.com/ethereum/ethereum-org-website/issues">Zobacz wszystkie zadania</ButtonLink>

Expand Down
2 changes: 1 addition & 1 deletion public/content/translations/pt-br/contributing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Alguma dúvida? 🤔 Junte-se ao nosso [servidor do Discord](https://discord.gg/

Estas são algumas tarefas atuais das que você poderia se encarregar e nos ajudar a resolver. Para a maioria delas, você precisará de uma conta no GitHub porque a maior parte das mudanças no site são feitas através do GitHub.

<IssuesList issues={gfissues} my={8} />
<IssuesList my={8} />

<ButtonLink href="https://github.com/ethereum/ethereum-org-website/issues">Ver todas as tarefas</ButtonLink>

Expand Down
2 changes: 1 addition & 1 deletion public/content/translations/ru/contributing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Ethereum.org — это проект с открытым исходным код

Вот несколько текущих задач, в решении которых вы могли бы нам помочь и взять на себя ответственность. Для большинства из них вам понадобится аккаунт на GitHub, так как большинство изменений на сайте вносятся через GitHub.

<IssuesList issues={gfissues} my={8} />
<IssuesList my={8} />

<ButtonLink href="https://github.com/ethereum/ethereum-org-website/issues">Посмотреть все задачи</ButtonLink>

Expand Down
2 changes: 1 addition & 1 deletion public/content/translations/sw/contributing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Maswali yoyote? 🤔 Jiunge na [seva yetu ya Discord](https://discord.gg/ethereu

Hizi ni kazi chache za sasa ambazo unaweza kutusaidia kutatua na kuwajibika nazo. Kwa nyingi utahitaji akaunti ya GitHub kwani mabadiliko mengi kwenye tovuti hufanywa kupitia GitHub.

<IssuesList issues={gfissues} my={8} />
<IssuesList my={8} />

<ButtonLink href="https://github.com/ethereum/ethereum-org-website/issues">Tazama kazi zote</ButtonLink>

Expand Down
2 changes: 1 addition & 1 deletion public/content/translations/ta/contributing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Ethereum.org என்பது **12 000+** பங்களிப்பாளர

இவை நீங்கள் எங்களுக்குத் தீர்க்கவும் பொறுப்பேற்கவும் உதவக்கூடிய சில தற்போதைய பணிகளாகும். இணையதளத்தில் பெரும்பாலான மாற்றங்கள் GitHub மூலம் செய்யப்படுவதால், பெரும்பாலானவற்றிற்கு உங்களுக்கு GitHub கணக்கு தேவைப்படும்.

<IssuesList issues={gfissues} my={8} />
<IssuesList my={8} />

<ButtonLink href="https://github.com/ethereum/ethereum-org-website/issues">அனைத்துப் பணிகளையும் காண்க</ButtonLink>

Expand Down
2 changes: 1 addition & 1 deletion public/content/translations/te/contributing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Ethereum.org ఒక ఓపెన్-సోర్స్ ప్రాజెక్

ఇవి పరిష్కరించడంలో మరియు బాధ్యత వహించడంలో మాకు సహాయపడే కొన్ని ప్రస్తుత పనులు. వెబ్‌సైట్‌లో చాలా మార్పులు GitHub ద్వారా చేయబడినందున చాలా మందికి మీకు GitHub ఖాతా అవసరం.

<IssuesList issues={gfissues} my={8} />
<IssuesList my={8} />

<ButtonLink href="https://github.com/ethereum/ethereum-org-website/issues">అన్ని టాస్క్‌లను చూడండి</ButtonLink>

Expand Down
2 changes: 1 addition & 1 deletion public/content/translations/tr/contributing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Sorunuz mu var? 🤔 [Discord sunucumuza](https://discord.gg/ethereum-org) katı

Bunlar, çözmemize yardımcı olabileceğiniz ve sorumluluğunu alabileceğiniz birkaç güncel görevdir. Çoğunuz için GitHub hesabına ihtiyacınız olacak çünkü web sitesi üzerindeki değişikliklerin çoğu GitHub üzerinden yapılıyor.

<IssuesList issues={gfissues} my={8} />
<IssuesList my={8} />

<ButtonLink href="https://github.com/ethereum/ethereum-org-website/issues">Tüm görevleri gör</ButtonLink>

Expand Down
2 changes: 1 addition & 1 deletion public/content/translations/uk/contributing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Ethereum.org — це проєкт із відкритим вихідним ко

Ось кілька поточних завдань, у вирішенні яких ви могли б нам допомогти та взяти на себе відповідальність. Для більшості з них вам знадобиться обліковий запис GitHub, оскільки більшість змін на сайті вносяться через GitHub.

<IssuesList issues={gfissues} my={8} />
<IssuesList my={8} />

<ButtonLink href="https://github.com/ethereum/ethereum-org-website/issues">Переглянути всі завдання</ButtonLink>

Expand Down
2 changes: 1 addition & 1 deletion public/content/translations/ur/contributing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Ethereum.org ایک اوپن سورس پروجیکٹ ہے جس میں **12,000+*

یہ کچھ موجودہ ٹاسکس ہیں جنہیں حل کرنے اور ان کی ذمہ داری لینے میں آپ ہماری مدد کر سکتے ہیں۔ زیادہ تر کے لیے آپ کو GitHub اکاؤنٹ کی ضرورت ہوگی کیونکہ ویب سائٹ میں زیادہ تر تبدیلیاں GitHub کے ذریعے کی جاتی ہیں۔

<IssuesList issues={gfissues} my={8} />
<IssuesList my={8} />

<ButtonLink href="https://github.com/ethereum/ethereum-org-website/issues">تمام ٹاسکس دیکھیں</ButtonLink>

Expand Down
2 changes: 1 addition & 1 deletion public/content/translations/vi/contributing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Có thắc mắc? 🤔 Tham gia [máy chủ Discord](https://discord.gg/ethereum

Dưới đây là một số nhiệm vụ có sẵn mà bạn có thể giúp chúng tôi làm và nhận việc. Phần lớn yêu cầu bạn có tài khoản GitHub vì hầu hết thay đổi trên trang web được thực hiện qua GitHub.

<IssuesList issues={gfissues} my={8} />
<IssuesList my={8} />

<ButtonLink href="https://github.com/ethereum/ethereum-org-website/issues">Xem tất cả các nhiệm vụ</ButtonLink>

Expand Down
2 changes: 1 addition & 1 deletion public/content/translations/zh-tw/contributing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Ethereum.org 是一個開源專案,擁有 **12,000+** 名貢獻者,他們協

目前這裡有些你可以助我們解決並負責的任務。 大致上說你將需要 GitHub 帳戶,因為幾乎所有網站變更都是透過 GitHub 進行的。

<IssuesList issues={gfissues} my={8} />
<IssuesList my={8} />

<ButtonLink href="https://github.com/ethereum/ethereum-org-website/issues">查看所有任務</ButtonLink>

Expand Down
2 changes: 1 addition & 1 deletion public/content/translations/zh/contributing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Ethereum.org 是一个开源项目,有 **12,000** 多名贡献者帮助翻译

这些是你目前可以帮助我们解决和承担的部分任务。 对于大多数用户,你需要 GitHub 帐户,因为对网站的大多数更改都是通过 GitHub 进行的。

<IssuesList issues={gfissues} my={8} />
<IssuesList my={8} />

<ButtonLink href="https://github.com/ethereum/ethereum-org-website/issues">查看所有任务</ButtonLink>

Expand Down
16 changes: 12 additions & 4 deletions src/components/IssuesList/index.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
import Emoji from "react-emoji-render"

import type { GHIssue } from "@/lib/types"

import Emoji from "@/components/Emoji"

import { cn } from "@/lib/utils/cn"

import { getGFIs } from "@/data-layer"

import { Avatar } from "../ui/avatar"
import { Flex, HStack, Stack } from "../ui/flex"
import InlineLink from "../ui/Link"
import { Tag } from "../ui/tag"

type IssuesListProps = {
issues: GHIssue[]
className?: string
}

const IssuesList = ({ issues, className }: IssuesListProps) => {
const IssuesList = async ({ className }: IssuesListProps) => {
let issues: GHIssue[] = []
try {
issues = (await getGFIs()) ?? []
} catch (error) {
console.warn("Failed to fetch GFIs for IssuesList:", error)
}

return (
<div
className={cn("my-7 grid gap-4 sm:grid-cols-1 lg:grid-cols-2", className)}
Expand Down
3 changes: 0 additions & 3 deletions src/lib/md/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,11 @@ export const compile = async ({
slugArray,
locale,
components = {},
scope = {},
}: {
markdown: string
slugArray: string[]
locale: string
components: MDXRemoteProps["components"]
scope?: Record<string, unknown>
}) => {
let tocNodeItems: TocNodeType[] = []
const tocCallback = (toc: TocNodeType): void => {
Expand Down Expand Up @@ -57,7 +55,6 @@ export const compile = async ({
options: {
parseFrontmatter: true,
mdxOptions,
scope,
},
})

Expand Down
3 changes: 0 additions & 3 deletions src/lib/md/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ interface GetPageDataParams {
baseComponents: MDXRemoteProps["components"]
componentsMapping: Record<Layout, MDXRemoteProps["components"]>
layout?: Layout
scope?: Record<string, unknown>
}

interface PageData {
Expand All @@ -37,7 +36,6 @@ export async function getPageData({
baseComponents,
componentsMapping,
layout: layoutFromProps,
scope,
}: GetPageDataParams): Promise<PageData> {
const slugArray = slug.split("/")

Expand All @@ -59,7 +57,6 @@ export async function getPageData({
slugArray,
locale,
components,
scope,
})

// Process TOC items
Expand Down
Loading