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
4357ef2f
Commit
4357ef2f
authored
Sep 16, 2021
by
davidzagi93@gmail.com
Browse files
Options
Browse Files
Download
Plain Diff
remixd_terminal: resolving conflicts
parents
dc37f543
0e36c001
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
71 additions
and
16 deletions
+71
-16
.env
.env
+0
-5
libraryDeployment.test.ts
apps/remix-ide-e2e/src/tests/libraryDeployment.test.ts
+1
-0
solidityUnittests.spec.ts
apps/remix-ide-e2e/src/tests/solidityUnittests.spec.ts
+50
-0
fileManager.js
apps/remix-ide/src/app/files/fileManager.js
+1
-1
compile-tab.js
apps/remix-ide/src/app/tabs/compile-tab.js
+1
-1
index.ts
libs/remix-lib/src/index.ts
+0
-1
ICompilerApi.ts
libs/remix-lib/src/types/ICompilerApi.ts
+3
-0
LocalPluginForm.tsx
...-ui/plugin-manager/src/lib/components/LocalPluginForm.tsx
+1
-1
index.ts
libs/remix-ui/solidity-compiler/src/lib/types/index.ts
+0
-1
terminalReducer.ts
libs/remix-ui/terminal/src/lib/reducers/terminalReducer.ts
+5
-2
nx.json
nx.json
+6
-0
tsconfig.base.json
tsconfig.base.json
+2
-2
tsconfig.json
tsconfig.json
+1
-2
{
{
+0
-0
No files found.
.env
deleted
100644 → 0
View file @
dc37f543
gist_token=<token>
account_passphrase=<passphrase>
account_password=<password>
NODE_OPTIONS=--max-old-space-size=2048
\ No newline at end of file
apps/remix-ide-e2e/src/tests/libraryDeployment.test.ts
View file @
4357ef2f
...
...
@@ -77,6 +77,7 @@ function checkDeployShouldFail (browser: NightwatchBrowser, callback: VoidFuncti
.
clickLaunchIcon
(
'udapp'
)
.
selectContract
(
'test'
)
// deploy lib
.
createContract
(
''
)
.
pause
(
60000
)
.
getText
(
'div[class^="terminal"]'
,
(
value
)
=>
{
console
.
log
(
'value: '
,
value
)
})
...
...
apps/remix-ide-e2e/src/tests/solidityUnittests.spec.ts
View file @
4357ef2f
...
...
@@ -158,6 +158,8 @@ module.exports = {
.
waitForElementVisible
(
'*[data-id="modalDialogCustomPromptTextCreate"]'
)
// eslint-disable-next-line dot-notation
.
execute
(
function
()
{
document
.
querySelector
(
'*[data-id="modalDialogCustomPromptTextCreate"]'
)[
'value'
]
=
'workspace_new'
})
.
pause
(
5000
)
.
waitForElementPresent
(
'*[data-id="workspacesModalDialogModalDialogModalFooter-react"] .modal-ok'
)
.
click
(
'*[data-id="workspacesModalDialogModalDialogModalFooter-react"] .modal-ok'
)
.
click
(
'*[data-id="workspacesSelect"] option[value="workspace_new"]'
)
// end of creating
...
...
@@ -184,6 +186,29 @@ module.exports = {
.
waitForElementContainsText
(
'#solidityUnittestsOutput'
,
'✓ Check winnin proposal with return value'
,
60000
)
},
'Solidity Unit tests with hardhat console log'
:
function
(
browser
:
NightwatchBrowser
)
{
browser
.
waitForElementPresent
(
'*[data-id="verticalIconsKindfilePanel"]'
)
.
addFile
(
'tests/hhLogs_test.sol'
,
sources
[
0
][
'tests/hhLogs_test.sol'
])
.
clickLaunchIcon
(
'solidityUnitTesting'
)
.
waitForElementVisible
(
'*[id="singleTesttests/4_Ballot_test.sol"]'
,
60000
)
.
click
(
'*[id="singleTesttests/4_Ballot_test.sol"]'
)
.
click
(
'#runTestsTabRunAction'
)
.
pause
(
2000
)
.
waitForElementVisible
(
'*[data-id="testTabSolidityUnitTestsOutputheader"]'
,
120000
)
.
waitForElementPresent
(
'#solidityUnittestsOutput div[class^="testPass"]'
,
60000
)
.
waitForElementContainsText
(
'#solidityUnittestsOutput'
,
'tests/hhLogs_test.sol'
,
60000
)
.
assert
.
containsText
(
'#journal > div:nth-child(2) > span '
,
'Before all:'
)
.
assert
.
containsText
(
'#journal > div:nth-child(2) > span'
,
'Inside beforeAll'
)
.
assert
.
containsText
(
'#journal > div:nth-child(3) > span'
,
'Check sender:'
)
.
assert
.
containsText
(
'#journal > div:nth-child(3) > span'
,
'msg.sender is 0x5B38Da6a701c568545dCfcB03FcB875f56beddC4'
)
.
assert
.
containsText
(
'#journal > div:nth-child(4) > span'
,
'Check int logs:'
)
.
assert
.
containsText
(
'#journal > div:nth-child(4) > span'
,
'10 20'
)
.
assert
.
containsText
(
'#journal > div:nth-child(4) > span'
,
'Number is 25'
)
.
openFile
(
'tests/hhLogs_test.sol'
)
.
removeFile
(
'tests/hhLogs_test.sol'
,
'workspace_new'
)
},
'Debug failed test using debugger'
:
function
(
browser
:
NightwatchBrowser
)
{
browser
.
waitForElementPresent
(
'*[data-id="verticalIconsKindfilePanel"]'
)
...
...
@@ -460,6 +485,31 @@ const sources = [
return ballotToTest.winningProposal() == 0;
}
}`
},
'tests/hhLogs_test.sol'
:
{
content
:
`// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
import "remix_tests.sol"; // this import is automatically injected by Remix.
import "hardhat/console.sol";
contract hhLogs {
function beforeAll () public {
console.log('Inside beforeAll');
}
function checkSender () public {
console.log('msg.sender is %s', msg.sender);
Assert.ok(true, "should be true");
}
function checkIntLogs () public {
console.log(10,20);
console.log('Number is %d', 25);
Assert.ok(true, "should be true");
}
}`
}
}
]
...
...
apps/remix-ide/src/app/files/fileManager.js
View file @
4357ef2f
...
...
@@ -22,7 +22,7 @@ const profile = {
icon
:
'assets/img/fileManager.webp'
,
permission
:
true
,
version
:
packageJson
.
version
,
methods
:
[
'closeAllFiles'
,
'closeFile'
,
'file'
,
'exists'
,
'open'
,
'writeFile'
,
'readFile'
,
'copyFile'
,
'copyDir'
,
'rename'
,
'mkdir'
,
'readdir'
,
'remove'
,
'getCurrentFile'
,
'getFile'
,
'getFolder'
,
'setFile'
,
'switchFile'
,
'refresh'
,
'getProviderOf'
,
'getProviderByName'
,
'getPathFromUrl'
,
'getUrlFromPath'
],
methods
:
[
'closeAllFiles'
,
'closeFile'
,
'file'
,
'exists'
,
'open'
,
'writeFile'
,
'readFile'
,
'copyFile'
,
'copyDir'
,
'rename'
,
'mkdir'
,
'readdir'
,
'remove'
,
'getCurrentFile'
,
'getFile'
,
'getFolder'
,
'setFile'
,
'switchFile'
,
'refresh'
,
'getProviderOf'
,
'getProviderByName'
,
'getPathFromUrl'
,
'getUrlFromPath'
,
'saveCurrentFile'
],
kind
:
'file-system'
}
const
errorMsg
=
{
...
...
apps/remix-ide/src/app/tabs/compile-tab.js
View file @
4357ef2f
...
...
@@ -139,7 +139,7 @@ class CompileTab extends CompilerApiMixin(ViewPlugin) { // implements ICompilerA
}
getAppParameter
(
name
)
{
// first look in the URL params then in the local stor
P
age
// first look in the URL params then in the local storage
const
params
=
this
.
queryParams
.
get
()
const
param
=
params
[
name
]
?
params
[
name
]
:
this
.
config
.
get
(
name
)
if
(
param
===
'true'
)
return
true
...
...
libs/remix-lib/src/index.ts
View file @
4357ef2f
...
...
@@ -18,7 +18,6 @@ import * as typeConversion from './execution/typeConversion'
import
{
TxRunnerVM
}
from
'./execution/txRunnerVM'
import
{
TxRunnerWeb3
}
from
'./execution/txRunnerWeb3'
import
*
as
txResultHelper
from
'./helpers/txResultHelper'
export
{
ICompilerApi
,
ConfigurationSettings
}
from
'./types/ICompilerApi'
const
helpers
=
{
...
...
libs/remix-lib/src/types/ICompilerApi.ts
View file @
4357ef2f
...
...
@@ -50,5 +50,8 @@ export interface ConfigurationSettings {
language
:
string
,
optimize
:
boolean
,
runs
:
string
<<<<<<<
HEAD
=======
>>>>>>>
0
e36c001f098047cf4fec47ae9611d1e4e4a8355
}
libs/remix-ui/plugin-manager/src/lib/components/LocalPluginForm.tsx
View file @
4357ef2f
...
...
@@ -5,7 +5,7 @@ import { Toaster } from '@remix-ui/toaster'
import
{
IframePlugin
,
WebsocketPlugin
}
from
'@remixproject/engine-web'
import
{
localPluginReducerActionType
,
localPluginToastReducer
}
from
'../reducers/pluginManagerReducer'
import
{
FormStateProps
,
PluginManagerComponent
}
from
'../../types'
import
{
canActivate
,
FormStateProps
,
PluginManagerComponent
}
from
'../../types'
interface
LocalPluginFormProps
{
closeModal
:
()
=>
void
...
...
libs/remix-ui/solidity-compiler/src/lib/types/index.ts
View file @
4357ef2f
...
...
@@ -23,5 +23,4 @@ export interface ContractSelectionProps {
}
|
Record
<
string
,
any
>
,
modal
:
(
title
:
string
,
message
:
string
|
JSX
.
Element
,
okLabel
:
string
,
okFn
:
()
=>
void
,
cancelLabel
?:
string
,
cancelFn
?:
()
=>
void
)
=>
void
,
contractsDetails
:
Record
<
string
,
any
>
}
libs/remix-ui/terminal/src/lib/reducers/terminalReducer.ts
View file @
4357ef2f
...
...
@@ -139,9 +139,12 @@ export const remixWelcomeTextReducer = (state, action) => {
}
export
const
registerScriptRunnerReducer
=
(
state
,
action
)
=>
{
const
result
=
Object
.
assign
([],
action
.
payload
.
message
)
console
.
log
({
result
})
switch
(
action
.
type
)
{
case
'html'
:
return
{
...
state
,
journalBlocks
:
initialState
.
journalBlocks
.
push
({
message
:
action
.
payload
.
message
,
style
:
'text-log'
})
}
case
'log'
:
return
{
...
state
,
...
...
nx.json
View file @
4357ef2f
...
...
@@ -122,6 +122,12 @@
"tags"
:
[]
},
"remix-ui-terminal"
:
{
<<<<<<<
HEAD
=======
"tags"
:
[]
},
"solidity-compiler"
:
{
>>>>>>>
0e36
c
001
f
098047
cf
4
fec
47
ae
9611
d
1e4
e
4
a
8355
"tags"
:
[]
},
"solidity-compiler"
:
{
...
...
tsconfig.base.json
View file @
4357ef2f
...
...
@@ -43,9 +43,9 @@
"@remix-project/core-plugin"
:
[
"libs/remix-core-plugin/src/index.ts"
],
"@remix-ui/solidity-compiler"
:
[
"libs/remix-ui/solidity-compiler/src/index.ts"
],
"@remix-ui/publish-to-storage"
:
[
"libs/remix-ui/publish-to-storage/src/index.ts"
],
"@remix-ui/plugin-manager"
:
[
"libs/remix-ui/plugin-manager/src/index.ts"
],
"@remix-ui/renderer"
:
[
"libs/remix-ui/renderer/src/index.ts"
],
"@remix-ui/terminal"
:
[
"libs/remix-ui/terminal/src/index.ts"
]
"@remix-ui/terminal"
:
[
"libs/remix-ui/terminal/src/index.ts"
],
"@remix-ui/plugin-manager"
:
[
"libs/remix-ui/plugin-manager/src/index.ts"
],
}
},
"exclude"
:
[
"node_modules"
,
"tmp"
]
...
...
tsconfig.json
View file @
4357ef2f
...
...
@@ -14,8 +14,7 @@
"skipLibCheck"
:
true
,
"skipDefaultLibCheck"
:
true
,
"baseUrl"
:
"."
,
"paths"
:
{},
"allowSyntheticDefaultImports"
:
true
"paths"
:
{}
},
"exclude"
:
[
"node_modules"
,
"tmp"
]
}
{
deleted
100644 → 0
View file @
dc37f543
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