clean up degugging artifacts and unreachable code

pull/5370/head
joseph izang 3 years ago
parent 5a837379ee
commit aecc80012a
  1. 1
      apps/remix-ide-e2e/src/commands/getEditorValue.ts
  2. 1
      libs/remix-ui/plugin-manager/src/lib/components/LocalPluginForm.tsx
  3. 1
      libs/remix-ui/plugin-manager/src/lib/components/moduleHeading.tsx
  4. 2
      libs/remix-ui/plugin-manager/src/lib/components/rootView.tsx
  5. 1
      libs/remix-ui/plugin-manager/src/lib/remix-ui-plugin-manager.tsx
  6. 50
      libs/remix-ui/plugin-manager/src/pluginManagerStateMachine.ts

@ -12,7 +12,6 @@ class GetEditorValue extends EventEmitter {
done() done()
const value = typeof result.value === 'string' ? result.value : null const value = typeof result.value === 'string' ? result.value : null
console.log('value')
callback(value) callback(value)
this.emit('complete') this.emit('complete')
}) })

@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import React, { useReducer, useState } from 'react' import React, { useReducer, useState } from 'react'
import { ModalDialog } from '@remix-ui/modal-dialog' import { ModalDialog } from '@remix-ui/modal-dialog'
import { Toaster } from '@remix-ui/toaster' import { Toaster } from '@remix-ui/toaster'

@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import React from 'react' import React from 'react'
interface ModuleHeadingProps { interface ModuleHeadingProps {

@ -1,4 +1,4 @@
/* eslint-disable no-debugger */ /* eslint-disable @typescript-eslint/no-unused-vars */
import React, { Fragment, ReactNode, useEffect, useState } from 'react' import React, { Fragment, ReactNode, useEffect, useState } from 'react'
import { FormStateProps, PluginManagerComponent } from '../../types' import { FormStateProps, PluginManagerComponent } from '../../types'
import PermisssionsSettings from './permissions/permissionsSettings' import PermisssionsSettings from './permissions/permissionsSettings'

@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import { Profile } from '@remixproject/plugin-utils' import { Profile } from '@remixproject/plugin-utils'
import React, { useState } from 'react' import React, { useState } from 'react'
import { RemixUiPluginManagerProps } from '../types' import { RemixUiPluginManagerProps } from '../types'

@ -1,50 +0,0 @@
import { PluginManagerComponent } from './types'
export const defaultActivatedPlugins = [
'manager',
'contentImport',
'theme',
'editor',
'fileManager',
'compilerMetadata',
'compilerArtefacts',
'network',
'web3Provider',
'offsetToLineColumnConverter',
'mainPanel',
'menuicons',
'tabs',
'sidePanel',
'home',
'hiddenPanel',
'contextualListener',
'terminal',
'fetchAndCompile',
'pluginManager',
'filePanel',
'settings',
'udapp'
]
export function getSolidity (pluginComponent: PluginManagerComponent) {
const fetchSolidity = async () => {
const solidity = await pluginComponent.appManager.getProfile('solidity')
const solidityLogic = await pluginComponent.appManager.getProfile('solidity-logic')
return [solidity, solidityLogic]
}
const materializeFetch = fetchSolidity()
return materializeFetch
}
export async function CheckSolidity (pluginComponent: PluginManagerComponent, workspacePlugins: string[]) {
if (workspacePlugins.includes('solidity') === true && workspacePlugins.includes('solidity-logic') === true) {
if (pluginComponent.activeProfiles.includes('solidity') && pluginComponent.activeProfiles.includes('solidity-logic')) {
const result = await getSolidity(pluginComponent)
if (result && result.length > 0) {
return result
}
} else {
return []
}
}
}
Loading…
Cancel
Save