[WIP] linting

This commit is contained in:
cutls 2020-08-02 16:08:07 +09:00
parent dafc50bbd7
commit 1710ab0035
21 changed files with 1971 additions and 1560 deletions

5
app/.eslintignore Normal file
View File

@ -0,0 +1,5 @@
js/common/blurhash.js
js/common/hammer.min.js
js/common/sha256.js
js/platform/punycode.js
js/platform/tj-deck.js

14
app/.eslintrc.json Normal file
View File

@ -0,0 +1,14 @@
{
"extends": "eslint:recommended",
"env": {"browser": true},
"rules": {
"no-console": "off",
"semi": ["error", "never"]
},
"globals": {
"$": false,
"ver": true,
"pwa": true,
"lang": true
}
}

View File

@ -10,7 +10,7 @@ $(document).ready(function () {
belowOrigin: false, // Displays dropdown below the button belowOrigin: false, // Displays dropdown below the button
alignment: 'left', // Displays dropdown with edge aligned to the left of button alignment: 'left', // Displays dropdown with edge aligned to the left of button
stopPropagation: false stopPropagation: false
}); })
$('.dropdown-trigger').dropdown({ $('.dropdown-trigger').dropdown({
inDuration: 300, inDuration: 300,
outDuration: 225, outDuration: 225,
@ -21,9 +21,9 @@ $(document).ready(function () {
alignment: 'left', // Displays dropdown with edge aligned to the left of button alignment: 'left', // Displays dropdown with edge aligned to the left of button
stopPropagation: false // Stops event propagation stopPropagation: false // Stops event propagation
} }
); )
$('.collapsible').collapsible(); $('.collapsible').collapsible()
$('#videomodal').modal({ $('#videomodal').modal({
onCloseEnd: stopVideo onCloseEnd: stopVideo
}); })
}); })

View File

