diff --git a/apps/remix-ide-e2e/src/local-plugin/src/app/app.tsx b/apps/remix-ide-e2e/src/local-plugin/src/app/app.tsx index 38ee187dab..331a628977 100644 --- a/apps/remix-ide-e2e/src/local-plugin/src/app/app.tsx +++ b/apps/remix-ide-e2e/src/local-plugin/src/app/app.tsx @@ -2,7 +2,7 @@ import React, { useEffect, useRef, useState } from 'react' import { WorkSpacePlugin } from './Client' import { Logger } from './logger' -import { useBehaviorSubject } from './usesubscribe/index' + import { filePanelProfile } from '@remixproject/plugin-api/lib/file-system/file-panel/profile' import { filSystemProfile } from '@remixproject/plugin-api/lib/file-system/file-manager/profile' import { dGitProfile } from '@remixproject/plugin-api/lib/dgit/profile' @@ -16,7 +16,6 @@ import { contentImportProfile } from '@remixproject/plugin-api/lib/content-impor import { unitTestProfile } from '@remixproject/plugin-api/lib/unit-testing' import { windowProfile } from '@remixproject/plugin-api/lib/window' import { pluginManagerProfile } from '@remixproject/plugin-api/lib/plugin-manager' -import { IFileSystem } from '@remixproject/plugin-api' import { Profile } from '@remixproject/plugin-utils' @@ -26,7 +25,7 @@ function App () { const [payload, setPayload] = useState('') const [append, setAppend] = useState(false) const [log, setLog] = useState() - const [profiles, setProfiles] = useState([pluginManagerProfile, filePanelProfile, filSystemProfile, dGitProfile, networkProfile, settingsProfile, editorProfile, terminalProfile, compilerProfile, udappProfile, contentImportProfile, unitTestProfile, windowProfile]) + const [profiles, setProfiles] = useState([pluginManagerProfile, filePanelProfile, filSystemProfile, dGitProfile, networkProfile, settingsProfile, editorProfile, terminalProfile, compilerProfile, udappProfile, contentImportProfile, unitTestProfile, windowProfile]) const handleChange = ({ target }: any) => { setPayload(target.value) @@ -34,7 +33,7 @@ function App () { useEffect(() => { client.onload(async () => { - const customProfiles = ['solidity'] + const customProfiles = ['solidity', 'menuicons', 'tabs'] for (const name of customProfiles) { const p = await client.call('manager', 'getProfile', name) @@ -65,8 +64,8 @@ function App () { try { ob = JSON.parse(payload) } catch (e) {} - const send = ob || [payload] - const result = await client.call(profile.name as any, method, ...send) + const args = ob || [payload] + const result = await client.call(profile.name as any, method, ...args) setLog(result) } catch (e) { setLog(e.message) @@ -86,12 +85,15 @@ function App () { onChange={handleChange} /> - + {profiles.map((profile: Profile) => { const methods = profile.methods.map((method: string) => { return }) - return


{methods}
+ const events = profile.events ? profile.events.map((event: string) => { + return + }) : null + return


{methods}

{events ? : null}{events}
})}