Skip to content

Commit e6bab7a

Browse files
authored
Merge pull request #11945 from ethereum/master
Master -> staging
2 parents 88d1232 + ebba05d commit e6bab7a

File tree

5 files changed

+35
-7
lines changed

5 files changed

+35
-7
lines changed

public/.well-known/matrix/server

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"m.server": "matrix.ethereum.org:8448"
3+
}

public/.well-known/security.txt

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
-----BEGIN PGP SIGNED MESSAGE-----
2+
Hash: SHA256
3+
4+
Contact: mailto:[email protected]
5+
Expires: 2023-12-31T23:59:00.000Z
6+
Encryption: https://ethereum.org/security_at_ethereum.org.asc
7+
Acknowledgments: https://bounty.ethereum.org
8+
Preferred-Languages: en
9+
Canonical: https://ethereum.org/.well-known/security.txt
10+
Policy: https://bounty.ethereum.org
11+
Hiring: https://ethereum.org/en/community/get-involved/#ethereum-jobs
12+
13+
-----BEGIN PGP SIGNATURE-----
14+
15+
iQIzBAEBCAAdFiEErpbtlp5HmwCE8+F/6I0zNPpfagoFAmMV3bMACgkQ6I0zNPpf
16+
agrOjhAAgMDS9RJUbJzcAybRfp/STq4Kf50TFd3iqx/t8ECw5UGazefieHesOhZ5
17+
9B9l6VAIHEGqbm+ukkhT+eBofhkAGEupiH/rUTy3hpFo1Ggp9QGi464Y8RyB0hID
18+
BwjAsAVEdHyh8T6YrqxKRGvgELuEMZfuPfVhdIGU8CfEQozzuA9q3mChckXdTlSt
19+
TvOKTMdnNPMlEhp4dT93iQaXDBAncE48TkUi/c8U4qolkskuDhZ4qJkc7xcv5Uk4
20+
TfF83Xs87AF9ZmABWawlCx7VHhp0HGljtGUpobf2DXV0TG77/dZzMQ4xdyqvDq+v
21+
tm3djp3UHZVhOkDxMKpBzLnCkCvyvh/tvN4j/trdHHzXx6gEEkuiR5wPPoomCosi
22+
95AGNFf0vpe2HucL/bOrBySxME+hifAnmkiaXltLbyUUTBQPfkHMHMoq1dmPokm2
23+
4RZaZ1A/K7rirZLC4w/RmxONVqvxT0baFTcZGyKzYm6gEZ9kCwWw1tyEl472yK0H
24+
UR2cAhlo+Wa61cOTtwHVw0FMVyG0xZkR04y8WM3T8lE6imGLSmCDgPMZm8XnKdkY
25+
SMGD3+TzLxe6mymmw+1dGXCPjjkImdrhBGxlwEU74vkFQKiWv/GftiDYYcilcQbS
26+
OD1N7PTmpef+JEYXOpwxxUTSXu0SfVTSkx0wnHkqbib7Wwv5IwY=
27+
=g+49
28+
-----END PGP SIGNATURE-----

src/hooks/useClientSideGitHubContributors.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { useEffect, useState } from "react"
44

55
import type { Author, FileContributorsState } from "@/lib/types"
66

7-
import { GITHUB_COMMITS_URL, OLD_CONTENT_DIR } from "@/lib/constants"
7+
import { CONTENT_DIR,GITHUB_COMMITS_URL } from "@/lib/constants"
88

99
export const gitHubAuthHeaders = {
1010
headers: new Headers({
@@ -17,8 +17,7 @@ const fetchGitHubContributors = async (
1717
relativePath: string,
1818
): Promise<FileContributorsState> => {
1919
const url = new URL(GITHUB_COMMITS_URL)
20-
// TODO: OLD_CONTENT_DIR -> CONTENT_DIR for production
21-
const filePath = join(OLD_CONTENT_DIR, relativePath, "index.md")
20+
const filePath = join(CONTENT_DIR, relativePath, "index.md")
2221
url.searchParams.set("path", filePath)
2322

2423
try {

src/hooks/useClientSideGitHubLastEdit.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import { useRouter } from "next/router"
66
import type { Lang, LastUpdatedState } from "@/lib/types"
77

88
import {
9+
CONTENT_DIR,
910
DEFAULT_LOCALE,
1011
GITHUB_COMMITS_URL,
11-
OLD_CONTENT_DIR,
1212
} from "@/lib/constants"
1313

1414
import { gitHubAuthHeaders } from "@/hooks/useClientSideGitHubContributors"
@@ -18,12 +18,11 @@ const fetchGitHubLastEdit = async (
1818
locale?: Lang
1919
): Promise<LastUpdatedState> => {
2020
const url = new URL(GITHUB_COMMITS_URL)
21-
// TODO: OLD_CONTENT_DIR -> CONTENT_DIR for production
2221
const localePath =
2322
locale && locale !== DEFAULT_LOCALE
2423
? join("translations", locale, relativePath)
2524
: relativePath
26-
const filePath = join(OLD_CONTENT_DIR, localePath, "index.md")
25+
const filePath = join(CONTENT_DIR, localePath, "index.md")
2726
url.searchParams.set("path", filePath)
2827

2928
try {

src/lib/constants.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { ReportsModel } from "@crowdin/crowdin-api-client"
22

33
import i18nConfig from "../../i18n.config.json"
44

5-
export const OLD_CONTENT_DIR = "src/content"
65
export const CONTENT_DIR = "public/content"
76
export const TRANSLATIONS_DIR = "public/content/translations"
87
export const TRANSLATED_IMAGES_DIR = "/content/translations"

0 commit comments

Comments
 (0)