Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EUbOPEN Web
Manage
Activity
Members
Labels
Plan
Issues
15
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ChEMBL
EUbOPEN
EUbOPEN Web
Commits
dccfd69c
Commit
dccfd69c
authored
3 years ago
by
David Mendez
Browse files
Options
Downloads
Patches
Plain Diff
Fix some bugs with the text highlighter
parent
68f088a4
No related branches found
Branches containing commit
No related tags found
1 merge request
!25
Implement Autocomplete and Search using new indexes
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
components/search_results/free_text/FreeTextResults.vue
+39
-7
39 additions, 7 deletions
components/search_results/free_text/FreeTextResults.vue
with
39 additions
and
7 deletions
components/search_results/free_text/FreeTextResults.vue
+
39
−
7
View file @
dccfd69c
<
template
>
<v-tabs
show-arrows
:vertical=
"makeTabsVertical"
>
<v-tab>
Compounds
</v-tab>
<v-tab>
Targets
</v-tab>
<v-tab-item>
<CompoundsResults
/>
</v-tab-item>
<v-tab-item>
<TargetsResults
/>
</v-tab-item>
<v-tab-item>
<HeatmapResults
/>
</v-tab-item>
</v-tabs>
<div>
<v-container>
<div
class=
"d-flex flex-column align-center"
>
<div
class=
"text-overline"
>
Searching...
</div>
<br
/>
<v-progress-linear
indeterminate
/>
</div>
<TextHighlighter
full-text=
"The quick brown fox jumps over the lazy dog"
highlighted-text=
"bro"
/>
<TextHighlighter
full-text=
"The quick brown fox jumps over the lazy dog"
highlighted-text=
"Bra"
/>
<TextHighlighter
full-text=
"The aminohydrolase"
highlighted-text=
"amino"
/>
<TextHighlighter
full-text=
"The aminohydrolase"
highlighted-text=
"box"
/>
</v-container>
<v-tabs
show-arrows
:vertical=
"makeTabsVertical"
>
<v-tab>
Compounds
</v-tab>
<v-tab>
Targets
</v-tab>
<v-tab-item>
<CompoundsResults
/>
</v-tab-item>
<v-tab-item>
<TargetsResults
/>
</v-tab-item>
<v-tab-item>
<HeatmapResults
/>
</v-tab-item>
</v-tabs>
</div>
</
template
>
<
script
>
import
CompoundsResults
from
'
~/components/search_results/free_text/CompoundsResults.vue
'
import
TargetsResults
from
'
~/components/search_results/free_text/TargetsResults.vue
'
import
HeatmapResults
from
'
~/components/search_results/free_text/HeatmapResults.vue
'
import
TextHighlighter
from
'
~/web-components-submodule/components/common/Highlighting/TextHighlighter.vue
'
export
default
{
components
:
{
CompoundsResults
,
TargetsResults
,
HeatmapResults
,
TextHighlighter
,
},
props
:
{
searchTerm
:
{
...
...
@@ -36,6 +62,12 @@ export default {
}
},
},
mounted
()
{
this
.
getSearchParams
()
},
methods
:
{
getSearchParams
()
{},
},
}
</
script
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment