Skip to content

Commit b7a979a

Browse files
authored
Merge branch 'master' into add-contract-verification-checkbox
2 parents faca71e + 4737665 commit b7a979a

File tree

8 files changed

+44
-14
lines changed

8 files changed

+44
-14
lines changed

apps/learneth/src/pages/StepDetail/index.tsx

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,40 @@ function StepDetailPage() {
7272
)
7373
}
7474

75+
const VideoRenderer = ({
76+
node,
77+
src,
78+
alt,
79+
...props
80+
}: {
81+
node?: any;
82+
src?: string;
83+
alt?: string;
84+
[key: string]: any;
85+
}) => {
86+
if (alt === 'youtube') {
87+
/*
88+
<iframe width="560" height="315" src="https://www.youtube.com/embed/Eh1qgOurDxU?si=lz1JypmIJZ15OY4g" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
89+
*/
90+
return (
91+
<div className="position-relative overflow-hidden" style={{ paddingBottom: '56.25%', maxWidth: '100%', height: '0' }}>
92+
<iframe
93+
style={{ width: '100%', height: '100%', position: 'absolute', top: 0, left: 0 }}
94+
src={src}
95+
title="YouTube video player"
96+
frameBorder="0"
97+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
98+
allowFullScreen
99+
/>
100+
</div>
101+
);
102+
}
103+
if (alt === 'video') {
104+
return <video controls src={src} style={{ maxWidth: '100%' }} />;
105+
}
106+
return <img src={src} alt={alt} {...props} />;
107+
};
108+
75109
return (
76110
<div className='pb-4'>
77111
<div className="fixed-top">
@@ -104,7 +138,7 @@ function StepDetailPage() {
104138
</>
105139
)}
106140
<div className="container-fluid">
107-
<Markdown rehypePlugins={[rehypeRaw]}>{clonedStep.markdown?.content}</Markdown>
141+
<Markdown components={{ img:VideoRenderer }} rehypePlugins={[rehypeRaw]}>{clonedStep.markdown?.content}</Markdown>
108142
</div>
109143
{clonedStep.test?.content ? (
110144
<>

apps/remix-ide-e2e/src/tests/etherscan_api.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const tests = {
3333
.execute(() => {
3434
(document.querySelector('*[data-id="basic-http-providerModalDialogContainer-react"] input[data-id="modalDialogCustomPromp"]') as any).focus()
3535
}, [], () => {})
36-
.setValue('[data-id="modalDialogCustomPromp"]', 'https://go.getblock.io/ee42d0a88f314707be11dd799b122cb9') // sepolia
36+
.setValue('[data-id="modalDialogCustomPromp"]', 'https://go.getblock.io/7fbe62b139884d2c9c1616ca0de8b5b2') // sepolia
3737
.modalFooterOKClick('basic-http-provider')
3838
.clickLaunchIcon('solidity') // compile
3939
.testContracts('Owner_1.sol', { content: verifiedContract }, ['Owner'])

apps/remix-ide-e2e/src/tests/terminal.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ module.exports = {
247247
.execute(() => {
248248
(document.querySelector('*[data-id="basic-http-providerModalDialogContainer-react"] input[data-id="modalDialogCustomPromp"]') as any).focus()
249249
}, [], () => { })
250-
.setValue('[data-id="modalDialogCustomPromp"]', 'https://go.getblock.io/ee42d0a88f314707be11dd799b122cb9')
250+
.setValue('[data-id="modalDialogCustomPromp"]', 'https://go.getblock.io/7fbe62b139884d2c9c1616ca0de8b5b2')
251251
.modalFooterOKClick('basic-http-provider')
252252
.clickLaunchIcon('filePanel')
253253
.openFile('README.txt')
@@ -345,7 +345,7 @@ module.exports = {
345345
.execute(() => {
346346
(document.querySelector('*[data-id="vm-custom-forkModalDialogContainer-react"] input[data-id="CustomForkNodeUrl"]') as any).focus()
347347
}, [], () => { })
348-
.clearValue('*[data-id="CustomForkNodeUrl"]').pause(1000).setValue('*[data-id="CustomForkNodeUrl"]', 'https://go.getblock.io/ee42d0a88f314707be11dd799b122cb9')
348+
.clearValue('*[data-id="CustomForkNodeUrl"]').pause(1000).setValue('*[data-id="CustomForkNodeUrl"]', 'https://go.getblock.io/7fbe62b139884d2c9c1616ca0de8b5b2')
349349
.execute(() => {
350350
(document.querySelector('*[data-id="vm-custom-forkModalDialogContainer-react"] input[data-id="CustomForkBlockNumber"]') as any).focus()
351351
}, [], () => { })

apps/remix-ide-e2e/src/tests/transactionExecution.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ module.exports = {
343343
.perform(async (done) => {
344344
try {
345345
console.log('getting the provider up..')
346-
const provider = new JsonRpcProvider('https://go.getblock.io/56f8bc5187aa4ac696348f67545acf38')
346+
const provider = new JsonRpcProvider('https://go.getblock.io/1552e4e35bcf4efe8a78897cba5557f9')
347347
currentBlockNumber = (await provider.getBlockNumber()) as number
348348
console.log('getBlockNumber', currentBlockNumber)
349349
done()

apps/remix-ide/src/app/providers/mainnet-vm-fork-provider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class MainnetForkVMProvider extends BasicVMProvider {
1818
)
1919
this.blockchain = blockchain
2020
this.fork = 'prague'
21-
this.nodeUrl = 'https://go.getblock.io/56f8bc5187aa4ac696348f67545acf38'
21+
this.nodeUrl = 'https://go.getblock.io/1552e4e35bcf4efe8a78897cba5557f9'
2222
this.blockNumber = 'latest'
2323
}
2424

apps/remix-ide/src/app/providers/sepolia-vm-fork-provider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class SepoliaForkVMProvider extends BasicVMProvider {
1818
)
1919
this.blockchain = blockchain
2020
this.fork = 'prague'
21-
this.nodeUrl = 'https://go.getblock.io/ee42d0a88f314707be11dd799b122cb9'
21+
this.nodeUrl = 'https://go.getblock.io/7fbe62b139884d2c9c1616ca0de8b5b2'
2222
this.blockNumber = 'latest'
2323
}
2424

libs/remix-debug/src/init.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,8 @@ export function setProvider (web3, url) {
2222

2323
export function web3DebugNode (network) {
2424
const web3DebugNodes = {
25-
Main: 'https://go.getblock.io/56f8bc5187aa4ac696348f67545acf38',
26-
Holesky: 'https://go.getblock.io/7b91c53809fb49c787087e02ef84820b',
27-
Rinkeby: 'https://remix-rinkeby.ethdevops.io',
28-
Ropsten: 'https://remix-ropsten.ethdevops.io',
29-
Goerli: 'https://remix-goerli.ethdevops.io',
30-
Sepolia: 'https://go.getblock.io/ee42d0a88f314707be11dd799b122cb9'
25+
Main: 'https://go.getblock.io/1552e4e35bcf4efe8a78897cba5557f9',
26+
Sepolia: 'https://go.getblock.io/7fbe62b139884d2c9c1616ca0de8b5b2'
3127
}
3228
if (web3DebugNodes[network]) {
3329
return loadWeb3(web3DebugNodes[network])

libs/remix-lib/src/helpers/aaConstants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { ZeroAddress } from 'ethers'
44
export const aaSupportedNetworks = {
55
"11155111": {
66
name: "sepolia",
7-
publicNodeUrl: "https://go.getblock.io/ee42d0a88f314707be11dd799b122cb9"
7+
publicNodeUrl: "https://go.getblock.io/7fbe62b139884d2c9c1616ca0de8b5b2"
88
},
99
"100": {
1010
name: "gnosis",

0 commit comments

Comments
 (0)