TheDesk Akane (16.0.2)

This commit is contained in:
cutls 2018-08-05 12:36:23 +09:00
parent a2a937e220
commit 7ab860c34c
13 changed files with 174 additions and 26 deletions

View File

@ -18,6 +18,7 @@ Contact me(bug report...):GitHub Issues, mention to [Cutls@kirishima.cloud](http
- English(英語) - English(英語)
### Translation/翻訳 ### Translation/翻訳
The Developer needs nice translation of TheDesk! The Developer needs nice translation of TheDesk!
Pull Request to `language/*.json` and `js/lang/*.js`. Pull Request to `language/*.json` and `js/lang/*.js`.
You cannot PR? You can also write Issues. You cannot PR? You can also write Issues.
@ -37,18 +38,25 @@ app:そのままのファイル.ダウンロード→テスト用
desk.icns: If you build yourself on macOS, you can use this .icns file as icon. desk.icns: If you build yourself on macOS, you can use this .icns file as icon.
desk.icns: macOS向けアイコン.セルフビルドにどうぞ. desk.icns: macOS向けアイコン.セルフビルドにどうぞ.
## Requirement/環境 ## Requirement/環境
- Windows (to launch TheDesk/実行に必要) / Linux (x64/ia32/armv7l) - Windows (to launch TheDesk/実行に必要) / Linux (x64/ia32/armv7l)
- Electron 2.0.5 - Electron 2.0.5
- electron-dl - electron-dl
- Jimp(Node.js) - Jimp
- adm-zip
- itunes-nowplaying-mac(for macOS) - itunes-nowplaying-mac(for macOS)
- node-notifier - node-notifier
- Ability to read unformated files! - Ability to read unformated files!
## Contributors/コントリビューター
macOSビルダー
- [とねぢ](https://minohdon.jp/@toneji)
## Build/ビルド ## Build/ビルド
Misskey(misskey.xyz) application token is not in cutls/TheDesk Misskey(misskey.xyz) application token is not in cutls/TheDesk
Misskey(misskey.xyz)のトークンは含まれておりません。 Misskey(misskey.xyz)のトークンは含まれておりません。

View File

@ -26,7 +26,7 @@
<script type="text/javascript" src="./js/common/modal.js"></script> <script type="text/javascript" src="./js/common/modal.js"></script>
<script type="text/javascript" src="./js/ui/jquery-ui.min.js"></script> <script type="text/javascript" src="./js/ui/jquery-ui.min.js"></script>
<script> <script>
var ver="Akane (16.0.1)"; var ver="Akane (16.0.2)";
//betaを入れるとバージョンチェックしない //betaを入れるとバージョンチェックしない
//GitHubに上げるときはindex.htmlをちゃんとする。(index.start.html) //GitHubに上げるときはindex.htmlをちゃんとする。(index.start.html)
//var ver="beta"; //var ver="beta";
@ -137,7 +137,7 @@ var lang="{{lang}}";
<span id="vis">public</span> <span id="vis">public</span>
</span> </span>
<br> <br>
<input type="text" id="cw-text" placeholder="{{cwtext}}" class="mize"> <input type="text" id="cw-text" placeholder="{{cwtext}}" class="mize" style="margin:0">
</div> </div>
</div> </div>
<!-- 公開範囲 Dropdown Structure --> <!-- 公開範囲 Dropdown Structure -->

View File

@ -18,6 +18,10 @@ var lang_setting_cwtext={
"ja":"デフォルトの警告文を「{{set}}」に設定しました。", "ja":"デフォルトの警告文を「{{set}}」に設定しました。",
"en":"Default CW text:{{set}}" "en":"Default CW text:{{set}}"
} }
var lang_setting_cws={
"ja":"標準でCW:{{set}}",
"en":"Always CW on:{{set}}"
}
var lang_setting_vis={ var lang_setting_vis={
"ja":"デフォルトの公開設定を{{set}}に設定しました。", "ja":"デフォルトの公開設定を{{set}}に設定しました。",
"en":"Default visibility:{{set}}" "en":"Default visibility:{{set}}"
@ -74,6 +78,10 @@ var lang_setting_tag={
"ja":"タグの取得範囲を「{{set}}」に設定しました。", "ja":"タグの取得範囲を「{{set}}」に設定しました。",
"en":"Tag TL:{{set}}" "en":"Tag TL:{{set}}"
} }
var lang_setting_box={
"ja":"投稿ボックスを{{set}}",
"en":"Post box:{{set}}"
}
var lang_setting_ul={ var lang_setting_ul={
"ja":"独自ロケール設定を{{set}}に設定しました。", "ja":"独自ロケール設定を{{set}}に設定しました。",
"en":"Native locale:{{set}}" "en":"Native locale:{{set}}"

View File

@ -78,9 +78,6 @@ function post() {
var box = localStorage.getItem("box"); var box = localStorage.getItem("box");
if (box == "yes") { if (box == "yes") {
hide(); hide();
}else if (box == "hide"){
$("body").addClass("mini-post");
$(".mini-btn").text("expand_less");
} }
$("#toot-post-btn").prop("disabled", false); $("#toot-post-btn").prop("disabled", false);
todc(); todc();
@ -178,8 +175,16 @@ function clear() {
} else { } else {
$("#cw-text").val(""); $("#cw-text").val("");
} }
var acw = localStorage.getItem("always-cw");
if (acw != "yes") {
$("#cw").removeClass("yellow-text"); $("#cw").removeClass("yellow-text");
$("#cw").removeClass("cw-avail"); $("#cw").removeClass("cw-avail");
$("#cw-text").hide();
}else{
$("#cw").addClass("yellow-text");
$("#cw").addClass("cw-avail");
$("#cw-text").show();
}
$("#rec").text(lang_no[lang]); $("#rec").text(lang_no[lang]);
$("#mec").text(lang_nothing[lang]); $("#mec").text(lang_nothing[lang]);
loadVis(); loadVis();

View File

@ -159,15 +159,22 @@ function parseColumn() {
$(".box").css("min-width", width + "px"); $(".box").css("min-width", width + "px");
} }
var box = localStorage.getItem("box"); var box = localStorage.getItem("box");
if (box == "yes") { if (box == "absolute") {
$("#post-box").addClass("hidenbox"); show();
$("#post-box").fadeOut();
$("#menu-btn").fadeIn();
}else if (box == "hide"){
$("body").addClass("mini-post");
$(".mini-btn").text("expand_less");
} }
favTag(); favTag();
var cw = localStorage.getItem("always-cw");
if (cw == "yes") {
if(!$("#cw").hasClass("cw-avail")){
$("#cw-text").show();
$("#cw").addClass("yellow-text");
$("#cw").addClass("cw-avail");
var cwt=localStorage.getItem("cw-text");
if(cwt){
$("#cw-text").val(cwt);
}
}
}
} }
//カラム追加 //カラム追加
function addColumn() { function addColumn() {

View File

@ -48,9 +48,11 @@ $('#posttgl').focusin(function(e) {
}); });
$("#timeline-container,#group").click(function(e) { $("#timeline-container,#group").click(function(e) {
if(localStorage.getItem("box")!="absolute"){
if($('#post-box').hasClass("appear") && !localStorage.getItem("nohide")){ if($('#post-box').hasClass("appear") && !localStorage.getItem("nohide")){
hide(); hide();
} }
}
localStorage.removeItem("nohide") localStorage.removeItem("nohide")
}); });

View File

@ -37,6 +37,13 @@ function settings() {
} }
localStorage.setItem("cw-text", cwtd); localStorage.setItem("cw-text", cwtd);
var cwsd = $("[name=cws]:checked").val();
var cwst = $("[for=cws_"+cwsd+"]").text();
if (cwsd != localStorage.getItem("always-cw")) {
Materialize.toast(lang_setting_cws[lang].replace("{{set}}" ,cwst), 3000);
}
localStorage.setItem("always-cw", cwsd);
var visd = $("[name=vis]:checked").val(); var visd = $("[name=vis]:checked").val();
var vist = $("[for="+visd+"]").text(); var vist = $("[for="+visd+"]").text();
if (visd != localStorage.getItem("vis")) { if (visd != localStorage.getItem("vis")) {
@ -108,6 +115,13 @@ function settings() {
} }
localStorage.setItem("img-height", heid); localStorage.setItem("img-height", heid);
var boxd = $("[name=box]:checked").val();
var boxt = $("[for=bx_"+boxd+"]").text();
if (boxd != localStorage.getItem("box")) {
Materialize.toast(lang_setting_box[lang].replace("{{set}}" ,boxt), 3000);
}
localStorage.setItem("box", boxd);
var tagd = $("[name=tag]:checked").val(); var tagd = $("[name=tag]:checked").val();
var tagt = $("[for=t_"+tagd+"]").text(); var tagt = $("[for=t_"+tagd+"]").text();
if (tagd != localStorage.getItem("tag-range")) { if (tagd != localStorage.getItem("tag-range")) {
@ -192,6 +206,12 @@ function load() {
} }
$("#c_" + cw).prop("checked", true); $("#c_" + cw).prop("checked", true);
var cws = localStorage.getItem("always-cw");
if (!cws) {
var cws = "no";
}
$("#cws_" + cws).prop("checked", true);
var popup = localStorage.getItem("popup"); var popup = localStorage.getItem("popup");
if (!popup) { if (!popup) {
var popup = "0"; var popup = "0";
@ -202,7 +222,10 @@ function load() {
if (!box) { if (!box) {
var box = "no"; var box = "no";
} }
$("#b_" + box).prop("checked", true); if(box=="absolute"){
var box = "abs";
}
$("#bx_" + box).prop("checked", true);
var gif = localStorage.getItem("gif"); var gif = localStorage.getItem("gif");
if (!gif) { if (!gif) {
@ -233,6 +256,12 @@ function load() {
} }
$("#cw-text").val(cwt); $("#cw-text").val(cwt);
var cws = localStorage.getItem("always-cw");
if (!cws) {
var cws = "no";
}
$("#cws_" + cws).prop("checked", true);
var vis = localStorage.getItem("vis"); var vis = localStorage.getItem("vis");
if (!vis) { if (!vis) {
var vis = "public"; var vis = "public";
@ -269,6 +298,12 @@ function load() {
} }
$("#t_" + tag).prop("checked", true); $("#t_" + tag).prop("checked", true);
var box = localStorage.getItem("box");
if (!box) {
var box = "yes";
}
$("#bx_" + box).prop("checked", true);
var uld = localStorage.getItem("locale"); var uld = localStorage.getItem("locale");
if (!uld) { if (!uld) {
var uld = "yes"; var uld = "yes";

View File

@ -38,11 +38,15 @@
"nsfwwarn":"Strong blur effect", "nsfwwarn":"Strong blur effect",
"cw":"Hide CW contents", "cw":"Hide CW contents",
"gif":"Animated GIF images animation", "gif":"Animated GIF images animation",
"box":"Action of posting-box",
"boxyes":"Folding",
"boxabs":"Absolutely open",
"boxno":"Open after posting",
"tag":"Tag TL Search", "tag":"Tag TL Search",
"tagfed":"Use federated network", "tagfed":"Use federated network",
"taglocal":"Use local network", "taglocal":"Use local network",
"via":"Show via", "via":"Show via",
"mouseover":"Hide aaction buttons without mouseover", "mouseover":"Hide action buttons without mouseover",
"mouseoverwarn":"You may feel unconfortable:(", "mouseoverwarn":"You may feel unconfortable:(",
"autofold":"Auto folding", "autofold":"Auto folding",
"autofoldwarn":"TheDesk does not collapse totes of 5 characters or less. Also, when collapsing, newlines are not shown. TheDesk count only newlines as the number of lines.", "autofoldwarn":"TheDesk does not collapse totes of 5 characters or less. Also, when collapsing, newlines are not shown. TheDesk count only newlines as the number of lines.",
@ -52,6 +56,7 @@
"imgheight":"Height of images", "imgheight":"Height of images",
"post":"Posting Preferences", "post":"Posting Preferences",
"defaultcw":"Default warining text", "defaultcw":"Default warining text",
"cws":"Always CW set",
"defaultvis":"Default visibility", "defaultvis":"Default visibility",
"public":"Public", "public":"Public",
"unlisted":"Unlisted", "unlisted":"Unlisted",

View File

@ -38,6 +38,10 @@
"nsfwwarn":"きつめのぼかしがかかります。", "nsfwwarn":"きつめのぼかしがかかります。",
"cw":"非表示設定のテキスト(CW)を隠す", "cw":"非表示設定のテキスト(CW)を隠す",
"gif":"アイコンのアニメーションを再生する", "gif":"アイコンのアニメーションを再生する",
"box":"投稿ボックスの挙動",
"boxyes":"たたむ",
"boxabs":"枠外クリックで閉じない(起動時に展開)",
"boxno":"投稿後も隠さない",
"tag":"タグタイムラインの表示範囲", "tag":"タグタイムラインの表示範囲",
"tagfed":"接続しているインスタンス", "tagfed":"接続しているインスタンス",
"taglocal":"検索対象のインスタンスのみ", "taglocal":"検索対象のインスタンスのみ",
@ -52,6 +56,7 @@
"imgheight":"画像の高さ", "imgheight":"画像の高さ",
"post":"投稿設定", "post":"投稿設定",
"defaultcw":"デフォルトの警告文", "defaultcw":"デフォルトの警告文",
"cws":"標準でCWを設定",
"defaultvis":"デフォルトの公開設定", "defaultvis":"デフォルトの公開設定",
"public":"公開(Public)", "public":"公開(Public)",
"unlisted":"未収載(Unlisted)", "unlisted":"未収載(Unlisted)",

View File

@ -161,6 +161,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.<br> SOFTWARE.<br>
<h5>itunes-nowplaying-mac</h5> <h5>itunes-nowplaying-mac</h5>
<i class="fa fa-github"></i><a href="https://github.com/rinsuki/itunes-nowplaying-mac" target="_blank">rinsuki/itunes-nowplaying-mac</a><br>
MIT LICENSE MIT LICENSE
<h5>Adobe Creative SDK</h5> <h5>Adobe Creative SDK</h5>
Please visit: Please visit:
@ -169,6 +170,30 @@ Please visit:
<i class="material-icons"> <i class="material-icons">
picture_as_pdf picture_as_pdf
</i></a> </i></a>
<h5>adm-zip</h5>
<i class="fa fa-github"></i><a href="https://github.com/cthackers/adm-zip" target="_blank">cthackers/adm-zip</a><br>
Copyright (c) 2012 Another-D-Mention Software and other contributors,
http://www.another-d-mention.ro/<br>
<br>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:<br>
<br>
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
<br><br>
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
<br>
<h5>Google Fonts</h5> <h5>Google Fonts</h5>
<ul> <ul>
<li>Open Sans:<a target="_blank" href="http://www.apache.org/licenses/LICENSE-2.0"> Apache License, Version 2.0 </a></li> <li>Open Sans:<a target="_blank" href="http://www.apache.org/licenses/LICENSE-2.0"> Apache License, Version 2.0 </a></li>

View File

@ -1,13 +1,27 @@
{ {
"name": "TheDesk", "name": "thedesk",
"version": "16.0.1", "version": "16.0.2",
"description": "TheDesk on Mastodonはシンプルと多機能を両立したデスクトップ向けクライアントです", "description": "TheDesk is a Mastodon client for PC.",
"main": "main.js", "main": "main.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"keywords": [], "keywords": [],
"author": "Cutls P", "bugs":{
"url" : "https://github.com/cutls/TheDesk/issues",
"email" : "mstdn@thedesk.top"
},
"homepage":"https://thedesk.top",
"author": {
"name": "Cutls P",
"url" : "https://kirishima.clooud/@Cutls",
"email" : "web-pro@cutls.com"
},
"contributor": [{
"name": "とねぢ",
"url" : "https://minohdon.jp/@toneji",
"email" : "solfa.tono@gmail.com"
}],
"license": "TheDesk LICENSE", "license": "TheDesk LICENSE",
"dependencies": { "dependencies": {
"adm-zip": "^0.4.11", "adm-zip": "^0.4.11",

View File

@ -156,6 +156,13 @@
<input type="text" style="width:150px" id="cw-text"> <input type="text" style="width:150px" id="cw-text">
<button class="btn waves-effect" style="width:100px;" onclick="settings()">設定</button> <button class="btn waves-effect" style="width:100px;" onclick="settings()">設定</button>
<br> <br>
<h5>標準でCWを設定</h5>
<input class="with-gap" onchange="settings()" name="cws" type="radio" id="cws_yes" value="yes" />
<label for="cws_yes">はい</label>
<input class="with-gap" onchange="settings()" name="cws" type="radio" id="cws_no" value="no" />
<label for="cws_no">いいえ
</label>
<br>
<h5>デフォルトの公開設定</h5> <h5>デフォルトの公開設定</h5>
<input class="with-gap" onchange="settings()" name="vis" type="radio" id="public" value="public" /> <input class="with-gap" onchange="settings()" name="vis" type="radio" id="public" value="public" />
<label for="public">公開(Public)</label> <label for="public">公開(Public)</label>
@ -181,6 +188,15 @@
<!--画像を投稿し、インラインで表示(Markdownに対応したインスタンスのみ。マルチアカウント環境では非推奨。)--> <!--画像を投稿し、インラインで表示(Markdownに対応したインスタンスのみ。マルチアカウント環境では非推奨。)-->
</label> </label>
<br> <br>
<h5>投稿ボックスの挙動</h5>
<input class="with-gap" onchange="settings()" name="box" type="radio" id="bx_yes" value="yes" />
<label for="bx_yes">たたむ</label>
<input class="with-gap" onchange="settings()" name="box" type="radio" id="bx_no" value="no" />
<label for="bx_no">投稿後も隠さない
</label>
<input class="with-gap" onchange="settings()" name="box" type="radio" id="bx_abs" value="absolute" />
<label for="bx_abs">枠外クリックで閉じない(起動時に展開)</label>
<br>
<h5>引用形式</h5> <h5>引用形式</h5>
<input class="with-gap" onchange="settings()" name="quote" type="radio" id="q_simple" value="simple" /> <input class="with-gap" onchange="settings()" name="quote" type="radio" id="q_simple" value="simple" />
<label for="q_simple">URLのみ</label> <label for="q_simple">URLのみ</label>
@ -341,6 +357,7 @@ TheDeskおよびCutls Pは<a href="https://donken.org/">被災地支援のため
<script type="text/javascript" src="./js/common/about.js"></script> <script type="text/javascript" src="./js/common/about.js"></script>
<script type="text/javascript" src="./js/platform/end.js"></script> <script type="text/javascript" src="./js/platform/end.js"></script>
<script type="text/javascript" src="./js/login/logout.js"></script> <script type="text/javascript" src="./js/login/logout.js"></script>
<script type="text/javascript" src="./js/lang/lang.js"></script>
<script type="text/javascript" src="./js/ui/spotify.js"></script> <script type="text/javascript" src="./js/ui/spotify.js"></script>
<script type="text/javascript" src="./js/tl/speech.js"></script> <script type="text/javascript" src="./js/tl/speech.js"></script>
<script type="text/javascript" src="./js/ui/settings.js"></script> <script type="text/javascript" src="./js/ui/settings.js"></script>

View File

@ -156,6 +156,13 @@
<input type="text" style="width:150px" id="cw-text"> <input type="text" style="width:150px" id="cw-text">
<button class="btn waves-effect" style="width:100px;" onclick="settings()">{{set}}</button> <button class="btn waves-effect" style="width:100px;" onclick="settings()">{{set}}</button>
<br> <br>
<h5>{{cws}}</h5>
<input class="with-gap" onchange="settings()" name="cws" type="radio" id="cws_yes" value="yes" />
<label for="cws_yes">{{yes}}</label>
<input class="with-gap" onchange="settings()" name="cws" type="radio" id="cws_no" value="no" />
<label for="cws_no">{{no}}
</label>
<br>
<h5>{{defaultvis}}</h5> <h5>{{defaultvis}}</h5>
<input class="with-gap" onchange="settings()" name="vis" type="radio" id="public" value="public" /> <input class="with-gap" onchange="settings()" name="vis" type="radio" id="public" value="public" />
<label for="public">{{public}}</label> <label for="public">{{public}}</label>
@ -181,6 +188,15 @@
<!--画像を投稿し、インラインで表示(Markdownに対応したインスタンスのみ。マルチアカウント環境では非推奨。)--> <!--画像を投稿し、インラインで表示(Markdownに対応したインスタンスのみ。マルチアカウント環境では非推奨。)-->
</label> </label>
<br> <br>
<h5>{{box}}</h5>
<input class="with-gap" onchange="settings()" name="box" type="radio" id="bx_yes" value="yes" />
<label for="bx_yes">{{boxyes}}</label>
<input class="with-gap" onchange="settings()" name="box" type="radio" id="bx_no" value="no" />
<label for="bx_no">{{boxno}}
</label>
<input class="with-gap" onchange="settings()" name="box" type="radio" id="bx_abs" value="absolute" />
<label for="bx_abs">{{boxabs}}</label>
<br>
<h5>{{quote}}</h5> <h5>{{quote}}</h5>
<input class="with-gap" onchange="settings()" name="quote" type="radio" id="q_simple" value="simple" /> <input class="with-gap" onchange="settings()" name="quote" type="radio" id="q_simple" value="simple" />
<label for="q_simple">{{simple}}</label> <label for="q_simple">{{simple}}</label>
@ -341,6 +357,7 @@ TheDeskおよびCutls Pは<a href="https://donken.org/">被災地支援のため
<script type="text/javascript" src="./js/common/about.js"></script> <script type="text/javascript" src="./js/common/about.js"></script>
<script type="text/javascript" src="./js/platform/end.js"></script> <script type="text/javascript" src="./js/platform/end.js"></script>
<script type="text/javascript" src="./js/login/logout.js"></script> <script type="text/javascript" src="./js/login/logout.js"></script>
<script type="text/javascript" src="./js/lang/lang.js"></script>
<script type="text/javascript" src="./js/ui/spotify.js"></script> <script type="text/javascript" src="./js/ui/spotify.js"></script>
<script type="text/javascript" src="./js/tl/speech.js"></script> <script type="text/javascript" src="./js/tl/speech.js"></script>
<script type="text/javascript" src="./js/ui/settings.js"></script> <script type="text/javascript" src="./js/ui/settings.js"></script>