TheDesk Akane (16.1.0)
This commit is contained in:
parent
75fb2e202a
commit
f381d71239
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,10 +1,13 @@
|
||||||
*.bat
|
*.bat
|
||||||
*.zip
|
*.zip
|
||||||
*.7z
|
*.7z
|
||||||
|
*.exe
|
||||||
TheDesk-*
|
TheDesk-*
|
||||||
app/build
|
app/build
|
||||||
app/.DS_Store
|
app/.DS_Store
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
.vs/*
|
||||||
|
.vscode/*
|
||||||
enq.md
|
enq.md
|
||||||
app/.tkn
|
app/.tkn
|
||||||
app/node_modules
|
app/node_modules
|
11
LATEST.md
11
LATEST.md
|
@ -1,6 +1,15 @@
|
||||||
## For Astarte(kirishima.cloud), My Primary Instance
|
## For Astarte(kirishima.cloud), My Primary Instance
|
||||||
|
|
||||||
TheDesk :thedesk: Akane (16.0.1)
|
TheDesk :thedesk: Akane (16.1.0)
|
||||||
|
・不具合修正(マウスオーバー,クリックに関する)
|
||||||
|
・2.5.0に対する対応(リプ数やendorseなど)
|
||||||
|
・軽量化を図った
|
||||||
|
・一つのカラムをTwitter(TweetDeck)にできる機能
|
||||||
|
・画像の保存先を変えられるように
|
||||||
|
・インスタンス情報の拡充
|
||||||
|
・デザイン変更
|
||||||
|
・トゥートバーを左端に持ってこれるように
|
||||||
|
・Windowsのネイティブ通知が復活
|
||||||
|
|
||||||
ほか
|
ほか
|
||||||
https://thedesk.top
|
https://thedesk.top
|
||||||
|
|
|
@ -16,17 +16,28 @@
|
||||||
width:100vw;
|
width:100vw;
|
||||||
height:40px;
|
height:40px;
|
||||||
padding:3px;
|
padding:3px;
|
||||||
padding-right:40px;
|
padding-right:0;
|
||||||
|
padding-left:40px;
|
||||||
background-color:var(--sidebar);
|
background-color:var(--sidebar);
|
||||||
display:flex;
|
display:flex;
|
||||||
flex-direction: row-reverse;
|
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
flex-wrap:wrap;
|
flex-wrap:wrap;
|
||||||
z-index:500;
|
z-index:500;
|
||||||
box-shadow: 10px 0 10px 10px rgba(0, 0, 0, 0.2);
|
box-shadow: 10px 0 10px 10px rgba(0, 0, 0, 0.2);
|
||||||
}
|
}
|
||||||
|
#bottom.reverse{
|
||||||
|
padding-left:0;
|
||||||
|
padding-right:40px;
|
||||||
|
}
|
||||||
|
.reverse{
|
||||||
|
flex-direction: row-reverse;
|
||||||
|
}
|
||||||
#bottom #dambox{
|
#bottom #dambox{
|
||||||
width:300px;
|
width:300px;
|
||||||
|
margin-right:10px;
|
||||||
|
}
|
||||||
|
#bottom.reverse #dambox{
|
||||||
|
margin-right:0;
|
||||||
}
|
}
|
||||||
#bottom .trendtag{
|
#bottom .trendtag{
|
||||||
height:40px;
|
height:40px;
|
||||||
|
@ -35,7 +46,7 @@
|
||||||
margin-right:40px;
|
margin-right:40px;
|
||||||
}
|
}
|
||||||
#bottom .leftside{
|
#bottom .leftside{
|
||||||
display:flex; flex-direction: row-reverse;
|
display:flex;
|
||||||
}
|
}
|
||||||
#bottom #tips img{
|
#bottom #tips img{
|
||||||
vertical-align: -3px;
|
vertical-align: -3px;
|
||||||
|
|
817
app/index.html
817
app/index.html
|
@ -1,818 +1,5 @@
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="ja">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<title>TheDesk</title>
|
<meta http-equiv="refresh" content="0;URL='language.html?mode=redirect'" />
|
||||||
<meta content="width=device-width,initial-scale=1.0" name="viewport">
|
|
||||||
<link href="./css/materialize.css" type="text/css" rel="stylesheet">
|
|
||||||
<link href='./css/font-awesome.css' rel='stylesheet' type='text/css'>
|
|
||||||
<link href="./css/themes.css" type="text/css" rel="stylesheet">
|
|
||||||
<link href='./css/tl.css' rel='stylesheet' type='text/css'>
|
|
||||||
<link href='./css/userdata.css' rel='stylesheet' type='text/css'>
|
|
||||||
<link href='./css/post.css' rel='stylesheet' type='text/css'>
|
|
||||||
<link href="./css/master.css" type="text/css" rel="stylesheet">
|
|
||||||
<link href='./css/sort.css' rel='stylesheet' type='text/css'>
|
|
||||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons|Open+Sans:300|Baloo+Bhai" rel="stylesheet">
|
|
||||||
<meta charset="utf-8">
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
|
||||||
<script type="text/javascript" src="./js/common/jquery.js"></script>
|
|
||||||
<script type="text/javascript" src="./js/platform/first.js"></script>
|
|
||||||
<script type="text/javascript" src="./js/common/materialize.js"></script>
|
|
||||||
<script type="text/javascript" src="./js/lang/lang.js"></script>
|
|
||||||
<script type="text/javascript" src="./js/lang/parse.lang.js"></script>
|
|
||||||
<script type="text/javascript" src="./js/common/time.js"></script>
|
|
||||||
<script type="text/javascript" src="./js/common/version.js"></script>
|
|
||||||
<script type="text/javascript" src="./js/common/keyshortcut.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>
|
|
||||||
var ver="Akane (16.0.11)";
|
|
||||||
//betaを入れるとバージョンチェックしない
|
|
||||||
//GitHubに上げるときはindex.htmlをちゃんとする。(index.start.html)
|
|
||||||
//var ver="beta";
|
|
||||||
//WinstoreではバージョンCK・言語・Misskeyトークンの機能が排除
|
|
||||||
var winstore=false;
|
|
||||||
var acct_id=0;
|
|
||||||
var tlid=0;
|
|
||||||
var lang="ja";
|
|
||||||
verck(ver);
|
|
||||||
</script>
|
|
||||||
<textarea id="copy" style="top:-100px; position:fixed;"></textarea>
|
|
||||||
<div id="tl">
|
|
||||||
<!--TL-->
|
|
||||||
<!--ドラッグハンドラ-->
|
|
||||||
<div id="drag">
|
|
||||||
<div id="drag-content" data-trans="drag_here">ここにドラッグして添付(ドラッグと同時にアップロードされます)
|
|
||||||
<br>
|
|
||||||
<button class="btn waves-effect" onclick="closedrop()" data-trans="close">Close</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div id="post-box" class="z-depth-3">
|
|
||||||
<!--トゥートボックス-->
|
|
||||||
<div class="row" style="margin-bottom:0;">
|
|
||||||
</span>
|
|
||||||
<div class="" style="float:left;">
|
|
||||||
<a onclick="profShow()" style="vertical-align:-2.5rem;" class="pointer mize">
|
|
||||||
<img src="./img/missing.svg" id="acct-sel-prof" title="選択したアカウントのプロフィールを表示(Ctrl+Shift+P)" data-trans-title="post_box_prof" width="24px">
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<div class="input-field mize" style="float:left; width:calc(100% - 24px)">
|
|
||||||
<select id="post-acct-sel" class="acct-sel" onchange="mdCheck()"></select>
|
|
||||||
</div>
|
|
||||||
<span class="cancel">
|
|
||||||
<i class="material-icons waves-effect" onclick="hide()" title="このボックスを閉じる(X)" data-trans-title="post_box_close">cancel</i>
|
|
||||||
</span>
|
|
||||||
<!--Markdown-->
|
|
||||||
<div class="row" style="margin-bottom:0">
|
|
||||||
<div class="markdown mize hide">
|
|
||||||
<div class="col s12">
|
|
||||||
<i class="material-icons pointer setting waves-effect" onclick="tagsel('b')" title="太字(Ctrl+B)テキストボックス内を選択してから押すと囲みます。">format_bold</i>
|
|
||||||
<i class="material-icons pointer setting waves-effect" onclick="tagsel('i')" title="斜字(Ctrl+I)テキストボックス内を選択してから押すと囲みます。">format_italic</i>
|
|
||||||
<i class="material-icons pointer setting waves-effect" onclick="tagsel('u')" title="下線(Ctrl+U)テキストボックス内を選択してから押すと囲みます。">format_underlined</i>
|
|
||||||
<i class="material-icons pointer setting waves-effect" onclick="tagsel('s')" title="取り消し(Ctrl+S)テキストボックス内を選択してから押すと囲みます。">strikethrough_s</i>
|
|
||||||
<i class="material-icons pointer setting waves-effect" onclick="markdown('>','no','yes')" title="引用">format_quote</i>
|
|
||||||
<i class="material-icons pointer setting waves-effect" onclick="markdown('#','no','yes')" title="見出し">short_text</i>
|
|
||||||
<i class="material-icons pointer setting waves-effect" onclick="markdown('`','yes','no')" title="コード挿入 テキストボックス内を選択してから押すと囲みます。">code</i>
|
|
||||||
<i class="material-icons pointer setting waves-effect" onclick="markdown('- ','yes','yes')" title="箇条書きリスト">format_list_bulleted</i>
|
|
||||||
<i class="material-icons pointer setting waves-effect" onclick="markdown('1. ','yes','yes')" title="番号付きリスト">format_list_numbered</i>
|
|
||||||
<i class="pointer setting fa fa-subscript waves-effect" onclick="markdown('__','yes','no','before')" title="下付き文字 テキストボックス内を選択してから押すと囲みます。" style="font-size:1.5rem"></i>
|
|
||||||
<i class="pointer setting fa fa-superscript waves-effect" onclick="markdown('_','yes','no','before')" title="上付き文字 テキストボックス内を選択してから押すと囲みます。" style="font-size:1.5rem"></i>
|
|
||||||
<i class="material-icons pointer setting waves-effect" onclick="tagsel('spin')" title="回転 テキストボックス内を選択してから押すと囲みます。">autorenew</i>
|
|
||||||
<i class="material-icons pointer setting waves-effect" onclick="tagsel('pulse')" title="点滅 テキストボックス内を選択してから押すと囲みます。">flare</i>
|
|
||||||
<i class="material-icons pointer setting waves-effect" onclick="tagsel('flip=vertical')" title="上下反転 テキストボックス内を選択してから押すと囲みます。">swap_vert</i>
|
|
||||||
<i class="material-icons pointer setting waves-effect" onclick="tagsel('flip=horizontal')" title="左右反転 テキストボックス内を選択してから押すと囲みます。">swap_horiz</i>
|
|
||||||
<span class="sml gray pointer waves-effect">
|
|
||||||
<a onclick="mdToggle()">Markdownエディタを隠す</a>
|
|
||||||
</span>
|
|
||||||
<br>
|
|
||||||
<i class="material-icons pointer setting waves-effect" onclick="tagsel('size')" title="文字サイズ変更 テキストボックス内を選択してから押すと囲みます。">format_size</i>
|
|
||||||
<input id="size" style="width: calc(50% - 20px); margin: 0; height: 24px;" value="12">px
|
|
||||||
<i class="material-icons pointer setting waves-effect" onclick="tagsel('colorhex')" title="文字色変更 テキストボックス内を選択してから押すと囲みます。">color_lens</i>
|
|
||||||
<input id="colorhex" style="width: calc(50% - 50px); margin: 0; height: 24px;" type="color">
|
|
||||||
<br>
|
|
||||||
<i class="material-icons pointer setting waves-effect" onclick="markdownLink()" title="リンク挿入">link</i>
|
|
||||||
<input id="linkt" style="width: calc(50% - 20px); margin: 0; height: 24px;" placeholder="リンクテキスト">
|
|
||||||
<input id="link2" style="width: calc(50% - 20px); margin: 0; height: 24px;" placeholder="リンクアドレス">
|
|
||||||
<br>
|
|
||||||
<i class="material-icons pointer setting waves-effect" onclick="markdownImage()" title="インライン画像挿入">image</i>
|
|
||||||
<input id="image" style="width: calc(50% - 20px); margin: 0; height: 24px;" placeholder="代替テキスト">
|
|
||||||
<input id="image2" style="width: calc(50% - 20px); margin: 0; height: 24px;" placeholder="画像アドレス">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="input-field col s12" id="preview-field" style="margin-top: 0;">
|
|
||||||
<div id="md-preview">
|
|
||||||
</div>
|
|
||||||
<span class="sml gray pointer">
|
|
||||||
<a onclick="previewEdit()">Edit</a>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<div class="input-field col s12" id="toot-field" style="margin-top: 10px;">
|
|
||||||
|
|
||||||
<textarea id="textarea" class="materialize-textarea unmize" style="margin-bottom:0;" data-length="500"></textarea>
|
|
||||||
<label for="textarea" data-trans="toot">トゥート</label>
|
|
||||||
<br>
|
|
||||||
<span class="sml gray pointer markdown mize" id="preview-btn">
|
|
||||||
<a onclick="preview()">Preview</a>
|
|
||||||
</span>
|
|
||||||
<span class="sml gray pointer anti-markdown mize">
|
|
||||||
<a onclick="mdToggle()">Markdownエディタを表示</a>
|
|
||||||
</span>
|
|
||||||
<span id="suggest"></span>
|
|
||||||
</div>
|
|
||||||
<div class="col s12 mize" style="margin-top: 0; display:flex; justify-content: space-between">
|
|
||||||
<i class="waves-effect gray material-icons" id="nsfw" title="画像に制限を付与" onclick="nsfw()">visibility_off</i>
|
|
||||||
<i class="waves-effect gray material-icons purple-text dropdown-button" data-activates='dropdown1' id="vis-icon">public</i>
|
|
||||||
<a class="waves-effect gray" id="cw" onclick="cw()" title="コンテンツワーニング(トゥートを表示する前にメッセージで隠す)">CW</a>
|
|
||||||
<span><span id="imgup"></span><span id="imgsel"><i class="waves-effect material-icons gray" onclick="fileselect()" title="ファイルを選択">photo_library</i></span></span>
|
|
||||||
<i class="waves-effect gray material-icons" onclick="adobe()" title="Adobeフォトエディタ">format_shapes</i>
|
|
||||||
<i class="waves-effect gray material-icons" onclick="emoji()" title="絵文字を挿入">tag_faces</i>
|
|
||||||
<a class="pointer waves-effect gray" id="npbtn" title="NowPlaying[クリックでSpotify(アカウント連携が必要です)/control+クリックでiTunes(macOSが必要です)]"><i class="material-icons" style="font-size:24px;">music_note</i></a>
|
|
||||||
<i class="material-icons nex gray waves-effect" title="トゥートボックスのクリア(Ctrl+Shit+C)" data-trans-title="post_box_clear" id="clear">clear</i>
|
|
||||||
</div>
|
|
||||||
<div class="col s12 mize" style="margin-bottom:5px; padding:0;">
|
|
||||||
<div id="taglist"></div>
|
|
||||||
<span id="preview" class="mize"></span>
|
|
||||||
<span class=" sml mize"><span data-trans="reply">返信モード</span>:
|
|
||||||
<span id="rec">いいえ</span>/<span data-trans="file">添付ファイル</span>:
|
|
||||||
<span id="mec">なし</span>/<span data-trans="vis">公開範囲</span>:
|
|
||||||
<span id="vis">public</span>
|
|
||||||
</span>
|
|
||||||
<br>
|
|
||||||
<input type="text" id="cw-text" placeholder="警告文" class="mize" style="margin:0">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- 公開範囲 Dropdown Structure -->
|
|
||||||
<ul id='dropdown1' class='dropdown-content'>
|
|
||||||
<li style="font-size: 16px; display: block; line-height: 22px; padding: 14px 16px;">公開範囲指定</li>
|
|
||||||
<li>
|
|
||||||
<a onclick="vis('public')">公開(Public)</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a onclick="vis('unlisted')">未収載(Unlisted)</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a onclick="vis('private')" id="private-button">非公開(Private)</a>
|
|
||||||
</li>
|
|
||||||
<li id="limited-button" class="hide">
|
|
||||||
<a onclick="vis('limited')">限定公開(Limited)</a>
|
|
||||||
</li>
|
|
||||||
<li id="local-button" class="hide">
|
|
||||||
<a onclick="vis('local')">ローカル限定(Local)</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a onclick="vis('direct')" class="disabled direct">ダイレクト(Direct)</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<!--hidden area-->
|
|
||||||
<input type="hidden" id="reply">
|
|
||||||
<input type="hidden" id="media">
|
|
||||||
<!--END hidden area-->
|
|
||||||
</div>
|
|
||||||
<div id="toot-btn-field">
|
|
||||||
<button class="btn waves-effect indigo unmize" style="width:calc(100% - 10px); padding:0; margin-top:10px;" onclick="post()" id="toot-post-btn">トゥート</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!--絵文字ピッカー-->
|
|
||||||
<div id="emoji" class="hide shared z-depth-4">
|
|
||||||
<span class="gray sml">インスタンスによって実装が異なります。
|
|
||||||
<a onclick="emojiGet('true')" class="pointer">絵文字更新</a>
|
|
||||||
<i class="material-icons waves-effect" onclick="emoji()" title="このボックスを閉じる" data-trans-title="post_box_close">cancel</i>
|
|
||||||
<br>
|
|
||||||
</span>
|
|
||||||
<input type="text" id="emoji-suggest" placeholder="カスタム絵文字 検索">
|
|
||||||
<div id="emoji-list" class="" style="">
|
|
||||||
</div>
|
|
||||||
<div class="emoji-control center">
|
|
||||||
<button class="btn waves-effect blue" style="width:30%; padding:0;" onclick="emojiList('before')" id="emoji-before">
|
|
||||||
<i class="material-icons">navigate_before</i>
|
|
||||||
</button>
|
|
||||||
<span id="emoji-count"></span>/
|
|
||||||
<span id="emoji-sum"></span>
|
|
||||||
<button class="btn waves-effect blue" style="width:30%; padding:0;" onclick="emojiList('next')" id="emoji-next">
|
|
||||||
<i class="material-icons">navigate_next</i>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div id="default-emoji">
|
|
||||||
<span id="now-emoji"></span>一覧を表示中<br><span class="gray sml">一部絵文字は入力できません。</span>
|
|
||||||
<br>
|
|
||||||
<a onclick="customEmoji()" class="pointer waves-effect" title="カスタム絵文字">
|
|
||||||
<i class="material-icons">add</i>
|
|
||||||
</a>
|
|
||||||
<a onclick="defaultEmoji('people')" class="pointer waves-effect" title="ひと">
|
|
||||||
<i class="material-icons">people</i>
|
|
||||||
</a>
|
|
||||||
<a onclick="defaultEmoji('nature')" class="pointer waves-effect" title="自然">
|
|
||||||
<i class="material-icons">local_florist</i>
|
|
||||||
</a>
|
|
||||||
<a onclick="defaultEmoji('food')" class="pointer waves-effect" title="食べ物">
|
|
||||||
<i class="material-icons">restaurant</i>
|
|
||||||
</a>
|
|
||||||
<a onclick="defaultEmoji('activity')" class="pointer waves-effect" title="活動">
|
|
||||||
<i class="material-icons">directions_run</i>
|
|
||||||
</a>
|
|
||||||
<a onclick="defaultEmoji('place')" class="pointer waves-effect" title="場所">
|
|
||||||
<i class="material-icons">directions_car</i>
|
|
||||||
</a>
|
|
||||||
<a onclick="defaultEmoji('object')" class="pointer waves-effect" title="もの">
|
|
||||||
<i class="material-icons">attach_file</i>
|
|
||||||
</a>
|
|
||||||
<a onclick="defaultEmoji('symbol')" class="pointer waves-effect" title="記号">
|
|
||||||
<i class="material-icons">gesture</i>
|
|
||||||
</a>
|
|
||||||
<a onclick="defaultEmoji('flag')" class="pointer waves-effect" title="国旗">
|
|
||||||
<i class="material-icons">flag</i>
|
|
||||||
</a>
|
|
||||||
<a onclick="faicon()" class="pointer waves-effect" title="faicon" id="faicon-btn">
|
|
||||||
<i class="fa fa-fort-awesome"></i>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- Modal Structure Tootdata-->
|
|
||||||
<div id="tootmodal" class="modal modal-fixed-footer">
|
|
||||||
<div class="modal-content">
|
|
||||||
<ul class="collapsible" data-collapsible="accordion" id="det-col">
|
|
||||||
<li>
|
|
||||||
<div class="collapsible-header">
|
|
||||||
<i class="material-icons">arrow_upward</i>これより前の会話
|
|
||||||
</div>
|
|
||||||
<div class="collapsible-body toot-reset" id="toot-reply">
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<div class="collapsible-header" id="activator">
|
|
||||||
<i class="material-icons">more_horiz</i>対象のトゥート
|
|
||||||
</div>
|
|
||||||
<div class="collapsible-body" >
|
|
||||||
<div class="toot-reset" id="toot-this"></div>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<div class="collapsible-header">
|
|
||||||
<i class="material-icons">arrow_downward</i>これより後の会話
|
|
||||||
</div>
|
|
||||||
<div class="collapsible-body toot-reset" id="toot-after">
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<div class="collapsible-header">
|
|
||||||
<i class="material-icons">people_outline</i>これより前のLocal TL(エアリプソース確認)
|
|
||||||
</div>
|
|
||||||
<div class="collapsible-body toot-reset" id="toot-before">
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<div class="collapsible-header">
|
|
||||||
<i class="material-icons">person_outline</i>これより前のユーザーTL(BTソース確認)
|
|
||||||
</div>
|
|
||||||
<div class="collapsible-body toot-reset" id="user-before">
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<div class="collapsible-header">
|
|
||||||
<i class="material-icons">star</i>このトゥートをお気に入りに登録した人
|
|
||||||
</div>
|
|
||||||
<div class="collapsible-body toot-reset" id="toot-fav">
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<div class="collapsible-header">
|
|
||||||
<i class="text-darken-3 fa fa-retweet"></i>このトゥートをブーストした人
|
|
||||||
</div>
|
|
||||||
<div class="collapsible-body toot-reset" id="toot-rt">
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
他のアカウントを使用(<i class="fa fa-retweet"></i>/<i class="fa fa-star"></i>の解除はできません)<br>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col s4">
|
|
||||||
<select id="status-acct-sel" class="acct-sel"></select>
|
|
||||||
</div>
|
|
||||||
<div class="col s2">
|
|
||||||
<button class="dropdown-button btn waves-effect" style="width:100%;" onclick="staEx('reply')"><i class="fa fa-share left"></i>返信</button>
|
|
||||||
</div>
|
|
||||||
<div class="col s2">
|
|
||||||
<button class="dropdown-button btn waves-effect indigo" style="width:100%;" onclick="staEx('rt')"><i class="fa fa-retweet left"></i>ブースト</button>
|
|
||||||
</div>
|
|
||||||
<div class="col s3">
|
|
||||||
<button class="dropdown-button btn waves-effect orange" style="width:100%;" onclick="staEx('fav')"><i class="fa fa-star left"></i>お気に入り登録</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div id="toot-tools">
|
|
||||||
</div>
|
|
||||||
<div id="toot-after">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<a href="#!" class="waves-effect waves-green btn-flat" onclick="brws()">ブラウザで開く</a>
|
|
||||||
<a href="#!" class="waves-effect waves-green btn-flat" onclick="shot()">スクリーンショット</a>
|
|
||||||
<a href="#!" class="waves-effect waves-green btn-flat" onclick="cbCopy()">URLをコピー</a>
|
|
||||||
<a href="#!" class="waves-effect waves-green btn-flat" onclick="cbCopy('emb')">埋め込む</a>
|
|
||||||
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat">他のアカウントを使用</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- Modal Structure Userdata -->
|
|
||||||
<div id="his-data" class="modal bottom-sheet modal-fixed-footer" style="max-height:750px; height:90%;">
|
|
||||||
<div id="his-data-content" class="modal-content" style="padding-bottom: 0;overflow-y:hidden;">
|
|
||||||
<div id="his-data-show">
|
|
||||||
<div class="his-float" id="his-float-data">
|
|
||||||
<div id="his-basic-prof">
|
|
||||||
<img src="./img/loading.svg" id="his-prof">
|
|
||||||
<span id="his-name">Loading...</span><span class="gray" id="his-bot"></span>
|
|
||||||
<br>@
|
|
||||||
<span id="his-acct"></span><br>
|
|
||||||
<span class="gray" id="his-relation"></span>
|
|
||||||
<br>
|
|
||||||
<span class="cbadge">
|
|
||||||
<span id="his-sta"></span>トゥート
|
|
||||||
</span>
|
|
||||||
<span class="cbadge">フォロー:
|
|
||||||
<span id="his-follow"></span>
|
|
||||||
</span>
|
|
||||||
<span class="cbadge">フォロワー:
|
|
||||||
<span id="his-follower"></span>
|
|
||||||
</span><br>
|
|
||||||
<span class="cbadge" style="max-width:150px; width:150px; ">Since:
|
|
||||||
<span id="his-since"></span>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<div id="his-des"></div><br>
|
|
||||||
<div id="his-plus-action">
|
|
||||||
<a href="#!" class="btn waves-effect waves-effect blue-grey btn-flat" id="his-emp-btn" onclick="empUser()">ユーザー強調</a>
|
|
||||||
<a href="#!" class="btn waves-effect waves-effect blue-grey btn-flat" id="his-end-btn" onclick="pinUser()">紹介する</a><br>
|
|
||||||
<a href="#!" class="btn waves-effect waves-effect blue-grey btn-flat" id="his-openin" onclick="profbrws()">ブラウザで開く</a><br>
|
|
||||||
</div><br>
|
|
||||||
<div id="his-matching-list">
|
|
||||||
似ているユーザーを取得できます。<br>
|
|
||||||
Powered by <a href="https://vinayaka.distsn.org/" target="_blank">Mastodon User Matching</a><br>
|
|
||||||
<div id="his-matching-list-contents" class="cont-series"></div>
|
|
||||||
<button class="btn waves-effect " onclick="showMat()" style="width:100%;">取得</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="his-float" id="his-float-timeline">
|
|
||||||
<div id="my-data-nav">
|
|
||||||
<ul class="custom-tabs transparent">
|
|
||||||
<li class="custom-tab col my-data-width active-back column-first">
|
|
||||||
<a go="#his-tl" title="タイムライン"><i class="material-icons">timeline</i></a>
|
|
||||||
</li>
|
|
||||||
<li class="custom-tab col my-data-width">
|
|
||||||
<a go="#his-follow-list" title="フォロー"><i class="material-icons">people</i>→</a>
|
|
||||||
</li>
|
|
||||||
<li class="custom-tab col my-data-width">
|
|
||||||
<a go="#his-follower-list" title="フォロワー"><i class="material-icons">people</i>←</a>
|
|
||||||
</li>
|
|
||||||
<li class="custom-tab col my-data-width only-his-data">
|
|
||||||
<a go="#his-action" title="他のアカウントで操作"><i class="material-icons">account_box</i></a>
|
|
||||||
</li>
|
|
||||||
<li class="custom-tab col my-data-width only-his-data">
|
|
||||||
<a go="#his-list" title="リスト"><i class="material-icons">list</i></a>
|
|
||||||
</li>
|
|
||||||
<li class="custom-tab col my-data-width only-my-data">
|
|
||||||
<a go="#his-fav-list" title="お気に入り登録"><i class="material-icons">star</i></a>
|
|
||||||
</li>
|
|
||||||
<li class="custom-tab col my-data-width only-my-data">
|
|
||||||
<a go="#his-blocking-list" title="ブロック"><i class="material-icons">block</i></a>
|
|
||||||
</li>
|
|
||||||
<li class="custom-tab col my-data-width only-my-data">
|
|
||||||
<a go="#his-blocking-list" title="ブロック"><i class="material-icons">voice_over_off</i></a>
|
|
||||||
</li>
|
|
||||||
<li class="custom-tab col my-data-width only-my-data">
|
|
||||||
<a go="#his-domain-list" title="ドメインブロック"><i class="material-icons">language</i><i class="material-icons">block</i></a>
|
|
||||||
</li>
|
|
||||||
<li class="custom-tab col my-data-width only-my-data">
|
|
||||||
<a go="#his-prof-list" title="プロフィール編集"><i class="material-icons">create</i></a>
|
|
||||||
</li>
|
|
||||||
<li class="custom-tab col my-data-width only-my-data">
|
|
||||||
<a go="#his-request-list" title="フォローリクエスト"><i class="material-icons">how_to_reg</i></a>
|
|
||||||
</li>
|
|
||||||
<li class="custom-tab col my-data-width only-my-data">
|
|
||||||
<a go="#his-follow-recom-list" title="おすすめ"><i class="material-icons">recent_actors</i></a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div id="his-tl" class="tab-content">
|
|
||||||
<div id="his-tl-contents" class="cont-series">
|
|
||||||
</div>
|
|
||||||
<button class="btn waves-effect " style="width:100%; padding:0;" onclick="utl('--now','more')">もっと</button>
|
|
||||||
</div>
|
|
||||||
<div id="his-follow-list" class="tab-content">
|
|
||||||
<div id="his-follow-list-contents" class="cont-series">
|
|
||||||
</div>
|
|
||||||
<button class="btn waves-effect " style="width:100%; padding:0;" onclick="flw('--now','more')">もっと</button>
|
|
||||||
</div>
|
|
||||||
<div id="his-follower-list" class="tab-content">
|
|
||||||
<div id="his-follower-list-contents" class="cont-series">
|
|
||||||
</div>
|
|
||||||
<button class="btn waves-effect " style="width:100%; padding:0;" onclick="fer('--now','more')">もっと</button>
|
|
||||||
</div>
|
|
||||||
<div id="his-action" class="tab-content">
|
|
||||||
他のアカウントを使用するフォロー((解除はできません。))<br>
|
|
||||||
<div style="max-width:500px;"><select id="user-acct-sel" class="acct-sel"></select></div>で
|
|
||||||
<a href="#!" class="waves-effect btn" onclick="follow('selector','true')">フォロー</a><br>
|
|
||||||
または<br>
|
|
||||||
<a href="#!" class="waves-effect btn" onclick="udgEx('selector', 'selector')">プロフィールを表示</a><br>
|
|
||||||
</div>
|
|
||||||
<div id="his-list" class="tab-content">
|
|
||||||
<div id="his-lists-a">リストに追加するためにはフォローが必要です。</div>
|
|
||||||
|
|
||||||
<div id="his-lists-b"></div>
|
|
||||||
</div>
|
|
||||||
<div id="his-fav-list" class="tab-content">
|
|
||||||
<div id="his-fav-list-contents" class="cont-series">
|
|
||||||
</div>
|
|
||||||
<button class="btn waves-effect" style="width:100%; padding:0;" onclick="showFav('more')">もっと</button>
|
|
||||||
</div>
|
|
||||||
<div id="his-blocking-list" class="tab-content">
|
|
||||||
<div id="his-blocking-list-contents"class="cont-series" >
|
|
||||||
</div>
|
|
||||||
<button class="btn waves-effect " style="width:100%; padding:0;" onclick="showBlo('more')">もっと</button>
|
|
||||||
</div>
|
|
||||||
<div id="his-muting-list" class="tab-content">
|
|
||||||
<div id="his-muting-list-contents" class="cont-series">
|
|
||||||
</div>
|
|
||||||
<button class="btn waves-effect " style="width:100%; padding:0;" onclick="showMut('more')">もっと</button>
|
|
||||||
</div>
|
|
||||||
<div id="his-domain-list" class="tab-content">
|
|
||||||
<div id="his-domain-list-contents" class="cont-series">
|
|
||||||
</div>
|
|
||||||
<button class="btn waves-effect " style="width:100%; padding:0;" onclick="showDom('more')">もっと</button>ブロックするドメイン
|
|
||||||
<br>
|
|
||||||
<input type="text" placeholder="example.com" id="domainblock">
|
|
||||||
<button class="btn waves-effect" onclick="addDomainblock()">追加</button>
|
|
||||||
<br>
|
|
||||||
</div>
|
|
||||||
<div id="his-prof-list" class="tab-content">名前
|
|
||||||
<br>
|
|
||||||
<input type="text" placeholder="名前" id="his-name-val" style="max-width:250px;">
|
|
||||||
<br>自己紹介
|
|
||||||
<br>
|
|
||||||
<div class="input-field col s12">
|
|
||||||
<textarea placeholder="自己紹介" id="his-des-val" class="materialize-textarea"></textarea>
|
|
||||||
<label for="his-des-val">自己紹介</label>
|
|
||||||
</div>
|
|
||||||
<br>アバターを変更:
|
|
||||||
<span id="prof-change">
|
|
||||||
<input type="file" onchange="imgChange(this,'avatar')">
|
|
||||||
</span>
|
|
||||||
<br>ヘッダーを変更:
|
|
||||||
<span id="header-change">
|
|
||||||
<input type="file" onchange="imgChange(this,'header')">
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<div id="his-request-list" class="tab-content">
|
|
||||||
<div id="his-request-list-contents" class="cont-series">
|
|
||||||
</div>
|
|
||||||
<button class="btn waves-effect " style="width:100%; padding:0;" onclick="showReq('more')">もっと</button>
|
|
||||||
</div>
|
|
||||||
<div id="his-follow-recom-list" class="tab-content">
|
|
||||||
<div id="his-follow-recom-contents" class="cont-series">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<button class="modal-action waves-effect waves-green btn-flat" id="his-history-btn" onclick="historyShow()">一つ前のユーザーデータ</button>
|
|
||||||
<a href="#!" class="modal-action waves-effect waves-green btn-flat" id="his-follow-btn" onclick="follow()">フォロー</a>
|
|
||||||
<a href="#!" class="modal-action waves-effect waves-green btn-flat" id="his-mute-btn" onclick="mute()">ミュート</a>
|
|
||||||
<a href="#!" class="modal-action waves-effect waves-green btn-flat" id="his-block-btn" onclick="block()">ブロック</a>
|
|
||||||
<a href="#!" class="modal-action waves-effect waves-green btn-flat" onclick="hisclose()">Close</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- Modal Structure Image-->
|
|
||||||
<div id="imagemodal" class="modal modal-fixed-footer" style="min-width:550px">
|
|
||||||
<div class="modal-content">
|
|
||||||
<div id="imagewrap">
|
|
||||||
<img src="" id="imgmodal">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<br>
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
DL:<span id="imgprog"></span>%
|
|
||||||
<a class="waves-effect white-text" onclick="zoom(2)">
|
|
||||||
<i class="material-icons">zoom_in</i>
|
|
||||||
</a>
|
|
||||||
<a class="waves-effect white-text" onclick="zoom(0.5)">
|
|
||||||
<i class="material-icons">zoom_out</i>
|
|
||||||
</a>
|
|
||||||
<button class="btn waves-effect purple" onclick="dlImg()">
|
|
||||||
<i class="material-icons">file_download</i>
|
|
||||||
</button>
|
|
||||||
<button class="btn waves-effect brown" onclick="detFromImg()">対象のトゥート</button>
|
|
||||||
<button class="btn waves-effect orange" onclick="imgCont('prev')" id="image-prev">
|
|
||||||
<i class="material-icons">keyboard_arrow_left</i>
|
|
||||||
</button>
|
|
||||||
<button class="btn waves-effect orange" onclick="imgCont('next')" id="image-next">
|
|
||||||
<i class="material-icons">keyboard_arrow_right</i>
|
|
||||||
</button>
|
|
||||||
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat">
|
|
||||||
<i class="material-icons">close</i>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- Modal Structure Video-->
|
|
||||||
<div id="videomodal" class="modal modal-fixed-footer">
|
|
||||||
<div class="modal-content">
|
|
||||||
<video src="" id="video" style="max-width:100%; max-height:100%;" controls >
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat">Close</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- Modal Structure Release Note-->
|
|
||||||
<div id="releasenote" class="modal modal-fixed-footer">
|
|
||||||
<div class="modal-content">
|
|
||||||
<h3>TheDesk</h3>
|
|
||||||
<a href="https://thedesk.top" target="_blank">HP</a><br>
|
|
||||||
<a href="https://github.com/cutls/TheDesk" target="_blank">GitHub</a><br>
|
|
||||||
<br>
|
|
||||||
<div id="release-Akane_16-0-11" style="display:none">
|
|
||||||
<a href="https://code.cutls.com/thedesk-log/" target="_blank">開発の経緯</a><br>
|
|
||||||
<a href="https://ja.mstdn.wiki/TheDesk" target="_blank">機能一覧</a><br>
|
|
||||||
Entyでは支援者様限定で様々なTheDeskに関する記事をご覧いただけます。
|
|
||||||
<h5>Release Note Akane (16.0.11)</h5>
|
|
||||||
16.0.11<br>
|
|
||||||
<ul>
|
|
||||||
<li>様々なバグを修正</li>
|
|
||||||
</ul>
|
|
||||||
16.0.10<br>
|
|
||||||
<ul>
|
|
||||||
<li>自動CWに関する不具合</li>
|
|
||||||
<li>アップデートに関する不具合</li>
|
|
||||||
<li>MisskeyのURLコピーに関する不具合</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<br><br>
|
|
||||||
<h3>ご支援ください。</h3>
|
|
||||||
TheDeskは営利目的ではないため、有料機能や広告は一切ありません。<br>皆様のあたたかいご支援のもとで製作されています。<br>
|
|
||||||
<a class="btn-share btn waves-effect waves-light purple lighten-2" href="https://enty.jp/Cutls" target="_blank">
|
|
||||||
Entyで支援
|
|
||||||
</a>
|
|
||||||
<a class="btn-share btn waves-effect waves-light red lighten-2" href="https://osushi.love/Cutls_P" target="_blank">
|
|
||||||
Osushi.loveで寿司を贈る
|
|
||||||
</a>
|
|
||||||
<a class="btn-share btn waves-effect waves-light blue" href="https://www.amazon.co.jp/registry/wishlist/2TV35ZHHJPDSB" target="_blank">
|
|
||||||
Amazonほしいものリスト
|
|
||||||
</a>
|
|
||||||
<br>
|
|
||||||
<a href="mailto:mstdn@thedesk.top" target="_blank">mstdn@thedesk.top</a>にAmazonギフトカードを送る<br>
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat">Close</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!--PiP-->
|
|
||||||
<div id="pip" class="hide pip-bottom pip-left">
|
|
||||||
<i class="material-icons pip-horiz pointer" onclick="pipHoriz()">chevron_right</i>
|
|
||||||
<i class="material-icons pip-vert pointer" onclick="pipVert()">expand_less</i>
|
|
||||||
<i class="material-icons pointer" onclick="endPip()">close</i>
|
|
||||||
<div id="pip-content">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!--カラム追加-->
|
|
||||||
<div id="add-box" class="hide z-depth-4 notf-box">
|
|
||||||
<div class="input-field"><span data-trans="your_acct">アカウントを選択</span>
|
|
||||||
<br>
|
|
||||||
<select id="add-acct-sel" class="acct-sel" style="color:black" onchange="addselCk()"></select>
|
|
||||||
<label></label>
|
|
||||||
</div>
|
|
||||||
<div class="input-field">
|
|
||||||
<div id="auth">
|
|
||||||
<select id="type-sel" style="color:black">
|
|
||||||
<option value="local" data-trans="local">ローカル</option>
|
|
||||||
<option value="local-media" data-trans="local-media">ローカル(メディア)</option>
|
|
||||||
<option value="home" data-trans="home">ホーム</option>
|
|
||||||
<option value="pub" data-trans="public">連合</option>
|
|
||||||
<option value="pub-media" data-trans="public-media">連合(メディア)</option>
|
|
||||||
<option value="dm" data-trans="dm">ダイレクトメッセージ</option>
|
|
||||||
<option value="mix" data-trans="integrated">統合(ローカルとホーム)</option>
|
|
||||||
<option value="plus" data-trans="plus">統合(ローカルとブースト・リプライ)</option>
|
|
||||||
<option value="notf" data-trans="notification">通知</option>
|
|
||||||
</select>
|
|
||||||
<label data-trans="show_tl">表示するタイムライン</label>
|
|
||||||
</div>
|
|
||||||
<div id="noauth" class="hide">表示するタイムライン
|
|
||||||
<input id="noauth-url" type="text" class="validate" style="width:calc( 70% - 40px);" placeholder="e.g:mstdn.jp">
|
|
||||||
</div>
|
|
||||||
<div id="webview-add" class="hide">モバイル版のTwitterを表示します。キーボード入力に難があります(ペースト不能だったり、キーボードショートカットが動いたり、ほとんどのキーが動かなかったり…)。つまりログイン自体が鬼門です。当然開発者は止めませんが、そのような忍耐があるのならばTwitterをメインに使うことをおすすめします。
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<button class="btn waves-effect blue " style="width:calc( 100% - 10px);" onclick="addColumn()" data-trans-i="add">
|
|
||||||
<i class="material-icons left">add</i>追加
|
|
||||||
</button>
|
|
||||||
<br>
|
|
||||||
<br>
|
|
||||||
</div>
|
|
||||||
<!--検索-->
|
|
||||||
<div id="src-box" class="hide notf-box z-depth-4" style="width:500px">
|
|
||||||
<div class="input-field">
|
|
||||||
<select id="src-acct-sel" class="acct-sel" onchange="trend()"></select>
|
|
||||||
</div><div class="input-field">
|
|
||||||
<i class="material-icons prefix">search</i>
|
|
||||||
<input id="src" type="text" class="validate" style="width:calc( 60% - 40px);">
|
|
||||||
<label for="src" data-trans="src">検索</label>
|
|
||||||
<button class="btn waves-effect indigo" style="width:calc( 40% - 40px);" onclick="src()" data-trans-i="src">
|
|
||||||
<i class="material-icons left">search</i>検索
|
|
||||||
</button>
|
|
||||||
<br>
|
|
||||||
<br>
|
|
||||||
</div>
|
|
||||||
<div id="search">
|
|
||||||
<div id="src-contents">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!--並べ替え-->
|
|
||||||
<div id="sort-box" class="hide">
|
|
||||||
<ul id="sort"></ul>
|
|
||||||
<div>
|
|
||||||
<button onclick="sort()" class="btn waves-effect nex" style="width:100%; max-width:300px;" data-trans-i="sort">
|
|
||||||
<i class="material-icons left">sort</i>並べ替え設定
|
|
||||||
</button>
|
|
||||||
<button onclick="sortToggle()" class="btn waves-effect nex" style="width:100%; max-width:300px;" data-trans-i="close">
|
|
||||||
<i class="material-icons left">close</i>Close
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!--リスト-->
|
|
||||||
<div id="list-box" class="hide notf-box z-depth-4">
|
|
||||||
<div class="input-field" style="width:calc( 100% - 100px);float:left">
|
|
||||||
<select id="list-acct-sel" class="acct-sel"></select>
|
|
||||||
<label>アカウントを選択</label>
|
|
||||||
</div>
|
|
||||||
<div style="float:left; padding-top:8px; padding-bottom:28px;">
|
|
||||||
<button class="btn waves-effect indigo" style="width:80px;" onclick="list()" data-trans-i="lists">
|
|
||||||
一覧
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<br><br>
|
|
||||||
<div id="lists"></div>
|
|
||||||
<div id="lists-user"></div>
|
|
||||||
<input type="text" style="width:150px" id="list-add" placeholder="名前">
|
|
||||||
<button class="btn waves-effect" style="width:120px;" onclick="makeNewList()">新規作成</button>
|
|
||||||
</div>
|
|
||||||
<!--フィルター-->
|
|
||||||
<div id="filter-box" class="hide notf-box z-depth-4">
|
|
||||||
<div class="input-field" style="width:calc( 100% - 100px);float:left">
|
|
||||||
<select id="filter-acct-sel" class="acct-sel"></select>
|
|
||||||
<label>アカウントを選択</label>
|
|
||||||
</div>
|
|
||||||
<div style="float:left; padding-top:8px; padding-bottom:28px;">
|
|
||||||
<button class="btn waves-effect indigo" style="width:80px;" onclick="filter()" data-trans-i="filters">
|
|
||||||
一覧
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div id="filtered-words"></div>
|
|
||||||
<input type="hidden" id="filter-edit-id">
|
|
||||||
<input type="text" style="width:150px" id="filter-add-word" placeholder="フィルターワード"><br>
|
|
||||||
適応範囲<br>
|
|
||||||
<input type="checkbox" class="filled-in" id="home_filter" value="home" />
|
|
||||||
<label for="home_filter">ホーム</label>
|
|
||||||
<input type="checkbox" class="filled-in" id="local_filter" value="public" />
|
|
||||||
<label for="local_filter">ローカル</label>
|
|
||||||
<input type="checkbox" class="filled-in" id="notf_filter" value="notifications" />
|
|
||||||
<label for="notf_filter">通知</label>
|
|
||||||
<input type="checkbox" class="filled-in" id="conv_filter" value="thread" />
|
|
||||||
<label for="conv_filter">会話</label><br>
|
|
||||||
オプション<br>
|
|
||||||
<input type="checkbox" class="filled-in" id="wholeword_filter" value="1" />
|
|
||||||
<label for="wholeword_filter">単語マッチ</label><br>
|
|
||||||
<span class="sml">非ラテン系の文字列では「単語マッチ」は推奨されません。</span><br>
|
|
||||||
<input type="checkbox" class="filled-in" id="except_filter" value="1" />
|
|
||||||
<label for="except_filter">除外</label><br>
|
|
||||||
<span class="sml">「除外」時マッチしたトゥートは非可逆的に除外され、削除後も閲覧できません。</span><br>
|
|
||||||
有効期限(あと)<span class="sml">未指定(または0分)で「無制限」になります。<b>仕様上数値の正確性を保証できません。</b></span><br><br>
|
|
||||||
<input type="text" style="width:50px" id="days_filter" placeholder="d" value="0">日
|
|
||||||
<input type="text" style="width:50px" id="hours_filter" placeholder="h" value="0">時間
|
|
||||||
<input type="text" style="width:50px" id="mins_filter" placeholder="m" value="0">分
|
|
||||||
<button class="btn waves-effect" style="width:120px;" onclick="makeNewFilter()" id="add-filter-btn">追加</button><br>
|
|
||||||
<span class="sml">Integrated TL/Plus TLは、公開/ホームのフィルターワードが合算されて適応されます。どちらか一方の指定でも非表示になります。</span>
|
|
||||||
</div>
|
|
||||||
<div id="main">
|
|
||||||
<!--TLのTL-->
|
|
||||||
<div id="timeline-container">
|
|
||||||
<h3>Welcome to TheDesk</h3><br><a href="acct.html">アカウントを追加</a>するか下の<i class="material-icons">add</i>ボタンよりカラムを追加してください。
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!--bottom-->
|
|
||||||
<div id="bottom">
|
|
||||||
<div class="leftside">
|
|
||||||
<div id="dambox">
|
|
||||||
<input type="text" id="posttgl" placeholder="トゥート" style="height:2rem">
|
|
||||||
</div>
|
|
||||||
<div class="leftside" id="group">
|
|
||||||
<div class="btnsgroup"><span class="grouptitle">Columns:</span>
|
|
||||||
<a onclick="addToggle()" class="nex waves-effect" data-trans-i="add" id="add-tgl">
|
|
||||||
<i class="material-icons nex" title="カラム追加" data-trans-title="column_add">add</i>
|
|
||||||
</a>
|
|
||||||
<a onclick="sortToggle()" class="nex waves-effect">
|
|
||||||
<i class="material-icons nex big-icon" title="カラム一覧/並べ替え" data-trans-title="sort">sort</i>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<div class="btnsgroup"><span class="grouptitle">Accounts:</span>
|
|
||||||
<a href="acct.html" class="nex waves-effect">
|
|
||||||
<i class="material-icons nex big-icon" title="アカウントマネージャー(Ctrl+Shift+M)" data-trans-title="manager">account_circle</i>
|
|
||||||
</a>
|
|
||||||
<a onclick="srcToggle()" class="nex waves-effect" id="src-tgl">
|
|
||||||
<i class="material-icons" title="検索" data-trans-title="src">search</i>
|
|
||||||
</a>
|
|
||||||
<a onclick="listToggle()" class="nex waves-effect" id="list-tgl">
|
|
||||||
<i class="material-icons" title="リスト" data-trans-title="list">view_headline</i>
|
|
||||||
</a>
|
|
||||||
<a onclick="filterToggle()" class="nex waves-effect" id="filter-tgl">
|
|
||||||
<i class="material-icons" title="フィルター" data-trans-title="filter">filter_list</i>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<div class="btnsgroup"><span class="grouptitle">Preferences:</span>
|
|
||||||
<a href="setting.html" class="nex waves-effect">
|
|
||||||
<i class="material-icons nex" title="設定(Ctrl+Shift+S)" data-trans-title="setting">settings</i>
|
|
||||||
</a>
|
|
||||||
<a href="index.html" class="nex mize waves-effect">
|
|
||||||
<i class="material-icons nex" title="スーパーリロード(F5/⌘+R)" data-trans-title="reload">refresh</i>
|
|
||||||
</a>
|
|
||||||
<a onclick="nano()" class="nex waves-effect">
|
|
||||||
<i class="material-icons" title="最小のマストドン。TheDesk Nano" data-trans-title="nano_desp">remove_from_queue</i>
|
|
||||||
</a>
|
|
||||||
<a onclick="window.open('https://astarte.thedesk.top');" class="setting nex waves-effect" target="_blank" id="ranking-btn" style="display:none;">
|
|
||||||
<i class="material-icons nex" title="アスタルテランキング">timeline</i>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<div id="tips-menu">
|
|
||||||
<div class="btnsgroup" style="height:34px"><span class="grouptitle">Tips:</span>
|
|
||||||
<a onclick="tips('ver')" class="nex waves-effect">
|
|
||||||
<i class="material-icons nex" title="バージョン" data-trans-title="ver">info</i>
|
|
||||||
</a>
|
|
||||||
<a onclick="tips('clock')" class="nex waves-effect">
|
|
||||||
<i class="material-icons nex" title="時計" data-trans-title="clock">access_time</i>
|
|
||||||
</a>
|
|
||||||
<a onclick="tips('memory')" class="nex waves-effect">
|
|
||||||
<i class="material-icons nex" title="システムメモリ容量" data-trans-title="memory">memory</i>
|
|
||||||
</a>
|
|
||||||
<a onclick="tips('trend')" class="nex waves-effect imasonly" style="display:none;">
|
|
||||||
<i class="material-icons nex" title="アイマストドントレンド" data-trans-title="trendtip">whatshot</i>
|
|
||||||
</a>
|
|
||||||
<a onclick="tips('spotify')" class="nex waves-effect">
|
|
||||||
<i class="fa fa-spotify nex" title="Spotify" data-trans-title="spotifytips"></i>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div id="tips" class="hide">
|
|
||||||
<a onclick="tipsToggle()" class="nex waves-effect" style="float:left">
|
|
||||||
<i class="material-icons nex" title="Tips変更" data-trans-title="tips">bubble_chart</i>
|
|
||||||
</a>
|
|
||||||
<div id="tips-text" style="float:left; width:300px;"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!--左下メッセージ-->
|
|
||||||
<div id="message">
|
|
||||||
</div>
|
|
||||||
<!--Radio Happy(Yui) Taku Inoue-->
|
|
||||||
<audio src="" id="radio"></audio>
|
|
||||||
<!--JS-->
|
|
||||||
<script type="text/javascript" src="./js/ui/tips.js"></script>
|
|
||||||
<script src="https://twemoji.maxcdn.com/2/twemoji.min.js?2.7"></script>
|
|
||||||
<script type="text/javascript" src="./js/common/about.js"></script>
|
|
||||||
<script type="text/javascript" src="./js/tl/parse.js"></script>
|
|
||||||
<script type="text/javascript" src="./js/tl/misskeyparse.js"></script>
|
|
||||||
<script type="text/javascript" src="./js/ui/scroll.js"></script>
|
|
||||||
<script type="text/javascript" src="./js/tl/tl.js"></script>
|
|
||||||
<script type="text/javascript" src="./js/tl/card.js"></script>
|
|
||||||
<script type="text/javascript" src="./js/tl/date.js"></script>
|
|
||||||
<script type="text/javascript" src="./js/tl/notification.js"></script>
|
|
||||||
<script type="text/javascript" src="./js/tl/datails.js"></script>
|
|
||||||
<script type="text/javascript" src="./js/tl/mix.js"></script>
|
|
||||||
<script type="text/javascript" src="./js/tl/src.js"></script>
|
|
||||||
<script type="text/javascript" src="./js/tl/filter.js"></script>
|
|
||||||
<script type="text/javascript" src="./js/tl/tag.js"></script>
|
|
||||||
<script type="text/javascript" src="./js/tl/list.js"></script>
|
|
||||||
<script type="text/javascript" src="./js/tl/speech.js"></script>
|
|
||||||
<script type="text/javascript" src="./js/ui/post-box.js"></script>
|
|
||||||
<script type="text/javascript" src="./js/ui/layout.js"></script>
|
|
||||||
<script type="text/javascript" src="./js/login/instance.js"></script>
|
|
||||||
<script type="text/javascript" src="./js/login/login.js"></script>
|
|
||||||
<script type="text/javascript" src="./js/ui/img.js"></script>
|
|
||||||
<script type="text/javascript" src="./js/ui/theme.js"></script>
|
|
||||||
<script type="text/javascript" src="./js/ui/pip.js"></script>
|
|
||||||
<script type="text/javascript" src="./js/ui/sort.js"></script>
|
|
||||||
<script type="text/javascript" src="./js/ui/spotify.js"></script>
|
|
||||||
<script type="text/javascript" src="./js/post/post.js"></script>
|
|
||||||
<script type="text/javascript" src="./js/post/use-txtbox.js"></script>
|
|
||||||
<script type="text/javascript" src="./js/post/secure.js"></script>
|
|
||||||
<script type="text/javascript" src="./js/post/img.js"></script>
|
|
||||||
<script type="text/javascript" src="./js/post/status.js"></script>
|
|
||||||
<script type="text/javascript" src="./js/post/misskeystatus.js"></script>
|
|
||||||
<script type="text/javascript" src="./js/post/emoji.js"></script>
|
|
||||||
<script type="text/javascript" src="./js/post/suggest.js"></script>
|
|
||||||
<script type="text/javascript" src="./js/post/bb-md.js"></script>
|
|
||||||
<script type="text/javascript" src="./js/userdata/showOnTL.js"></script>
|
|
||||||
<script type="text/javascript" src="./js/userdata/his-data.js"></script>
|
|
||||||
<script type="text/javascript" src="./js/userdata/prof-edit.js"></script>
|
|
||||||
<script type="text/javascript" src="./js/emoji/emojipack.js"></script>
|
|
||||||
<script type="text/javascript" src="./js/emoji/default-emoji.js"></script>
|
|
||||||
<script type="text/javascript" src="./js/platform/end.js"></script>
|
|
|
@ -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.11)";
|
var ver="Akane (16.1.0)";
|
||||||
//betaを入れるとバージョンチェックしない
|
//betaを入れるとバージョンチェックしない
|
||||||
//GitHubに上げるときはindex.htmlをちゃんとする。(index.start.html)
|
//GitHubに上げるときはindex.htmlをちゃんとする。(index.start.html)
|
||||||
//var ver="beta";
|
//var ver="beta";
|
||||||
|
@ -339,7 +339,7 @@ var lang="{{lang}}";
|
||||||
<div id="his-des"></div><br>
|
<div id="his-des"></div><br>
|
||||||
<div id="his-plus-action">
|
<div id="his-plus-action">
|
||||||
<a href="#!" class="btn waves-effect waves-effect blue-grey btn-flat" id="his-emp-btn" onclick="empUser()">{{empUser}}</a>
|
<a href="#!" class="btn waves-effect waves-effect blue-grey btn-flat" id="his-emp-btn" onclick="empUser()">{{empUser}}</a>
|
||||||
<a href="#!" class="btn waves-effect waves-effect blue-grey btn-flat" id="his-end-btn" onclick="pinUser()">{{endorse}}</a><br>
|
<a href="#!" class="btn waves-effect waves-effect blue-grey btn-flat only-his-data" id="his-end-btn" onclick="pinUser()">{{endorse}}</a><br>
|
||||||
<a href="#!" class="btn waves-effect waves-effect blue-grey btn-flat" id="his-openin" onclick="profbrws()">{{openinbrowser}}</a><br>
|
<a href="#!" class="btn waves-effect waves-effect blue-grey btn-flat" id="his-openin" onclick="profbrws()">{{openinbrowser}}</a><br>
|
||||||
</div><br>
|
</div><br>
|
||||||
<div id="his-matching-list">
|
<div id="his-matching-list">
|
||||||
|
@ -697,12 +697,12 @@ var lang="{{lang}}";
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!--bottom-->
|
<!--bottom-->
|
||||||
<div id="bottom">
|
<div id="bottom" class="reverse">
|
||||||
<div class="leftside">
|
<div class="leftside reverse">
|
||||||
<div id="dambox">
|
<div id="dambox">
|
||||||
<input type="text" id="posttgl" placeholder="{{toot}}" style="height:2rem">
|
<input type="text" id="posttgl" placeholder="{{toot}}" style="height:2rem">
|
||||||
</div>
|
</div>
|
||||||
<div class="leftside" id="group">
|
<div class="leftside reverse" id="group">
|
||||||
<div class="btnsgroup"><span class="grouptitle">Columns:</span>
|
<div class="btnsgroup"><span class="grouptitle">Columns:</span>
|
||||||
<a onclick="addToggle()" class="nex waves-effect" data-trans-i="add" id="add-tgl">
|
<a onclick="addToggle()" class="nex waves-effect" data-trans-i="add" id="add-tgl">
|
||||||
<i class="material-icons nex" title="{{addColumn}}" data-trans-title="column_add">add</i>
|
<i class="material-icons nex" title="{{addColumn}}" data-trans-title="column_add">add</i>
|
||||||
|
@ -725,7 +725,10 @@ var lang="{{lang}}";
|
||||||
<i class="material-icons" title="{{filter}}" data-trans-title="filter">filter_list</i>
|
<i class="material-icons" title="{{filter}}" data-trans-title="filter">filter_list</i>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="btnsgroup"><span class="grouptitle">Preferences:</span>
|
<div class="btnsgroup"><span class="grouptitle">Preferences:</span>
|
||||||
|
<a onclick="bottomReverse()" class="nex waves-effect">
|
||||||
|
<i class="material-icons nex" title="{{reverse}}" data-trans-title="reverse">swap_horiz</i>
|
||||||
|
</a>
|
||||||
<a href="setting.html" class="nex waves-effect">
|
<a href="setting.html" class="nex waves-effect">
|
||||||
<i class="material-icons nex" title="{{setting}}(Ctrl+Shift+S)" data-trans-title="setting">settings</i>
|
<i class="material-icons nex" title="{{setting}}(Ctrl+Shift+S)" data-trans-title="setting">settings</i>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -4,19 +4,16 @@ $(function($) {
|
||||||
var hasFocus = $('input').is(':focus');
|
var hasFocus = $('input').is(':focus');
|
||||||
var hasFocus2 = $('textarea').is(':focus');
|
var hasFocus2 = $('textarea').is(':focus');
|
||||||
if(document.getElementById("webview")){
|
if(document.getElementById("webview")){
|
||||||
var webview=document.getElementById("webview");
|
if($("#webviewsel:checked").val()){
|
||||||
if(webview.getURL()=="https://mobile.twitter.com/compose/tweet" || webview.getURL()=="https://mobile.twitter.com"){
|
var wv=false;
|
||||||
if (e.keyCode === 8) {
|
}else{
|
||||||
webview.sendInputEvent({
|
var wv=true;
|
||||||
type: "keyDown",
|
|
||||||
keyCode: '\u0008'
|
|
||||||
});
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
}else{
|
||||||
|
var wv=true;
|
||||||
}
|
}
|
||||||
//Ctrl+Enter:投稿
|
//Ctrl+Enter:投稿
|
||||||
if (event.metaKey || event.ctrlKey) {
|
if (event.metaKey || event.ctrlKey && wv) {
|
||||||
if (e.keyCode === 13) {
|
if (e.keyCode === 13) {
|
||||||
post();
|
post();
|
||||||
return false;
|
return false;
|
||||||
|
@ -37,17 +34,17 @@ $(function($) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//Esc:消す
|
//Esc:消す
|
||||||
if (e.keyCode === 27) {
|
if (e.keyCode === 27 && wv) {
|
||||||
hide();
|
hide();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
//F5リロード
|
//F5リロード
|
||||||
if (e.keyCode === 116) {
|
if (e.keyCode === 116 && wv) {
|
||||||
location.href = "index.html";
|
location.href = "index.html";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
//Ctrl+R:ランキング
|
//Ctrl+R:ランキング
|
||||||
if (event.metaKey || event.ctrlKey) {
|
if ((event.metaKey || event.ctrlKey) && wv) {
|
||||||
if (e.keyCode === 82) {
|
if (e.keyCode === 82) {
|
||||||
if(localStorage.getItem("kirishima")){
|
if(localStorage.getItem("kirishima")){
|
||||||
window.open("https://astarte.thedesk.top");
|
window.open("https://astarte.thedesk.top");
|
||||||
|
@ -55,14 +52,14 @@ $(function($) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//Ctrl+Sift+C:全消し
|
//Ctrl+Sift+C:全消し
|
||||||
if ((event.metaKey || event.ctrlKey) && event.shiftKey) {
|
if (((event.metaKey || event.ctrlKey) && event.shiftKey )&& wv) {
|
||||||
if (e.keyCode === 67) {
|
if (e.keyCode === 67) {
|
||||||
clear();
|
clear();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//Ctrl+Sift+N:NowPlaying
|
//Ctrl+Sift+N:NowPlaying
|
||||||
if ((event.metaKey || event.ctrlKey) && event.shiftKey) {
|
if (((event.metaKey || event.ctrlKey) && event.shiftKey) && wv) {
|
||||||
if (e.keyCode === 78) {
|
if (e.keyCode === 78) {
|
||||||
show();
|
show();
|
||||||
nowplaying()
|
nowplaying()
|
||||||
|
@ -70,7 +67,10 @@ $(function($) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//input/textareaにフォーカスなし時
|
//input/textareaにフォーカスなし時
|
||||||
if (!hasFocus && !hasFocus2) {
|
if ((!hasFocus && !hasFocus2 ) && wv) {
|
||||||
|
if(!wv){
|
||||||
|
return true;
|
||||||
|
}
|
||||||
//Ctrl+V:いつもの
|
//Ctrl+V:いつもの
|
||||||
if (event.metaKey || event.ctrlKey) {
|
if (event.metaKey || event.ctrlKey) {
|
||||||
if (e.keyCode === 86) {
|
if (e.keyCode === 86) {
|
||||||
|
@ -139,7 +139,7 @@ $(function($) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//textareaフォーカス時
|
//textareaフォーカス時
|
||||||
if (hasFocus2) {
|
if (hasFocus2 && wv) {
|
||||||
if (event.metaKey || event.ctrlKey) {
|
if (event.metaKey || event.ctrlKey) {
|
||||||
//Ctrl+B:太字
|
//Ctrl+B:太字
|
||||||
if (e.keyCode === 66) {
|
if (e.keyCode === 66) {
|
||||||
|
@ -172,13 +172,13 @@ $(function($) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//イメージビューワー切り替え
|
//イメージビューワー切り替え
|
||||||
if (e.keyCode === 37) {
|
if (e.keyCode === 37 &&wv) {
|
||||||
if ($("#imagemodal").hasClass("open")) {
|
if ($("#imagemodal").hasClass("open")) {
|
||||||
imgCont('prev');
|
imgCont('prev');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (e.keyCode === 39) {
|
if (e.keyCode === 39 && wv) {
|
||||||
if ($("#imagemodal").hasClass("open")) {
|
if ($("#imagemodal").hasClass("open")) {
|
||||||
imgCont('next');
|
imgCont('next');
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -385,6 +385,10 @@ var lang_layout_dm={
|
||||||
"ja":"ダイレクトメッセージ",
|
"ja":"ダイレクトメッセージ",
|
||||||
"en":"Direct Message"
|
"en":"Direct Message"
|
||||||
}
|
}
|
||||||
|
var lang_layout_webviewmode={
|
||||||
|
"ja":"WebView優先",
|
||||||
|
"en":"Prefer WebView"
|
||||||
|
}
|
||||||
//ui/spotify.js
|
//ui/spotify.js
|
||||||
var lang_spotify_img={
|
var lang_spotify_img={
|
||||||
"ja":"アルバムアートワークを添付します。",
|
"ja":"アルバムアートワークを添付します。",
|
||||||
|
|
|
@ -134,8 +134,7 @@ function data(domain) {
|
||||||
$("#ins-user").text(json.stats.user_count);
|
$("#ins-user").text(json.stats.user_count);
|
||||||
$("#ins-ver").text(json.version);
|
$("#ins-ver").text(json.version);
|
||||||
$("#ins-prof").attr('src', json.thumbnail);
|
$("#ins-prof").attr('src', json.thumbnail);
|
||||||
$("#ins-admin").text(json.contact_account.username);
|
$("#ins-admin").text(escapeHTML(json.contact_account.display_name)+"("+json.contact_account.acct+")");
|
||||||
$("#ins-admin").text(json.contact_account.display_name+"("+json.contact_account.acct+")");
|
|
||||||
$("#ins-admin").attr("href","index.html?mode=user&code="+json.contact_account.username+"@"+domain);
|
$("#ins-admin").attr("href","index.html?mode=user&code="+json.contact_account.username+"@"+domain);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -61,7 +61,10 @@
|
||||||
const {
|
const {
|
||||||
shell
|
shell
|
||||||
} = require('electron');
|
} = require('electron');
|
||||||
|
if(~url.indexOf("thedeks.top")){
|
||||||
|
//alert("If you recieve this alert, let the developer(Cutls@kirishima.cloud) know it with a screenshot.");
|
||||||
|
url="https://thedesk.top";
|
||||||
|
}
|
||||||
shell.openExternal(url);
|
shell.openExternal(url);
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
@ -184,9 +187,10 @@ ipc.on('shownotf', function (event, args) {
|
||||||
})
|
})
|
||||||
function opendev(){
|
function opendev(){
|
||||||
var webview = document.getElementById("webview");
|
var webview = document.getElementById("webview");
|
||||||
//webview.openDevTools();
|
webview.openDevTools();
|
||||||
webview.sendInputEvent({
|
/*webview.sendInputEvent({
|
||||||
type: "keyDown",
|
type: "keyDown",
|
||||||
keyCode: '.'
|
keyCode: '2'
|
||||||
});
|
});
|
||||||
|
*/
|
||||||
}
|
}
|
1
app/js/platform/tj-deck.js
Normal file
1
app/js/platform/tj-deck.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -279,9 +279,12 @@ function cardCheck(tlid) {
|
||||||
function mov(id,tlid,type){
|
function mov(id,tlid,type){
|
||||||
if(tlid=="notf"){
|
if(tlid=="notf"){
|
||||||
var tlide="[data-notf="+acct_id+"]";
|
var tlide="[data-notf="+acct_id+"]";
|
||||||
|
}else if(tlid=="user"){
|
||||||
|
var tlide="#his-data";
|
||||||
}else{
|
}else{
|
||||||
var tlide="[tlid="+tlid+"]";
|
var tlide="[tlid="+tlid+"]";
|
||||||
}
|
}
|
||||||
|
console.log(tlid)
|
||||||
var mouseover=localStorage.getItem("mouseover");
|
var mouseover=localStorage.getItem("mouseover");
|
||||||
if(!mouseover){
|
if(!mouseover){
|
||||||
mouseover="";
|
mouseover="";
|
||||||
|
|
|
@ -221,13 +221,20 @@ function misskeyParse(obj, mix, acct_id, tlid, popup, mutefilter) {
|
||||||
var ipc = electron.ipcRenderer;
|
var ipc = electron.ipcRenderer;
|
||||||
var os = electron.remote.process.platform;
|
var os = electron.remote.process.platform;
|
||||||
var options = {
|
var options = {
|
||||||
body: toot.user.name+"(" + toot.user.username +")"+what+"\n\n"+$.strip_tags(toot.note.text),
|
body: toot.account.display_name+"(" + toot.account.acct +")"+what+"\n\n"+$.strip_tags(toot.status.content),
|
||||||
icon: toot.user.avatarUrl
|
icon: toot.account.avatar
|
||||||
};
|
};
|
||||||
if(os=="darwin"){
|
if(os=="darwin"){
|
||||||
var n = new Notification('TheDesk:'+domain, options);
|
var n = new Notification('TheDesk:'+domain, options);
|
||||||
}else{
|
}else{
|
||||||
ipc.send('native-notf', ['TheDesk:'+domain,toot.user.name+"(" + toot.user.acct +")"+what+"\n\n"+$.strip_tags(toot.note.text),toot.user.avatarUrl]);
|
ipc.send('native-notf', [
|
||||||
|
'TheDesk:'+domain,
|
||||||
|
toot.account.display_name+"(" + toot.account.acct +")"+what+"\n\n"+$.strip_tags(toot.status.content),
|
||||||
|
toot.account.avatar,
|
||||||
|
"toot",
|
||||||
|
acct_id,
|
||||||
|
toot.status.id
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(localStorage.getItem("hasNotfC_" + acct_id)!="true"){
|
if(localStorage.getItem("hasNotfC_" + acct_id)!="true"){
|
||||||
|
@ -751,6 +758,32 @@ function misskeyUserparse(obj, auth, acct_id, tlid, popup) {
|
||||||
$(".notf-icon_" + tlid).addClass("red-text");
|
$(".notf-icon_" + tlid).addClass("red-text");
|
||||||
localStorage.setItem("notice-mem", notftext);
|
localStorage.setItem("notice-mem", notftext);
|
||||||
notftext = "";
|
notftext = "";
|
||||||
|
var native=localStorage.getItem("nativenotf");
|
||||||
|
if(!native){
|
||||||
|
native="yes";
|
||||||
|
}
|
||||||
|
if(native=="yes"){
|
||||||
|
var electron = require("electron");
|
||||||
|
var ipc = electron.ipcRenderer;
|
||||||
|
var os = electron.remote.process.platform;
|
||||||
|
var options = {
|
||||||
|
body: toot.display_name+"(" + toot.acct +")"+ftxt,
|
||||||
|
icon: toot.avatar
|
||||||
|
};
|
||||||
|
var domain = localStorage.getItem("domain_" + acct_id);
|
||||||
|
if(os=="darwin"){
|
||||||
|
var n = new Notification('TheDesk:'+domain, options);
|
||||||
|
}else{
|
||||||
|
ipc.send('native-notf', [
|
||||||
|
'TheDesk:'+domain,
|
||||||
|
toot.display_name+"(" + toot.acct +")"+ftxt,
|
||||||
|
toot.avatar,
|
||||||
|
"userdata",
|
||||||
|
acct_id,
|
||||||
|
toot.id
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(toot.name){
|
if(toot.name){
|
||||||
var dis_name=escapeHTML(toot.name);
|
var dis_name=escapeHTML(toot.name);
|
||||||
|
|
|
@ -116,7 +116,7 @@ function parseColumn() {
|
||||||
localStorage.removeItem("hasNotfC_" + acct.domain);
|
localStorage.removeItem("hasNotfC_" + acct.domain);
|
||||||
}
|
}
|
||||||
if(acct.type=="webview"){
|
if(acct.type=="webview"){
|
||||||
var html =webview("https://mobile.twitter.com",key,insert,icnsert);
|
var html =webview("https://tweetdeck.twitter.com",key,insert,icnsert);
|
||||||
$("#timeline-container").append(html);
|
$("#timeline-container").append(html);
|
||||||
}else{
|
}else{
|
||||||
var html = '<div class="box" id="timeline_box_' + key + '_box" tlid="' + key +
|
var html = '<div class="box" id="timeline_box_' + key + '_box" tlid="' + key +
|
||||||
|
@ -175,6 +175,10 @@ function parseColumn() {
|
||||||
if (box == "absolute") {
|
if (box == "absolute") {
|
||||||
setTimeout(show, 1000);
|
setTimeout(show, 1000);
|
||||||
}
|
}
|
||||||
|
if(localStorage.getItem("reverse")){
|
||||||
|
$("#bottom").removeClass("reverse");
|
||||||
|
$(".leftside").removeClass("reverse");
|
||||||
|
}
|
||||||
favTag();
|
favTag();
|
||||||
var cw = localStorage.getItem("always-cw");
|
var cw = localStorage.getItem("always-cw");
|
||||||
if (cw == "yes") {
|
if (cw == "yes") {
|
||||||
|
@ -357,7 +361,7 @@ function webview(url,key,insert,icnsert){
|
||||||
'"><div class="notice-box z-depth-2" id="menu_'+key+'" style="'+insert+'">'+
|
'"><div class="notice-box z-depth-2" id="menu_'+key+'" style="'+insert+'">'+
|
||||||
'<div class="area-notice"><i class="fa fa-twitter waves-effect" id="notice_icon_' + key + '" style="font-size:40px; padding-top:25%;"></i></div>'+
|
'<div class="area-notice"><i class="fa fa-twitter waves-effect" id="notice_icon_' + key + '" style="font-size:40px; padding-top:25%;"></i></div>'+
|
||||||
'<div class="area-notice_name tl-title">WebView('+url+')</div>'+
|
'<div class="area-notice_name tl-title">WebView('+url+')</div>'+
|
||||||
'<div class="area-a1"></div>'+
|
'<div class="area-sta"><input type="checkbox" id="webviewsel" value="true" class="filled-in"><label for="webviewsel">'+lang_layout_webviewmode[lang]+'</label></div>'+
|
||||||
'<div class="area-a2"><a onclick="removeColumn(' + key +
|
'<div class="area-a2"><a onclick="removeColumn(' + key +
|
||||||
')" class="setting nex"><i class="material-icons waves-effect nex" title="'+lang_layout_delthis[lang]+'"'+icnsert+'>cancel</i></a></div>'+
|
')" class="setting nex"><i class="material-icons waves-effect nex" title="'+lang_layout_delthis[lang]+'"'+icnsert+'>cancel</i></a></div>'+
|
||||||
'<div class="area-a3"><a onclick="setToggle(' + key +
|
'<div class="area-a3"><a onclick="setToggle(' + key +
|
||||||
|
@ -365,7 +369,7 @@ function webview(url,key,insert,icnsert){
|
||||||
'<div class="column-hide notf-indv-box z-depth-4" id="notf-box_' + key +
|
'<div class="column-hide notf-indv-box z-depth-4" id="notf-box_' + key +
|
||||||
'"></div><div class="column-hide notf-indv-box" id="util-box_' + key +
|
'"></div><div class="column-hide notf-indv-box" id="util-box_' + key +
|
||||||
'" style="padding:5px;">'+lang_layout_headercolor[lang]+'<br><div id="picker_'+key+'" class="color-picker"></div></div><div class="tl-box" tlid="' + key + '" style="width:100%;height:calc(100% - 110px);"><div id="timeline_' + key +
|
'" style="padding:5px;">'+lang_layout_headercolor[lang]+'<br><div id="picker_'+key+'" class="color-picker"></div></div><div class="tl-box" tlid="' + key + '" style="width:100%;height:calc(100% - 110px);"><div id="timeline_' + key +
|
||||||
'" class="tl" tlid="' + key + '" data-type="webview" style="width:100%;height:100%;"><webview src="'+url+'" style="width:100%;height:100%;" id="webview"></webview></div></div></div>';
|
'" class="tl" tlid="' + key + '" data-type="webview" style="width:100%;height:100%;"><webview src="'+url+'" style="width:100%;height:100%;" id="webview" preload="./js/platform/twitter.js"></webview></div></div></div>';
|
||||||
|
|
||||||
return html;
|
return html;
|
||||||
}
|
}
|
|
@ -6,6 +6,16 @@ function todo(mes){
|
||||||
function todc(){
|
function todc(){
|
||||||
$('#message').fadeOut();
|
$('#message').fadeOut();
|
||||||
}
|
}
|
||||||
|
//reverse
|
||||||
|
function bottomReverse(){
|
||||||
|
$("#bottom").toggleClass("reverse");
|
||||||
|
$(".leftside").toggleClass("reverse");
|
||||||
|
if($("#bottom").hasClass("reverse")){
|
||||||
|
localStorage.removeItem("reverse")
|
||||||
|
}else{
|
||||||
|
localStorage.setItem("reverse","true")
|
||||||
|
}
|
||||||
|
}
|
||||||
function tips(mode){
|
function tips(mode){
|
||||||
var electron = require("electron");
|
var electron = require("electron");
|
||||||
var ipc = electron.ipcRenderer;
|
var ipc = electron.ipcRenderer;
|
||||||
|
|
|
@ -48,9 +48,9 @@ function utl(user, more, acct_id) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
}).then(function(json) {
|
}).then(function(json) {
|
||||||
if(localStorage.getItem("mode_" + domain)=="misskey"){
|
if(localStorage.getItem("mode_" + domain)=="misskey"){
|
||||||
var templete = misskeyParse(json, '', acct_id);
|
var templete = misskeyParse(json, '', acct_id, 'user');
|
||||||
}else{
|
}else{
|
||||||
var templete = parse(json, '', acct_id);
|
var templete = parse(json, '', acct_id, 'user');
|
||||||
}
|
}
|
||||||
if(!json[0]){
|
if(!json[0]){
|
||||||
templete=lang_details_nodata[lang]+"<br>";
|
templete=lang_details_nodata[lang]+"<br>";
|
||||||
|
@ -92,7 +92,7 @@ function pinutl(before,user, acct_id) {
|
||||||
todo(error);
|
todo(error);
|
||||||
console.error(error);
|
console.error(error);
|
||||||
}).then(function(json) {
|
}).then(function(json) {
|
||||||
var templete = parse(json, '', acct_id);
|
var templete = parse(json, '', acct_id,'user');
|
||||||
if(!json[0]){
|
if(!json[0]){
|
||||||
templete="";
|
templete="";
|
||||||
}
|
}
|
||||||
|
@ -278,9 +278,9 @@ function showFav(more, acct_id) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
}).then(function(json) {
|
}).then(function(json) {
|
||||||
if(localStorage.getItem("mode_" + domain)!="misskey"){
|
if(localStorage.getItem("mode_" + domain)!="misskey"){
|
||||||
var templete = parse(json, '', acct_id);
|
var templete = parse(json, '', acct_id,'user');
|
||||||
}else{
|
}else{
|
||||||
var templete = misskeyParse(json, '', acct_id);
|
var templete = misskeyParse(json, '', acct_id,'user');
|
||||||
}
|
}
|
||||||
if(!json[0]){
|
if(!json[0]){
|
||||||
templete=lang_details_nodata[lang]+"<br>";
|
templete=lang_details_nodata[lang]+"<br>";
|
||||||
|
|
|
@ -105,7 +105,7 @@
|
||||||
"localPlusDes":"Integrated(Local and replies and BT on Home)",
|
"localPlusDes":"Integrated(Local and replies and BT on Home)",
|
||||||
"notf":"Notifications",
|
"notf":"Notifications",
|
||||||
"showThisTL":"Show this TL:",
|
"showThisTL":"Show this TL:",
|
||||||
"webviewWarn":"View mobile.twitter.com. You have difficulties about keyboard input(you can't paste, keyboard shortcuts will be worked, you can't use additional keys.) You may have troubles when you log in Twitter. If you are patient enough to use, you had better back to Twitter:(",
|
"webviewWarn":"TweetDeck with customed TJDeck(<a href='https://gist.github.com/cutls/8787a55d2c1c53274e68a427966046a6' target='_blank'>Code</a>/<a href='https://gist.github.com/totoraj930/d1394dadb51d75666a76829f61e7280c' target='_blank'>TJDeck</a>). Keyboard shortcuts will irritate you. When you feel so, you check 'Prefer WebView' on top of the column.",
|
||||||
"add":"Add",
|
"add":"Add",
|
||||||
"search":"Search",
|
"search":"Search",
|
||||||
"sortSet":"Sort",
|
"sortSet":"Sort",
|
||||||
|
@ -132,6 +132,7 @@
|
||||||
"acctMan":"Account Manager",
|
"acctMan":"Account Manager",
|
||||||
"filter":"Filter",
|
"filter":"Filter",
|
||||||
"setting":"Preferences",
|
"setting":"Preferences",
|
||||||
|
"reverse":"Toot box reverse",
|
||||||
"f5":"Super Reload",
|
"f5":"Super Reload",
|
||||||
"nanoDes":"The smallest Mastodon,",
|
"nanoDes":"The smallest Mastodon,",
|
||||||
"verTips":"Version",
|
"verTips":"Version",
|
||||||
|
|
|
@ -105,7 +105,7 @@
|
||||||
"localPlusDes":"統合(ローカルとブースト・リプライ)",
|
"localPlusDes":"統合(ローカルとブースト・リプライ)",
|
||||||
"notf":"通知",
|
"notf":"通知",
|
||||||
"showThisTL":"表示するタイムライン",
|
"showThisTL":"表示するタイムライン",
|
||||||
"webviewWarn":"モバイル版のTwitterを表示します。キーボード入力に難があります(ペースト不能だったり、キーボードショートカットが動いたり、ほとんどのキーが動かなかったり…)。つまりログイン自体が鬼門です。当然開発者は止めませんが、そのような忍耐があるのならばTwitterをメインに使うことをおすすめします。",
|
"webviewWarn":"TweetDeckを表示します。TJDeckをカスタムしたものが読み込まれます(<a href='https://gist.github.com/cutls/8787a55d2c1c53274e68a427966046a6' target='_blank'>Code</a>/<a href='https://gist.github.com/totoraj930/d1394dadb51d75666a76829f61e7280c' target='_blank'>TJDeck</a>)。キーボードショートカットが邪魔をするので、文字入力時はカラムの「WebView優先」にチェックを入れてください。",
|
||||||
"add":"追加",
|
"add":"追加",
|
||||||
"search":"検索",
|
"search":"検索",
|
||||||
"sortSet":"並べ替え設定",
|
"sortSet":"並べ替え設定",
|
||||||
|
@ -132,6 +132,7 @@
|
||||||
"acctMan":"アカウントマネージャー",
|
"acctMan":"アカウントマネージャー",
|
||||||
"filter":"フィルター",
|
"filter":"フィルター",
|
||||||
"setting":"設定",
|
"setting":"設定",
|
||||||
|
"reverse":"トゥートバーの左右入れ替え",
|
||||||
"f5":"スーパーリロード",
|
"f5":"スーパーリロード",
|
||||||
"nanoDes":"最小のマストドン。",
|
"nanoDes":"最小のマストドン。",
|
||||||
"verTips":"バージョン",
|
"verTips":"バージョン",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "thedesk",
|
"name": "thedesk",
|
||||||
"version": "16.0.13",
|
"version": "16.1.0",
|
||||||
"description": "TheDesk is a Mastodon client for PC.",
|
"description": "TheDesk is a Mastodon client for PC.",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -71,8 +71,8 @@ a,button,input,label,i{
|
||||||
<button id="update" class="waves-effect btn" onclick="update('true')" style="margin-left:15px;">開始</button>
|
<button id="update" class="waves-effect btn" onclick="update('true')" style="margin-left:15px;">開始</button>
|
||||||
<div id="checkbox">
|
<div id="checkbox">
|
||||||
Options:<br>
|
Options:<br>
|
||||||
<input type="checkbox" class="filled-in" id="updator" value="true" onchange="alert('zip展開時にTheDeskが固まることがありますが、しばらくお待ち下さい。')" />
|
<input type="checkbox" class="filled-in" id="portable" value="true" />
|
||||||
<label for="updator">解凍も行う</label><br>
|
<label for="portable">ポータブル版</label><br>
|
||||||
<input type="checkbox" class="filled-in" id="rewrite" value="true" />
|
<input type="checkbox" class="filled-in" id="rewrite" value="true" />
|
||||||
<label for="rewrite">上書きしない</label><br>
|
<label for="rewrite">上書きしない</label><br>
|
||||||
</div>
|
</div>
|
||||||
|
@ -121,7 +121,7 @@ function update(sel){
|
||||||
}else{
|
}else{
|
||||||
var versioning=false;
|
var versioning=false;
|
||||||
}
|
}
|
||||||
if($('#updator:checked').val()=="true"){
|
if($('#portable:checked').val()=="true"){
|
||||||
var zip=true;
|
var zip=true;
|
||||||
}else{
|
}else{
|
||||||
var zip=false;
|
var zip=false;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user