Skip to content
This repository was archived by the owner on Oct 6, 2022. It is now read-only.

Commit

Permalink
Hide mirror links
Browse files Browse the repository at this point in the history
AKP's mirror is down - hide the mirror link until we have a mirror to link to
  • Loading branch information
mdcfe committed Jun 18, 2019
1 parent 1502905 commit c26d2a0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const mainCI = "https://ci.ender.zone/job/EssentialsX/";
const mirrorCI = "https://ci.akpmakes.tech/job/EssentialsX/";
const mirrorCI = null; // "https://ci.akpmakes.tech/job/EssentialsX/";
const corsAnywhere = "https://cors-anywhere.herokuapp.com/";

axios.defaults.baseURL = corsAnywhere + mainCI;
Expand Down Expand Up @@ -39,4 +39,4 @@ docute.init({
docuteWikilink,
],
debug: true
});
});
8 changes: 3 additions & 5 deletions vue-dlpage.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,11 @@ const DownloadPage = {
<table v-if="buildNo">
<tr>
<th>Plugin</th>
<th>Main</th>
<th>Mirror</th>
<th>Download</th>
</tr>
<tr v-for="plugin in plugins" :key="plugin.name">
<td>{{ plugin.name }}</td>
<td><a :href="plugin.main">Download</a></td>
<td><a :href="plugin.mirror">Download</a></td>
<td><a :href="plugin.main">Download</a> <a v-if="plugin.mirror" :href="plugin.mirror">(mirror)</a></td>
</tr>
</table>
<button @click="updateInfo">Update</button>
Expand All @@ -46,7 +44,7 @@ const DownloadPage = {
return {
name: `EssentialsX ${artifact.displayPath.match(/EssentialsX([A-Za-z]*)/)[1]}`,
main: `${mainCI}lastSuccessfulBuild/artifact/${artifact.relativePath}`,
mirror: `${mirrorCI}lastSuccessfulBuild/artifact/${artifact.relativePath}`,
mirror: mirrorCI ? `${mirrorCI}lastSuccessfulBuild/artifact/${artifact.relativePath}` : null,
};
});
this.failed = null;
Expand Down

0 comments on commit c26d2a0

Please sign in to comment.