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
9ddaa9df
Commit
9ddaa9df
authored
Feb 14, 2018
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trigger tooltip if remixd errored
parent
32981e49
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
app.js
src/app.js
+6
-1
remixd.js
src/lib/remixd.js
+6
-0
No files found.
src/app.js
View file @
9ddaa9df
...
...
@@ -38,6 +38,7 @@ var FileManager = require('./app/files/fileManager')
var
ContextualListener
=
require
(
'./app/editor/contextualListener'
)
var
ContextView
=
require
(
'./app/editor/contextView'
)
var
BasicReadOnlyExplorer
=
require
(
'./app/files/basicReadOnlyExplorer'
)
var
toolTip
=
require
(
'./app/ui/tooltip'
)
var
styleGuide
=
remixLib
.
ui
.
themeChooser
var
styles
=
styleGuide
.
chooser
()
...
...
@@ -113,7 +114,11 @@ class App {
executionContext
.
init
(
self
.
_api
.
config
)
self
.
_api
.
filesProviders
=
{}
self
.
_api
.
filesProviders
[
'browser'
]
=
new
Browserfiles
(
fileStorage
)
self
.
_api
.
filesProviders
[
'localhost'
]
=
new
SharedFolder
(
new
Remixd
())
var
remixd
=
new
Remixd
()
remixd
.
event
.
register
(
'system'
,
(
message
)
=>
{
if
(
message
.
error
)
toolTip
(
message
.
error
)
})
self
.
_api
.
filesProviders
[
'localhost'
]
=
new
SharedFolder
(
remixd
)
self
.
_api
.
filesProviders
[
'swarm'
]
=
new
BasicReadOnlyExplorer
(
'swarm'
)
self
.
_api
.
filesProviders
[
'github'
]
=
new
BasicReadOnlyExplorer
(
'github'
)
self
.
_api
.
filesProviders
[
'gist'
]
=
new
BasicReadOnlyExplorer
(
'gist'
)
...
...
src/lib/remixd.js
View file @
9ddaa9df
...
...
@@ -48,6 +48,12 @@ class Remixd {
this
.
event
.
trigger
(
'replied'
,
[
data
])
}
else
if
(
data
.
type
===
'notification'
)
{
this
.
event
.
trigger
(
'notified'
,
[
data
])
}
else
if
(
data
.
type
===
'system'
)
{
if
(
data
.
error
)
{
this
.
event
.
trigger
(
'system'
,
[{
error
:
data
.
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