clean up and fix auto focus on uml gen

pull/3321/head^2
Joseph Izang 2 years ago committed by Aniket
parent 1451603c71
commit 1d5a393c91
  1. 1
      apps/remix-ide/src/app/plugins/solidity-umlgen.tsx
  2. 9
      libs/remix-ui/workspace/src/lib/components/file-explorer.tsx

@ -71,6 +71,7 @@ export class SolidityUmlGen extends ViewPlugin implements ISolidityUmlGen {
generateUml(currentFile: string) {
this.call('solidity', 'compile', currentFile)
this.call('tabs', 'focus', 'solidityumlgen')
this.renderComponent()
}

@ -5,13 +5,6 @@ import { FileExplorerContextMenu } from './file-explorer-context-menu' // eslint
import { FileExplorerProps, MenuItems, FileExplorerState } from '../types'
import { customAction } from '@remixproject/plugin-api/lib/file-system/file-panel'
import { contextMenuActions } from '../utils'
const parser = (window as any).SolidityParser
import domToPdf from 'dom-to-pdf'
import { jsPDF } from 'jspdf'
import vizRenderStringSync from '@aduh95/viz.js/sync'
import { convertUmlClasses2Dot } from 'sol2uml/lib/converterClasses2Dot'
import { convertAST2UmlClasses } from 'sol2uml/lib/converterAST2Classes'
import '../css/file-explorer.css'
import { checkSpecialChars, extractNameFromKey, extractParentFromKey, joinPath } from '@remix-ui/helper'
@ -19,8 +12,6 @@ import { checkSpecialChars, extractNameFromKey, extractParentFromKey, joinPath }
import { FileRender } from './file-render'
import { Drag } from "@remix-ui/drag-n-drop"
import { ROOT_PATH } from '../utils/constants'
import { concatSourceFiles, getDependencyGraph } from '@remix-ui/solidity-compiler'
export const FileExplorer = (props: FileExplorerProps) => {
const { name, contextMenuItems, removedContextMenuItems, files, fileState, plugin } = props

Loading…
Cancel
Save