Commit 91a8626a authored by gxkai's avatar gxkai

chore: ts

parent ac09e459
'use strict' 'use strict'
import * as solc from 'solc/wrapper' import solc from 'solc/wrapper'
import { CompilerInput, MessageToWorker } from './types' import { CompilerInput, MessageToWorker } from './types'
let compileJSON: ((input: CompilerInput) => string) | null = (input) => { return '' } let compileJSON: ((input: CompilerInput) => string) | null = (input) => { return '' }
const missingInputs: string[] = [] const missingInputs: string[] = []
......
'use strict' 'use strict'
import { update } from 'solc/abi' import { update } from 'solc/abi'
import * as webworkify from 'webworkify-webpack' import webworkify from 'webworkify-webpack'
import compilerInput from './compiler-input' import compilerInput from './compiler-input'
import EventManager from '../lib/eventManager' import EventManager from '../lib/eventManager'
import txHelper from './txHelper' import txHelper from './txHelper'
......
...@@ -69,42 +69,42 @@ export const FileExplorerContextMenu = (props: FileExplorerContextMenuProps) => ...@@ -69,42 +69,42 @@ export const FileExplorerContextMenu = (props: FileExplorerContextMenuProps) =>
className='remixui_liitem' className='remixui_liitem'
onClick={(e) => { onClick={(e) => {
e.stopPropagation() e.stopPropagation()
switch (item.name) { switch (item.id) {
case 'New File': case 'newFile':
createNewFile(path) createNewFile(path)
break break
case 'New Folder': case 'newFolder':
createNewFolder(path) createNewFolder(path)
break break
case 'Rename': case 'rename':
renamePath(path, type) renamePath(path, type)
break break
case 'Delete': case 'delete':
deletePath(getPath()) deletePath(getPath())
break break
case 'Push changes to gist': case 'pushChangesToGist':
_paq.push(['trackEvent', 'fileExplorer', 'pushToChangesoGist']) _paq.push(['trackEvent', 'fileExplorer', 'pushToChangesoGist'])
pushChangesToGist(path, type) pushChangesToGist(path, type)
break break
case 'Publish folder to gist': case 'publishFolderToGist':
_paq.push(['trackEvent', 'fileExplorer', 'publishFolderToGist']) _paq.push(['trackEvent', 'fileExplorer', 'publishFolderToGist'])
publishFolderToGist(path, type) publishFolderToGist(path, type)
break break
case 'Publish file to gist': case 'publishFileToGist':
_paq.push(['trackEvent', 'fileExplorer', 'publishFileToGist']) _paq.push(['trackEvent', 'fileExplorer', 'publishFileToGist'])
publishFileToGist(path, type) publishFileToGist(path, type)
break break
case 'Run': case 'run':
_paq.push(['trackEvent', 'fileExplorer', 'runScript']) _paq.push(['trackEvent', 'fileExplorer', 'runScript'])
runScript(path) runScript(path)
break break
case 'Copy': case 'copy':
copy(path, type) copy(path, type)
break break
case 'Paste': case 'paste':
paste(path, type) paste(path, type)
break break
case 'Delete All': case 'deleteAll':
deletePath(getPath()) deletePath(getPath())
break break
default: 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