|
|
|
@ -1,17 +1,17 @@ |
|
|
|
|
import React from 'react' // eslint-disable-line
|
|
|
|
|
import {RunTabUI} from '@remix-ui/run-tab' |
|
|
|
|
import {ViewPlugin} from '@remixproject/engine-web' |
|
|
|
|
import { RunTabUI } from '@remix-ui/run-tab' |
|
|
|
|
import { ViewPlugin } from '@remixproject/engine-web' |
|
|
|
|
import isElectron from 'is-electron' |
|
|
|
|
import {addressToString} from '@remix-ui/helper' |
|
|
|
|
import {InjectedProviderDefault} from '../providers/injected-provider-default' |
|
|
|
|
import {InjectedCustomProvider} from '../providers/injected-custom-provider' |
|
|
|
|
import { addressToString } from '@remix-ui/helper' |
|
|
|
|
import { InjectedProviderDefault } from '../providers/injected-provider-default' |
|
|
|
|
import { InjectedCustomProvider } from '../providers/injected-custom-provider' |
|
|
|
|
import * as packageJson from '../../../../../package.json' |
|
|
|
|
import { EventManager } from '@remix-project/remix-lib' |
|
|
|
|
import type { Blockchain } from '../../blockchain/blockchain' |
|
|
|
|
import type { CompilerArtefacts } from '@remix-project/core-plugin' |
|
|
|
|
// import type { NetworkModule } from '../tabs/network-module'
|
|
|
|
|
// import type FileProvider from '../files/fileProvider'
|
|
|
|
|
const Recorder = require('../tabs/runTab/model/recorder.js') |
|
|
|
|
import { Recorder } from '../tabs/runTab/model/recorder' |
|
|
|
|
const _paq = (window._paq = window._paq || []) |
|
|
|
|
|
|
|
|
|
const profile = { |
|
|
|
@ -90,7 +90,7 @@ export class RunTab extends ViewPlugin { |
|
|
|
|
async setEnvironmentMode(env) { |
|
|
|
|
const canCall = await this.askUserPermission('setEnvironmentMode', 'change the environment used') |
|
|
|
|
if (canCall) { |
|
|
|
|
env = typeof env === 'string' ? {context: env} : env |
|
|
|
|
env = typeof env === 'string' ? { context: env } : env |
|
|
|
|
this.emit('setEnvironmentModeReducer', env, this.currentRequest.from) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|