Commit 91a8626a authored by gxkai's avatar gxkai

chore: ts

parent ac09e459
'use strict'
import * as solc from 'solc/wrapper'
import solc from 'solc/wrapper'
import { CompilerInput, MessageToWorker } from './types'
let compileJSON: ((input: CompilerInput) => string) | null = (input) => { return '' }
const missingInputs: string[] = []
......
'use strict'
import { update } from 'solc/abi'
import * as webworkify from 'webworkify-webpack'
import webworkify from 'webworkify-webpack'
import compilerInput from './compiler-input'
import EventManager from '../lib/eventManager'
import txHelper from './txHelper'
......
......@@ -69,42 +69,42 @@ export const FileExplorerContextMenu = (props: FileExplorerContextMenuProps) =>
className='remixui_liitem'
onClick={(e) => {
e.stopPropagation()
switch (item.name) {
case 'New File':
switch (item.id) {
case 'newFile':
createNewFile(path)
break
case 'New Folder':
case 'newFolder':
createNewFolder(path)
break
case 'Rename':
case 'rename':
renamePath(path, type)
break
case 'Delete':
case 'delete':
deletePath(getPath())
break
case 'Push changes to gist':
case 'pushChangesToGist':
_paq.push(['trackEvent', 'fileExplorer', 'pushToChangesoGist'])
pushChangesToGist(path, type)
break
case 'Publish folder to gist':
case 'publishFolderToGist':
_paq.push(['trackEvent', 'fileExplorer', 'publishFolderToGist'])
publishFolderToGist(path, type)
break
case 'Publish file to gist':
case 'publishFileToGist':
_paq.push(['trackEvent', 'fileExplorer', 'publishFileToGist'])
publishFileToGist(path, type)
break
case 'Run':
case 'run':
_paq.push(['trackEvent', 'fileExplorer', 'runScript'])
runScript(path)
break
case 'Copy':
case 'copy':
copy(path, type)
break
case 'Paste':
case 'paste':
paste(path, type)
break
case 'Delete All':
case 'deleteAll':
deletePath(getPath())
break
default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment