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
8cb667a4
Commit
8cb667a4
authored
May 31, 2021
by
filip mertens
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/ethereum/remix-project
into multiselectdelete-1
parents
4d89a8b7
9978e1c9
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
13 deletions
+15
-13
config.yml
.circleci/config.yml
+3
-0
solidityImport.spec.ts
apps/remix-ide-e2e/src/tests/solidityImport.spec.ts
+1
-1
makeMockCompiler.js
apps/remix-ide/ci/makeMockCompiler.js
+1
-1
remixd-handle.js
apps/remix-ide/src/app/files/remixd-handle.js
+7
-8
compilerContainer.js
apps/remix-ide/src/app/tabs/compileTab/compilerContainer.js
+2
-2
package.json
package.json
+1
-1
No files found.
.circleci/config.yml
View file @
8cb667a4
...
@@ -239,6 +239,7 @@ jobs:
...
@@ -239,6 +239,7 @@ jobs:
-
checkout
-
checkout
-
run
:
npm install
-
run
:
npm install
-
run
:
npx nx build remix-ide --with-deps
-
run
:
npx nx build remix-ide --with-deps
-
run
:
npm run downloadsolc_assets
-
run
:
-
run
:
name
:
Deploy
name
:
Deploy
command
:
|
command
:
|
...
@@ -291,6 +292,7 @@ jobs:
...
@@ -291,6 +292,7 @@ jobs:
-
checkout
-
checkout
-
run
:
npm install
-
run
:
npm install
-
run
:
npx nx build remix-ide --with-deps
-
run
:
npx nx build remix-ide --with-deps
-
run
:
npm run downloadsolc_assets
-
run
:
-
run
:
name
:
Deploy
name
:
Deploy
command
:
|
command
:
|
...
@@ -319,6 +321,7 @@ jobs:
...
@@ -319,6 +321,7 @@ jobs:
-
run
:
npm install
-
run
:
npm install
-
run
:
npm run build:libs
-
run
:
npm run build:libs
-
run
:
npm run build
-
run
:
npm run build
-
run
:
npm run downloadsolc_assets
-
run
:
-
run
:
name
:
Deploy
name
:
Deploy
command
:
|
command
:
|
...
...
apps/remix-ide-e2e/src/tests/solidityImport.spec.ts
View file @
8cb667a4
...
@@ -80,7 +80,7 @@ module.exports = {
...
@@ -80,7 +80,7 @@ module.exports = {
'Test NPM Import (with unpkg.com)'
:
function
(
browser
:
NightwatchBrowser
)
{
'Test NPM Import (with unpkg.com)'
:
function
(
browser
:
NightwatchBrowser
)
{
browser
browser
.
setSolidityCompilerVersion
(
'soljson-v0.8.
1+commit.df193b15
.js'
)
.
setSolidityCompilerVersion
(
'soljson-v0.8.
4+commit.c7e474f2
.js'
)
.
clickLaunchIcon
(
'filePanel'
)
.
clickLaunchIcon
(
'filePanel'
)
.
click
(
'li[data-id="treeViewLitreeViewItemREADME.txt"'
)
.
click
(
'li[data-id="treeViewLitreeViewItemREADME.txt"'
)
.
addFile
(
'Untitled9.sol'
,
sources
[
8
][
'Untitled9.sol'
])
.
addFile
(
'Untitled9.sol'
,
sources
[
8
][
'Untitled9.sol'
])
...
...
apps/remix-ide/ci/makeMockCompiler.js
View file @
8cb667a4
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
var
fs
=
require
(
'fs'
)
var
fs
=
require
(
'fs'
)
var
compiler
=
require
(
'solc'
)
var
compiler
=
require
(
'solc'
)
var
compilerInput
=
require
(
'@remix-project/remix-solidity'
).
CompilerInput
var
compilerInput
=
require
(
'@remix-project/remix-solidity'
).
CompilerInput
var
defaultVersion
=
'soljson-v0.8.
1+commit.df193b15
.js'
var
defaultVersion
=
'soljson-v0.8.
4+commit.c7e474f2
.js'
const
path
=
require
(
'path'
)
const
path
=
require
(
'path'
)
compiler
.
loadRemoteVersion
(
defaultVersion
,
(
error
,
solcSnapshot
)
=>
{
compiler
.
loadRemoteVersion
(
defaultVersion
,
(
error
,
solcSnapshot
)
=>
{
...
...
apps/remix-ide/src/app/files/remixd-handle.js
View file @
8cb667a4
...
@@ -31,17 +31,17 @@ const profile = {
...
@@ -31,17 +31,17 @@ const profile = {
}
}
export
class
RemixdHandle
extends
WebsocketPlugin
{
export
class
RemixdHandle
extends
WebsocketPlugin
{
constructor
(
locahostProvider
,
appManager
)
{
constructor
(
loca
l
hostProvider
,
appManager
)
{
super
(
profile
)
super
(
profile
)
this
.
loca
hostProvider
=
loca
hostProvider
this
.
loca
lhostProvider
=
local
hostProvider
this
.
appManager
=
appManager
this
.
appManager
=
appManager
}
}
deactivate
()
{
deactivate
()
{
if
(
super
.
socket
)
super
.
deactivate
()
if
(
super
.
socket
)
super
.
deactivate
()
// this.appManager.deactivatePlugin('git') // plugin call doesn't work.. see issue https://github.com/ethereum/remix-plugin/issues/342
// this.appManager.deactivatePlugin('git') // plugin call doesn't work.. see issue https://github.com/ethereum/remix-plugin/issues/342
this
.
appManager
.
deactivatePlugin
(
'hardhat'
)
if
(
this
.
appManager
.
actives
.
includes
(
'hardhat'
))
this
.
appManager
.
deactivatePlugin
(
'hardhat'
)
this
.
locahostProvider
.
close
((
error
)
=>
{
this
.
loca
l
hostProvider
.
close
((
error
)
=>
{
if
(
error
)
console
.
log
(
error
)
if
(
error
)
console
.
log
(
error
)
})
})
}
}
...
@@ -53,7 +53,6 @@ export class RemixdHandle extends WebsocketPlugin {
...
@@ -53,7 +53,6 @@ export class RemixdHandle extends WebsocketPlugin {
async
canceled
()
{
async
canceled
()
{
// await this.appManager.deactivatePlugin('git') // plugin call doesn't work.. see issue https://github.com/ethereum/remix-plugin/issues/342
// await this.appManager.deactivatePlugin('git') // plugin call doesn't work.. see issue https://github.com/ethereum/remix-plugin/issues/342
await
this
.
appManager
.
deactivatePlugin
(
'remixd'
)
await
this
.
appManager
.
deactivatePlugin
(
'remixd'
)
await
this
.
appManager
.
deactivatePlugin
(
'hardhat'
)
}
}
/**
/**
...
@@ -83,11 +82,11 @@ export class RemixdHandle extends WebsocketPlugin {
...
@@ -83,11 +82,11 @@ export class RemixdHandle extends WebsocketPlugin {
this
.
canceled
()
this
.
canceled
()
}
}
},
3000
)
},
3000
)
this
.
locahostProvider
.
init
(()
=>
{})
this
.
loca
l
hostProvider
.
init
(()
=>
{})
this
.
call
(
'manager'
,
'activatePlugin'
,
'hardhat'
)
this
.
call
(
'manager'
,
'activatePlugin'
,
'hardhat'
)
}
}
}
}
if
(
this
.
locahostProvider
.
isConnected
())
{
if
(
this
.
loca
l
hostProvider
.
isConnected
())
{
this
.
deactivate
()
this
.
deactivate
()
}
else
if
(
!
isElectron
())
{
}
else
if
(
!
isElectron
())
{
// warn the user only if he/she is in the browser context
// warn the user only if he/she is in the browser context
...
@@ -98,7 +97,7 @@ export class RemixdHandle extends WebsocketPlugin {
...
@@ -98,7 +97,7 @@ export class RemixdHandle extends WebsocketPlugin {
label
:
'Connect'
,
label
:
'Connect'
,
fn
:
()
=>
{
fn
:
()
=>
{
try
{
try
{
this
.
locahostProvider
.
preInit
()
this
.
loca
l
hostProvider
.
preInit
()
super
.
activate
()
super
.
activate
()
setTimeout
(()
=>
{
setTimeout
(()
=>
{
if
(
!
this
.
socket
||
(
this
.
socket
&&
this
.
socket
.
readyState
===
3
))
{
// 3 means connection closed
if
(
!
this
.
socket
||
(
this
.
socket
&&
this
.
socket
.
readyState
===
3
))
{
// 3 means connection closed
...
...
apps/remix-ide/src/app/tabs/compileTab/compilerContainer.js
View file @
8cb667a4
...
@@ -24,7 +24,7 @@ class CompilerContainer {
...
@@ -24,7 +24,7 @@ class CompilerContainer {
timeout
:
300
,
timeout
:
300
,
allversions
:
null
,
allversions
:
null
,
selectedVersion
:
null
,
selectedVersion
:
null
,
defaultVersion
:
'soljson-v0.8.
1+commit.df193b15
.js'
// this default version is defined: in makeMockCompiler (for browser test)
defaultVersion
:
'soljson-v0.8.
4+commit.c7e474f2
.js'
// this default version is defined: in makeMockCompiler (for browser test)
}
}
}
}
...
@@ -527,7 +527,7 @@ class CompilerContainer {
...
@@ -527,7 +527,7 @@ class CompilerContainer {
// fetching both normal and wasm builds and creating a [version, baseUrl] map
// fetching both normal and wasm builds and creating a [version, baseUrl] map
async
fetchAllVersion
(
callback
)
{
async
fetchAllVersion
(
callback
)
{
let
selectedVersion
,
allVersionsWasm
,
isURL
let
selectedVersion
,
allVersionsWasm
,
isURL
let
allVersions
=
[{
path
:
'builtin'
,
longVersion
:
'Stable local version - 0.
7
.4'
}]
let
allVersions
=
[{
path
:
'builtin'
,
longVersion
:
'Stable local version - 0.
8
.4'
}]
// fetch normal builds
// fetch normal builds
const
binRes
=
await
promisedMiniXhr
(
`
${
baseURLBin
}
/list.json`
)
const
binRes
=
await
promisedMiniXhr
(
`
${
baseURLBin
}
/list.json`
)
// fetch wasm builds
// fetch wasm builds
...
...
package.json
View file @
8cb667a4
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
"bumpVersion:libs"
:
"gulp & gulp syncLibVersions;"
,
"bumpVersion:libs"
:
"gulp & gulp syncLibVersions;"
,
"browsertest"
:
"sleep 5 && npm run nightwatch_local"
,
"browsertest"
:
"sleep 5 && npm run nightwatch_local"
,
"csslint"
:
"csslint --ignore=order-alphabetical --errors='errors,duplicate-properties,empty-rules' --exclude-list='apps/remix-ide/src/assets/css/font-awesome.min.css' apps/remix-ide/src/assets/css/"
,
"csslint"
:
"csslint --ignore=order-alphabetical --errors='errors,duplicate-properties,empty-rules' --exclude-list='apps/remix-ide/src/assets/css/font-awesome.min.css' apps/remix-ide/src/assets/css/"
,
"downloadsolc_assets"
:
"wget --no-check-certificate https://binaries.soliditylang.org/bin/soljson-v0.8.
1+commit.df193b15
.js -O ./apps/remix-ide/src/assets/js/soljson.js"
,
"downloadsolc_assets"
:
"wget --no-check-certificate https://binaries.soliditylang.org/bin/soljson-v0.8.
4+commit.c7e474f2
.js -O ./apps/remix-ide/src/assets/js/soljson.js"
,
"make-mock-compiler"
:
"node apps/remix-ide/ci/makeMockCompiler.js"
,
"make-mock-compiler"
:
"node apps/remix-ide/ci/makeMockCompiler.js"
,
"minify"
:
"uglifyjs --in-source-map inline --source-map-inline -c warnings=false"
,
"minify"
:
"uglifyjs --in-source-map inline --source-map-inline -c warnings=false"
,
"nightwatch_parallel"
:
"npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js --env=chrome,firefox"
,
"nightwatch_parallel"
:
"npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js --env=chrome,firefox"
,
...
...
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