TheDesk Mizuki (ver.1)

This commit is contained in:
cutls
2018-03-31 11:39:06 +09:00
parent e2a1b60d1f
commit ac4ea9fe9f
21 changed files with 1051 additions and 32 deletions

View File

@@ -30,6 +30,9 @@ function utl(user, more, acct_id) {
console.error(error);
}).then(function(json) {
var templete = parse(json, '', acct_id);
if(!json[0]){
templete="データはありません<br>";
}
var height = $("#his-data-content").height() - 245;
$(".tab-content").css('height', height);
if (more) {
@@ -66,6 +69,9 @@ function pinutl(before,user, acct_id) {
console.error(error);
}).then(function(json) {
var templete = parse(json, '', acct_id);
if(!json[0]){
templete="データはありません<br>";
}
var height = $("#his-data-content").height() - 245;
$(".tab-content").css('height', height);
$("#his-tl-contents").html(templete+before);
@@ -104,6 +110,9 @@ function flw(user, more, acct_id) {
console.error(error);
}).then(function(json) {
var templete = userparse(json,'',acct_id);
if(!json[0]){
templete="データはありません<br>";
}
if (more) {
$("#his-follow-list-contents").append(templete);
} else {
@@ -145,6 +154,9 @@ function fer(user, more, acct_id) {
console.error(error);
}).then(function(json) {
var templete = userparse(json,'',acct_id);
if(!json[0]){
templete="データはありません<br>";
}
if (more) {
$("#his-follower-list-contents").append(templete);
} else {
@@ -182,6 +194,9 @@ function showFav(more, acct_id) {
console.error(error);
}).then(function(json) {
var templete = parse(json, '', acct_id);
if(!json[0]){
templete="データはありません<br>";
}
if (more) {
$("#his-fav-list-contents").append(templete);
} else {
@@ -217,6 +232,9 @@ function showMut(more, acct_id) {
todo(error);
console.error(error);
}).then(function(json) {
if(!json[0]){
templete="データはありません<br>";
}
var templete = userparse(json,'',acct_id);
if (more) {
$("#his-muting-list-contents").append(templete);
@@ -253,6 +271,9 @@ function showBlo(more, acct_id) {
todo(error);
console.error(error);
}).then(function(json) {
if(!json[0]){
templete="データはありません<br>";
}
var templete = userparse(json,'',acct_id);
if (more) {
$("#his-blocking-list-contents").append(templete);
@@ -290,6 +311,9 @@ function showReq(more, acct_id) {
console.error(error);
}).then(function(json) {
var templete = userparse(json, 'true',acct_id);
if(!json[0]){
templete="データはありません<br>";
}
if (more) {
$("#his-request-list-contents").append(templete);
} else {
@@ -327,6 +351,9 @@ function showDom(more, acct_id) {
console.error(error);
}).then(function(json) {
var templete = "";
if(!json[0]){
templete="データはありません<br>";
}
Object.keys(json).forEach(function(key) {
var domain = json[key];
templete = templete + domain +

View File

@@ -10,6 +10,13 @@ if(location.search){
}
}
function udgEx(user,acct_id){
if(user=="selector"){
user = $("#his-acct").attr('fullname');
}
if(acct_id=="selector"){
acct_id = $("#user-acct-sel").val();
}
console.log(user);
var domain = localStorage.getItem("domain_" + acct_id);
var at = localStorage.getItem(domain + "_at");
var start = "https://" + domain + "/api/v1/search?resolve=true&q="+user
@@ -26,7 +33,7 @@ function udgEx(user,acct_id){
console.error(error);
}).then(function(json) {
var id=json.accounts[0].id;
udg(id,0);
udg(id,acct_id);
});
return;
}