diff --git a/apps/remix-ide/src/app/panels/file-panel.js b/apps/remix-ide/src/app/panels/file-panel.js index 326d776e14..2ff7a1da01 100644 --- a/apps/remix-ide/src/app/panels/file-panel.js +++ b/apps/remix-ide/src/app/panels/file-panel.js @@ -64,16 +64,6 @@ module.exports = class Filepanel extends ViewPlugin { return
} - compileContractForUml (path) { - console.log({ path }) - this.call('solidity', 'compile', async (target, source) => { - console.log({ - target, - source - }) - }) - } - /** * @param item { id: string, name: string, type?: string[], path?: string[], extension?: string[], pattern?: string[] } * @param callback (...args) => void diff --git a/libs/remix-ui/solidity-compiler/src/lib/contract-selection.tsx b/libs/remix-ui/solidity-compiler/src/lib/contract-selection.tsx index b4ab7dba69..6ecef263ee 100644 --- a/libs/remix-ui/solidity-compiler/src/lib/contract-selection.tsx +++ b/libs/remix-ui/solidity-compiler/src/lib/contract-selection.tsx @@ -23,7 +23,7 @@ export const ContractSelection = (props: ContractSelectionProps) => { const [svgPayload, setSVGPayload] = useState('') const [showViewer, setShowViewer] = useState(false) const [contentForAST, setContentForAST] = useState('') - console.log({ props }) + const intl = useIntl() diff --git a/libs/remix-ui/workspace/src/lib/components/file-explorer.tsx b/libs/remix-ui/workspace/src/lib/components/file-explorer.tsx index fac419327f..7fc76e3dbc 100644 --- a/libs/remix-ui/workspace/src/lib/components/file-explorer.tsx +++ b/libs/remix-ui/workspace/src/lib/components/file-explorer.tsx @@ -460,15 +460,13 @@ export const FileExplorer = (props: FileExplorerProps) => { try { const currentFile = path let ast: any - plugin.compileContractForUml(path) - const client: PluginClient> = new PluginClient() - client.call('solidity', '') - plugin.call('solidity', '') - // client.call('solidity', 'compile', path) - // client.on('solidity', 'compilationFinished', async (target, compileSource) => { + plugin.call('solidity', 'compile', path) + plugin.on('solidity', 'compilationFinished', (file, source, languageVersion, data, input, version) => { + console.log({ + file, source, languageVersion, data, input, version + }) + }) // ast = parser.parse(compileSource.sources[currentFile].content) - // console.log({ ast }) - // }) // contentForAST.length > 1 ? parser.parse(contentForAST) : // const payload = vizRenderStringSync(convertUmlClasses2Dot(convertAST2UmlClasses(ast, currentFile))) // const fileName = `${currentFile.split('/')[0]}/resources/${currentFile.split('/')[1].split('.')[0]}.pdf` diff --git a/libs/remix-ui/workspace/src/lib/types/index.ts b/libs/remix-ui/workspace/src/lib/types/index.ts index 22b33587f9..83defccb53 100644 --- a/libs/remix-ui/workspace/src/lib/types/index.ts +++ b/libs/remix-ui/workspace/src/lib/types/index.ts @@ -45,7 +45,6 @@ export interface FileType { } export type FilePanelType = { - , Key extends MethodKey>(name: Name, key: Key, ...payload: MethodParams) setWorkspace: ({ name, isLocalhost }, setEvent: boolean) => void, createWorkspace: (name: string, workspaceTemplateName: string) => void, renameWorkspace: (oldName: string, newName: string) => void @@ -78,7 +77,7 @@ export type FilePanelType = { export interface FileExplorerProps { name: string, menuItems?: string[], - plugin: FilePanelType + plugin: any contextMenuItems: MenuItems, removedContextMenuItems: MenuItems, files: { [x: string]: Record },