Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Metagenomics
metagenedb
Commits
1c7e6231
Commit
1c7e6231
authored
Apr 16, 2021
by
Kenzo-Hugo Hillion
♻
Browse files
add source box for gene details view
parent
edaa9930
Changes
2
Hide whitespace changes
Inline
Side-by-side
frontend/src/views/genedetail/genedetail.html
View file @
1c7e6231
...
...
@@ -63,6 +63,20 @@
</v-expansion-panel>
</v-card>
</v-flex>
<!-- Source -->
<v-flex
xs12
md6
lg4
xl3
>
<v-card>
<v-toolbar
class=
"tertiary white--text"
dense
>
<v-icon
class=
"white--text"
>
format_list_bulleted
</v-icon>
<v-toolbar-title>
Gene source
</v-toolbar-title>
</v-toolbar>
<!-- Simple information -->
<SimpleListing
:listData=
"sourceDetail"
/>
<v-divider></v-divider>
</v-card>
</v-flex>
<!-- KEGG Function -->
<template
v-for=
"keggId in keggIds"
>
<KeggCard
v-if=
"keggId"
:keggId=
'keggId'
></KeggCard>
...
...
frontend/src/views/genedetail/genedetail.js
View file @
1c7e6231
...
...
@@ -11,6 +11,7 @@ export default {
return
{
geneId
:
''
,
geneDetail
:
[],
sourceDetail
:
[],
sequence
:
''
,
keggIds
:
[],
taxonomyId
:
''
,
...
...
@@ -59,13 +60,21 @@ export default {
title
:
'
Length (bp)
'
,
content
:
response
.
data
.
length
,
},
];
this
.
sourceDetail
=
[
{
title
:
'
Sourc
e
'
,
content
:
response
.
data
.
source
,
url
:
this
.
sourceUrls
[
response
.
data
.
source
]
,
url_label
:
this
.
labelUrls
[
response
.
data
.
source
]
,
title
:
'
Nam
e
'
,
content
:
response
.
data
.
source
.
name
,
url
:
response
.
data
.
source
.
url
,
url_label
:
response
.
data
.
source
.
url
,
},
];
{
title
:
'
Reference
'
,
content
:
response
.
data
.
source
.
doi
,
url
:
`https://doi.org/
${
response
.
data
.
source
.
doi
}
`
,
url_label
:
`https://doi.org/
${
response
.
data
.
source
.
doi
}
`
,
},
]
if
(
response
.
data
.
sequence
)
{
this
.
sequence
=
'
>
'
+
response
.
data
.
gene_id
+
'
\n
'
+
response
.
data
.
sequence
;
}
...
...
Write
Preview
Supports
Markdown
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!
Cancel
Please
register
or
sign in
to comment