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
be8ee683
Commit
be8ee683
authored
Jul 20, 2021
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused code files
parent
d3626ccd
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
0 additions
and
120 deletions
+0
-120
file-explorer.js
apps/remix-ide/src/app/files/file-explorer.js
+0
-0
compile-tab.js
apps/remix-ide/src/app/tabs/compile-tab.js
+0
-1
compilerContainer.js
apps/remix-ide/src/app/tabs/compileTab/compilerContainer.js
+0
-0
compiler-abstract.ts
...x-ui/solidity-compiler/src/lib/logic/compiler-abstract.ts
+0
-51
compiler-helpers.ts
...ix-ui/solidity-compiler/src/lib/logic/compiler-helpers.ts
+0
-19
compiler-utils.ts
...emix-ui/solidity-compiler/src/lib/logic/compiler-utils.ts
+0
-46
index.ts
libs/remix-ui/solidity-compiler/src/lib/logic/index.ts
+0
-3
No files found.
apps/remix-ide/src/app/files/file-explorer.js
deleted
100644 → 0
View file @
d3626ccd
This diff is collapsed.
Click to expand it.
apps/remix-ide/src/app/tabs/compile-tab.js
View file @
be8ee683
...
@@ -24,7 +24,6 @@ const profile = {
...
@@ -24,7 +24,6 @@ const profile = {
documentation
:
'https://remix-ide.readthedocs.io/en/latest/solidity_editor.html'
,
documentation
:
'https://remix-ide.readthedocs.io/en/latest/solidity_editor.html'
,
version
:
packageJson
.
version
,
version
:
packageJson
.
version
,
methods
:
[
'getCompilationResult'
,
'compile'
,
'compileWithParameters'
,
'setCompilerConfig'
,
'compileFile'
]
methods
:
[
'getCompilationResult'
,
'compile'
,
'compileWithParameters'
,
'setCompilerConfig'
,
'compileFile'
]
}
}
// EditorApi:
// EditorApi:
...
...
apps/remix-ide/src/app/tabs/compileTab/compilerContainer.js
deleted
100644 → 0
View file @
d3626ccd
This diff is collapsed.
Click to expand it.
libs/remix-ui/solidity-compiler/src/lib/logic/compiler-abstract.ts
deleted
100644 → 0
View file @
d3626ccd
'use strict'
import
*
as
remixLib
from
'@remix-project/remix-lib'
const
txHelper
=
remixLib
.
execution
.
txHelper
export
class
CompilerAbstract
{
public
languageversion
:
string
public
data
:
Record
<
string
,
any
>
public
source
:
Record
<
string
,
any
>
constructor
(
languageversion
,
data
,
source
)
{
this
.
languageversion
=
languageversion
this
.
data
=
data
this
.
source
=
source
// source code
}
getContracts
()
{
return
this
.
data
.
contracts
}
getContract
(
name
)
{
return
txHelper
.
getContract
(
name
,
this
.
data
.
contracts
)
}
visitContracts
(
calllback
)
{
return
txHelper
.
visitContracts
(
this
.
data
.
contracts
,
calllback
)
}
getData
()
{
return
this
.
data
}
getAsts
()
{
return
this
.
data
.
sources
// ast
}
getSourceName
(
fileIndex
)
{
if
(
this
.
data
&&
this
.
data
.
sources
)
{
return
Object
.
keys
(
this
.
data
.
sources
)[
fileIndex
]
}
else
if
(
Object
.
keys
(
this
.
source
.
sources
).
length
===
1
)
{
// if we don't have ast, we return the only one filename present.
const
sourcesArray
=
Object
.
keys
(
this
.
source
.
sources
)
return
sourcesArray
[
0
]
}
return
null
}
getSourceCode
()
{
return
this
.
source
}
}
libs/remix-ui/solidity-compiler/src/lib/logic/compiler-helpers.ts
deleted
100644 → 0
View file @
d3626ccd
'use strict'
import
{
canUseWorker
,
urlFromVersion
}
from
'./compiler-utils'
import
{
Compiler
}
from
'@remix-project/remix-solidity'
import
{
CompilerAbstract
}
from
'./compiler-abstract'
export
const
compile
=
async
(
compilationTargets
,
settings
,
contentResolverCallback
)
=>
{
return
new
Promise
((
resolve
)
=>
{
const
compiler
=
new
Compiler
(
contentResolverCallback
)
compiler
.
set
(
'evmVersion'
,
settings
.
evmVersion
)
compiler
.
set
(
'optimize'
,
settings
.
optimize
)
compiler
.
set
(
'language'
,
settings
.
language
)
compiler
.
set
(
'runs'
,
settings
.
runs
)
compiler
.
loadVersion
(
canUseWorker
(
settings
.
version
),
urlFromVersion
(
settings
.
version
))
compiler
.
event
.
register
(
'compilationFinished'
,
(
success
,
compilationData
,
source
)
=>
{
resolve
(
new
CompilerAbstract
(
settings
.
version
,
compilationData
,
source
))
})
compiler
.
event
.
register
(
'compilerLoaded'
,
()
=>
compiler
.
compile
(
compilationTargets
,
''
))
})
}
libs/remix-ui/solidity-compiler/src/lib/logic/compiler-utils.ts
deleted
100644 → 0
View file @
d3626ccd
const
semver
=
require
(
'semver'
)
const
minixhr
=
require
(
'minixhr'
)
/* global Worker */
export
const
baseURLBin
=
'https://binaries.soliditylang.org/bin'
export
const
baseURLWasm
=
'https://binaries.soliditylang.org/wasm'
export
const
pathToURL
=
{}
/**
* Retrieves the URL of the given compiler version
* @param version is the version of compiler with or without 'soljson-v' prefix and .js postfix
*/
export
function
urlFromVersion
(
version
)
{
if
(
!
version
.
startsWith
(
'soljson-v'
))
version
=
'soljson-v'
+
version
if
(
!
version
.
endsWith
(
'.js'
))
version
=
version
+
'.js'
return
`
${
pathToURL
[
version
]}
/
${
version
}
`
}
/**
* Checks if the worker can be used to load a compiler.
* checks a compiler whitelist, browser support and OS.
*/
export
function
canUseWorker
(
selectedVersion
)
{
const
version
=
semver
.
coerce
(
selectedVersion
)
const
isNightly
=
selectedVersion
.
includes
(
'nightly'
)
return
browserSupportWorker
()
&&
(
// All compiler versions (including nightlies) after 0.6.3 are wasm compiled
semver
.
gt
(
version
,
'0.6.3'
)
||
// Only releases are wasm compiled starting with 0.3.6
(
semver
.
gte
(
version
,
'0.3.6'
)
&&
!
isNightly
)
)
}
function
browserSupportWorker
()
{
return
document
.
location
.
protocol
!==
'file:'
&&
Worker
!==
undefined
}
// returns a promise for minixhr
export
function
promisedMiniXhr
(
url
)
{
return
new
Promise
((
resolve
)
=>
{
minixhr
(
url
,
(
json
,
event
)
=>
{
resolve
({
json
,
event
})
})
})
}
libs/remix-ui/solidity-compiler/src/lib/logic/index.ts
View file @
be8ee683
export
*
from
'./compileTabLogic'
export
*
from
'./compileTabLogic'
export
*
from
'./compiler-abstract'
export
*
from
'./compiler-helpers'
export
*
from
'./compiler-utils'
export
*
from
'./contract-parser'
export
*
from
'./contract-parser'
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