mirror of
https://github.com/Lissy93/dashy.git
synced 2024-12-27 02:43:55 +03:00
New Window + update support
This commit is contained in:
parent
71510eeb93
commit
f0a5c249b0
@ -9,8 +9,8 @@
|
|||||||
<p :class="build.build.status">{{ build.build.status | formatStatus }}</p>
|
<p :class="build.build.status">{{ build.build.status | formatStatus }}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="info">
|
<div class="info">
|
||||||
<p class="build-name"><a :href="build.git_http_url">{{ build.name }}</a></p>
|
<p class="build-name"><a :href="build.git_http_url" target="_blank">{{ build.name }}</a></p>
|
||||||
<p class="build-desc"><a :href="build.link + '/' + build.build.number">{{ build.build.number }}</a></p>
|
<p class="build-desc"><a :href="build.baseurl + '/' + build.slug + '/' +build.build.number" target="_blank">{{ build.build.number }}</a></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -54,6 +54,11 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
update() {
|
||||||
|
this.startLoading();
|
||||||
|
this.fetchData();
|
||||||
|
this.finishLoading();
|
||||||
|
},
|
||||||
/* Make GET request to CoinGecko API endpoint */
|
/* Make GET request to CoinGecko API endpoint */
|
||||||
fetchData() {
|
fetchData() {
|
||||||
this.overrideProxyChoice = true;
|
this.overrideProxyChoice = true;
|
||||||
@ -64,7 +69,10 @@ export default {
|
|||||||
},
|
},
|
||||||
/* Assign data variables to the returned data */
|
/* Assign data variables to the returned data */
|
||||||
processData(data) {
|
processData(data) {
|
||||||
this.builds = data.slice(0, this.options.limit);
|
const results = data.slice(0, this.options.limit).map(obj => {
|
||||||
|
return {...obj, baseurl: this.options.host};
|
||||||
|
});
|
||||||
|
this.builds = results;
|
||||||
},
|
},
|
||||||
infoTooltip(build) {
|
infoTooltip(build) {
|
||||||
const content = `<b>Trigger:</b> ${build.build.event} by ${build.build.trigger}<br>`
|
const content = `<b>Trigger:</b> ${build.build.event} by ${build.build.trigger}<br>`
|
||||||
|
Loading…
Reference in New Issue
Block a user