From 714feca4552509448dec477a53851a430e0d4081 Mon Sep 17 00:00:00 2001 From: cutls Date: Sat, 9 Nov 2019 14:38:43 +0900 Subject: [PATCH] TheDesk 20.0.1 (Kawaii) --- app/js/ui/tips.js | 58 --------------------------------- app/package.json | 2 +- app/view/make/index.sample.html | 9 +++-- app/view/make/make.js | 2 +- 4 files changed, 9 insertions(+), 62 deletions(-) diff --git a/app/js/ui/tips.js b/app/js/ui/tips.js index c5999afb..ff2b6763 100644 --- a/app/js/ui/tips.js +++ b/app/js/ui/tips.js @@ -240,64 +240,6 @@ function spotStart() { $('.spotify-prog').attr('data-s', news) $('.spotify-prog').css('width', per + '%') } -//iTunes -function spotifytips() { - if (spotint) clearInterval(spotint) - var ms = json.progress_ms - var last = 1000 - (ms % 1000) - var item = json.item - var img = item.album.images[0].url - var artisttxt = '' - for (i = 0; i < item.artists.length; i++) { - if (i > 0) { - artisttxt = artisttxt + ',' + item.artists[i].name - } else { - artisttxt = item.artists[0].name - } - } - artisttxt = escapeHTML(artisttxt) - sleep(last) - var tms = item.duration_ms - var per = (ms / item.duration_ms) * 100 - ms = ms / 1000 - tms = tms / 1000 - var s = Math.round(ms) % 60 - if (s < 10) { - s = '0' + s - } - var m = (Math.round(ms) - (Math.round(ms) % 60)) / 60 - var ts = Math.round(tms) % 60 - if (ts < 10) { - ts = '0' + ts - } - var tm = (Math.round(tms) - (Math.round(tms) % 60)) / 60 - var html = ` -
-
- refresh - send -
-
- -
-
- ${escapeHTML(item.name)} -
-
- ${artisttxt} -
-
- ${m}:${s}/${tm}:${ts} -
-
-
-
-
-
` - $('#tips-text').html(html) - spotint = setInterval(spotStart, 1000) -} function trendTagonTipInterval() { setTimeout(trendTagonTip, 6000000) } diff --git a/app/package.json b/app/package.json index 8b3a86e6..ae29aeb9 100644 --- a/app/package.json +++ b/app/package.json @@ -1,6 +1,6 @@ { "name": "thedesk", - "version": "20.0.0", + "version": "20.0.1", "description": "TheDesk is a Mastodon client for PC.", "repository": "https://github.com/cutls/TheDesk", "main": "main.js", diff --git a/app/view/make/index.sample.html b/app/view/make/index.sample.html index 277e13ca..34cd74de 100644 --- a/app/view/make/index.sample.html +++ b/app/view/make/index.sample.html @@ -760,10 +760,15 @@ HP
GitHub

-