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
36ed68fa
Commit
36ed68fa
authored
Jun 28, 2018
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean app ctr
parent
46046576
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
app.js
src/app.js
+11
-4
No files found.
src/app.js
View file @
36ed68fa
...
@@ -119,6 +119,7 @@ class App {
...
@@ -119,6 +119,7 @@ class App {
var
self
=
this
var
self
=
this
self
.
_components
=
{}
self
.
_components
=
{}
registry
.
put
({
api
:
self
,
name
:
'app'
})
registry
.
put
({
api
:
self
,
name
:
'app'
})
var
fileStorage
=
new
Storage
(
'sol:'
)
var
fileStorage
=
new
Storage
(
'sol:'
)
registry
.
put
({
api
:
fileStorage
,
name
:
'fileStorage'
})
registry
.
put
({
api
:
fileStorage
,
name
:
'fileStorage'
})
...
@@ -130,17 +131,24 @@ class App {
...
@@ -130,17 +131,24 @@ class App {
executionContext
.
init
(
self
.
_components
.
config
)
executionContext
.
init
(
self
.
_components
.
config
)
executionContext
.
listenOnLastBlock
()
executionContext
.
listenOnLastBlock
()
self
.
_components
.
compilerImport
=
new
CompilerImport
()
registry
.
put
({
api
:
self
.
_components
.
compilerImport
,
name
:
'compilerimport'
})
self
.
_components
.
gistHandler
=
new
GistHandler
()
self
.
_components
.
filesProviders
=
{}
self
.
_components
.
filesProviders
=
{}
self
.
_components
.
filesProviders
[
'browser'
]
=
new
Browserfiles
(
fileStorage
)
self
.
_components
.
filesProviders
[
'browser'
]
=
new
Browserfiles
(
fileStorage
)
self
.
_components
.
filesProviders
[
'config'
]
=
new
BrowserfilesTree
(
'config'
,
configStorage
)
self
.
_components
.
filesProviders
[
'config'
]
=
new
BrowserfilesTree
(
'config'
,
configStorage
)
self
.
_components
.
filesProviders
[
'config'
].
init
()
self
.
_components
.
filesProviders
[
'config'
].
init
()
registry
.
put
({
api
:
self
.
_components
.
filesProviders
[
'browser'
],
name
:
'fileproviders/browser'
})
registry
.
put
({
api
:
self
.
_components
.
filesProviders
[
'browser'
],
name
:
'fileproviders/browser'
})
registry
.
put
({
api
:
self
.
_components
.
filesProviders
[
'config'
],
name
:
'fileproviders/config'
})
registry
.
put
({
api
:
self
.
_components
.
filesProviders
[
'config'
],
name
:
'fileproviders/config'
})
var
remixd
=
new
Remixd
()
var
remixd
=
new
Remixd
()
registry
.
put
({
api
:
remixd
,
name
:
'remixd
/config
'
})
registry
.
put
({
api
:
remixd
,
name
:
'remixd'
})
remixd
.
event
.
register
(
'system'
,
(
message
)
=>
{
remixd
.
event
.
register
(
'system'
,
(
message
)
=>
{
if
(
message
.
error
)
toolTip
(
message
.
error
)
if
(
message
.
error
)
toolTip
(
message
.
error
)
})
})
self
.
_components
.
filesProviders
[
'localhost'
]
=
new
SharedFolder
(
remixd
)
self
.
_components
.
filesProviders
[
'localhost'
]
=
new
SharedFolder
(
remixd
)
self
.
_components
.
filesProviders
[
'swarm'
]
=
new
BasicReadOnlyExplorer
(
'swarm'
)
self
.
_components
.
filesProviders
[
'swarm'
]
=
new
BasicReadOnlyExplorer
(
'swarm'
)
self
.
_components
.
filesProviders
[
'github'
]
=
new
BasicReadOnlyExplorer
(
'github'
)
self
.
_components
.
filesProviders
[
'github'
]
=
new
BasicReadOnlyExplorer
(
'github'
)
...
@@ -152,10 +160,9 @@ class App {
...
@@ -152,10 +160,9 @@ class App {
registry
.
put
({
api
:
self
.
_components
.
filesProviders
[
'gist'
],
name
:
'fileproviders/gist'
})
registry
.
put
({
api
:
self
.
_components
.
filesProviders
[
'gist'
],
name
:
'fileproviders/gist'
})
registry
.
put
({
api
:
self
.
_components
.
filesProviders
[
'ipfs'
],
name
:
'fileproviders/ipfs'
})
registry
.
put
({
api
:
self
.
_components
.
filesProviders
[
'ipfs'
],
name
:
'fileproviders/ipfs'
})
registry
.
put
({
api
:
self
.
_components
.
filesProviders
,
name
:
'fileproviders'
})
registry
.
put
({
api
:
self
.
_components
.
filesProviders
,
name
:
'fileproviders'
})
self
.
_view
=
{}
self
.
_view
=
{}
self
.
_components
.
compilerImport
=
new
CompilerImport
()
registry
.
put
({
api
:
self
.
_components
.
compilerImport
,
name
:
'compilerimport'
})
self
.
_components
.
gistHandler
=
new
GistHandler
()
self
.
data
=
{
self
.
data
=
{
_layout
:
{
_layout
:
{
right
:
{
right
:
{
...
...
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