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
5e91f301
Unverified
Commit
5e91f301
authored
Jul 08, 2021
by
David Disu
Committed by
GitHub
Jul 08, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1364 from ethereum/use-jvm
Set JVM option as default.
parents
15234d21
7b9d5f57
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
8 deletions
+14
-8
gist.spec.ts
apps/remix-ide-e2e/src/tests/gist.spec.ts
+5
-5
remix-ui-settings.tsx
libs/remix-ui/settings/src/lib/remix-ui-settings.tsx
+8
-2
settingsAction.ts
libs/remix-ui/settings/src/lib/settingsAction.ts
+1
-1
No files found.
apps/remix-ide-e2e/src/tests/gist.spec.ts
View file @
5e91f301
...
...
@@ -3,7 +3,7 @@ import { NightwatchBrowser } from 'nightwatch'
import
init
from
'../helpers/init'
const
testData
=
{
validGistId
:
'
1859c97c6e1efc91047d725d5225888e
'
,
validGistId
:
'
02a847917a6a7ecaf4a7e0d4e68715bf
'
,
invalidGistId
:
'6368b389f9302v32902msk2402'
}
// 99266d6da54cc12f37f11586e8171546c7700d67
...
...
@@ -20,7 +20,7 @@ module.exports = {
- switch to a file in the new gist
*/
console
.
log
(
'token'
,
process
.
env
.
gist_token
)
const
gistid
=
'
c15ed7c182a7991ea0a4dea1544fa254
'
const
gistid
=
'
17ac9315bc065a3d95cf8dc1b28d71f8
'
browser
.
refresh
()
.
pause
(
10000
)
...
...
@@ -125,9 +125,9 @@ module.exports = {
.
waitForElementVisible
(
'*[data-id="modalDialogCustomPromptText"]'
)
.
setValue
(
'*[data-id="modalDialogCustomPromptText"]'
,
testData
.
validGistId
)
.
modalFooterOKClick
()
.
openFile
(
`gist-
${
testData
.
validGistId
}
/
ApplicationRegistry
`
)
.
waitForElementVisible
(
`div[title='default_workspace/gist-
${
testData
.
validGistId
}
/
ApplicationRegistry
']`
)
.
assert
.
containsText
(
`div[title='default_workspace/gist-
${
testData
.
validGistId
}
/
ApplicationRegistry'] > span`
,
'ApplicationRegistry
'
)
.
openFile
(
`gist-
${
testData
.
validGistId
}
/
README.txt
`
)
.
waitForElementVisible
(
`div[title='default_workspace/gist-
${
testData
.
validGistId
}
/
README.txt
']`
)
.
assert
.
containsText
(
`div[title='default_workspace/gist-
${
testData
.
validGistId
}
/
README.txt'] > span`
,
'README.txt
'
)
.
end
()
}
}
libs/remix-ui/settings/src/lib/remix-ui-settings.tsx
View file @
5e91f301
...
...
@@ -4,7 +4,7 @@ import { CopyToClipboard } from '@remix-ui/clipboard' // eslint-disable-line
import
{
enablePersonalModeText
,
ethereunVMText
,
generateContractMetadataText
,
gitAccessTokenLink
,
gitAccessTokenText
,
gitAccessTokenText2
,
gitAccessTokenTitle
,
matomoAnalytics
,
textDark
,
textSecondary
,
warnText
,
wordWrapText
}
from
'./constants'
import
'./remix-ui-settings.css'
import
{
etherumVM
,
generateContractMetadat
,
personal
,
textWrapEventAction
,
useMatomoAnalytics
,
saveTokenToast
,
removeTokenToast
}
from
'./settingsAction'
import
{
ether
e
umVM
,
generateContractMetadat
,
personal
,
textWrapEventAction
,
useMatomoAnalytics
,
saveTokenToast
,
removeTokenToast
}
from
'./settingsAction'
import
{
initialState
,
toastInitialState
,
toastReducer
,
settingReducer
}
from
'./settingsReducer'
import
{
Toaster
}
from
'@remix-ui/toaster'
// eslint-disable-line
...
...
@@ -38,12 +38,18 @@ export const RemixUiSettings = (props: RemixUiSettingsProps) => {
if
(
props
.
useMatomoAnalytics
!==
null
)
useMatomoAnalytics
(
props
.
config
,
props
.
useMatomoAnalytics
,
dispatch
)
},
[
props
.
useMatomoAnalytics
])
useEffect
(()
=>
{
const
javascriptVM
=
props
.
config
.
get
(
'settings/always-use-vm'
)
if
((
javascriptVM
===
null
)
||
(
javascriptVM
===
undefined
))
ethereumVM
(
props
.
config
,
true
,
dispatch
)
},
[
props
.
config
])
const
onchangeGenerateContractMetadata
=
(
event
)
=>
{
generateContractMetadat
(
props
.
config
,
event
.
target
.
checked
,
dispatch
)
}
const
onchangeOption
=
(
event
)
=>
{
etherumVM
(
props
.
config
,
event
.
target
.
checked
,
dispatch
)
ether
e
umVM
(
props
.
config
,
event
.
target
.
checked
,
dispatch
)
}
const
textWrapEvent
=
(
event
)
=>
{
...
...
libs/remix-ui/settings/src/lib/settingsAction.ts
View file @
5e91f301
...
...
@@ -13,7 +13,7 @@ export const generateContractMetadat = (config, checked, dispatch) => {
dispatch
({
type
:
'contractMetadata'
,
payload
:
{
isChecked
:
checked
,
textClass
:
checked
?
textDark
:
textSecondary
}
})
}
export
const
etherumVM
=
(
config
,
checked
:
boolean
,
dispatch
)
=>
{
export
const
ether
e
umVM
=
(
config
,
checked
:
boolean
,
dispatch
)
=>
{
config
.
set
(
'settings/always-use-vm'
,
checked
)
dispatch
({
type
:
'ethereumVM'
,
payload
:
{
isChecked
:
checked
,
textClass
:
checked
?
textDark
:
textSecondary
}
})
}
...
...
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