From 381e6614849a67f62615b52d90c57a4261b968e8 Mon Sep 17 00:00:00 2001 From: Cutls Date: Wed, 6 Mar 2019 20:56:39 +0900 Subject: [PATCH] THeDesk Miria (17.1.0) complete --- .travis.yml | 3 +++ app/css/themes.css | 6 ++--- app/css/tl.css | 18 +++++++------- app/js/post/post.js | 8 ++++++- app/js/tl/parse.js | 36 +++++++++++++++------------- app/js/tl/tl.js | 6 ++--- app/view/en/index.html | 33 ++++++++++++------------- app/view/ja/index.html | 33 ++++++++++++------------- app/view/make/index.sample.html | 31 +++++++++++------------- app/view/make/language/index.en.json | 1 + app/view/make/language/index.ja.json | 1 + app/view/ps/index.html | 33 ++++++++++++------------- 12 files changed, 106 insertions(+), 103 deletions(-) diff --git a/.travis.yml b/.travis.yml index c43229c9..9236f48a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,3 +28,6 @@ deploy: - TheDesk-setup-ia32.exe on: repo: cutls/TheDesk +branches: + only: + - master \ No newline at end of file diff --git a/app/css/themes.css b/app/css/themes.css index 98523ef2..6126a362 100644 --- a/app/css/themes.css +++ b/app/css/themes.css @@ -22,7 +22,7 @@ --bg:#212121; --drag:rgba(0, 0, 0, 0.8); --color:white; - --beforehover:#e0e0e0; + --beforehover:#9e9e9e; --modal:black; --subcolor:#212121; --box:#424242; @@ -42,7 +42,7 @@ --bg:#031833; --drag:rgba(0, 0, 0, 0.8); --color:white; - --beforehover:#e0e0e0; + --beforehover:#9e9e9e; --modal:#0d1351; --subcolor:#0d1351; --shared:#004d40; @@ -62,7 +62,7 @@ --bg:#261411; --drag:rgba(0, 0, 0, 0.8); --color:white; - --beforehover:#e0e0e0; + --beforehover:#9e9e9e; --modal:#261411; --subcolor:#4e342e; --shared:#004d40; diff --git a/app/css/tl.css b/app/css/tl.css index a7b93b9e..0dde0048 100644 --- a/app/css/tl.css +++ b/app/css/tl.css @@ -229,6 +229,9 @@ grid-area: toot; margin:2px; grid-area: side; } +.btn-flat{ + color:var(--color); +} .area-side i{ margin-left:10px; } @@ -238,11 +241,13 @@ grid-area: toot; .action i{ font-size:1.2rem; margin-right:2px; +} +.actct{ color:var(--beforehover); } -.action i:hover{ +.actct:hover{ color:var(--color); - transition: 1s; + transition: 0.5s; } .gray { @@ -426,9 +431,6 @@ p:not(:last-child){ bottom:0px; right:0px; } -.btn-flat{ - color:var(--color); -} .toot a span.ellipsis:after{ content:"..."; } @@ -468,8 +470,8 @@ p:not(:last-child){ } .votebtn{ border: 1px solid; - color: var(--color); - background-color: var(--modal); + color: var(--bg); + background-color: var(--beforehover); cursor:pointer; width: 50px; padding: 2px; @@ -480,7 +482,7 @@ p:not(:last-child){ transition-duration: 0.5s; } .votebtn:hover{ - background-color:transparent; + background-color:var(--color); } @keyframes fadeInDown { from { diff --git a/app/js/post/post.js b/app/js/post/post.js index ee7bd587..e8ee6acc 100644 --- a/app/js/post/post.js +++ b/app/js/post/post.js @@ -141,6 +141,11 @@ function post(mode,postvis) { }else{ var mul=false; } + if($("#poll-until:checked").val()=="1"){ + var htt=true; + }else{ + var htt=false; + } var exin=pollCalc(); if(!exin){ todc("Error: Poll expires_in param") @@ -148,7 +153,8 @@ function post(mode,postvis) { toot.poll={ options: options, expires_in: exin, - multiple: mul + multiple: mul, + hide_totals: htt } } console.log(toot); diff --git a/app/js/tl/parse.js b/app/js/tl/parse.js index 1482fb16..12c7dc23 100644 --- a/app/js/tl/parse.js +++ b/app/js/tl/parse.js @@ -169,7 +169,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter) { Object.keys(toot.account.emojis).forEach(function(key5) { var emoji = toot.account.emojis[key5]; var shortcode = emoji.shortcode; - var emoji_url = ' :'+shortcode+': '; var regExp = new RegExp(":" + shortcode + ":", "g"); dis_name = dis_name.replace(regExp, emoji_url); @@ -185,7 +185,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter) { } noticeavatar='' + - ''; if (toot.type == "mention") { @@ -294,7 +294,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter) { } noticeavatar='' + - ''; var rebtxt = lang.lang_parse_btedsimple; @@ -321,7 +321,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter) { Object.keys(toot.account.emojis).forEach(function(key5) { var emoji = toot.account.emojis[key5]; var shortcode = emoji.shortcode; - var emoji_url = ' :'+shortcode+': '; var regExp = new RegExp(":" + shortcode + ":", "g"); dis_name = dis_name.replace(regExp, emoji_url); @@ -432,7 +432,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter) { Object.keys(toot.emojis).forEach(function(key5) { var emoji = toot.emojis[key5]; var shortcode = emoji.shortcode; - var emoji_url = ' :'+shortcode+': '; var regExp = new RegExp(":" + shortcode + ":", "g"); content = content.replace(regExp, emoji_url); @@ -450,7 +450,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter) { Object.keys(toot.profile_emojis).forEach(function(keynico) { var emoji = toot.profile_emojis[keynico]; var shortcode = emoji.shortcode; - var emoji_url = ' :'+shortcode+': '; var regExp = new RegExp(":" + shortcode + ":", "g"); content = content.replace(regExp, emoji_url); @@ -489,7 +489,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter) { } viewer = viewer + ''; }); @@ -624,7 +624,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter) { var cards=toot.card; if (cards.provider_name=="Twitter"){ if(cards.image){ - var twiImg='
'; + var twiImg='
'; }else{ var twiImg=''; } @@ -653,7 +653,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter) { for( var i=0; i '+value.name+''; + var tickerdom='
'+value.name+'
'; break; } } @@ -668,7 +668,9 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter) { var result_hide=""; }else{ myvote=''+lang.lang_parse_vote+'
'; - myvote=myvote+''+lang.lang_parse_unvoted+""; + if(choices[0].votes_count===0 || choices[0].votes_count>0){ + myvote=myvote+''+lang.lang_parse_unvoted+""; + } var result_hide="hide"; } Object.keys(choices).forEach(function(keyc) { @@ -694,7 +696,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter) { '' + '
' + - ''+noticeavatar+'
' + '
' + @@ -721,19 +723,19 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter) { '' + '' + '
' + + '\')" class="waves-effect waves-dark btn-flat actct" style="padding:0" title="'+lang.lang_parse_quote+'">
' + '' + '' + '
' + dis_name + '' + diff --git a/app/js/tl/tl.js b/app/js/tl/tl.js index 4df87f90..9386dfaa 100644 --- a/app/js/tl/tl.js +++ b/app/js/tl/tl.js @@ -53,14 +53,14 @@ function tl(type, data, acct_id, tlid, delc, voice, mode) { "user_" + acct_id) + "@" + domain + ")"); $("#notice_icon_" + tlid).text("notifications"); return; - }else if (type == "dm") { + }/*else if (type == "dm") { //DMなら飛ばす dm(acct_id, tlid, "plus",delc,voice); $("#notice_" + tlid).text(cap(type, data, acct_id) + "(" + localStorage.getItem( "user_" + acct_id) + "@" + domain + ")"); $("#notice_icon_" + tlid).text("notifications"); return; - } + }*/ localStorage.setItem("now", type); todo(cap(type) + " TL Loading..."); var at = localStorage.getItem("acct_"+ acct_id + "_at"); @@ -579,7 +579,7 @@ function com(type, data) { }else if (type == "list") { return "list/" + data + "?" }else if (type="dm") { - return "/api/v1/conversations?" + return "direct?" } } function misskeycom(type, data) { diff --git a/app/view/en/index.html b/app/view/en/index.html index 1ee00f35..a563688c 100644 --- a/app/view/en/index.html +++ b/app/view/en/index.html @@ -32,7 +32,7 @@