diff options
author | RaindropsSys <raindrops@equestria.dev> | 2023-11-08 20:59:42 +0100 |
---|---|---|
committer | RaindropsSys <raindrops@equestria.dev> | 2023-11-08 20:59:42 +0100 |
commit | b83a38434156038bc02db74cb93fa8460d0f2f32 (patch) | |
tree | 5229c62153ad640f164ff3d4a837bd8345305e02 /app/ui | |
parent | 4755889793a36a1f33282ee4759445bef1eb2bb2 (diff) | |
download | mist-b83a38434156038bc02db74cb93fa8460d0f2f32.tar.gz mist-b83a38434156038bc02db74cb93fa8460d0f2f32.tar.bz2 mist-b83a38434156038bc02db74cb93fa8460d0f2f32.zip |
Updated 16 files, added 3 files, deleted android/app/release/app-release.apk.zip and renamed android/app/release/app-release.apk (automated)
Diffstat (limited to 'app/ui')
-rw-r--r-- | app/ui/listing.php | 4 | ||||
-rw-r--r-- | app/ui/settings.php | 7 | ||||
-rw-r--r-- | app/ui/update.php | 2 |
3 files changed, 8 insertions, 5 deletions
diff --git a/app/ui/listing.php b/app/ui/listing.php index 510fa58..d29b355 100644 --- a/app/ui/listing.php +++ b/app/ui/listing.php @@ -116,8 +116,8 @@ if (!$presetList) { </div> </div> <div id="album-info-buttons"> - <a class="btn btn-primary <?= count(array_keys($list)) <= 0 ? "disabled" : "" ?>" onclick="window.parent.playSong('<?= array_keys($list)[0] ?? '' ?>', 'favorites');" style="width: 100px;">Play</a> - <a class="btn btn-outline-primary <?= count(array_keys($list)) <= 0 ? "disabled" : "" ?>" style="width: 100px;" onclick="window.parent.shuffleList('favorites');">Shuffle</a> + <a class="btn btn-primary <?= count(array_keys($list)) <= 0 || $userId !== $_PROFILE["id"] ? "disabled" : "" ?>" onclick="window.parent.playSong('<?= array_keys($list)[0] ?? '' ?>', 'favorites');" style="width: 100px;">Play</a> + <a class="btn btn-outline-primary <?= count(array_keys($list)) <= 0 || $userId !== $_PROFILE["id"] ? "disabled" : "" ?>" style="width: 100px;" onclick="window.parent.shuffleList('favorites');">Shuffle</a> </div> </div> </div> diff --git a/app/ui/settings.php b/app/ui/settings.php index 3ef243d..fe421a0 100644 --- a/app/ui/settings.php +++ b/app/ui/settings.php @@ -110,7 +110,10 @@ window.parent.discordRichPresenceData = null; } else { window.parent.discordRichPresenceData = { - largeImageKey: "logo" + largeImageKey: "logo", + buttons : [ + { label: 'View profile', url: 'https://mist.equestria.horse/profile/?/<?= $_PROFILE["id"] ?>' } + ] }; } } @@ -239,7 +242,6 @@ <img class="icon" src="/assets/logo-transparent.svg" style="vertical-align: middle; filter: grayscale(1) invert(1); width: 32px; height: 32px;" alt=""> <span style="vertical-align: middle;">Mist version <?= str_replace("|", " ", file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/version")) ?> (build <?= trim(file_exists("/opt/spotify/build.txt") ? file_get_contents("/opt/spotify/build.txt") : "trunk") ?>)<span id="copyright-separator-desktop"> · </span><span id="copyright-separator-mobile"><br></span>© <?= date('Y') ?> Equestria.dev</span> </div> - <br><br> <style> @media (min-width: 768px) { #copyright-separator-mobile { @@ -254,6 +256,7 @@ } </style> <?php endif; global $privacy; global $profile; ?> + <br><br> <script> async function saveCustom() { document.getElementById("banner").disabled = true; diff --git a/app/ui/update.php b/app/ui/update.php index a5776f3..3915992 100644 --- a/app/ui/update.php +++ b/app/ui/update.php @@ -25,7 +25,7 @@ <script src="/assets/js/common.js"></script> <div style="padding: 1rem;"> <div style="text-align: center;"> - <?php $releaseNotes = true; require_once "../notes/update-1.0.0.php" ?> + <?php $releaseNotes = true; require_once "../notes/update-1.7.2.php" ?> <a style="margin-top: 50px; margin-bottom: 30px; display: block;" class="btn btn-primary" onclick="localStorage.setItem('lastUpdate', '<?= trim(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/version")) ?>'); window.parent._modal.hide();">Continue</a> </div> |