From a0e1f69b9151ea75486b403eaf5504da4a0f6d44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Liru=20F=C3=A6rs?= Date: Thu, 7 May 2020 10:13:27 -0400 Subject: [PATCH] Our release is now fully ready, make sure everyone is on it! New Minimum: 1.8.7 (8193) New Recommended Release: 1.8.9 (8338) New Recommended Alpha: 1.8.9 (8382) Add Mac alpha release 1.8.9 (8709) Go back to using dates in download widget Clean up old code from the old login wrapper Make all builds using the login wrapper report outdated. --- api/get_update_info.json | 16 ++--- downloads/index.html | 12 ++-- login/index.html | 142 +++++++-------------------------------- 3 files changed, 37 insertions(+), 133 deletions(-) diff --git a/api/get_update_info.json b/api/get_update_info.json index b488cf0..07cc5ae 100644 --- a/api/get_update_info.json +++ b/api/get_update_info.json @@ -3,26 +3,26 @@ "url":"http://www.singularityviewer.org/", "recommended":{ "windows":"1.8.9 (8338)", - "apple":"1.8.6 (6157)", + "apple":"1.8.9 (8709)", "linux":"1.8.9 (8338)" }, "minimum":{ "windows":"1.8.9 (8338)", - "apple":"1.8.6 (6157)", + "apple":"1.8.9 (8709)", "linux":"1.8.9 (8338)" } }, "alpha":{ "url":"http://www.singularityviewer.org/kb/nightly-builds", "recommended":{ - "windows":"1.8.9 (8363)", - "apple":"1.8.7 (8482)", - "linux":"1.8.7 (8193)" + "windows":"1.8.9 (8382)", + "apple":"1.8.9 (8709)", + "linux":"1.8.9 (8382)" }, "minimum":{ - "windows":"1.8.7 (8185)", - "apple":"1.8.7 (8243)", - "linux":"1.8.7 (8185)" + "windows":"1.8.7 (8193)", + "apple":"1.8.9 (8709)", + "linux":"1.8.7 (8193)" } } } diff --git a/downloads/index.html b/downloads/index.html index ea780ef..6d28021 100644 --- a/downloads/index.html +++ b/downloads/index.html @@ -73,13 +73,13 @@ span{ Singularity 1.8.9 (8338)
-Latest Builds +1 Apr 2020 for Windows
Singularity 1.8.9 (8338)
-Latest Builds +1 Apr 2020 for Windows
-Singularity 1.8.6(6156)
-4 Sep 2014 +href="https://bitbucket.org/router_gray/singularityviewer/downloads/Singularity_Alpha_1_8_9_8709_x86_64.dmg"> +Singularity 1.8.9 (8709)
+7 May 2020 for OS X
Singularity 1.8.9 (8338)
-Latest Builds +1 Apr 2020 for Linux64
parseInt(b_components[i])) - { - return 1; - } - - // B bigger than A - if (parseInt(a_components[i]) < parseInt(b_components[i])) - { - return -1; - } - } - - // If one's a prefix of the other, the longer one is greater. - if (a_components.length > b_components.length) - { - return 1; - } - - if (a_components.length < b_components.length) - { - return -1; - } - - // Otherwise they are the same. - return 0; -} - // Main window.onload = function() { parseUrlParams(); - if (!urlParams["original_page"] || !urlParams["version"]) return; + if (!urlParams["original_page"] || !urlParams["channel"]) return; window.onresize = resizeIframe; - document.getElementById('origpage').onload = resizeIframe; - document.getElementById('origpage').setAttribute("src", urlParams["original_page"]); + let orig = document.getElementById('origpage'); + orig.onload = resizeIframe; + orig.setAttribute("src", urlParams["original_page"]); document.getElementById('closetoolbar').onclick = toggleToolbar; document.getElementById('opentoolbar').onclick = toggleToolbar; - - var cur_ver = current_version; - // Current version is newer that user's - if (compareVersion(cur_ver, urlParams["version"]) > 0) - { - if(urlParams["os"].indexOf("Mac OS X") > -1) - { - if(clearVersion(cur_ver) == "1.8.6.6157" && clearVersion(urlParams["version"]) == "1.8.6.6156") - return; - } - toolbarShown = true; - setVisible("updateavail", true); - } - // User is on Singularity Alpha older than minimum recommended - else if (urlParams["channel"] == "Singularity Alpha" && compareVersion(min_alpha, urlParams["version"]) > 0) - { - toolbarShown = true; - setVisible("alpha_updateavail", true); - } - else if (urlParams["channel"] == "Singularity Zero" && compareVersion(min_alpha, urlParams["version"]) > 0) - { - toolbarShown = true; - if (urlParams["lang"] == "fr") - setVisible("zero_updatetoalpha_fr", true); - else - setVisible("zero_updatetoalpha", true); - } - else - { - toolbarShown = false; - setVisible("uptodate", true); - } + // Customize message per channel + const channel = urlParams["channel"]; + setVisible( + channel == "Singularity Alpha" ? "alpha_updateavail" : + channel == "Singularity Zero" ? urlParams["lang"] == "fr" ? "zero_updatetoalpha_fr" : "zero_updatetoalpha" : + "updateavail", + true); updateVisibility(toolbarShown); } @@ -235,7 +140,6 @@ window.onload = function()
-