Skip to content

Commit b157cdb

Browse files
authored
Merge branch 'main' into chore/update-copyright-2026
2 parents d1a6d1c + 5beadee commit b157cdb

File tree

19 files changed

+439
-44
lines changed

19 files changed

+439
-44
lines changed

docusaurus.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,12 @@ const config = {
764764
apiKey: 'b4e925aa9bf05e5bef2e40b3ee6ee431',
765765
indexName: 'mmdocs',
766766
contextualSearch: false,
767+
translations: {
768+
button: {
769+
buttonText: 'Search or Ask AI',
770+
buttonAriaLabel: 'Search or Ask AI',
771+
},
772+
},
767773
askAi: {
768774
assistantId: 'REak1eiP5wfp',
769775
},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"typecheck-staged": "tsc-files --noEmit",
1818
"lint": "npm run lint:js && npm run lint:style",
1919
"lint:js": "eslint . --max-warnings=5",
20-
"lint:style": "stylelint 'src/**/*.css' --fix",
20+
"lint:style": "stylelint \"src/**/*.css\" --fix",
2121
"lint:fix": "npm run lint:js -- --fix",
2222
"format": "prettier --write '{blog,docs,src}/**/*.{md,mdx,ts,js,tsx,jsx,json}'"
2323
},

services/tutorials/ethereum/send-a-transaction/send-a-transaction-ethers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ You can search for the transaction on a block explorer such as [Sepolia Ethersca
166166
To change default values, update the `signer.sendTransaction` method to include an `estimateGas` result:
167167

168168
```javascript title="eip1559_tx.js"
169-
const limit = provider.estimateGas({
169+
const limit = await provider.estimateGas({
170170
from: signer.address,
171171
to: "<to_address_goes_here>",
172172
value: ethers.utils.parseUnits("0.001", "ether"),

src/components/AuthLogin/AuthModal.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,9 @@ const AuthModal = ({
250250
const projectsResponse = await fetch(`${DASHBOARD_URL}/api/v1/users/${userId}/projects`, {
251251
...REQUEST_PARAMS('GET', { Authorization: `Bearer ${token}` }),
252252
})
253+
if (!projectsResponse.ok) {
254+
throw new Error(`Failed to fetch projects: ${projectsResponse.status} ${projectsResponse.statusText}`)
255+
}
253256
const {
254257
result: { projects },
255258
} = await projectsResponse.json()
@@ -259,6 +262,9 @@ const AuthModal = ({
259262
const uksUserRawResp = await fetch(`${DASHBOARD_URL}/api/v1/users/${userId}`, {
260263
...REQUEST_PARAMS('GET', { Authorization: `Bearer ${token}` }),
261264
})
265+
if (!uksUserRawResp.ok) {
266+
throw new Error(`Failed to fetch user info: ${uksUserRawResp.status} ${uksUserRawResp.statusText}`)
267+
}
262268
const {
263269
result: {
264270
servicePlan: { tier },

src/components/CopyPageButton/CopyPageButton.module.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
min-height: 48px; /* Ensure minimum height for button */
66
}
77

8-
@media (min-width: 997px) {
8+
@media (width >= 997px) {
99
.h1Wrapper h1 {
1010
/* Don't override the default H1 margin-bottom */
11+
1112
/* Add padding-right to prevent text from going under the button */
1213
padding-right: 180px;
1314
}
@@ -71,7 +72,7 @@
7172
backdrop-filter: blur(10px);
7273
}
7374

74-
@media (max-width: 996px) {
75+
@media (width <= 996px) {
7576
.container {
7677
display: none;
7778
}

src/components/TutorialsPage/styles.module.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -686,8 +686,7 @@ html[data-theme='dark'] mark {
686686

687687
.buttonGroup {
688688
width: 100%;
689-
overflow-x: auto;
690-
overflow-y: hidden;
689+
overflow: auto hidden;
691690
-webkit-overflow-scrolling: touch;
692691
}
693692

src/lib/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ export const GET_OPTIONS = {
447447

448448
export const REF_SERVICES_PATH = '/services/reference/'
449449
export const REF_WALLET_PATH = '/wallet/reference/'
450-
export const REF_FAUCET_PATH = '/developer-tools/faucet/'
450+
export const REF_FAUCET_PATH = '/developer-tools/faucet'
451451

452452
export const REF_ALLOW_LOGIN_PATH = [REF_SERVICES_PATH, REF_WALLET_PATH, REF_FAUCET_PATH]
453453

src/pages/quickstart/NavigationOverlay/NavigationOverlay.module.css

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -548,10 +548,7 @@ html[data-theme='dark'] .cardDescription {
548548
@media (width <=768px) {
549549
.overlayContainer {
550550
position: fixed;
551-
top: 0;
552-
left: 0;
553-
right: 0;
554-
bottom: 0;
551+
inset: 0;
555552
width: 100vw;
556553
height: 100vh;
557554
overflow: hidden;

src/pages/quickstart/styles.module.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
text-underline-offset: .4rem;
88
transition: color var(--ifm-transition-fast) var(--ifm-transition-timing-default);
99
}
10+
1011
.stepBody a:hover,
1112
.stepBody a:focus {
1213
color: var(--ifm-link-hover-color);

src/plugins/plugin-json-rpc.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,21 @@ const sortMethods = (items: MethodItem[], sortConfig = METHOD_SORT_CONFIG) => {
5353
async function fetchData(url: string, name: string): Promise<ResponseItem> {
5454
try {
5555
const response = await fetch(url, { method: 'GET' })
56+
if (!response.ok) {
57+
return {
58+
name,
59+
data: null,
60+
error: new Error(`HTTP error! status: ${response.status}`),
61+
}
62+
}
5663
const data = await response.json()
5764
return { name, data, error: false }
5865
} catch (error) {
59-
return { name, data: null, error: true }
66+
return {
67+
name,
68+
data: null,
69+
error: error instanceof Error ? error : new Error(String(error)),
70+
}
6071
}
6172
}
6273

0 commit comments

Comments
 (0)