Adjust version names to reality

This commit is contained in:
Mikołaj Pich 2018-06-14 16:53:36 +02:00
parent 7932d564b2
commit 8fb508b221
No known key found for this signature in database
GPG key ID: F62B26E36D4C4BAA
3 changed files with 14 additions and 14 deletions

View file

@ -100,13 +100,13 @@ body {
background: rgb(90, 45, 45); background: rgb(90, 45, 45);
} }
.button--nightly { .button--dev {
background: #333; background: #333;
} }
.button--nightly:hover, .button--dev:hover,
.button--nightly:focus, .button--dev:focus,
.button--nightly:active { .button--dev:active {
background: #222; background: #222;
} }

4
app.js
View file

@ -19,7 +19,7 @@ var addButtonInfo = function(url, button, version, cb) {
res.send(null); res.send(null);
}; };
addButtonInfo("https://api.github.com/repos/wulkanowy/wulkanowy/releases/latest", "#alfa-button", "#alfa-version", addButtonInfo("https://api.github.com/repos/wulkanowy/wulkanowy/releases/latest", "#beta-button", "#beta-version",
function(button, version, res) { function(button, version, res) {
var json = JSON.parse(res.responseText); var json = JSON.parse(res.responseText);
button.href = json.assets[0].browser_download_url; button.href = json.assets[0].browser_download_url;
@ -27,7 +27,7 @@ addButtonInfo("https://api.github.com/repos/wulkanowy/wulkanowy/releases/latest"
} }
); );
addButtonInfo("https://bitrise-redirector.herokuapp.com/v0.1/apps/daeff1893f3c8128/builds/master/artifacts/app-debug-bitrise-signed.apk/info", "#nightly-button", "#nightly-version", addButtonInfo("https://bitrise-redirector.herokuapp.com/v0.1/apps/daeff1893f3c8128/builds/master/artifacts/app-debug-bitrise-signed.apk/info", "#dev-button", "#dev-version",
function(button, version, res) { function(button, version, res) {
var json = JSON.parse(res.responseText); var json = JSON.parse(res.responseText);
button.href = json.expiring_download_url; button.href = json.expiring_download_url;

View file

@ -32,16 +32,16 @@
</a> </a>
<section class="section"> <section class="section">
<h3 class="section__header">Więcej opcji</h3> <h3 class="section__header">Więcej opcji</h3>
<a class="button button--alfa" id="alfa-button" title="Pobierz wersję alfa" href="https://github.com/wulkanowy/wulkanowy/releases"> <a class="button button--beta" id="beta-button" title="Pobierz wersję beta" href="https://github.com/wulkanowy/wulkanowy/releases">
Pobierz wersję alfa<br> Pobierz wersję beta<br>
<span id="alfa-version">v0.0.0</span> <span id="beta-version">v0.0.0</span>
</a> </a>
<a class="button button--nightly" <a class="button button--dev"
id="nightly-button" id="dev-button"
title="Pobierz wersję nightly" title="Pobierz wersję DEV"
href="https://bitrise-redirector.herokuapp.com/v0.1/apps/daeff1893f3c8128/builds/master/artifacts/app-debug-bitrise-signed.apk"> href="https://bitrise-redirector.herokuapp.com/v0.1/apps/daeff1893f3c8128/builds/master/artifacts/app-debug-bitrise-signed.apk">
Pobierz wersję nightly<br> Pobierz wersję DEV<br>
<span id="nightly-version">v000</span> <span id="dev-version">Build 0000</span>
</a> </a>
</section> </section>
</main> </main>