TheDesk Akane (16.0.0) - phase:2[final]
This commit is contained in:
@@ -31,7 +31,7 @@ function utl(user, more, acct_id) {
|
||||
}).then(function(json) {
|
||||
var templete = parse(json, '', acct_id);
|
||||
if(!json[0]){
|
||||
templete="データはありません<br>";
|
||||
templete=lang_details_nodata[lang]+"<br>";
|
||||
}
|
||||
var height = $("#his-data-content").height() - 245;
|
||||
$(".tab-content").css('height', height);
|
||||
@@ -111,7 +111,7 @@ function flw(user, more, acct_id) {
|
||||
}).then(function(json) {
|
||||
var templete = userparse(json,'',acct_id);
|
||||
if(!json[0]){
|
||||
templete="データはありません<br>";
|
||||
templete=lang_details_nodata[lang]+"<br>";
|
||||
}
|
||||
if (more) {
|
||||
$("#his-follow-list-contents").append(templete);
|
||||
@@ -155,7 +155,7 @@ function fer(user, more, acct_id) {
|
||||
}).then(function(json) {
|
||||
var templete = userparse(json,'',acct_id);
|
||||
if(!json[0]){
|
||||
templete="データはありません<br>";
|
||||
templete=lang_details_nodata[lang]+"<br>";
|
||||
}
|
||||
if (more) {
|
||||
$("#his-follower-list-contents").append(templete);
|
||||
@@ -195,7 +195,7 @@ function showFav(more, acct_id) {
|
||||
}).then(function(json) {
|
||||
var templete = parse(json, '', acct_id);
|
||||
if(!json[0]){
|
||||
templete="データはありません<br>";
|
||||
templete=lang_details_nodata[lang]+"<br>";
|
||||
}
|
||||
if (more) {
|
||||
$("#his-fav-list-contents").append(templete);
|
||||
@@ -233,7 +233,7 @@ function showMut(more, acct_id) {
|
||||
console.error(error);
|
||||
}).then(function(json) {
|
||||
if(!json[0]){
|
||||
templete="データはありません<br>";
|
||||
templete=lang_details_nodata[lang]+"<br>";
|
||||
}
|
||||
var templete = userparse(json,'',acct_id);
|
||||
if (more) {
|
||||
@@ -272,7 +272,7 @@ function showBlo(more, acct_id) {
|
||||
console.error(error);
|
||||
}).then(function(json) {
|
||||
if(!json[0]){
|
||||
templete="データはありません<br>";
|
||||
templete=lang_details_nodata[lang]+"<br>";
|
||||
}
|
||||
var templete = userparse(json,'',acct_id);
|
||||
if (more) {
|
||||
@@ -312,7 +312,7 @@ function showReq(more, acct_id) {
|
||||
}).then(function(json) {
|
||||
var templete = userparse(json, 'true',acct_id);
|
||||
if(!json[0]){
|
||||
templete="データはありません<br>";
|
||||
templete=lang_details_nodata[lang]+"<br>";
|
||||
}
|
||||
if (more) {
|
||||
$("#his-request-list-contents").append(templete);
|
||||
@@ -352,7 +352,7 @@ function showDom(more, acct_id) {
|
||||
}).then(function(json) {
|
||||
var templete = "";
|
||||
if(!json[0]){
|
||||
templete="データはありません<br>";
|
||||
templete=lang_details_nodata[lang]+"<br>";
|
||||
}
|
||||
Object.keys(json).forEach(function(key) {
|
||||
var domain = json[key];
|
||||
@@ -393,13 +393,13 @@ function showFrl(more, acct_id) {
|
||||
}).then(function(response) {
|
||||
return response.json();
|
||||
}).catch(function(error) {
|
||||
$("#his-follow-recom-contents").html("データはありません(Mastodon 2.4.3~が必要です)<br>");
|
||||
$("#his-follow-recom-contents").html(lang_details_nodata[lang]+"("+lang_hisdata_frcreq[lang]+")<br>");
|
||||
console.error(error);
|
||||
}).then(function(json) {
|
||||
console.log(json);
|
||||
if(!json[0]){
|
||||
console.log("No data");
|
||||
templete="データはありません(非フォローだけど絡みがある時に表示されます。)<br>";
|
||||
templete=lang_details_nodata[lang]+"("+lang_hisdata_frcwarn[lang]+")<br>";
|
||||
}else{
|
||||
var templete = userparse(json,'',acct_id);
|
||||
}
|
||||
@@ -416,7 +416,7 @@ function showFrl(more, acct_id) {
|
||||
//ユーザーマッチングリスト
|
||||
function showMat() {
|
||||
|
||||
$("#his-matching-list-contents").html("30秒から数分かかります");
|
||||
$("#his-matching-list-contents").html(lang_hisdata_taketime[lang]);
|
||||
var full=$("#his-acct").attr("fullname");
|
||||
var acct_id=$("#his-data").attr("use-acct");
|
||||
full=full.split("@");
|
||||
|
@@ -74,8 +74,8 @@ function udg(user, acct_id) {
|
||||
//moved設定時
|
||||
if (json.moved) {
|
||||
Materialize.toast(
|
||||
'このアカウントは移行しています<button class="btn-flat toast-action" onclick="udg(\"' +
|
||||
json.moved + ','+acct_id+'\")">移行先を見る</button>', 4000)
|
||||
lang_showontl_movetxt[lang]+'<button class="btn-flat toast-action" onclick="udg(\"' +
|
||||
json.moved + ','+acct_id+'\")">'+lang_showontl_movebtn[lang]+'</button>', 4000)
|
||||
} else {
|
||||
$('#his-data').modal('open');
|
||||
$('#his-data').attr("user-id", user);
|
||||
@@ -137,7 +137,7 @@ function udg(user, acct_id) {
|
||||
$("#his-des").html(twemoji.parse(note));
|
||||
}
|
||||
if(json.bot){
|
||||
$("#his-bot").html("botアカウント");
|
||||
$("#his-bot").html(lang_showontl_botacct[lang]);
|
||||
}
|
||||
$('#his-data').css('background-size', 'cover');
|
||||
localStorage.setItem("history" , user);
|
||||
@@ -214,38 +214,38 @@ function relations(user, acct_id) {
|
||||
if (json.following) {
|
||||
//自分がフォローしている
|
||||
$("#his-data").addClass("following");
|
||||
$("#his-follow-btn").text("フォロー解除");
|
||||
$("#his-follow-btn").text(lang_status_unfollow[lang]);
|
||||
hisList(user,acct_id);
|
||||
}else{
|
||||
$("#his-follow-btn").text("フォロー");
|
||||
$("#his-follow-btn").text(lang_status_follow[lang]);
|
||||
}
|
||||
if (json.followed_by) {
|
||||
//フォローされてる
|
||||
$("#his-relation").text("フォローされています");
|
||||
$("#his-relation").text(lang_showontl_followed[lang]);
|
||||
}
|
||||
if (json.blocking) {
|
||||
$("#his-data").addClass("blocking");
|
||||
$("#his-block-btn").text("ブロック解除");
|
||||
$("#his-block-btn").text(lang_status_unblock[lang]);
|
||||
}else{
|
||||
$("#his-block-btn").text("ブロック");
|
||||
$("#his-block-btn").text(lang_status_block[lang]);
|
||||
}
|
||||
if (json.muting) {
|
||||
$("#his-data").addClass("muting");
|
||||
$("#his-mute-btn").text("ミュート解除");
|
||||
$("#his-mute-btn").text(lang_status_unmute[lang]);
|
||||
}else{
|
||||
$("#his-mute-btn").text("ミュート");
|
||||
$("#his-mute-btn").text(lang_status_mute[lang]);
|
||||
}
|
||||
if (json.muting_notifications) {
|
||||
$("#his-data").addClass("mutingNotf");
|
||||
$("#his-notf-btn").text("通知ミュート解除");
|
||||
$("#his-notf-btn").text(lang_showontl_notf[lang]+lang_status_unmute[lang]);
|
||||
}else{
|
||||
$("#his-notf-btn").text("通知ミュート");
|
||||
$("#his-notf-btn").text(lang_showontl_notf[lang]+lang_status_mute[lang]);
|
||||
}
|
||||
if (json.domain_blocking) {
|
||||
$("#his-data").addClass("blockingDom");
|
||||
$("#his-domain-btn").text("ドメインブロック解除");
|
||||
$("#his-domain-btn").text(lang_showontl_domain[lang]+lang_status_unblock[lang]);
|
||||
}else{
|
||||
$("#his-domain-btn").text("ドメインブロック");
|
||||
$("#his-domain-btn").text(lang_showontl_domain[lang]+lang_status_block[lang]);
|
||||
}
|
||||
|
||||
});
|
||||
@@ -285,15 +285,15 @@ function reset(){
|
||||
$("#his-notf-btn").show();
|
||||
$("#his-domain-btn").show();
|
||||
$("#his-emp-btn").show();
|
||||
$("#his-follow-btn").text("フォロー");
|
||||
$("#his-mute-btn").text("ミュート");
|
||||
$("#his-block-btn").text("ブロック");
|
||||
$("#his-notf-btn").text("通知ミュート");
|
||||
$("#his-domain-btn").text("ドメインブロック");
|
||||
$("#his-follow-btn").text(lang_status_follow[lang]);
|
||||
$("#his-mute-btn").text(lang_status_mute[lang]);
|
||||
$("#his-block-btn").text(lang_status_block[lang]);
|
||||
$("#his-notf-btn").text(lang_showontl_notf[lang]+lang_status_mute[lang]);
|
||||
$("#his-domain-btn").text(lang_showontl_domain[lang]+lang_status_block[lang]);
|
||||
$("#his-relation").text("");
|
||||
$(".cont-series").html("");
|
||||
$("#domainblock").val("");
|
||||
$("#his-lists-a").html('リストに追加するためにはフォローが必要です。');
|
||||
$("#his-lists-a").html(lang_showontl_listwarn[lang]);
|
||||
$("#his-lists-b").html('');
|
||||
$("#his-name-val").val("");
|
||||
$("#his-des-val").val("");
|
||||
|
Reference in New Issue
Block a user