@ -17,26 +17,26 @@
(function (factory) { (function (factory) {
if (typeof define === 'function' && define.amd) { if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module. // AMD. Register as an anonymous module.
define(['jquery'], factory); define(['jquery'], factory)
} else if (typeof module === 'object' && typeof module.exports === 'object') { } else if (typeof module === 'object' && typeof module.exports === 'object') {
factory(require('jquery')); factory(require('jquery'))
} else { } else {
// Browser globals // Browser globals
factory(jQuery); factory(jQuery)
} }
}(function ($) { }(function ($) {
$.timeago = function (timestamp) { $.timeago = function (timestamp) {
if (timestamp instanceof Date) { if (timestamp instanceof Date) {
return inWords(timestamp); return inWords(timestamp)
} else if (typeof timestamp === "string") { } else if (typeof timestamp === "string") {
return inWords($.timeago.parse(timestamp)); return inWords($.timeago.parse(timestamp))
} else if (typeof timestamp === "number") { } else if (typeof timestamp === "number") {
return inWords(new Date(timestamp)); return inWords(new Date(timestamp))
} else { } else {
return inWords($.timeago.datetime(timestamp)); return inWords($.timeago.datetime(timestamp))
} }
}; }
var $t = $.timeago; var $t = $.timeago
$.extend($.timeago, { $.extend($.timeago, {
settings: { settings: {
refreshMillis: 60000, refreshMillis: 60000,
@ -69,33 +69,33 @@
inWords: function (distanceMillis) { inWords: function (distanceMillis) {
if (!this.settings.allowPast && !this.settings.allowFuture) { if (!this.settings.allowPast && !this.settings.allowFuture) {
throw 'timeago allowPast and allowFuture settings can not both be set to false.'; throw 'timeago allowPast and allowFuture settings can not both be set to false.'
} }
var $l = this.settings.strings; var $l = this.settings.strings
var prefix = $l.prefixAgo; var prefix = $l.prefixAgo
var suffix = $l.suffixAgo; var suffix = $l.suffixAgo
if (this.settings.allowFuture) { if (this.settings.allowFuture) {
if (distanceMillis < 0) { if (distanceMillis < 0) {
prefix = $l.prefixFromNow; prefix = $l.prefixFromNow
suffix = $l.suffixFromNow; suffix = $l.suffixFromNow
} }
} }
if (!this.settings.allowPast && distanceMillis >= 0) { if (!this.settings.allowPast && distanceMillis >= 0) {
return this.settings.strings.inPast; return this.settings.strings.inPast
} }
var seconds = Math.abs(distanceMillis) / 1000; var seconds = Math.abs(distanceMillis) / 1000
var minutes = seconds / 60; var minutes = seconds / 60
var hours = minutes / 60; var hours = minutes / 60
var days = hours / 24; var days = hours / 24
var years = days / 365; var years = days / 365
function substitute(stringOrFunction, number) { function substitute(stringOrFunction, number) {
var string = $.isFunction(stringOrFunction) ? stringOrFunction(number, distanceMillis) : stringOrFunction; var string = $.isFunction(stringOrFunction) ? stringOrFunction(number, distanceMillis) : stringOrFunction
var value = ($l.numbers && $l.numbers[number]) || number; var value = ($l.numbers && $l.numbers[number]) || number
return string.replace(/%d/i, value); return string.replace(/%d/i, value)
} }
var words = seconds < 45 && substitute($l.seconds, Math.round(seconds)) || var words = seconds < 45 && substitute($l.seconds, Math.round(seconds)) ||
@ -108,124 +108,124 @@
days < 45 && substitute($l.month, 1) || days < 45 && substitute($l.month, 1) ||
days < 365 && substitute($l.months, Math.round(days / 30)) || days < 365 && substitute($l.months, Math.round(days / 30)) ||
years < 1.5 && substitute($l.year, 1) || years < 1.5 && substitute($l.year, 1) ||
substitute($l.years, Math.round(years)); substitute($l.years, Math.round(years))
var separator = $l.wordSeparator || ""; var separator = $l.wordSeparator || ""
if ($l.wordSeparator === undefined) { separator = " "; } if ($l.wordSeparator === undefined) { separator = " " }
return $.trim([prefix, words, suffix].join(separator)); return $.trim([prefix, words, suffix].join(separator))
}, },
parse: function (iso8601) { parse: function (iso8601) {
var s = $.trim(iso8601); var s = $.trim(iso8601)
s = s.replace(/\.\d+/, ""); // remove milliseconds s = s.replace(/\.\d+/, "") // remove milliseconds
s = s.replace(/-/, "/").replace(/-/, "/"); s = s.replace(/-/, "/").replace(/-/, "/")
s = s.replace(/T/, " ").replace(/Z/, " UTC"); s = s.replace(/T/, " ").replace(/Z/, " UTC")
s = s.replace(/([\+\-]\d\d)\:?(\d\d)/, " $1$2"); // -04:00 -> -0400 s = s.replace(/([\+\-]\d\d)\:?(\d\d)/, " $1$2") // -04:00 -> -0400
s = s.replace(/([\+\-]\d\d)$/, " $100"); // +09 -> +0900 s = s.replace(/([\+\-]\d\d)$/, " $100") // +09 -> +0900
return new Date(s); return new Date(s)
}, },
datetime: function (elem) { datetime: function (elem) {
var iso8601 = $t.isTime(elem) ? $(elem).attr("datetime") : $(elem).attr("title"); var iso8601 = $t.isTime(elem) ? $(elem).attr("datetime") : $(elem).attr("title")
return $t.parse(iso8601); return $t.parse(iso8601)
}, },
isTime: function (elem) { isTime: function (elem) {
// jQuery's `is()` doesn't play well with HTML5 in IE // jQuery's `is()` doesn't play well with HTML5 in IE
return $(elem).get(0).tagName.toLowerCase() === "time"; // $(elem).is("time"); return $(elem).get(0).tagName.toLowerCase() === "time" // $(elem).is("time");
} }
}); })
// functions that can be called via $(el).timeago('action') // functions that can be called via $(el).timeago('action')
// init is default when no action is given // init is default when no action is given
// functions are called with context of a single element // functions are called with context of a single element
var functions = { var functions = {
init: function () { init: function () {
functions.dispose.call(this); functions.dispose.call(this)
var refresh_el = $.proxy(refresh, this); var refresh_el = $.proxy(refresh, this)
refresh_el(); refresh_el()
var $s = $t.settings; var $s = $t.settings
if ($s.refreshMillis > 0) { if ($s.refreshMillis > 0) {
this._timeagoInterval = setInterval(refresh_el, $s.refreshMillis); this._timeagoInterval = setInterval(refresh_el, $s.refreshMillis)
} }
}, },
update: function (timestamp) { update: function (timestamp) {
var date = (timestamp instanceof Date) ? timestamp : $t.parse(timestamp); var date = (timestamp instanceof Date) ? timestamp : $t.parse(timestamp)
$(this).data('timeago', { datetime: date }); $(this).data('timeago', { datetime: date })
if ($t.settings.localeTitle) { if ($t.settings.localeTitle) {
$(this).attr("title", date.toLocaleString()); $(this).attr("title", date.toLocaleString())
} }
refresh.apply(this); refresh.apply(this)
}, },
updateFromDOM: function () { updateFromDOM: function () {
$(this).data('timeago', { datetime: $t.parse($t.isTime(this) ? $(this).attr("datetime") : $(this).attr("title")) }); $(this).data('timeago', { datetime: $t.parse($t.isTime(this) ? $(this).attr("datetime") : $(this).attr("title")) })
refresh.apply(this); refresh.apply(this)
}, },
dispose: function () { dispose: function () {
if (this._timeagoInterval) { if (this._timeagoInterval) {
window.clearInterval(this._timeagoInterval); window.clearInterval(this._timeagoInterval)
this._timeagoInterval = null; this._timeagoInterval = null
}
} }
} }
};
$.fn.timeago = function (action, options) { $.fn.timeago = function (action, options) {
var fn = action ? functions[action] : functions.init; var fn = action ? functions[action] : functions.init
if (!fn) { if (!fn) {
throw new Error("Unknown function name '" + action + "' for timeago"); throw new Error("Unknown function name '" + action + "' for timeago")
} }
// each over objects here and call the requested function // each over objects here and call the requested function
this.each(function () { this.each(function () {
fn.call(this, options); fn.call(this, options)
}); })
return this; return this
}; }
function refresh() { function refresh() {
var $s = $t.settings; var $s = $t.settings
//check if it's still visible //check if it's still visible
if ($s.autoDispose && !$.contains(document.documentElement, this)) { if ($s.autoDispose && !$.contains(document.documentElement, this)) {
//stop if it has been removed //stop if it has been removed
$(this).timeago("dispose"); $(this).timeago("dispose")
return this; return this
} }
var data = prepareData(this); var data = prepareData(this)
if (!isNaN(data.datetime)) { if (!isNaN(data.datetime)) {
if ($s.cutoff === 0 || Math.abs(distance(data.datetime)) < $s.cutoff) { if ($s.cutoff === 0 || Math.abs(distance(data.datetime)) < $s.cutoff) {
$(this).text(inWords(data.datetime)); $(this).text(inWords(data.datetime))
} else { } else {
if ($(this).attr('title').length > 0) { if ($(this).attr('title').length > 0) {
$(this).text($(this).attr('title')); $(this).text($(this).attr('title'))
} }
} }
} }
return this; return this
} }
function prepareData(element) { function prepareData(element) {
element = $(element); element = $(element)
if (!element.data("timeago")) { if (!element.data("timeago")) {
element.data("timeago", { datetime: $t.datetime(element) }); element.data("timeago", { datetime: $t.datetime(element) })
var text = $.trim(element.text()); var text = $.trim(element.text())
if ($t.settings.localeTitle) { if ($t.settings.localeTitle) {
element.attr("title", element.data('timeago').datetime.toLocaleString()); element.attr("title", element.data('timeago').datetime.toLocaleString())
} else if (text.length > 0 && !($t.isTime(element) && element.attr("title"))) { } else if (text.length > 0 && !($t.isTime(element) && element.attr("title"))) {
element.attr("title", text); element.attr("title", text)
} }
} }
return element.data("timeago"); return element.data("timeago")
} }
function inWords(date) { function inWords(date) {
return $t.inWords(distance(date)); return $t.inWords(distance(date))
} }
function distance(date) { function distance(date) {
return (new Date().getTime() - date.getTime()); return (new Date().getTime() - date.getTime())
} }
// fix for IE6 suckage // fix for IE6 suckage
document.createElement("abbr"); document.createElement("abbr")
document.createElement("time"); document.createElement("time")
})); }))

View File

@ -92,7 +92,7 @@ var activity=[
{shortcode:"man-rowing-boat",css:"95.8333% 14.5833%"}, {shortcode:"man-rowing-boat",css:"95.8333% 14.5833%"},
{shortcode:"man-biking",css:"95.8333% 39.5833%"}, {shortcode:"man-biking",css:"95.8333% 39.5833%"},
{shortcode:"man-mountain-biking",css:"95.8333% 64.5833%"} {shortcode:"man-mountain-biking",css:"95.8333% 64.5833%"}
]; ]
var flag=[ var flag=[
{shortcode:"checkered_flag",css:"16.6667% 58.3333%"}, {shortcode:"checkered_flag",css:"16.6667% 58.3333%"},
{shortcode:"crossed_flags",css:"14.5833% 60.4167%"}, {shortcode:"crossed_flags",css:"14.5833% 60.4167%"},
@ -356,7 +356,7 @@ var flag=[
{shortcode:"rainbow-flag",css:"83.3333% 100%"}, {shortcode:"rainbow-flag",css:"83.3333% 100%"},
{shortcode:"triangular_flag_on_post",css:"54.1667% 6.25%"}, {shortcode:"triangular_flag_on_post",css:"54.1667% 6.25%"},
{shortcode:"waving_black_flag",css:"20.8333% 29.1667%"}, {shortcode:"waving_black_flag",css:"20.8333% 29.1667%"},
{shortcode:"waving_white_flag",css:"20.8333% 27.0833%"}]; {shortcode:"waving_white_flag",css:"20.8333% 27.0833%"}]
var food=[ var food=[
{shortcode:"green_apple",css:"12.5% 25%"}, {shortcode:"green_apple",css:"12.5% 25%"},
{shortcode:"apple",css:"12.5% 22.9167%"}, {shortcode:"apple",css:"12.5% 22.9167%"},
@ -444,7 +444,7 @@ var food=[
{shortcode:"spoon",css:"62.5% 14.5833%"}, {shortcode:"spoon",css:"62.5% 14.5833%"},
{shortcode:"fork_and_knife",css:"14.5833% 0%"}, {shortcode:"fork_and_knife",css:"14.5833% 0%"},
{shortcode:"knife_fork_plate",css:"14.5833% 18.75%"} {shortcode:"knife_fork_plate",css:"14.5833% 18.75%"}
]; ]
var nature=[ var nature=[
{shortcode:"dog",css:"22.9167% 62.5%"}, {shortcode:"dog",css:"22.9167% 62.5%"},
{shortcode:"cat",css:"22.9167% 52.0833%"}, {shortcode:"cat",css:"22.9167% 52.0833%"},
@ -605,7 +605,7 @@ var nature=[
{shortcode:"droplet",css:"35.4167% 39.5833%"}, {shortcode:"droplet",css:"35.4167% 39.5833%"},
{shortcode:"sweat_drops",css:"35.4167% 37.5%"}, {shortcode:"sweat_drops",css:"35.4167% 37.5%"},
{shortcode:"umbrella_with_rain_drops",css:"0% 100%"} {shortcode:"umbrella_with_rain_drops",css:"0% 100%"}
]; ]
var object=[ var object=[
{shortcode:"watch",css:"0% 29.1667%"}, {shortcode:"watch",css:"0% 29.1667%"},
{shortcode:"iphone",css:"39.5833% 0%"}, {shortcode:"iphone",css:"39.5833% 0%"},
@ -780,7 +780,7 @@ var object=[
{shortcode:"closed_lock_with_key",css:"39.5833% 62.5%"}, {shortcode:"closed_lock_with_key",css:"39.5833% 62.5%"},
{shortcode:"lock",css:"39.5833% 66.6667%"}, {shortcode:"lock",css:"39.5833% 66.6667%"},
{shortcode:"unlock",css:"39.5833% 68.75%"} {shortcode:"unlock",css:"39.5833% 68.75%"}
]; ]
var people=[ var people=[
{shortcode:"grinning",css:"45.8333% 68.75%"}, {shortcode:"grinning",css:"45.8333% 68.75%"},
{shortcode:"smiley",css:"45.8333% 75%"}, {shortcode:"smiley",css:"45.8333% 75%"},
@ -1096,7 +1096,7 @@ var people=[
{shortcode:"woman-raising-hand",css:"93.75% 29.1667%"}, {shortcode:"woman-raising-hand",css:"93.75% 29.1667%"},
{shortcode:"woman-frowning",css:"93.75% 54.1667%"}, {shortcode:"woman-frowning",css:"93.75% 54.1667%"},
{shortcode:"woman-pouting",css:"93.75% 79.1667%"} {shortcode:"woman-pouting",css:"93.75% 79.1667%"}
]; ]
var place=[ var place=[
{shortcode:"car",css:"52.0833% 60.4167%"}, {shortcode:"car",css:"52.0833% 60.4167%"},
{shortcode:"taxi",css:"52.0833% 56.25%"}, {shortcode:"taxi",css:"52.0833% 56.25%"},
@ -1217,7 +1217,7 @@ var place=[
{shortcode:"milky_way",css:"8.33333% 93.75%"}, {shortcode:"milky_way",css:"8.33333% 93.75%"},
{shortcode:"bridge_at_night",css:"8.33333% 87.5%"}, {shortcode:"bridge_at_night",css:"8.33333% 87.5%"},
{shortcode:"foggy",css:"8.33333% 70.8333%"} {shortcode:"foggy",css:"8.33333% 70.8333%"}
]; ]
var symbol=[ var symbol=[
{shortcode:"heart",css:"6.25% 62.5%"}, {shortcode:"heart",css:"6.25% 62.5%"},
{shortcode:"yellow_heart",css:"35.4167% 14.5833%"}, {shortcode:"yellow_heart",css:"35.4167% 14.5833%"},
@ -1492,7 +1492,7 @@ var symbol=[
{shortcode:"female_sign",css:"2.08333% 37.5%"}, {shortcode:"female_sign",css:"2.08333% 37.5%"},
{shortcode:"male_sign",css:"2.08333% 39.5833%"}, {shortcode:"male_sign",css:"2.08333% 39.5833%"},
{shortcode:"staff_of_aesculapius",css:"2.08333% 87.5%"} {shortcode:"staff_of_aesculapius",css:"2.08333% 87.5%"}
]; ]
var faicons=[ var faicons=[
"fa-500px", "fa-500px",
"fa-address-book", "fa-address-book",

View File

@ -83,6 +83,6 @@ var idata = {
"nitiasa.com_quote":"enabled", "nitiasa.com_quote":"enabled",
"biwakodon.com_quote":"enabled", "biwakodon.com_quote":"enabled",
"comm.cx_quote":"enabled" "comm.cx_quote":"enabled"
}; }
localStorage.setItem("instance", JSON.stringify(idata)); localStorage.setItem("instance", JSON.stringify(idata))

View File

@ -1,7 +1,7 @@
//ログアウトします //ログアウトします
function logout() { function logout() {
localStorage.removeItem("acct_" + acct_id + "_at"); localStorage.removeItem("acct_" + acct_id + "_at")
localStorage.removeItem("domain_" + acct_id); localStorage.removeItem("domain_" + acct_id)
location.href = "index.html"; location.href = "index.html"
todc(); todc()
} }

View File

@ -1,95 +1,95 @@
//日付パーサー //日付パーサー
function date(str, datetype) { function date(str, datetype) {
if (datetype == "relative") { if (datetype == "relative") {
return '<time class="timeago" datetime="' + str + '"></time>'; return '<time class="timeago" datetime="' + str + '"></time>'
} else { } else {
var date = new Date(str); var date = new Date(str)
if (datetype == "unix") { if (datetype == "unix") {
var unixm = date.getTime(); var unixm = date.getTime()
return Math.floor(unixm / 1000); return Math.floor(unixm / 1000)
} }
var now = new Date(); var now = new Date()
var month = date.getMonth() + 1; var month = date.getMonth() + 1
if (date.getMinutes() < 10) { if (date.getMinutes() < 10) {
var min = "0" + date.getMinutes(); var min = "0" + date.getMinutes()
} else { } else {
var min = date.getMinutes(); var min = date.getMinutes()
} }
var sec = null; var sec = null
if (date.getSeconds() < 10) { if (date.getSeconds() < 10) {
sec = "0" + date.getSeconds(); sec = "0" + date.getSeconds()
} else { } else {
sec = date.getSeconds(); sec = date.getSeconds()
} }
if (datetype == "full") { if (datetype == "full") {
var ret = date.getFullYear() + "/" + month + "/" + date.getDate() + "/ " + var ret = date.getFullYear() + "/" + month + "/" + date.getDate() + "/ " +
date.getHours() + ":" + min + ":" + sec; date.getHours() + ":" + min + ":" + sec
} }
if (date.getFullYear() == now.getFullYear()) { if (date.getFullYear() == now.getFullYear()) {
if (date.getMonth() == now.getMonth()) { if (date.getMonth() == now.getMonth()) {
if (date.getDate() == now.getDate()) { if (date.getDate() == now.getDate()) {
if (datetype == "medium") { if (datetype == "medium") {
var ret = '<time class="timeago" datetime="' + str + '"></time>'; var ret = '<time class="timeago" datetime="' + str + '"></time>'
} else { } else {
var ret = date.getHours() + ":" + min + ":" + sec; var ret = date.getHours() + ":" + min + ":" + sec
} }
} else { } else {
var ret = month + "/" + date.getDate() + " " + date.getHours() + ":" + var ret = month + "/" + date.getDate() + " " + date.getHours() + ":" +
min + ":" + sec; min + ":" + sec
} }
} else { } else {
var ret = month + "/" + date.getDate() + " " + date.getHours() + ":" + min + var ret = month + "/" + date.getDate() + " " + date.getHours() + ":" + min +
":" + sec; ":" + sec
} }
} else { } else {
var ret = date.getFullYear() + "/" + month + "/" + date.getDate() + " " + var ret = date.getFullYear() + "/" + month + "/" + date.getDate() + " " +
date.getHours() + ":" + min + ":" + sec; date.getHours() + ":" + min + ":" + sec
} }
if (datetype == "double") { if (datetype == "double") {
return '<time class="timeago" datetime="' + str + '"></time>/' + ret; return '<time class="timeago" datetime="' + str + '"></time>/' + ret
} else { } else {
return ret; return ret
} }
} }
} }
//特殊フォーマット(インスタンス情報で利用) //特殊フォーマット(インスタンス情報で利用)
function crat(str) { function crat(str) {
var date = new Date(str); var date = new Date(str)
var mnt = null; var mnt = null
if (date.getMonth() < 9) { if (date.getMonth() < 9) {
mnt = "0" + (date.getMonth() + 1); mnt = "0" + (date.getMonth() + 1)
} else { } else {
mnt = date.getMonth() + 1; mnt = date.getMonth() + 1
} }
if (date.getDate() < 10) { if (date.getDate() < 10) {
var dat = "0" + date.getDate(); var dat = "0" + date.getDate()
} else { } else {
var dat = date.getDate(); var dat = date.getDate()
} }
if (date.getHours() < 10) { if (date.getHours() < 10) {
var hrs = "0" + date.getHours(); var hrs = "0" + date.getHours()
} else { } else {
var hrs = date.getHours(); var hrs = date.getHours()
} }
if (date.getMinutes() < 10) { if (date.getMinutes() < 10) {
var mns = "0" + date.getMinutes(); var mns = "0" + date.getMinutes()
} else { } else {
var mns = date.getMinutes(); var mns = date.getMinutes()
} }
if (date.getSeconds() < 10) { if (date.getSeconds() < 10) {
var sec = "0" + date.getSeconds(); var sec = "0" + date.getSeconds()
} else { } else {
var sec = date.getSeconds(); var sec = date.getSeconds()
} }
format_str = 'YYYY-MM-DD hh:mm:ss'; format_str = 'YYYY-MM-DD hh:mm:ss'
format_str = format_str.replace(/YYYY/g, date.getFullYear()); format_str = format_str.replace(/YYYY/g, date.getFullYear())
format_str = format_str.replace(/MM/g, mnt); format_str = format_str.replace(/MM/g, mnt)
format_str = format_str.replace(/DD/g, dat); format_str = format_str.replace(/DD/g, dat)
format_str = format_str.replace(/hh/g, hrs); format_str = format_str.replace(/hh/g, hrs)
format_str = format_str.replace(/mm/g, mns); format_str = format_str.replace(/mm/g, mns)
format_str = format_str.replace(/ss/g, sec); format_str = format_str.replace(/ss/g, sec)
return format_str; return format_str
} }

View File

@ -1,49 +1,49 @@
//ディレクトリ //ディレクトリ
//ディレクトリトグル //ディレクトリトグル
function dirMenu() { function dirMenu() {
$("#dir-contents").html(""); $("#dir-contents").html("")
directory(); directory()
$("#left-menu a").removeClass("active"); $("#left-menu a").removeClass("active")
$("#dirMenu").addClass("active"); $("#dirMenu").addClass("active")
$(".menu-content").addClass("hide"); $(".menu-content").addClass("hide")
$("#dir-box").removeClass("hide"); $("#dir-box").removeClass("hide")
} }
function dirselCk() { function dirselCk() {
var acct = $("#dir-acct-sel").val(); var acct = $("#dir-acct-sel").val()
if (acct == "noauth") { if (acct == "noauth") {
$("#dirNoAuth").removeClass("hide"); $("#dirNoAuth").removeClass("hide")
} else { } else {
$("#dirNoAuth").addClass("hide"); $("#dirNoAuth").addClass("hide")
directory(); directory()
} }
} }
function directory(isMore) { function directory(isMore) {
var order = $("[name=sort]:checked").val(); var order = $("[name=sort]:checked").val()
if (!order) { if (!order) {
order = "active"; order = "active"
} }
var local_only = $("#local_only:checked").val(); var local_only = $("#local_only:checked").val()
if (local_only) { if (local_only) {
local_only = "true"; local_only = "true"
} else { } else {
local_only = "false"; local_only = "false"
} }
var acct_id = $("#dir-acct-sel").val(); var acct_id = $("#dir-acct-sel").val()
if (acct_id == "noauth") { if (acct_id == "noauth") {
var domain = $("#dirNoAuth-url").val(); var domain = $("#dirNoAuth-url").val()
var at = ""; var at = ""
} else { } else {
var domain = localStorage.getItem("domain_" + acct_id); var domain = localStorage.getItem("domain_" + acct_id)
var at = localStorage.getItem("acct_" + acct_id + "_at"); var at = localStorage.getItem("acct_" + acct_id + "_at")
} }
if (isMore) { if (isMore) {
var addOffset = $("#dir-contents .cvo").length; var addOffset = $("#dir-contents .cvo").length
} else { } else {
var addOffset = 0; var addOffset = 0
$("#dir-contents").html(""); $("#dir-contents").html("")
} }
var start = "https://" + domain + "/api/v1/directory?order=" + order + "&local=" + local_only + "&offset=" + addOffset; var start = "https://" + domain + "/api/v1/directory?order=" + order + "&local=" + local_only + "&offset=" + addOffset
console.log(start); console.log(start)
fetch(start, { fetch(start, {
method: "GET", method: "GET",
headers: { headers: {
@ -54,23 +54,23 @@ function directory(isMore) {
.then(function(response) { .then(function(response) {
if (!response.ok) { if (!response.ok) {
response.text().then(function(text) { response.text().then(function(text) {
setLog(response.url, response.status, text); setLog(response.url, response.status, text)
}); })
} }
return response.json(); return response.json()
}) })
.catch(function(error) { .catch(function(error) {
setLog(start, "JSON", error); setLog(start, "JSON", error)
console.error(error); console.error(error)
}) })
.then(function(json) { .then(function(json) {
if (json) { if (json) {
$("#moreDir").removeClass("disabled"); $("#moreDir").removeClass("disabled")
var html = userparse(json, null, acct_id, "dir", null); var html = userparse(json, null, acct_id, "dir", null)
$("#dir-contents").append(html); $("#dir-contents").append(html)
jQuery("time.timeago").timeago(); jQuery("time.timeago").timeago()
} else { } else {
$("#moreDir").addClass("disabled"); $("#moreDir").addClass("disabled")
} }
}); })
} }

View File

@ -1,8 +1,8 @@
//DM(Conv) TL //DM(Conv) TL
function dm(acct_id, tlid, type, delc, voice) { function dm(acct_id, tlid, type, delc, voice) {
var domain = localStorage.getItem("domain_" + acct_id); var domain = localStorage.getItem("domain_" + acct_id)
var at = localStorage.getItem("acct_" + acct_id + "_at"); var at = localStorage.getItem("acct_" + acct_id + "_at")
var start = "https://" + domain + "/api/v1/conversations"; var start = "https://" + domain + "/api/v1/conversations"
fetch(start, { fetch(start, {
method: "GET", method: "GET",
headers: { headers: {
@ -13,38 +13,38 @@ function dm(acct_id, tlid, type, delc, voice) {
.then(function(response) { .then(function(response) {
if (!response.ok) { if (!response.ok) {
response.text().then(function(text) { response.text().then(function(text) {
setLog(response.url, response.status, text); setLog(response.url, response.status, text)
}); })
} }
return response.json(); return response.json()
}) })
.catch(function(error) { .catch(function(error) {
todo(error); todo(error)
setLog(start, "JSON", error); setLog(start, "JSON", error)
console.error(error); console.error(error)
}) })
.then(function(json) { .then(function(json) {
var templete = '<div id="convList' + tlid + '">' + dmListParse(json, type, acct_id, tlid, "", mute) + "</div>"; var templete = '<div id="convList' + tlid + '">' + dmListParse(json, type, acct_id, tlid, "", mute) + "</div>"
localStorage.setItem("lastobj_" + tlid, json[0].id); localStorage.setItem("lastobj_" + tlid, json[0].id)
$("#timeline_" + tlid).html(templete); $("#timeline_" + tlid).html(templete)
additional(acct_id, tlid); additional(acct_id, tlid)
jQuery("time.timeago").timeago(); jQuery("time.timeago").timeago()
todc(); todc()
//reload(type, '', acct_id, tlid, data, mute, delc,voice); //reload(type, '', acct_id, tlid, data, mute, delc,voice);
$(window).scrollTop(0); $(window).scrollTop(0)
}); })
} }
function dmmore(tlid) { function dmmore(tlid) {
var multi = localStorage.getItem("column"); var multi = localStorage.getItem("column")
var obj = JSON.parse(multi); var obj = JSON.parse(multi)
var acct_id = obj[tlid].domain; var acct_id = obj[tlid].domain
var domain = localStorage.getItem("domain_" + acct_id); var domain = localStorage.getItem("domain_" + acct_id)
var at = localStorage.getItem("acct_" + acct_id + "_at"); var at = localStorage.getItem("acct_" + acct_id + "_at")
var sid = $("#timeline_" + tlid + " .cvo") var sid = $("#timeline_" + tlid + " .cvo")
.last() .last()
.attr("unique-id"); .attr("unique-id")
var start = "https://" + domain + "/api/v1/conversations?max_id=" + sid; var start = "https://" + domain + "/api/v1/conversations?max_id=" + sid
var type = "dm"; var type = "dm"
fetch(start, { fetch(start, {
method: "GET", method: "GET",
headers: { headers: {
@ -55,444 +55,444 @@ function dmmore(tlid) {
.then(function(response) { .then(function(response) {
if (!response.ok) { if (!response.ok) {
response.text().then(function(text) { response.text().then(function(text) {
setLog(response.url, response.status, text); setLog(response.url, response.status, text)
}); })
} }
return response.json(); return response.json()
}) })
.catch(function(error) { .catch(function(error) {
todo(error); todo(error)
setLog(start, "JSON", error); setLog(start, "JSON", error)
console.error(error); console.error(error)
}) })
.then(function(json) { .then(function(json) {
var templete = '<div id="convList' + tlid + '">' + dmListParse(json, type, acct_id, tlid, "", mute) + "</div>"; var templete = '<div id="convList' + tlid + '">' + dmListParse(json, type, acct_id, tlid, "", mute) + "</div>"
$("#timeline_" + tlid).append(templete); $("#timeline_" + tlid).append(templete)
additional(acct_id, tlid); additional(acct_id, tlid)
jQuery("time.timeago").timeago(); jQuery("time.timeago").timeago()
moreloading = false; moreloading = false
}); })
} }
//DMオブジェクトパーサー(トゥート) //DMオブジェクトパーサー(トゥート)
function dmListParse(obj, mix, acct_id, tlid, popup, mutefilter) { function dmListParse(obj, mix, acct_id, tlid, popup, mutefilter) {
var templete = ""; var templete = ""
if (obj[0]) { if (obj[0]) {
localStorage.setItem("lastunix_" + tlid, date(obj[0].created_at, "unix")); localStorage.setItem("lastunix_" + tlid, date(obj[0].created_at, "unix"))
} }
var actb = localStorage.getItem("action_btns"); var actb = localStorage.getItem("action_btns")
var actb = "re,rt,fav,qt,del,pin,red"; var actb = "re,rt,fav,qt,del,pin,red"
if (actb) { if (actb) {
var actb = actb.split(","); var actb = actb.split(",")
var disp = {}; var disp = {}
for (var k = 0; k < actb.length; k++) { for (var k = 0; k < actb.length; k++) {
if (k < 4) { if (k < 4) {
var tp = "type-a"; var tp = "type-a"
} else { } else {
var tp = "type-b"; var tp = "type-b"
} }
disp[actb[k]] = tp; disp[actb[k]] = tp
} }
} }
var datetype = localStorage.getItem("datetype"); var datetype = localStorage.getItem("datetype")
var nsfwtype = localStorage.getItem("nsfw"); var nsfwtype = localStorage.getItem("nsfw")
var sent = localStorage.getItem("sentence"); var sent = localStorage.getItem("sentence")
var ltr = localStorage.getItem("letters"); var ltr = localStorage.getItem("letters")
var gif = localStorage.getItem("gif"); var gif = localStorage.getItem("gif")
var imh = localStorage.getItem("img-height"); var imh = localStorage.getItem("img-height")
//独自ロケール //独自ロケール
var locale = localStorage.getItem("locale"); var locale = localStorage.getItem("locale")
if (locale == "yes") { if (locale == "yes") {
var locale = false; var locale = false
} }
//ネイティブ通知 //ネイティブ通知
var native = localStorage.getItem("nativenotf"); var native = localStorage.getItem("nativenotf")
if (!native) { if (!native) {
native = "yes"; native = "yes"
} }
//クライアント強調 //クライアント強調
var emp = localStorage.getItem("client_emp"); var emp = localStorage.getItem("client_emp")
if (emp) { if (emp) {
var emp = JSON.parse(emp); var emp = JSON.parse(emp)
} }
//クライアントミュート //クライアントミュート
var mute = localStorage.getItem("client_mute"); var mute = localStorage.getItem("client_mute")
if (mute) { if (mute) {
var mute = JSON.parse(mute); var mute = JSON.parse(mute)
} }
//ユーザー強調 //ユーザー強調
var useremp = localStorage.getItem("user_emp"); var useremp = localStorage.getItem("user_emp")
if (useremp) { if (useremp) {
var useremp = JSON.parse(useremp); var useremp = JSON.parse(useremp)
} }
//ワード強調 //ワード強調
var wordemp = localStorage.getItem("word_emp"); var wordemp = localStorage.getItem("word_emp")
if (wordemp) { if (wordemp) {
var wordemp = JSON.parse(wordemp); var wordemp = JSON.parse(wordemp)
} }
//ワードミュート //ワードミュート
var wordmute = localStorage.getItem("word_mute"); var wordmute = localStorage.getItem("word_mute")
if (wordmute) { if (wordmute) {
var wordmute = JSON.parse(wordmute); var wordmute = JSON.parse(wordmute)
wordmute = wordmute.concat(mutefilter); wordmute = wordmute.concat(mutefilter)
} else { } else {
wordmute = mutefilter; wordmute = mutefilter
} }
//Ticker //Ticker
var tickerck = localStorage.getItem("ticker_ok"); var tickerck = localStorage.getItem("ticker_ok")
if (tickerck) { if (tickerck) {
var ticker = true; var ticker = true
} else { } else {
var ticker = false; var ticker = false
} }
//Cards //Cards
var card = localStorage.getItem("card_" + tlid); var card = localStorage.getItem("card_" + tlid)
if (!sent) { if (!sent) {
var sent = 500; var sent = 500
} }
if (!ltr) { if (!ltr) {
var ltr = 500; var ltr = 500
} }
if (!nsfwtype || nsfwtype == "yes") { if (!nsfwtype || nsfwtype == "yes") {
var nsfw = "ok"; var nsfw = "ok"
} else { } else {
var nsfw; var nsfw
} }
var cwtype = localStorage.getItem("cw"); var cwtype = localStorage.getItem("cw")
if (!cwtype || cwtype == "yes") { if (!cwtype || cwtype == "yes") {
var cw = "ok"; var cw = "ok"
} else { } else {
var cw; var cw
} }
if (!datetype) { if (!datetype) {
datetype = "absolute"; datetype = "absolute"
} }
if (!gif) { if (!gif) {
var gif = "yes"; var gif = "yes"
} }
if (!imh) { if (!imh) {
var imh = "200"; var imh = "200"
} }
if (!emp) { if (!emp) {
var emp = []; var emp = []
} }
if (!mute) { if (!mute) {
var mute = []; var mute = []
} }
if (!useremp) { if (!useremp) {
var useremp = []; var useremp = []
} }
if (!wordemp) { if (!wordemp) {
var wordemp = []; var wordemp = []
} }
if (!wordmute) { if (!wordmute) {
var wordmute = []; var wordmute = []
} }
//via通知 //via通知
var viashow = localStorage.getItem("viashow"); var viashow = localStorage.getItem("viashow")
if (!viashow) { if (!viashow) {
viashow = "via-hide"; viashow = "via-hide"
} }
if (viashow == "hide") { if (viashow == "hide") {
viashow = "via-hide"; viashow = "via-hide"
} }
//認証なしTL //認証なしTL
if (mix == "noauth") { if (mix == "noauth") {
var noauth = "hide"; var noauth = "hide"
var antinoauth = ""; var antinoauth = ""
} else { } else {
var noauth = ""; var noauth = ""
var antinoauth = "hide"; var antinoauth = "hide"
} }
//マウスオーバーのみ //マウスオーバーのみ
var mouseover = localStorage.getItem("mouseover"); var mouseover = localStorage.getItem("mouseover")
if (!mouseover) { if (!mouseover) {
mouseover = ""; mouseover = ""
} else if (mouseover == "yes" || mouseover == "click") { } else if (mouseover == "yes" || mouseover == "click") {
mouseover = "hide"; mouseover = "hide"
} else if (mouseover == "no") { } else if (mouseover == "no") {
mouseover = ""; mouseover = ""
} }
var local = []; var local = []
var times = []; var times = []
Object.keys(obj).forEach(function(key) { Object.keys(obj).forEach(function(key) {
var conv_id = obj[key].id; var conv_id = obj[key].id
var toot = obj[key].last_status; var toot = obj[key].last_status
var dis_name = escapeHTML(toot.account.display_name); var dis_name = escapeHTML(toot.account.display_name)
if (toot.account.emojis) { if (toot.account.emojis) {
var actemojick = toot.account.emojis[0]; var actemojick = toot.account.emojis[0]
} else { } else {
var actemojick = false; var actemojick = false
} }
//絵文字があれば //絵文字があれば
if (actemojick) { if (actemojick) {
Object.keys(toot.account.emojis).forEach(function(key5) { Object.keys(toot.account.emojis).forEach(function(key5) {
var emoji = toot.account.emojis[key5]; var emoji = toot.account.emojis[key5]
var shortcode = emoji.shortcode; var shortcode = emoji.shortcode
var emoji_url = '<img src="' + emoji.url + '" class="emoji-img" data-emoji="' + shortcode + '" alt=" :' + shortcode + ': ">'; var emoji_url = '<img src="' + emoji.url + '" class="emoji-img" data-emoji="' + shortcode + '" alt=" :' + shortcode + ': ">'
var regExp = new RegExp(":" + shortcode + ":", "g"); var regExp = new RegExp(":" + shortcode + ":", "g")
dis_name = dis_name.replace(regExp, emoji_url); dis_name = dis_name.replace(regExp, emoji_url)
}); })
} }
var noticeavatar = ""; var noticeavatar = ""
var if_notf = ""; var if_notf = ""
var uniqueid = toot.id; var uniqueid = toot.id
var notice = ""; var notice = ""
var boostback = ""; var boostback = ""
//ユーザー強調 //ユーザー強調
if (toot.account.username != toot.account.acct) { if (toot.account.username != toot.account.acct) {
var fullname = toot.account.acct; var fullname = toot.account.acct
} else { } else {
var domain = localStorage.getItem("domain_" + acct_id); var domain = localStorage.getItem("domain_" + acct_id)
var fullname = toot.account.acct + "@" + domain; var fullname = toot.account.acct + "@" + domain
} }
if (useremp) { if (useremp) {
Object.keys(useremp).forEach(function(key10) { Object.keys(useremp).forEach(function(key10) {
var user = useremp[key10]; var user = useremp[key10]
if (user == fullname) { if (user == fullname) {
boostback = "emphasized"; boostback = "emphasized"
} }
}); })
} }
var id = toot.id; var id = toot.id
var home = ""; var home = ""
if (toot.account.locked) { if (toot.account.locked) {
var locked = ' <i class="fas fa-lock red-text"></i>'; var locked = ' <i class="fas fa-lock red-text"></i>'
} else { } else {
var locked = ""; var locked = ""
} }
if (!toot.application) { if (!toot.application) {
var via = ""; var via = ""
viashow = "hide"; viashow = "hide"
} else { } else {
var via = escapeHTML(toot.application.name); var via = escapeHTML(toot.application.name)
//強調チェック //強調チェック
Object.keys(emp).forEach(function(key6) { Object.keys(emp).forEach(function(key6) {
var cli = emp[key6]; var cli = emp[key6]
if (cli == via) { if (cli == via) {
boostback = "emphasized"; boostback = "emphasized"
} }
}); })
//ミュートチェック //ミュートチェック
Object.keys(mute).forEach(function(key7) { Object.keys(mute).forEach(function(key7) {
var cli = mute[key7]; var cli = mute[key7]
if (cli == via) { if (cli == via) {
boostback = "hide"; boostback = "hide"
} }
}); })
} }
if (mix == "pinned") { if (mix == "pinned") {
boostback = "emphasized"; boostback = "emphasized"
} }
if (toot.spoiler_text && cw) { if (toot.spoiler_text && cw) {
var content = toot.content; var content = toot.content
var spoil = escapeHTML(toot.spoiler_text); var spoil = escapeHTML(toot.spoiler_text)
var spoiler = "cw cw_hide_" + toot.id; var spoiler = "cw cw_hide_" + toot.id
var api_spoil = "gray"; var api_spoil = "gray"
var spoiler_show = '<a href="#" onclick="cw_show(\'' + toot.id + '\')" class="nex parsed">' + lang.lang_parse_cwshow + "</a><br>"; var spoiler_show = '<a href="#" onclick="cw_show(\'' + toot.id + '\')" class="nex parsed">' + lang.lang_parse_cwshow + "</a><br>"
} else { } else {
var ct1 = toot.content.split("</p>").length + toot.content.split("<br />").length - 2; var ct1 = toot.content.split("</p>").length + toot.content.split("<br />").length - 2
var ct2 = toot.content.split("</p>").length + toot.content.split("<br>").length - 2; var ct2 = toot.content.split("</p>").length + toot.content.split("<br>").length - 2
if (ct1 > ct2) { if (ct1 > ct2) {
var ct = ct1; var ct = ct1
} else { } else {
var ct = ct2; var ct = ct2
} }
if ((sent < ct && $.mb_strlen($.strip_tags(toot.content)) > 5) || ($.strip_tags(toot.content).length > ltr && $.mb_strlen($.strip_tags(toot.content)) > 5)) { if ((sent < ct && $.mb_strlen($.strip_tags(toot.content)) > 5) || ($.strip_tags(toot.content).length > ltr && $.mb_strlen($.strip_tags(toot.content)) > 5)) {
var content = '<span class="gray">' + lang.lang_parse_fulltext + "</span><br>" + toot.content; var content = '<span class="gray">' + lang.lang_parse_fulltext + "</span><br>" + toot.content
var spoil = '<span class="cw-long-' + toot.id + '">' + $.mb_substr($.strip_tags(toot.content), 0, 100) + '</span><span class="gray">' + lang.lang_parse_autofold + "</span>"; var spoil = '<span class="cw-long-' + toot.id + '">' + $.mb_substr($.strip_tags(toot.content), 0, 100) + '</span><span class="gray">' + lang.lang_parse_autofold + "</span>"
var spoiler = "cw cw_hide_" + toot.id; var spoiler = "cw cw_hide_" + toot.id
var spoiler_show = '<a href="#" onclick="cw_show(\'' + toot.id + '\')" class="nex parsed">' + lang.lang_parse_more + "</a><br>"; var spoiler_show = '<a href="#" onclick="cw_show(\'' + toot.id + '\')" class="nex parsed">' + lang.lang_parse_more + "</a><br>"
} else { } else {
var content = toot.content; var content = toot.content
var spoil = escapeHTML(toot.spoiler_text); var spoil = escapeHTML(toot.spoiler_text)
var spoiler = ""; var spoiler = ""
var spoiler_show = ""; var spoiler_show = ""
} }
} }
var urls = $.strip_tags(content) var urls = $.strip_tags(content)
.replace(/\n/g, " ") .replace(/\n/g, " ")
.match(/https?:\/\/([-a-zA-Z0-9@.]+)\/?(?!.*((media|tags)|mentions)).*([-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#]+)?/); .match(/https?:\/\/([-a-zA-Z0-9@.]+)\/?(?!.*((media|tags)|mentions)).*([-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#]+)?/)
if (urls) { if (urls) {
var analyze = "<a onclick=\"additionalIndv('" + tlid + "'," + acct_id + ",'" + id + '\')" class="add-show pointer">' + lang.lang_parse_url + "</a><br>"; var analyze = "<a onclick=\"additionalIndv('" + tlid + "'," + acct_id + ",'" + id + '\')" class="add-show pointer">' + lang.lang_parse_url + "</a><br>"
} else { } else {
var analyze = ""; var analyze = ""
} }
var viewer = ""; var viewer = ""
var hasmedia = ""; var hasmedia = ""
var youtube = ""; var youtube = ""
if (toot.emojis) { if (toot.emojis) {
var emojick = toot.emojis[0]; var emojick = toot.emojis[0]
} else { } else {
var emojick = false; var emojick = false
} }
//絵文字があれば //絵文字があれば
if (emojick) { if (emojick) {
Object.keys(toot.emojis).forEach(function(key5) { Object.keys(toot.emojis).forEach(function(key5) {
var emoji = toot.emojis[key5]; var emoji = toot.emojis[key5]
var shortcode = emoji.shortcode; var shortcode = emoji.shortcode
var emoji_url = '<img src="' + emoji.url + '" class="emoji-img" data-emoji="' + shortcode + '" alt=" :' + shortcode + ': ">'; var emoji_url = '<img src="' + emoji.url + '" class="emoji-img" data-emoji="' + shortcode + '" alt=" :' + shortcode + ': ">'
var regExp = new RegExp(":" + shortcode + ":", "g"); var regExp = new RegExp(":" + shortcode + ":", "g")
content = content.replace(regExp, emoji_url); content = content.replace(regExp, emoji_url)
spoil = spoil.replace(regExp, emoji_url); spoil = spoil.replace(regExp, emoji_url)
}); })
} }
//ニコフレ絵文字 //ニコフレ絵文字
if (toot.profile_emojis) { if (toot.profile_emojis) {
var nicoemojick = toot.profile_emojis[0]; var nicoemojick = toot.profile_emojis[0]
} else { } else {
var nicoemojick = false; var nicoemojick = false
} }
//絵文字があれば //絵文字があれば
if (nicoemojick) { if (nicoemojick) {
Object.keys(toot.profile_emojis).forEach(function(keynico) { Object.keys(toot.profile_emojis).forEach(function(keynico) {
var emoji = toot.profile_emojis[keynico]; var emoji = toot.profile_emojis[keynico]
var shortcode = emoji.shortcode; var shortcode = emoji.shortcode
var emoji_url = '<img src="' + emoji.url + '" class="emoji-img" data-emoji="' + shortcode + '" alt=" :' + shortcode + ': ">'; var emoji_url = '<img src="' + emoji.url + '" class="emoji-img" data-emoji="' + shortcode + '" alt=" :' + shortcode + ': ">'
var regExp = new RegExp(":" + shortcode + ":", "g"); var regExp = new RegExp(":" + shortcode + ":", "g")
content = content.replace(regExp, emoji_url); content = content.replace(regExp, emoji_url)
spoil = spoil.replace(regExp, emoji_url); spoil = spoil.replace(regExp, emoji_url)
}); })
} }
//デフォ絵文字 //デフォ絵文字
content = twemoji.parse(content); content = twemoji.parse(content)
if (dis_name) { if (dis_name) {
dis_name = twemoji.parse(dis_name); dis_name = twemoji.parse(dis_name)
} }
if (spoil) { if (spoil) {
spoil = twemoji.parse(spoil); spoil = twemoji.parse(spoil)
} }
var mediack = toot.media_attachments[0]; var mediack = toot.media_attachments[0]
//メディアがあれば //メディアがあれば
var media_ids = ""; var media_ids = ""
if (mediack) { if (mediack) {
hasmedia = "hasmedia"; hasmedia = "hasmedia"
var cwdt = 100 / toot.media_attachments.length; var cwdt = 100 / toot.media_attachments.length
Object.keys(toot.media_attachments).forEach(function(key2) { Object.keys(toot.media_attachments).forEach(function(key2) {
var media = toot.media_attachments[key2]; var media = toot.media_attachments[key2]
var purl = media.preview_url; var purl = media.preview_url
media_ids = media_ids + media.id + ","; media_ids = media_ids + media.id + ","
var url = media.url; var url = media.url
if (toot.sensitive && nsfw) { if (toot.sensitive && nsfw) {
var sense = "sensitive"; var sense = "sensitive"
} else { } else {
var sense = ""; var sense = ""
} }
viewer = viewer + "<a onclick=\"imgv('" + id + "','" + key2 + "','" + acct_id + '\')" id="' + id + "-image-" + key2 + '" data-url="' + url + '" data-type="' + media.type + '" class="img-parsed"><img src="' + purl + '" class="' + sense + ' toot-img pointer" style="width:' + cwdt + "%; height:" + imh + 'px;"></a></span>'; viewer = viewer + "<a onclick=\"imgv('" + id + "','" + key2 + "','" + acct_id + '\')" id="' + id + "-image-" + key2 + '" data-url="' + url + '" data-type="' + media.type + '" class="img-parsed"><img src="' + purl + '" class="' + sense + ' toot-img pointer" style="width:' + cwdt + "%; height:" + imh + 'px;"></a></span>'
}); })
media_ids = media_ids.slice(0, -1); media_ids = media_ids.slice(0, -1)
} else { } else {
viewer = ""; viewer = ""
hasmedia = "nomedia"; hasmedia = "nomedia"
} }
var menck = toot.mentions[0]; var menck = toot.mentions[0]
var mentions = ""; var mentions = ""
//メンションであれば //メンションであれば
if (menck) { if (menck) {
mentions = ""; mentions = ""
Object.keys(toot.mentions).forEach(function(key3) { Object.keys(toot.mentions).forEach(function(key3) {
var mention = toot.mentions[key3]; var mention = toot.mentions[key3]
mentions = mentions + "<a onclick=\"udg('" + mention.id + "'," + acct_id + ')" class="pointer">@' + mention.acct + "</a> "; mentions = mentions + "<a onclick=\"udg('" + mention.id + "'," + acct_id + ')" class="pointer">@' + mention.acct + "</a> "
}); })
mentions = '<div style="float:right">' + mentions + "</div>"; mentions = '<div style="float:right">' + mentions + "</div>"
} }
var tagck = toot.tags[0]; var tagck = toot.tags[0]
var tags = ""; var tags = ""
//タグであれば //タグであれば
if (tagck) { if (tagck) {
Object.keys(toot.tags).forEach(function(key4) { Object.keys(toot.tags).forEach(function(key4) {
var tag = toot.tags[key4]; var tag = toot.tags[key4]
tags = tags + '<span class="hide" data-tag="' + tag.name + '">#' + tag.name + ":<a onclick=\"tl('tag','" + tag.name + "'," + acct_id + ',\'add\')" class="pointer" title="' + lang.lang_parse_tagTL.replace("{{tag}}", "#" + tag.name) + '">TL</a> <a onclick="brInsert(\'#' + tag.name + '\')" class="pointer" title="' + lang.lang_parse_tagtoot.replace("{{tag}}", "#" + tag.name) + '">Toot</a> ' + "<a onclick=\"tagPin('" + tag.name + '\')" class="pointer" title="' + lang.lang_parse_tagpin.replace("{{tag}}", "#" + tag.name) + '">Pin</a></span> '; tags = tags + '<span class="hide" data-tag="' + tag.name + '">#' + tag.name + ":<a onclick=\"tl('tag','" + tag.name + "'," + acct_id + ',\'add\')" class="pointer" title="' + lang.lang_parse_tagTL.replace("{{tag}}", "#" + tag.name) + '">TL</a> <a onclick="brInsert(\'#' + tag.name + '\')" class="pointer" title="' + lang.lang_parse_tagtoot.replace("{{tag}}", "#" + tag.name) + '">Toot</a> ' + "<a onclick=\"tagPin('" + tag.name + '\')" class="pointer" title="' + lang.lang_parse_tagpin.replace("{{tag}}", "#" + tag.name) + '">Pin</a></span> '
}); })
tags = '<div style="float:right">' + tags + "</div>"; tags = '<div style="float:right">' + tags + "</div>"
} }
//アニメ再生 //アニメ再生
if (gif == "yes") { if (gif == "yes") {
var avatar = toot.account.avatar; var avatar = toot.account.avatar
} else { } else {
var avatar = toot.account.avatar_static; var avatar = toot.account.avatar_static
} }
//ワードミュート //ワードミュート
if (wordmute) { if (wordmute) {
Object.keys(wordmute).forEach(function(key8) { Object.keys(wordmute).forEach(function(key8) {
var worde = wordmute[key8]; var worde = wordmute[key8]
if (worde) { if (worde) {
if (worde.tag) { if (worde.tag) {
var word = worde.tag; var word = worde.tag
} else { } else {
var word = worde; var word = worde
} }
var regExp = new RegExp(word, "g"); var regExp = new RegExp(word, "g")
if ($.strip_tags(content).match(regExp)) { if ($.strip_tags(content).match(regExp)) {
boostback = "hide by_filter"; boostback = "hide by_filter"
} }
} }
}); })
} }
//ワード強調 //ワード強調
if (wordemp) { if (wordemp) {
Object.keys(wordemp).forEach(function(key9) { Object.keys(wordemp).forEach(function(key9) {
var word = wordemp[key9]; var word = wordemp[key9]
if (word) { if (word) {
var word = word.tag; var word = word.tag
var regExp = new RegExp(word, "g"); var regExp = new RegExp(word, "g")
content = content.replace(regExp, '<span class="emp">' + escapeHTML(word) + "</span>"); content = content.replace(regExp, '<span class="emp">' + escapeHTML(word) + "</span>")
} }
}); })
} }
//日本語じゃない //日本語じゃない
if (toot.language != "ja") { if (toot.language != "ja") {
var trans = '<div class="action pin"><a onclick="trans(\'' + toot.language + '\')" class="waves-effect waves-dark btn-flat" style="padding:0" title="' + lang.lang_parse_trans + '"><i class="material-icons">g_translate</i></a></div>'; var trans = '<div class="action pin"><a onclick="trans(\'' + toot.language + '\')" class="waves-effect waves-dark btn-flat" style="padding:0" title="' + lang.lang_parse_trans + '"><i class="material-icons">g_translate</i></a></div>'
} else { } else {
var trans = ""; var trans = ""
} }
if (toot.favourited) { if (toot.favourited) {
var if_fav = " yellow-text"; var if_fav = " yellow-text"
var fav_app = "faved"; var fav_app = "faved"
} else { } else {
var if_fav = ""; var if_fav = ""
var fav_app = ""; var fav_app = ""
} }
//Cards //Cards
if (!card && toot.card) { if (!card && toot.card) {
var cards = toot.card; var cards = toot.card
if (cards.provider_name == "Twitter") { if (cards.provider_name == "Twitter") {
if (cards.image) { if (cards.image) {
var twiImg = '<br><img src="' + cards.image + '">'; var twiImg = '<br><img src="' + cards.image + '">'
} else { } else {
var twiImg = ""; var twiImg = ""
} }
analyze = '<blockquote class="twitter-tweet"><b>' + escapeHTML(cards.author_name) + "</b><br>" + escapeHTML(cards.description) + twiImg + "</blockquote>"; analyze = '<blockquote class="twitter-tweet"><b>' + escapeHTML(cards.author_name) + "</b><br>" + escapeHTML(cards.description) + twiImg + "</blockquote>"
} }
if (cards.title) { if (cards.title) {
analyze = '<span class="gray">URL' + lang.lang_cards_check + ":<br>Title:" + escapeHTML(cards.title) + "<br>" + escapeHTML(cards.description) + "</span>"; analyze = '<span class="gray">URL' + lang.lang_cards_check + ":<br>Title:" + escapeHTML(cards.title) + "<br>" + escapeHTML(cards.description) + "</span>"
} }
if (cards.html) { if (cards.html) {
analyze = cards.html + '<i class="material-icons" onclick="pip(' + id + ')" title="' + lang.lang_cards_pip + '">picture_in_picture_alt</i>'; analyze = cards.html + '<i class="material-icons" onclick="pip(' + id + ')" title="' + lang.lang_cards_pip + '">picture_in_picture_alt</i>'
} }
} }
//Ticker //Ticker
var tickerdom = ""; var tickerdom = ""
if (ticker) { if (ticker) {
var tickerdata = localStorage.getItem("ticker"); var tickerdata = localStorage.getItem("ticker")
if (tickerdata) { if (tickerdata) {
var tickerdata = JSON.parse(tickerdata); var tickerdata = JSON.parse(tickerdata)
var thisdomain = toot.account.acct.split("@"); var thisdomain = toot.account.acct.split("@")
if (thisdomain.length > 1) { if (thisdomain.length > 1) {
thisdomain = thisdomain[1]; thisdomain = thisdomain[1]
} }
for (var i = 0; i < tickerdata.length; i++) { for (var i = 0; i < tickerdata.length; i++) {
var value = tickerdata[i]; var value = tickerdata[i]
if (value.domain == thisdomain) { if (value.domain == thisdomain) {
var tickerdom = '<div style="background:linear-gradient(to left,transparent, ' + value.bg + " 96%) !important; color:" + value.text + ';width:100%; height:0.9rem; font-size:0.8rem;"><img src="' + value.image + '" style="height:100%;"><span style="position:relative; top:-0.2rem;"> ' + escapeHTML(value.name) + "</span></div>"; var tickerdom = '<div style="background:linear-gradient(to left,transparent, ' + value.bg + " 96%) !important; color:" + value.text + ';width:100%; height:0.9rem; font-size:0.8rem;"><img src="' + value.image + '" style="height:100%;"><span style="position:relative; top:-0.2rem;"> ' + escapeHTML(value.name) + "</span></div>"
break; break
} }
} }
} }
} }
templete = templete + '<div id="pub_' + toot.id + '" class="cvo ' + boostback + " " + fav_app + " " + hasmedia + '" toot-id="' + id + '" unique-id="' + uniqueid + '" data-medias="' + media_ids + ' " unixtime="' + date(obj[key].created_at, "unix") + '" ' + if_notf + ' onclick="dmStatus()">' + '<div class="area-notice"><span class="gray sharesta">' + notice + home + "</span></div>" + '<div class="area-icon"><a onclick="udg(\'' + toot.account.id + "'," + acct_id + ');" user="' + toot.account.acct + '" class="udg">' + '<img src="' + avatar + '" width="40" class="prof-img" user="' + toot.account.acct + '"></a>' + noticeavatar + "</div>" + '<div class="area-display_name"><div class="flex-name"><span class="user">' + dis_name + '</span><span class="sml gray" style="overflow: hidden;white-space: nowrap;text-overflow: ellipsis; cursor:text;"> @' + toot.account.acct + locked + "</span></div>" + '<div class="flex-time"><span class="cbadge cbadge-hover pointer waves-effect" onclick="tootUriCopy(\'' + toot.url + '\');" title="' + date(toot.created_at, "absolute") + "(" + lang.lang_parse_clickcopyurl + ')"><i class="far fa-clock-o"></i>' + date(toot.created_at, datetype) + "</span>" + "</div></div>" + '<div class="area-toot">' + tickerdom + '<span class="' + api_spoil + " cw_text_" + toot.id + '"><span class="cw_text">' + spoil + "</span>" + spoiler_show + '</span><span class="toot ' + spoiler + '">' + content + "</span>" + "" + viewer + "" + "<br><a onclick=\"details('" + toot.id + "'," + acct_id + ",'" + tlid + "','dm')\" class=\"pointer waves-effect\">" + lang.lang_parse_thread + "</a></div>" + '<div class="area-vis"></div>' + "</div></div>"; templete = templete + '<div id="pub_' + toot.id + '" class="cvo ' + boostback + " " + fav_app + " " + hasmedia + '" toot-id="' + id + '" unique-id="' + uniqueid + '" data-medias="' + media_ids + ' " unixtime="' + date(obj[key].created_at, "unix") + '" ' + if_notf + ' onclick="dmStatus()">' + '<div class="area-notice"><span class="gray sharesta">' + notice + home + "</span></div>" + '<div class="area-icon"><a onclick="udg(\'' + toot.account.id + "'," + acct_id + ');" user="' + toot.account.acct + '" class="udg">' + '<img src="' + avatar + '" width="40" class="prof-img" user="' + toot.account.acct + '"></a>' + noticeavatar + "</div>" + '<div class="area-display_name"><div class="flex-name"><span class="user">' + dis_name + '</span><span class="sml gray" style="overflow: hidden;white-space: nowrap;text-overflow: ellipsis; cursor:text;"> @' + toot.account.acct + locked + "</span></div>" + '<div class="flex-time"><span class="cbadge cbadge-hover pointer waves-effect" onclick="tootUriCopy(\'' + toot.url + '\');" title="' + date(toot.created_at, "absolute") + "(" + lang.lang_parse_clickcopyurl + ')"><i class="far fa-clock-o"></i>' + date(toot.created_at, datetype) + "</span>" + "</div></div>" + '<div class="area-toot">' + tickerdom + '<span class="' + api_spoil + " cw_text_" + toot.id + '"><span class="cw_text">' + spoil + "</span>" + spoiler_show + '</span><span class="toot ' + spoiler + '">' + content + "</span>" + "" + viewer + "" + "<br><a onclick=\"details('" + toot.id + "'," + acct_id + ",'" + tlid + "','dm')\" class=\"pointer waves-effect\">" + lang.lang_parse_thread + "</a></div>" + '<div class="area-vis"></div>' + "</div></div>"
}); })
return templete; return templete
} }

File diff suppressed because it is too large Load Diff

View File

@ -120,7 +120,7 @@ function imageXhr(id, key, murl) {
element.onload = function() { element.onload = function() {
var width = element.naturalWidth var width = element.naturalWidth
if(width < 650) { if(width < 650) {
width = 650; width = 650
} }
var height = element.naturalHeight var height = element.naturalHeight
var windowH = $(window).height() var windowH = $(window).height()
@ -182,7 +182,7 @@ function zoom(z) {
$('#imagewrap img').css('height', hgt + 'px') $('#imagewrap img').css('height', hgt + 'px')
} }
//スマホ対応ドラッグ移動システム //スマホ対応ドラッグ移動システム
;(function() { (function() {
$.fn.dragScroll = function() { $.fn.dragScroll = function() {
var target = this var target = this
$(this) $(this)

View File

@ -1,24 +1,24 @@
function menu() { function menu() {
localStorage.setItem("menu-done", true); localStorage.setItem("menu-done", true)
$("#fukidashi").addClass("hide") $("#fukidashi").addClass("hide")
if (!$("#menu").hasClass("appear")) { if (!$("#menu").hasClass("appear")) {
$("#menu").addClass("appear") $("#menu").addClass("appear")
var left = localStorage.getItem("menu-left"); var left = localStorage.getItem("menu-left")
if (left > $('body').width() - $('#menu').width()) { if (left > $('body').width() - $('#menu').width()) {
left = $('body').width() - $('#menu').width(); left = $('body').width() - $('#menu').width()
} else if (left < 0) { } else if (left < 0) {
left = 0; left = 0
} }
var top = localStorage.getItem("menu-top"); var top = localStorage.getItem("menu-top")
if (top > $('body').height() - $('#menu').height()) { if (top > $('body').height() - $('#menu').height()) {
top = $('body').height() - $('#menu').height(); top = $('body').height() - $('#menu').height()
} else if (top < 0) { } else if (top < 0) {
top = 0; top = 0
} }
$('#menu').css("left", left + "px") $('#menu').css("left", left + "px")
$('#menu').css("top", top + "px") $('#menu').css("top", top + "px")
var height = localStorage.getItem("menu-height"); var height = localStorage.getItem("menu-height")
var width = localStorage.getItem("menu-width"); var width = localStorage.getItem("menu-width")
if(height){ if(height){
$('#menu').css("height", height + "px") $('#menu').css("height", height + "px")
}else{ }else{
@ -27,13 +27,13 @@ function menu() {
if(width){ if(width){
$('#menu').css("width", width + "px") $('#menu').css("width", width + "px")
} }
$('#menu').fadeIn(); $('#menu').fadeIn()
$("#menu-bar").html("TheDesk " + localStorage.getItem("ver")); $("#menu-bar").html("TheDesk " + localStorage.getItem("ver"))
$(".menu-content").addClass("hide"); $(".menu-content").addClass("hide")
$("#add-box").removeClass("hide"); $("#add-box").removeClass("hide")
$("#left-menu div").removeClass("active"); $("#left-menu div").removeClass("active")
$("#addColumnMenu").addClass("active"); $("#addColumnMenu").addClass("active")
$("#addColumnMenu").click(); $("#addColumnMenu").click()
} else { } else {
$('#menu').fadeOut() $('#menu').fadeOut()
$("#menu").removeClass("appear") $("#menu").removeClass("appear")
@ -44,35 +44,35 @@ $(function () {
$("#menu").draggable({ $("#menu").draggable({
handle: "#menu-bar", handle: "#menu-bar",
stop: function () { stop: function () {
var left = $('#menu').offset().left; var left = $('#menu').offset().left
if (left > $('body').width() - $('#menu').width()) { if (left > $('body').width() - $('#menu').width()) {
left = $('body').width() - $('#menu').width(); left = $('body').width() - $('#menu').width()
} else if (left < 0) { } else if (left < 0) {
left = 0; left = 0
} }
var top = $('#menu').offset().top; var top = $('#menu').offset().top
if (top > $('body').height() - $('#menu').height()) { if (top > $('body').height() - $('#menu').height()) {
top = $('body').height() - $('#menu').height(); top = $('body').height() - $('#menu').height()
} else if (top < 0) { } else if (top < 0) {
top = 0; top = 0
} }
localStorage.setItem("menu-left", left); localStorage.setItem("menu-left", left)
localStorage.setItem("menu-top", top); localStorage.setItem("menu-top", top)
} }
}); })
$("#menu").resizable({ $("#menu").resizable({
minHeight: 150, minHeight: 150,
minWidth: 200, minWidth: 200,
stop: function (event, ui) { stop: function (event, ui) {
localStorage.setItem("menu-height", ui.size.height); localStorage.setItem("menu-height", ui.size.height)
localStorage.setItem("menu-width", ui.size.width); localStorage.setItem("menu-width", ui.size.width)
} }
}); })
}); })
function help() { function help() {
$("#left-menu a").removeClass("active"); $("#left-menu a").removeClass("active")
$("#helpMenu").addClass("active"); $("#helpMenu").addClass("active")
$(".menu-content").addClass("hide"); $(".menu-content").addClass("hide")
$("#help-box").removeClass("hide"); $("#help-box").removeClass("hide")
postMessage(["sendSinmpleIpc", "getLogs"], "*") postMessage(["sendSinmpleIpc", "getLogs"], "*")
} }

View File

@ -1,32 +1,32 @@
function pip(id) { function pip(id) {
$("#pip-content").html($("[toot-id=" + id + "] .additional").html()); $("#pip-content").html($("[toot-id=" + id + "] .additional").html())
$("#pip").removeClass("hide"); $("#pip").removeClass("hide")
} }
function endPip() { function endPip() {
$("#pip-content").html(""); $("#pip-content").html("")
$("#pip").addClass("hide"); $("#pip").addClass("hide")
} }
function pipHoriz() { function pipHoriz() {
if ($("#pip").hasClass("pip-left")) { if ($("#pip").hasClass("pip-left")) {
$("#pip").removeClass("pip-left"); $("#pip").removeClass("pip-left")
$(".pip-horiz").text("chevron_left"); $(".pip-horiz").text("chevron_left")
$("#pip").addClass("pip-right"); $("#pip").addClass("pip-right")
} else { } else {
$("#pip").addClass("pip-left"); $("#pip").addClass("pip-left")
$("#pip").removeClass("pip-right"); $("#pip").removeClass("pip-right")
$(".pip-horiz").text("chevron_right"); $(".pip-horiz").text("chevron_right")
} }
} }
function pipVert() { function pipVert() {
if ($("#pip").hasClass("pip-top")) { if ($("#pip").hasClass("pip-top")) {
$("#pip").removeClass("pip-top"); $("#pip").removeClass("pip-top")
$("#pip").addClass("pip-bottom"); $("#pip").addClass("pip-bottom")
$(".pip-vert").text("expand_less"); $(".pip-vert").text("expand_less")
} else { } else {
$("#pip").addClass("pip-top"); $("#pip").addClass("pip-top")
$("#pip").removeClass("pip-bottom"); $("#pip").removeClass("pip-bottom")
$(".pip-vert").text("expand_more"); $(".pip-vert").text("expand_more")
} }
} }

View File

@ -1,38 +1,38 @@
var r = document.getElementById("radio"); var r = document.getElementById("radio")
function Rtoggle() { function Rtoggle() {
if ($("#radio").hasClass("play")) { if ($("#radio").hasClass("play")) {
Rstop(); Rstop()
} else { } else {
$("#radio-view").toggleClass("hide"); $("#radio-view").toggleClass("hide")
$("#radio-view").toggleClass("show"); $("#radio-view").toggleClass("show")
$("#radio-input").addClass("hide"); $("#radio-input").addClass("hide")
} }
} }
function Rplay(url, name) { function Rplay(url, name) {
$("#radio").attr('src', url); $("#radio").attr('src', url)
r.load(); r.load()
r.play(); r.play()
$("#radio").addClass("play"); $("#radio").addClass("play")
$("#radio-btn").addClass("teal-text"); $("#radio-btn").addClass("teal-text")
$("#radio-sta").html("<br>Now Playing:" + name); $("#radio-sta").html("<br>Now Playing:" + name)
} }
function Rstop() { function Rstop() {
$("#radio").attr("src", ""); $("#radio").attr("src", "")
r.pause(); r.pause()
$("#radio").removeClass("play"); $("#radio").removeClass("play")
$("#radio-btn").removeClass("teal-text"); $("#radio-btn").removeClass("teal-text")
$("#radio-sta").html(""); $("#radio-sta").html("")
} }
function Ryourself() { function Ryourself() {
$("#radio-input").removeClass("hide"); $("#radio-input").removeClass("hide")
$("#radio-view").addClass("hide"); $("#radio-view").addClass("hide")
} }
function Rselect() { function Rselect() {
$("#radio-input").addClass("hide"); $("#radio-input").addClass("hide")
$("#radio-view").removeClass("hide"); $("#radio-view").removeClass("hide")
} }
function Rinput() { function Rinput() {
var url = $("#radio-url").val(); var url = $("#radio-url").val()
Rplay(url, url) Rplay(url, url)
} }
/* /*

View File

@ -1,44 +1,44 @@
//ソートデータ読み込み //ソートデータ読み込み
function sortLoad () { function sortLoad () {
$("#sort").html(""); $("#sort").html("")
var col = localStorage.getItem("column"); var col = localStorage.getItem("column")
if (col) { if (col) {
var obj = JSON.parse(col); var obj = JSON.parse(col)
} }
Object.keys(obj).forEach(function (key) { Object.keys(obj).forEach(function (key) {
var acct = obj[key]; var acct = obj[key]
var flag = "false"; var flag = "false"
if (localStorage.getItem("card_" + key) == "true") { if (localStorage.getItem("card_" + key) == "true") {
flag = "true" flag = "true"
} }
var insert = ""; var insert = ""
if (acct.background) { if (acct.background) {
if (acct.text == "def") { if (acct.text == "def") {
} else { } else {
if (acct.text == "black") { if (acct.text == "black") {
var txhex = "000000"; var txhex = "000000"
} else if (acct.text == "white") { } else if (acct.text == "white") {
var txhex = "ffffff"; var txhex = "ffffff"
} }
insert = ' style="background-color:#' + acct.background + '; color: #' + txhex + '" '; insert = ' style="background-color:#' + acct.background + '; color: #' + txhex + '" '
} }
} }
var user = localStorage.getItem("user_" + acct.domain); var user = localStorage.getItem("user_" + acct.domain)
var domain = localStorage.getItem("domain_" + acct.domain); var domain = localStorage.getItem("domain_" + acct.domain)
if (!user || !domain) { if (!user || !domain) {
var acctdata = ""; var acctdata = ""
} else { } else {
var acctdata = user + "@" + domain; var acctdata = user + "@" + domain
} }
var html = '<li class="drag-content" data-id="' + key + '" data-flag="' + flag + '"' + insert + '><div class="sorticon"><i class="material-icons">' + icon(acct.type) + '</i></div><div class="sorttitle">' + cap(acct.type, acct.data, acct.domain) + '</div><div class="sortaction"><a onclick="goColumn(' + key + var html = '<li class="drag-content" data-id="' + key + '" data-flag="' + flag + '"' + insert + '><div class="sorticon"><i class="material-icons">' + icon(acct.type) + '</i></div><div class="sorttitle">' + cap(acct.type, acct.data, acct.domain) + '</div><div class="sortaction"><a onclick="goColumn(' + key +
')" class="setting nex"><i class="material-icons waves-effect nex" title="' + lang.lang_sort_gothis + '">forward</i></a> <a onclick="removeColumn(' + key + ')" class="setting nex"><i class="material-icons waves-effect nex" title="' + lang.lang_sort_gothis + '">forward</i></a> <a onclick="removeColumn(' + key +
')" class="setting nex"><i class="material-icons waves-effect nex" title="このカラムを削除">cancel</i></a></div><div class="sortacct">' + acctdata + '</div></li>'; ')" class="setting nex"><i class="material-icons waves-effect nex" title="このカラムを削除">cancel</i></a></div><div class="sortacct">' + acctdata + '</div></li>'
$("#sort").append(html); $("#sort").append(html)
}); })
drag(); drag()
} }
//TLのタイトル //TLのタイトル
@ -62,59 +62,59 @@ function Scap(type, data) {
} else if (type == "tootsearch") { } else if (type == "tootsearch") {
return "tootsearch(" + data + ")" return "tootsearch(" + data + ")"
} else { } else {
console.error("unknown timeline type: " + type); console.error("unknown timeline type: " + type)
} }
} }
//jquery-ui依存 //jquery-ui依存
function drag() { function drag() {
$('#sort').sortable(); $('#sort').sortable()
$('#sort').disableSelection(); $('#sort').disableSelection()
} }
//ソート指定 //ソート指定
function sort() { function sort() {
var arr = []; var arr = []
var flags = []; var flags = []
$(".drag-content").each(function (i, elem) { $(".drag-content").each(function (i, elem) {
var id = $(this).attr("data-id"); var id = $(this).attr("data-id")
var flag = $(this).attr("data-flag"); var flag = $(this).attr("data-flag")
arr.push(id) arr.push(id)
flags.push(flag); flags.push(flag)
}); })
var col = localStorage.getItem("column"); var col = localStorage.getItem("column")
var obj = JSON.parse(col); var obj = JSON.parse(col)
var newobj = []; var newobj = []
for (i = 0; i < arr.length; i++) { for (i = 0; i < arr.length; i++) {
var data = obj[arr[i]]; var data = obj[arr[i]]
var add = { var add = {
domain: data.domain, domain: data.domain,
type: data.type, type: data.type,
data: data.data, data: data.data,
background: data.background, background: data.background,
text: data.text text: data.text
}; }
newobj.push(add); newobj.push(add)
if (flags[i] == "true") { if (flags[i] == "true") {
localStorage.setItem("card_" + i, "true"); localStorage.setItem("card_" + i, "true")
} else { } else {
localStorage.removeItem("card_" + i); localStorage.removeItem("card_" + i)
} }
} }
var json = JSON.stringify(newobj); var json = JSON.stringify(newobj)
localStorage.setItem("column", json); localStorage.setItem("column", json)
$("#sort").html(""); $("#sort").html("")
M.toast({ html: "Sorted", displayLength: 3000 }) M.toast({ html: "Sorted", displayLength: 3000 })
sortLoad(); sortLoad()
parseColumn(); parseColumn()
sortMenu() sortMenu()
} }
//ソートボタントグル //ソートボタントグル
function sortMenu() { function sortMenu() {
$("#left-menu a").removeClass("active"); $("#left-menu a").removeClass("active")
$("#sortMenu").addClass("active"); $("#sortMenu").addClass("active")
$(".menu-content").addClass("hide"); $(".menu-content").addClass("hide")
$("#sort-box").removeClass("hide"); $("#sort-box").removeClass("hide")
$("#sort").html(""); $("#sort").html("")
sortLoad(); sortLoad()
} }

View File

@ -2,86 +2,86 @@
//タイムライン //タイムライン
function utlShow(user, more, acct_id) { function utlShow(user, more, acct_id) {
if (!acct_id) { if (!acct_id) {
var acct_id = $("#his-data").attr("use-acct"); var acct_id = $("#his-data").attr("use-acct")
} }
var domain = localStorage.getItem("domain_" + acct_id); var domain = localStorage.getItem("domain_" + acct_id)
var at = localStorage.getItem("acct_" + acct_id + "_at"); var at = localStorage.getItem("acct_" + acct_id + "_at")
if (user == "--now") { if (user == "--now") {
var user = $("#his-data").attr("user-id"); var user = $("#his-data").attr("user-id")
} }
if (localStorage.getItem("mode_" + domain) != "misskey") { if (localStorage.getItem("mode_" + domain) != "misskey") {
if (more) { if (more) {
var sid = $("#his-tl .cvo") var sid = $("#his-tl .cvo")
.last() .last()
.attr("toot-id"); .attr("toot-id")
var plus = "?max_id=" + sid; var plus = "?max_id=" + sid
} else { } else {
var plus = ""; var plus = ""
} }
var start = "https://" + domain + "/api/v1/accounts/" + user + "/statuses" + plus; var start = "https://" + domain + "/api/v1/accounts/" + user + "/statuses" + plus
var i = { var i = {
method: "GET", method: "GET",
headers: { headers: {
"content-type": "application/json", "content-type": "application/json",
Authorization: "Bearer " + at Authorization: "Bearer " + at
} }
}; }
} else { } else {
var req = { i: at }; var req = { i: at }
if (more) { if (more) {
var sid = $("#his-tl .cvo") var sid = $("#his-tl .cvo")
.last() .last()
.attr("toot-id"); .attr("toot-id")
req.maxId = sid; req.maxId = sid
} }
req.userId = user; req.userId = user
var start = "https://" + domain + "/api/users/notes"; var start = "https://" + domain + "/api/users/notes"
var i = { var i = {
method: "POST", method: "POST",
headers: { headers: {
"content-type": "application/json" "content-type": "application/json"
}, },
body: JSON.stringify(req) body: JSON.stringify(req)
}; }
} }
fetch(start, i) fetch(start, i)
.then(function(response) { .then(function(response) {
if (!response.ok) { if (!response.ok) {
response.text().then(function(text) { response.text().then(function(text) {
setLog(response.url, response.status, text); setLog(response.url, response.status, text)
}); })
} }
return response.json(); return response.json()
}) })
.catch(function(error) { .catch(function(error) {
todo(error); todo(error)
setLog(start, "JSON", error); setLog(start, "JSON", error)
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, "user"); var templete = misskeyParse(json, "", acct_id, "user")
} else { } else {
var templete = parse(json, "", acct_id, "user"); var templete = parse(json, "", acct_id, "user")
} }
if (!json[0]) { if (!json[0]) {
templete = lang.lang_details_nodata + "<br>"; templete = lang.lang_details_nodata + "<br>"
} }
if (more) { if (more) {
$("#his-tl-contents").append(templete); $("#his-tl-contents").append(templete)
} else { } else {
if (localStorage.getItem("mode_" + domain) != "misskey") { if (localStorage.getItem("mode_" + domain) != "misskey") {
pinutl(templete, user, acct_id); pinutl(templete, user, acct_id)
} else { } else {
$("#his-tl-contents").html(templete); $("#his-tl-contents").html(templete)
} }
} }
jQuery("time.timeago").timeago(); jQuery("time.timeago").timeago()
}); })
} }
function utlAdd() { function utlAdd() {
var acct_id = $("#his-data").attr("use-acct"); var acct_id = $("#his-data").attr("use-acct")
var user = $("#his-data").attr("user-id"); var user = $("#his-data").attr("user-id")
var add = { var add = {
domain: acct_id, domain: acct_id,
type: 'utl', type: 'utl',
@ -102,15 +102,15 @@ function utlAdd() {
//ピン留めTL //ピン留めTL
function pinutl(before, user, acct_id) { function pinutl(before, user, acct_id) {
if (!acct_id) { if (!acct_id) {
var acct_id = $("#his-data").attr("use-acct"); var acct_id = $("#his-data").attr("use-acct")
} }
var domain = localStorage.getItem("domain_" + acct_id); var domain = localStorage.getItem("domain_" + acct_id)
var at = localStorage.getItem("acct_" + acct_id + "_at"); var at = localStorage.getItem("acct_" + acct_id + "_at")
if (user == "--now") { if (user == "--now") {
var user = $("#his-data").attr("user-id"); var user = $("#his-data").attr("user-id")
} }
var plus = "?pinned=1"; var plus = "?pinned=1"
var start = "https://" + domain + "/api/v1/accounts/" + user + "/statuses" + plus; var start = "https://" + domain + "/api/v1/accounts/" + user + "/statuses" + plus
fetch(start, { fetch(start, {
method: "GET", method: "GET",
headers: { headers: {
@ -121,344 +121,344 @@ function pinutl(before, user, acct_id) {
.then(function(response) { .then(function(response) {
if (!response.ok) { if (!response.ok) {
response.text().then(function(text) { response.text().then(function(text) {
setLog(response.url, response.status, text); setLog(response.url, response.status, text)
}); })
} }
return response.json(); return response.json()
}) })
.catch(function(error) { .catch(function(error) {
todo(error); todo(error)
setLog(start, "JSON", error); setLog(start, "JSON", error)
console.error(error); console.error(error)
}) })
.then(function(json) { .then(function(json) {
var templete = parse(json, "pinned", acct_id, "user"); var templete = parse(json, "pinned", acct_id, "user")
if (!json[0]) { if (!json[0]) {
templete = ""; templete = ""
} }
$("#his-tl-contents").html(templete + before); $("#his-tl-contents").html(templete + before)
jQuery("time.timeago").timeago(); jQuery("time.timeago").timeago()
}); })
} }
//フォローリスト //フォローリスト
function flw(user, more, acct_id) { function flw(user, more, acct_id) {
if (!acct_id) { if (!acct_id) {
var acct_id = $("#his-data").attr("use-acct"); var acct_id = $("#his-data").attr("use-acct")
} }
var domain = localStorage.getItem("domain_" + acct_id); var domain = localStorage.getItem("domain_" + acct_id)
var at = localStorage.getItem("acct_" + acct_id + "_at"); var at = localStorage.getItem("acct_" + acct_id + "_at")
if (user == "--now") { if (user == "--now") {
var user = $("#his-data").attr("user-id"); var user = $("#his-data").attr("user-id")
} }
if (localStorage.getItem("mode_" + domain) == "misskey") { if (localStorage.getItem("mode_" + domain) == "misskey") {
var req = { i: at }; var req = { i: at }
if (more) { if (more) {
var sid = $("#his-follow-list .cvo") var sid = $("#his-follow-list .cvo")
.last() .last()
.attr("user-id"); .attr("user-id")
req.maxId = sid; req.maxId = sid
} }
req.userId = user; req.userId = user
var start = "https://" + domain + "/api/users/following"; var start = "https://" + domain + "/api/users/following"
var i = { var i = {
method: "POST", method: "POST",
headers: { headers: {
"content-type": "application/json" "content-type": "application/json"
}, },
body: JSON.stringify(req) body: JSON.stringify(req)
}; }
} else { } else {
if (more) { if (more) {
var sid = $("#his-follow-list .cvo") var sid = $("#his-follow-list .cvo")
.last() .last()
.attr("user-id"); .attr("user-id")
var plus = "?max_id=" + sid; var plus = "?max_id=" + sid
} else { } else {
var plus = ""; var plus = ""
} }
var start = "https://" + domain + "/api/v1/accounts/" + user + "/following" + plus; var start = "https://" + domain + "/api/v1/accounts/" + user + "/following" + plus
var i = { var i = {
method: "GET", method: "GET",
headers: { headers: {
"content-type": "application/json", "content-type": "application/json",
Authorization: "Bearer " + at Authorization: "Bearer " + at
} }
}; }
} }
fetch(start, i) fetch(start, i)
.then(function(response) { .then(function(response) {
if (!response.ok) { if (!response.ok) {
response.text().then(function(text) { response.text().then(function(text) {
setLog(response.url, response.status, text); setLog(response.url, response.status, text)
}); })
} }
return response.json(); return response.json()
}) })
.catch(function(error) { .catch(function(error) {
todo(error); todo(error)
setLog(start, "JSON", error); setLog(start, "JSON", error)
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 = misskeyUserparse(json, "", acct_id); var templete = misskeyUserparse(json, "", acct_id)
} else { } else {
var templete = userparse(json, "", acct_id); var templete = userparse(json, "", acct_id)
} }
if (templete == "") { if (templete == "") {
templete = lang.lang_details_nodata + "<br>"; templete = lang.lang_details_nodata + "<br>"
} }
if (more) { if (more) {
$("#his-follow-list-contents").append(templete); $("#his-follow-list-contents").append(templete)
} else { } else {
$("#his-follow-list-contents").html(templete); $("#his-follow-list-contents").html(templete)
} }
jQuery("time.timeago").timeago(); jQuery("time.timeago").timeago()
}); })
} }
//フォロワーリスト //フォロワーリスト
function fer(user, more, acct_id) { function fer(user, more, acct_id) {
if (!acct_id) { if (!acct_id) {
var acct_id = $("#his-data").attr("use-acct"); var acct_id = $("#his-data").attr("use-acct")
} }
var domain = localStorage.getItem("domain_" + acct_id); var domain = localStorage.getItem("domain_" + acct_id)
var at = localStorage.getItem("acct_" + acct_id + "_at"); var at = localStorage.getItem("acct_" + acct_id + "_at")
if (user == "--now") { if (user == "--now") {
var user = $("#his-data").attr("user-id"); var user = $("#his-data").attr("user-id")
} }
if (localStorage.getItem("mode_" + domain) == "misskey") { if (localStorage.getItem("mode_" + domain) == "misskey") {
var req = { i: at }; var req = { i: at }
if (more) { if (more) {
var sid = $("#his-follower-list .cvo") var sid = $("#his-follower-list .cvo")
.last() .last()
.attr("user-id"); .attr("user-id")
req.maxId = sid; req.maxId = sid
} }
req.userId = user; req.userId = user
var start = "https://" + domain + "/api/users/followers"; var start = "https://" + domain + "/api/users/followers"
var i = { var i = {
method: "POST", method: "POST",
headers: { headers: {
"content-type": "application/json" "content-type": "application/json"
}, },
body: JSON.stringify(req) body: JSON.stringify(req)
}; }
} else { } else {
if (more) { if (more) {
var sid = $("#his-follower-list .cvo") var sid = $("#his-follower-list .cvo")
.last() .last()
.attr("user-id"); .attr("user-id")
var plus = "?max_id=" + sid; var plus = "?max_id=" + sid
} else { } else {
var plus = ""; var plus = ""
} }
var start = "https://" + domain + "/api/v1/accounts/" + user + "/followers" + plus; var start = "https://" + domain + "/api/v1/accounts/" + user + "/followers" + plus
var i = { var i = {
method: "GET", method: "GET",
headers: { headers: {
"content-type": "application/json", "content-type": "application/json",
Authorization: "Bearer " + at Authorization: "Bearer " + at
} }
}; }
} }
fetch(start, i) fetch(start, i)
.then(function(response) { .then(function(response) {
if (!response.ok) { if (!response.ok) {
response.text().then(function(text) { response.text().then(function(text) {
setLog(response.url, response.status, text); setLog(response.url, response.status, text)
}); })
} }
return response.json(); return response.json()
}) })
.catch(function(error) { .catch(function(error) {
todo(error); todo(error)
setLog(start, "JSON", error); setLog(start, "JSON", error)
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 = misskeyUserparse(json, "", acct_id); var templete = misskeyUserparse(json, "", acct_id)
} else { } else {
var templete = userparse(json, "", acct_id); var templete = userparse(json, "", acct_id)
} }
if (templete == "") { if (templete == "") {
templete = lang.lang_details_nodata + "<br>"; templete = lang.lang_details_nodata + "<br>"
} }
if (more) { if (more) {
$("#his-follower-list-contents").append(templete); $("#his-follower-list-contents").append(templete)
} else { } else {
$("#his-follower-list-contents").html(templete); $("#his-follower-list-contents").html(templete)
} }
jQuery("time.timeago").timeago(); jQuery("time.timeago").timeago()
}); })
} }
//以下自分のみ //以下自分のみ
//お気に入り一覧 //お気に入り一覧
function showFav(more, acct_id) { function showFav(more, acct_id) {
if (!acct_id) { if (!acct_id) {
var acct_id = $("#his-data").attr("use-acct"); var acct_id = $("#his-data").attr("use-acct")
} }
var domain = localStorage.getItem("domain_" + acct_id); var domain = localStorage.getItem("domain_" + acct_id)
var at = localStorage.getItem("acct_" + acct_id + "_at"); var at = localStorage.getItem("acct_" + acct_id + "_at")
if (localStorage.getItem("mode_" + domain) != "misskey") { if (localStorage.getItem("mode_" + domain) != "misskey") {
if (more) { if (more) {
var sid = $("#his-fav-list .cvo") var sid = $("#his-fav-list .cvo")
.last() .last()
.attr("toot-id"); .attr("toot-id")
var plus = "?max_id=" + sid; var plus = "?max_id=" + sid
} else { } else {
var plus = ""; var plus = ""
} }
var start = "https://" + domain + "/api/v1/favourites" + plus; var start = "https://" + domain + "/api/v1/favourites" + plus
var i = { var i = {
method: "GET", method: "GET",
headers: { headers: {
"content-type": "application/json", "content-type": "application/json",
Authorization: "Bearer " + at Authorization: "Bearer " + at
} }
}; }
} else { } else {
var req = { i: at }; var req = { i: at }
if (more) { if (more) {
var sid = $("#his-fav-list .cvo") var sid = $("#his-fav-list .cvo")
.last() .last()
.attr("toot-id"); .attr("toot-id")
req.maxId = sid; req.maxId = sid
} }
var start = "https://" + domain + "/api/i/favorites"; var start = "https://" + domain + "/api/i/favorites"
var i = { var i = {
method: "POST", method: "POST",
headers: { headers: {
"content-type": "application/json" "content-type": "application/json"
}, },
body: JSON.stringify(req) body: JSON.stringify(req)
}; }
} }
fetch(start, i) fetch(start, i)
.then(function(response) { .then(function(response) {
if (!response.ok) { if (!response.ok) {
response.text().then(function(text) { response.text().then(function(text) {
setLog(response.url, response.status, text); setLog(response.url, response.status, text)
}); })
} }
return response.json(); return response.json()
}) })
.catch(function(error) { .catch(function(error) {
todo(error); todo(error)
setLog(start, "JSON", error); setLog(start, "JSON", error)
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, "user"); var templete = parse(json, "", acct_id, "user")
} else { } else {
var templete = misskeyParse(json, "", acct_id, "user"); var templete = misskeyParse(json, "", acct_id, "user")
} }
if (!json[0]) { if (!json[0]) {
templete = lang.lang_details_nodata + "<br>"; templete = lang.lang_details_nodata + "<br>"
} }
if (more) { if (more) {
$("#his-fav-list-contents").append(templete); $("#his-fav-list-contents").append(templete)
} else { } else {
$("#his-fav-list-contents").html(templete); $("#his-fav-list-contents").html(templete)
} }
jQuery("time.timeago").timeago(); jQuery("time.timeago").timeago()
}); })
} }
//ミュートリスト //ミュートリスト
function showMut(more, acct_id) { function showMut(more, acct_id) {
if (!acct_id) { if (!acct_id) {
var acct_id = $("#his-data").attr("use-acct"); var acct_id = $("#his-data").attr("use-acct")
} }
var domain = localStorage.getItem("domain_" + acct_id); var domain = localStorage.getItem("domain_" + acct_id)
var at = localStorage.getItem("acct_" + acct_id + "_at"); var at = localStorage.getItem("acct_" + acct_id + "_at")
if (localStorage.getItem("mode_" + domain) == "misskey") { if (localStorage.getItem("mode_" + domain) == "misskey") {
var req = { i: at }; var req = { i: at }
if (more) { if (more) {
var sid = $("#his-muting-list .cvo") var sid = $("#his-muting-list .cvo")
.last() .last()
.attr("user-id"); .attr("user-id")
req.maxId = sid; req.maxId = sid
} }
var start = "https://" + domain + "/api/mute/list"; var start = "https://" + domain + "/api/mute/list"
var i = { var i = {
method: "POST", method: "POST",
headers: { headers: {
"content-type": "application/json" "content-type": "application/json"
}, },
body: JSON.stringify(req) body: JSON.stringify(req)
}; }
} else { } else {
if (more) { if (more) {
var sid = $("#his-muting-list .cvo") var sid = $("#his-muting-list .cvo")
.last() .last()
.attr("user-id"); .attr("user-id")
var plus = "?max_id=" + sid; var plus = "?max_id=" + sid
} else { } else {
var plus = ""; var plus = ""
} }
var start = "https://" + domain + "/api/v1/mutes" + plus; var start = "https://" + domain + "/api/v1/mutes" + plus
var i = { var i = {
method: "GET", method: "GET",
headers: { headers: {
"content-type": "application/json", "content-type": "application/json",
Authorization: "Bearer " + at Authorization: "Bearer " + at
} }
}; }
} }
fetch(start, i) fetch(start, i)
.then(function(response) { .then(function(response) {
if (!response.ok) { if (!response.ok) {
response.text().then(function(text) { response.text().then(function(text) {
setLog(response.url, response.status, text); setLog(response.url, response.status, text)
}); })
} }
return response.json(); return response.json()
}) })
.catch(function(error) { .catch(function(error) {
todo(error); todo(error)
setLog(start, "JSON", error); setLog(start, "JSON", error)
console.error(error); console.error(error)
}) })
.then(function(json) { .then(function(json) {
if (!json[0]) { if (!json[0]) {
templete = lang.lang_details_nodata + "<br>"; templete = lang.lang_details_nodata + "<br>"
} }
var templete = userparse(json, "", acct_id); var templete = userparse(json, "", acct_id)
if (more) { if (more) {
$("#his-muting-list-contents").append(templete); $("#his-muting-list-contents").append(templete)
} else { } else {
$("#his-muting-list-contents").html(templete); $("#his-muting-list-contents").html(templete)
} }
}); })
} }
//ブロックリスト //ブロックリスト
function showBlo(more, acct_id) { function showBlo(more, acct_id) {
if (!acct_id) { if (!acct_id) {
var acct_id = $("#his-data").attr("use-acct"); var acct_id = $("#his-data").attr("use-acct")
} }
var domain = localStorage.getItem("domain_" + acct_id); var domain = localStorage.getItem("domain_" + acct_id)
if (localStorage.getItem("mode_" + domain) == "misskey") { if (localStorage.getItem("mode_" + domain) == "misskey") {
$("#his-blocking-list-contents").html(lang.lang_hisdata_notonmisskey + "<br>"); $("#his-blocking-list-contents").html(lang.lang_hisdata_notonmisskey + "<br>")
return false; return false
} }
var at = localStorage.getItem("acct_" + acct_id + "_at"); var at = localStorage.getItem("acct_" + acct_id + "_at")
if (more) { if (more) {
var sid = $("#his-blocking-list .cvo") var sid = $("#his-blocking-list .cvo")
.last() .last()
.attr("user-id"); .attr("user-id")
var plus = "?max_id=" + sid; var plus = "?max_id=" + sid
} else { } else {
var plus = ""; var plus = ""
} }
var start = "https://" + domain + "/api/v1/blocks" + plus; var start = "https://" + domain + "/api/v1/blocks" + plus
fetch(start, { fetch(start, {
method: "GET", method: "GET",
headers: { headers: {
@ -469,124 +469,124 @@ function showBlo(more, acct_id) {
.then(function(response) { .then(function(response) {
if (!response.ok) { if (!response.ok) {
response.text().then(function(text) { response.text().then(function(text) {
setLog(response.url, response.status, text); setLog(response.url, response.status, text)
}); })
} }
return response.json(); return response.json()
}) })
.catch(function(error) { .catch(function(error) {
todo(error); todo(error)
setLog(start, "JSON", error); setLog(start, "JSON", error)
console.error(error); console.error(error)
}) })
.then(function(json) { .then(function(json) {
if (!json[0]) { if (!json[0]) {
templete = lang.lang_details_nodata + "<br>"; templete = lang.lang_details_nodata + "<br>"
} }
var templete = userparse(json, "", acct_id); var templete = userparse(json, "", acct_id)
if (more) { if (more) {
$("#his-blocking-list-contents").append(templete); $("#his-blocking-list-contents").append(templete)
} else { } else {
$("#his-blocking-list-contents").html(templete); $("#his-blocking-list-contents").html(templete)
} }
jQuery("time.timeago").timeago(); jQuery("time.timeago").timeago()
}); })
} }
//フォロリクリスト //フォロリクリスト
function showReq(more, acct_id) { function showReq(more, acct_id) {
if (!acct_id) { if (!acct_id) {
var acct_id = $("#his-data").attr("use-acct"); var acct_id = $("#his-data").attr("use-acct")
} }
var domain = localStorage.getItem("domain_" + acct_id); var domain = localStorage.getItem("domain_" + acct_id)
var at = localStorage.getItem("acct_" + acct_id + "_at"); var at = localStorage.getItem("acct_" + acct_id + "_at")
if (localStorage.getItem("mode_" + domain) == "misskey") { if (localStorage.getItem("mode_" + domain) == "misskey") {
var req = { i: at }; var req = { i: at }
if (more) { if (more) {
var sid = $("#his-request-list .cvo") var sid = $("#his-request-list .cvo")
.last() .last()
.attr("user-id"); .attr("user-id")
req.maxId = sid; req.maxId = sid
} }
var start = "https://" + domain + "/following/requests/list"; var start = "https://" + domain + "/following/requests/list"
var i = { var i = {
method: "POST", method: "POST",
headers: { headers: {
"content-type": "application/json" "content-type": "application/json"
}, },
body: JSON.stringify(req) body: JSON.stringify(req)
}; }
} else { } else {
if (more) { if (more) {
var sid = $("#his-request-list .cvo") var sid = $("#his-request-list .cvo")
.last() .last()
.attr("user-id"); .attr("user-id")
var plus = "?max_id=" + sid; var plus = "?max_id=" + sid
} else { } else {
var plus = ""; var plus = ""
} }
var start = "https://" + domain + "/api/v1/follow_requests" + plus; var start = "https://" + domain + "/api/v1/follow_requests" + plus
var i = { var i = {
method: "GET", method: "GET",
headers: { headers: {
"content-type": "application/json", "content-type": "application/json",
Authorization: "Bearer " + at Authorization: "Bearer " + at
} }
}; }
} }
fetch(start, i) fetch(start, i)
.then(function(response) { .then(function(response) {
if (!response.ok) { if (!response.ok) {
response.text().then(function(text) { response.text().then(function(text) {
setLog(response.url, response.status, text); setLog(response.url, response.status, text)
}); })
} }
return response.json(); return response.json()
}) })
.catch(function(error) { .catch(function(error) {
todo(error); todo(error)
setLog(start, "JSON", error); setLog(start, "JSON", error)
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 = userparse(json, "request", acct_id); var templete = userparse(json, "request", acct_id)
} else { } else {
var templete = misskeyUserparse(json, true, acct_id); var templete = misskeyUserparse(json, true, acct_id)
} }
if (!json[0]) { if (!json[0]) {
templete = lang.lang_details_nodata + "<br>"; templete = lang.lang_details_nodata + "<br>"
} }
if (more) { if (more) {
$("#his-request-list-contents").append(templete); $("#his-request-list-contents").append(templete)
} else { } else {
$("#his-request-list-contents").html(templete); $("#his-request-list-contents").html(templete)
} }
jQuery("time.timeago").timeago(); jQuery("time.timeago").timeago()
}); })
} }
//ドメインブロックリスト //ドメインブロックリスト
function showDom(more, acct_id) { function showDom(more, acct_id) {
if (!acct_id) { if (!acct_id) {
var acct_id = $("#his-data").attr("use-acct"); var acct_id = $("#his-data").attr("use-acct")
} }
var domain = localStorage.getItem("domain_" + acct_id); var domain = localStorage.getItem("domain_" + acct_id)
if (localStorage.getItem("mode_" + domain) == "misskey") { if (localStorage.getItem("mode_" + domain) == "misskey") {
$("#his-domain-list-contents").html(lang.lang_hisdata_notonmisskey + "<br>"); $("#his-domain-list-contents").html(lang.lang_hisdata_notonmisskey + "<br>")
return false; return false
} }
var at = localStorage.getItem("acct_" + acct_id + "_at"); var at = localStorage.getItem("acct_" + acct_id + "_at")
if (more) { if (more) {
var sid = $("#his-domain-list .cvo") var sid = $("#his-domain-list .cvo")
.last() .last()
.attr("user-id"); .attr("user-id")
var plus = "?max_id=" + sid; var plus = "?max_id=" + sid
} else { } else {
var plus = ""; var plus = ""
} }
var start = "https://" + domain + "/api/v1/domain_blocks" + plus; var start = "https://" + domain + "/api/v1/domain_blocks" + plus
fetch(start, { fetch(start, {
method: "GET", method: "GET",
headers: { headers: {
@ -598,53 +598,53 @@ function showDom(more, acct_id) {
.then(function(response) { .then(function(response) {
if (!response.ok) { if (!response.ok) {
response.text().then(function(text) { response.text().then(function(text) {
setLog(response.url, response.status, text); setLog(response.url, response.status, text)
}); })
} }
return response.json(); return response.json()
}) })
.catch(function(error) { .catch(function(error) {
todo(error); todo(error)
setLog(start, "JSON", error); setLog(start, "JSON", error)
console.error(error); console.error(error)
}) })
.then(function(json) { .then(function(json) {
var templete = ""; var templete = ""
if (!json[0]) { if (!json[0]) {
templete = lang.lang_details_nodata + "<br>"; templete = lang.lang_details_nodata + "<br>"
} }
Object.keys(json).forEach(function(key) { Object.keys(json).forEach(function(key) {
var domain = json[key]; var domain = json[key]
templete = templete + domain + '<i class="material-icons gray pointer" onclick="domainblock(\'' + domain + "','DELETE')\">cancel</i>" + '<div class="divider"></div>'; templete = templete + domain + '<i class="material-icons gray pointer" onclick="domainblock(\'' + domain + "','DELETE')\">cancel</i>" + '<div class="divider"></div>'
}); })
if (more) { if (more) {
$("#his-domain-list-contents").append(templete); $("#his-domain-list-contents").append(templete)
} else { } else {
$("#his-domain-list-contents").html(templete); $("#his-domain-list-contents").html(templete)
} }
}); })
} }
//フォローレコメンデーションリスト //フォローレコメンデーションリスト
function showFrl(more, acct_id) { function showFrl(more, acct_id) {
if (!acct_id) { if (!acct_id) {
var acct_id = $("#his-data").attr("use-acct"); var acct_id = $("#his-data").attr("use-acct")
} }
var domain = localStorage.getItem("domain_" + acct_id); var domain = localStorage.getItem("domain_" + acct_id)
if (localStorage.getItem("mode_" + domain) == "misskey") { if (localStorage.getItem("mode_" + domain) == "misskey") {
$("#his-follow-recom-contents").html(lang.lang_hisdata_notonmisskey + "<br>"); $("#his-follow-recom-contents").html(lang.lang_hisdata_notonmisskey + "<br>")
return false; return false
} }
var at = localStorage.getItem("acct_" + acct_id + "_at"); var at = localStorage.getItem("acct_" + acct_id + "_at")
if (more) { if (more) {
var sid = $("#his-follow-recom-list .cvo") var sid = $("#his-follow-recom-list .cvo")
.last() .last()
.attr("user-id"); .attr("user-id")
var plus = "?max_id=" + sid; var plus = "?max_id=" + sid
} else { } else {
var plus = ""; var plus = ""
} }
var start = "https://" + domain + "/api/v1/suggestions" + plus; var start = "https://" + domain + "/api/v1/suggestions" + plus
fetch(start, { fetch(start, {
method: "GET", method: "GET",
headers: { headers: {
@ -655,36 +655,36 @@ function showFrl(more, acct_id) {
.then(function(response) { .then(function(response) {
if (!response.ok) { if (!response.ok) {
response.text().then(function(text) { response.text().then(function(text) {
setLog(response.url, response.status, text); setLog(response.url, response.status, text)
}); })
} }
return response.json(); return response.json()
}) })
.catch(function(error) { .catch(function(error) {
$("#his-follow-recom-contents").html(lang.lang_details_nodata + "(" + lang.lang_hisdata_frcreq + ")<br>"); $("#his-follow-recom-contents").html(lang.lang_details_nodata + "(" + lang.lang_hisdata_frcreq + ")<br>")
console.error(error); console.error(error)
}) })
.then(function(json) { .then(function(json) {
if (!json[0]) { if (!json[0]) {
console.warn("No suggestions(recommend) data"); console.warn("No suggestions(recommend) data")
templete = lang.lang_details_nodata + "(" + lang.lang_hisdata_frcwarn + ")<br>"; templete = lang.lang_details_nodata + "(" + lang.lang_hisdata_frcwarn + ")<br>"
} else { } else {
var templete = userparse(json, "", acct_id); var templete = userparse(json, "", acct_id)
} }
if (more) { if (more) {
$("#his-follow-recom-contents").append(templete); $("#his-follow-recom-contents").append(templete)
} else { } else {
$("#his-follow-recom-contents").html(templete); $("#his-follow-recom-contents").html(templete)
} }
jQuery("time.timeago").timeago(); jQuery("time.timeago").timeago()
}); })
} }
//Keybase //Keybase
function udAdd(acct_id, id, start) { function udAdd(acct_id, id, start) {
var domain = localStorage.getItem("domain_" + acct_id); var domain = localStorage.getItem("domain_" + acct_id)
var at = localStorage.getItem("acct_" + acct_id + "_at"); var at = localStorage.getItem("acct_" + acct_id + "_at")
var proof = "https://" + domain + "/api/v1/accounts/" + id + "/identity_proofs"; var proof = "https://" + domain + "/api/v1/accounts/" + id + "/identity_proofs"
fetch(proof, { fetch(proof, {
method: "GET", method: "GET",
headers: { headers: {
@ -696,23 +696,23 @@ function udAdd(acct_id, id, start) {
.then(function(response) { .then(function(response) {
if (!response.ok) { if (!response.ok) {
response.text().then(function(text) { response.text().then(function(text) {
setLog(response.url, response.status, text); setLog(response.url, response.status, text)
}); })
} }
return response.json(); return response.json()
}) })
.catch(function(error) { .catch(function(error) {
todo(error); todo(error)
setLog(start, "JSON", error); setLog(start, "JSON", error)
console.error(error); console.error(error)
}) })
.then(function(json) { .then(function(json) {
var fields = json; var fields = json
for (var i = 0; i < fields.length; i++) { for (var i = 0; i < fields.length; i++) {
var html = '<a href="' + fields[i].proof_url + '" target="_blank" class="cbadge teal waves-effect" style="max-width:200px;" title="' + lang.lang_hisdata_key.replace("{{set}}", escapeHTML(fields[i].provider)) + '"><i class="fas fa-key" aria-hidden="true"></i>' + escapeHTML(fields[i].provider) + ":" + escapeHTML(fields[i].provider_username) + "</a>"; var html = '<a href="' + fields[i].proof_url + '" target="_blank" class="cbadge teal waves-effect" style="max-width:200px;" title="' + lang.lang_hisdata_key.replace("{{set}}", escapeHTML(fields[i].provider)) + '"><i class="fas fa-key" aria-hidden="true"></i>' + escapeHTML(fields[i].provider) + ":" + escapeHTML(fields[i].provider_username) + "</a>"
$("#his-proof-prof").append(html); $("#his-proof-prof").append(html)
} }
}); })
fetch("https://notestock.osa-p.net/api/v1/isstock.json?id=" + start.replace("@", "users/"), { fetch("https://notestock.osa-p.net/api/v1/isstock.json?id=" + start.replace("@", "users/"), {
method: "GET", method: "GET",
headers: { headers: {
@ -722,20 +722,20 @@ function udAdd(acct_id, id, start) {
.then(function(response) { .then(function(response) {
if (!response.ok) { if (!response.ok) {
response.text().then(function(text) { response.text().then(function(text) {
setLog(response.url, response.status, text); setLog(response.url, response.status, text)
}); })
} }
return response.json(); return response.json()
}) })
.catch(function(error) { .catch(function(error) {
todo(error); todo(error)
setLog(start, "JSON", error); setLog(start, "JSON", error)
console.error(error); console.error(error)
}) })
.then(function(json) { .then(function(json) {
if (json.user.public_view) { if (json.user.public_view) {
var html = '<a href="' + json.user.url + '" target="_blank" class="cbadge purple waves-effect" style="max-width:200px;" title="Notestock">Notestock</a>'; var html = '<a href="' + json.user.url + '" target="_blank" class="cbadge purple waves-effect" style="max-width:200px;" title="Notestock">Notestock</a>'
$("#his-proof-prof").append(html); $("#his-proof-prof").append(html)
} }
}); })
} }

View File

@ -1,65 +1,65 @@
//プロフ編集 //プロフ編集
//文字系 //文字系
function profedit() { function profedit() {
var acct_id = $('#his-data').attr("use-acct"); var acct_id = $('#his-data').attr("use-acct")
todo("Updating..."); todo("Updating...")
var domain = localStorage.getItem("domain_" + acct_id); var domain = localStorage.getItem("domain_" + acct_id)
var at = localStorage.getItem("acct_" + acct_id + "_at"); var at = localStorage.getItem("acct_" + acct_id + "_at")
var start = "https://" + domain + "/api/v1/accounts/update_credentials"; var start = "https://" + domain + "/api/v1/accounts/update_credentials"
var name = $("#his-name-val").val(); var name = $("#his-name-val").val()
var des = $("#his-des-val").val(); var des = $("#his-des-val").val()
var httpreq = new XMLHttpRequest(); var httpreq = new XMLHttpRequest()
httpreq.open('PATCH', start, true); httpreq.open('PATCH', start, true)
httpreq.setRequestHeader('Content-Type', 'application/json'); httpreq.setRequestHeader('Content-Type', 'application/json')
httpreq.setRequestHeader('Authorization', 'Bearer ' + at); httpreq.setRequestHeader('Authorization', 'Bearer ' + at)
httpreq.responseType = "json"; httpreq.responseType = "json"
httpreq.send(JSON.stringify({ httpreq.send(JSON.stringify({
display_name: name, display_name: name,
note: des, note: des,
})); }))
httpreq.onreadystatechange = function () { httpreq.onreadystatechange = function () {
if (httpreq.readyState === 4) { if (httpreq.readyState === 4) {
$('#his-data').modal('close'); $('#his-data').modal('close')
todc(); todc()
} }
} }
} }
//画像系 //画像系
function imgChange(imgfile, target) { function imgChange(imgfile, target) {
var acct_id = $('#his-data').attr("use-acct"); var acct_id = $('#his-data').attr("use-acct")
todo("アップロードしています") todo("アップロードしています")
if (!imgfile.files.length) { if (!imgfile.files.length) {
console.warn("No Image to upload"); console.warn("No Image to upload")
return; return
} }
var file = imgfile.files[0]; var file = imgfile.files[0]
var fr = new FileReader(); var fr = new FileReader()
fr.onload = function (evt) { fr.onload = function (evt) {
var b64 = this.result; var b64 = this.result
var blob = toBlob(b64, 'image/png'); var blob = toBlob(b64, 'image/png')
var fd = new FormData(); var fd = new FormData()
fd.append(target, blob); fd.append(target, blob)
var domain = localStorage.getItem("domain_" + acct_id); var domain = localStorage.getItem("domain_" + acct_id)
var at = localStorage.getItem("acct_" + acct_id + "_at"); var at = localStorage.getItem("acct_" + acct_id + "_at")
var start = "https://" + domain + "/api/v1/accounts/update_credentials"; var start = "https://" + domain + "/api/v1/accounts/update_credentials"
var httpreq = new XMLHttpRequest(); var httpreq = new XMLHttpRequest()
httpreq.open('PATCH', start, true); httpreq.open('PATCH', start, true)
httpreq.upload.addEventListener("progress", progshow, false); httpreq.upload.addEventListener("progress", progshow, false)
httpreq.setRequestHeader('Authorization', 'Bearer ' + at); httpreq.setRequestHeader('Authorization', 'Bearer ' + at)
httpreq.responseType = "json"; httpreq.responseType = "json"
httpreq.send(fd); httpreq.send(fd)
httpreq.onreadystatechange = function () { httpreq.onreadystatechange = function () {
if (httpreq.readyState === 4) { if (httpreq.readyState === 4) {
var json = httpreq.response; var json = httpreq.response
if(this.status!==200){ setLog(start, this.status, this.response); } if(this.status!==200){ setLog(start, this.status, this.response) }
$('#his-data').modal('close'); $('#his-data').modal('close')
todc(); todc()
localStorage.removeItem("image"); localStorage.removeItem("image")
} }
} }
} }
$("#prof-change").html($("#prof-change").html()); $("#prof-change").html($("#prof-change").html())
$("#header-change").html($("#header-change").html()); $("#header-change").html($("#header-change").html())
fr.readAsDataURL(file); fr.readAsDataURL(file)
} }

View File

@ -1,31 +1,31 @@
//ユーザーデータ表示 //ユーザーデータ表示
localStorage.removeItem("history"); localStorage.removeItem("history")
//コード受信 //コード受信
if (location.search) { if (location.search) {
var m = location.search.match(/\?mode=([a-zA-Z-0-9]+)\&code=(.+)/); var m = location.search.match(/\?mode=([a-zA-Z-0-9]+)\&code=(.+)/)
var mode = m[1]; var mode = m[1]
var codex = m[2]; var codex = m[2]
if (mode == "user") { if (mode == "user") {
udgEx(codex, "main"); udgEx(codex, "main")
} }
} }
function udgEx(user, acct_id) { function udgEx(user, acct_id) {
if (user == "selector") { if (user == "selector") {
user = $("#his-acct").attr("fullname"); user = $("#his-acct").attr("fullname")
} }
if (acct_id == "selector") { if (acct_id == "selector") {
acct_id = $("#user-acct-sel").val(); acct_id = $("#user-acct-sel").val()
} }
if (acct_id == "main") { if (acct_id == "main") {
acct_id = localStorage.getItem("main"); acct_id = localStorage.getItem("main")
} }
console.log("Get user data of " + user); console.log("Get user data of " + user)
var domain = localStorage.getItem("domain_" + acct_id); var domain = localStorage.getItem("domain_" + acct_id)
if (localStorage.getItem("mode_" + domain) == "misskey") { if (localStorage.getItem("mode_" + domain) == "misskey") {
return false; return false
} }
var at = localStorage.getItem("acct_" + acct_id + "_at"); var at = localStorage.getItem("acct_" + acct_id + "_at")
var start = "https://" + domain + "/api/v2/search?resolve=true&q=" + encodeURIComponent(user); var start = "https://" + domain + "/api/v2/search?resolve=true&q=" + encodeURIComponent(user)
fetch(start, { fetch(start, {
method: "GET", method: "GET",
headers: { headers: {
@ -36,39 +36,39 @@ function udgEx(user, acct_id) {
.then(function(response) { .then(function(response) {
if (!response.ok) { if (!response.ok) {
response.text().then(function(text) { response.text().then(function(text) {
setLog(response.url, response.status, text); setLog(response.url, response.status, text)
}); })
} }
return response.json(); return response.json()
}) })
.catch(function(error) { .catch(function(error) {
todo(error); todo(error)
setLog(start, "JSON", error); setLog(start, "JSON", error)
console.error(error); console.error(error)
}) })
.then(function(json) { .then(function(json) {
if (json.accounts[0]) { if (json.accounts[0]) {
var id = json.accounts[0].id; var id = json.accounts[0].id
udg(id, acct_id); udg(id, acct_id)
} else { } else {
postMessage(["openUrl", user], "*"); postMessage(["openUrl", user], "*")
} }
}); })
return true; return true
} }
function udg(user, acct_id) { function udg(user, acct_id) {
reset(); reset()
if (!user) { if (!user) {
user = localStorage.getItem("user-id_" + acct_id); user = localStorage.getItem("user-id_" + acct_id)
} }
todo("User Data Loading..."); todo("User Data Loading...")
var domain = localStorage.getItem("domain_" + acct_id); var domain = localStorage.getItem("domain_" + acct_id)
if (localStorage.getItem("mode_" + domain) == "misskey") { if (localStorage.getItem("mode_" + domain) == "misskey") {
misskeyUdg(user, acct_id); misskeyUdg(user, acct_id)
return; return
} }
var at = localStorage.getItem("acct_" + acct_id + "_at"); var at = localStorage.getItem("acct_" + acct_id + "_at")
var start = "https://" + domain + "/api/v1/accounts/" + user; var start = "https://" + domain + "/api/v1/accounts/" + user
fetch(start, { fetch(start, {
method: "GET", method: "GET",
headers: { headers: {
@ -79,188 +79,188 @@ function udg(user, acct_id) {
.then(function(response) { .then(function(response) {
if (!response.ok) { if (!response.ok) {
response.text().then(function(text) { response.text().then(function(text) {
setLog(response.url, response.status, text); setLog(response.url, response.status, text)
}); })
} }
return response.json(); return response.json()
}) })
.catch(function(error) { .catch(function(error) {
todo(error); todo(error)
setLog(start, "JSON", error); setLog(start, "JSON", error)
console.error(error); console.error(error)
}) })
.then(function(json) { .then(function(json) {
//一つ前のユーザーデータ //一つ前のユーザーデータ
if (!localStorage.getItem("history")) { if (!localStorage.getItem("history")) {
$("#his-history-btn").prop("disabled", true); $("#his-history-btn").prop("disabled", true)
} else { } else {
$("#his-history-btn").prop("disabled", false); $("#his-history-btn").prop("disabled", false)
$("#his-data").attr("history", localStorage.getItem("history")); $("#his-data").attr("history", localStorage.getItem("history"))
} }
//moved設定時 //moved設定時
if (json.moved) { if (json.moved) {
M.toast({ M.toast({
html: lang.lang_showontl_movetxt + '<button class="btn-flat toast-action" onclick="udg(\'' + json.moved.id + "','" + acct_id + "')\">" + lang.lang_showontl_movebtn + "</button>", html: lang.lang_showontl_movetxt + '<button class="btn-flat toast-action" onclick="udg(\'' + json.moved.id + "','" + acct_id + "')\">" + lang.lang_showontl_movebtn + "</button>",
displayLength: 4000 displayLength: 4000
}); })
} }
$("#his-data").modal("open"); $("#his-data").modal("open")
$("#his-data").attr("user-id", user); $("#his-data").attr("user-id", user)
$("#his-data").attr("use-acct", acct_id); $("#his-data").attr("use-acct", acct_id)
if (json.username != json.acct) { if (json.username != json.acct) {
//Remote //Remote
$("#his-data").attr("remote", "true"); $("#his-data").attr("remote", "true")
var fullname = json.acct; var fullname = json.acct
} else { } else {
$("#his-data").attr("remote", "false"); $("#his-data").attr("remote", "false")
var fullname = json.acct + "@" + domain; var fullname = json.acct + "@" + domain
} }
utlShow(json.id, "", acct_id); utlShow(json.id, "", acct_id)
flw(json.id, "", acct_id); flw(json.id, "", acct_id)
fer(json.id, "", acct_id); fer(json.id, "", acct_id)
var dis_name = escapeHTML(json.display_name); var dis_name = escapeHTML(json.display_name)
dis_name = twemoji.parse(dis_name); dis_name = twemoji.parse(dis_name)
var note = json.note; var note = json.note
if (json.emojis) { if (json.emojis) {
var actemojick = json.emojis[0]; var actemojick = json.emojis[0]
} else { } else {
var actemojick = false; var actemojick = false
} }
//絵文字があれば //絵文字があれば
if (actemojick) { if (actemojick) {
Object.keys(json.emojis).forEach(function(key5) { Object.keys(json.emojis).forEach(function(key5) {
var emoji = json.emojis[key5]; var emoji = json.emojis[key5]
var shortcode = emoji.shortcode; var shortcode = emoji.shortcode
var emoji_url = '<img src="' + emoji.url + '" class="emoji-img" data-emoji="' + shortcode + '" draggable="false">'; var emoji_url = '<img src="' + emoji.url + '" class="emoji-img" data-emoji="' + shortcode + '" draggable="false">'
var regExp = new RegExp(":" + shortcode + ":", "g"); var regExp = new RegExp(":" + shortcode + ":", "g")
dis_name = dis_name.replace(regExp, emoji_url); dis_name = dis_name.replace(regExp, emoji_url)
note = note.replace(regExp, emoji_url); note = note.replace(regExp, emoji_url)
}); })
} }
//noteの解析 //noteの解析
//var tags = '<a onclick="tl(\'tag\',\'$1\',' + acct_id +',\'add\')" class="pointer parsed">#$1</a>'; //var tags = '<a onclick="tl(\'tag\',\'$1\',' + acct_id +',\'add\')" class="pointer parsed">#$1</a>';
//var mens = '<a onclick="udgEx(\'$1\',' + acct_id +')" class="pointer parsed">@$1</a>'; //var mens = '<a onclick="udgEx(\'$1\',' + acct_id +')" class="pointer parsed">@$1</a>';
//note=note.replace(/#(\S+)/gi, tags) //note=note.replace(/#(\S+)/gi, tags)
//note=note.replace(/\s@([a-zA-Z_0-9@.-]+)/gi, mens) //note=note.replace(/\s@([a-zA-Z_0-9@.-]+)/gi, mens)
$("#his-name").html(dis_name); $("#his-name").html(dis_name)
$("#his-acct").text(json.acct); $("#his-acct").text(json.acct)
$("#his-acct").attr("fullname", fullname); $("#his-acct").attr("fullname", fullname)
$("#his-prof").attr("src", json.avatar); $("#his-prof").attr("src", json.avatar)
$("#his-data").css("background-image", "url(" + json.header + ")"); $("#his-data").css("background-image", "url(" + json.header + ")")
$("#his-sta").text(json.statuses_count); $("#his-sta").text(json.statuses_count)
$("#his-follow").text(json.following_count); $("#his-follow").text(json.following_count)
var flerc = json.followers_count; var flerc = json.followers_count
if (flerc < 0) { if (flerc < 0) {
flerc = "-"; flerc = "-"
} }
$("#his-follower").text(flerc); $("#his-follower").text(flerc)
$("#his-since").text(crat(json.created_at)); $("#his-since").text(crat(json.created_at))
$("#his-openin").attr("data-href", json.url); $("#his-openin").attr("data-href", json.url)
if (json.fields) { if (json.fields) {
var table = ""; var table = ""
if (json.fields.length > 0) { if (json.fields.length > 0) {
$("#his-des").css("max-height", "250px"); $("#his-des").css("max-height", "250px")
table = '<table id="his-field">'; table = '<table id="his-field">'
for (var i = 0; i < json.fields.length; i++) { for (var i = 0; i < json.fields.length; i++) {
var fname = json.fields[i].name; var fname = json.fields[i].name
var fval = json.fields[i].value; var fval = json.fields[i].value
if (json.fields[i].verified_at) { if (json.fields[i].verified_at) {
var when = lang.lang_showontl_verified + ":" + crat(json.fields[i].verified_at); var when = lang.lang_showontl_verified + ":" + crat(json.fields[i].verified_at)
var color = "rgba(121,189,154,.25);"; var color = "rgba(121,189,154,.25);"
} else { } else {
var when = ""; var when = ""
var color = "inherit"; var color = "inherit"
} }
table = table + '<tr><td class="his-field-title">' + escapeHTML(fname) + '</td><td class="his-field-content" title="' + when + '" style="background-color:' + color + '">' + fval + "</td></tr>"; table = table + '<tr><td class="his-field-title">' + escapeHTML(fname) + '</td><td class="his-field-content" title="' + when + '" style="background-color:' + color + '">' + fval + "</td></tr>"
} }
table = table + "</table>"; table = table + "</table>"
$("#his-des").html(twemoji.parse(note)); $("#his-des").html(twemoji.parse(note))
} else { } else {
$("#his-des").css("max-height", "400px"); $("#his-des").css("max-height", "400px")
} }
$("#his-table").html(twemoji.parse(table)); $("#his-table").html(twemoji.parse(table))
} else { } else {
$("#his-des").css("max-height", "400px"); $("#his-des").css("max-height", "400px")
} }
$("#his-des").html(twemoji.parse(note)); $("#his-des").html(twemoji.parse(note))
if (json.bot) { if (json.bot) {
$("#his-bot").html(lang.lang_showontl_botacct); $("#his-bot").html(lang.lang_showontl_botacct)
} }
$("#his-des").attr("data-acct", acct_id); $("#his-des").attr("data-acct", acct_id)
$("#his-data").css("background-size", "cover"); $("#his-data").css("background-size", "cover")
$("#his-float-timeline").css("height", $("#his-data-show").height() + "px"); $("#his-float-timeline").css("height", $("#his-data-show").height() + "px")
localStorage.setItem("history", user); localStorage.setItem("history", user)
//自分の時 //自分の時
if (json.acct == localStorage.getItem("user_" + acct_id)) { if (json.acct == localStorage.getItem("user_" + acct_id)) {
showFav("", acct_id); showFav("", acct_id)
showBlo("", acct_id); showBlo("", acct_id)
showMut("", acct_id); showMut("", acct_id)
showDom("", acct_id); showDom("", acct_id)
showReq("", acct_id); showReq("", acct_id)
showFrl("", acct_id); showFrl("", acct_id)
$("#his-name-val").val(json.display_name); $("#his-name-val").val(json.display_name)
if (json.fields.length > 0) { if (json.fields.length > 0) {
if (json.fields[0]) { if (json.fields[0]) {
$("#his-f1-name").val(json.fields[0].name); $("#his-f1-name").val(json.fields[0].name)
$("#his-f1-val").val($.strip_tags(json.fields[0].value)); $("#his-f1-val").val($.strip_tags(json.fields[0].value))
} }
if (json.fields[1]) { if (json.fields[1]) {
$("#his-f2-name").val(json.fields[1].name); $("#his-f2-name").val(json.fields[1].name)
$("#his-f2-val").val($.strip_tags(json.fields[1].value)); $("#his-f2-val").val($.strip_tags(json.fields[1].value))
} }
if (json.fields[2]) { if (json.fields[2]) {
$("#his-f3-name").val(json.fields[2].name); $("#his-f3-name").val(json.fields[2].name)
$("#his-f3-val").val($.strip_tags(json.fields[2].value)); $("#his-f3-val").val($.strip_tags(json.fields[2].value))
} }
if (json.fields[3]) { if (json.fields[3]) {
$("#his-f4-name").val(json.fields[3].name); $("#his-f4-name").val(json.fields[3].name)
$("#his-f4-val").val($.strip_tags(json.fields[3].value)); $("#his-f4-val").val($.strip_tags(json.fields[3].value))
} }
} }
var des = json.note; var des = json.note
des = des.replace(/<br \/>/g, "\n"); des = des.replace(/<br \/>/g, "\n")
des = $.strip_tags(des); des = $.strip_tags(des)
$("#his-des-val").val(des); $("#his-des-val").val(des)
$("#his-follow-btn").hide(); $("#his-follow-btn").hide()
$("#his-block-btn").hide(); $("#his-block-btn").hide()
$("#his-mute-btn").hide(); $("#his-mute-btn").hide()
$("#his-notf-btn").hide(); $("#his-notf-btn").hide()
$("#his-domain-btn").hide(); $("#his-domain-btn").hide()
$("#his-emp-btn").hide(); $("#his-emp-btn").hide()
$(".only-my-data").show(); $(".only-my-data").show()
$(".only-his-data").hide(); $(".only-his-data").hide()
if (localStorage.getItem("main") == acct_id) { if (localStorage.getItem("main") == acct_id) {
$("#his-main-acct").hide(); $("#his-main-acct").hide()
} }
} else { } else {
relations(user, acct_id); relations(user, acct_id)
$(".only-my-data").hide(); $(".only-my-data").hide()
$(".only-his-data").show(); $(".only-his-data").show()
} }
todc(); todc()
if(json.locked) { if(json.locked) {
$('#his-data').addClass('locked') $('#his-data').addClass('locked')
} else { } else {
$('#his-data').removeClass('locked') $('#his-data').removeClass('locked')
} }
//外部データ取得(死かもしれないので) //外部データ取得(死かもしれないので)
udAdd(acct_id, user, json.url); udAdd(acct_id, user, json.url)
}); })
} }
function misskeyUdg(user, acct_id) { function misskeyUdg(user, acct_id) {
reset(); reset()
if (!user) { if (!user) {
user = localStorage.getItem("user-id_" + acct_id); user = localStorage.getItem("user-id_" + acct_id)
} }
todo("User Data Loading..."); todo("User Data Loading...")
var domain = localStorage.getItem("domain_" + acct_id); var domain = localStorage.getItem("domain_" + acct_id)
if (localStorage.getItem("mode_" + domain) != "misskey") { if (localStorage.getItem("mode_" + domain) != "misskey") {
udg(user, acct_id); udg(user, acct_id)
return; return
} }
var at = localStorage.getItem("acct_" + acct_id + "_at"); var at = localStorage.getItem("acct_" + acct_id + "_at")
var start = "https://" + domain + "/api/users/show"; var start = "https://" + domain + "/api/users/show"
fetch(start, { fetch(start, {
method: "POST", method: "POST",
headers: { headers: {
@ -274,127 +274,127 @@ function misskeyUdg(user, acct_id) {
.then(function(response) { .then(function(response) {
if (!response.ok) { if (!response.ok) {
response.text().then(function(text) { response.text().then(function(text) {
setLog(response.url, response.status, text); setLog(response.url, response.status, text)
}); })
} }
return response.json(); return response.json()
}) })
.catch(function(error) { .catch(function(error) {
todo(error); todo(error)
setLog(start, "JSON", error); setLog(start, "JSON", error)
console.error(error); console.error(error)
}) })
.then(function(json) { .then(function(json) {
//一つ前のユーザーデータ //一つ前のユーザーデータ
if (!localStorage.getItem("history")) { if (!localStorage.getItem("history")) {
$("#his-history-btn").prop("disabled", true); $("#his-history-btn").prop("disabled", true)
} else { } else {
$("#his-history-btn").prop("disabled", false); $("#his-history-btn").prop("disabled", false)
$("#his-data").attr("history", localStorage.getItem("history")); $("#his-data").attr("history", localStorage.getItem("history"))
} }
$("#his-data").modal("open"); $("#his-data").modal("open")
$("#his-data").attr("user-id", user); $("#his-data").attr("user-id", user)
$("#his-data").attr("use-acct", acct_id); $("#his-data").attr("use-acct", acct_id)
if (json.host) { if (json.host) {
//Remote //Remote
$("#his-data").attr("remote", "false"); $("#his-data").attr("remote", "false")
var fullname = json.username + "@" + json.host; var fullname = json.username + "@" + json.host
} else { } else {
$("#his-data").attr("remote", "false"); $("#his-data").attr("remote", "false")
var fullname = json.acct + "@" + domain; var fullname = json.acct + "@" + domain
} }
utlShow(json.id, "", acct_id); utlShow(json.id, "", acct_id)
flw(json.id, "", acct_id); flw(json.id, "", acct_id)
fer(json.id, "", acct_id); fer(json.id, "", acct_id)
if (json.name) { if (json.name) {
var dis_name = escapeHTML(json.name); var dis_name = escapeHTML(json.name)
dis_name = twemoji.parse(dis_name); dis_name = twemoji.parse(dis_name)
} else { } else {
var dis_name = json.name; var dis_name = json.name
} }
$("#his-name").html(dis_name); $("#his-name").html(dis_name)
$("#his-acct").text(json.username); $("#his-acct").text(json.username)
$("#his-acct").attr("fullname", fullname); $("#his-acct").attr("fullname", fullname)
$("#his-prof").attr("src", json.avatarUrl); $("#his-prof").attr("src", json.avatarUrl)
$("#his-data").css("background-image", "url(" + json.bannerUrl + ")"); $("#his-data").css("background-image", "url(" + json.bannerUrl + ")")
$("#his-sta").text(json.notesCount); $("#his-sta").text(json.notesCount)
$("#his-follow").text(json.followingCount); $("#his-follow").text(json.followingCount)
$("#his-follower").text(json.followersCount); $("#his-follower").text(json.followersCount)
$("#his-since").text(crat(json.createdAt)); $("#his-since").text(crat(json.createdAt))
var note = escapeHTML(json.description); var note = escapeHTML(json.description)
$("#his-des").html(twemoji.parse(note)); $("#his-des").html(twemoji.parse(note))
if (json.isCat) { if (json.isCat) {
$("#his-bot").html("Cat" + twemoji.parse("😺")); $("#his-bot").html("Cat" + twemoji.parse("😺"))
} }
$("#his-data").css("background-size", "cover"); $("#his-data").css("background-size", "cover")
localStorage.setItem("history", user); localStorage.setItem("history", user)
//自分の時 //自分の時
if (json.username == localStorage.getItem("user_" + acct_id) && !json.host) { if (json.username == localStorage.getItem("user_" + acct_id) && !json.host) {
//showFav('', acct_id); //showFav('', acct_id);
//showMut('', acct_id); //showMut('', acct_id);
//showReq('', acct_id); //showReq('', acct_id);
showFrl("", acct_id); showFrl("", acct_id)
$("#his-name-val").val(json.name); $("#his-name-val").val(json.name)
var des = json.note; var des = json.note
des = nl2br(des); des = nl2br(des)
des = $.strip_tags(des); des = $.strip_tags(des)
$("#his-des-val").val(des); $("#his-des-val").val(des)
$("#his-follow-btn").hide(); $("#his-follow-btn").hide()
$("#his-block-btn").hide(); $("#his-block-btn").hide()
$("#his-mute-btn").hide(); $("#his-mute-btn").hide()
$("#his-notf-btn").hide(); $("#his-notf-btn").hide()
$("#his-domain-btn").hide(); $("#his-domain-btn").hide()
$("#his-emp-btn").hide(); $("#his-emp-btn").hide()
$(".only-my-data").show(); $(".only-my-data").show()
$(".only-his-data").hide(); $(".only-his-data").hide()
if (localStorage.getItem("main") == acct_id) { if (localStorage.getItem("main") == acct_id) {
$("#his-main-acct").hide(); $("#his-main-acct").hide()
} }
} else { } else {
if (json.isFollowing) { if (json.isFollowing) {
//自分がフォローしている //自分がフォローしている
$("#his-data").addClass("following"); $("#his-data").addClass("following")
$("#his-follow-btn-text").text(lang.lang_status_unfollow); $("#his-follow-btn-text").text(lang.lang_status_unfollow)
hisList(user, acct_id); hisList(user, acct_id)
} else { } else {
$("#his-follow-btn-text").text(lang.lang_status_follow); $("#his-follow-btn-text").text(lang.lang_status_follow)
} }
if (json.isFollowed) { if (json.isFollowed) {
//フォローされてる //フォローされてる
$("#his-relation").text(lang.lang_showontl_followed); $("#his-relation").text(lang.lang_showontl_followed)
} }
$("#his-block-btn").hide(); $("#his-block-btn").hide()
if (json.isMuted) { if (json.isMuted) {
$("#his-data").addClass("muting"); $("#his-data").addClass("muting")
$("#his-mute-btn-text").text(lang.lang_status_unmute); $("#his-mute-btn-text").text(lang.lang_status_unmute)
} else { } else {
$("#his-mute-btn-text").text(lang.lang_status_mute); $("#his-mute-btn-text").text(lang.lang_status_mute)
} }
$(".only-my-data").hide(); $(".only-my-data").hide()
$(".only-his-data").show(); $(".only-his-data").show()
} }
todc(); todc()
}); })
} }
//一つ前のユーザーデータ表示 //一つ前のユーザーデータ表示
function historyShow() { function historyShow() {
var acct_id = $("#his-data").attr("use-acct"); var acct_id = $("#his-data").attr("use-acct")
var user = $("#his-data").attr("history"); var user = $("#his-data").attr("history")
udg(user, acct_id, "true"); udg(user, acct_id, "true")
} }
//選択アカウントのプロフ //選択アカウントのプロフ
function profShow() { function profShow() {
var acct_id = $("#post-acct-sel").val(); var acct_id = $("#post-acct-sel").val()
var user = localStorage.getItem("user-id_" + acct_id); var user = localStorage.getItem("user-id_" + acct_id)
udg(user, acct_id); udg(user, acct_id)
hide(); hide()
} }
//FF関係取得 //FF関係取得
function relations(user, acct_id) { function relations(user, acct_id) {
var domain = localStorage.getItem("domain_" + acct_id); var domain = localStorage.getItem("domain_" + acct_id)
var at = localStorage.getItem("acct_" + acct_id + "_at"); var at = localStorage.getItem("acct_" + acct_id + "_at")
var start = "https://" + domain + "/api/v1/accounts/relationships?id=" + user; var start = "https://" + domain + "/api/v1/accounts/relationships?id=" + user
fetch(start, { fetch(start, {
method: "GET", method: "GET",
headers: { headers: {
@ -405,18 +405,18 @@ function relations(user, acct_id) {
.then(function(response) { .then(function(response) {
if (!response.ok) { if (!response.ok) {
response.text().then(function(text) { response.text().then(function(text) {
setLog(response.url, response.status, text); setLog(response.url, response.status, text)
}); })
} }
return response.json(); return response.json()
}) })
.catch(function(error) { .catch(function(error) {
todo(error); todo(error)
setLog(start, "JSON", error); setLog(start, "JSON", error)
console.error(error); console.error(error)
}) })
.then(function(json) { .then(function(json) {
var json = json[0]; var json = json[0]
if(json.requested) { if(json.requested) {
//フォロリク中 //フォロリク中
$('#his-data').addClass('following') $('#his-data').addClass('following')
@ -425,138 +425,138 @@ function relations(user, acct_id) {
if (json.following) { if (json.following) {
//自分がフォローしている //自分がフォローしている
$("#his-data").addClass("following") $("#his-data").addClass("following")
$("#his-follow-btn-text").text(lang.lang_status_unfollow); $("#his-follow-btn-text").text(lang.lang_status_unfollow)
hisList(user, acct_id); hisList(user, acct_id)
} else { } else {
$("#his-follow-btn-text").text(lang.lang_status_follow); $("#his-follow-btn-text").text(lang.lang_status_follow)
} }
if (json.followed_by) { if (json.followed_by) {
//フォローされてる //フォローされてる
$("#his-relation").text(lang.lang_showontl_followed); $("#his-relation").text(lang.lang_showontl_followed)
} }
if (json.blocking) { if (json.blocking) {
$("#his-data").addClass("blocking"); $("#his-data").addClass("blocking")
$("#his-block-btn-text").text(lang.lang_status_unblock); $("#his-block-btn-text").text(lang.lang_status_unblock)
} else { } else {
$("#his-block-btn-text").text(lang.lang_status_block); $("#his-block-btn-text").text(lang.lang_status_block)
} }
if (json.muting) { if (json.muting) {
$("#his-data").addClass("muting"); $("#his-data").addClass("muting")
$("#his-mute-btn-text").text(lang.lang_status_unmute); $("#his-mute-btn-text").text(lang.lang_status_unmute)
} else { } else {
$("#his-mute-btn-text").text(lang.lang_status_mute); $("#his-mute-btn-text").text(lang.lang_status_mute)
} }
if (json.muting_notifications) { if (json.muting_notifications) {
$("#his-data").addClass("mutingNotf"); $("#his-data").addClass("mutingNotf")
$("#his-notf-btn-text").text(lang.lang_showontl_notf + lang.lang_status_unmute); $("#his-notf-btn-text").text(lang.lang_showontl_notf + lang.lang_status_unmute)
} else { } else {
$("#his-notf-btn-text").text(lang.lang_showontl_notf + lang.lang_status_mute); $("#his-notf-btn-text").text(lang.lang_showontl_notf + lang.lang_status_mute)
} }
if (json.domain_blocking) { if (json.domain_blocking) {
$("#his-data").addClass("blockingDom"); $("#his-data").addClass("blockingDom")
$("#his-domain-btn-text").text(lang.lang_showontl_domain + lang.lang_status_unblock); $("#his-domain-btn-text").text(lang.lang_showontl_domain + lang.lang_status_unblock)
} else { } else {
$("#his-domain-btn-text").text(lang.lang_showontl_domain + lang.lang_status_block); $("#his-domain-btn-text").text(lang.lang_showontl_domain + lang.lang_status_block)
} }
//Endorsed //Endorsed
if (json.endorsed) { if (json.endorsed) {
$("#his-end-btn").addClass("endorsed"); $("#his-end-btn").addClass("endorsed")
$("#his-end-btn-text").text(lang.lang_status_unendorse); $("#his-end-btn-text").text(lang.lang_status_unendorse)
} else { } else {
$("#his-end-btn").removeClass("endorsed"); $("#his-end-btn").removeClass("endorsed")
$("#his-end-btn-text").text(lang.lang_status_endorse); $("#his-end-btn-text").text(lang.lang_status_endorse)
} }
//Blocked //Blocked
if (json.blocked_by) { if (json.blocked_by) {
$("#my-data-nav .btn").addClass("disabled"); $("#my-data-nav .btn").addClass("disabled")
$(".his-var-content").hide(); $(".his-var-content").hide()
$("#his-float-blocked").show(); $("#his-float-blocked").show()
$("#his-follow-btn").hide(); $("#his-follow-btn").hide()
} }
}); })
} }
function profbrws() { function profbrws() {
var url = $("#his-openin").attr("data-href"); var url = $("#his-openin").attr("data-href")
postMessage(["openUrl", url], "*"); postMessage(["openUrl", url], "*")
} }
function setMain() { function setMain() {
var acct_id = $("#his-data").attr("use-acct"); var acct_id = $("#his-data").attr("use-acct")
localStorage.setItem("main", acct_id); localStorage.setItem("main", acct_id)
multiSelector(true); multiSelector(true)
M.toast({ html: lang.lang_manager_mainAcct, displayLength: 3000 }); M.toast({ html: lang.lang_manager_mainAcct, displayLength: 3000 })
} }
//オールリセット //オールリセット
function hisclose() { function hisclose() {
$("#his-data").modal("close"); $("#his-data").modal("close")
reset(); reset()
$("#his-data").attr("history", ""); $("#his-data").attr("history", "")
localStorage.removeItem("history"); localStorage.removeItem("history")
} }
function reset() { function reset() {
$(".his-var-content:eq(0)").show(); $(".his-var-content:eq(0)").show()
$(".his-var-content:gt(0)").hide(); $(".his-var-content:gt(0)").hide()
$("#my-data-nav .btn").removeClass("disabled"); $("#my-data-nav .btn").removeClass("disabled")
$(".active-back").removeClass("active-back"); $(".active-back").removeClass("active-back")
$(".column-first").addClass("active-back"); $(".column-first").addClass("active-back")
$("#his-name").text("Loading"); $("#his-name").text("Loading")
$("#his-acct").text(""); $("#his-acct").text("")
$("#his-prof").attr("src", "../../img/loading.svg"); $("#his-prof").attr("src", "../../img/loading.svg")
$("#his-data").css("background-image", "url(../../img/loading.svg)"); $("#his-data").css("background-image", "url(../../img/loading.svg)")
$("#his-sta").text(""); $("#his-sta").text("")
$("#his-follow").text(""); $("#his-follow").text("")
$("#his-follower").text(""); $("#his-follower").text("")
$("#his-des").html(""); $("#his-des").html("")
$("#his-data").css("background-size", "cover"); $("#his-data").css("background-size", "cover")
$("#his-since").text(""); $("#his-since").text("")
$("#his-data").removeClass("following"); $("#his-data").removeClass("following")
$("#his-data").removeClass("muting"); $("#his-data").removeClass("muting")
$("#his-data").removeClass("blocking"); $("#his-data").removeClass("blocking")
$("#his-data").removeClass("mutingNotf"); $("#his-data").removeClass("mutingNotf")
$("#his-data").removeClass("blockingDom"); $("#his-data").removeClass("blockingDom")
$("#his-end-btn").removeClass("endorsed"); $("#his-end-btn").removeClass("endorsed")
$("#his-des").css("max-height", "250px"); $("#his-des").css("max-height", "250px")
$("#his-bot").html(""); $("#his-bot").html("")
$("#his-follow-btn").show(); $("#his-follow-btn").show()
$("#his-block-btn").show(); $("#his-block-btn").show()
$("#his-mute-btn").show(); $("#his-mute-btn").show()
$("#his-notf-btn").show(); $("#his-notf-btn").show()
$("#his-domain-btn").show(); $("#his-domain-btn").show()
$("#his-emp-btn").show(); $("#his-emp-btn").show()
$("#his-follow-btn-text").text(lang.lang_status_follow); $("#his-follow-btn-text").text(lang.lang_status_follow)
$("#his-mute-btn-text").text(lang.lang_status_mute); $("#his-mute-btn-text").text(lang.lang_status_mute)
$("#his-block-btn-text").text(lang.lang_status_block); $("#his-block-btn-text").text(lang.lang_status_block)
$("#his-notf-btn").text(lang.lang_showontl_notf + lang.lang_status_mute); $("#his-notf-btn").text(lang.lang_showontl_notf + lang.lang_status_mute)
$("#his-domain-btn").text(lang.lang_showontl_domain + lang.lang_status_block); $("#his-domain-btn").text(lang.lang_showontl_domain + lang.lang_status_block)
$("#his-relation").text(""); $("#his-relation").text("")
$(".cont-series").html(""); $(".cont-series").html("")
$("#domainblock").val(""); $("#domainblock").val("")
$("#his-lists-a").html(lang.lang_showontl_listwarn); $("#his-lists-a").html(lang.lang_showontl_listwarn)
$("#his-lists-b").html(""); $("#his-lists-b").html("")
$("#his-name-val").val(""); $("#his-name-val").val("")
$("#his-des-val").val(""); $("#his-des-val").val("")
$("#his-f1-name").val(""); $("#his-f1-name").val("")
$("#his-f1-val").val(""); $("#his-f1-val").val("")
$("#his-f2-name").val(""); $("#his-f2-name").val("")
$("#his-f2-val").val(""); $("#his-f2-val").val("")
$("#his-f3-name").val(""); $("#his-f3-name").val("")
$("#his-f3-val").val(""); $("#his-f3-val").val("")
$("#his-f4-name").val(""); $("#his-f4-name").val("")
$("#his-f4-val").val(""); $("#his-f4-val").val("")
$("#his-endorse").html(""); $("#his-endorse").html("")
$("#his-openin").attr("data-href", ""); $("#his-openin").attr("data-href", "")
$("#his-float-timeline").show(); $("#his-float-timeline").show()
$("#his-float-blocked").hide(); $("#his-float-blocked").hide()
$("#his-main-acct").show(); $("#his-main-acct").show()
$("#his-proof-prof").html(""); $("#his-proof-prof").html("")
$('#his-data').removeClass('locked') $('#his-data').removeClass('locked')
$('#his-data').removeClass('requesting') $('#his-data').removeClass('requesting')
} }
$("#my-data-nav .anc-link").on("click", function() { $("#my-data-nav .anc-link").on("click", function() {
var target = $(this).attr("go"); var target = $(this).attr("go")
if (target) { if (target) {
$("#my-data-nav .anc-link").removeClass("active-back"); $("#my-data-nav .anc-link").removeClass("active-back")
$(this).addClass("active-back"); $(this).addClass("active-back")
$(target).show(); $(target).show()
$(".his-var-content:not(" + target + ")").hide(); $(".his-var-content:not(" + target + ")").hide()
} }
}); })

View File

@ -15,7 +15,9 @@
"build": "node view/make/make.js --automatic && npx electron-builder", "build": "node view/make/make.js --automatic && npx electron-builder",
"build:all": "npx electron-builder --win --linux", "build:all": "npx electron-builder --win --linux",
"build:win": "npx electron-builder --win", "build:win": "npx electron-builder --win",
"build:pwa": "node view/make/make.js --automatic --pwa" "build:pwa": "node view/make/make.js --automatic --pwa",
"lint:fix": "eslint js --fix" ,
"lint": "eslint js"
}, },
"keywords": [ "keywords": [
"mastodon", "mastodon",
@ -33,7 +35,8 @@
"url": "https://cutls.dev", "url": "https://cutls.dev",
"email": "p@cutls.com" "email": "p@cutls.com"
}, },
"contributor": [{ "contributor": [
{
"name": "とねぢ", "name": "とねぢ",
"url": "https://minohdon.jp/@toneji", "url": "https://minohdon.jp/@toneji",
"email": "solfa.tono@gmail.com" "email": "solfa.tono@gmail.com"
@ -73,6 +76,7 @@
"electron": "^9.1.1", "electron": "^9.1.1",
"electron-builder": "^22.7.0", "electron-builder": "^22.7.0",
"electron-rebuild": "^1.11.0", "electron-rebuild": "^1.11.0",
"eslint": "^7.6.0",
"readline-sync": "1.4.10" "readline-sync": "1.4.10"
}, },
"build": { "build": {

View File

@ -7,6 +7,27 @@
resolved "https://registry.yarnpkg.com/7zip-bin/-/7zip-bin-5.0.3.tgz#bc5b5532ecafd923a61f2fb097e3b108c0106a3f" resolved "https://registry.yarnpkg.com/7zip-bin/-/7zip-bin-5.0.3.tgz#bc5b5532ecafd923a61f2fb097e3b108c0106a3f"
integrity sha512-GLyWIFBbGvpKPGo55JyRZAo4lVbnBiD52cKlw/0Vt+wnmKvWJkpZvsjVoaIolyBXDeAQKSicRtqFNPem9w0WYA== integrity sha512-GLyWIFBbGvpKPGo55JyRZAo4lVbnBiD52cKlw/0Vt+wnmKvWJkpZvsjVoaIolyBXDeAQKSicRtqFNPem9w0WYA==
"@babel/code-frame@^7.0.0":
version "7.10.4"
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.10.4.tgz#168da1a36e90da68ae8d49c0f1b48c7c6249213a"
integrity sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3Ou9jhpAfUg==
dependencies:
"@babel/highlight" "^7.10.4"
"@babel/helper-validator-identifier@^7.10.4":
version "7.10.4"
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.10.4.tgz#a78c7a7251e01f616512d31b10adcf52ada5e0d2"
integrity sha512-3U9y+43hz7ZM+rzG24Qe2mufW5KhvFg/NhnNph+i9mgCtdTCtMJuI1TMkrIUiK7Ix4PYlRF9I5dhqaLYA/ADXw==
"@babel/highlight@^7.10.4":
version "7.10.4"
resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.10.4.tgz#7d1bdfd65753538fabe6c38596cdb76d9ac60143"
integrity sha512-i6rgnR/YgPEQzZZnbTHHuZdlE8qyoBNalD6F+q4vAFlcMEcqmkoG+mPqJYJCo63qPf74+Y1UZsl3l6f7/RIkmA==
dependencies:
"@babel/helper-validator-identifier" "^7.10.4"
chalk "^2.0.0"
js-tokens "^4.0.0"
"@babel/runtime@^7.7.2": "@babel/runtime@^7.7.2":
version "7.8.4" version "7.8.4"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.8.4.tgz#d79f5a2040f7caa24d53e563aad49cbc05581308" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.8.4.tgz#d79f5a2040f7caa24d53e563aad49cbc05581308"
@ -388,11 +409,31 @@ abbrev@1:
resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8"
integrity sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q== integrity sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==
acorn-jsx@^5.2.0:
version "5.2.0"
resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.2.0.tgz#4c66069173d6fdd68ed85239fc256226182b2ebe"
integrity sha512-HiUX/+K2YpkpJ+SzBffkM/AQ2YE03S0U1kjTLVpoJdhZMOWy8qvXVN9JdLqv2QsaQ6MPYQIuNmwD8zOiYUofLQ==
acorn@^7.3.1:
version "7.3.1"
resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.3.1.tgz#85010754db53c3fbaf3b9ea3e083aa5c5d147ffd"
integrity sha512-tLc0wSnatxAQHVHUapaHdz72pi9KUyHjq5KyHjGg9Y8Ifdc79pTh2XvI6I1/chZbnM7QtNKzh66ooDogPZSleA==
ajv-keywords@^3.4.1: ajv-keywords@^3.4.1:
version "3.4.1" version "3.4.1"
resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-3.4.1.tgz#ef916e271c64ac12171fd8384eaae6b2345854da" resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-3.4.1.tgz#ef916e271c64ac12171fd8384eaae6b2345854da"
integrity sha512-RO1ibKvd27e6FEShVFfPALuHI3WjSVNeK5FIsmme/LYRNxjKuNj+Dt7bucLa6NdSv3JcVTyMlm9kGR84z1XpaQ== integrity sha512-RO1ibKvd27e6FEShVFfPALuHI3WjSVNeK5FIsmme/LYRNxjKuNj+Dt7bucLa6NdSv3JcVTyMlm9kGR84z1XpaQ==
ajv@^6.10.0, ajv@^6.10.2:
version "6.12.3"
resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.3.tgz#18c5af38a111ddeb4f2697bd78d68abc1cabd706"
integrity sha512-4K0cK3L1hsqk9xIb2z9vs/XU+PGJZ9PNpJRDS9YLzmNdX6jmVPfamLvTJr0aDAusnHyCHO6MjzlkAsgtqp9teA==
dependencies:
fast-deep-equal "^3.1.1"
fast-json-stable-stringify "^2.0.0"
json-schema-traverse "^0.4.1"
uri-js "^4.2.2"
ajv@^6.12.0: ajv@^6.12.0:
version "6.12.0" version "6.12.0"
resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.0.tgz#06d60b96d87b8454a5adaba86e7854da629db4b7" resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.0.tgz#06d60b96d87b8454a5adaba86e7854da629db4b7"
@ -420,6 +461,11 @@ ansi-align@^3.0.0:
dependencies: dependencies:
string-width "^3.0.0" string-width "^3.0.0"
ansi-colors@^4.1.1:
version "4.1.1"
resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-4.1.1.tgz#cbb9ae256bf750af1eab344f229aa27fe94ba348"
integrity sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==
ansi-regex@^2.0.0: ansi-regex@^2.0.0:
version "2.1.1" version "2.1.1"
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df"
@ -533,6 +579,11 @@ assert-plus@1.0.0, assert-plus@^1.0.0:
resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525"
integrity sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU= integrity sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=
astral-regex@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-1.0.0.tgz#6c8c3fb827dd43ee3918f27b82782ab7658a6fd9"
integrity sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg==
async-exit-hook@^2.0.1: async-exit-hook@^2.0.1:
version "2.0.1" version "2.0.1"
resolved "https://registry.yarnpkg.com/async-exit-hook/-/async-exit-hook-2.0.1.tgz#8bd8b024b0ec9b1c01cccb9af9db29bd717dfaf3" resolved "https://registry.yarnpkg.com/async-exit-hook/-/async-exit-hook-2.0.1.tgz#8bd8b024b0ec9b1c01cccb9af9db29bd717dfaf3"
@ -712,6 +763,11 @@ cacheable-request@^6.0.0:
normalize-url "^4.1.0" normalize-url "^4.1.0"
responselike "^1.0.2" responselike "^1.0.2"
callsites@^3.0.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73"
integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==
camelcase@^5.0.0, camelcase@^5.3.1: camelcase@^5.0.0, camelcase@^5.3.1:
version "5.3.1" version "5.3.1"
resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320"
@ -722,7 +778,7 @@ caseless@~0.12.0:
resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc"
integrity sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw= integrity sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=
chalk@^2.0.1, chalk@^2.4.2: chalk@^2.0.0, chalk@^2.0.1, chalk@^2.4.2:
version "2.4.2" version "2.4.2"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424"
integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==
@ -920,6 +976,15 @@ core-util-is@1.0.2, core-util-is@~1.0.0:
resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7"
integrity sha1-tf1UIgqivFq1eqtxQMlAdUUDwac= integrity sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=
cross-spawn@^7.0.2:
version "7.0.3"
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6"
integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==
dependencies:
path-key "^3.1.0"
shebang-command "^2.0.0"
which "^2.0.1"
crypto-random-string@^2.0.0: crypto-random-string@^2.0.0:
version "2.0.0" version "2.0.0"
resolved "https://registry.yarnpkg.com/crypto-random-string/-/crypto-random-string-2.0.0.tgz#ef2a7a966ec11083388369baa02ebead229b30d5" resolved "https://registry.yarnpkg.com/crypto-random-string/-/crypto-random-string-2.0.0.tgz#ef2a7a966ec11083388369baa02ebead229b30d5"
@ -944,7 +1009,7 @@ debug@2.6.9, debug@^2.5.1:
dependencies: dependencies:
ms "2.0.0" ms "2.0.0"
debug@^4.1.0, debug@^4.1.1: debug@^4.0.1, debug@^4.1.0, debug@^4.1.1:
version "4.1.1" version "4.1.1"
resolved "https://registry.yarnpkg.com/debug/-/debug-4.1.1.tgz#3b72260255109c6b589cee050f1d516139664791" resolved "https://registry.yarnpkg.com/debug/-/debug-4.1.1.tgz#3b72260255109c6b589cee050f1d516139664791"
integrity sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw== integrity sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==
@ -975,6 +1040,11 @@ deep-extend@^0.6.0:
resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac" resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac"
integrity sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA== integrity sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==
deep-is@^0.1.3:
version "0.1.3"
resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34"
integrity sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=
defaults@^1.0.3: defaults@^1.0.3:
version "1.0.3" version "1.0.3"
resolved "https://registry.yarnpkg.com/defaults/-/defaults-1.0.3.tgz#c656051e9817d9ff08ed881477f3fe4019f3ef7d" resolved "https://registry.yarnpkg.com/defaults/-/defaults-1.0.3.tgz#c656051e9817d9ff08ed881477f3fe4019f3ef7d"
@ -1026,6 +1096,13 @@ dmg-builder@22.7.0:
js-yaml "^3.14.0" js-yaml "^3.14.0"
sanitize-filename "^1.6.3" sanitize-filename "^1.6.3"
doctrine@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-3.0.0.tgz#addebead72a6574db783639dc87a121773973961"
integrity sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==
dependencies:
esutils "^2.0.2"
dom-walk@^0.1.0: dom-walk@^0.1.0:
version "0.1.1" version "0.1.1"
resolved "https://registry.yarnpkg.com/dom-walk/-/dom-walk-0.1.1.tgz#672226dc74c8f799ad35307df936aba11acd6018" resolved "https://registry.yarnpkg.com/dom-walk/-/dom-walk-0.1.1.tgz#672226dc74c8f799ad35307df936aba11acd6018"
@ -1157,6 +1234,13 @@ end-of-stream@^1.1.0:
dependencies: dependencies:
once "^1.4.0" once "^1.4.0"
enquirer@^2.3.5:
version "2.3.6"
resolved "https://registry.yarnpkg.com/enquirer/-/enquirer-2.3.6.tgz#2a7fe5dd634a1e4125a975ec994ff5456dc3734d"
integrity sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==
dependencies:
ansi-colors "^4.1.1"
env-paths@^2.2.0: env-paths@^2.2.0:
version "2.2.0" version "2.2.0"
resolved "https://registry.yarnpkg.com/env-paths/-/env-paths-2.2.0.tgz#cdca557dc009152917d6166e2febe1f039685e43" resolved "https://registry.yarnpkg.com/env-paths/-/env-paths-2.2.0.tgz#cdca557dc009152917d6166e2febe1f039685e43"
@ -1207,11 +1291,111 @@ escape-string-regexp@^2.0.0:
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz#a30304e99daa32e23b2fd20f51babd07cffca344" resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz#a30304e99daa32e23b2fd20f51babd07cffca344"
integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w== integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==
eslint-scope@^5.1.0:
version "5.1.0"
resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.0.tgz#d0f971dfe59c69e0cada684b23d49dbf82600ce5"
integrity sha512-iiGRvtxWqgtx5m8EyQUJihBloE4EnYeGE/bz1wSPwJE6tZuJUtHlhqDM4Xj2ukE8Dyy1+HCZ4hE0fzIVMzb58w==
dependencies:
esrecurse "^4.1.0"
estraverse "^4.1.1"
eslint-utils@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-2.1.0.tgz#d2de5e03424e707dc10c74068ddedae708741b27"
integrity sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==
dependencies:
eslint-visitor-keys "^1.1.0"
eslint-visitor-keys@^1.1.0, eslint-visitor-keys@^1.3.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz#30ebd1ef7c2fdff01c3a4f151044af25fab0523e"
integrity sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==
eslint@^7.6.0:
version "7.6.0"
resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.6.0.tgz#522d67cfaea09724d96949c70e7a0550614d64d6"
integrity sha512-QlAManNtqr7sozWm5TF4wIH9gmUm2hE3vNRUvyoYAa4y1l5/jxD/PQStEjBMQtCqZmSep8UxrcecI60hOpe61w==
dependencies:
"@babel/code-frame" "^7.0.0"
ajv "^6.10.0"
chalk "^4.0.0"
cross-spawn "^7.0.2"
debug "^4.0.1"
doctrine "^3.0.0"
enquirer "^2.3.5"
eslint-scope "^5.1.0"
eslint-utils "^2.1.0"
eslint-visitor-keys "^1.3.0"
espree "^7.2.0"
esquery "^1.2.0"
esutils "^2.0.2"
file-entry-cache "^5.0.1"
functional-red-black-tree "^1.0.1"
glob-parent "^5.0.0"
globals "^12.1.0"
ignore "^4.0.6"
import-fresh "^3.0.0"
imurmurhash "^0.1.4"
is-glob "^4.0.0"
js-yaml "^3.13.1"
json-stable-stringify-without-jsonify "^1.0.1"
levn "^0.4.1"
lodash "^4.17.19"
minimatch "^3.0.4"
natural-compare "^1.4.0"
optionator "^0.9.1"
progress "^2.0.0"
regexpp "^3.1.0"
semver "^7.2.1"
strip-ansi "^6.0.0"
strip-json-comments "^3.1.0"
table "^5.2.3"
text-table "^0.2.0"
v8-compile-cache "^2.0.3"
espree@^7.2.0:
version "7.2.0"
resolved "https://registry.yarnpkg.com/espree/-/espree-7.2.0.tgz#1c263d5b513dbad0ac30c4991b93ac354e948d69"
integrity sha512-H+cQ3+3JYRMEIOl87e7QdHX70ocly5iW4+dttuR8iYSPr/hXKFb+7dBsZ7+u1adC4VrnPlTkv0+OwuPnDop19g==
dependencies:
acorn "^7.3.1"
acorn-jsx "^5.2.0"
eslint-visitor-keys "^1.3.0"
esprima@^4.0.0: esprima@^4.0.0:
version "4.0.1" version "4.0.1"
resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71"
integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==
esquery@^1.2.0:
version "1.3.1"
resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.3.1.tgz#b78b5828aa8e214e29fb74c4d5b752e1c033da57"
integrity sha512-olpvt9QG0vniUBZspVRN6lwB7hOZoTRtT+jzR+tS4ffYx2mzbw+z0XCOk44aaLYKApNX5nMm+E+P6o25ip/DHQ==
dependencies:
estraverse "^5.1.0"
esrecurse@^4.1.0:
version "4.2.1"
resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.2.1.tgz#007a3b9fdbc2b3bb87e4879ea19c92fdbd3942cf"
integrity sha512-64RBB++fIOAXPw3P9cy89qfMlvZEXZkqqJkjqqXIvzP5ezRZjW+lPWjw35UX/3EhUPFYbg5ER4JYgDw4007/DQ==
dependencies:
estraverse "^4.1.0"
estraverse@^4.1.0, estraverse@^4.1.1:
version "4.3.0"
resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.3.0.tgz#398ad3f3c5a24948be7725e83d11a7de28cdbd1d"
integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==
estraverse@^5.1.0:
version "5.1.0"
resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.1.0.tgz#374309d39fd935ae500e7b92e8a6b4c720e59642"
integrity sha512-FyohXK+R0vE+y1nHLoBM7ZTyqRpqAlhdZHCWIWEviFLiGB8b04H6bQs8G+XTthacvT8VuwvteiP7RJSxMs8UEw==
esutils@^2.0.2:
version "2.0.3"
resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64"
integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==
exif-parser@^0.1.12: exif-parser@^0.1.12:
version "0.1.12" version "0.1.12"
resolved "https://registry.yarnpkg.com/exif-parser/-/exif-parser-0.1.12.tgz#58a9d2d72c02c1f6f02a0ef4a9166272b7760922" resolved "https://registry.yarnpkg.com/exif-parser/-/exif-parser-0.1.12.tgz#58a9d2d72c02c1f6f02a0ef4a9166272b7760922"
@ -1272,6 +1456,11 @@ fast-json-stable-stringify@^2.0.0:
resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz#d5142c0caee6b1189f87d3a76111064f86c8bbf2" resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz#d5142c0caee6b1189f87d3a76111064f86c8bbf2"
integrity sha1-1RQsDK7msRifh9OnYREGT4bIu/I= integrity sha1-1RQsDK7msRifh9OnYREGT4bIu/I=
fast-levenshtein@^2.0.6:
version "2.0.6"
resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917"
integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=
fd-slicer@~1.0.1: fd-slicer@~1.0.1:
version "1.0.1" version "1.0.1"
resolved "https://registry.yarnpkg.com/fd-slicer/-/fd-slicer-1.0.1.tgz#8b5bcbd9ec327c5041bf9ab023fd6750f1177e65" resolved "https://registry.yarnpkg.com/fd-slicer/-/fd-slicer-1.0.1.tgz#8b5bcbd9ec327c5041bf9ab023fd6750f1177e65"
@ -1279,6 +1468,13 @@ fd-slicer@~1.0.1:
dependencies: dependencies:
pend "~1.2.0" pend "~1.2.0"
file-entry-cache@^5.0.1:
version "5.0.1"
resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-5.0.1.tgz#ca0f6efa6dd3d561333fb14515065c2fafdf439c"
integrity sha512-bCg29ictuBaKUwwArK4ouCaqDgLZcysCFLmM/Yn/FDoqndh/9vNuQfXRDvTuXKLxfD/JtZQGKFT8MGcJBK644g==
dependencies:
flat-cache "^2.0.1"
file-type@^9.0.0: file-type@^9.0.0:
version "9.0.0" version "9.0.0"
resolved "https://registry.yarnpkg.com/file-type/-/file-type-9.0.0.tgz#a68d5ad07f486414dfb2c8866f73161946714a18" resolved "https://registry.yarnpkg.com/file-type/-/file-type-9.0.0.tgz#a68d5ad07f486414dfb2c8866f73161946714a18"
@ -1313,6 +1509,20 @@ find-up@^4.1.0:
locate-path "^5.0.0" locate-path "^5.0.0"
path-exists "^4.0.0" path-exists "^4.0.0"
flat-cache@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-2.0.1.tgz#5d296d6f04bda44a4630a301413bdbc2ec085ec0"
integrity sha512-LoQe6yDuUMDzQAEH8sgmh4Md6oZnc/7PjtwjNFSzveXqSHt6ka9fPBuso7IGf9Rz4uqnSnWiFH2B/zj24a5ReA==
dependencies:
flatted "^2.0.0"
rimraf "2.6.3"
write "1.0.3"
flatted@^2.0.0:
version "2.0.2"
resolved "https://registry.yarnpkg.com/flatted/-/flatted-2.0.2.tgz#4575b21e2bcee7434aa9be662f4b7b5f9c2b5138"
integrity sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA==
for-each@^0.3.3: for-each@^0.3.3:
version "0.3.3" version "0.3.3"
resolved "https://registry.yarnpkg.com/for-each/-/for-each-0.3.3.tgz#69b447e88a0a5d32c3e7084f3f1710034b21376e" resolved "https://registry.yarnpkg.com/for-each/-/for-each-0.3.3.tgz#69b447e88a0a5d32c3e7084f3f1710034b21376e"
@ -1375,6 +1585,11 @@ function-bind@^1.1.1:
resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d"
integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==
functional-red-black-tree@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327"
integrity sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=
gauge@~2.7.3: gauge@~2.7.3:
version "2.7.4" version "2.7.4"
resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7" resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7"
@ -1423,6 +1638,13 @@ gifwrap@^0.9.2:
image-q "^1.1.1" image-q "^1.1.1"
omggif "^1.0.10" omggif "^1.0.10"
glob-parent@^5.0.0:
version "5.1.1"
resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.1.tgz#b6c1ef417c4e5663ea498f1c45afac6916bbc229"
integrity sha512-FnI+VGOpnlGHWZxthPGR+QhR78fuiK0sNLkHQv+bL9fQi57lNNdquIbna/WrfROrolq8GK5Ek6BiMwqL/voRYQ==
dependencies:
is-glob "^4.0.1"
glob-parent@~5.1.0: glob-parent@~5.1.0:
version "5.1.0" version "5.1.0"
resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.0.tgz#5f4c1d1e748d30cd73ad2944b3577a81b081e8c2" resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.0.tgz#5f4c1d1e748d30cd73ad2944b3577a81b081e8c2"
@ -1480,6 +1702,13 @@ global@~4.3.0:
min-document "^2.19.0" min-document "^2.19.0"
process "~0.5.1" process "~0.5.1"
globals@^12.1.0:
version "12.4.0"
resolved "https://registry.yarnpkg.com/globals/-/globals-12.4.0.tgz#a18813576a41b00a24a97e7f815918c2e19925f8"
integrity sha512-BWICuzzDvDoH54NHKCseDanAhE3CeDorgDL5MT6LMXXj2WCnd9UC2szdk4AWLfjdgNBCXLUanXYcpBBKOSWGwg==
dependencies:
type-fest "^0.8.1"
globalthis@^1.0.0: globalthis@^1.0.0:
version "1.0.0" version "1.0.0"
resolved "https://registry.yarnpkg.com/globalthis/-/globalthis-1.0.0.tgz#c5fb98213a9b4595f59cf3e7074f141b4169daae" resolved "https://registry.yarnpkg.com/globalthis/-/globalthis-1.0.0.tgz#c5fb98213a9b4595f59cf3e7074f141b4169daae"
@ -1599,11 +1828,24 @@ ieee754@^1.1.4:
resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.1.13.tgz#ec168558e95aa181fd87d37f55c32bbcb6708b84" resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.1.13.tgz#ec168558e95aa181fd87d37f55c32bbcb6708b84"
integrity sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg== integrity sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg==
ignore@^4.0.6:
version "4.0.6"
resolved "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc"
integrity sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==
image-q@^1.1.1: image-q@^1.1.1:
version "1.1.1" version "1.1.1"
resolved "https://registry.yarnpkg.com/image-q/-/image-q-1.1.1.tgz#fc84099664460b90ca862d9300b6bfbbbfbf8056" resolved "https://registry.yarnpkg.com/image-q/-/image-q-1.1.1.tgz#fc84099664460b90ca862d9300b6bfbbbfbf8056"
integrity sha1-/IQJlmRGC5DKhi2TALa/u7+/gFY= integrity sha1-/IQJlmRGC5DKhi2TALa/u7+/gFY=
import-fresh@^3.0.0:
version "3.2.1"
resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.2.1.tgz#633ff618506e793af5ac91bf48b72677e15cbe66"
integrity sha512-6e1q1cnWP2RXD9/keSkxHScg508CdXqXWgWBaETNhyuBFz+kUZlKboh+ISK+bU++DmbHimVBrOz/zzPe0sZ3sQ==
dependencies:
parent-module "^1.0.0"
resolve-from "^4.0.0"
import-lazy@^2.1.0: import-lazy@^2.1.0:
version "2.1.0" version "2.1.0"
resolved "https://registry.yarnpkg.com/import-lazy/-/import-lazy-2.1.0.tgz#05698e3d45c88e8d7e9d92cb0584e77f096f3e43" resolved "https://registry.yarnpkg.com/import-lazy/-/import-lazy-2.1.0.tgz#05698e3d45c88e8d7e9d92cb0584e77f096f3e43"
@ -1683,7 +1925,7 @@ is-function@^1.0.1:
resolved "https://registry.yarnpkg.com/is-function/-/is-function-1.0.1.tgz#12cfb98b65b57dd3d193a3121f5f6e2f437602b5" resolved "https://registry.yarnpkg.com/is-function/-/is-function-1.0.1.tgz#12cfb98b65b57dd3d193a3121f5f6e2f437602b5"
integrity sha1-Es+5i2W1fdPRk6MSH19uL0N2ArU= integrity sha1-Es+5i2W1fdPRk6MSH19uL0N2ArU=
is-glob@^4.0.1, is-glob@~4.0.1: is-glob@^4.0.0, is-glob@^4.0.1, is-glob@~4.0.1:
version "4.0.1" version "4.0.1"
resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.1.tgz#7567dbe9f2f5e2467bc77ab83c4a29482407a5dc" resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.1.tgz#7567dbe9f2f5e2467bc77ab83c4a29482407a5dc"
integrity sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg== integrity sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==
@ -1808,6 +2050,11 @@ jquery@^3.5.1:
resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.5.1.tgz#d7b4d08e1bfdb86ad2f1a3d039ea17304717abb5" resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.5.1.tgz#d7b4d08e1bfdb86ad2f1a3d039ea17304717abb5"
integrity sha512-XwIBPqcMn57FxfT+Go5pzySnm4KWkT1Tv7gjrpT1srtf8Weynl6R273VJ5GjkRb51IzMp5nbaPjJXMWeju2MKg== integrity sha512-XwIBPqcMn57FxfT+Go5pzySnm4KWkT1Tv7gjrpT1srtf8Weynl6R273VJ5GjkRb51IzMp5nbaPjJXMWeju2MKg==
js-tokens@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499"
integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==
js-yaml@^3.13.1: js-yaml@^3.13.1:
version "3.13.1" version "3.13.1"
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.13.1.tgz#aff151b30bfdfa8e49e05da22e7415e9dfa37847" resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.13.1.tgz#aff151b30bfdfa8e49e05da22e7415e9dfa37847"
@ -1844,6 +2091,11 @@ json-schema@0.2.3:
resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13"
integrity sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM= integrity sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=
json-stable-stringify-without-jsonify@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651"
integrity sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=
json-stringify-safe@^5.0.1, json-stringify-safe@~5.0.1: json-stringify-safe@^5.0.1, json-stringify-safe@~5.0.1:
version "5.0.1" version "5.0.1"
resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb"
@ -1901,6 +2153,14 @@ lazy-val@^1.0.4:
resolved "https://registry.yarnpkg.com/lazy-val/-/lazy-val-1.0.4.tgz#882636a7245c2cfe6e0a4e3ba6c5d68a137e5c65" resolved "https://registry.yarnpkg.com/lazy-val/-/lazy-val-1.0.4.tgz#882636a7245c2cfe6e0a4e3ba6c5d68a137e5c65"
integrity sha512-u93kb2fPbIrfzBuLjZE+w+fJbUUMhNDXxNmMfaqNgpfQf1CO5ZSe2LfsnBqVAk7i/2NF48OSoRj+Xe2VT+lE8Q== integrity sha512-u93kb2fPbIrfzBuLjZE+w+fJbUUMhNDXxNmMfaqNgpfQf1CO5ZSe2LfsnBqVAk7i/2NF48OSoRj+Xe2VT+lE8Q==
levn@^0.4.1:
version "0.4.1"
resolved "https://registry.yarnpkg.com/levn/-/levn-0.4.1.tgz#ae4562c007473b932a6200d403268dd2fffc6ade"
integrity sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==
dependencies:
prelude-ls "^1.2.1"
type-check "~0.4.0"
load-bmfont@^1.3.1, load-bmfont@^1.4.0: load-bmfont@^1.3.1, load-bmfont@^1.4.0:
version "1.4.0" version "1.4.0"
resolved "https://registry.yarnpkg.com/load-bmfont/-/load-bmfont-1.4.0.tgz#75f17070b14a8c785fe7f5bee2e6fd4f98093b6b" resolved "https://registry.yarnpkg.com/load-bmfont/-/load-bmfont-1.4.0.tgz#75f17070b14a8c785fe7f5bee2e6fd4f98093b6b"
@ -1935,7 +2195,7 @@ lodash.assign@^4.2.0:
resolved "https://registry.yarnpkg.com/lodash.assign/-/lodash.assign-4.2.0.tgz#0d99f3ccd7a6d261d19bdaeb9245005d285808e7" resolved "https://registry.yarnpkg.com/lodash.assign/-/lodash.assign-4.2.0.tgz#0d99f3ccd7a6d261d19bdaeb9245005d285808e7"
integrity sha1-DZnzzNem0mHRm9rrkkUAXShYCOc= integrity sha1-DZnzzNem0mHRm9rrkkUAXShYCOc=
lodash@^4.17.10, lodash@^4.17.19: lodash@^4.17.10, lodash@^4.17.14, lodash@^4.17.19:
version "4.17.19" version "4.17.19"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.19.tgz#e48ddedbe30b3321783c5b4301fbd353bc1e4a4b" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.19.tgz#e48ddedbe30b3321783c5b4301fbd353bc1e4a4b"
integrity sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ== integrity sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ==
@ -2077,6 +2337,11 @@ ms@2.1.2, ms@^2.1.1:
resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009"
integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==
natural-compare@^1.4.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7"
integrity sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=
node-abi@^2.11.0: node-abi@^2.11.0:
version "2.12.0" version "2.12.0"
resolved "https://registry.yarnpkg.com/node-abi/-/node-abi-2.12.0.tgz#40e9cfabdda1837863fa825e7dfa0b15686adf6f" resolved "https://registry.yarnpkg.com/node-abi/-/node-abi-2.12.0.tgz#40e9cfabdda1837863fa825e7dfa0b15686adf6f"
@ -2199,6 +2464,18 @@ onetime@^2.0.0:
dependencies: dependencies:
mimic-fn "^1.0.0" mimic-fn "^1.0.0"
optionator@^0.9.1:
version "0.9.1"
resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.9.1.tgz#4f236a6373dae0566a6d43e1326674f50c291499"
integrity sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==
dependencies:
deep-is "^0.1.3"
fast-levenshtein "^2.0.6"
levn "^0.4.1"
prelude-ls "^1.2.1"
type-check "^0.4.0"
word-wrap "^1.2.3"
ora@^3.4.0: ora@^3.4.0:
version "3.4.0" version "3.4.0"
resolved "https://registry.yarnpkg.com/ora/-/ora-3.4.0.tgz#bf0752491059a3ef3ed4c85097531de9fdbcd318" resolved "https://registry.yarnpkg.com/ora/-/ora-3.4.0.tgz#bf0752491059a3ef3ed4c85097531de9fdbcd318"
@ -2282,6 +2559,13 @@ pako@^1.0.5:
resolved "https://registry.yarnpkg.com/pako/-/pako-1.0.10.tgz#4328badb5086a426aa90f541977d4955da5c9732" resolved "https://registry.yarnpkg.com/pako/-/pako-1.0.10.tgz#4328badb5086a426aa90f541977d4955da5c9732"
integrity sha512-0DTvPVU3ed8+HNXOu5Bs+o//Mbdj9VNQMUOe9oKCwh8l0GNwpTDMKCWbRjgtD291AWnkAgkqA/LOnQS8AmS1tw== integrity sha512-0DTvPVU3ed8+HNXOu5Bs+o//Mbdj9VNQMUOe9oKCwh8l0GNwpTDMKCWbRjgtD291AWnkAgkqA/LOnQS8AmS1tw==
parent-module@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.1.tgz#691d2709e78c79fae3a156622452d00762caaaa2"
integrity sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==
dependencies:
callsites "^3.0.0"
parse-bmfont-ascii@^1.0.3: parse-bmfont-ascii@^1.0.3:
version "1.0.6" version "1.0.6"
resolved "https://registry.yarnpkg.com/parse-bmfont-ascii/-/parse-bmfont-ascii-1.0.6.tgz#11ac3c3ff58f7c2020ab22769079108d4dfa0285" resolved "https://registry.yarnpkg.com/parse-bmfont-ascii/-/parse-bmfont-ascii-1.0.6.tgz#11ac3c3ff58f7c2020ab22769079108d4dfa0285"
@ -2323,6 +2607,11 @@ path-is-absolute@^1.0.0:
resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f"
integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18= integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18=
path-key@^3.1.0:
version "3.1.1"
resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375"
integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==
path-parse@^1.0.6: path-parse@^1.0.6:
version "1.0.6" version "1.0.6"
resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c" resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c"
@ -2370,6 +2659,11 @@ pngjs@^3.0.0, pngjs@^3.3.3:
resolved "https://registry.yarnpkg.com/pngjs/-/pngjs-3.4.0.tgz#99ca7d725965fb655814eaf65f38f12bbdbf555f" resolved "https://registry.yarnpkg.com/pngjs/-/pngjs-3.4.0.tgz#99ca7d725965fb655814eaf65f38f12bbdbf555f"
integrity sha512-NCrCHhWmnQklfH4MtJMRjZ2a8c80qXeMlQMv2uVp9ISJMTt562SbGd6n2oq0PaPgKm7Z6pL9E2UlLIhC+SHL3w== integrity sha512-NCrCHhWmnQklfH4MtJMRjZ2a8c80qXeMlQMv2uVp9ISJMTt562SbGd6n2oq0PaPgKm7Z6pL9E2UlLIhC+SHL3w==
prelude-ls@^1.2.1:
version "1.2.1"
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396"
integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==
prepend-http@^2.0.0: prepend-http@^2.0.0:
version "2.0.0" version "2.0.0"
resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897" resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897"
@ -2385,6 +2679,11 @@ process@~0.5.1:
resolved "https://registry.yarnpkg.com/process/-/process-0.5.2.tgz#1638d8a8e34c2f440a91db95ab9aeb677fc185cf" resolved "https://registry.yarnpkg.com/process/-/process-0.5.2.tgz#1638d8a8e34c2f440a91db95ab9aeb677fc185cf"
integrity sha1-FjjYqONML0QKkduVq5rrZ3/Bhc8= integrity sha1-FjjYqONML0QKkduVq5rrZ3/Bhc8=
progress@^2.0.0:
version "2.0.3"
resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8"
integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==
proto-list@~1.2.1: proto-list@~1.2.1:
version "1.2.4" version "1.2.4"
resolved "https://registry.yarnpkg.com/proto-list/-/proto-list-1.2.4.tgz#212d5bfe1318306a420f6402b8e26ff39647a849" resolved "https://registry.yarnpkg.com/proto-list/-/proto-list-1.2.4.tgz#212d5bfe1318306a420f6402b8e26ff39647a849"
@ -2486,6 +2785,11 @@ regenerator-runtime@^0.13.2, regenerator-runtime@^0.13.3:
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.3.tgz#7cf6a77d8f5c6f60eb73c5fc1955b2ceb01e6bf5" resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.3.tgz#7cf6a77d8f5c6f60eb73c5fc1955b2ceb01e6bf5"
integrity sha512-naKIZz2GQ8JWh///G7L3X6LaQUAMp2lvb1rvwwsURe/VXwD6VMfr+/1NuNw3ag8v2kY1aQ/go5SNn79O9JU7yw== integrity sha512-naKIZz2GQ8JWh///G7L3X6LaQUAMp2lvb1rvwwsURe/VXwD6VMfr+/1NuNw3ag8v2kY1aQ/go5SNn79O9JU7yw==
regexpp@^3.1.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-3.1.0.tgz#206d0ad0a5648cffbdb8ae46438f3dc51c9f78e2"
integrity sha512-ZOIzd8yVsQQA7j8GCSlPGXwg5PfmA1mrq0JP4nGhh54LaKN3xdai/vHUDu74pKwV8OxseMS65u2NImosQcSD0Q==
registry-auth-token@^4.0.0: registry-auth-token@^4.0.0:
version "4.0.0" version "4.0.0"
resolved "https://registry.yarnpkg.com/registry-auth-token/-/registry-auth-token-4.0.0.tgz#30e55961eec77379da551ea5c4cf43cbf03522be" resolved "https://registry.yarnpkg.com/registry-auth-token/-/registry-auth-token-4.0.0.tgz#30e55961eec77379da551ea5c4cf43cbf03522be"
@ -2537,6 +2841,11 @@ require-main-filename@^2.0.0:
resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-2.0.0.tgz#d0b329ecc7cc0f61649f62215be69af54aa8989b" resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-2.0.0.tgz#d0b329ecc7cc0f61649f62215be69af54aa8989b"
integrity sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg== integrity sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==
resolve-from@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6"
integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==
resolve@^1.10.0: resolve@^1.10.0:
version "1.12.0" version "1.12.0"
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.12.0.tgz#3fc644a35c84a48554609ff26ec52b66fa577df6" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.12.0.tgz#3fc644a35c84a48554609ff26ec52b66fa577df6"
@ -2559,6 +2868,13 @@ restore-cursor@^2.0.0:
onetime "^2.0.0" onetime "^2.0.0"
signal-exit "^3.0.2" signal-exit "^3.0.2"
rimraf@2.6.3:
version "2.6.3"
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.3.tgz#b2d104fe0d8fb27cf9e0a1cda8262dd3833c6cab"
integrity sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==
dependencies:
glob "^7.1.3"
rimraf@^2.6.3: rimraf@^2.6.3:
version "2.7.1" version "2.7.1"
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.7.1.tgz#35797f13a7fdadc566142c29d4f07ccad483e3ec" resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.7.1.tgz#35797f13a7fdadc566142c29d4f07ccad483e3ec"
@ -2634,7 +2950,7 @@ semver@^6.0.0, semver@^6.2.0, semver@^6.3.0:
resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d"
integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==
semver@^7.3.2: semver@^7.2.1, semver@^7.3.2:
version "7.3.2" version "7.3.2"
resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.2.tgz#604962b052b81ed0786aae84389ffba70ffd3938" resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.2.tgz#604962b052b81ed0786aae84389ffba70ffd3938"
integrity sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ== integrity sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==
@ -2651,11 +2967,32 @@ set-blocking@^2.0.0, set-blocking@~2.0.0:
resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7"
integrity sha1-BF+XgtARrppoA93TgrJDkrPYkPc= integrity sha1-BF+XgtARrppoA93TgrJDkrPYkPc=
shebang-command@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea"
integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==
dependencies:
shebang-regex "^3.0.0"
shebang-regex@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172"
integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==
signal-exit@^3.0.0, signal-exit@^3.0.2: signal-exit@^3.0.0, signal-exit@^3.0.2:
version "3.0.2" version "3.0.2"
resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d"
integrity sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0= integrity sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=
slice-ansi@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-2.1.0.tgz#cacd7693461a637a5788d92a7dd4fba068e81636"
integrity sha512-Qu+VC3EwYLldKa1fCxuuvULvSJOKEgk9pi8dZeCVK7TqBfUNTH4sFkk4joj8afVSfAYgJoSOetjx9QWOJ5mYoQ==
dependencies:
ansi-styles "^3.2.0"
astral-regex "^1.0.0"
is-fullwidth-code-point "^2.0.0"
sort-keys-length@^1.0.0: sort-keys-length@^1.0.0:
version "1.0.1" version "1.0.1"
resolved "https://registry.yarnpkg.com/sort-keys-length/-/sort-keys-length-1.0.1.tgz#9cb6f4f4e9e48155a6aa0671edd336ff1479a188" resolved "https://registry.yarnpkg.com/sort-keys-length/-/sort-keys-length-1.0.1.tgz#9cb6f4f4e9e48155a6aa0671edd336ff1479a188"
@ -2843,6 +3180,11 @@ strip-ansi@^6.0.0:
dependencies: dependencies:
ansi-regex "^5.0.0" ansi-regex "^5.0.0"
strip-json-comments@^3.1.0:
version "3.1.1"
resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006"
integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==
strip-json-comments@~2.0.1: strip-json-comments@~2.0.1:
version "2.0.1" version "2.0.1"
resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a"
@ -2882,6 +3224,16 @@ system-font-families@^0.4.1:
babel-polyfill "^6.23.0" babel-polyfill "^6.23.0"
ttfinfo "https://github.com/rBurgett/ttfinfo.git" ttfinfo "https://github.com/rBurgett/ttfinfo.git"
table@^5.2.3:
version "5.4.6"
resolved "https://registry.yarnpkg.com/table/-/table-5.4.6.tgz#1292d19500ce3f86053b05f0e8e7e4a3bb21079e"
integrity sha512-wmEc8m4fjnob4gt5riFRtTu/6+4rSe12TpAELNSqHMfF3IqnA+CH37USM6/YR3qRZv7e56kAEAtd6nKZaxe0Ug==
dependencies:
ajv "^6.10.2"
lodash "^4.17.14"
slice-ansi "^2.1.0"
string-width "^3.0.0"
tar@^4.4.12: tar@^4.4.12:
version "4.4.13" version "4.4.13"
resolved "https://registry.yarnpkg.com/tar/-/tar-4.4.13.tgz#43b364bc52888d555298637b10d60790254ab525" resolved "https://registry.yarnpkg.com/tar/-/tar-4.4.13.tgz#43b364bc52888d555298637b10d60790254ab525"
@ -2908,6 +3260,11 @@ term-size@^2.1.0:
resolved "https://registry.yarnpkg.com/term-size/-/term-size-2.2.0.tgz#1f16adedfe9bdc18800e1776821734086fcc6753" resolved "https://registry.yarnpkg.com/term-size/-/term-size-2.2.0.tgz#1f16adedfe9bdc18800e1776821734086fcc6753"
integrity sha512-a6sumDlzyHVJWb8+YofY4TW112G6p2FCPEAFk+59gIYHv3XHRhm9ltVQ9kli4hNWeQBwSpe8cRN25x0ROunMOw== integrity sha512-a6sumDlzyHVJWb8+YofY4TW112G6p2FCPEAFk+59gIYHv3XHRhm9ltVQ9kli4hNWeQBwSpe8cRN25x0ROunMOw==
text-table@^0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4"
integrity sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=
timm@^1.6.1: timm@^1.6.1:
version "1.6.2" version "1.6.2"
resolved "https://registry.yarnpkg.com/timm/-/timm-1.6.2.tgz#dfd8c6719f7ba1fcfc6295a32670a1c6d166c0bd" resolved "https://registry.yarnpkg.com/timm/-/timm-1.6.2.tgz#dfd8c6719f7ba1fcfc6295a32670a1c6d166c0bd"
@ -2971,6 +3328,13 @@ tweetnacl@^0.14.3, tweetnacl@~0.14.0:
resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64"
integrity sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q= integrity sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=
type-check@^0.4.0, type-check@~0.4.0:
version "0.4.0"
resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.4.0.tgz#07b8203bfa7056c0657050e3ccd2c37730bab8f1"
integrity sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==
dependencies:
prelude-ls "^1.2.1"
type-fest@^0.8.0, type-fest@^0.8.1: type-fest@^0.8.0, type-fest@^0.8.1:
version "0.8.1" version "0.8.1"
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.8.1.tgz#09e249ebde851d3b1e48d27c105444667f17b83d" resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.8.1.tgz#09e249ebde851d3b1e48d27c105444667f17b83d"
@ -3076,6 +3440,11 @@ uuid@^3.3.2:
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.3.3.tgz#4568f0216e78760ee1dbf3a4d2cf53e224112866" resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.3.3.tgz#4568f0216e78760ee1dbf3a4d2cf53e224112866"
integrity sha512-pW0No1RGHgzlpHJO1nsVrHKpOEIxkGg1xB+v0ZmdNH5OAeAwzAVrCnI2/6Mtx+Uys6iaylxa+D3g4j63IKKjSQ== integrity sha512-pW0No1RGHgzlpHJO1nsVrHKpOEIxkGg1xB+v0ZmdNH5OAeAwzAVrCnI2/6Mtx+Uys6iaylxa+D3g4j63IKKjSQ==
v8-compile-cache@^2.0.3:
version "2.1.1"
resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.1.1.tgz#54bc3cdd43317bca91e35dcaf305b1a7237de745"
integrity sha512-8OQ9CL+VWyt3JStj7HX7/ciTL2V3Rl1Wf5OL+SNTm0yK1KvtReVulksyeRnCANHHuUxHlQig+JJDlUhBt1NQDQ==
validate-npm-package-license@^3.0.1: validate-npm-package-license@^3.0.1:
version "3.0.4" version "3.0.4"
resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz#fc91f6b9c7ba15c857f4cb2c5defeec39d4f410a" resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz#fc91f6b9c7ba15c857f4cb2c5defeec39d4f410a"
@ -3117,6 +3486,13 @@ which@^1.3.1:
dependencies: dependencies:
isexe "^2.0.0" isexe "^2.0.0"
which@^2.0.1:
version "2.0.2"
resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1"
integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==
dependencies:
isexe "^2.0.0"
wide-align@^1.1.0: wide-align@^1.1.0:
version "1.1.3" version "1.1.3"
resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.3.tgz#ae074e6bdc0c14a431e804e624549c633b000457" resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.3.tgz#ae074e6bdc0c14a431e804e624549c633b000457"
@ -3131,6 +3507,11 @@ widest-line@^3.1.0:
dependencies: dependencies:
string-width "^4.0.0" string-width "^4.0.0"
word-wrap@^1.2.3:
version "1.2.3"
resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c"
integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==
wrap-ansi@^5.1.0: wrap-ansi@^5.1.0:
version "5.1.0" version "5.1.0"
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-5.1.0.tgz#1fd1f67235d5b6d0fee781056001bfb694c03b09" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-5.1.0.tgz#1fd1f67235d5b6d0fee781056001bfb694c03b09"
@ -3164,6 +3545,13 @@ write-file-atomic@^3.0.0:
signal-exit "^3.0.2" signal-exit "^3.0.2"
typedarray-to-buffer "^3.1.5" typedarray-to-buffer "^3.1.5"
write@1.0.3:
version "1.0.3"
resolved "https://registry.yarnpkg.com/write/-/write-1.0.3.tgz#0800e14523b923a387e415123c865616aae0f5c3"
integrity sha512-/lg70HAjtkUgWPVZhZcm+T4hkL8Zbtp1nFNOn3lRrxnlv50SRBv7cR7RqR+GMsd3hUXy9hWBo4CHTbFTcOYwig==
dependencies:
mkdirp "^0.5.1"
xdg-basedir@^4.0.0: xdg-basedir@^4.0.0:
version "4.0.0" version "4.0.0"
resolved "https://registry.yarnpkg.com/xdg-basedir/-/xdg-basedir-4.0.0.tgz#4bc8d9984403696225ef83a1573cbbcb4e79db13" resolved "https://registry.yarnpkg.com/xdg-basedir/-/xdg-basedir-4.0.0.tgz#4bc8d9984403696225ef83a1573cbbcb4e79db13"