Skip to content

Commit

Permalink
Merge branch 'master' into LianaHus-patch-7
Browse files Browse the repository at this point in the history
  • Loading branch information
LianaHus authored Nov 21, 2023
2 parents a4f839a + 324fb71 commit 6c8e01f
Show file tree
Hide file tree
Showing 14 changed files with 44 additions and 24 deletions.
10 changes: 5 additions & 5 deletions apps/remix-ide/src/assets/css/themes/bootstrap-cyborg.min.css
Original file line number Diff line number Diff line change
Expand Up @@ -284,19 +284,19 @@ template {
color:#fff
}
.h1,h1 {
font-size:4rem
font-size:3rem
}
.h2,h2 {
font-size:3rem
font-size:2.5rem
}
.h3,h3 {
font-size:2.5rem
font-size:2rem
}
.h4,h4 {
font-size:2rem
font-size:1.6rem
}
.h5,h5 {
font-size:1.5rem
font-size:1.3rem
}
.h6,h6 {
font-size:.875rem
Expand Down
Binary file added apps/remix-ide/src/assets/img/gnosissafeLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/remix-ide/src/assets/img/openzeppelinLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/remix-ide/src/assets/img/oxprojectLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion apps/remix-ide/src/blockchain/execution-context.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const _paq = window._paq = window._paq || []

let web3

const config = { defaultTransactionType: '0x0' }
const config = { defaultTransactionType: '0x0', ignoreGasPricing: true }
if (typeof window !== 'undefined' && typeof window.ethereum !== 'undefined') {
var injectedProvider = window.ethereum
web3 = new Web3(injectedProvider)
Expand Down
2 changes: 1 addition & 1 deletion libs/ghaction-helper/src/methods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const providerConfig = {
blockNumber: global.blockNumber || null
}

const config = { defaultTransactionType: '0x0' }
const config = { defaultTransactionType: '0x0', ignoreGasPricing: true }
global.remixProvider = new Provider(providerConfig)
global.remixProvider.init()
global.web3Provider = new ethers.providers.Web3Provider(global.remixProvider)
Expand Down
2 changes: 2 additions & 0 deletions libs/remix-lib/src/execution/typeConversion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ function convertToString (v) {
return ret
} else if (BN.isBN(v) || (v.constructor && v.constructor.name === 'BigNumber') || isBigInt(v)) {
return v.toString(10)
} else if (v._isBigNumber) {
return toInt(v._hex)
} else if (v._isBuffer) {
return bufferToHex(v)
} else if (typeof v === 'object') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ function HomeTabFeaturedPlugins({plugin}: HomeTabFeaturedPluginsProps) {
}
const startCookbook = async () => {
await plugin.appManager.activatePlugin(['cookbookdev'])
plugin.verticalIcons.select('cookbook.dev')
_paq.push(['trackEvent', 'hometabActivate', 'userActivate', 'cookbook.dev'])
plugin.verticalIcons.select('cookbookdev')
_paq.push(['trackEvent', 'hometabActivate', 'userActivate', 'cookbookdev'])
}
const startSolidityUnitTesting = async () => {
await plugin.appManager.activatePlugin(['solidity', 'solidityUnitTesting'])
Expand Down
18 changes: 12 additions & 6 deletions libs/remix-ui/home-tab/src/lib/components/homeTabGetStarted.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,48 +106,54 @@ function HomeTabGetStarted({plugin}: HomeTabGetStartedProps) {
>
<WorkspaceTemplate
gsID="sUTLogo"
workspaceTitle="Gnosis Safe MultiSig"
workspaceTitle="MultiSig"
description={
intl.formatMessage({ id: 'home.gnosisSafeMultisigTemplateDesc' })
}
projectLogo="assets/img/gnosissafeLogo.png"
callback={() => createWorkspace("gnosisSafeMultisig")}
/>
<WorkspaceTemplate
gsID="sUTLogo"
workspaceTitle="0xProject ERC20"
workspaceTitle="ERC20"
description={
intl.formatMessage({ id: 'home.zeroxErc20TemplateDesc' })
}
projectLogo="assets/img/oxprojectLogo.png"
callback={() => createWorkspace("zeroxErc20")}
/>
<WorkspaceTemplate
gsID="sourcifyLogo"
workspaceTitle="OpenZeppelin ERC20"
workspaceTitle="ERC20"
description={intl.formatMessage({id: 'home.ozerc20TemplateDesc'})}
projectLogo="assets/img/openzeppelinLogo.png"
callback={() => createWorkspace('ozerc20')}
/>
<WorkspaceTemplate
gsID="sUTLogo"
workspaceTitle="OpenZeppelin ERC721"
workspaceTitle="ERC721"
description={intl.formatMessage({
id: 'home.ozerc721TemplateDesc'
})}
projectLogo="assets/img/openzeppelinLogo.png"
callback={() => createWorkspace("ozerc721")}
/>
<WorkspaceTemplate
gsID="sUTLogo"
workspaceTitle="OpenZeppelin ERC1155"
workspaceTitle="ERC1155"
description={intl.formatMessage({
id: 'home.ozerc1155TemplateDesc'
})}
projectLogo="assets/img/openzeppelinLogo.png"
callback={() => createWorkspace("ozerc1155")}
/>
<WorkspaceTemplate
gsID="solhintLogo"
workspaceTitle="Remix Basic"
workspaceTitle="Basic"
description={intl.formatMessage({
id: 'home.remixDefaultTemplateDesc'
})}
projectLogo="assets/img/remixverticaltextLogo.png"
callback={() => createWorkspace("remixDefault")}
/>
</Carousel>
Expand Down
21 changes: 16 additions & 5 deletions libs/remix-ui/home-tab/src/lib/components/workspaceTemplate.tsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,34 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import React, {useContext} from 'react'
import {CustomTooltip} from '@remix-ui/helper'
import {ThemeContext} from '../themeContext'

interface WorkspaceTemplateProps {
gsID: string
workspaceTitle: string
projectLogo: string
callback: any
description: string
}

function WorkspaceTemplate({gsID, workspaceTitle, description, callback}: WorkspaceTemplateProps) {
function WorkspaceTemplate({gsID, workspaceTitle, description, projectLogo, callback}: WorkspaceTemplateProps) {
const themeFilter = useContext(ThemeContext)

console.log("theme ", themeFilter)
return (
<div className="d-flex remixui_home_workspaceTemplate">
<button
className="btn border-secondary p-1 d-flex flex-column text-nowrap justify-content-center align-items-center mr-2 remixui_home_workspaceTemplate"
className="btn border-secondary p-1 d-flex flex-column text-nowrap justify-content-center mr-2 remixui_home_workspaceTemplate"
data-id={'landingPageStart' + gsID}
onClick={() => callback()}
>
<div className="mb-2 w-100 p-2 h-100 align-items-start d-flex flex-column">
<label className="h6 pb-1 text-uppercase text-dark remixui_home_cursorStyle">{workspaceTitle}</label>
<div className="remixui_home_gtDescription">{description}</div>
<div className="w-100 p-1 h-100 align-items-center d-flex flex-column">
<CustomTooltip placement={'top'} tooltipClasses="text-wrap" tooltipId="etherscan-receipt-proxy-status" tooltipText={description}>
<div className='d-flex flex-column align-items-center'>
<label className="h5 pb-1 mt-1 text-uppercase remixui_home_cursorStyle" style={{color: themeFilter.name == "dark" ? "var(--white)" : "var(--black)"}}>{workspaceTitle}</label>
<img className="" src={projectLogo} alt="" style={{height: "20px", width: "fit-content", filter: themeFilter.name == "dark" ? "invert(1)" : "invert(0)"}} />
</div>
</CustomTooltip>
</div>
</button>
</div>
Expand Down
4 changes: 2 additions & 2 deletions libs/remix-ui/home-tab/src/lib/remix-ui-home-tab.css
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@
text-align: left;
}
.remixui_home_cursorStyle {
cursor: pointer;
font-size: 0.8rem;
cursor: pointer;
font-weight: 900;
}
.remixui_home_envButton {
width: 220px;
Expand Down
2 changes: 1 addition & 1 deletion libs/remix-ui/terminal/src/lib/components/Context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const Context = ({opts, provider}: {opts; provider: string}) => {
const i = data.receipt ? data.transactionIndex : data.transactionIndex
const value = val ? typeConversion.toInt(val) : 0

if (provider.startsWith('vm')) {
if (provider && provider.startsWith('vm')) {
return (
<div>
<span>
Expand Down
3 changes: 2 additions & 1 deletion libs/remix-url-resolver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"dependencies": {
"@erebos/bzz-node": "^0.13.0",
"axios": "1.2.2",
"semver": "^7.5.4",
"url": "^0.11.0",
"valid-url": "^1.0.9"
},
Expand All @@ -41,4 +42,4 @@
},
"typings": "src/index.d.ts",
"gitHead": "b8606fe2db170b6ef7cdd19b498db74cf2fb14b1"
}
}

0 comments on commit 6c8e01f

Please sign in to comment.