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
f562758c
Commit
f562758c
authored
Jul 07, 2020
by
LianaHus
Committed by
ioedeveloper
Jul 13, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
treview indent
remixD error report
parent
0d7c6edc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
6 deletions
+13
-6
remixd-handle.js
apps/remix-ide/src/app/files/remixd-handle.js
+9
-2
file-panel.js
apps/remix-ide/src/app/panels/file-panel.js
+1
-1
TreeView.js
apps/remix-ide/src/app/ui/TreeView.js
+3
-3
No files found.
apps/remix-ide/src/app/files/remixd-handle.js
View file @
f562758c
...
@@ -20,6 +20,7 @@ var css = csjs`
...
@@ -20,6 +20,7 @@ var css = csjs`
const
profile
=
{
const
profile
=
{
name
:
'remixd'
,
name
:
'remixd'
,
displayName
:
'RemixD'
,
url
:
'ws://127.0.0.1:65520'
,
url
:
'ws://127.0.0.1:65520'
,
methods
:
[
'folderIsReadOnly'
,
'resolveDirectory'
,
'get'
,
'exists'
,
'isFile'
,
'set'
,
'rename'
,
'remove'
,
'isDirectory'
,
'list'
],
methods
:
[
'folderIsReadOnly'
,
'resolveDirectory'
,
'get'
,
'exists'
,
'isFile'
,
'set'
,
'rename'
,
'remove'
,
'isDirectory'
,
'list'
],
events
:
[],
events
:
[],
...
@@ -57,7 +58,7 @@ export class RemixdHandle extends WebsocketPlugin {
...
@@ -57,7 +58,7 @@ export class RemixdHandle extends WebsocketPlugin {
* connect to localhost if no connection and render the explorer
* connect to localhost if no connection and render the explorer
* disconnect from localhost if connected and remove the explorer
* disconnect from localhost if connected and remove the explorer
*
*
* @param {String} txHash
- hash of the transaction
* @param {String} txHash - hash of the transaction
*/
*/
async
connectToLocalhost
()
{
async
connectToLocalhost
()
{
let
connection
=
(
error
)
=>
{
let
connection
=
(
error
)
=>
{
...
@@ -83,7 +84,13 @@ export class RemixdHandle extends WebsocketPlugin {
...
@@ -83,7 +84,13 @@ export class RemixdHandle extends WebsocketPlugin {
fn
:
()
=>
{
fn
:
()
=>
{
try
{
try
{
super
.
activate
()
super
.
activate
()
setTimeout
(()
=>
{
connection
()
},
2000
)
setTimeout
(()
=>
{
if
(
!
super
.
socket
)
{
connection
(
new
Error
(
'Connection with daemon failed.'
))
}
else
{
connection
()
}
},
3000
)
}
catch
(
error
)
{
}
catch
(
error
)
{
connection
(
error
)
connection
(
error
)
}
}
...
...
apps/remix-ide/src/app/panels/file-panel.js
View file @
f562758c
...
@@ -65,7 +65,7 @@ module.exports = class Filepanel extends ViewPlugin {
...
@@ -65,7 +65,7 @@ module.exports = class Filepanel extends ViewPlugin {
const
explorers
=
yo
`
const
explorers
=
yo
`
<div>
<div>
<div class="pl-2
${
css
.
treeview
}
" data-id="filePanelFileExplorerTree">
${
fileExplorer
.
init
()}
</div>
<div class="pl-2
${
css
.
treeview
}
" data-id="filePanelFileExplorerTree">
${
fileExplorer
.
init
()}
</div>
<div class="filesystemexplorer
${
css
.
treeview
}
">
${
fileSystemExplorer
.
init
()}
</div>
<div class="
pl-2
filesystemexplorer
${
css
.
treeview
}
">
${
fileSystemExplorer
.
init
()}
</div>
</div>
</div>
`
`
...
...
apps/remix-ide/src/app/ui/TreeView.js
View file @
f562758c
...
@@ -80,13 +80,13 @@ class TreeView {
...
@@ -80,13 +80,13 @@ class TreeView {
var
children
=
Object
.
keys
(
json
).
map
((
innerkey
)
=>
{
var
children
=
Object
.
keys
(
json
).
map
((
innerkey
)
=>
{
return
this
.
renderObject
(
json
[
innerkey
],
json
,
innerkey
,
expand
,
innerkey
)
return
this
.
renderObject
(
json
[
innerkey
],
json
,
innerkey
,
expand
,
innerkey
)
})
})
return
yo
`<ul key=
${
key
}
data-id="treeViewUl
${
key
}
" class="
${
css
.
ul_tv
}
ml-0 p
r
-2">
${
children
}
</ul>`
return
yo
`<ul key=
${
key
}
data-id="treeViewUl
${
key
}
" class="
${
css
.
ul_tv
}
ml-0 p
x
-2">
${
children
}
</ul>`
}
}
formatData
(
key
,
data
,
children
,
expand
,
keyPath
)
{
formatData
(
key
,
data
,
children
,
expand
,
keyPath
)
{
var
self
=
this
var
self
=
this
var
li
=
yo
`<li key=
${
keyPath
}
data-id="treeViewLi
${
keyPath
}
" class=
${
css
.
li_tv
}
></li>`
var
li
=
yo
`<li key=
${
keyPath
}
data-id="treeViewLi
${
keyPath
}
" class=
${
css
.
li_tv
}
></li>`
var
caret
=
yo
`<div class="fas fa-caret-right caret
${
css
.
caret_tv
}
"></div>`
var
caret
=
yo
`<div class="
px-1
fas fa-caret-right caret
${
css
.
caret_tv
}
"></div>`
var
label
=
yo
`
var
label
=
yo
`
<div key=
${
keyPath
}
data-id="treeViewDiv
${
keyPath
}
" class="d-flex flex-row align-items-center">
<div key=
${
keyPath
}
data-id="treeViewDiv
${
keyPath
}
" class="d-flex flex-row align-items-center">
${
caret
}
${
caret
}
...
@@ -95,7 +95,7 @@ class TreeView {
...
@@ -95,7 +95,7 @@ class TreeView {
const
expanded
=
self
.
expandPath
.
includes
(
keyPath
)
const
expanded
=
self
.
expandPath
.
includes
(
keyPath
)
li
.
appendChild
(
label
)
li
.
appendChild
(
label
)
if
(
data
.
children
)
{
if
(
data
.
children
)
{
var
list
=
yo
`<ul key=
${
keyPath
}
data-id="treeViewUlList
${
keyPath
}
" class=
${
css
.
ul_tv
}
>
${
children
}
</ul>`
var
list
=
yo
`<ul key=
${
keyPath
}
data-id="treeViewUlList
${
keyPath
}
" class=
"pl-2
${
css
.
ul_tv
}
"
>
${
children
}
</ul>`
list
.
style
.
display
=
expanded
?
'block'
:
'none'
list
.
style
.
display
=
expanded
?
'block'
:
'none'
caret
.
className
=
list
.
style
.
display
===
'none'
?
`fas fa-caret-right caret
${
css
.
caret_tv
}
`
:
`fas fa-caret-down caret
${
css
.
caret_tv
}
`
caret
.
className
=
list
.
style
.
display
===
'none'
?
`fas fa-caret-right caret
${
css
.
caret_tv
}
`
:
`fas fa-caret-down caret
${
css
.
caret_tv
}
`
caret
.
setAttribute
(
'data-id'
,
`treeViewToggle
${
keyPath
}
`
)
caret
.
setAttribute
(
'data-id'
,
`treeViewToggle
${
keyPath
}
`
)
...
...
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