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
0d917c1f
Commit
0d917c1f
authored
Oct 12, 2021
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed broken build
parent
4745462b
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4 additions
and
3 deletions
+4
-3
run.ts
libs/remix-tests/src/run.ts
+1
-1
workspace.ts
libs/remix-ui/workspace/src/lib/actions/workspace.ts
+2
-1
remixd.ts
libs/remixd/src/bin/remixd.ts
+1
-1
package-lock.json
package-lock.json
+0
-0
package.json
package.json
+0
-0
No files found.
libs/remix-tests/src/run.ts
View file @
0d917c1f
...
...
@@ -81,7 +81,7 @@ commander
const
compVersion
=
commander
.
compiler
const
baseURL
=
'https://binaries.soliditylang.org/wasm/'
const
response
:
AxiosResponse
=
await
axios
.
get
(
baseURL
+
'list.json'
)
const
{
releases
,
latestRelease
}
=
response
.
data
const
{
releases
,
latestRelease
}
=
response
.
data
as
{
releases
:
string
[],
latestRelease
:
string
}
const
compString
=
releases
?
releases
[
compVersion
]
:
null
if
(
!
compString
)
{
log
.
error
(
`No compiler found in releases with version
${
compVersion
}
`
)
...
...
libs/remix-ui/workspace/src/lib/actions/workspace.ts
View file @
0d917c1f
import
React
from
'react'
import
{
bufferToHex
,
keccakFromString
}
from
'ethereumjs-util'
import
axios
,
{
AxiosResponse
}
from
'axios'
import
{
addInputFieldSuccess
,
createWorkspaceError
,
createWorkspaceRequest
,
createWorkspaceSuccess
,
displayNotification
,
fetchWorkspaceDirectoryError
,
fetchWorkspaceDirectoryRequest
,
fetchWorkspaceDirectorySuccess
,
hideNotification
,
setCurrentWorkspace
,
setMode
,
setReadOnlyMode
,
setRenameWorkspace
}
from
'./payload'
...
...
@@ -95,7 +96,7 @@ export const loadWorkspacePreset = async (template: 'gist-template' | 'code-temp
try
{
const
gistId
=
params
.
gist
const
response
:
AxiosResponse
=
await
axios
.
get
(
`https://api.github.com/gists/
${
gistId
}
`
)
const
data
=
response
.
data
const
data
=
response
.
data
as
{
files
:
any
}
if
(
!
data
.
files
)
{
return
dispatch
(
displayNotification
(
'Gist load error'
,
'No files found'
,
'OK'
,
null
,
()
=>
{
dispatch
(
hideNotification
())
},
null
))
...
...
libs/remixd/src/bin/remixd.ts
View file @
0d917c1f
...
...
@@ -148,7 +148,7 @@ function errorHandler (error: any, service: string) {
const
gistUrl
=
'https://gist.githubusercontent.com/EthereumRemix/091ccc57986452bbb33f57abfb13d173/raw/3367e019335746b73288e3710af2922d4c8ef5a3/origins.json'
try
{
const
{
data
}
=
await
Axios
.
get
(
gistUrl
)
const
{
data
}
=
(
await
Axios
.
get
(
gistUrl
))
as
{
data
:
any
}
try
{
await
writeJSON
(
path
.
resolve
(
path
.
join
(
__dirname
,
'..'
,
'origins.json'
)),
{
data
})
...
...
package-lock.json
View file @
0d917c1f
This source diff could not be displayed because it is too large. You can
view the blob
instead.
package.json
View file @
0d917c1f
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