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
b7068d35
Unverified
Commit
b7068d35
authored
Mar 12, 2021
by
yann300
Committed by
GitHub
Mar 12, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #947 from ethereum/fixRemixdWorkspace
Fix importing file using localhost
parents
cb673996
982da81a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
8 deletions
+7
-8
terminal.test.ts
apps/remix-ide-e2e/src/tests/terminal.test.ts
+2
-2
compiler-imports.js
apps/remix-ide/src/app/compiler/compiler-imports.js
+2
-2
remixDProvider.js
apps/remix-ide/src/app/files/remixDProvider.js
+3
-4
No files found.
apps/remix-ide-e2e/src/tests/terminal.test.ts
View file @
b7068d35
...
...
@@ -91,7 +91,7 @@ module.exports = {
.
executeScript
(
'remix.execute(
\'
resolveExternalUrlAndSave.js
\'
)'
)
.
pause
(
6000
)
.
journalLastChildIncludes
(
'Implementation of the {IERC20} interface.'
)
.
openFile
(
'github/OpenZeppelin/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol'
)
.
openFile
(
'
.deps/
github/OpenZeppelin/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol'
)
},
'Call Remix File Resolver (internal URL) from a script'
:
function
(
browser
:
NightwatchBrowser
)
{
...
...
@@ -114,7 +114,7 @@ module.exports = {
.
executeScript
(
'remix.execute(
\'
resolveExternalUrlAndSaveToaPath.js
\'
)'
)
.
pause
(
6000
)
.
journalLastChildIncludes
(
'abstract contract ERC20Burnable'
)
.
openFile
(
'github/newFile.sol'
)
.
openFile
(
'
.deps/
github/newFile.sol'
)
.
end
()
},
...
...
apps/remix-ide/src/app/compiler/compiler-imports.js
View file @
b7068d35
...
...
@@ -88,9 +88,9 @@ module.exports = class CompilerImports extends Plugin {
(
error
,
content
,
cleanUrl
,
type
,
url
)
=>
{
if
(
error
)
return
cb
(
error
)
if
(
this
.
fileManager
)
{
const
workspace
=
this
.
fileManager
.
getProvider
(
'workspace'
)
const
provider
=
this
.
fileManager
.
currentFileProvider
(
)
const
path
=
targetPath
||
type
+
'/'
+
cleanUrl
if
(
workspace
)
workspace
.
addExternal
(
path
,
content
,
url
)
if
(
provider
)
provider
.
addExternal
(
'.deps/'
+
path
,
content
,
url
)
}
cb
(
null
,
content
)
})
...
...
apps/remix-ide/src/app/files/remixDProvider.js
View file @
b7068d35
'use strict'
var
EventManager
=
require
(
'../../lib/events
'
)
const
FileProvider
=
require
(
'./fileProvider
'
)
module
.
exports
=
class
RemixDProvider
{
module
.
exports
=
class
RemixDProvider
extends
FileProvider
{
constructor
(
appManager
)
{
this
.
event
=
new
EventManager
(
)
super
(
'localhost'
)
this
.
_appManager
=
appManager
this
.
type
=
'localhost'
this
.
error
=
{
EEXIST
:
'File already exists'
}
this
.
_isReady
=
false
this
.
_readOnlyFiles
=
{}
...
...
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