Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Markus Opolka
vue-cdbp
Commits
302932aa
Commit
302932aa
authored
Dec 13, 2018
by
Markus Opolka
Browse files
Add Glossary to frontend
parent
e89d8292
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/components/Features.vue
View file @
302932aa
...
...
@@ -10,6 +10,23 @@
<p>
With the feature search you can quickly lookup the annotated features within all categories. The search supports regular expressions and can be restricted to a single letter.
</p>
</v-flex>
<v-flex
xs12
>
<v-expansion-panel>
<v-expansion-panel-content>
<div
slot=
"header"
>
Glossary
</div>
<v-card>
<v-card-text
class=
"grey lighten-3"
>
<ul>
<li
v-for=
"feat in feature_glossary"
>
{{
feat
}}
</li>
</ul>
</v-card-text>
</v-card>
</v-expansion-panel-content>
</v-expansion-panel>
</v-flex>
<!-- Select Letter -->
<v-flex
xs12
>
<v-select
...
...
@@ -91,6 +108,7 @@ export default {
header
:
'
Feature Search
'
,
invalid
:
false
,
searching
:
false
,
feature_glossary
:
[],
feature_category
:
''
,
feature_type
:
''
,
feature_subtype
:
''
,
...
...
@@ -154,6 +172,11 @@ export default {
}
},
created
()
{
// Get feature glossary
this
.
$http
.
get
(
'
http://localhost:3000/api/features
'
).
then
(
function
(
data
)
{
this
.
feature_glossary
=
data
.
body
})
// Create list of all letters
this
.
$http
.
get
(
'
http://localhost:3000/api/metadata/table
'
).
then
(
function
(
data
)
{
for
(
let
letter
of
data
.
body
)
{
...
...
Markus Opolka
@bi40resu
mentioned in issue
#16 (closed)
·
Dec 13, 2018
mentioned in issue
#16 (closed)
mentioned in issue #16
Toggle commit list
Write
Preview
Supports
Markdown
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