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
e8e3e709
Unverified
Commit
e8e3e709
authored
Apr 09, 2019
by
yann300
Committed by
GitHub
Apr 09, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1832 from ethereum/regexFileName
Fix terminal filtering
parents
e11423ff
06adfc82
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
terminal.js
src/app/panels/terminal.js
+7
-6
No files found.
src/app/panels/terminal.js
View file @
e8e3e709
...
...
@@ -132,6 +132,7 @@ class Terminal {
<div onmousedown=
${
mousedown
}
class=
${
css
.
dragbarHorizontal
}
></div>`
self
.
_view
.
dropdown
=
self
.
_components
.
dropdown
.
render
()
self
.
_view
.
pendingTxCount
=
yo
`<div class=
${
css
.
pendingTx
}
title='Pending Transactions'>0</div>`
self
.
_view
.
inputSearch
=
yo
`<input spellcheck="false" type="text" class="
${
css
.
filter
}
form-control" id="input" onkeydown=
${
filter
}
placeholder="Search transactions"></input>`
self
.
_view
.
bar
=
yo
`
<div class="
${
css
.
bar
}
">
${
self
.
_view
.
dragbar
}
...
...
@@ -151,7 +152,7 @@ class Terminal {
${
self
.
_view
.
dropdown
}
<div class=
${
css
.
search
}
>
<i class="fa fa-search
${
css
.
searchIcon
}
bg-light" aria-hidden="true"></i>
<input spellcheck="false" type="text" class="
${
css
.
filter
}
form-control" onkeydown=
${
filter
}
placeholder="Search transactions">
${
self
.
_view
.
inputSearch
}
</div>
</div>
</div>
...
...
@@ -280,7 +281,7 @@ class Terminal {
if
(
inserted
)
{
text
.
innerText
=
''
background
.
onclick
=
undefined
self
.
_view
.
journal
.
removeChild
(
placeholder
)
if
(
placeholder
.
parentElement
)
self
.
_view
.
journal
.
removeChild
(
placeholder
)
}
inserted
=
false
delete
self
.
scroll2bottom
...
...
@@ -347,7 +348,7 @@ class Terminal {
clearTimeout
(
filtertimeout
)
}
filtertimeout
=
setTimeout
(()
=>
{
self
.
updateJournal
({
type
:
'search'
,
value
:
document
.
querySelector
(
'.'
+
event
.
target
.
className
)
.
value
})
self
.
updateJournal
({
type
:
'search'
,
value
:
self
.
_view
.
inputSearch
.
value
})
},
500
)
}
function
clear
(
event
)
{
...
...
@@ -499,8 +500,8 @@ class Terminal {
commands
[
value
]
=
false
if
(
!
self
.
_INDEX
.
commandsMain
[
value
])
return
self
.
_INDEX
.
commandsMain
[
value
].
forEach
(
item
=>
{
item
.
root
.
steps
.
forEach
(
item
=>
{
self
.
_JOURNAL
[
item
.
gidx
]
=
undefined
})
self
.
_JOURNAL
[
item
.
gidx
]
=
undefined
item
.
root
.
steps
.
forEach
(
item
=>
{
self
.
_JOURNAL
[
item
.
gidx
]
.
hide
=
true
})
self
.
_JOURNAL
[
item
.
gidx
]
.
hide
=
true
})
}
else
if
(
filterEvent
.
type
===
'search'
)
{
if
(
value
!==
self
.
data
.
activeFilters
.
input
)
{
...
...
@@ -535,7 +536,7 @@ class Terminal {
self
.
_jobs
=
[]
})
}
self
.
_jobs
.
push
(
el
)
if
(
self
.
data
.
activeFilters
.
commands
[
item
.
cmd
])
self
.
_jobs
.
push
(
el
)
}
scroll2bottom
()
{
var
self
=
this
...
...
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