Skip to content
Snippets Groups Projects
Commit 7b3d6ad3 authored by moon's avatar moon
Browse files

Merge branch 'develop' into 'master'

30th August 2021 release

Closes #24, #21, #22, and #23

See merge request scicomp/scidev_team/dd-code!2
parents a3ee4db1 f4a6be66
No related branches found
No related tags found
No related merge requests found
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
"serve": "vue-cli-service serve", "serve": "vue-cli-service serve",
"build": "vue-cli-service build", "build": "vue-cli-service build",
"build:serve": "serve dist", "build:serve": "serve dist",
"build-dev": "vue-cli-service build --mode development",
"lint": "vue-cli-service lint", "lint": "vue-cli-service lint",
"deploy": "cd dist && rsync -arvP --del * moon@ddcode-srv1:\"/home/local/web/\"", "deploy": "cd dist && rsync -arvP --del * moon@ddcode-srv1:\"/home/local/web/\"",
"deploy-dev": "cd dist && rsync -arvP --del * moon@ddcode-srv1:\"/home/ddcode-dev/web/\"" "deploy-dev": "cd dist && rsync -arvP --del * moon@ddcode-srv1:\"/home/ddcode-dev/web/\""
......
...@@ -37,6 +37,12 @@ ...@@ -37,6 +37,12 @@
{{response.data.species_name}} {{response.data.species_name}}
</div> </div>
</div> </div>
<div class="row">
<div class="text col-sm-3">Description</div>
<div class="col-sm-9">
{{response.data.description}}
</div>
</div>
<!--<div class="row">--> <!--<div class="row">-->
<!--<div class="text col-sm-3">Evidence Stars</div>--> <!--<div class="text col-sm-3">Evidence Stars</div>-->
<!--<div class="col-sm-9 tooltipped tooltipped-w"--> <!--<div class="col-sm-9 tooltipped tooltipped-w"-->
...@@ -73,6 +79,8 @@ ...@@ -73,6 +79,8 @@
<th>pH value</th> <th>pH value</th>
<th>Morphology</th> <th>Morphology</th>
<th>PubMed</th> <th>PubMed</th>
<th>Solute Concentration</th>
<th>Temperature</th>
<th>Salts</th> <th>Salts</th>
</tr> </tr>
</thead> </thead>
...@@ -98,6 +106,11 @@ ...@@ -98,6 +106,11 @@
</template> </template>
</fetch-pub-med> </fetch-pub-med>
</td> </td>
<td v-html="tokenize(item.solute_concentrations, ';')">
</td>
<td>
{{item.temperature}}
</td>
<td> <td>
<ul v-for="(item, index) in item.salts" v-bind:key="index"> <ul v-for="(item, index) in item.salts" v-bind:key="index">
<li v-for="(value, key, index) in item" v-bind:key="index"> <li v-for="(value, key, index) in item" v-bind:key="index">
...@@ -194,6 +207,9 @@ ...@@ -194,6 +207,9 @@
getTitleAuthors(title, data) { getTitleAuthors(title, data) {
return `${title}\n\n${_.map(data, a => a.name).join(', ')}` return `${title}\n\n${_.map(data, a => a.name).join(', ')}`
}, },
tokenize(input, token) {
return input.replaceAll(token, '<br/>')
},
getRating(data) { getRating(data) {
const scoreMap = {'hungarian': 5, 'blue': 5, 'pink': 1, 'grey': 1} const scoreMap = {'hungarian': 5, 'blue': 5, 'pink': 1, 'grey': 1}
......
<template> <template>
<div id="page-content-wrapper" class="main"> <div id="page-content-wrapper" class="main">
<h2>Dresden Condensate Database and Encyclopedia</h2> <h2>Dresden Condensate Database and Encyclopedia {{isDev?'(Dev version)':''}}</h2>
<p> <p>
<b> <b>
DD-CODE is a comprehensive, manually curated database of biomolecular condensates and an encyclopedia of the scientific terms used to describe and characterize those condensates. DD-CODE is a comprehensive, manually curated database of biomolecular condensates and an encyclopedia of the scientific terms used to describe and characterize those condensates.
......
...@@ -18,9 +18,11 @@ ...@@ -18,9 +18,11 @@
'http://db.phasep.pro/browse/highthroughput/': 2, 'http://db.phasep.pro/browse/highthroughput/': 2,
'http://db.phasep.pro/browse/reviewed/': 4, 'http://db.phasep.pro/browse/reviewed/': 4,
'http://db.phasep.pro/browse/uniprotreviewed/': 4, 'http://db.phasep.pro/browse/uniprotreviewed/': 4,
'http://bio-comp.ucas.ac.cn/': 4, 'http://bio-comp.org.cn/llpsdb/': 4,
'https://phasepro.elte.hu/': 4, 'https://phasepro.elte.hu/': 4,
'https://pubmed.ncbi.nlm.nih.gov/': 4 } 'https://pubmed.ncbi.nlm.nih.gov/': 4,
'https://ddcode.org/': 5,
}
function getStartWith(url) { function getStartWith(url) {
let ret = '' let ret = ''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment