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
953ff7e9
Commit
953ff7e9
authored
May 02, 2016
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
indent
parent
f1f883a5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
assemblyItemsBrowser.js
src/assemblyItemsBrowser.js
+3
-1
slider.js
src/slider.js
+4
-7
No files found.
src/assemblyItemsBrowser.js
View file @
953ff7e9
...
@@ -40,7 +40,9 @@ module.exports = React.createClass({
...
@@ -40,7 +40,9 @@ module.exports = React.createClass({
<
div
style
=
{
style
.
container
}
><
span
style
=
{
style
.
address
}
>
Current
code
:
{
this
.
state
.
currentAddress
}
<
/span></
div
>
<
div
style
=
{
style
.
container
}
><
span
style
=
{
style
.
address
}
>
Current
code
:
{
this
.
state
.
currentAddress
}
<
/span></
div
>
<
div
style
=
{
style
.
container
}
>
<
div
style
=
{
style
.
container
}
>
<
Slider
ref
=
"slider"
onChange
=
{
this
.
selectState
}
min
=
"0"
max
=
{
this
.
props
.
vmTrace
?
this
.
props
.
vmTrace
.
length
:
0
}
/
>
<
Slider
ref
=
"slider"
onChange
=
{
this
.
selectState
}
min
=
"0"
max
=
{
this
.
props
.
vmTrace
?
this
.
props
.
vmTrace
.
length
:
0
}
/
>
<
ButtonNavigator
vmTraceLength
=
{
this
.
props
.
vmTrace
?
this
.
props
.
vmTrace
.
length
:
0
}
step
=
{
this
.
state
.
currentSelected
}
stepIntoBack
=
{
this
.
stepIntoBack
}
stepIntoForward
=
{
this
.
stepIntoForward
}
stepOverBack
=
{
this
.
stepOverBack
}
stepOverForward
=
{
this
.
stepOverForward
}
/
>
<
ButtonNavigator
vmTraceLength
=
{
this
.
props
.
vmTrace
?
this
.
props
.
vmTrace
.
length
:
0
}
step
=
{
this
.
state
.
currentSelected
}
stepIntoBack
=
{
this
.
stepIntoBack
}
stepIntoForward
=
{
this
.
stepIntoForward
}
stepOverBack
=
{
this
.
stepOverBack
}
stepOverForward
=
{
this
.
stepOverForward
}
/
>
<
/div
>
<
/div
>
<
div
style
=
{
style
.
container
}
>
<
div
style
=
{
style
.
container
}
>
<
table
>
<
table
>
...
...
src/slider.js
View file @
953ff7e9
...
@@ -7,15 +7,14 @@ module.exports = React.createClass({
...
@@ -7,15 +7,14 @@ module.exports = React.createClass({
onChange
:
React
.
PropTypes
.
func
.
isRequired
,
onChange
:
React
.
PropTypes
.
func
.
isRequired
,
},
},
getDefaultProps
:
function
()
getDefaultProps
:
function
()
{
{
return
{
return
{
min
:
0
,
min
:
0
,
max
:
500
max
:
500
};
};
},
},
render
:
function
()
{
render
:
function
()
{
return
(
return
(
<
div
>
<
div
>
<
input
ref
=
"rule"
style
=
{
style
.
rule
}
type
=
"range"
min
=
{
this
.
props
.
min
}
max
=
{
this
.
props
.
max
}
onMouseUp
=
{
this
.
onMouseUp
}
/
>
<
input
ref
=
"rule"
style
=
{
style
.
rule
}
type
=
"range"
min
=
{
this
.
props
.
min
}
max
=
{
this
.
props
.
max
}
onMouseUp
=
{
this
.
onMouseUp
}
/
>
...
@@ -23,13 +22,11 @@ module.exports = React.createClass({
...
@@ -23,13 +22,11 @@ module.exports = React.createClass({
);
);
},
},
onMouseUp
:
function
(
event
)
onMouseUp
:
function
(
event
)
{
{
this
.
props
.
onChange
(
parseInt
(
this
.
refs
.
rule
.
value
))
this
.
props
.
onChange
(
parseInt
(
this
.
refs
.
rule
.
value
))
},
},
setValue
:
function
(
value
)
setValue
:
function
(
value
)
{
{
var
diff
=
value
-
this
.
refs
.
rule
.
value
var
diff
=
value
-
this
.
refs
.
rule
.
value
if
(
diff
>
0
)
if
(
diff
>
0
)
this
.
refs
.
rule
.
stepUp
(
diff
)
this
.
refs
.
rule
.
stepUp
(
diff
)
...
...
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