Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
6f451bd2
Commit
6f451bd2
authored
Aug 31, 2021
by
yann300
Committed by
davidzagi93@gmail.com
Sep 14, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
linting
parent
57f1dac2
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
4 additions
and
57 deletions
+4
-57
compile-tab.js
apps/remix-ide/src/app/tabs/compile-tab.js
+1
-8
index.ts
libs/remix-lib/src/index.ts
+1
-4
ICompilerApi.ts
libs/remix-lib/src/types/ICompilerApi.ts
+1
-25
index.ts
libs/remix-ui/solidity-compiler/src/index.ts
+0
-0
compiler.ts
libs/remix-ui/solidity-compiler/src/lib/actions/compiler.ts
+0
-9
index.ts
libs/remix-ui/solidity-compiler/src/lib/types/index.ts
+1
-11
No files found.
apps/remix-ide/src/app/tabs/compile-tab.js
View file @
6f451bd2
...
@@ -5,12 +5,9 @@ import { SolidityCompiler } from '@remix-ui/solidity-compiler' // eslint-disable
...
@@ -5,12 +5,9 @@ import { SolidityCompiler } from '@remix-ui/solidity-compiler' // eslint-disable
import
{
CompileTabLogic
}
from
'@remix-ui/solidity-compiler'
// eslint-disable-line
import
{
CompileTabLogic
}
from
'@remix-ui/solidity-compiler'
// eslint-disable-line
import
{
CompilerApiMixin
}
from
'@remixproject/solidity-compiler-plugin'
import
{
CompilerApiMixin
}
from
'@remixproject/solidity-compiler-plugin'
import
{
ViewPlugin
}
from
'@remixproject/engine-web'
import
{
ViewPlugin
}
from
'@remixproject/engine-web'
<<<<<<<
HEAD
import
QueryParams
from
'../../lib/query-params'
import
QueryParams
from
'../../lib/query-params'
// import { ICompilerApi } from '@remix-project/remix-lib-ts'
// import { ICompilerApi } from '@remix-project/remix-lib-ts'
=======
import
{
ICompilerApi
}
from
'@remix-project/remix-lib-ts'
>>>>>>>
49
c62946c
(
better
org
of
types
)
import
*
as
packageJson
from
'../../../../../package.json'
import
*
as
packageJson
from
'../../../../../package.json'
const
yo
=
require
(
'yo-yo'
)
const
yo
=
require
(
'yo-yo'
)
...
@@ -36,11 +33,7 @@ const profile = {
...
@@ -36,11 +33,7 @@ const profile = {
// - methods: ['getCompilationResult']
// - methods: ['getCompilationResult']
class
CompileTab
extends
CompilerApiMixin
(
ViewPlugin
)
{
// implements ICompilerApi
class
CompileTab
extends
CompilerApiMixin
(
ViewPlugin
)
{
// implements ICompilerApi
<<<<<<<
HEAD
constructor
(
config
,
fileManager
)
{
constructor
(
config
,
fileManager
)
{
=======
constructor
()
{
>>>>>>>
49
c62946c
(
better
org
of
types
)
super
(
profile
)
super
(
profile
)
this
.
fileManager
=
fileManager
this
.
fileManager
=
fileManager
this
.
config
=
config
this
.
config
=
config
...
...
libs/remix-lib/src/index.ts
View file @
6f451bd2
...
@@ -18,11 +18,8 @@ import * as typeConversion from './execution/typeConversion'
...
@@ -18,11 +18,8 @@ import * as typeConversion from './execution/typeConversion'
import
{
TxRunnerVM
}
from
'./execution/txRunnerVM'
import
{
TxRunnerVM
}
from
'./execution/txRunnerVM'
import
{
TxRunnerWeb3
}
from
'./execution/txRunnerWeb3'
import
{
TxRunnerWeb3
}
from
'./execution/txRunnerWeb3'
import
*
as
txResultHelper
from
'./helpers/txResultHelper'
import
*
as
txResultHelper
from
'./helpers/txResultHelper'
<<<<<<<
HEAD
export
{
ICompilerApi
,
ConfigurationSettings
}
from
'./types/ICompilerApi'
export
{
ICompilerApi
,
ConfigurationSettings
}
from
'./types/ICompilerApi'
=======
export
{
ICompilerApi
,
ConfigurationSettings
}
from
'./types/ICompilerApi'
>>>>>>>
49
c62946c
(
better
org
of
types
)
const
helpers
=
{
const
helpers
=
{
ui
:
uiHelper
,
ui
:
uiHelper
,
...
...
libs/remix-lib/src/types/ICompilerApi.ts
View file @
6f451bd2
...
@@ -7,7 +7,6 @@ export interface ICompilerApi {
...
@@ -7,7 +7,6 @@ export interface ICompilerApi {
compileTabLogic
:
any
compileTabLogic
:
any
contractsDetails
:
Record
<
string
,
any
>
contractsDetails
:
Record
<
string
,
any
>
configurationSettings
:
ConfigurationSettings
configurationSettings
:
ConfigurationSettings
<<<<<<<
HEAD
getCompilerParameters
:
()
=>
ConfigurationSettings
getCompilerParameters
:
()
=>
ConfigurationSettings
setCompilerParameters
:
(
ConfigurationSettings
?)
=>
void
setCompilerParameters
:
(
ConfigurationSettings
?)
=>
void
...
@@ -20,19 +19,6 @@ export interface ICompilerApi {
...
@@ -20,19 +19,6 @@ export interface ICompilerApi {
getCompilationResult
:
()
=>
any
getCompilationResult
:
()
=>
any
=======
setHardHatCompilation
:
(
value
:
boolean
)
=>
void
getParameters
:
()
=>
any
setParameters
:
(
params
)
=>
void
getConfiguration
:
(
value
:
string
)
=>
string
setConfiguration
:
(
name
:
string
,
value
:
string
)
=>
void
getFileManagerMode
:
()
=>
string
setCompilerConfig
:
(
settings
:
any
)
=>
void
getCompilationResult
:
()
=>
any
>>>>>>>
49
c62946c
(
better
org
of
types
)
onCurrentFileChanged
:
(
fileName
:
string
)
=>
void
onCurrentFileChanged
:
(
fileName
:
string
)
=>
void
onResetResults
:
()
=>
void
,
onResetResults
:
()
=>
void
,
onSetWorkspace
:
(
workspace
:
any
)
=>
void
onSetWorkspace
:
(
workspace
:
any
)
=>
void
...
@@ -40,17 +26,13 @@ export interface ICompilerApi {
...
@@ -40,17 +26,13 @@ export interface ICompilerApi {
onCompilationFinished
:
(
contractsDetails
:
any
,
contractMap
:
any
)
=>
void
onCompilationFinished
:
(
contractsDetails
:
any
,
contractMap
:
any
)
=>
void
onSessionSwitched
:
()
=>
void
onSessionSwitched
:
()
=>
void
onContentChanged
:
()
=>
void
onContentChanged
:
()
=>
void
<<<<<<<
HEAD
resolveContentAndSave
:
(
url
:
string
)
=>
Promise
<
string
>
resolveContentAndSave
:
(
url
:
string
)
=>
Promise
<
string
>
=======
>>>>>>>
49
c62946c
(
better
org
of
types
)
fileExists
:
(
file
:
string
)
=>
Promise
<
boolean
>
fileExists
:
(
file
:
string
)
=>
Promise
<
boolean
>
writeFile
:
(
file
:
string
,
content
:
string
)
=>
Promise
<
void
>
writeFile
:
(
file
:
string
,
content
:
string
)
=>
Promise
<
void
>
readFile
:
(
file
:
string
)
=>
Promise
<
string
>
readFile
:
(
file
:
string
)
=>
Promise
<
string
>
open
:
(
file
:
string
)
=>
void
open
:
(
file
:
string
)
=>
void
<<<<<<<
HEAD
saveCurrentFile
:
()
=>
void
saveCurrentFile
:
()
=>
void
logToTerminal
:
(
log
:
terminalLog
)
=>
{}
logToTerminal
:
(
log
:
terminalLog
)
=>
{}
...
@@ -62,9 +44,6 @@ export type terminalLog = {
...
@@ -62,9 +44,6 @@ export type terminalLog = {
type
:
'info'
|
'error'
|
'warning'
type
:
'info'
|
'error'
|
'warning'
value
:
string
value
:
string
}
}
=======
}
>>>>>>>
49
c62946c
(
better
org
of
types
)
export
interface
ConfigurationSettings
{
export
interface
ConfigurationSettings
{
version
:
string
,
version
:
string
,
...
@@ -72,8 +51,5 @@ export interface ConfigurationSettings {
...
@@ -72,8 +51,5 @@ export interface ConfigurationSettings {
language
:
string
,
language
:
string
,
optimize
:
boolean
,
optimize
:
boolean
,
runs
:
string
runs
:
string
<<<<<<<
HEAD
}
=======
}
}
>>>>>>>
49
c62946c
(
better
org
of
types
)
libs/remix-ui/solidity-compiler/src/index.ts
View file @
6f451bd2
libs/remix-ui/solidity-compiler/src/lib/actions/compiler.ts
View file @
6f451bd2
...
@@ -26,11 +26,7 @@ export const resetCompilerMode = () => (dispatch: React.Dispatch<any>) => {
...
@@ -26,11 +26,7 @@ export const resetCompilerMode = () => (dispatch: React.Dispatch<any>) => {
})
})
}
}
<<<<<<<
HEAD
export
const
listenToEvents
=
(
compileTabLogic
:
CompileTabLogic
,
api
)
=>
(
dispatch
:
React
.
Dispatch
<
any
>
)
=>
{
export
const
listenToEvents
=
(
compileTabLogic
:
CompileTabLogic
,
api
)
=>
(
dispatch
:
React
.
Dispatch
<
any
>
)
=>
{
=======
export
const
listenToEvents
=
(
compileTabLogic
,
api
)
=>
(
dispatch
:
React
.
Dispatch
<
any
>
)
=>
{
>>>>>>>
5
a22644c4
(
fix
iframe
plugin
api
)
api
.
onSessionSwitched
=
()
=>
{
api
.
onSessionSwitched
=
()
=>
{
dispatch
(
setEditorMode
(
'sessionSwitched'
))
dispatch
(
setEditorMode
(
'sessionSwitched'
))
}
}
...
@@ -46,11 +42,6 @@ export const listenToEvents = (compileTabLogic, api) => (dispatch: React.Dispatc
...
@@ -46,11 +42,6 @@ export const listenToEvents = (compileTabLogic, api) => (dispatch: React.Dispatc
api
.
onContentChanged
=
()
=>
{
api
.
onContentChanged
=
()
=>
{
dispatch
(
setEditorMode
(
'contentChanged'
))
dispatch
(
setEditorMode
(
'contentChanged'
))
}
}
<<<<<<<
HEAD
=======
>>>>>>>
5
a22644c4
(
fix
iframe
plugin
api
)
compileTabLogic
.
compiler
.
event
.
register
(
'loadingCompiler'
,
()
=>
{
compileTabLogic
.
compiler
.
event
.
register
(
'loadingCompiler'
,
()
=>
{
dispatch
(
setCompilerMode
(
'loadingCompiler'
))
dispatch
(
setCompilerMode
(
'loadingCompiler'
))
})
})
...
...
libs/remix-ui/solidity-compiler/src/lib/types/index.ts
View file @
6f451bd2
import
{
ICompilerApi
,
ConfigurationSettings
}
from
'@remix-project/remix-lib-ts'
import
{
ICompilerApi
,
ConfigurationSettings
}
from
'@remix-project/remix-lib-ts'
<<<<<<<
HEAD
import
{
CompileTabLogic
}
from
'../logic/compileTabLogic'
import
{
CompileTabLogic
}
from
'../logic/compileTabLogic'
export
type
onCurrentFileChanged
=
(
fileName
:
string
)
=>
void
export
type
onCurrentFileChanged
=
(
fileName
:
string
)
=>
void
export
interface
SolidityCompilerProps
{
export
interface
SolidityCompilerProps
{
api
:
ICompilerApi
api
:
ICompilerApi
=======
export
type
onCurrentFileChanged
=
(
fileName
:
string
)
=>
void
export
interface
SolidityCompilerProps
{
plugin
:
ICompilerApi
>>>>>>>
49
c62946c
(
better
org
of
types
)
}
}
export
interface
CompilerContainerProps
{
export
interface
CompilerContainerProps
{
...
@@ -30,8 +23,5 @@ export interface ContractSelectionProps {
...
@@ -30,8 +23,5 @@ export interface ContractSelectionProps {
}
|
Record
<
string
,
any
>
,
}
|
Record
<
string
,
any
>
,
modal
:
(
title
:
string
,
message
:
string
|
JSX
.
Element
,
okLabel
:
string
,
okFn
:
()
=>
void
,
cancelLabel
?:
string
,
cancelFn
?:
()
=>
void
)
=>
void
,
modal
:
(
title
:
string
,
message
:
string
|
JSX
.
Element
,
okLabel
:
string
,
okFn
:
()
=>
void
,
cancelLabel
?:
string
,
cancelFn
?:
()
=>
void
)
=>
void
,
contractsDetails
:
Record
<
string
,
any
>
contractsDetails
:
Record
<
string
,
any
>
<<<<<<<
HEAD
}
=======
}
}
>>>>>>>
49
c62946c
(
better
org
of
types
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment