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
5335e9ab
Commit
5335e9ab
authored
Apr 11, 2017
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
warn user if storage is not complete
parent
0d3a26a5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
+11
-4
storageViewer.js
src/storage/storageViewer.js
+1
-1
DropdownPanel.js
src/ui/DropdownPanel.js
+4
-2
StoragePanel.js
src/ui/StoragePanel.js
+6
-1
No files found.
src/storage/storageViewer.js
View file @
5335e9ab
...
@@ -32,7 +32,7 @@ class StorageViewer {
...
@@ -32,7 +32,7 @@ class StorageViewer {
* @return {Bool} - return True if the storage at @arg address is complete
* @return {Bool} - return True if the storage at @arg address is complete
*/
*/
isComplete
(
address
)
{
isComplete
(
address
)
{
return
this
.
storageResolver
.
storageRang
e
(
address
)
return
this
.
storageResolver
.
isComplet
e
(
address
)
}
}
}
}
...
...
src/ui/DropdownPanel.js
View file @
5335e9ab
...
@@ -12,6 +12,7 @@ function DropdownPanel (_name, _opts) {
...
@@ -12,6 +12,7 @@ function DropdownPanel (_name, _opts) {
_opts
=
{}
_opts
=
{}
}
}
this
.
name
=
_name
this
.
name
=
_name
this
.
header
=
''
this
.
json
=
_opts
.
json
this
.
json
=
_opts
.
json
if
(
this
.
json
)
{
if
(
this
.
json
)
{
this
.
treeView
=
new
TreeView
(
_opts
)
this
.
treeView
=
new
TreeView
(
_opts
)
...
@@ -19,10 +20,11 @@ function DropdownPanel (_name, _opts) {
...
@@ -19,10 +20,11 @@ function DropdownPanel (_name, _opts) {
this
.
view
this
.
view
}
}
DropdownPanel
.
prototype
.
update
=
function
(
_data
)
{
DropdownPanel
.
prototype
.
update
=
function
(
_data
,
_header
)
{
if
(
this
.
view
)
{
if
(
this
.
view
)
{
this
.
view
.
querySelector
(
'.dropdownpanel .dropdownrawcontent'
).
innerText
=
JSON
.
stringify
(
_data
,
null
,
'
\
t'
)
this
.
view
.
querySelector
(
'.dropdownpanel .dropdownrawcontent'
).
innerText
=
JSON
.
stringify
(
_data
,
null
,
'
\
t'
)
this
.
view
.
querySelector
(
'.dropdownpanel button.btn'
).
style
.
display
=
'block'
this
.
view
.
querySelector
(
'.dropdownpanel button.btn'
).
style
.
display
=
'block'
this
.
view
.
querySelector
(
'.title span'
).
innerText
=
_header
||
' '
if
(
this
.
json
)
{
if
(
this
.
json
)
{
this
.
treeView
.
update
(
_data
)
this
.
treeView
.
update
(
_data
)
}
}
...
@@ -44,7 +46,7 @@ DropdownPanel.prototype.render = function (overridestyle) {
...
@@ -44,7 +46,7 @@ DropdownPanel.prototype.render = function (overridestyle) {
var
view
=
yo
`<div>
var
view
=
yo
`<div>
<div class='title' style=
${
ui
.
formatCss
(
styleDropdown
.
title
)}
onclick=
${
function
()
{
self
.
toggle
()
}
}>
<div class='title' style=
${
ui
.
formatCss
(
styleDropdown
.
title
)}
onclick=
${
function
()
{
self
.
toggle
()
}
}>
<div style=
${
ui
.
formatCss
(
styleDropdown
.
caret
)}
class='fa fa-caret-right'></div>
<div style=
${
ui
.
formatCss
(
styleDropdown
.
caret
)}
class='fa fa-caret-right'></div>
<div style=
${
ui
.
formatCss
(
styleDropdown
.
inner
,
styleDropdown
.
titleInner
)}
>
${
this
.
name
}
</div>
<div style=
${
ui
.
formatCss
(
styleDropdown
.
inner
,
styleDropdown
.
titleInner
)}
>
${
this
.
name
}
</div>
<span></span>
</div>
</div>
<div class='dropdownpanel' style=
${
ui
.
formatCss
(
styleDropdown
.
content
)}
style='display:none'>
<div class='dropdownpanel' style=
${
ui
.
formatCss
(
styleDropdown
.
content
)}
style='display:none'>
<button onclick=
${
function
()
{
self
.
toggleRaw
()
}
} style=
${
ui
.
formatCss
(
basicStyles
.
button
,
styleDropdown
.
copyBtn
)}
title='raw' class="btn fa fa-eye" type="button">
<button onclick=
${
function
()
{
self
.
toggleRaw
()
}
} style=
${
ui
.
formatCss
(
basicStyles
.
button
,
styleDropdown
.
copyBtn
)}
title='raw' class="btn fa fa-eye" type="button">
...
...
src/ui/StoragePanel.js
View file @
5335e9ab
...
@@ -34,7 +34,12 @@ StoragePanel.prototype.init = function () {
...
@@ -34,7 +34,12 @@ StoragePanel.prototype.init = function () {
console
.
log
(
error
)
console
.
log
(
error
)
self
.
basicPanel
.
update
({})
self
.
basicPanel
.
update
({})
}
else
if
(
self
.
parent
.
currentStepIndex
===
index
)
{
}
else
if
(
self
.
parent
.
currentStepIndex
===
index
)
{
self
.
basicPanel
.
update
(
storage
)
this
.
traceManager
.
getCurrentCalledAddressAt
(
index
,
(
error
,
address
)
=>
{
if
(
!
error
)
{
var
header
=
storageViewer
.
isComplete
(
address
)
?
'completely loaded'
:
'partially loaded...'
self
.
basicPanel
.
update
(
storage
,
header
)
}
})
}
}
})
})
})
})
...
...
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