pull/4302/head
lianahus 12 months ago committed by yann300
parent 081565c081
commit 1e44586e2e
  1. 2
      apps/etherscan/src/app/components/HeaderWithSettings.tsx
  2. 20
      apps/remix-ide-e2e/src/tests/walkthrough.test.ts
  3. 1
      apps/remix-ide/src/app/tabs/locales/en/udapp.json
  4. 121
      apps/remix-ide/src/app/tabs/locales/fr/home.json
  5. 1
      apps/remix-ide/src/walkthroughService.js
  6. 20
      libs/remix-ui/run-tab/src/lib/components/recorderCardUI.tsx
  7. 10
      libs/remix-ui/solidity-unit-testing/src/lib/solidity-unit-testing.tsx
  8. 1
      package.json

@ -67,7 +67,7 @@ const SettingsIcon: React.FC<IconProps> = ({from}: IconProps) => {
)
}
export const HeaderWithSettings: React.FC<Props> = ({title = '', from}) => {
export const HeaderWithSettings: React.FC<Props> = ({title = '', from}) => {
return (
<AppContext.Consumer>
{() => (

@ -0,0 +1,20 @@
'use strict'
import { NightwatchBrowser } from 'nightwatch'
import init from '../helpers/init'
module.exports = {
before: function (browser: NightwatchBrowser, done: VoidFunction) {
init(browser, done)
},
'Should run walkthrough for recorder': function (browser: NightwatchBrowser) {
browser
.waitForElementPresent('*[data-id="remixIdeSidePanel"]')
.clickLaunchIcon('udapp')
.waitForElementPresent('*[data-id="recorderStartWalkthrough"]')
.click('*[data-id="recorderStartWalkthrough"]')
.waitForElementPresent('*[id="remixRecorderWalkthrowTitle"]')
.waitForElementPresent('*[id="remixRecorderExpanded"]')
}
}

@ -76,6 +76,7 @@
"udapp.transactionSaveTooltip1": "No transactions to save",
"udapp.transactionSaveTooltip2": "Save {count} transaction as scenario file",
"udapp.transactionSaveTooltip3": "Save {count} transactions as scenario file",
"udapp.transactionsWalkthroughTooltip": "Start walkthrough tour for recorder.",
"udapp.infoRecorderTooltip": "Save transactions (deployed contracts and function executions) and replay them in another environment e.g Transactions created in Remix VM can be replayed in the Injected Provider.",
"udapp.livemodeRecorderTooltip": "If contracts are updated after recording transactions, checking this box will run recorded transactions with the latest copy of the compiled contracts",
"udapp.livemodeRecorderLabel": "Run transactions using the latest compilation result",

@ -1,66 +1,61 @@
{
"home.scamAlert": "Alerte arnaque",
"home.scamAlertText": "Le seul URL utilisé par Remix est remix.ethereum.org",
"home.scamAlertText2": "Méfiez-vous des vidéos en ligne qui font la promotion de \"front-runner bots\"",
"home.scamAlertText3": "Conseils de sécurité supplémentaires",
"home.learnMore": "En savoir plus",
"home.here": "ici",
"home.featured": "Recommandé",
"home.jumpIntoWeb3": "JUMP INTO WEB3",
"home.jumpIntoWeb3More": "More",
"home.jumpIntoWeb3Text": "Remix IDE is part of the Remix Project, a rich toolset that can be used for the entire journey of contract development by users of any knowledge level. Learn more on the Remix Project website.",
"home.remixYouTube": "REGARDER POUR APPRENDRE",
"home.remixYouTubeText1": "Conseils vidéo de l'équipe de Remix",
"home.remixYouTubeMore": "Regarder",
"home.remixYouTubeText2": "Remix a une bibliothèque grandissante de vidéos contenant beaucoup de conseils pour utiliser l'outil. Vérifiez-les et abonnez-vous pour obtenir nos dernieres vidéos.",
"home.betaTesting": "Tests BETA",
"home.betaTestingText1": "Notre communauté nous soutient.",
"home.betaTestingText2": "Aidez-nous à tester les versions bêta dès maintenant et à gérer les nouvelles fonctionnalités !",
"home.betaTestingMore": "S'inscrire",
"home.featuredPlugins": "Plugins recommandés",
"home.solidityPluginDesc": "Compiler, tester et analyser les smart contrats.",
"home.cookbookDesc": "Trouvez des smarts contrats, des bibliothèques solidity et découvrez des protocoles.",
"home.codeAnalyizerPluginDesc": "Analysez votre code en utilisant Remix, Solhint et Slither.",
"home.starkNetPluginDesc": "Compiler et déployer des contrats avec Cairo, le language natif pour StarkNet.",
"home.solhintPluginDesc": "Solhint est un projet open source de linter pour code solidity.",
"home.sourcifyPluginDesc": "Service de vérification de contract solidity et des métadonnées.",
"home.unitTestPluginDesc": "Écrire et exécuter des tests unitaires pour vos contrats en Solidity.",
"home.dgitPluginDesc": "Ajoutez le contrôle source à vos projets.",
"home.oneClickDappDesc": "Générer rapidement des interfaces smart contract",
"home.getStarted": "Démarrer",
"home.projectTemplates": "Template de projet",
"home.blankTemplateDesc": "Créer un espace de travail vide.",
"home.remixDefaultTemplateDesc": "Créer un espace de travail avec des exemples de fichiers.",
"home.ozerc20TemplateDesc": "Créer un token ERC20 en important la bibliothèque OpenZeppelin.",
"home.ozerc721TemplateDesc": "Créez un token NFT en important la bibliothèque OpenZeppelin.",
"home.ozerc1155TemplateDesc": "Créez un token ERC1155 en important la bibliothèque OpenZeppelin.",
"home.gnosisSafeMultisigTemplateDesc": "Créer des allet multi-signatures en utilisant ce modèle.",
"home.zeroxErc20TemplateDesc": "Créez un token ERC20 en important le contrat 0xProject.",
"home.learn": "Apprendre",
"home.learnEth1": "Bases de remix",
"home.learnEth1Desc": "Une introduction à l'interface de Remix et aux opérations de base.",
"home.learnEth2": "Introduction à Solidity",
"home.learnEth2Desc": "Apprenez de façon interactive les concepts de base de Solidity.",
"home.remixAdvanced": "Déploiement avec les librairies",
"home.remixAdvancedDesc": "Apprendre à déployer avec les librairies dans Remix",
"home.remixYoutubePlaylist": "Playlist Youtube de Remix",
"home.remixTwitterProfile": "Profile Twitter de Remix",
"home.remixLinkedinProfile": "Profil Linkedin de Remix",
"home.remixMediumPosts": "Articles Medium de Remix",
"home.joinUsOnDiscord": "Rejoignez-nous sur Discord",
"home.nativeIDE": "L’IDE natif pour le développement Web3.",
"home.website": "Site Web",
"home.scamAlert": "Scam Alert",
"home.scamAlertText": "The only URL Remix uses is remix.ethereum.org",
"home.scamAlertText2": "Beware of online videos promoting \"liquidity front runner bots\"",
"home.scamAlertText3": "Additional safety tips",
"home.learnMore": "Learn more",
"home.here": "here",
"home.featured": "Featured",
"home.jumpIntoWeb3": "WE NEED YOUR HELP",
"home.jumpIntoWeb3More": "Go to survey",
"home.jumpIntoWeb3Text": "Remixers... Have a spare moment? Please help us improve your Remix experience with this one-minute survey.",
"home.remixYouTube": "WATCH TO LEARN",
"home.remixYouTubeText1": "Video Tips from the Remix Team",
"home.remixYouTubeMore": "Watch",
"home.remixYouTubeText2": "Remix has a growing library of videos containing lots of tips for using the tool. Check them out and subscribe to get our latest uploads.",
"home.betaTesting": "BETA TESTING",
"home.betaTestingText1": "Our community supports us.",
"home.betaTestingText2": "Help us beta test releases now and get a handle on new features!",
"home.betaTestingMore": "Sign up",
"home.featuredPlugins": "Featured Plugins",
"home.solidityPluginDesc": "Compile, test, and analyze smart contracts.",
"home.starkNetPluginDesc": "Compile and deploy contracts with Cairo, a native language for StarkNet.",
"home.solhintPluginDesc": "Solhint is an open source project for linting Solidity code.",
"home.sourcifyPluginDesc": "Solidity contract and metadata verification service.",
"home.unitTestPluginDesc": "Write and run unit tests for your contracts in Solidity.",
"home.dgitPluginDesc": "Add source control to your projects.",
"home.oneClickDappDesc": "Quickly generate smart contract interfaces",
"home.getStarted": "Get Started",
"home.projectTemplates": "Project Templates",
"home.blankTemplateDesc": "Create an empty workspace.",
"home.remixDefaultTemplateDesc": "Create a workspace with sample files.",
"home.ozerc20TemplateDesc": "Create an ERC20 token by importing OpenZeppelin library.",
"home.ozerc721TemplateDesc": "Create an NFT token by importing OpenZeppelin library.",
"home.ozerc1155TemplateDesc": "Create an ERC1155 token by importing OpenZeppelin library.",
"home.gnosisSafeMultisigTemplateDesc": "Create Multi-Signature wallets using this template.",
"home.zeroxErc20TemplateDesc": "Create an ERC20 token by importing 0xProject contract.",
"home.learn": "Learn",
"home.learnEth1": "Remix Basics",
"home.learnEth1Desc": "An introduction to Remix's interface and basic operations.",
"home.learnEth2": "Intro to Solidity",
"home.learnEth2Desc": "Interactively learn Solidity beginner concepts.",
"home.remixAdvanced": "Deploying with Libraries",
"home.remixAdvancedDesc": "Learn to deploy with libraries in Remix",
"home.remixYoutubePlaylist": "Remix Youtube Playlist",
"home.remixTwitterProfile": "Remix Twitter Profile",
"home.remixLinkedinProfile": "Remix Linkedin Profile",
"home.remixMediumPosts": "Remix Medium Posts",
"home.remixGitterChannel": "Join us on Discord",
"home.nativeIDE": "The Native IDE for Web3 Development.",
"home.website": "Website",
"home.documentation": "Documentation",
"home.remixPlugin": "Plugin Remix",
"home.remixDesktop": "Version Desktop de Remix",
"home.searchDocumentation": "Rechercher dans la documentation",
"home.files": "Fichiers",
"home.newFile": "Nouveau Fichier",
"home.openFile": "Ouvrir Fichier",
"home.accessFileSystem": "Accéder au système de fichiers",
"home.loadFrom": "Charger de",
"home.resources": "Ressources",
"home.connectToLocalhost": "Se connecter à Localhost",
"home.seeAllTutorials": "Voir tous les tutoriels",
"home.maintainedByRemix": "Maintenu par Remix"
"home.remixPlugin": "Remix Plugin",
"home.remixDesktop": "Remix Desktop",
"home.searchDocumentation": "Search Documentation",
"home.files": "Files",
"home.newFile": "New File",
"home.openFile": "Open File",
"home.connectToLocalhost": "Access File System",
"home.loadFrom": "Load from",
"home.resources": "Resources"
}

@ -70,6 +70,7 @@ export class WalkthroughService extends Plugin {
header.classList.add('justify-content-between')
header.classList.add('text-nowrap')
header.classList.add('pr-0')
header.id="remixRecorderWalkthrowTitle"
}
const skipbutton = document.getElementsByClassName('introjs-skipbutton')[0]
if (skipbutton) {

@ -50,7 +50,21 @@ export function RecorderUI(props: RecorderProps) {
{props.count}
</div>
</CustomTooltip>
<i style={{fontSize: 'medium'}} className={'ml-2 fal fa-info-circle align-self-center'} aria-hidden="true" onClick={() => startWalkthrough()}></i>
<CustomTooltip
placement={'right'}
tooltipClasses="text-nowrap"
tooltipId="recordedTransactionsWalkthroughtooltip"
tooltipText={<FormattedMessage id="udapp.transactionsWalkthroughTooltip" />}
>
<i
style={{fontSize: 'medium'}}
className={'ml-2 fal fa-info-circle align-self-center'}
aria-hidden="true"
onClick={() => startWalkthrough()}
data-id="recorderStartWalkthrough"
>
</i>
</CustomTooltip>
</div>
<div className="p-3">
<span data-id="udappRecorderTitleExpander" onClick={toggleClass}>
@ -58,7 +72,7 @@ export function RecorderUI(props: RecorderProps) {
</span>
</div>
</div>
<div className={`pb-2 flex-column ${toggleExpander ? 'd-flex' : 'd-none'}`}>
{ toggleExpander && <div className={`pb-2 flex-column ${toggleExpander ? 'd-flex' : 'd-none'}`} data-id='remixRecorderExpanded'>
<div className="mb-1 mt-1 custom-control custom-checkbox mb-1" id='udappRecorderUseLatest'>
<input ref={inputLive} type="checkbox" id="livemode-recorder" className="custom-control-input custom-select" name="input-livemode" />
<CustomTooltip
@ -112,7 +126,7 @@ export function RecorderUI(props: RecorderProps) {
</button>
</CustomTooltip>
</div>
</div>
</div>}
</div>
)
}

@ -189,9 +189,13 @@ export const SolidityUnitTesting = (props: Record<string, any>) => {
}, []) // eslint-disable-line
const updateDirList = (path: string) => {
testTabLogic.dirList(path).then((options: string[]) => {
setPathOptions(options)
})
try {
testTabLogic.dirList(path).then((options: string[]) => {
setPathOptions(options)
})
} catch {
console.log("No test directory has been found in the workspace.")
}
}
const handleTestDirInput = async (e: any) => {

@ -103,6 +103,7 @@
"nightwatch_local_stress_editor": "yarn run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js dist/apps/remix-ide-e2e/src/tests/stressEditor.test.js --env=chromeDesktop",
"nightwatch_local_search": "yarn run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js dist/apps/remix-ide-e2e/src/tests/search.test.js --env=chromeDesktop",
"nightwatch_local_providers": "yarn run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js dist/apps/remix-ide-e2e/src/tests/providers.test.js --env=chromeDesktop",
"nightwatch_local_walkthrough": "yarn run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js dist/apps/remix-ide-e2e/src/tests/walkthrough.test.js --env=chromeDesktop",
"onchange": "onchange apps/remix-ide/build/app.js -- npm-run-all lint",
"remixd": "nx build remixd && chmod +x dist/libs/remixd/src/bin/remixd.js && dist/libs/remixd/src/bin/remixd.js --remix-ide http://127.0.0.1:8080",
"simulator": "nx build remix-simulator && chmod +x dist/libs/remix-simulator/bin/ethsim && dist/libs/remix-simulator/bin/ethsim start --rpc",

Loading…
Cancel
Save