Commit 5c9d9715 authored by shabai517's avatar shabai517
Browse files

add externalURL scheme in landing page management

parent 3d620634
...@@ -16,11 +16,11 @@ ...@@ -16,11 +16,11 @@
<div class="content-text"> <div class="content-text">
{{item.content}} {{item.content}}
</div> </div>
<a class="content-button" @click="moreButtonAction(item.markdownFolder,item.moreID)">More</a> <a class="content-button" @click="moreButtonAction(item.markdownFolder,item.moreID,item.externalURL)">More</a>
</div> </div>
</div> </div>
<Button class="news-button" @click="moreButtonAction(toolsButton.markdownFolder,toolsButton.moreID)">MORE</Button> <Button class="news-button" @click="moreButtonAction(toolsButton.markdownFolder,toolsButton.moreID,toolsButton.externalURL)">MORE</Button>
</div> </div>
</Col> </Col>
<Col :xs="{ span: 24 }" :sm="{span: 12}" :md="{ span: 12}" :lg="{ span: 6}"> <Col :xs="{ span: 24 }" :sm="{span: 12}" :md="{ span: 12}" :lg="{ span: 6}">
...@@ -37,10 +37,10 @@ ...@@ -37,10 +37,10 @@
<div class="content-text"> <div class="content-text">
{{item.content}} {{item.content}}
</div> </div>
<a class="content-button"@click="moreButtonAction(item.markdownFolder,item.moreID)">More</a> <a class="content-button"@click="moreButtonAction(item.markdownFolder,item.moreID,item.externalURL)">More</a>
</div> </div>
</div> </div>
<Button class="news-button" @click="moreButtonAction(documentationButton.markdownFolder,documentationButton.moreID)">MORE</Button> <Button class="news-button" @click="moreButtonAction(documentationButton.markdownFolder,documentationButton.moreID,documentationButton.externalURL)">MORE</Button>
</div> </div>
</Col> </Col>
<Col :xs="{ span: 24 }" :sm="{span: 12}" :md="{ span: 12}" :lg="{ span: 6}"> <Col :xs="{ span: 24 }" :sm="{span: 12}" :md="{ span: 12}" :lg="{ span: 6}">
...@@ -162,7 +162,11 @@ ...@@ -162,7 +162,11 @@
}); });
*/ */
}, },
moreButtonAction(subpage, id){ moreButtonAction(subpage, id, externalLink){
if(externalLink){
window.open(externalLink);
return;
}
if(id){ if(id){
id = id.replace(/(^\s*)|(\s*$)/g,'').replace(/\s/g,'_').toLowerCase(); id = id.replace(/(^\s*)|(\s*$)/g,'').replace(/\s/g,'_').toLowerCase();
this.$router.push({path:'/markdownpage/'+subpage+'#'+id}); this.$router.push({path:'/markdownpage/'+subpage+'#'+id});
......
...@@ -42,6 +42,7 @@ ...@@ -42,6 +42,7 @@
{ {
"title":"Submission Tool", "title":"Submission Tool",
"content":"PRIDE Submission Tool enables direct user submissions of protein and peptide identification or quantification data, along with the spectra to PRIDE Archive.", "content":"PRIDE Submission Tool enables direct user submissions of protein and peptide identification or quantification data, along with the spectra to PRIDE Archive.",
"externalURL":"",
"moreID":"submission_tool", "moreID":"submission_tool",
"markdownFolder":"pridesubmissiontool" "markdownFolder":"pridesubmissiontool"
...@@ -49,12 +50,14 @@ ...@@ -49,12 +50,14 @@
{ {
"title":"PRIDE Inspector", "title":"PRIDE Inspector",
"content":"PRIDE Inspector is a desktop tool to visualise and perform first quality assessment on Mass Spectrometry data.", "content":"PRIDE Inspector is a desktop tool to visualise and perform first quality assessment on Mass Spectrometry data.",
"externalURL":"",
"moreID":"pride_inspector", "moreID":"pride_inspector",
"markdownFolder":"prideinspector" "markdownFolder":"prideinspector"
}, },
{ {
"title":"PRIDE Archive API", "title":"PRIDE Archive API",
"content":"The PRIDE Archive API enables the interaction of PRIDE users with the data programmatically using a Restful API", "content":"The PRIDE Archive API enables the interaction of PRIDE users with the data programmatically using a Restful API",
"externalURL":"",
"moreID":"pride_archive_ws", "moreID":"pride_archive_ws",
"markdownFolder":"pridearchivews" "markdownFolder":"pridearchivews"
}, },
...@@ -62,11 +65,13 @@ ...@@ -62,11 +65,13 @@
{ {
"title":"PRIDE Utilities", "title":"PRIDE Utilities",
"content":"PRIDE Utilities is a set of libraries and commandline tools for computational proteomics.", "content":"PRIDE Utilities is a set of libraries and commandline tools for computational proteomics.",
"externalURL":"http://pride-archive.github.io/PrideAPIDocs",
"moreID":"pride_utilities", "moreID":"pride_utilities",
"markdownFolder":"prideutilities" "markdownFolder":"prideutilities"
} }
], ],
"button":{ "button":{
"externalURL":"",
"moreID":"", "moreID":"",
"markdownFolder":"toolspage" "markdownFolder":"toolspage"
} }
...@@ -76,29 +81,34 @@ ...@@ -76,29 +81,34 @@
{ {
"title":"How to Submit data", "title":"How to Submit data",
"content":"How to submit identification and quantification results from proteomics experiments into PRIDE Archive", "content":"How to submit identification and quantification results from proteomics experiments into PRIDE Archive",
"externalURL":"",
"moreID":"how_to_submit_data", "moreID":"how_to_submit_data",
"markdownFolder":"submitdatapage" "markdownFolder":"submitdatapage"
}, },
{ {
"title":"How to review data", "title":"How to review data",
"content":"How to review private and public experiments in PRIDE Archive", "content":"How to review private and public experiments in PRIDE Archive",
"externalURL":"",
"moreID":"xxx", "moreID":"xxx",
"markdownFolder":"xxxxx" "markdownFolder":"xxxxx"
}, },
{ {
"title":"Searching public datasets", "title":"Searching public datasets",
"content":"Searching public datasets for reanalysis and reuse in PRIDE Archive", "content":"Searching public datasets for reanalysis and reuse in PRIDE Archive",
"externalURL":"",
"moreID":"searching_pride_data", "moreID":"searching_pride_data",
"markdownFolder":"searchingpridedata" "markdownFolder":"searchingpridedata"
}, },
{ {
"title":"Retrieving PRIDE data programmatically", "title":"Retrieving PRIDE data programmatically",
"content":"Retrieving PRIDE Archive data can be done programatically using the PRIDE Archive Web service Restful API", "content":"Retrieving PRIDE Archive data can be done programatically using the PRIDE Archive Web service Restful API",
"externalURL":"",
"moreID":"programatically_search", "moreID":"programatically_search",
"markdownFolder":"programaticallyapi" "markdownFolder":"programaticallyapi"
} }
], ],
"button":{ "button":{
"externalURL":"",
"moreID":"", "moreID":"",
"markdownFolder":"documentationpage" "markdownFolder":"documentationpage"
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment