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
2436b63a
Commit
2436b63a
authored
Dec 22, 2020
by
aniket-engg
Committed by
Aniket
Jan 04, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ide linting fixed
parent
2f6d50e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
compiler-imports.js
apps/remix-ide/src/app/compiler/compiler-imports.js
+3
-6
No files found.
apps/remix-ide/src/app/compiler/compiler-imports.js
View file @
2436b63a
'use strict'
import
{
Plugin
}
from
'@remixproject/engine'
import
*
as
packageJson
from
'../../../../../package.json'
import
{
RemixURLResolver
}
from
'@remix-project/remix-url-resolver'
import
{
RemixURLResolver
}
from
'@remix-project/remix-url-resolver'
const
remixTests
=
require
(
'@remix-project/remix-tests'
)
const
globalRegistry
=
require
(
'../../global/registry'
)
const
addTooltip
=
require
(
'../ui/tooltip'
)
const
async
=
require
(
'async'
)
var
base64
=
require
(
'js-base64'
).
Base64
var
swarmgw
=
require
(
'swarmgw'
)()
var
resolver
=
require
(
'@resolver-engine/imports'
).
ImportsEngine
()
var
request
=
require
(
'request'
)
...
...
@@ -19,7 +18,6 @@ const profile = {
}
module
.
exports
=
class
CompilerImports
extends
Plugin
{
constructor
(
fileManager
)
{
super
(
profile
)
this
.
fileManager
=
fileManager
...
...
@@ -123,7 +121,7 @@ module.exports = class CompilerImports extends Plugin {
found
=
true
loadingCb
(
'Loading '
+
url
+
' ...'
)
handler
.
handle
(
match
).
then
(
function
(
result
)
{
handler
.
handle
(
match
).
then
(
function
(
result
)
{
const
{
content
,
cleanUrl
}
=
result
self
.
previouslyHandled
[
url
]
=
{
content
,
...
...
@@ -132,8 +130,7 @@ module.exports = class CompilerImports extends Plugin {
}
cb
(
null
,
content
,
cleanUrl
,
handler
.
type
,
url
)
}).
catch
(
function
(
error
)
{
cb
(
'Unable to import url : '
+
error
)
return
cb
(
'Unable to import url : '
+
error
)
})
}
})
...
...
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