cleanup app.js and other files

pull/3321/head^2
Joseph Izang 2 years ago committed by Aniket
parent 2e76b665c0
commit c00f2eb8da
  1. 1
      apps/remix-ide/src/app.js
  2. 1
      apps/remix-ide/src/app/plugins/solidity-umlgen.tsx
  3. 2
      libs/remix-ui/workspace/src/lib/components/file-explorer.tsx
  4. 12
      libs/remix-ui/workspace/src/lib/types/index.ts

@ -386,7 +386,6 @@ class AppComponent {
await this.appManager.activatePlugin(['hiddenPanel', 'pluginManager', 'codeParser', 'codeFormatter', 'fileDecorator', 'terminal', 'blockchain', 'fetchAndCompile', 'contentImport', 'gistHandler'])
await this.appManager.activatePlugin(['settings'])
await this.appManager.activatePlugin(['walkthrough', 'storage', 'search', 'compileAndRun', 'recorder'])
// await this.appManager.activatePlugin(['solidityumlgen'])
this.appManager.on(
'filePanel',

@ -3,6 +3,7 @@ import { ViewPlugin } from '@remixproject/engine-web'
import React from 'react'
// eslint-disable-next-line @nrwl/nx/enforce-module-boundaries
import { RemixUiSolidityUmlGen } from '@remix-ui/solidity-uml-gen'
import { RemixAppManager } from 'libs/remix-ui/plugin-manager/src/types'
const profile = {
name: 'solidityumlgen',

@ -20,7 +20,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 { IRemixApi } from '@remixproject/plugin-api'
import { concatSourceFiles, getDependencyGraph } from '@remix-ui/solidity-compiler'
@ -460,6 +459,7 @@ export const FileExplorer = (props: FileExplorerProps) => {
try {
const currentFile = path
let ast: any
// const canActivateUmlGen = plugin.can
plugin.call('solidity', 'compile', path)
plugin.on('solidity', 'compilationFinished', (file, source, languageVersion, data, input, version) => {
console.log({

@ -1,8 +1,9 @@
/* eslint-disable @nrwl/nx/enforce-module-boundaries */
import React from 'react'
import { customAction } from '@remixproject/plugin-api/lib/file-system/file-panel'
import { fileDecoration } from '@remix-ui/file-decorators';
import { IRemixApi } from '@remixproject/plugin-api';
import { MethodParams } from '@remixproject/plugin-utils';
import { fileDecoration } from '@remix-ui/file-decorators'
import { RemixAppManager } from 'libs/remix-ui/plugin-manager/src/types'
import { ViewPlugin } from '@remixproject/engine-web'
export type action = { name: string, type?: Array<'folder' | 'gist' | 'file'>, path?: string[], extension?: string[], pattern?: string[], id: string, multiselect: boolean, label: string, sticky?: boolean }
export interface JSONStandardInput {
@ -44,7 +45,7 @@ export interface FileType {
child?: File[]
}
export type FilePanelType = {
export interface FilePanelType extends ViewPlugin {
setWorkspace: ({ name, isLocalhost }, setEvent: boolean) => void,
createWorkspace: (name: string, workspaceTemplateName: string) => void,
renameWorkspace: (oldName: string, newName: string) => void
@ -56,6 +57,7 @@ export type FilePanelType = {
browser?: any // browser provider
localhost?: any // localhost provider
fileManager? : any
appManager: RemixAppManager
registry?: any // registry
pluginApi?: any
request: {
@ -77,7 +79,7 @@ export type FilePanelType = {
export interface FileExplorerProps {
name: string,
menuItems?: string[],
plugin: any
plugin: FilePanelType
contextMenuItems: MenuItems,
removedContextMenuItems: MenuItems,
files: { [x: string]: Record<string, FileType> },

Loading…
Cancel
Save