diff --git a/apps/remix-ide/src/index.css b/apps/remix-ide/src/index.css index 8396f022e70..c8e34313c1d 100644 --- a/apps/remix-ide/src/index.css +++ b/apps/remix-ide/src/index.css @@ -19,4 +19,4 @@ font-size: 0.8rem; font-weight: normal; max-width: 300px; -} \ No newline at end of file +} diff --git a/apps/remix-ide/src/walkthroughService.js b/apps/remix-ide/src/walkthroughService.js index 67bb850a8c5..8eda4f74340 100644 --- a/apps/remix-ide/src/walkthroughService.js +++ b/apps/remix-ide/src/walkthroughService.js @@ -7,14 +7,14 @@ const profile = { displayName: 'Walkthrough', description: 'Remix walkthrough for beginner', version: packageJson.version, - methods: ['start'] + methods: ['start', 'startRecorderW'] } export class WalkthroughService extends Plugin { constructor (appManager, showWalkthrough) { super(profile) - let readyToStart = 0; - /*appManager.event.on('activate', (plugin) => { + /*let readyToStart = 0; + appManager.event.on('activate', (plugin) => { if (plugin.name === 'udapp') readyToStart++ if (readyToStart == 2 && showWalkthrough) { this.start() @@ -28,6 +28,58 @@ export class WalkthroughService extends Plugin { })*/ } + startRecorderW () { + introJs().setOptions({ + steps: [{ + title: 'Transactions Recorder', + intro: '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.Click to launch the Home tab that contains links, tips, and shortcuts..', + element: document.querySelector('#udappRecorderCard'), + tooltipClass: 'bg-light text-dark', + position: 'right', + highlightClass: 'bg-light border border-warning' + }, + { + element: document.querySelector('#udappRecorderUseLatest'), + title: 'Transactions Recorder', + intro: 'If set the recorder will run transactions using the latest compilation result.', + tooltipClass: 'bg-light text-dark', + position: 'right', + highlightClass: 'bg-light border border-warning' + }, + { + element: document.querySelector('#udappRecorderSave'), + title: 'Transactions Recorder', + intro: 'Once there is a transaction, click the button Save to save the scenario.', + tooltipClass: 'bg-light text-dark', + position: 'right', + highlightClass: 'bg-light border border-warning' + }, + { + element: document.querySelector('#udappRecorderRun'), + title: 'Transactions Recorder', + intro: 'Run previously saved scenario over any environment.', + tooltipClass: 'bg-light text-dark', + position: 'right', + highlightClass: 'bg-light border border-warning' + } + ] + }).onafterchange((targetElement) => { + const header = document.getElementsByClassName('introjs-tooltip-header')[0] + if (header) { + header.classList.add('d-flex') + header.classList.add('justify-content-between') + header.classList.add('text-nowrap') + header.classList.add('pr-0') + } + const skipbutton = document.getElementsByClassName('introjs-skipbutton')[0] + if (skipbutton) { + skipbutton.classList.add('ml-3') + skipbutton.classList.add('text-decoration-none') + skipbutton.id = 'remixTourSkipbtn' + } + }).start() + } + start () { if (!localStorage.getItem('hadTour_initial')) { introJs().setOptions({ diff --git a/libs/remix-ui/run-tab/src/lib/components/contractDropdownUI.tsx b/libs/remix-ui/run-tab/src/lib/components/contractDropdownUI.tsx index 14714c4a443..5a59befec92 100644 --- a/libs/remix-ui/run-tab/src/lib/components/contractDropdownUI.tsx +++ b/libs/remix-ui/run-tab/src/lib/components/contractDropdownUI.tsx @@ -514,7 +514,7 @@ export function ContractDropdownUI(props: ContractDropdownProps) {
- + }> - - - +
diff --git a/libs/remix-ui/run-tab/src/lib/run-tab.tsx b/libs/remix-ui/run-tab/src/lib/run-tab.tsx index f716bbd9a82..9f68cc99448 100644 --- a/libs/remix-ui/run-tab/src/lib/run-tab.tsx +++ b/libs/remix-ui/run-tab/src/lib/run-tab.tsx @@ -301,6 +301,7 @@ export function RunTabUI(props: RunTabProps) { proxy={runTab.proxy} /> JSX.Element, count: number currentFile: string + plugin: RunTab } export interface InstanceContainerProps {