TheDesk Akane (16.0.0) -phase 2
This commit is contained in:
@@ -4,7 +4,7 @@ function mdCheck(){
|
||||
var acct_id = $("#post-acct-sel").val();
|
||||
var profimg=localStorage.getItem("prof_"+acct_id);
|
||||
$("#acct-sel-prof").attr("src",profimg);
|
||||
$("#toot-post-btn").text("トゥート("+localStorage.getItem("domain_"+acct_id)+")");
|
||||
$("#toot-post-btn").text(lang_toot[lang]+"("+localStorage.getItem("domain_"+acct_id)+")");
|
||||
if(!localStorage.getItem("bb_"+acct_id) && !localStorage.getItem("md_"+acct_id)){
|
||||
$(".markdown").addClass("hide");
|
||||
$(".anti-markdown").addClass("hide");
|
||||
|
@@ -15,7 +15,7 @@ function emoji() {
|
||||
$("#emoji").removeClass("hide")
|
||||
if (!localStorage.getItem("emoji_" + acct_id)) {
|
||||
var html =
|
||||
'<button class="btn waves-effect green" style="width:100%; padding:0; margin-top:0;" onclick="emojiGet(\'true\');">絵文字リスト取得</button>';
|
||||
'<button class="btn waves-effect green" style="width:100%; padding:0; margin-top:0;" onclick="emojiGet(\'true\');">'+lang_emoji_get[lang]+'</button>';
|
||||
$("#emoji-list").html(html);
|
||||
} else {
|
||||
emojiList('home');
|
||||
@@ -63,7 +63,7 @@ function emojiGet(parse) {
|
||||
|
||||
//リストの描画
|
||||
function emojiList(target) {
|
||||
$("#now-emoji").text("カスタム絵文字");
|
||||
$("#now-emoji").text(lang_emoji_custom[lang]);
|
||||
var acct_id = $("#post-acct-sel").val();
|
||||
var start = localStorage.getItem("emojiseek");
|
||||
if (target == "next") {
|
||||
|
@@ -43,7 +43,7 @@ function pimg(files) {
|
||||
var electron = require("electron");
|
||||
var ipc = electron.ipcRenderer;
|
||||
ipc.send('bmp-image', [files[i].path,i]);
|
||||
todo("変換中...");
|
||||
todo(lang_progress[lang]);
|
||||
|
||||
}else{
|
||||
handleFileUpload(files[i], obj,i);
|
||||
@@ -117,7 +117,7 @@ function media(b64, type, no) {
|
||||
var html = '<img src="' + json.preview_url + '" style="width:50px; max-height:100px;">';
|
||||
$('#preview').append(html);
|
||||
} else {
|
||||
$('#preview').append("プレビューできません");
|
||||
$('#preview').append(lang_postimg_previewdis[lang]);
|
||||
}
|
||||
if (!img) {
|
||||
var img = "no-act";
|
||||
@@ -135,8 +135,8 @@ function media(b64, type, no) {
|
||||
todc();
|
||||
$("#toot-post-btn").prop("disabled", false);
|
||||
$('select').material_select();
|
||||
$("#mec").text("あり");
|
||||
Materialize.toast("ファイルアップロード後はアカウントを切り替えられません。", 1000);
|
||||
$("#mec").text(lang_there[lang]);
|
||||
Materialize.toast(lang_postimg_aftupload[lang], 1000);
|
||||
$("#imgup").text("");
|
||||
$("#imgsel").show();
|
||||
localStorage.removeItem("image");
|
||||
|
@@ -11,7 +11,7 @@ function post() {
|
||||
if(domain=="theboss.tech"){
|
||||
if(~str.indexOf("#")){
|
||||
if(str.indexOf("#theboss_tech")=="-1"){
|
||||
if(!confirm("デフォルトタグが挿入されていません。このまま投稿するとローカルには表示されません。")){
|
||||
if(!confirm(lang_post_tagTL[lang])){
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -20,7 +20,7 @@ function post() {
|
||||
if(domain=="dtp-mstdn.jp"){
|
||||
if(~str.indexOf("#")){
|
||||
if(str.indexOf("#dtp")=="-1"){
|
||||
if(!confirm("デフォルトタグが挿入されていません。このまま投稿するとローカルには表示されません。")){
|
||||
if(!confirm(lang_post_tagTL[lang])){
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -91,7 +91,7 @@ function clear() {
|
||||
if(localStorage.getItem("stable")){
|
||||
$("#textarea").val(localStorage.getItem("stable"));
|
||||
}
|
||||
$("#textarea").attr("placeholder", "");
|
||||
$("#textarea").attr("placeholder", lang_toot[lang]);
|
||||
$("#reply").val("");
|
||||
$("#media").val("");
|
||||
var cwt = localStorage.getItem("cw-text");
|
||||
@@ -102,13 +102,13 @@ function clear() {
|
||||
}
|
||||
$("#cw").removeClass("yellow-text");
|
||||
$("#cw").removeClass("cw-avail");
|
||||
$("#rec").text("いいえ");
|
||||
$("#mec").text("なし");
|
||||
$("#rec").text(lang_no[lang]);
|
||||
$("#mec").text(lang_nothing[lang]);
|
||||
loadVis();
|
||||
$("#nsfw").removeClass("yellow-text");
|
||||
$("#nsfw").html("visibility_off");
|
||||
$("#nsfw").removeClass("nsfw-avail");
|
||||
$("#nsc").text("なし");
|
||||
$("#nsc").text(lang_nothing[lang]);
|
||||
$("#drag").css("background-color", "#e0e0e0");
|
||||
$("#preview").html("");
|
||||
$("#toot-post-btn").prop("disabled", false);
|
||||
|
@@ -43,7 +43,7 @@ function fav(id, acct_id, remote) {
|
||||
$(".fav_" + id).addClass("yellow-text");
|
||||
}
|
||||
}else{
|
||||
Materialize.toast("お気に入り登録しました。インスタンスが違うときは時間がかかる場合があります。", 1000);
|
||||
Materialize.toast(lang_status_favWarn[lang], 1000);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -90,7 +90,7 @@ function rt(id, acct_id, remote) {
|
||||
$(".rt_" + id).addClass("teal-text");
|
||||
}
|
||||
} else {
|
||||
Materialize.toast("ブーストしました。インスタンスが違うときは時間がかかる場合があります。", 1000);
|
||||
Materialize.toast(lang_status_btWarn[lang], 1000);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -135,10 +135,10 @@ function follow(acct_id,remote) {
|
||||
console.log(json);
|
||||
if ($("#his-data").hasClass("following")) {
|
||||
$("#his-data").removeClass("following");
|
||||
$("#his-follow-btn").text("フォロー");
|
||||
$("#his-follow-btn").text(lang_status_follow[lang]);
|
||||
} else {
|
||||
$("#his-data").addClass("following");
|
||||
$("#his-follow-btn").text("フォロー解除");
|
||||
$("#his-follow-btn").text(lang_status_unfollow[lang]);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -168,10 +168,10 @@ function block(acct_id) {
|
||||
if (httpreq.readyState == 4) {
|
||||
if ($("#his-data").hasClass("blocking")) {
|
||||
$("#his-data").removeClass("blocking");
|
||||
$("#his-block-btn").text("ブロック");
|
||||
$("#his-block-btn").text(lang_status_block[lang]);
|
||||
} else {
|
||||
$("#his-data").addClass("blocking");
|
||||
$("#his-block-btn").text("ブロック解除");
|
||||
$("#his-block-btn").text(lang_status_unblock[lang]);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -201,10 +201,10 @@ function mute(acct_id) {
|
||||
if (httpreq.readyState == 4) {
|
||||
if ($("#his-data").hasClass("muting")) {
|
||||
$("#his-data").removeClass("muting");
|
||||
$("#his-mute-btn").text("ミュート");
|
||||
$("#his-mute-btn").text(lang_status_mute[lang]);
|
||||
} else {
|
||||
$("#his-data").addClass("muting");
|
||||
$("#his-mute-btn").text("ミュート解除");
|
||||
$("#his-mute-btn").text(lang_status_unmute[lang]);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -228,7 +228,7 @@ function del(id, acct_id) {
|
||||
}
|
||||
//redraft
|
||||
function redraft(id, acct_id){
|
||||
if(confirm("削除して再編集しますか?そのトゥートの全てのデータがリセットされます。この機能はベータ版です。画像は~v2.4.1で破棄されます。")){
|
||||
if(confirm(lang_status_redraft[lang])){
|
||||
show();
|
||||
del(id, acct_id);
|
||||
$("#post-acct-sel").prop("disabled", true);
|
||||
@@ -251,6 +251,8 @@ function redraft(id, acct_id){
|
||||
html = html.replace(/<\/p>/, "\n");
|
||||
html = html.replace(/<img[\s\S]*alt="(.+?)"[\s\S]*?>/g, "$1");
|
||||
html=$.strip_tags(html);
|
||||
localStorage.setItem("nohide",true);
|
||||
show();
|
||||
$("#textarea").val(html);
|
||||
}
|
||||
}
|
||||
@@ -341,7 +343,7 @@ function empUser(){
|
||||
if(!obj){
|
||||
var obj=[];
|
||||
obj.push(id);
|
||||
Materialize.toast(id+"を強調します。設定を適用するにはF5を押して下さい。", 4000);
|
||||
Materialize.toast(id+lang_status_emphas[lang], 4000);
|
||||
}else{
|
||||
var can;
|
||||
Object.keys(obj).forEach(function(key) {
|
||||
@@ -351,7 +353,7 @@ function empUser(){
|
||||
}else{
|
||||
can=true;
|
||||
obj.splice(key, 1);
|
||||
Materialize.toast(id+"の強調を解除しました。設定を適用するにはF5を押して下さい。", 4000);
|
||||
Materialize.toast(id+lang_status_unemphas[lang], 4000);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@@ -9,7 +9,7 @@ function re(id,at,acct_id,mode){
|
||||
$("#post-acct-sel").val(acct_id);
|
||||
$("#post-acct-sel").prop("disabled", true);
|
||||
$('select').material_select();
|
||||
$("#textarea").attr("placeholder","返信モードです。クリアするときはCtrl+Shift+Cを押してください。");
|
||||
$("#textarea").attr("placeholder",lang_usetxtbox_reply[lang]);
|
||||
$("#textarea").focus();
|
||||
vis(mode);
|
||||
}
|
||||
|
Reference in New Issue
Block a user