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
b139c8db
Commit
b139c8db
authored
Dec 03, 2017
by
ninabreznik
Committed by
yann300
Dec 05, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update _highlightExpressions and contextView.js
parent
80be8091
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
16 deletions
+3
-16
contextView.js
src/app/editor/contextView.js
+2
-16
contextualListener.js
src/app/editor/contextualListener.js
+1
-0
No files found.
src/app/editor/contextView.js
View file @
b139c8db
...
@@ -29,8 +29,6 @@ var css = csjs`
...
@@ -29,8 +29,6 @@ var css = csjs`
}
}
.name {
.name {
font-weight : bold;
font-weight : bold;
margin-right : 15px;
cursor : pointer;
}
}
.jump {
.jump {
cursor : pointer;
cursor : pointer;
...
@@ -42,6 +40,7 @@ var css = csjs`
...
@@ -42,6 +40,7 @@ var css = csjs`
}
}
.referencesnb {
.referencesnb {
float : right;
float : right;
margin-left : 15px;
}
}
`
`
...
@@ -133,17 +132,10 @@ class ContextView {
...
@@ -133,17 +132,10 @@ class ContextView {
function
next
()
{
function
next
()
{
var
nodes
=
self
.
_api
.
contextualListener
.
getActiveHighlights
()
var
nodes
=
self
.
_api
.
contextualListener
.
getActiveHighlights
()
var
currentName
=
node
.
attributes
.
name
var
currentName
=
node
.
attributes
.
name
var
position
=
self
.
sourceMappingDecoder
.
decode
(
node
.
src
)
if
(
currentName
!==
self
.
refName
)
self
.
ref
=
0
if
(
currentName
!==
self
.
refName
)
self
.
ref
=
0
var
k
=
self
.
ref
var
k
=
self
.
ref
/// LOGS ///
nodes
.
forEach
(
node
=>
console
.
log
(
node
.
position
.
start
))
console
.
log
(
'----'
)
console
.
log
(
k
)
console
.
log
(
'----'
)
var
pos
=
nodes
[
k
].
position
var
pos
=
nodes
[
k
].
position
self
.
_api
.
jumpTo
(
pos
)
self
.
_api
.
jumpTo
(
pos
)
...
@@ -158,12 +150,6 @@ class ContextView {
...
@@ -158,12 +150,6 @@ class ContextView {
var
k
=
nodes
.
length
-
1
-
self
.
ref
var
k
=
nodes
.
length
-
1
-
self
.
ref
/// LOGS ///
nodes
.
forEach
(
node
=>
console
.
log
(
node
.
position
.
start
))
console
.
log
(
'----'
)
console
.
log
(
k
)
console
.
log
(
'----'
)
var
pos
=
nodes
[
k
].
position
var
pos
=
nodes
[
k
].
position
self
.
_api
.
jumpTo
(
pos
)
self
.
_api
.
jumpTo
(
pos
)
...
@@ -172,9 +158,9 @@ class ContextView {
...
@@ -172,9 +158,9 @@ class ContextView {
}
}
return
yo
`<div class=
${
css
.
line
}
>
return
yo
`<div class=
${
css
.
line
}
>
<i class="fa fa-share
${
css
.
jump
}
" aria-hidden="true" onclick=
${
jumpTo
}
></i>
<div title=
${
type
}
class=
${
css
.
type
}
>
${
type
}
</div>
<div title=
${
type
}
class=
${
css
.
type
}
>
${
type
}
</div>
<div title=
${
node
.
attributes
.
name
}
class=
${
css
.
name
}
>
${
node
.
attributes
.
name
}
</div>
<div title=
${
node
.
attributes
.
name
}
class=
${
css
.
name
}
>
${
node
.
attributes
.
name
}
</div>
<i class="fa fa-share
${
css
.
jump
}
" aria-hidden="true" onclick=
${
jumpTo
}
></i>
<span class=
${
css
.
referencesnb
}
>
${
references
}
</span>
<span class=
${
css
.
referencesnb
}
>
${
references
}
</span>
<i class="fa fa-chevron-up
${
css
.
jump
}
" aria-hidden="true" onclick=
${
previous
}
></i>
<i class="fa fa-chevron-up
${
css
.
jump
}
" aria-hidden="true" onclick=
${
previous
}
></i>
<i class="fa fa-chevron-down
${
css
.
jump
}
" aria-hidden="true" onclick=
${
next
}
></i>
<i class="fa fa-chevron-down
${
css
.
jump
}
" aria-hidden="true" onclick=
${
next
}
></i>
...
...
src/app/editor/contextualListener.js
View file @
b139c8db
...
@@ -120,6 +120,7 @@ class ContextualListener {
...
@@ -120,6 +120,7 @@ class ContextualListener {
this
.
_highlight
(
current
,
compilationResult
)
this
.
_highlight
(
current
,
compilationResult
)
}
else
{
}
else
{
highlights
(
node
.
id
)
highlights
(
node
.
id
)
this
.
_highlight
(
node
,
compilationResult
)
}
}
}
}
...
...
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