Compare commits
24 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
e27351481b | ||
|
e36942180e | ||
|
6b58c88118 | ||
|
0967c93dde | ||
|
b13849a427 | ||
|
f9090e261d | ||
|
4029f168df | ||
|
3c3eb5209b | ||
|
a07d6b3172 | ||
|
35e262293d | ||
|
e0cae78827 | ||
|
3059ec9941 | ||
|
6fb90f0c8e | ||
|
9e982dca37 | ||
|
b28023bec2 | ||
|
348c5c31c0 | ||
|
c38cc6fd5a | ||
|
abba6fcaa9 | ||
|
7037f63b44 | ||
|
f0c89a291e | ||
|
b2e10feba8 | ||
|
8c27c43c13 | ||
|
487a8e7a1b | ||
|
ccb652dcf0 |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -5,6 +5,8 @@
|
|||||||
TheDesk-*
|
TheDesk-*
|
||||||
app/build
|
app/build
|
||||||
build
|
build
|
||||||
|
make.js
|
||||||
|
make_js.js
|
||||||
app/.DS_Store
|
app/.DS_Store
|
||||||
.DS_Store
|
.DS_Store
|
||||||
.vs/*
|
.vs/*
|
||||||
|
16
.travis.yml
16
.travis.yml
@@ -1,7 +1,15 @@
|
|||||||
os: osx
|
language: objective-c
|
||||||
language: node_js
|
cache:
|
||||||
node_js:
|
directories:
|
||||||
- '10.15.2'
|
- node_modules
|
||||||
|
env:
|
||||||
|
- NODE_VERSION="10.15.2"
|
||||||
|
before_install:
|
||||||
|
- git clone https://github.com/creationix/nvm.git /tmp/.nvm
|
||||||
|
- source /tmp/.nvm/nvm.sh
|
||||||
|
- nvm install $NODE_VERSION
|
||||||
|
- nvm use --delete-prefix $NODE_VERSION
|
||||||
|
- node --version
|
||||||
script: node -v
|
script: node -v
|
||||||
before_deploy:
|
before_deploy:
|
||||||
- npm install electron-builder -g
|
- npm install electron-builder -g
|
||||||
|
@@ -1,7 +1,5 @@
|
|||||||
# TheDesk
|
# TheDesk
|
||||||
|
|
||||||
TheDesk Minami (19)はVueで書き直します(rewrite-vueブランチ参照)。18までのバージョンはTheDesk Kawaii (20)以降で継続します。
|
|
||||||
|
|
||||||
[](https://travis-ci.org/cutls/TheDesk)
|
[](https://travis-ci.org/cutls/TheDesk)
|
||||||
[](https://translate.thedesk.top/project/thedesk)
|
[](https://translate.thedesk.top/project/thedesk)
|
||||||
Mastodon/Misskey client for PC(Windows/Linux/macOS)
|
Mastodon/Misskey client for PC(Windows/Linux/macOS)
|
||||||
@@ -29,8 +27,6 @@ The icon is provided under [Creative Commons BY-NC-SA](https://creativecommons.o
|
|||||||
* [ico](https://dl.thedesk.top/press/TheDesk.ico)
|
* [ico](https://dl.thedesk.top/press/TheDesk.ico)
|
||||||
* [icns](https://dl.thedesk.top/press/TheDesk.icns)
|
* [icns](https://dl.thedesk.top/press/TheDesk.icns)
|
||||||
|
|
||||||
The default sound of notifications is provided [Creative Commons BY](https://creativecommons.org/licenses/by/4.0/)
|
|
||||||
|
|
||||||
## Terms of Use/利用規約
|
## Terms of Use/利用規約
|
||||||
|
|
||||||
* [利用規約(Terms of Use(ja))](https://thedesk.top/tos.html)
|
* [利用規約(Terms of Use(ja))](https://thedesk.top/tos.html)
|
||||||
|
@@ -76,7 +76,7 @@ a,button{
|
|||||||
<img src="./img/desk.png" style="max-width:70%;">
|
<img src="./img/desk.png" style="max-width:70%;">
|
||||||
<h5>TheDesk</h5>
|
<h5>TheDesk</h5>
|
||||||
<div class='container'>
|
<div class='container'>
|
||||||
<div class='area-name1'>Display version</div>
|
<div class='area-name1'>External version</div>
|
||||||
<div class='area-data1' id="now"></div>
|
<div class='area-data1' id="now"></div>
|
||||||
<div class='area-name2'>Internal version</div>
|
<div class='area-name2'>Internal version</div>
|
||||||
<div class='area-data2' id="ver"></div>
|
<div class='area-data2' id="ver"></div>
|
||||||
@@ -87,18 +87,13 @@ a,button{
|
|||||||
<div class='area-name5'>Node.js</div>
|
<div class='area-name5'>Node.js</div>
|
||||||
<div class='area-data5' id="node"></div>
|
<div class='area-data5' id="node"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="cp">Copyright © TheDesk 2018<br>
|
<div class="cp">Copyright © TheDesk 2018 All rights reserved.<br><a href="https://thedesk.top" target="_blank">Web site</a></div>
|
||||||
Main developer(author): <a href="https://cutls.com/@Cutls" target="_blank">Cutls P</a><br>
|
|
||||||
Thanks:<a href="https://minohdon.jp/@toneji" target="_blank">toneji</a>/<a href="https://popon.pptdn.jp/@popn_ja" target="_blank">popn_ja</a>/<a href="https://pawoo.net/@kPherox" target="_blank">kPherox</a> and all users
|
|
||||||
<img draggable="false" style="width:0.8rem;top: 1px;margin-left: 1px;position: relative;" alt="❤️" title=":heart:" src="https://twemoji.maxcdn.com/2/72x72/2764.png">
|
|
||||||
<br><a href="https://thedesk.top" target="_blank">Web site</a></div>
|
|
||||||
<button onclick="window.close()" class="btn waves-effect indigo" style="width:calc(100% - 10px);"><i class="material-icons left">close</i>Close</button>
|
<button onclick="window.close()" class="btn waves-effect indigo" style="width:calc(100% - 10px);"><i class="material-icons left">close</i>Close</button>
|
||||||
<script type="text/javascript" src="./js/ui/theme.js"></script>
|
<script type="text/javascript" src="./js/ui/theme.js"></script>
|
||||||
<script>
|
<script>
|
||||||
$("#now").text(localStorage.getItem("ver"));
|
$("#now").text(localStorage.getItem("ver"));
|
||||||
var electron = require("electron");
|
var electron = require("electron");
|
||||||
var remote=electron.remote;
|
var remote=electron.remote;
|
||||||
const shell=electron.shell;
|
|
||||||
//JSON.parse(fs.readFileSync(info_path, 'utf8'));
|
//JSON.parse(fs.readFileSync(info_path, 'utf8'));
|
||||||
console.log(process.versions);
|
console.log(process.versions);
|
||||||
$("#node").text(process.version);
|
$("#node").text(process.version);
|
||||||
@@ -109,9 +104,6 @@ a,button{
|
|||||||
var ver=m[1];
|
var ver=m[1];
|
||||||
$("#ver").text(ver);
|
$("#ver").text(ver);
|
||||||
}
|
}
|
||||||
$(document).on('click', 'a', e => {
|
|
||||||
var url = $(e.target).attr('href');
|
</script>
|
||||||
shell.openExternal(url);
|
<script type="text/javascript" src="./js/platform/end.js"></script>
|
||||||
return false;
|
|
||||||
});
|
|
||||||
</script>
|
|
@@ -30,8 +30,6 @@ option {
|
|||||||
}
|
}
|
||||||
#mainView {
|
#mainView {
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
overflow:scroll;
|
|
||||||
height: auto;
|
|
||||||
}
|
}
|
||||||
#message {
|
#message {
|
||||||
display: none;
|
display: none;
|
||||||
|
@@ -138,7 +138,7 @@ iframe {
|
|||||||
.area-toot .emoji,.area-toot .emoji-img{
|
.area-toot .emoji,.area-toot .emoji-img{
|
||||||
width: 20px;
|
width: 20px;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
margin:-1px 0;
|
margin: -3px 0 0;
|
||||||
}
|
}
|
||||||
.faicon_FTL{
|
.faicon_FTL{
|
||||||
display:none;
|
display:none;
|
||||||
@@ -249,29 +249,6 @@ grid-area: toot;
|
|||||||
margin:2px;
|
margin:2px;
|
||||||
grid-area: side;
|
grid-area: side;
|
||||||
}
|
}
|
||||||
|
|
||||||
.quote-renote{
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: 43px 2fr 1fr;
|
|
||||||
grid-template-areas: 'ricon ruser' 'ricon rtext';
|
|
||||||
border: 1px solid;
|
|
||||||
margin-top: 3px;
|
|
||||||
padding: 1px;
|
|
||||||
border-radius: 3px;
|
|
||||||
}
|
|
||||||
.renote-icon{
|
|
||||||
grid-area: ricon;
|
|
||||||
}
|
|
||||||
.renote-icon img{
|
|
||||||
width:43px;
|
|
||||||
}
|
|
||||||
.renote-user{
|
|
||||||
grid-area: ruser;
|
|
||||||
}
|
|
||||||
.renote-text{
|
|
||||||
grid-area: rtext;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-flat{
|
.btn-flat{
|
||||||
color:var(--color);
|
color:var(--color);
|
||||||
}
|
}
|
||||||
@@ -308,6 +285,7 @@ grid-area: toot;
|
|||||||
.toot-img {
|
.toot-img {
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
margin-right:1px;
|
||||||
}
|
}
|
||||||
.toot img:not(.emoji-img) {
|
.toot img:not(.emoji-img) {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
@@ -343,7 +321,6 @@ grid-area: toot;
|
|||||||
p {
|
p {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
margin-bottom: 0px;
|
margin-bottom: 0px;
|
||||||
line-height:20px;
|
|
||||||
}
|
}
|
||||||
p:not(:last-child){
|
p:not(:last-child){
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
@@ -531,24 +508,6 @@ p:not(:last-child){
|
|||||||
.jump{
|
.jump{
|
||||||
display: inline-block; animation: jump 0.75s linear infinite;
|
display: inline-block; animation: jump 0.75s linear infinite;
|
||||||
}
|
}
|
||||||
.img-link{
|
|
||||||
position:relative;
|
|
||||||
display:block;
|
|
||||||
margin-right:1px;
|
|
||||||
float: left;
|
|
||||||
}
|
|
||||||
.nsfw-media{
|
|
||||||
position:absolute;
|
|
||||||
top:0;
|
|
||||||
right:0;
|
|
||||||
background-color: black;
|
|
||||||
color:white;
|
|
||||||
}
|
|
||||||
.img-link img{
|
|
||||||
display:block;
|
|
||||||
width:100%;
|
|
||||||
height:100%;
|
|
||||||
}
|
|
||||||
@keyframes jump {
|
@keyframes jump {
|
||||||
0% {
|
0% {
|
||||||
transform: translateY(0);
|
transform: translateY(0);
|
||||||
|
@@ -1,119 +0,0 @@
|
|||||||
var digitCharacters = [
|
|
||||||
"0", "1", "2", "3", "4", "5", "6", "7", "8", "9",
|
|
||||||
"A", "B", "C", "D", "E", "F", "G", "H", "I", "J",
|
|
||||||
"K", "L", "M", "N", "O", "P", "Q", "R", "S", "T",
|
|
||||||
"U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d",
|
|
||||||
"e", "f", "g", "h", "i", "j", "k", "l", "m", "n",
|
|
||||||
"o", "p", "q", "r", "s", "t", "u", "v", "w", "x",
|
|
||||||
"y", "z", "#", "$", "%", "*", "+", ",", "-", ".",
|
|
||||||
":", ";", "=", "?", "@", "[", "]", "^", "_", "{",
|
|
||||||
"|", "}", "~",
|
|
||||||
];
|
|
||||||
function decode83(str) {
|
|
||||||
var value = 0;
|
|
||||||
for (var i = 0; i < str.length; i++) {
|
|
||||||
var c = str[i];
|
|
||||||
var digit = digitCharacters.indexOf(c);
|
|
||||||
value = value * 83 + digit;
|
|
||||||
}
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
function linearTosRGB(value) {
|
|
||||||
var v = Math.max(0, Math.min(1, value));
|
|
||||||
if (v <= 0.0031308) {
|
|
||||||
return Math.round(v * 12.92 * 255 + 0.5);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return Math.round((1.055 * Math.pow(v, 1 / 2.4) - 0.055) * 255 + 0.5);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function sRGBToLinear(value) {
|
|
||||||
var v = value / 255;
|
|
||||||
if (v <= 0.04045) {
|
|
||||||
return v / 12.92;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return Math.pow((v + 0.055) / 1.055, 2.4);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function decodeDC(value) {
|
|
||||||
var intR = value >> 16;
|
|
||||||
var intG = (value >> 8) & 255;
|
|
||||||
var intB = value & 255;
|
|
||||||
return [sRGBToLinear(intR), sRGBToLinear(intG), sRGBToLinear(intB)];
|
|
||||||
};
|
|
||||||
function sign(n) { return (n < 0 ? -1 : 1); }
|
|
||||||
function signPow(val, exp) { return sign(val) * Math.pow(Math.abs(val), exp); }
|
|
||||||
function decodeDC2(value, maximumValue) {
|
|
||||||
var quantR = Math.floor(value / (19 * 19));
|
|
||||||
var quantG = Math.floor(value / 19) % 19;
|
|
||||||
var quantB = value % 19;
|
|
||||||
var rgb = [
|
|
||||||
signPow((quantR - 9) / 9, 2.0) * maximumValue,
|
|
||||||
signPow((quantG - 9) / 9, 2.0) * maximumValue,
|
|
||||||
signPow((quantB - 9) / 9, 2.0) * maximumValue,
|
|
||||||
];
|
|
||||||
return rgb;
|
|
||||||
};
|
|
||||||
function decodeblur(blurhash, width, height, punch) {
|
|
||||||
punch = punch | 1;
|
|
||||||
if (blurhash.length < 6) {
|
|
||||||
console.error('too short blurhash');
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
var sizeFlag = decode83(blurhash[0]);
|
|
||||||
var numY = Math.floor(sizeFlag / 9) + 1;
|
|
||||||
var numX = (sizeFlag % 9) + 1;
|
|
||||||
var quantisedMaximumValue = decode83(blurhash[1]);
|
|
||||||
var maximumValue = (quantisedMaximumValue + 1) / 166;
|
|
||||||
if (blurhash.length !== 4 + 2 * numX * numY) {
|
|
||||||
console.error('blurhash length mismatch', blurhash.length, 4 + 2 * numX * numY);
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
var colors = new Array(numX * numY);
|
|
||||||
for (var i = 0; i < colors.length; i++) {
|
|
||||||
if (i === 0) {
|
|
||||||
var value = decode83(blurhash.substring(2, 6));
|
|
||||||
colors[i] = decodeDC(value);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
var value = decode83(blurhash.substring(4 + i * 2, 6 + i * 2));
|
|
||||||
colors[i] = decodeDC2(value, maximumValue * punch);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
var bytesPerRow = width * 4;
|
|
||||||
var pixels = new Uint8ClampedArray(bytesPerRow * height);
|
|
||||||
for (var y = 0; y < height; y++) {
|
|
||||||
for (var x = 0; x < width; x++) {
|
|
||||||
var r = 0;
|
|
||||||
var g = 0;
|
|
||||||
var b = 0;
|
|
||||||
for (var j = 0; j < numY; j++) {
|
|
||||||
for (var i = 0; i < numX; i++) {
|
|
||||||
var basis = Math.cos(Math.PI * x * i / width) * Math.cos(Math.PI * y * j / height);
|
|
||||||
var color = colors[i + j * numX];
|
|
||||||
r += color[0] * basis;
|
|
||||||
g += color[1] * basis;
|
|
||||||
b += color[2] * basis;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
var intR = linearTosRGB(r);
|
|
||||||
var intG = linearTosRGB(g);
|
|
||||||
var intB = linearTosRGB(b);
|
|
||||||
pixels[4 * x + 0 + y * bytesPerRow] = intR;
|
|
||||||
pixels[4 * x + 1 + y * bytesPerRow] = intG;
|
|
||||||
pixels[4 * x + 2 + y * bytesPerRow] = intB;
|
|
||||||
pixels[4 * x + 3 + y * bytesPerRow] = 255; // alpha
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return pixels;
|
|
||||||
}
|
|
||||||
function parseBlur(blur) {
|
|
||||||
var canvas = document.getElementById('canvas');
|
|
||||||
var ctx = canvas.getContext('2d');
|
|
||||||
var pixels = decodeblur(blur, 32, 32)
|
|
||||||
const imageData = new ImageData(pixels, 32, 32);
|
|
||||||
|
|
||||||
ctx.putImageData(imageData, 0, 0);
|
|
||||||
return canvas.toDataURL()
|
|
||||||
}
|
|
@@ -190,7 +190,7 @@ function verck(ver) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(show){
|
if(show){
|
||||||
Materialize.toast(escapeHTML(obj.Text)+toot+'<span class="sml grey-text">(スライドして消去)</span>', 86400);
|
Materialize.toast(obj.Text+toot+'<span class="sml grey-text">(スライドして消去)</span>', 86400);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -211,6 +211,9 @@ function infowebsocket(){
|
|||||||
console.log(JSON.parse(mess.data));
|
console.log(JSON.parse(mess.data));
|
||||||
var obj=JSON.parse(mess.data);
|
var obj=JSON.parse(mess.data);
|
||||||
if(obj.type!="counter"){
|
if(obj.type!="counter"){
|
||||||
|
if(obj.id*1<=localStorage.getItem("last-notice-id")){
|
||||||
|
|
||||||
|
}else{
|
||||||
localStorage.setItem("last-notice-id",obj.id)
|
localStorage.setItem("last-notice-id",obj.id)
|
||||||
var show=true;
|
var show=true;
|
||||||
if(obj.toot!=""){
|
if(obj.toot!=""){
|
||||||
@@ -239,8 +242,9 @@ function infowebsocket(){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(show){
|
if(show){
|
||||||
Materialize.toast(escapeHTML(obj.text)+toot+'<span class="sml grey-text">(スライドして消去)</span>', 86400);
|
Materialize.toast(obj.text+toot+'<span class="sml grey-text">(スライドして消去)</span>', 86400);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}else{
|
}else{
|
||||||
$("#persons").text(obj.text);
|
$("#persons").text(obj.text);
|
||||||
}
|
}
|
||||||
|
@@ -54,13 +54,7 @@ function defEmoji(target){
|
|||||||
var emojiraw = newpack.filter(function(item, index){
|
var emojiraw = newpack.filter(function(item, index){
|
||||||
if (item.short_name == target) return true;
|
if (item.short_name == target) return true;
|
||||||
});
|
});
|
||||||
var hex=emojiraw[0].unified.split("-");
|
emoji=twemoji.convert.fromCodePoint(emojiraw[0].unified);
|
||||||
if(hex.length===2){
|
|
||||||
emoji=twemoji.convert.fromCodePoint(hex[0])+twemoji.convert.fromCodePoint(hex[1]);
|
|
||||||
}else{
|
|
||||||
emoji=twemoji.convert.fromCodePoint(hex[0]);
|
|
||||||
}
|
|
||||||
console.log(emoji)
|
|
||||||
var now = $("#textarea").val();
|
var now = $("#textarea").val();
|
||||||
var selin = localStorage.getItem("cursor");
|
var selin = localStorage.getItem("cursor");
|
||||||
var now = $("#textarea").val();
|
var now = $("#textarea").val();
|
||||||
|
@@ -189,7 +189,7 @@ var lang={
|
|||||||
"lang_parse_clientmute":"muted",
|
"lang_parse_clientmute":"muted",
|
||||||
"lang_parse_mute":" will be muted. You can remove on preferences.",
|
"lang_parse_mute":" will be muted. You can remove on preferences.",
|
||||||
"lang_parse_voted":"Voted",
|
"lang_parse_voted":"Voted",
|
||||||
"lang_parse_vote":"Vote",
|
"lang_parse_vote":"Voted",
|
||||||
"lang_parse_unvoted":"Show the result without voting",
|
"lang_parse_unvoted":"Show the result without voting",
|
||||||
"lang_parse_endedvote":"Expired",
|
"lang_parse_endedvote":"Expired",
|
||||||
"lang_parse_thread":"Show thread",
|
"lang_parse_thread":"Show thread",
|
||||||
|
@@ -14,6 +14,23 @@ function ck() {
|
|||||||
}
|
}
|
||||||
var domainz = localStorage.getItem("domain_0");
|
var domainz = localStorage.getItem("domain_0");
|
||||||
var at = localStorage.getItem("acct_0_at");
|
var at = localStorage.getItem("acct_0_at");
|
||||||
|
var oldat = localStorage.getItem(domainz + "_at");
|
||||||
|
if(oldat){
|
||||||
|
console.log("Move to New Account Management System")
|
||||||
|
var multi = localStorage.getItem("multi");
|
||||||
|
if (!multi) {
|
||||||
|
var acctlen=1;
|
||||||
|
} else {
|
||||||
|
var obj = JSON.parse(multi);
|
||||||
|
var acctlen=obj.length;
|
||||||
|
}
|
||||||
|
for(i=0;acctlen>i;i++){
|
||||||
|
var domain = localStorage.getItem("domain_"+i);
|
||||||
|
var oldat = localStorage.getItem(domain + "_at");
|
||||||
|
var newat = localStorage.setItem("acct_"+ i + "_at",oldat);
|
||||||
|
localStorage.removeItem(domain + "_at");
|
||||||
|
}
|
||||||
|
}
|
||||||
//コード受信
|
//コード受信
|
||||||
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=(.+)/);
|
||||||
@@ -43,9 +60,7 @@ if (obj[0].domain) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ck();
|
ck();
|
||||||
|
|
||||||
|
|
||||||
//ログインポップアップ
|
//ログインポップアップ
|
||||||
function login(url) {
|
function login(url) {
|
||||||
if($('#linux:checked').val()=="on"){
|
if($('#linux:checked').val()=="on"){
|
||||||
@@ -502,7 +517,7 @@ function multiSelector() {
|
|||||||
$("#add-acct-sel").append('<option value="noauth">'+lang.lang_login_noauth+'</option><option value="webview">Twitter</option>');
|
$("#add-acct-sel").append('<option value="noauth">'+lang.lang_login_noauth+'</option><option value="webview">Twitter</option>');
|
||||||
}
|
}
|
||||||
$('select').material_select('update');
|
$('select').material_select('update');
|
||||||
parseColumn(true);
|
parseColumn();
|
||||||
}
|
}
|
||||||
|
|
||||||
//バージョンエンコ
|
//バージョンエンコ
|
||||||
|
@@ -363,27 +363,7 @@ function misskeyLogin(url) {
|
|||||||
"reaction-read",
|
"reaction-read",
|
||||||
"reaction-write",
|
"reaction-write",
|
||||||
"vote-read",
|
"vote-read",
|
||||||
"vote-write",
|
"vote-write"
|
||||||
"read:account",
|
|
||||||
"write:account",
|
|
||||||
"read:drive",
|
|
||||||
"write:drive",
|
|
||||||
"read:blocks",
|
|
||||||
"write:blocks",
|
|
||||||
"read:favorites",
|
|
||||||
"write:favorites",
|
|
||||||
"read:following",
|
|
||||||
"write:following",
|
|
||||||
"read:messaging",
|
|
||||||
"write:messaging",
|
|
||||||
"read:mutes",
|
|
||||||
"write:mutes",
|
|
||||||
"write:notes",
|
|
||||||
"read:notifications",
|
|
||||||
"write:notifications",
|
|
||||||
"read:reactions",
|
|
||||||
"write:reactions",
|
|
||||||
"write:votes"
|
|
||||||
]
|
]
|
||||||
}));
|
}));
|
||||||
httpreq.onreadystatechange = function() {
|
httpreq.onreadystatechange = function() {
|
||||||
@@ -540,7 +520,7 @@ function getdata(domain, at) {
|
|||||||
console.log(json);
|
console.log(json);
|
||||||
if (json.error) {
|
if (json.error) {
|
||||||
console.error("Error:" + json.error);
|
console.error("Error:" + json.error);
|
||||||
Materialize.toast(lang.lang_fatalerroroccured+"Error:" + escapeHTML(json.error),
|
Materialize.toast(lang.lang_fatalerroroccured+"Error:" + json.error,
|
||||||
5000);
|
5000);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -815,7 +795,7 @@ input.addEventListener("focus", function() {
|
|||||||
Object.keys(json.instances).forEach(function(key) {
|
Object.keys(json.instances).forEach(function(key) {
|
||||||
var url = json.instances[key];
|
var url = json.instances[key];
|
||||||
urls = urls + ' <a onclick="login(\'' + url.name +
|
urls = urls + ' <a onclick="login(\'' + url.name +
|
||||||
'\')" class="pointer">' +escapeHTML(url.name) + '</a> ';
|
'\')" class="pointer">' + url.name + '</a> ';
|
||||||
});
|
});
|
||||||
$("#ins-suggest").html(urls);
|
$("#ins-suggest").html(urls);
|
||||||
}
|
}
|
||||||
|
@@ -181,21 +181,4 @@ const {
|
|||||||
} = require('electron');
|
} = require('electron');
|
||||||
webviewDom.addEventListener('new-window', function(e) {
|
webviewDom.addEventListener('new-window', function(e) {
|
||||||
shell.openExternal(e.url);
|
shell.openExternal(e.url);
|
||||||
});
|
});
|
||||||
function playSound() {
|
|
||||||
window.AudioContext = window.AudioContext || window.webkitAudioContext;
|
|
||||||
context = new AudioContext();
|
|
||||||
context.createBufferSource().start(0);
|
|
||||||
context.decodeAudioData(request.response, function (buf) {
|
|
||||||
console.log(source)
|
|
||||||
source.buffer = buf;
|
|
||||||
source.loop = false;
|
|
||||||
});
|
|
||||||
source = context.createBufferSource();
|
|
||||||
volumeControl = context.createGain();
|
|
||||||
source.connect(volumeControl);
|
|
||||||
volumeControl.connect(context.destination);
|
|
||||||
volumeControl.gain.value=0.8
|
|
||||||
console.log(volumeControl)
|
|
||||||
source.start(0);
|
|
||||||
}
|
|
@@ -62,7 +62,7 @@ function formattime(date){
|
|||||||
}else{
|
}else{
|
||||||
str=str+date.getMinutes()
|
str=str+date.getMinutes()
|
||||||
}
|
}
|
||||||
return escapeHTML(str);
|
return str;
|
||||||
}
|
}
|
||||||
function formattimeutc(date){
|
function formattimeutc(date){
|
||||||
var str=date.getUTCFullYear()+"-";
|
var str=date.getUTCFullYear()+"-";
|
||||||
@@ -87,7 +87,7 @@ function formattimeutc(date){
|
|||||||
}else{
|
}else{
|
||||||
str=str+date.getUTCMinutes()
|
str=str+date.getUTCMinutes()
|
||||||
}
|
}
|
||||||
return escapeHTML(str);
|
return str;
|
||||||
}
|
}
|
||||||
var electron = require("electron");
|
var electron = require("electron");
|
||||||
var ipc = electron.ipcRenderer;
|
var ipc = electron.ipcRenderer;
|
||||||
|
@@ -35,7 +35,7 @@ function emojiToggle(reaction) {
|
|||||||
|
|
||||||
//絵文字リスト挿入
|
//絵文字リスト挿入
|
||||||
function emojiGet(parse, started) {
|
function emojiGet(parse, started) {
|
||||||
$('#emoji-list').text('Loading...');
|
$('#emoji-list').html('Loading...');
|
||||||
var acct_id = $("#post-acct-sel").val();
|
var acct_id = $("#post-acct-sel").val();
|
||||||
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") {
|
||||||
@@ -52,7 +52,7 @@ function emojiGet(parse, started) {
|
|||||||
console.error(error);
|
console.error(error);
|
||||||
}).then(function (json) {
|
}).then(function (json) {
|
||||||
if (parse == "true") {
|
if (parse == "true") {
|
||||||
$('#emoji-list').text('Parsing...');
|
$('#emoji-list').html('Parsing...');
|
||||||
//絵文字をマストドン公式と同順にソート
|
//絵文字をマストドン公式と同順にソート
|
||||||
json.sort(function (a, b) {
|
json.sort(function (a, b) {
|
||||||
if (a.shortcode < b.shortcode) return -1;
|
if (a.shortcode < b.shortcode) return -1;
|
||||||
@@ -96,7 +96,7 @@ function emojiGet(parse, started) {
|
|||||||
})
|
})
|
||||||
});
|
});
|
||||||
if (parse == "true") {
|
if (parse == "true") {
|
||||||
$('#emoji-list').text('Parsing...');
|
$('#emoji-list').html('Parsing...');
|
||||||
//絵文字をマストドン公式と同順にソート
|
//絵文字をマストドン公式と同順にソート
|
||||||
md.sort(function (a, b) {
|
md.sort(function (a, b) {
|
||||||
if (a.shortcode < b.shortcode) return -1;
|
if (a.shortcode < b.shortcode) return -1;
|
||||||
|
@@ -64,11 +64,11 @@ function reactiontoggle(id,acct_id,tlid){
|
|||||||
if (httpreq.readyState === 4) {
|
if (httpreq.readyState === 4) {
|
||||||
var json = httpreq.response;
|
var json = httpreq.response;
|
||||||
console.log(json);
|
console.log(json);
|
||||||
if(json.reactions){
|
if(json.reactionCounts){
|
||||||
var reactions=["like","love","laugh","hmm","surprise","congrats","angry","confused","pudding","rip"];
|
var reactions=["like","love","laugh","hmm","surprise","congrats","angry","confused","pudding","star"];
|
||||||
for(var i=0;i<reactions.length;i++){
|
for(var i=0;i<reactions.length;i++){
|
||||||
if(json.reactions[reactions[i]]){
|
if(json.reactionCounts[reactions[i]]){
|
||||||
$("#pub_" + id +" .re-"+reactions[i]+"ct").text(json.reactions[reactions[i]])
|
$("#pub_" + id +" .re-"+reactions[i]+"ct").text(json.reactionCounts[reactions[i]])
|
||||||
$("#pub_" + id +" .re-"+reactions[i]).removeClass("hide")
|
$("#pub_" + id +" .re-"+reactions[i]).removeClass("hide")
|
||||||
}else{
|
}else{
|
||||||
$("#pub_" + id +" .re-"+reactions[i]+"ct").text(0)
|
$("#pub_" + id +" .re-"+reactions[i]+"ct").text(0)
|
||||||
@@ -77,7 +77,7 @@ function reactiontoggle(id,acct_id,tlid){
|
|||||||
}else{
|
}else{
|
||||||
$("#pub_" + id +" .re-"+reactions[i]).removeClass("hide")
|
$("#pub_" + id +" .re-"+reactions[i]).removeClass("hide")
|
||||||
}
|
}
|
||||||
$("#pub_" + id +" .re-"+reactions[i]+"ct").text(json.reactions[reactions[i]])
|
$("#pub_" + id +" .re-"+reactions[i]+"ct").text(json.reactionCounts[reactions[i]])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$("#pub_" + id +" .reactions").removeClass("hide");
|
$("#pub_" + id +" .reactions").removeClass("hide");
|
||||||
@@ -143,21 +143,21 @@ function reactRefresh(acct_id,id){
|
|||||||
}
|
}
|
||||||
function reactRefreshCore(json){
|
function reactRefreshCore(json){
|
||||||
var id=json.id;
|
var id=json.id;
|
||||||
if(json.reactions){
|
if(json.reactionCounts){
|
||||||
$("#pub_" + id +" .reactions").removeClass("hide")
|
$("#pub_" + id +" .reactions").removeClass("hide")
|
||||||
var regExp = new RegExp( ":", "g" ) ;
|
var regExp = new RegExp( ":", "g" ) ;
|
||||||
Object.keys(json.reactions).forEach(function(keye) {
|
Object.keys(json.reactionCounts).forEach(function(keye) {
|
||||||
keyeClass=keye.replace(regExp,'');
|
keyeClass=keye.replace(regExp,'');
|
||||||
if(json.reactions[keye]){
|
if(json.reactionCounts[keye]){
|
||||||
console.log(json.reactions[keye])
|
console.log(json.reactionCounts[keye])
|
||||||
$("#pub_" + id +" .re-"+keyeClass+"ct").text(json.reactions[keye])
|
$("#pub_" + id +" .re-"+keyeClass+"ct").text(json.reactionCounts[keye])
|
||||||
$("#pub_" + id +" .re-"+keyeClass).removeClass("hide")
|
$("#pub_" + id +" .re-"+keyeClass).removeClass("hide")
|
||||||
}else{
|
}else{
|
||||||
$("#pub_" + id +" .re-"+keyeClass+"ct").text(0)
|
$("#pub_" + id +" .re-"+keyeClass+"ct").text(0)
|
||||||
if($("#pub_" + id +" .reactions").hasClass("fullreact")){
|
if($("#pub_" + id +" .reactions").hasClass("fullreact")){
|
||||||
$("#pub_" + id +" .re-"+keyeClass).addClass("hide")
|
$("#pub_" + id +" .re-"+keyeClass).addClass("hide")
|
||||||
}
|
}
|
||||||
$("#pub_" + id +" .re-"+keyeClass+"ct").text(json.reactions[keye])
|
$("#pub_" + id +" .re-"+keyeClass+"ct").text(json.reactionCounts[keye])
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -234,7 +234,7 @@ function voterefresh(acct_id,id){
|
|||||||
}else{
|
}else{
|
||||||
var myvote="";
|
var myvote="";
|
||||||
}
|
}
|
||||||
poll=poll+'<div class="pointer vote" onclick="vote(\''+acct_id+'\',\''+json.id+'\','+choice.id+')">'+escapeHTML(choice.text)+'('+choice.votes+''+myvote+')</div>';
|
poll=poll+'<div class="pointer vote" onclick="vote(\''+acct_id+'\',\''+json.id+'\','+choice.id+')">'+choice.text+'('+choice.votes+''+myvote+')</div>';
|
||||||
});
|
});
|
||||||
$(".vote_"+json.id).html(poll)
|
$(".vote_"+json.id).html(poll)
|
||||||
}
|
}
|
||||||
|
@@ -298,7 +298,7 @@ function clear() {
|
|||||||
$("#post-acct-sel").prop("disabled", false);
|
$("#post-acct-sel").prop("disabled", false);
|
||||||
$("#days_poll").val(0);
|
$("#days_poll").val(0);
|
||||||
$("#hours_poll").val(0);
|
$("#hours_poll").val(0);
|
||||||
$("#mins_poll").val(6);
|
$("#mins_poll").val(0);
|
||||||
$(".mastodon-choice").map(function() {
|
$(".mastodon-choice").map(function() {
|
||||||
$(this).val("");
|
$(this).val("");
|
||||||
});
|
});
|
||||||
|
@@ -169,7 +169,7 @@ function cgNPs(q){
|
|||||||
var tags = "";
|
var tags = "";
|
||||||
Object.keys(json).forEach(function(key4) {
|
Object.keys(json).forEach(function(key4) {
|
||||||
var tag = json[key4];
|
var tag = json[key4];
|
||||||
tags = tags + '<a onclick="cgNP(\''+json[key4]+'\')" class="pointer">' + escapeHTML(json[key4]) + '</a> ';
|
tags = tags + '<a onclick="cgNP(\''+json[key4]+'\')" class="pointer">' + json[key4] + '</a> ';
|
||||||
});
|
});
|
||||||
$("#suggest").html("Cinderella NowPlaying:" + tags);
|
$("#suggest").html("Cinderella NowPlaying:" + tags);
|
||||||
}else{
|
}else{
|
||||||
|
@@ -63,8 +63,8 @@ function additional(acct_id, tlid) {
|
|||||||
}).then(function(json) {
|
}).then(function(json) {
|
||||||
if (json.title) {
|
if (json.title) {
|
||||||
$("[toot-id=" + id + "] .additional").html(
|
$("[toot-id=" + id + "] .additional").html(
|
||||||
"<span class=\"gray\">URL"+lang.lang_cards_check+":<br>Title:" + escapeHTML(json.title) + "<br>" +
|
"<span class=\"gray\">URL"+lang.lang_cards_check+":<br>Title:" + json.title + "<br>" +
|
||||||
escapeHTML(json.description) + "</span>");
|
json.description + "</span>");
|
||||||
$("[toot-id=" + id + "] a:not(.parsed)").addClass("parsed");
|
$("[toot-id=" + id + "] a:not(.parsed)").addClass("parsed");
|
||||||
$("[toot-id=" + id + "]").addClass("parsed");
|
$("[toot-id=" + id + "]").addClass("parsed");
|
||||||
}
|
}
|
||||||
@@ -148,8 +148,8 @@ function additionalIndv(tlid, acct_id, id) {
|
|||||||
}).then(function(json) {
|
}).then(function(json) {
|
||||||
if (json.title) {
|
if (json.title) {
|
||||||
$("[toot-id=" + id + "] .additional").html(
|
$("[toot-id=" + id + "] .additional").html(
|
||||||
"<span class=\"gray\">URL"+lang.lang_cards_check+":<br>Title:" + escapeHTML(json.title) + "<br>" +
|
"<span class=\"gray\">URL"+lang.lang_cards_check+":<br>Title:" + json.title + "<br>" +
|
||||||
escapeHTML(json.description) + "</span>");
|
json.description + "</span>");
|
||||||
$("[toot-id=" + id + "] a:not(.parsed)").addClass("parsed");
|
$("[toot-id=" + id + "] a:not(.parsed)").addClass("parsed");
|
||||||
$("[toot-id=" + id + "]").addClass("parsed");
|
$("[toot-id=" + id + "]").addClass("parsed");
|
||||||
}
|
}
|
||||||
|
@@ -91,9 +91,6 @@ function details(id, acct_id, tlid, mode) {
|
|||||||
}
|
}
|
||||||
beforeToot(id, acct_id, dom);
|
beforeToot(id, acct_id, dom);
|
||||||
userToot(id, acct_id, uid);
|
userToot(id, acct_id, uid);
|
||||||
afterToot(id, acct_id, dom);
|
|
||||||
afterUserToot(id, acct_id, uid);
|
|
||||||
afterFTLToot(id, acct_id, dom);
|
|
||||||
faved(id, acct_id);
|
faved(id, acct_id);
|
||||||
rted(id, acct_id);
|
rted(id, acct_id);
|
||||||
if($("#toot-this div").hasClass("cvo")){
|
if($("#toot-this div").hasClass("cvo")){
|
||||||
@@ -102,7 +99,7 @@ function details(id, acct_id, tlid, mode) {
|
|||||||
$("#toot-this").addClass("cvo");
|
$("#toot-this").addClass("cvo");
|
||||||
}
|
}
|
||||||
if(!$("#activator").hasClass("active")){
|
if(!$("#activator").hasClass("active")){
|
||||||
$('#det-col').collapsible('open', 4);
|
$('#det-col').collapsible('open', 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
@@ -335,81 +332,6 @@ function userToot(id, acct_id, user) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
//後のLTL
|
|
||||||
function afterToot(id, acct_id, domain) {
|
|
||||||
//var domain = localStorage.getItem("domain_" + acct_id);
|
|
||||||
var at = localStorage.getItem("acct_"+ acct_id + "_at");
|
|
||||||
var start = "https://" + domain +
|
|
||||||
"/api/v1/timelines/public?local=true&min_id=" + id;
|
|
||||||
fetch(start, {
|
|
||||||
method: 'GET',
|
|
||||||
headers: {
|
|
||||||
'content-type': 'application/json',
|
|
||||||
},
|
|
||||||
}).then(function(response) {
|
|
||||||
return response.json();
|
|
||||||
}).catch(function(error) {
|
|
||||||
todo(error);
|
|
||||||
console.error(error);
|
|
||||||
}).then(function(json) {
|
|
||||||
var templete = parse(json, 'noauth', acct_id);
|
|
||||||
if(templete!=""){
|
|
||||||
$("#ltl-after .no-data").hide();
|
|
||||||
}
|
|
||||||
$("#ltl-after").html(templete);
|
|
||||||
jQuery("time.timeago").timeago();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
//後のUTL
|
|
||||||
function afterUserToot(id, acct_id, user) {
|
|
||||||
var domain = localStorage.getItem("domain_" + acct_id);
|
|
||||||
var at = localStorage.getItem("acct_"+ acct_id + "_at");
|
|
||||||
var start = "https://" + domain + "/api/v1/accounts/" + user + "/statuses?min_id=" + id;
|
|
||||||
fetch(start, {
|
|
||||||
method: 'GET',
|
|
||||||
headers: {
|
|
||||||
'content-type': 'application/json',
|
|
||||||
'Authorization': 'Bearer ' + at
|
|
||||||
},
|
|
||||||
}).then(function(response) {
|
|
||||||
return response.json();
|
|
||||||
}).catch(function(error) {
|
|
||||||
todo(error);
|
|
||||||
console.error(error);
|
|
||||||
}).then(function(json) {
|
|
||||||
var templete = parse(json, '', acct_id);
|
|
||||||
if(templete!=""){
|
|
||||||
$("#user-after .no-data").hide();
|
|
||||||
}
|
|
||||||
$("#user-after").html(templete);
|
|
||||||
jQuery("time.timeago").timeago();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
//後のFTL
|
|
||||||
function afterFTLToot(id, acct_id, domain) {
|
|
||||||
//var domain = localStorage.getItem("domain_" + acct_id);
|
|
||||||
var at = localStorage.getItem("acct_"+ acct_id + "_at");
|
|
||||||
var start = "https://" + domain +
|
|
||||||
"/api/v1/timelines/public?min_id=" + id;
|
|
||||||
fetch(start, {
|
|
||||||
method: 'GET',
|
|
||||||
headers: {
|
|
||||||
'content-type': 'application/json',
|
|
||||||
},
|
|
||||||
}).then(function(response) {
|
|
||||||
return response.json();
|
|
||||||
}).catch(function(error) {
|
|
||||||
todo(error);
|
|
||||||
console.error(error);
|
|
||||||
}).then(function(json) {
|
|
||||||
var templete = parse(json, 'noauth', acct_id);
|
|
||||||
if(templete!=""){
|
|
||||||
$("#ftl-after .no-data").hide();
|
|
||||||
}
|
|
||||||
$("#ftl-after").html(templete);
|
|
||||||
jQuery("time.timeago").timeago();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
//ふぁぼ一覧
|
//ふぁぼ一覧
|
||||||
function faved(id, acct_id) {
|
function faved(id, acct_id) {
|
||||||
|
@@ -251,7 +251,7 @@ function dmListParse(obj, mix, acct_id, tlid, popup, mutefilter) {
|
|||||||
var via = '';
|
var via = '';
|
||||||
viashow="hide";
|
viashow="hide";
|
||||||
} else {
|
} else {
|
||||||
var via = escapeHTML(toot.application.name);
|
var via = toot.application.name;
|
||||||
//強調チェック
|
//強調チェック
|
||||||
Object.keys(emp).forEach(function(key6) {
|
Object.keys(emp).forEach(function(key6) {
|
||||||
var cli = emp[key6];
|
var cli = emp[key6];
|
||||||
@@ -432,7 +432,7 @@ function dmListParse(obj, mix, acct_id, tlid, popup, mutefilter) {
|
|||||||
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">'+word+"</span>");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -483,7 +483,7 @@ function dmListParse(obj, mix, acct_id, tlid, popup, mutefilter) {
|
|||||||
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;"> '+value.name+'</span></div>';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -30,7 +30,7 @@ function list(){
|
|||||||
var lists = "";
|
var lists = "";
|
||||||
Object.keys(json).forEach(function(key) {
|
Object.keys(json).forEach(function(key) {
|
||||||
var list = json[key];
|
var list = json[key];
|
||||||
lists = lists + escapeHTML(list.title)+':<a onclick="listShow(\'' + list.id + '\',\'' + escapeHTML(list.title) + '\',\'' + acct_id +
|
lists = lists + list.title+':<a onclick="listShow(\'' + list.id + '\',\'' + list.title + '\',\'' + acct_id +
|
||||||
'\')" class="pointer">'+lang.lang_list_show+'</a><br>';
|
'\')" class="pointer">'+lang.lang_list_show+'</a><br>';
|
||||||
});
|
});
|
||||||
$("#lists").html(lists);
|
$("#lists").html(lists);
|
||||||
@@ -57,7 +57,7 @@ function list(){
|
|||||||
var lists = "";
|
var lists = "";
|
||||||
Object.keys(json).forEach(function(key) {
|
Object.keys(json).forEach(function(key) {
|
||||||
var list = json[key];
|
var list = json[key];
|
||||||
lists = lists + escapeHTML(list.title)+':<a onclick="listShow(\'' + list.id + '\',\'' + escapeHTML(list.title) + '\',\'' + acct_id +
|
lists = lists + list.title+':<a onclick="listShow(\'' + list.id + '\',\'' + list.title + '\',\'' + acct_id +
|
||||||
'\')" class="pointer">'+lang.lang_list_show+'</a>/<a onclick="listUser(\'' + list.id + '\',' + acct_id +
|
'\')" class="pointer">'+lang.lang_list_show+'</a>/<a onclick="listUser(\'' + list.id + '\',' + acct_id +
|
||||||
')" class="pointer">'+lang.lang_list_users+'</a><br>';
|
')" class="pointer">'+lang.lang_list_users+'</a><br>';
|
||||||
});
|
});
|
||||||
@@ -193,7 +193,7 @@ function hisList(user,acct_id){
|
|||||||
Object.keys(json).forEach(function(key) {
|
Object.keys(json).forEach(function(key) {
|
||||||
var list = json[key];
|
var list = json[key];
|
||||||
lists = lists + '<a onclick="listRemove(\'' + list.id + '\',\'' + user + '\',\'' + acct_id +
|
lists = lists + '<a onclick="listRemove(\'' + list.id + '\',\'' + user + '\',\'' + acct_id +
|
||||||
'\')" class="pointer">'+escapeHTML(list.title)+'</a><br> ';
|
'\')" class="pointer">'+list.title+'</a><br> ';
|
||||||
});
|
});
|
||||||
$("#his-lists-b").html(lists);
|
$("#his-lists-b").html(lists);
|
||||||
}else{
|
}else{
|
||||||
@@ -217,7 +217,7 @@ function hisList(user,acct_id){
|
|||||||
var lists = "";
|
var lists = "";
|
||||||
Object.keys(json).forEach(function(key) {
|
Object.keys(json).forEach(function(key) {
|
||||||
var list = json[key];
|
var list = json[key];
|
||||||
lists = lists + list.title+':<a onclick="listShow(\'' + list.id + '\',\'' + escapeHTML(list.title) + '\',\'' + acct_id +
|
lists = lists + list.title+':<a onclick="listShow(\'' + list.id + '\',\'' + list.title + '\',\'' + acct_id +
|
||||||
'\')" class="pointer">'+lang.lang_list_show+'</a>/<a onclick="listAdd(\'' + list.id + '\',\'' + user + '\',\'' + acct_id +
|
'\')" class="pointer">'+lang.lang_list_show+'</a>/<a onclick="listAdd(\'' + list.id + '\',\'' + user + '\',\'' + acct_id +
|
||||||
'\')" class="pointer">'+lang.lang_list_add+lang.lang_list_add_misskey+'</a><br>';
|
'\')" class="pointer">'+lang.lang_list_add+lang.lang_list_add_misskey+'</a><br>';
|
||||||
});
|
});
|
||||||
|
File diff suppressed because it is too large
Load Diff
@@ -94,14 +94,12 @@ function mixre(acct_id, tlid, TLtype, mute,delc,voice,mode) {
|
|||||||
websocketLocal[wslid] = new WebSocket(startLocal);
|
websocketLocal[wslid] = new WebSocket(startLocal);
|
||||||
websocketHome[wshid].onopen = function(mess) {
|
websocketHome[wshid].onopen = function(mess) {
|
||||||
localStorage.setItem("wssH_" + tlid, wshid);
|
localStorage.setItem("wssH_" + tlid, wshid);
|
||||||
console.log(tlid + ":Connect Streaming API(Integrated:Home)");
|
console.log("Connect Streaming API(Integrated:Home)");
|
||||||
console.log(mess);
|
|
||||||
$("#notice_icon_" + tlid).removeClass("red-text");
|
$("#notice_icon_" + tlid).removeClass("red-text");
|
||||||
}
|
}
|
||||||
websocketLocal[wslid].onopen = function(mess) {
|
websocketLocal[wslid].onopen = function(mess) {
|
||||||
localStorage.setItem("wssL_" + tlid, wslid);
|
localStorage.setItem("wssL_" + tlid, wslid);
|
||||||
console.log(tlid + ":Connect Streaming API(Integrated:Local)");
|
console.log("Connect Streaming API(Integrated:Local)");
|
||||||
console.log(mess);
|
|
||||||
$("#notice_icon_" + tlid).removeClass("red-text");
|
$("#notice_icon_" + tlid).removeClass("red-text");
|
||||||
}
|
}
|
||||||
websocketLocal[wslid].onmessage = function(mess) {
|
websocketLocal[wslid].onmessage = function(mess) {
|
||||||
@@ -197,57 +195,39 @@ function mixre(acct_id, tlid, TLtype, mute,delc,voice,mode) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
websocketLocal[wslid].onerror = function(error) {
|
websocketLocal[wslid].onerror = function(error) {
|
||||||
console.error('WebSocketLocal Error')
|
console.error('WebSocket Error ' + error);
|
||||||
console.error(error);
|
|
||||||
if(mode=="error"){
|
if(mode=="error"){
|
||||||
$("#notice_icon_" + tlid).addClass("red-text");
|
$("#notice_icon_" + tlid).addClass("red-text");
|
||||||
todo('WebSocket Error ' + error);
|
todo('WebSocket Error ' + error);
|
||||||
}else{
|
}else{
|
||||||
var errorct=localStorage.getItem("wserror_" + tlid)*1+1;
|
reconnector(tlid,TLtype,acct_id,"","error");
|
||||||
localStorage.setItem("wserror_" + tlid,errorct);
|
|
||||||
if(errorct<3){
|
|
||||||
reconnector(tlid,TLtype,acct_id,"","error");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
websocketLocal[wslid].onclose = function() {
|
websocketLocal[wslid].onclose = function() {
|
||||||
console.log('WebSocketLocal Closing:' + tlid);
|
console.error('WebSocketLocal Closing by error:' + tlid);
|
||||||
if(mode=="error"){
|
if(mode=="error"){
|
||||||
$("#notice_icon_" + tlid).addClass("red-text");
|
$("#notice_icon_" + tlid).addClass("red-text");
|
||||||
todo('WebSocket Closed');
|
todo('WebSocket Closed');
|
||||||
}else{
|
}else{
|
||||||
var errorct=localStorage.getItem("wserror_" + tlid)*1+1;
|
reconnector(tlid,TLtype,acct_id,"","error");
|
||||||
localStorage.setItem("wserror_" + tlid,errorct);
|
|
||||||
if(errorct<3){
|
|
||||||
reconnector(tlid,TLtype,acct_id,"","error");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
websocketHome[wshid].onerror = function(error) {
|
websocketHome[wshid].onerror = function(error) {
|
||||||
console.error('WebSocketHome Error')
|
console.error('WebSocket Error ' + error);
|
||||||
console.error(error);
|
|
||||||
if(mode=="error"){
|
if(mode=="error"){
|
||||||
$("#notice_icon_" + tlid).addClass("red-text");
|
$("#notice_icon_" + tlid).addClass("red-text");
|
||||||
todo('WebSocket Error ' + error);
|
todo('WebSocket Error ' + error);
|
||||||
}else{
|
}else{
|
||||||
var errorct=localStorage.getItem("wserror_" + tlid)*1+1;
|
reconnector(tlid,TLtype,acct_id,"","error");
|
||||||
localStorage.setItem("wserror_" + tlid,errorct);
|
|
||||||
if(errorct<3){
|
|
||||||
reconnector(tlid,TLtype,acct_id,"","error");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
websocketHome[wshid].onclose = function() {
|
websocketHome[wshid].onclose = function() {
|
||||||
console.log('WebSocketHome Closing:' + tlid);
|
console.error('WebSocketHome Closing by error:' + tlid);
|
||||||
if(mode=="error"){
|
if(mode=="error"){
|
||||||
$("#notice_icon_" + tlid).addClass("red-text");
|
$("#notice_icon_" + tlid).addClass("red-text");
|
||||||
todo('WebSocket Closed');
|
todo('WebSocket Closed');
|
||||||
}else{
|
}else{
|
||||||
var errorct=localStorage.getItem("wserror_" + tlid)*1+1;
|
reconnector(tlid,TLtype,acct_id,"","error");
|
||||||
localStorage.setItem("wserror_" + tlid,errorct);
|
|
||||||
if(errorct<3){
|
|
||||||
reconnector(tlid,TLtype,acct_id,"","error");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
@@ -15,11 +15,12 @@ function notfColumn(acct_id, tlid, sys){
|
|||||||
native="yes";
|
native="yes";
|
||||||
}
|
}
|
||||||
var domain = localStorage.getItem("domain_" + acct_id);
|
var domain = localStorage.getItem("domain_" + acct_id);
|
||||||
|
console.log(start)
|
||||||
var httpreq = new XMLHttpRequest();
|
var httpreq = new XMLHttpRequest();
|
||||||
if(localStorage.getItem("mode_" + domain)=="misskey"){
|
if(localStorage.getItem("mode_" + domain)=="misskey"){
|
||||||
var misskey=true;
|
var misskey=true;
|
||||||
var start = "https://" + domain + "/api/i/notifications";
|
var start = "https://" + domain + "/api/i/notifications";
|
||||||
httpreq.open("POST", start, true);
|
httpreq.open(POST, start, true);
|
||||||
httpreq.setRequestHeader('Content-Type', 'application/json');
|
httpreq.setRequestHeader('Content-Type', 'application/json');
|
||||||
var body=JSON.stringify({
|
var body=JSON.stringify({
|
||||||
i:at
|
i:at
|
||||||
@@ -43,10 +44,7 @@ function notfColumn(acct_id, tlid, sys){
|
|||||||
httpreq.onreadystatechange = function() {
|
httpreq.onreadystatechange = function() {
|
||||||
if (httpreq.readyState === 4) {
|
if (httpreq.readyState === 4) {
|
||||||
var json = httpreq.response;
|
var json = httpreq.response;
|
||||||
var max_id = httpreq.getResponseHeader("link");
|
var max_id = httpreq.getResponseHeader("link").match(/[?&]{1}max_id=([0-9]+)/)[1];
|
||||||
if(max_id){
|
|
||||||
max_id=max_id.match(/[?&]{1}max_id=([0-9]+)/)[1]
|
|
||||||
}
|
|
||||||
if(json[0]){
|
if(json[0]){
|
||||||
var templete="";
|
var templete="";
|
||||||
var lastnotf=localStorage.getItem("lastnotf_" + acct_id);
|
var lastnotf=localStorage.getItem("lastnotf_" + acct_id);
|
||||||
@@ -114,6 +112,73 @@ function notfColumn(acct_id, tlid, sys){
|
|||||||
at;
|
at;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log(start);
|
||||||
|
var wsid = websocketNotf.length;
|
||||||
|
websocketNotf[acct_id] = new WebSocket(start);
|
||||||
|
console.log(websocketNotf);
|
||||||
|
websocketNotf[acct_id].onopen = function(mess) {
|
||||||
|
console.log("Connect Streaming API(Notf):");
|
||||||
|
console.log(mess);
|
||||||
|
$("i[data-notf=" + acct_id +"]").removeClass("red-text");
|
||||||
|
|
||||||
|
}
|
||||||
|
websocketNotf[acct_id].onmessage = function(mess) {
|
||||||
|
console.log("Receive Streaming API(Notf):"+acct_id);
|
||||||
|
var popup = localStorage.getItem("popup");
|
||||||
|
if (!popup) {
|
||||||
|
popup = 0;
|
||||||
|
}
|
||||||
|
console.log(domain)
|
||||||
|
if(misskey){
|
||||||
|
console.log("misskey")
|
||||||
|
console.log(JSON.parse(mess.data));
|
||||||
|
if (JSON.parse(mess.data).type == "notification") {
|
||||||
|
var obj = JSON.parse(mess.data).body;
|
||||||
|
console.log(obj);
|
||||||
|
if(obj.type!="follow"){
|
||||||
|
|
||||||
|
templete = misskeyParse([obj], 'notf', acct_id, 'notf', popup);
|
||||||
|
}else{
|
||||||
|
templete = misskeyUserparse([obj], 'notf', acct_id, 'notf', popup);
|
||||||
|
}
|
||||||
|
if(obj.type=="reaction"){
|
||||||
|
console.log("refresh")
|
||||||
|
reactRefresh(acct_id,obj.note.id)
|
||||||
|
}
|
||||||
|
if(!$("div[data-notfIndv=" + acct_id +"_"+obj.id+"]").length){
|
||||||
|
$("div[data-notf=" + acct_id +"]").prepend(templete);
|
||||||
|
}
|
||||||
|
jQuery("time.timeago").timeago();
|
||||||
|
}else if(JSON.parse(mess.data).type == "note-updated"){
|
||||||
|
var obj = JSON.parse(mess.data).body.note;
|
||||||
|
reactRefreshCore(obj)
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
var obj = JSON.parse(JSON.parse(mess.data).payload);
|
||||||
|
console.log(obj);
|
||||||
|
var type = JSON.parse(mess.data).event;
|
||||||
|
if (type == "notification") {
|
||||||
|
var templete="";
|
||||||
|
localStorage.setItem("lastnotf_" + acct_id,obj.id);
|
||||||
|
if(obj.type!="follow"){
|
||||||
|
templete = parse([obj], 'notf', acct_id, 'notf', popup);
|
||||||
|
}else{
|
||||||
|
templete = userparse([obj], 'notf', acct_id, 'notf', popup);
|
||||||
|
}
|
||||||
|
if(!$("div[data-notfIndv=" + acct_id +"_"+obj.id+"]").length){
|
||||||
|
$(".tl[data-notf=" + acct_id +"]").prepend(templete);
|
||||||
|
}
|
||||||
|
$(".notf-timeline[data-acct=" + acct_id +"]").prepend(templete);
|
||||||
|
jQuery("time.timeago").timeago();
|
||||||
|
} else if (type == "delete") {
|
||||||
|
$("[toot-id=" + obj + "]").hide();
|
||||||
|
$("[toot-id=" + obj + "]").remove();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
websocketNotf[acct_id].onerror = function(error) {
|
||||||
|
console.error('WebSocket Error ' + error);
|
||||||
|
};
|
||||||
}
|
}
|
||||||
function notfCommon(acct_id, tlid, sys) {
|
function notfCommon(acct_id, tlid, sys) {
|
||||||
todo("Notifications Loading...");
|
todo("Notifications Loading...");
|
||||||
@@ -204,11 +269,7 @@ function notfCommon(acct_id, tlid, sys) {
|
|||||||
}
|
}
|
||||||
$("#notf-box").addClass("fetched");
|
$("#notf-box").addClass("fetched");
|
||||||
todc();
|
todc();
|
||||||
notfWS(misskey,acct_id,tlid,domain,at)
|
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
|
||||||
function notfWS(misskey,acct_id,tlid,domain,at){
|
|
||||||
if(!misskey){
|
if(!misskey){
|
||||||
if(localStorage.getItem("streaming_" + acct_id)){
|
if(localStorage.getItem("streaming_" + acct_id)){
|
||||||
var wss=localStorage.getItem("streaming_" + acct_id)
|
var wss=localStorage.getItem("streaming_" + acct_id)
|
||||||
@@ -217,6 +278,10 @@ function notfWS(misskey,acct_id,tlid,domain,at){
|
|||||||
}
|
}
|
||||||
var start = wss + "/api/v1/streaming/?stream=user&access_token=" +
|
var start = wss + "/api/v1/streaming/?stream=user&access_token=" +
|
||||||
at;
|
at;
|
||||||
|
}else{
|
||||||
|
var start = "wss://" + domain + "/?i=" +
|
||||||
|
at;
|
||||||
|
}
|
||||||
|
|
||||||
console.log(start);
|
console.log(start);
|
||||||
var wsid = websocketNotf.length;
|
var wsid = websocketNotf.length;
|
||||||
@@ -235,6 +300,31 @@ function notfWS(misskey,acct_id,tlid,domain,at){
|
|||||||
popup = 0;
|
popup = 0;
|
||||||
}
|
}
|
||||||
console.log(domain)
|
console.log(domain)
|
||||||
|
if(misskey){
|
||||||
|
console.log("misskey")
|
||||||
|
console.log(JSON.parse(mess.data));
|
||||||
|
if (JSON.parse(mess.data).type == "notification") {
|
||||||
|
var obj = JSON.parse(mess.data).body;
|
||||||
|
console.log(obj);
|
||||||
|
if(obj.type!="follow"){
|
||||||
|
|
||||||
|
templete = misskeyParse([obj], 'notf', acct_id, 'notf', popup);
|
||||||
|
}else{
|
||||||
|
templete = misskeyUserparse([obj], 'notf', acct_id, 'notf', popup);
|
||||||
|
}
|
||||||
|
if(obj.type=="reaction"){
|
||||||
|
console.log("refresh")
|
||||||
|
reactRefresh(acct_id,obj.note.id)
|
||||||
|
}
|
||||||
|
if(!$("div[data-notfIndv=" + acct_id +"_"+obj.id+"]").length){
|
||||||
|
$("div[data-notf=" + acct_id +"]").prepend(templete);
|
||||||
|
}
|
||||||
|
jQuery("time.timeago").timeago();
|
||||||
|
}else if(JSON.parse(mess.data).type == "note-updated"){
|
||||||
|
var obj = JSON.parse(mess.data).body.note;
|
||||||
|
reactRefreshCore(obj)
|
||||||
|
}
|
||||||
|
}else{
|
||||||
var obj = JSON.parse(JSON.parse(mess.data).payload);
|
var obj = JSON.parse(JSON.parse(mess.data).payload);
|
||||||
console.log(obj);
|
console.log(obj);
|
||||||
var type = JSON.parse(mess.data).event;
|
var type = JSON.parse(mess.data).event;
|
||||||
@@ -248,20 +338,18 @@ function notfWS(misskey,acct_id,tlid,domain,at){
|
|||||||
}
|
}
|
||||||
if(!$("div[data-notfIndv=" + acct_id +"_"+obj.id+"]").length){
|
if(!$("div[data-notfIndv=" + acct_id +"_"+obj.id+"]").length){
|
||||||
$("div[data-notf=" + acct_id +"]").prepend(templete);
|
$("div[data-notf=" + acct_id +"]").prepend(templete);
|
||||||
$("div[data-const=notf_"+acct_id+"]").prepend(templete);
|
|
||||||
}
|
}
|
||||||
jQuery("time.timeago").timeago();
|
jQuery("time.timeago").timeago();
|
||||||
} else if (type == "delete") {
|
} else if (type == "delete") {
|
||||||
$("[toot-id=" + obj + "]").hide();
|
$("[toot-id=" + obj + "]").hide();
|
||||||
$("[toot-id=" + obj + "]").remove();
|
$("[toot-id=" + obj + "]").remove();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
websocketNotf[acct_id].onerror = function(error) {
|
websocketNotf[acct_id].onerror = function(error) {
|
||||||
console.error('WebSocket Error ' + error);
|
console.error('WebSocket Error ' + error);
|
||||||
notfWS(misskey,acct_id,tlid,domain,at)
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
|
||||||
//一定のスクロールで発火
|
//一定のスクロールで発火
|
||||||
function notfmore(tlid) {
|
function notfmore(tlid) {
|
||||||
console.log(moreloading);
|
console.log(moreloading);
|
||||||
|
@@ -251,28 +251,16 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {
|
|||||||
$(".notf-reply_" + acct_id).text(replyct*1-(-1));
|
$(".notf-reply_" + acct_id).text(replyct*1-(-1));
|
||||||
localStorage.setItem("notf-reply_" + acct_id,replyct*1-(-1))
|
localStorage.setItem("notf-reply_" + acct_id,replyct*1-(-1))
|
||||||
$(".notf-reply_" + acct_id).removeClass("hide")
|
$(".notf-reply_" + acct_id).removeClass("hide")
|
||||||
var sound=localStorage.getItem("replySound");
|
|
||||||
if(sound=="default"){
|
|
||||||
var file="../../source/notif3.wav"
|
|
||||||
}
|
|
||||||
}else if (toot.type == "reblog") {
|
}else if (toot.type == "reblog") {
|
||||||
var btct=localStorage.getItem("notf-bt_" + acct_id)
|
var btct=localStorage.getItem("notf-bt_" + acct_id)
|
||||||
$(".notf-bt_" + acct_id).text(btct*1-(-1));
|
$(".notf-bt_" + acct_id).text(btct*1-(-1));
|
||||||
localStorage.setItem("notf-bt_" + acct_id,btct*1-(-1))
|
localStorage.setItem("notf-bt_" + acct_id,btct*1-(-1))
|
||||||
$(".notf-bt_" + acct_id).removeClass("hide")
|
$(".notf-bt_" + acct_id).removeClass("hide")
|
||||||
var sound=localStorage.getItem("btSound");
|
|
||||||
if(sound=="default"){
|
|
||||||
var file="../../source/notif2.wav"
|
|
||||||
}
|
|
||||||
}else if (toot.type == "favourite") {
|
}else if (toot.type == "favourite") {
|
||||||
var favct=localStorage.getItem("notf-fav_" + acct_id)
|
var favct=localStorage.getItem("notf-fav_" + acct_id)
|
||||||
$(".notf-fav_" + acct_id).text(favct*1-(-1));
|
$(".notf-fav_" + acct_id).text(favct*1-(-1));
|
||||||
localStorage.setItem("notf-fav_" + acct_id,favct*1-(-1))
|
localStorage.setItem("notf-fav_" + acct_id,favct*1-(-1))
|
||||||
$(".notf-fav_" + acct_id).removeClass("hide")
|
$(".notf-fav_" + acct_id).removeClass("hide")
|
||||||
var sound=localStorage.getItem("favSound");
|
|
||||||
if(sound=="default"){
|
|
||||||
var file="../../source/notif.wav"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -280,23 +268,6 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {
|
|||||||
if(popup>0){
|
if(popup>0){
|
||||||
Materialize.toast("["+domain+"]"+escapeHTML(toot.account.display_name)+what, popup * 1000);
|
Materialize.toast("["+domain+"]"+escapeHTML(toot.account.display_name)+what, popup * 1000);
|
||||||
}
|
}
|
||||||
//通知音
|
|
||||||
if(sound=="c1"){
|
|
||||||
var file=localStorage.getItem("custom1");
|
|
||||||
}else if(sound=="c2"){
|
|
||||||
var file=localStorage.getItem("custom2");
|
|
||||||
}else if(sound=="c3"){
|
|
||||||
var file=localStorage.getItem("custom3");
|
|
||||||
}else if(sound=="c4"){
|
|
||||||
var file=localStorage.getItem("custom4");
|
|
||||||
}
|
|
||||||
if(file){
|
|
||||||
request = new XMLHttpRequest();
|
|
||||||
request.open("GET", file, true);
|
|
||||||
request.responseType = "arraybuffer";
|
|
||||||
request.onload = playSound;
|
|
||||||
request.send();
|
|
||||||
}
|
|
||||||
if(native=="yes"){
|
if(native=="yes"){
|
||||||
var electron = require("electron");
|
var electron = require("electron");
|
||||||
var ipc = electron.ipcRenderer;
|
var ipc = electron.ipcRenderer;
|
||||||
@@ -424,7 +395,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {
|
|||||||
var via = '';
|
var via = '';
|
||||||
viashow="hide";
|
viashow="hide";
|
||||||
} else {
|
} else {
|
||||||
var via = escapeHTML(toot.application.name);
|
var via = toot.application.name;
|
||||||
//強調チェック
|
//強調チェック
|
||||||
Object.keys(emp).forEach(function(key6) {
|
Object.keys(emp).forEach(function(key6) {
|
||||||
var cli = emp[key6];
|
var cli = emp[key6];
|
||||||
@@ -481,40 +452,6 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {
|
|||||||
var viewer = "";
|
var viewer = "";
|
||||||
var hasmedia = "";
|
var hasmedia = "";
|
||||||
var youtube = "";
|
var youtube = "";
|
||||||
//Poll
|
|
||||||
var poll="";
|
|
||||||
if(toot.poll){
|
|
||||||
var choices=toot.poll.options;
|
|
||||||
if(toot.poll.voted){
|
|
||||||
var myvote=lang.lang_parse_voted;
|
|
||||||
var result_hide="";
|
|
||||||
}else{
|
|
||||||
var myvote='<a onclick="voteMastodon(\''+acct_id+'\',\''+toot.poll.id+'\')" class="votebtn">'+lang.lang_parse_vote+'</a><br>';
|
|
||||||
if(choices[0].votes_count===0 || choices[0].votes_count>0){
|
|
||||||
myvote=myvote+'<a onclick="showResult(\''+acct_id+'\',\''+toot.poll.id+'\')" class="pointer">'+lang.lang_parse_unvoted+"</a>";
|
|
||||||
}
|
|
||||||
var result_hide="hide";
|
|
||||||
}
|
|
||||||
if(toot.poll.expired){
|
|
||||||
var ended=lang.lang_parse_endedvote;
|
|
||||||
}else{
|
|
||||||
var ended=date(toot.poll.expires_at, datetype);
|
|
||||||
}
|
|
||||||
Object.keys(choices).forEach(function(keyc) {
|
|
||||||
var choice = choices[keyc];
|
|
||||||
if(!toot.poll.voted && !toot.poll.expired){
|
|
||||||
var votesel='voteSelMastodon(\''+acct_id+'\',\''+toot.poll.id+'\','+keyc+','+toot.poll.multiple+')';
|
|
||||||
var voteclass="pointer waves-effect waves-light";
|
|
||||||
}else{
|
|
||||||
var votesel="";
|
|
||||||
var voteclass="";
|
|
||||||
}
|
|
||||||
poll=poll+'<div class="'+voteclass+' vote vote_'+acct_id+'_'+toot.poll.id+'_'+keyc+'" onclick="'+votesel+'">'+escapeHTML(choice.title)+'<span class="vote_'+acct_id+'_'+toot.poll.id+'_result '+result_hide+'">('+choice.votes_count+')</span></div>';
|
|
||||||
});
|
|
||||||
poll='<div class="vote_'+acct_id+'_'+toot.poll.id+'">'+poll+myvote+'<span class="cbadge cbadge-hover" title="' + date(toot.poll.expires_at, 'absolute') +
|
|
||||||
'"><i class="far fa-calendar-times"></i>' +
|
|
||||||
ended+ '</span></div>';
|
|
||||||
}
|
|
||||||
if(toot.emojis){
|
if(toot.emojis){
|
||||||
var emojick = toot.emojis[0];
|
var emojick = toot.emojis[0];
|
||||||
}else{
|
}else{
|
||||||
@@ -530,7 +467,6 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {
|
|||||||
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);
|
||||||
poll = poll.replace(regExp, emoji_url);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
//ニコフレ絵文字
|
//ニコフレ絵文字
|
||||||
@@ -549,7 +485,6 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {
|
|||||||
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);
|
||||||
poll = poll.replace(regExp, emoji_url);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
//デフォ絵文字
|
//デフォ絵文字
|
||||||
@@ -566,9 +501,6 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {
|
|||||||
if(notice){
|
if(notice){
|
||||||
notice=twemoji.parse(notice);
|
notice=twemoji.parse(notice);
|
||||||
}
|
}
|
||||||
if(poll){
|
|
||||||
poll=twemoji.parse(poll);
|
|
||||||
}
|
|
||||||
var mediack = toot.media_attachments[0];
|
var mediack = toot.media_attachments[0];
|
||||||
//メディアがあれば
|
//メディアがあれば
|
||||||
var media_ids="";
|
var media_ids="";
|
||||||
@@ -580,25 +512,16 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {
|
|||||||
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;
|
||||||
var nsfwmes=""
|
|
||||||
if (toot.sensitive && nsfw) {
|
if (toot.sensitive && nsfw) {
|
||||||
var sense = "sensitive"
|
var sense = "sensitive"
|
||||||
var blur=media.blurhash
|
|
||||||
if(blur){
|
|
||||||
nsfwmes='<div class="nsfw-media">NSFW media</div>'
|
|
||||||
purl=parseBlur(blur)
|
|
||||||
var sense=""
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
var sense = ""
|
var sense = ""
|
||||||
var blur=null
|
|
||||||
}
|
}
|
||||||
viewer = viewer + '<a onclick="imgv(\'' + id + '\',\'' + key2 + '\',\'' +
|
viewer = viewer + '<a onclick="imgv(\'' + id + '\',\'' + key2 + '\',\'' +
|
||||||
acct_id + '\')" id="' + id + '-image-' + key2 + '" data-url="' + url +
|
acct_id + '\')" id="' + id + '-image-' + key2 + '" data-url="' + url +
|
||||||
'" data-type="' + media.type + '" class="img-parsed img-link" style="width:calc(' + cwdt + '% - 1px); height:'+imh+';"><img draggable="false" src="' +
|
'" data-type="' + media.type + '" class="img-parsed"><img draggable="false" src="' +
|
||||||
purl + '" class="' + sense +
|
purl + '" class="' + sense +
|
||||||
' toot-img pointer">'+nsfwmes+'</a>';
|
' toot-img pointer" style="width:calc(' + cwdt + '% - 1px); height:'+imh+';"></a></span>';
|
||||||
|
|
||||||
});
|
});
|
||||||
media_ids = media_ids.slice(0, -1) ;
|
media_ids = media_ids.slice(0, -1) ;
|
||||||
} else {
|
} else {
|
||||||
@@ -775,15 +698,45 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {
|
|||||||
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 draggable="false" 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 draggable="false" src="'+value.image+'" style="height:100%;"><span style="position:relative; top:-0.2rem;"> '+value.name+'</span></div>';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//Quote
|
//Poll
|
||||||
if(toot.quote){
|
var poll="";
|
||||||
poll=poll+'<div class="quote-renote"><div class="renote-icon"><img src="'+toot.quote.account.avatar+'"></div><div class="renote-user">'+escapeHTML(toot.quote.account.display_name)+'</div><div class="renote-text">'+toot.quote.content+'</div></div>'
|
if(toot.poll){
|
||||||
|
var choices=toot.poll.options;
|
||||||
|
if(toot.poll.voted){
|
||||||
|
var myvote=lang.lang_parse_voted;
|
||||||
|
var result_hide="";
|
||||||
|
}else{
|
||||||
|
myvote='<a onclick="voteMastodon(\''+acct_id+'\',\''+toot.poll.id+'\')" class="votebtn">'+lang.lang_parse_vote+'</a><br>';
|
||||||
|
if(choices[0].votes_count===0 || choices[0].votes_count>0){
|
||||||
|
myvote=myvote+'<a onclick="showResult(\''+acct_id+'\',\''+toot.poll.id+'\')" class="pointer">'+lang.lang_parse_unvoted+"</a>";
|
||||||
|
}
|
||||||
|
var result_hide="hide";
|
||||||
|
}
|
||||||
|
if(toot.poll.expired){
|
||||||
|
var ended=lang.lang_parse_endedvote;
|
||||||
|
}else{
|
||||||
|
var ended=date(toot.poll.expires_at, datetype);
|
||||||
|
}
|
||||||
|
Object.keys(choices).forEach(function(keyc) {
|
||||||
|
var choice = choices[keyc];
|
||||||
|
if(!toot.poll.voted && !toot.poll.expired){
|
||||||
|
var votesel='voteSelMastodon(\''+acct_id+'\',\''+toot.poll.id+'\','+keyc+','+toot.poll.multiple+')';
|
||||||
|
var voteclass="pointer waves-effect waves-light";
|
||||||
|
}else{
|
||||||
|
var votesel="";
|
||||||
|
var voteclass="";
|
||||||
|
}
|
||||||
|
poll=poll+'<div class="'+voteclass+' vote vote_'+acct_id+'_'+toot.poll.id+'_'+keyc+'" onclick="'+votesel+'">'+escapeHTML(choice.title)+'<span class="vote_'+acct_id+'_'+toot.poll.id+'_result '+result_hide+'">('+choice.votes_count+')</span></div>';
|
||||||
|
});
|
||||||
|
poll='<div class="vote_'+acct_id+'_'+toot.poll.id+'">'+poll+myvote+'<span class="cbadge cbadge-hover" title="' + date(toot.poll.expires_at, 'absolute') +
|
||||||
|
'"><i class="far fa-calendar-times"></i>' +
|
||||||
|
ended+ '</span></div>';
|
||||||
}
|
}
|
||||||
templete = templete + '<div id="pub_' + toot.id + '" class="cvo ' +
|
templete = templete + '<div id="pub_' + toot.id + '" class="cvo ' +
|
||||||
boostback + ' ' + fav_app + ' ' + rt_app + ' ' + pin_app +
|
boostback + ' ' + fav_app + ' ' + rt_app + ' ' + pin_app +
|
||||||
@@ -807,8 +760,8 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {
|
|||||||
'</div></div>' +
|
'</div></div>' +
|
||||||
'<div class="area-toot">'+tickerdom+'<span class="' +
|
'<div class="area-toot">'+tickerdom+'<span class="' +
|
||||||
api_spoil + ' cw_text_' + toot.id + '"><span class="cw_text">' + spoil + "</span>" + spoiler_show +
|
api_spoil + ' cw_text_' + toot.id + '"><span class="cw_text">' + spoil + "</span>" + spoiler_show +
|
||||||
'</span><span class="toot ' + spoiler + '">' + content +
|
'</span><span class="toot ' + spoiler + '">' + content +poll+
|
||||||
'</span>' + poll +
|
'</span>' +
|
||||||
'' + viewer + '' +
|
'' + viewer + '' +
|
||||||
'</div><div class="area-additional"><span class="additional">' + analyze +
|
'</div><div class="area-additional"><span class="additional">' + analyze +
|
||||||
'</span>' +
|
'</span>' +
|
||||||
@@ -838,7 +791,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {
|
|||||||
'</a></span></div>' +
|
'</a></span></div>' +
|
||||||
'<div class="' + if_mine + ' action '+disp["del"]+' '+noauth+'"><a onclick="del(\'' + toot.id + '\',' +
|
'<div class="' + if_mine + ' action '+disp["del"]+' '+noauth+'"><a onclick="del(\'' + toot.id + '\',' +
|
||||||
acct_id +
|
acct_id +
|
||||||
')" class="waves-effect waves-dark btn-flat" style="padding:0" title="'+lang.lang_parse_del+'"><i class="fas fa-trash"></i></a></div>' +
|
')" class="waves-effect waves-dark btn-flat" style="padding:0" title="'+lang.lang_parse_del+'"><i class="far fa-trash"></i></a></div>' +
|
||||||
'<div class="' + if_mine + ' action pin '+disp["pin"]+' '+noauth+'"><a onclick="pin(\'' + toot.id + '\',' +
|
'<div class="' + if_mine + ' action pin '+disp["pin"]+' '+noauth+'"><a onclick="pin(\'' + toot.id + '\',' +
|
||||||
acct_id +
|
acct_id +
|
||||||
')" class="waves-effect waves-dark btn-flat" style="padding:0" title="'+lang.lang_parse_pin+'"><i class="fas fa-map-pin pin_' + toot.id + ' '+if_pin+'"></i></a></div>'
|
')" class="waves-effect waves-dark btn-flat" style="padding:0" title="'+lang.lang_parse_pin+'"><i class="fas fa-map-pin pin_' + toot.id + ' '+if_pin+'"></i></a></div>'
|
||||||
@@ -872,7 +825,6 @@ function userparse(obj, auth, acct_id, tlid, popup) {
|
|||||||
var datetype = localStorage.getItem("datetype");
|
var datetype = localStorage.getItem("datetype");
|
||||||
Object.keys(obj).forEach(function(key) {
|
Object.keys(obj).forEach(function(key) {
|
||||||
var toot = obj[key];
|
var toot = obj[key];
|
||||||
console.log(toot)
|
|
||||||
if(!toot.username){
|
if(!toot.username){
|
||||||
var raw=toot;
|
var raw=toot;
|
||||||
toot=toot.account;
|
toot=toot.account;
|
||||||
@@ -886,11 +838,10 @@ function userparse(obj, auth, acct_id, tlid, popup) {
|
|||||||
var locked = "";
|
var locked = "";
|
||||||
}
|
}
|
||||||
if (auth) {
|
if (auth) {
|
||||||
var authhtml = '<i class="material-icons gray pointer" onclick="request(\'' +
|
var auth = '<i class="material-icons gray pointer" onclick="request(\'' +
|
||||||
toot.id + '\',\'authorize\',' + acct_id + ')" title="Accept">person_add</i> <i class="material-icons gray pointer" onclick="request(\'' +
|
toot.id + '\',\'authorize\',' + acct_id + ')">person_add</i>';
|
||||||
toot.id + '\',\'reject\',' + acct_id + ')" title="Reject">person_add_disabled</i>';
|
|
||||||
} else {
|
} else {
|
||||||
var authhtml = "";
|
var auth = "";
|
||||||
}
|
}
|
||||||
var ftxt=lang.lang_parse_followed;
|
var ftxt=lang.lang_parse_followed;
|
||||||
if(!locale && localStorage.getItem("followlocale_" + acct_id)){
|
if(!locale && localStorage.getItem("followlocale_" + acct_id)){
|
||||||
@@ -976,13 +927,13 @@ function userparse(obj, auth, acct_id, tlid, popup) {
|
|||||||
'<div class="area-display_name"><div class="flex-name"><span class="user">' +
|
'<div class="area-display_name"><div class="flex-name"><span class="user">' +
|
||||||
dis_name + '</span>' +
|
dis_name + '</span>' +
|
||||||
'<span class="sml gray" style="overflow: hidden;white-space: nowrap;text-overflow: ellipsis;user-select:auto; cursor:text;"> @' +
|
'<span class="sml gray" style="overflow: hidden;white-space: nowrap;text-overflow: ellipsis;user-select:auto; cursor:text;"> @' +
|
||||||
toot.acct + locked +'</span>' +
|
toot.acct + locked + auth +'</span>' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'<div style="justify-content:space-around" class="area-toot"> <div class="cbadge" style="width:100px;">Follows:' +
|
'<div style="justify-content:space-around" class="area-toot"> <div class="cbadge" style="width:100px;">Follows:' +
|
||||||
toot.following_count +
|
toot.following_count +
|
||||||
'</div><div class="cbadge" style="width:100px;">Followers:' + toot.followers_count +
|
'</div><div class="cbadge" style="width:100px;">Followers:' + toot.followers_count +
|
||||||
'</div>' + authhtml+
|
'</div>' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'</div>';
|
'</div>';
|
||||||
@@ -994,6 +945,7 @@ function userparse(obj, auth, acct_id, tlid, popup) {
|
|||||||
function client(name) {
|
function client(name) {
|
||||||
if(name!="Unknown"){
|
if(name!="Unknown"){
|
||||||
//聞く
|
//聞く
|
||||||
|
localStorage.removeItem("client_mute");
|
||||||
var electron = require("electron");
|
var electron = require("electron");
|
||||||
var remote=electron.remote;
|
var remote=electron.remote;
|
||||||
var dialog=remote.dialog;
|
var dialog=remote.dialog;
|
||||||
@@ -1010,7 +962,7 @@ function client(name) {
|
|||||||
if(!obj){
|
if(!obj){
|
||||||
var obj=[];
|
var obj=[];
|
||||||
obj.push(name);
|
obj.push(name);
|
||||||
Materialize.toast(escapeHTML(name)+lang.lang_status_emphas, 2000);
|
Materialize.toast(name+lang.lang_status_emphas, 2000);
|
||||||
}else{
|
}else{
|
||||||
var can;
|
var can;
|
||||||
Object.keys(obj).forEach(function(key) {
|
Object.keys(obj).forEach(function(key) {
|
||||||
@@ -1020,12 +972,12 @@ function client(name) {
|
|||||||
}else{
|
}else{
|
||||||
can=true;
|
can=true;
|
||||||
obj.splice(key, 1);
|
obj.splice(key, 1);
|
||||||
Materialize.toast(escapeHTML(name)+lang.lang_status_unemphas, 2000);
|
Materialize.toast(name+lang.lang_status_unemphas, 2000);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if(!can){
|
if(!can){
|
||||||
obj.push(name);
|
obj.push(name);
|
||||||
Materialize.toast(escapeHTML(name)+lang.lang_status_emphas, 2000);
|
Materialize.toast(name+lang.lang_status_emphas, 2000);
|
||||||
}else{
|
}else{
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -1036,12 +988,12 @@ function client(name) {
|
|||||||
var cli = localStorage.getItem("client_mute");
|
var cli = localStorage.getItem("client_mute");
|
||||||
var obj = JSON.parse(cli);
|
var obj = JSON.parse(cli);
|
||||||
if(!obj){
|
if(!obj){
|
||||||
obj=[];
|
var obj=[];
|
||||||
}
|
}
|
||||||
obj.push(name);
|
obj.push(name);
|
||||||
var json = JSON.stringify(obj);
|
var json = JSON.stringify(obj);
|
||||||
localStorage.setItem("client_mute", json);
|
localStorage.setItem("client_mute", json);
|
||||||
Materialize.toast(escapeHTML(name)+lang.lang_parse_mute, 2000);
|
Materialize.toast(name+lang.lang_parse_mute, 2000);
|
||||||
}else{
|
}else{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@@ -108,7 +108,7 @@ function voteMastodonrefresh(acct_id,id){
|
|||||||
if(!json.voted){
|
if(!json.voted){
|
||||||
votesel='voteSelMastodon(\''+acct_id+'\',\''+json.id+'\','+keyc+','+json.multiple+')';
|
votesel='voteSelMastodon(\''+acct_id+'\',\''+json.id+'\','+keyc+','+json.multiple+')';
|
||||||
}
|
}
|
||||||
poll=poll+'<div class="pointer vote vote_'+acct_id+'_'+json.id+'_'+keyc+'" onclick="'+votesel+'">'+escapeHTML(choice.title)+'<span class="vote_'+acct_id+'_'+json.id+'_result '+result_hide+'">('+choice.votes_count+')</span></div>';
|
poll=poll+'<div class="pointer vote vote_'+acct_id+'_'+json.id+'_'+keyc+'" onclick="'+votesel+'">'+choice.title+'<span class="vote_'+acct_id+'_'+json.id+'_result '+result_hide+'">('+choice.votes_count+')</span></div>';
|
||||||
});
|
});
|
||||||
poll=poll+myvote+'<span class="cbadge cbadge-hover" title="' + date(json.expires_at, 'absolute') +
|
poll=poll+myvote+'<span class="cbadge cbadge-hover" title="' + date(json.expires_at, 'absolute') +
|
||||||
'"><i class="far fa-calendar-times"></i>' +
|
'"><i class="far fa-calendar-times"></i>' +
|
||||||
|
@@ -52,7 +52,7 @@ function src(mode) {
|
|||||||
var tag = json.hashtags[key4];
|
var tag = json.hashtags[key4];
|
||||||
if(mode){
|
if(mode){
|
||||||
tags = tags + '<a onclick="tl(\'tag\',\'' + tag + '\',\'' + acct_id +
|
tags = tags + '<a onclick="tl(\'tag\',\'' + tag + '\',\'' + acct_id +
|
||||||
'\',\'add\')" class="pointer">#' + escapeHTML(tag) + '</a><br> ';
|
'\',\'add\')" class="pointer">#' + tag + '</a><br> ';
|
||||||
}else{
|
}else{
|
||||||
tags=tags+graphDraw(tag);
|
tags=tags+graphDraw(tag);
|
||||||
}
|
}
|
||||||
@@ -186,13 +186,13 @@ function graphDraw(tag){
|
|||||||
var zero=50-(his[0].uses/max*50);
|
var zero=50-(his[0].uses/max*50);
|
||||||
if(max===0){
|
if(max===0){
|
||||||
tags = '<br><br><svg version="1.1" viewbox="0 0 60 50" width="60" height="50">'+
|
tags = '<br><br><svg version="1.1" viewbox="0 0 60 50" width="60" height="50">'+
|
||||||
'</svg><span style="font-size:200%">'+his[0].uses+'</span>toots <a onclick="tl(\'tag\',\'' + escapeHTML(tag.name) + '\',\'' + acct_id +
|
'</svg><span style="font-size:200%">'+his[0].uses+'</span>toots <a onclick="tl(\'tag\',\'' + tag.name + '\',\'' + acct_id +
|
||||||
'\',\'add\')" class="pointer">#' + escapeHTML(tag.name) + '</a> '+his[0].accounts+lang.lang_src_people;
|
'\',\'add\')" class="pointer">#' + tag.name + '</a> '+his[0].accounts+lang.lang_src_people;
|
||||||
}else{
|
}else{
|
||||||
tags = '<br><br><svg version="1.1" viewbox="0 0 60 50" width="60" height="50">'+
|
tags = '<br><br><svg version="1.1" viewbox="0 0 60 50" width="60" height="50">'+
|
||||||
'<g><path d="M0,'+six+' L10,'+five+' 20,'+four+' 30,'+three+' 40,'+two+' 50,'+one+' 60,'+zero+'" style="stroke: #9e9e9e; stroke-width: 1;fill: none;"></path></g>'+
|
'<g><path d="M0,'+six+' L10,'+five+' 20,'+four+' 30,'+three+' 40,'+two+' 50,'+one+' 60,'+zero+'" style="stroke: #9e9e9e; stroke-width: 1;fill: none;"></path></g>'+
|
||||||
'</svg><span style="font-size:200%">'+his[0].uses+'</span>toots <a onclick="tl(\'tag\',\'' + escapeHTML(tag.name) + '\',\'' + acct_id +
|
'</svg><span style="font-size:200%">'+his[0].uses+'</span>toots <a onclick="tl(\'tag\',\'' + tag.name + '\',\'' + acct_id +
|
||||||
'\',\'add\')" class="pointer">#' + escapeHTML(tag.name) + '</a> '+his[0].accounts+lang.lang_src_people;
|
'\',\'add\')" class="pointer">#' + tag.name + '</a> '+his[0].accounts+lang.lang_src_people;
|
||||||
}
|
}
|
||||||
|
|
||||||
return tags;
|
return tags;
|
||||||
|
@@ -65,7 +65,6 @@ function favTag(){
|
|||||||
var ptt=lang.lang_tags_unrealtime;
|
var ptt=lang.lang_tags_unrealtime;
|
||||||
var nowon="("+lang.lang_tags_realtime+")";
|
var nowon="("+lang.lang_tags_realtime+")";
|
||||||
}
|
}
|
||||||
tag=escapeHTML(tag);
|
|
||||||
tags = tags + '<a onclick="tagShow(\'' + tag + '\')" class="pointer">#' + tag + '</a>'+nowon+'<span class="hide" data-tag="' + tag + '"> <a onclick="tagTL(\'tag\',\'' + tag + '\',false,\'add\')" class="pointer" title="' +lang.lang_parse_tagTL.replace("{{tag}}" ,'#'+tag)+ '">TL</a> <a onclick="brInsert(\'#' + tag + '\')" class="pointer" title="' + lang.lang_parse_tagtoot.replace("{{tag}}" ,'#'+tag) + '">Toot</a> '+
|
tags = tags + '<a onclick="tagShow(\'' + tag + '\')" class="pointer">#' + tag + '</a>'+nowon+'<span class="hide" data-tag="' + tag + '"> <a onclick="tagTL(\'tag\',\'' + tag + '\',false,\'add\')" class="pointer" title="' +lang.lang_parse_tagTL.replace("{{tag}}" ,'#'+tag)+ '">TL</a> <a onclick="brInsert(\'#' + tag + '\')" class="pointer" title="' + lang.lang_parse_tagtoot.replace("{{tag}}" ,'#'+tag) + '">Toot</a> '+
|
||||||
'<a onclick="autoToot(\'' + tag + '\');" class="pointer" title="'+lang.lang_tags_always + lang.lang_parse_tagtoot.replace("{{tag}}" ,'#'+tag) + '">'+ptt+'</a> <a onclick="tagRemove(\'' + key + '\')" class="pointer" title="' +lang.lang_tags_tagunpin.replace("{{tag}}" ,'#'+tag)+ '">'+lang.lang_del+'</a></span> ';
|
'<a onclick="autoToot(\'' + tag + '\');" class="pointer" title="'+lang.lang_tags_always + lang.lang_parse_tagtoot.replace("{{tag}}" ,'#'+tag) + '">'+ptt+'</a> <a onclick="tagRemove(\'' + key + '\')" class="pointer" title="' +lang.lang_tags_tagunpin.replace("{{tag}}" ,'#'+tag)+ '">'+lang.lang_del+'</a></span> ';
|
||||||
});
|
});
|
||||||
@@ -97,7 +96,6 @@ function trendTag(){
|
|||||||
var tags="";
|
var tags="";
|
||||||
json=json.score;
|
json=json.score;
|
||||||
Object.keys(json).forEach(function(tag) {
|
Object.keys(json).forEach(function(tag) {
|
||||||
tag=escapeHTML(tag);
|
|
||||||
tags = tags + '<a onclick="tagShow(\'' + tag + '\')" class="pointer">#' + tag + '</a><span class="hide" data-tag="' + tag + '"> <a onclick="tagTL(\'tag\',\'' + tag + '\',false,\'add\')" class="pointer" title="#' + tag + 'のタイムライン">TL</a> <a onclick="show();brInsert(\'#' + tag + '\')" class="pointer" title="#' + tag + 'でトゥート">Toot</a></span> ';
|
tags = tags + '<a onclick="tagShow(\'' + tag + '\')" class="pointer">#' + tag + '</a><span class="hide" data-tag="' + tag + '"> <a onclick="tagTL(\'tag\',\'' + tag + '\',false,\'add\')" class="pointer" title="#' + tag + 'のタイムライン">TL</a> <a onclick="show();brInsert(\'#' + tag + '\')" class="pointer" title="#' + tag + 'でトゥート">Toot</a></span> ';
|
||||||
});
|
});
|
||||||
$("#taglist").append('<div class="trendtag">アイマストドントレンドタグ<i class="material-icons pointer" onclick="trendTag()" style="font-size:12px">refresh</i>:' + tags+'</div>');
|
$("#taglist").append('<div class="trendtag">アイマストドントレンドタグ<i class="material-icons pointer" onclick="trendTag()" style="font-size:12px">refresh</i>:' + tags+'</div>');
|
||||||
@@ -117,7 +115,6 @@ function tagTL(a,b,c,d){
|
|||||||
tl(a,b,acct_id,d);
|
tl(a,b,acct_id,d);
|
||||||
}
|
}
|
||||||
function autoToot(tag){
|
function autoToot(tag){
|
||||||
tag=escapeHTML(tag)
|
|
||||||
var nowPT=localStorage.getItem("stable")
|
var nowPT=localStorage.getItem("stable")
|
||||||
if(nowPT==tag){
|
if(nowPT==tag){
|
||||||
localStorage.removeItem("stable");
|
localStorage.removeItem("stable");
|
||||||
|
909
app/js/tl/tl.js
909
app/js/tl/tl.js
File diff suppressed because it is too large
Load Diff
@@ -20,7 +20,7 @@ $('.type').click(function() {
|
|||||||
$("#type-sel").val($(this).attr("data-type"))
|
$("#type-sel").val($(this).attr("data-type"))
|
||||||
})
|
})
|
||||||
//最初、カラム変更時に発火
|
//最初、カラム変更時に発火
|
||||||
function parseColumn(dontclose) {
|
function parseColumn() {
|
||||||
console.log("parse");
|
console.log("parse");
|
||||||
var size = localStorage.getItem("size");
|
var size = localStorage.getItem("size");
|
||||||
if (size) {
|
if (size) {
|
||||||
@@ -28,17 +28,11 @@ function parseColumn(dontclose) {
|
|||||||
$(".toot-reset").css("font-size", size + "px");
|
$(".toot-reset").css("font-size", size + "px");
|
||||||
$(".cont-series").css("font-size", size + "px");
|
$(".cont-series").css("font-size", size + "px");
|
||||||
}
|
}
|
||||||
if(localStorage.getItem("menu-done")){
|
tlCloser();
|
||||||
$("#fukidashi").addClass("hide")
|
|
||||||
}
|
|
||||||
if(!dontclose){
|
|
||||||
tlCloser();
|
|
||||||
}
|
|
||||||
|
|
||||||
var multi = localStorage.getItem("multi");
|
var multi = localStorage.getItem("multi");
|
||||||
if (multi) {
|
if (multi) {
|
||||||
var obj = JSON.parse(multi);
|
var obj = JSON.parse(multi);
|
||||||
|
|
||||||
var templete;
|
var templete;
|
||||||
Object.keys(obj).forEach(function(key) {
|
Object.keys(obj).forEach(function(key) {
|
||||||
var acct = obj[key];
|
var acct = obj[key];
|
||||||
@@ -52,11 +46,6 @@ function parseColumn(dontclose) {
|
|||||||
ckdb(key);
|
ckdb(key);
|
||||||
//フィルターデータ読もう
|
//フィルターデータ読もう
|
||||||
getFilter(key);
|
getFilter(key);
|
||||||
var domain = localStorage.getItem("domain_" + key);
|
|
||||||
if(localStorage.getItem("mode_" + domain)=="misskey"){
|
|
||||||
localStorage.removeItem("misskey_wss_" + key)
|
|
||||||
connectMisskey(key)
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
var acctlist=obj;
|
var acctlist=obj;
|
||||||
@@ -168,7 +157,7 @@ function parseColumn(dontclose) {
|
|||||||
'<input type="checkbox" class="filled-in" id="exc-fav-'+key+'" '+excludeCk(key,"favourite")+' /><label for="exc-fav-'+key+'" class="exc-chb"><i class="fas fa-star exc-icons"></i></label> '+
|
'<input type="checkbox" class="filled-in" id="exc-fav-'+key+'" '+excludeCk(key,"favourite")+' /><label for="exc-fav-'+key+'" class="exc-chb"><i class="fas fa-star exc-icons"></i></label> '+
|
||||||
'<input type="checkbox" class="filled-in" id="exc-bt-'+key+'" '+excludeCk(key,"reblog")+' /><label for="exc-bt-'+key+'" class="exc-chb" ><i class="fas fa-retweet exc-icons"></i></label> '+
|
'<input type="checkbox" class="filled-in" id="exc-bt-'+key+'" '+excludeCk(key,"reblog")+' /><label for="exc-bt-'+key+'" class="exc-chb" ><i class="fas fa-retweet exc-icons"></i></label> '+
|
||||||
'<input type="checkbox" class="filled-in" id="exc-follow-'+key+'" '+excludeCk(key,"follow")+' /><label for="exc-follow-'+key+'" class="exc-chb" ><i class="fas fa-users exc-icons"></i></label> '+
|
'<input type="checkbox" class="filled-in" id="exc-follow-'+key+'" '+excludeCk(key,"follow")+' /><label for="exc-follow-'+key+'" class="exc-chb" ><i class="fas fa-users exc-icons"></i></label> '+
|
||||||
'<input type="checkbox" class="filled-in" id="exc-poll-'+key+'" '+excludeCk(key,"poll")+' /><label for="exc-poll-'+key+'" class="exc-chb" ><i class="fas fa-tasks exc-icons"></i></label> '+
|
'<input type="checkbox" class="filled-in" id="exc-follow-'+key+'" '+excludeCk(key,"poll")+' /><label for="exc-poll-'+key+'" class="exc-chb" ><i class="fas fa-tasks exc-icons"></i></label> '+
|
||||||
'<button class="btn waves-effect" style="width:60px; padding:0;" onclick="exclude('+key+')">Filter</button><br>';
|
'<button class="btn waves-effect" style="width:60px; padding:0;" onclick="exclude('+key+')">Filter</button><br>';
|
||||||
}else if(acct.type=="home"){
|
}else if(acct.type=="home"){
|
||||||
var exclude='<a onclick="ebtToggle(' + key +
|
var exclude='<a onclick="ebtToggle(' + key +
|
||||||
@@ -188,17 +177,9 @@ function parseColumn(dontclose) {
|
|||||||
if(key===0){
|
if(key===0){
|
||||||
left_hold='';
|
left_hold='';
|
||||||
}
|
}
|
||||||
if(localStorage.getItem("mode_" + localStorage.getItem("domain_" + acct.domain))=="misskey"){
|
|
||||||
var isMisRed=""
|
|
||||||
exclude=""
|
|
||||||
var if_misskey_hide="hide"
|
|
||||||
}else{
|
|
||||||
var isMisRed="red-text"
|
|
||||||
var if_misskey_hide=""
|
|
||||||
}
|
|
||||||
var html='<div class="boxIn" id="timeline_box_' + key + '_box" tlid="' + key +
|
var html='<div class="boxIn" id="timeline_box_' + key + '_box" tlid="' + key +
|
||||||
'" data-acct="'+acct.domain+'"><div class="notice-box z-depth-2" id="menu_'+key+'" style="'+insert+' ">'+
|
'" data-acct="'+acct.domain+'"><div class="notice-box z-depth-2" id="menu_'+key+'" style="'+insert+' ">'+
|
||||||
'<div class="area-notice"><i class="material-icons waves-effect '+isMisRed+'" id="notice_icon_' + key + '"'+notf_attr+' style="font-size:40px; padding-top:25%;" onclick="checkStr(\''+acct.type+'\', \''+data+'\', \''+acct.domain+'\', \''+key+'\', \''+delc+'\',\''+voice+'\',null)" title="'+lang.lang_layout_gotop +'"></i></div>'+
|
'<div class="area-notice"><i class="material-icons waves-effect red-text" id="notice_icon_' + key + '"'+notf_attr+' style="font-size:40px; padding-top:25%;" onclick="checkStr(\''+acct.type+'\', \''+data+'\', \''+acct.domain+'\', \''+key+'\', \''+delc+'\',\''+voice+'\',null)" title="'+lang.lang_layout_gotop +'"></i></div>'+
|
||||||
'<div class="area-notice_name"><span id="notice_' + key + '" class="tl-title"></span></div>'+
|
'<div class="area-notice_name"><span id="notice_' + key + '" class="tl-title"></span></div>'+
|
||||||
'<div class="area-a1"><a onclick="notfToggle(' + acct.domain + ',' + key +
|
'<div class="area-a1"><a onclick="notfToggle(' + acct.domain + ',' + key +
|
||||||
')" class="setting nex '+if_notf+'" title="'+unique_notf+'"'+icnsert+'><i class="material-icons waves-effect nex notf-icon_' +
|
')" class="setting nex '+if_notf+'" title="'+unique_notf+'"'+icnsert+'><i class="material-icons waves-effect nex notf-icon_' +
|
||||||
@@ -217,8 +198,8 @@ function parseColumn(dontclose) {
|
|||||||
key + '">On</span></a>'+lang.lang_layout_linkana +'<br><a onclick="voiceToggle(' + key +
|
key + '">On</span></a>'+lang.lang_layout_linkana +'<br><a onclick="voiceToggle(' + key +
|
||||||
')" class="setting nex"><i class="material-icons waves-effect nex" title="'+lang.lang_layout_tts +'">hearing</i><span id="sta-voice-' +
|
')" class="setting nex"><i class="material-icons waves-effect nex" title="'+lang.lang_layout_tts +'">hearing</i><span id="sta-voice-' +
|
||||||
key + '">On</span></a>'+lang.lang_layout_tts +'TL<br><a onclick="reconnector(' + key +
|
key + '">On</span></a>'+lang.lang_layout_tts +'TL<br><a onclick="reconnector(' + key +
|
||||||
',\''+acct.type+'\',\''+acct.domain+'\',\''+escapeHTML(acct.data)+'\')" class="setting nex '+if_notf+' '+if_misskey_hide+'"><i class="material-icons waves-effect nex '+if_notf+'" title="'+lang.lang_layout_reconnect+'">low_priority</i></a><span class="'+if_notf+'">'+lang.lang_layout_reconnect+'</span><br>'+lang.lang_layout_headercolor +'<br><div id="picker_'+key+'" class="color-picker"></div></div><div class="tl-box" tlid="' + key + '"><div id="timeline_' + key +
|
',\''+acct.type+'\',\''+acct.domain+'\',\''+acct.data+'\')" class="setting nex '+if_notf+'"><i class="material-icons waves-effect nex '+if_notf+'" title="'+lang.lang_layout_reconnect+'">low_priority</i></a><span class="'+if_notf+'">'+lang.lang_layout_reconnect+'</span><br>'+lang.lang_layout_headercolor +'<br><div id="picker_'+key+'" class="color-picker"></div></div><div class="tl-box" tlid="' + key + '"><div id="timeline_' + key +
|
||||||
'" class="tl '+acct.type+'-timeline " tlid="' + key + '" data-type="' + acct.type + '" data-acct="'+acct.domain+'" data-const="' + acct.type + '_'+acct.domain+'"><div id="landing_'+key+'" style="text-align:center">'+lang.lang_layout_nodata +'</div></div></div>'
|
'" class="tl '+acct.type+'-timeline " tlid="' + key + '" data-type="' + acct.type + '" data-acct="'+acct.domain+'"><div id="landing_'+key+'" style="text-align:center">'+lang.lang_layout_nodata +'</div></div></div>'
|
||||||
$('#timeline_box_' + basekey + '_parentBox').append(html);
|
$('#timeline_box_' + basekey + '_parentBox').append(html);
|
||||||
localStorage.removeItem("pool_" + key);
|
localStorage.removeItem("pool_" + key);
|
||||||
if (acct.data) {
|
if (acct.data) {
|
||||||
|
@@ -1,6 +1,4 @@
|
|||||||
function menu(){
|
function menu(){
|
||||||
localStorage.setItem("menu-done",true);
|
|
||||||
$("#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");
|
||||||
|
@@ -123,10 +123,6 @@ function load() {
|
|||||||
var font = "";
|
var font = "";
|
||||||
}
|
}
|
||||||
$("#font").val(font);
|
$("#font").val(font);
|
||||||
$("#c1-file").text(localStorage.getItem("custom1"))
|
|
||||||
$("#c2-file").text(localStorage.getItem("custom2"));
|
|
||||||
$("#c3-file").text(localStorage.getItem("custom3"));
|
|
||||||
$("#c4-file").text(localStorage.getItem("custom4"));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function climute(){
|
function climute(){
|
||||||
@@ -141,13 +137,12 @@ function climute(){
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var templete;
|
var templete;
|
||||||
console.log(obj)
|
|
||||||
Object.keys(obj).forEach(function(key) {
|
Object.keys(obj).forEach(function(key) {
|
||||||
var cli = obj[key];
|
var cli = obj[key];
|
||||||
var list = key * 1 + 1;
|
var list = key * 1 + 1;
|
||||||
templete = '<div class="acct" id="acct_' + key + '">' + list +
|
templete = '<div class="acct" id="acct_' + key + '">' + list +
|
||||||
'.' +
|
'.' +
|
||||||
escapeHTML(cli) + '<button class="btn waves-effect red disTar" onclick="cliMuteDel(' +
|
cli + '<button class="btn waves-effect red disTar" onclick="cliMuteDel(' +
|
||||||
key + ')">'+lang.lang_del+'</button><br></div>';
|
key + ')">'+lang.lang_del+'</button><br></div>';
|
||||||
$("#mute-cli").append(templete);
|
$("#mute-cli").append(templete);
|
||||||
});
|
});
|
||||||
@@ -159,7 +154,7 @@ function cliMuteDel(key){
|
|||||||
obj.splice(key, 1);
|
obj.splice(key, 1);
|
||||||
var json = JSON.stringify(obj);
|
var json = JSON.stringify(obj);
|
||||||
localStorage.setItem("client_mute", json);
|
localStorage.setItem("client_mute", json);
|
||||||
climute();
|
mute();
|
||||||
}
|
}
|
||||||
|
|
||||||
function wordmute(){
|
function wordmute(){
|
||||||
@@ -641,22 +636,6 @@ ipc.on('theme-json-create-complete', function (event, args) {
|
|||||||
$("#custom_import").val("");
|
$("#custom_import").val("");
|
||||||
ctLoad()
|
ctLoad()
|
||||||
});
|
});
|
||||||
function customSound(key){
|
|
||||||
var electron = require("electron");
|
|
||||||
var remote=electron.remote;
|
|
||||||
var dialog=remote.dialog;
|
|
||||||
dialog.showOpenDialog(null, {
|
|
||||||
title: 'Custom sound',
|
|
||||||
properties: ['openFile'],
|
|
||||||
filters: [
|
|
||||||
{name: 'Audio', extensions: ['mp3','aac','wav','flac','m4a']},
|
|
||||||
{name: 'All', extensions: ['*']},
|
|
||||||
]
|
|
||||||
}, (fileNames) => {
|
|
||||||
localStorage.setItem("custom"+key,fileNames[0]);
|
|
||||||
$("#c1-file").text(fileNames[0])
|
|
||||||
});
|
|
||||||
}
|
|
||||||
window.onload = function() {
|
window.onload = function() {
|
||||||
//最初に読む
|
//最初に読む
|
||||||
load();
|
load();
|
||||||
@@ -669,4 +648,3 @@ oksload();
|
|||||||
npprovider();
|
npprovider();
|
||||||
ctLoad()
|
ctLoad()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -32,7 +32,7 @@ function sortload(){
|
|||||||
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, escapeHTML(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);
|
||||||
@@ -103,7 +103,7 @@ function sort(){
|
|||||||
var json = JSON.stringify(newobj);
|
var json = JSON.stringify(newobj);
|
||||||
localStorage.setItem("column", json);
|
localStorage.setItem("column", json);
|
||||||
$("#sort").html("");
|
$("#sort").html("");
|
||||||
Materialize.toast("Sorted", 3000);
|
Materialize.toast("並べ替え完了。", 3000);
|
||||||
sortload();
|
sortload();
|
||||||
parseColumn();
|
parseColumn();
|
||||||
sortMenu()
|
sortMenu()
|
||||||
|
@@ -57,7 +57,7 @@ function startmem(){
|
|||||||
var use=arg[0];
|
var use=arg[0];
|
||||||
var cpu=arg[1];
|
var cpu=arg[1];
|
||||||
var total=arg[2]
|
var total=arg[2]
|
||||||
$("#tips-text").html(escapeHTML(cpu)+"<br>Memory:"+Math.floor(use/1024/1024/102.4)/10+"/"+Math.floor(total/1024/1024/102.4)/10+"GB("+Math.floor(use/total*100)+"%)")
|
$("#tips-text").html(cpu+"<br>Memory:"+Math.floor(use/1024/1024/102.4)/10+"/"+Math.floor(total/1024/1024/102.4)/10+"GB("+Math.floor(use/total*100)+"%)")
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
//トレンドタグ
|
//トレンドタグ
|
||||||
@@ -83,7 +83,7 @@ function trendTagonTip(){
|
|||||||
var tags="";
|
var tags="";
|
||||||
json=json.score;
|
json=json.score;
|
||||||
Object.keys(json).forEach(function(tag) {
|
Object.keys(json).forEach(function(tag) {
|
||||||
tags = tags + '<a onclick="tagShow(\'' + tag + '\')" class="pointer">#' + escapeHTML(tag) + '</a><span class="hide" data-tag="' + tag + '"> <a onclick="tagTL(\'tag\',\'' + tag + '\',false,\'add\')" class="pointer" title="#' + tag + 'のタイムライン">TL</a> <a onclick="show();brInsert(\'#' + tag + '\')" class="pointer" title="#' + tag + 'でトゥート">Toot</a></span><br>';
|
tags = tags + '<a onclick="tagShow(\'' + tag + '\')" class="pointer">#' + tag + '</a><span class="hide" data-tag="' + tag + '"> <a onclick="tagTL(\'tag\',\'' + tag + '\',false,\'add\')" class="pointer" title="#' + tag + 'のタイムライン">TL</a> <a onclick="show();brInsert(\'#' + tag + '\')" class="pointer" title="#' + tag + 'でトゥート">Toot</a></span><br>';
|
||||||
});
|
});
|
||||||
$("#tips-text").html('<div class="trendtag">トレンドタグ<i class="material-icons pointer" onclick="trendTagonTip()" style="font-size:12px">refresh</i>:<br>' + tags+'</div>');
|
$("#tips-text").html('<div class="trendtag">トレンドタグ<i class="material-icons pointer" onclick="trendTagonTip()" style="font-size:12px">refresh</i>:<br>' + tags+'</div>');
|
||||||
trendTagonTipInterval()
|
trendTagonTipInterval()
|
||||||
|
@@ -438,11 +438,10 @@ function showReq(more, acct_id) {
|
|||||||
todo(error);
|
todo(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, 'true',acct_id);
|
||||||
var templete = userparse(json, true,acct_id);
|
|
||||||
}else{
|
}else{
|
||||||
var templete = misskeyUserparse(json, true,acct_id);
|
var templete = misskeyUserparse(json, 'true',acct_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!json[0]){
|
if(!json[0]){
|
||||||
@@ -572,30 +571,15 @@ function udAdd(start) {
|
|||||||
for(var i=0;i<fields.length;i++){
|
for(var i=0;i<fields.length;i++){
|
||||||
if(fields[i].type=="IdentityProof"){
|
if(fields[i].type=="IdentityProof"){
|
||||||
if(fields[i].signatureAlgorithm=="keybase"){
|
if(fields[i].signatureAlgorithm=="keybase"){
|
||||||
var html='<a href="https://keybase.io/'+fields[i].name+'" target="_blank" class="cbadge teal waves-effect" style="max-width:200px;" title="'+lang.lang_hisdata_key.replace("{{set}}",escapeHTML(fields[i].signatureAlgorithm))+'"><i class="fas fa-key" aria-hidden="true"></i>'+escapeHTML(fields[i].signatureAlgorithm)+':'+escapeHTML(fields[i].name)+'</a>';
|
var html='<a href="https://keybase.io/'+fields[i].name+'" target="_blank" class="cbadge teal waves-effect" style="max-width:200px;" title="'+lang.lang_hisdata_key.replace("{{set}}",fields[i].signatureAlgorithm)+'"><i class="fas fa-key" aria-hidden="true"></i>'+fields[i].signatureAlgorithm+':'+fields[i].name+'</a>';
|
||||||
}else{
|
}else{
|
||||||
var html='<span class="cbadge teal" style="max-width:200px;" title="'+lang.lang_hisdata_key.replace("{{set}}",escapeHTML(fields[i].signatureAlgorithm))+'"><i class="fas fa-key" aria-hidden="true"></i>'+escapeHTML(fields[i].signatureAlgorithm)+':'+escapeHTML(fields[i].name)+'</span>';
|
var html='<span class="cbadge teal" style="max-width:200px;" title="'+lang.lang_hisdata_key.replace("{{set}}",fields[i].signatureAlgorithm)+'"><i class="fas fa-key" aria-hidden="true"></i>'+fields[i].signatureAlgorithm+':'+fields[i].name+'</span>';
|
||||||
}
|
}
|
||||||
$("#his-proof-prof").append(html)
|
$("#his-proof-prof").append(html)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
fetch("https://notestock.osa-p.net/api/v1/isstock.json?id="+start.replace("@","users/"), {
|
|
||||||
method: 'GET',
|
|
||||||
headers: {
|
|
||||||
'Accept': 'application/json'
|
|
||||||
},
|
|
||||||
}).then(function(response) {
|
|
||||||
return response.json();
|
|
||||||
}).catch(function(error) {
|
|
||||||
todo(error);
|
|
||||||
console.error(error);
|
|
||||||
}).then(function(json) {
|
|
||||||
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>';
|
|
||||||
$("#his-proof-prof").append(html)
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -157,7 +157,8 @@ function udg(user, acct_id) {
|
|||||||
var when="";
|
var when="";
|
||||||
var color="inherit"
|
var color="inherit"
|
||||||
}
|
}
|
||||||
note=note+'<tr><td class="his-field-title">'+twemoji.parse(escapeHTML(fname))+'</td><td class="his-field-content" title="'+when+'" style="background-color:'+color+'">'+twemoji.parse(fval)+'</td></tr>';
|
fval=twemoji.parse(fval);
|
||||||
|
note=note+'<tr><td class="his-field-title">'+fname+'</td><td class="his-field-content" title="'+when+'" style="background-color:'+color+'">'+fval+'</td></tr>';
|
||||||
}
|
}
|
||||||
note=note+'</table>'
|
note=note+'</table>'
|
||||||
$("#his-des").html(twemoji.parse(note));
|
$("#his-des").html(twemoji.parse(note));
|
||||||
@@ -184,10 +185,10 @@ function udg(user, 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]){$("#his-f1-name").val(json.fields[0].name); $("#his-f1-val").val($.strip_tags(json.fields[0].value));}
|
$("#his-f1-name").val(json.fields[0].name); $("#his-f1-val").val($.strip_tags(json.fields[0].value));
|
||||||
if(json.fields[1]){$("#his-f2-name").val(json.fields[1].name); $("#his-f2-val").val($.strip_tags(json.fields[1].value));}
|
$("#his-f2-name").val(json.fields[1].name); $("#his-f2-val").val($.strip_tags(json.fields[1].value));
|
||||||
if(json.fields[2]){$("#his-f3-name").val(json.fields[2].name); $("#his-f3-val").val($.strip_tags(json.fields[2].value));}
|
$("#his-f3-name").val(json.fields[2].name); $("#his-f3-val").val($.strip_tags(json.fields[2].value));
|
||||||
if(json.fields[3]){$("#his-f4-name").val(json.fields[3].name); $("#his-f4-val").val($.strip_tags(json.fields[3].value));}
|
$("#his-f4-name").val(json.fields[3].name); $("#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")
|
||||||
@@ -278,7 +279,7 @@ function misskeyUdg(user, acct_id) {
|
|||||||
$("#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=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("😺"));
|
||||||
|
@@ -73,7 +73,7 @@ function system(mainWindow, dir, lang) {
|
|||||||
var ver = app.getVersion()
|
var ver = app.getVersion()
|
||||||
var window = new BrowserWindow({
|
var window = new BrowserWindow({
|
||||||
width: 300,
|
width: 300,
|
||||||
height: 480,
|
height: 460,
|
||||||
"transparent": false, // ウィンドウの背景を透過
|
"transparent": false, // ウィンドウの背景を透過
|
||||||
"frame": false, // 枠の無いウィンドウ
|
"frame": false, // 枠の無いウィンドウ
|
||||||
"resizable": false
|
"resizable": false
|
||||||
|
588
app/package-lock.json
generated
588
app/package-lock.json
generated
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "thedesk",
|
"name": "thedesk",
|
||||||
"version": "18.3.1",
|
"version": "18.2.1",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -18,7 +18,8 @@
|
|||||||
"abbrev": {
|
"abbrev": {
|
||||||
"version": "1.1.1",
|
"version": "1.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",
|
||||||
"integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q=="
|
"integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==",
|
||||||
|
"optional": true
|
||||||
},
|
},
|
||||||
"ajv": {
|
"ajv": {
|
||||||
"version": "6.10.0",
|
"version": "6.10.0",
|
||||||
@@ -157,12 +158,14 @@
|
|||||||
"aproba": {
|
"aproba": {
|
||||||
"version": "1.2.0",
|
"version": "1.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz",
|
||||||
"integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw=="
|
"integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==",
|
||||||
|
"optional": true
|
||||||
},
|
},
|
||||||
"are-we-there-yet": {
|
"are-we-there-yet": {
|
||||||
"version": "1.1.5",
|
"version": "1.1.5",
|
||||||
"resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz",
|
"resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz",
|
||||||
"integrity": "sha512-5hYdAkZlcG8tOLujVDTgCT+uPX0VnpAH28gWsLfzpXYm7wP6mp5Q/gYyR7YQ0cKVJcXJnl3j2kpBan13PtQf6w==",
|
"integrity": "sha512-5hYdAkZlcG8tOLujVDTgCT+uPX0VnpAH28gWsLfzpXYm7wP6mp5Q/gYyR7YQ0cKVJcXJnl3j2kpBan13PtQf6w==",
|
||||||
|
"optional": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"delegates": "^1.0.0",
|
"delegates": "^1.0.0",
|
||||||
"readable-stream": "^2.0.6"
|
"readable-stream": "^2.0.6"
|
||||||
@@ -245,7 +248,7 @@
|
|||||||
"version": "0.0.9",
|
"version": "0.0.9",
|
||||||
"resolved": "https://registry.npmjs.org/block-stream/-/block-stream-0.0.9.tgz",
|
"resolved": "https://registry.npmjs.org/block-stream/-/block-stream-0.0.9.tgz",
|
||||||
"integrity": "sha1-E+v+d4oDIFz+A3UUgeu0szAMEmo=",
|
"integrity": "sha1-E+v+d4oDIFz+A3UUgeu0szAMEmo=",
|
||||||
"dev": true,
|
"optional": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"inherits": "~2.0.0"
|
"inherits": "~2.0.0"
|
||||||
}
|
}
|
||||||
@@ -472,12 +475,6 @@
|
|||||||
"supports-color": "^5.3.0"
|
"supports-color": "^5.3.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"chownr": {
|
|
||||||
"version": "1.1.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.1.tgz",
|
|
||||||
"integrity": "sha512-j38EvO5+LHX84jlo6h4UzmOwi0UgW61WRyPtJz4qaadK5eY3BTS5TY/S1Stc3Uk2lIM6TPevAlULiEJwie860g==",
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"chromium-pickle-js": {
|
"chromium-pickle-js": {
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/chromium-pickle-js/-/chromium-pickle-js-0.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/chromium-pickle-js/-/chromium-pickle-js-0.2.0.tgz",
|
||||||
@@ -496,21 +493,6 @@
|
|||||||
"integrity": "sha1-T6kXw+WclKAEzWH47lCdplFocUM=",
|
"integrity": "sha1-T6kXw+WclKAEzWH47lCdplFocUM=",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"cli-cursor": {
|
|
||||||
"version": "2.1.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-2.1.0.tgz",
|
|
||||||
"integrity": "sha1-s12sN2R5+sw+lHR9QdDQ9SOP/LU=",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"restore-cursor": "^2.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"cli-spinners": {
|
|
||||||
"version": "2.1.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.1.0.tgz",
|
|
||||||
"integrity": "sha512-8B00fJOEh1HPrx4fo5eW16XmE1PcL1tGpGrxy63CXGP9nHdPBN63X75hA1zhvQuhVztJWLqV58Roj2qlNM7cAA==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"cliui": {
|
"cliui": {
|
||||||
"version": "4.1.0",
|
"version": "4.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/cliui/-/cliui-4.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/cliui/-/cliui-4.1.0.tgz",
|
||||||
@@ -555,12 +537,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"clone": {
|
|
||||||
"version": "1.0.4",
|
|
||||||
"resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz",
|
|
||||||
"integrity": "sha1-2jCcwmPfFZlMaIypAheco8fNfH4=",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"code-point-at": {
|
"code-point-at": {
|
||||||
"version": "1.1.0",
|
"version": "1.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz",
|
||||||
@@ -581,12 +557,6 @@
|
|||||||
"integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=",
|
"integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"colors": {
|
|
||||||
"version": "1.3.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/colors/-/colors-1.3.3.tgz",
|
|
||||||
"integrity": "sha512-mmGt/1pZqYRjMxB1axhTo16/snVZ5krrKkcmMeVKxzECMMXoCgnvTPp10QgHfcbQZw8Dq2jMNG6je4JlWU0gWg==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"combined-stream": {
|
"combined-stream": {
|
||||||
"version": "1.0.6",
|
"version": "1.0.6",
|
||||||
"resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.6.tgz",
|
"resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.6.tgz",
|
||||||
@@ -635,7 +605,8 @@
|
|||||||
"console-control-strings": {
|
"console-control-strings": {
|
||||||
"version": "1.1.0",
|
"version": "1.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",
|
||||||
"integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4="
|
"integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=",
|
||||||
|
"optional": true
|
||||||
},
|
},
|
||||||
"core-util-is": {
|
"core-util-is": {
|
||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
@@ -705,15 +676,6 @@
|
|||||||
"integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==",
|
"integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"defaults": {
|
|
||||||
"version": "1.0.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.3.tgz",
|
|
||||||
"integrity": "sha1-xlYFHpgX2f8I7YgUd/P+QBnz730=",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"clone": "^1.0.2"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"delayed-stream": {
|
"delayed-stream": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
|
||||||
@@ -722,13 +684,8 @@
|
|||||||
"delegates": {
|
"delegates": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz",
|
||||||
"integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o="
|
"integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=",
|
||||||
},
|
"optional": true
|
||||||
"detect-libc": {
|
|
||||||
"version": "1.0.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz",
|
|
||||||
"integrity": "sha1-+hN8S9aY7fVc1c0CrFWfkaTEups=",
|
|
||||||
"dev": true
|
|
||||||
},
|
},
|
||||||
"dmg-builder": {
|
"dmg-builder": {
|
||||||
"version": "6.6.0",
|
"version": "6.6.0",
|
||||||
@@ -957,165 +914,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"electron-rebuild": {
|
|
||||||
"version": "1.8.4",
|
|
||||||
"resolved": "https://registry.npmjs.org/electron-rebuild/-/electron-rebuild-1.8.4.tgz",
|
|
||||||
"integrity": "sha512-QBUZg1due+R0bww5rNd4gEcsKczyhxyLrxSFZlKihwHRxaiHrGut532JAUe0fRz+VIU4WNSfNKyZ/ZwSGjaDhA==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"colors": "^1.3.3",
|
|
||||||
"debug": "^4.1.1",
|
|
||||||
"detect-libc": "^1.0.3",
|
|
||||||
"fs-extra": "^7.0.1",
|
|
||||||
"node-abi": "^2.7.0",
|
|
||||||
"node-gyp": "^3.8.0",
|
|
||||||
"ora": "^3.0.0",
|
|
||||||
"spawn-rx": "^3.0.0",
|
|
||||||
"yargs": "^12.0.5"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"ansi-regex": {
|
|
||||||
"version": "3.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz",
|
|
||||||
"integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"camelcase": {
|
|
||||||
"version": "5.3.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz",
|
|
||||||
"integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"debug": {
|
|
||||||
"version": "4.1.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
|
|
||||||
"integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"ms": "^2.1.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"find-up": {
|
|
||||||
"version": "3.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz",
|
|
||||||
"integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"locate-path": "^3.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"get-caller-file": {
|
|
||||||
"version": "1.0.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz",
|
|
||||||
"integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"is-fullwidth-code-point": {
|
|
||||||
"version": "2.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz",
|
|
||||||
"integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"ms": {
|
|
||||||
"version": "2.1.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz",
|
|
||||||
"integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"node-gyp": {
|
|
||||||
"version": "3.8.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-3.8.0.tgz",
|
|
||||||
"integrity": "sha512-3g8lYefrRRzvGeSowdJKAKyks8oUpLEd/DyPV4eMhVlhJ0aNaZqIrNUIPuEWWTAoPqyFkfGrM67MC69baqn6vA==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"fstream": "^1.0.0",
|
|
||||||
"glob": "^7.0.3",
|
|
||||||
"graceful-fs": "^4.1.2",
|
|
||||||
"mkdirp": "^0.5.0",
|
|
||||||
"nopt": "2 || 3",
|
|
||||||
"npmlog": "0 || 1 || 2 || 3 || 4",
|
|
||||||
"osenv": "0",
|
|
||||||
"request": "^2.87.0",
|
|
||||||
"rimraf": "2",
|
|
||||||
"semver": "~5.3.0",
|
|
||||||
"tar": "^2.0.0",
|
|
||||||
"which": "1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"require-main-filename": {
|
|
||||||
"version": "1.0.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz",
|
|
||||||
"integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"semver": {
|
|
||||||
"version": "5.3.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/semver/-/semver-5.3.0.tgz",
|
|
||||||
"integrity": "sha1-myzl094C0XxgEq0yaqa00M9U+U8=",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"string-width": {
|
|
||||||
"version": "2.1.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz",
|
|
||||||
"integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"is-fullwidth-code-point": "^2.0.0",
|
|
||||||
"strip-ansi": "^4.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"strip-ansi": {
|
|
||||||
"version": "4.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz",
|
|
||||||
"integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"ansi-regex": "^3.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"tar": {
|
|
||||||
"version": "2.2.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/tar/-/tar-2.2.1.tgz",
|
|
||||||
"integrity": "sha1-jk0qJWwOIYXGsYrWlK7JaLg8sdE=",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"block-stream": "*",
|
|
||||||
"fstream": "^1.0.2",
|
|
||||||
"inherits": "2"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"yargs": {
|
|
||||||
"version": "12.0.5",
|
|
||||||
"resolved": "https://registry.npmjs.org/yargs/-/yargs-12.0.5.tgz",
|
|
||||||
"integrity": "sha512-Lhz8TLaYnxq/2ObqHDql8dX8CJi97oHxrjUcYtzKbbykPtVW9WB+poxI+NM2UIzsMgNCZTIf0AQwsjK5yMAqZw==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"cliui": "^4.0.0",
|
|
||||||
"decamelize": "^1.2.0",
|
|
||||||
"find-up": "^3.0.0",
|
|
||||||
"get-caller-file": "^1.0.1",
|
|
||||||
"os-locale": "^3.0.0",
|
|
||||||
"require-directory": "^2.1.1",
|
|
||||||
"require-main-filename": "^1.0.1",
|
|
||||||
"set-blocking": "^2.0.0",
|
|
||||||
"string-width": "^2.0.0",
|
|
||||||
"which-module": "^2.0.0",
|
|
||||||
"y18n": "^3.2.1 || ^4.0.0",
|
|
||||||
"yargs-parser": "^11.1.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"yargs-parser": {
|
|
||||||
"version": "11.1.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-11.1.1.tgz",
|
|
||||||
"integrity": "sha512-C6kB/WJDiaxONLJQnF8ccx9SEeoTTLek8RVbaOIsrAUS8VrBEXfmeSnCZxygc+XC2sNMBIwOOnfcxiynjHsVSQ==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"camelcase": "^5.0.0",
|
|
||||||
"decamelize": "^1.2.0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"emoji-regex": {
|
"emoji-regex": {
|
||||||
"version": "7.0.3",
|
"version": "7.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz",
|
||||||
@@ -1320,25 +1118,17 @@
|
|||||||
"fs-extra": "^7.0.1"
|
"fs-extra": "^7.0.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"fs-minipass": {
|
|
||||||
"version": "1.2.5",
|
|
||||||
"resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-1.2.5.tgz",
|
|
||||||
"integrity": "sha512-JhBl0skXjUPCFH7x6x61gQxrKyXsxB5gcgePLZCwfyCGGsTISMoIeObbrvVeP6Xmyaudw4TT43qV2Gz+iyd2oQ==",
|
|
||||||
"optional": true,
|
|
||||||
"requires": {
|
|
||||||
"minipass": "^2.2.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"fs.realpath": {
|
"fs.realpath": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
|
||||||
"integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8="
|
"integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=",
|
||||||
|
"optional": true
|
||||||
},
|
},
|
||||||
"fstream": {
|
"fstream": {
|
||||||
"version": "1.0.11",
|
"version": "1.0.11",
|
||||||
"resolved": "https://registry.npmjs.org/fstream/-/fstream-1.0.11.tgz",
|
"resolved": "https://registry.npmjs.org/fstream/-/fstream-1.0.11.tgz",
|
||||||
"integrity": "sha1-XB+x8RdHcRTwYyoOtLcbPLD9MXE=",
|
"integrity": "sha1-XB+x8RdHcRTwYyoOtLcbPLD9MXE=",
|
||||||
"dev": true,
|
"optional": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"graceful-fs": "^4.1.2",
|
"graceful-fs": "^4.1.2",
|
||||||
"inherits": "~2.0.0",
|
"inherits": "~2.0.0",
|
||||||
@@ -1350,6 +1140,7 @@
|
|||||||
"version": "2.7.4",
|
"version": "2.7.4",
|
||||||
"resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz",
|
"resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz",
|
||||||
"integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=",
|
"integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=",
|
||||||
|
"optional": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"aproba": "^1.0.3",
|
"aproba": "^1.0.3",
|
||||||
"console-control-strings": "^1.0.0",
|
"console-control-strings": "^1.0.0",
|
||||||
@@ -1391,6 +1182,7 @@
|
|||||||
"version": "7.1.3",
|
"version": "7.1.3",
|
||||||
"resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz",
|
"resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz",
|
||||||
"integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==",
|
"integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==",
|
||||||
|
"optional": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"fs.realpath": "^1.0.0",
|
"fs.realpath": "^1.0.0",
|
||||||
"inflight": "^1.0.4",
|
"inflight": "^1.0.4",
|
||||||
@@ -1470,7 +1262,8 @@
|
|||||||
"has-unicode": {
|
"has-unicode": {
|
||||||
"version": "2.0.1",
|
"version": "2.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz",
|
||||||
"integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk="
|
"integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=",
|
||||||
|
"optional": true
|
||||||
},
|
},
|
||||||
"hosted-git-info": {
|
"hosted-git-info": {
|
||||||
"version": "2.7.1",
|
"version": "2.7.1",
|
||||||
@@ -1522,6 +1315,7 @@
|
|||||||
"version": "1.0.6",
|
"version": "1.0.6",
|
||||||
"resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
|
"resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
|
||||||
"integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
|
"integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
|
||||||
|
"optional": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"once": "^1.3.0",
|
"once": "^1.3.0",
|
||||||
"wrappy": "1"
|
"wrappy": "1"
|
||||||
@@ -1826,21 +1620,6 @@
|
|||||||
"path-exists": "^3.0.0"
|
"path-exists": "^3.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lodash.assign": {
|
|
||||||
"version": "4.2.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/lodash.assign/-/lodash.assign-4.2.0.tgz",
|
|
||||||
"integrity": "sha1-DZnzzNem0mHRm9rrkkUAXShYCOc=",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"log-symbols": {
|
|
||||||
"version": "2.2.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-2.2.0.tgz",
|
|
||||||
"integrity": "sha512-VeIAFslyIerEJLXHziedo2basKbMKtTw3vfn5IzG0XTjhAVEJyNHnL2p7vc+wBDSdQuUpNw3M2u6xb9QsAY5Eg==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"chalk": "^2.0.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"loud-rejection": {
|
"loud-rejection": {
|
||||||
"version": "1.6.0",
|
"version": "1.6.0",
|
||||||
"resolved": "https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.6.0.tgz",
|
"resolved": "https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.6.0.tgz",
|
||||||
@@ -1988,36 +1767,6 @@
|
|||||||
"resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz",
|
"resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz",
|
||||||
"integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0="
|
"integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0="
|
||||||
},
|
},
|
||||||
"minipass": {
|
|
||||||
"version": "2.3.5",
|
|
||||||
"resolved": "https://registry.npmjs.org/minipass/-/minipass-2.3.5.tgz",
|
|
||||||
"integrity": "sha512-Gi1W4k059gyRbyVUZQ4mEqLm0YIUiGYfvxhF6SIlk3ui1WVxMTGfGdQ2SInh3PDrRTVvPKgULkpJtT4RH10+VA==",
|
|
||||||
"requires": {
|
|
||||||
"safe-buffer": "^5.1.2",
|
|
||||||
"yallist": "^3.0.0"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"safe-buffer": {
|
|
||||||
"version": "5.1.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
|
|
||||||
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
|
|
||||||
},
|
|
||||||
"yallist": {
|
|
||||||
"version": "3.0.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/yallist/-/yallist-3.0.3.tgz",
|
|
||||||
"integrity": "sha512-S+Zk8DEWE6oKpV+vI3qWkaK+jSbIK86pCwe2IF/xwIpQ8jEuxpw9NyaGjmp9+BoJv5FV2piqCDcoCtStppiq2A=="
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minizlib": {
|
|
||||||
"version": "1.2.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/minizlib/-/minizlib-1.2.1.tgz",
|
|
||||||
"integrity": "sha512-7+4oTUOWKg7AuL3vloEWekXY2/D20cevzsrNT2kGWm+39J9hGTCBv8VI5Pm5lXZ/o3/mdR4f8rflAPhnQb8mPA==",
|
|
||||||
"optional": true,
|
|
||||||
"requires": {
|
|
||||||
"minipass": "^2.2.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"mkdirp": {
|
"mkdirp": {
|
||||||
"version": "0.5.1",
|
"version": "0.5.1",
|
||||||
"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz",
|
"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz",
|
||||||
@@ -2048,27 +1797,19 @@
|
|||||||
"integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==",
|
"integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node-abi": {
|
|
||||||
"version": "2.8.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/node-abi/-/node-abi-2.8.0.tgz",
|
|
||||||
"integrity": "sha512-1/aa2clS0pue0HjckL62CsbhWWU35HARvBDXcJtYKbYR7LnIutmpxmXbuDMV9kEviD2lP/wACOgWmmwljghHyQ==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"semver": "^5.4.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node-addon-api": {
|
"node-addon-api": {
|
||||||
"version": "1.6.3",
|
"version": "1.6.2",
|
||||||
"resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-1.6.3.tgz",
|
"resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-1.6.2.tgz",
|
||||||
"integrity": "sha512-FXWH6mqjWgU8ewuahp4spec8LkroFZK2NicOv6bNwZC3kcwZUI8LeZdG80UzTSLLhK4T7MsgNwlYDVRlDdfTDg==",
|
"integrity": "sha512-479Bjw9nTE5DdBSZZWprFryHGjUaQC31y1wHo19We/k0BZlrmhqQitWoUL0cD8+scljCbIUL+E58oRDEakdGGA==",
|
||||||
"optional": true
|
"optional": true
|
||||||
},
|
},
|
||||||
"node-gyp": {
|
"node-gyp": {
|
||||||
"version": "4.0.0",
|
"version": "3.8.0",
|
||||||
"resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-4.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-3.8.0.tgz",
|
||||||
"integrity": "sha512-2XiryJ8sICNo6ej8d0idXDEMKfVfFK7kekGCtJAuelGsYHQxhj13KTf95swTCN2dZ/4lTfZ84Fu31jqJEEgjWA==",
|
"integrity": "sha512-3g8lYefrRRzvGeSowdJKAKyks8oUpLEd/DyPV4eMhVlhJ0aNaZqIrNUIPuEWWTAoPqyFkfGrM67MC69baqn6vA==",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
|
"fstream": "^1.0.0",
|
||||||
"glob": "^7.0.3",
|
"glob": "^7.0.3",
|
||||||
"graceful-fs": "^4.1.2",
|
"graceful-fs": "^4.1.2",
|
||||||
"mkdirp": "^0.5.0",
|
"mkdirp": "^0.5.0",
|
||||||
@@ -2078,15 +1819,138 @@
|
|||||||
"request": "^2.87.0",
|
"request": "^2.87.0",
|
||||||
"rimraf": "2",
|
"rimraf": "2",
|
||||||
"semver": "~5.3.0",
|
"semver": "~5.3.0",
|
||||||
"tar": "^4.4.8",
|
"tar": "^2.0.0",
|
||||||
"which": "1"
|
"which": "1"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"ajv": {
|
||||||
|
"version": "6.10.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.0.tgz",
|
||||||
|
"integrity": "sha512-nffhOpkymDECQyR0mnsUtoCE8RlX38G0rYP+wgLWFyZuUyuuojSSvi/+euOiQBIn63whYwYVIIH1TvE3tu4OEg==",
|
||||||
|
"optional": true,
|
||||||
|
"requires": {
|
||||||
|
"fast-deep-equal": "^2.0.1",
|
||||||
|
"fast-json-stable-stringify": "^2.0.0",
|
||||||
|
"json-schema-traverse": "^0.4.1",
|
||||||
|
"uri-js": "^4.2.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"aws4": {
|
||||||
|
"version": "1.8.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz",
|
||||||
|
"integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==",
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"extend": {
|
||||||
|
"version": "3.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz",
|
||||||
|
"integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==",
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"fast-deep-equal": {
|
||||||
|
"version": "2.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz",
|
||||||
|
"integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=",
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"har-validator": {
|
||||||
|
"version": "5.1.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz",
|
||||||
|
"integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==",
|
||||||
|
"optional": true,
|
||||||
|
"requires": {
|
||||||
|
"ajv": "^6.5.5",
|
||||||
|
"har-schema": "^2.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"json-schema-traverse": {
|
||||||
|
"version": "0.4.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
|
||||||
|
"integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"mime-db": {
|
||||||
|
"version": "1.38.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.38.0.tgz",
|
||||||
|
"integrity": "sha512-bqVioMFFzc2awcdJZIzR3HjZFX20QhilVS7hytkKrv7xFAn8bM1gzc/FOX2awLISvWe0PV8ptFKcon+wZ5qYkg==",
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"mime-types": {
|
||||||
|
"version": "2.1.22",
|
||||||
|
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.22.tgz",
|
||||||
|
"integrity": "sha512-aGl6TZGnhm/li6F7yx82bJiBZwgiEa4Hf6CNr8YO+r5UHr53tSTYZb102zyU50DOWWKeOv0uQLRL0/9EiKWCog==",
|
||||||
|
"optional": true,
|
||||||
|
"requires": {
|
||||||
|
"mime-db": "~1.38.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"oauth-sign": {
|
||||||
|
"version": "0.9.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz",
|
||||||
|
"integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==",
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"qs": {
|
||||||
|
"version": "6.5.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz",
|
||||||
|
"integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==",
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"request": {
|
||||||
|
"version": "2.88.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz",
|
||||||
|
"integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==",
|
||||||
|
"optional": true,
|
||||||
|
"requires": {
|
||||||
|
"aws-sign2": "~0.7.0",
|
||||||
|
"aws4": "^1.8.0",
|
||||||
|
"caseless": "~0.12.0",
|
||||||
|
"combined-stream": "~1.0.6",
|
||||||
|
"extend": "~3.0.2",
|
||||||
|
"forever-agent": "~0.6.1",
|
||||||
|
"form-data": "~2.3.2",
|
||||||
|
"har-validator": "~5.1.0",
|
||||||
|
"http-signature": "~1.2.0",
|
||||||
|
"is-typedarray": "~1.0.0",
|
||||||
|
"isstream": "~0.1.2",
|
||||||
|
"json-stringify-safe": "~5.0.1",
|
||||||
|
"mime-types": "~2.1.19",
|
||||||
|
"oauth-sign": "~0.9.0",
|
||||||
|
"performance-now": "^2.1.0",
|
||||||
|
"qs": "~6.5.2",
|
||||||
|
"safe-buffer": "^5.1.2",
|
||||||
|
"tough-cookie": "~2.4.3",
|
||||||
|
"tunnel-agent": "^0.6.0",
|
||||||
|
"uuid": "^3.3.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"safe-buffer": {
|
||||||
|
"version": "5.1.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
|
||||||
|
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
"semver": {
|
"semver": {
|
||||||
"version": "5.3.0",
|
"version": "5.3.0",
|
||||||
"resolved": "https://registry.npmjs.org/semver/-/semver-5.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/semver/-/semver-5.3.0.tgz",
|
||||||
"integrity": "sha1-myzl094C0XxgEq0yaqa00M9U+U8=",
|
"integrity": "sha1-myzl094C0XxgEq0yaqa00M9U+U8=",
|
||||||
"optional": true
|
"optional": true
|
||||||
|
},
|
||||||
|
"tough-cookie": {
|
||||||
|
"version": "2.4.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz",
|
||||||
|
"integrity": "sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==",
|
||||||
|
"optional": true,
|
||||||
|
"requires": {
|
||||||
|
"psl": "^1.1.24",
|
||||||
|
"punycode": "^1.4.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"uuid": {
|
||||||
|
"version": "3.3.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz",
|
||||||
|
"integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==",
|
||||||
|
"optional": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -2105,6 +1969,7 @@
|
|||||||
"version": "3.0.6",
|
"version": "3.0.6",
|
||||||
"resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz",
|
"resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz",
|
||||||
"integrity": "sha1-xkZdvwirzU2zWTF/eaxopkayj/k=",
|
"integrity": "sha1-xkZdvwirzU2zWTF/eaxopkayj/k=",
|
||||||
|
"optional": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"abbrev": "1"
|
"abbrev": "1"
|
||||||
}
|
}
|
||||||
@@ -2123,12 +1988,13 @@
|
|||||||
},
|
},
|
||||||
"nowplaying-node": {
|
"nowplaying-node": {
|
||||||
"version": "0.1.3",
|
"version": "0.1.3",
|
||||||
"resolved": "git+https://github.com/cutls/nowplaying-node.git#1641fc3c7fad8cd1f10f15a2517ada67a8de802c",
|
"resolved": "https://registry.npmjs.org/nowplaying-node/-/nowplaying-node-0.1.3.tgz",
|
||||||
|
"integrity": "sha512-nEvuw93xmgZS7X1XqUaLJXhd4iB54xjTOnYuEEoPMBHHs3QWGECNKvnD0uDBCe269sUK8Z5InX5rPjzf3vRVrw==",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@types/node": "^10.1.2",
|
"@types/node": "^10.1.2",
|
||||||
"node-addon-api": "^1.2.0",
|
"node-addon-api": "^1.2.0",
|
||||||
"node-gyp": ">=4.0.0"
|
"node-gyp": "^3.6.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"npm-run-path": {
|
"npm-run-path": {
|
||||||
@@ -2144,6 +2010,7 @@
|
|||||||
"version": "4.1.2",
|
"version": "4.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz",
|
||||||
"integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==",
|
"integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==",
|
||||||
|
"optional": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"are-we-there-yet": "~1.1.2",
|
"are-we-there-yet": "~1.1.2",
|
||||||
"console-control-strings": "~1.1.0",
|
"console-control-strings": "~1.1.0",
|
||||||
@@ -2203,58 +2070,11 @@
|
|||||||
"wrappy": "1"
|
"wrappy": "1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"onetime": {
|
|
||||||
"version": "2.0.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/onetime/-/onetime-2.0.1.tgz",
|
|
||||||
"integrity": "sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ=",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"mimic-fn": "^1.0.0"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"mimic-fn": {
|
|
||||||
"version": "1.2.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz",
|
|
||||||
"integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==",
|
|
||||||
"dev": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"ora": {
|
|
||||||
"version": "3.4.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/ora/-/ora-3.4.0.tgz",
|
|
||||||
"integrity": "sha512-eNwHudNbO1folBP3JsZ19v9azXWtQZjICdr3Q0TDPIaeBQ3mXLrh54wM+er0+hSp+dWKf+Z8KM58CYzEyIYxYg==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"chalk": "^2.4.2",
|
|
||||||
"cli-cursor": "^2.1.0",
|
|
||||||
"cli-spinners": "^2.0.0",
|
|
||||||
"log-symbols": "^2.2.0",
|
|
||||||
"strip-ansi": "^5.2.0",
|
|
||||||
"wcwidth": "^1.0.1"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"ansi-regex": {
|
|
||||||
"version": "4.1.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz",
|
|
||||||
"integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"strip-ansi": {
|
|
||||||
"version": "5.2.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz",
|
|
||||||
"integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"ansi-regex": "^4.1.0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"os-homedir": {
|
"os-homedir": {
|
||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz",
|
||||||
"integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M="
|
"integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=",
|
||||||
|
"optional": true
|
||||||
},
|
},
|
||||||
"os-locale": {
|
"os-locale": {
|
||||||
"version": "3.1.0",
|
"version": "3.1.0",
|
||||||
@@ -2309,12 +2129,14 @@
|
|||||||
"os-tmpdir": {
|
"os-tmpdir": {
|
||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz",
|
||||||
"integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ="
|
"integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=",
|
||||||
|
"optional": true
|
||||||
},
|
},
|
||||||
"osenv": {
|
"osenv": {
|
||||||
"version": "0.1.5",
|
"version": "0.1.5",
|
||||||
"resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.5.tgz",
|
"resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.5.tgz",
|
||||||
"integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==",
|
"integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==",
|
||||||
|
"optional": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"os-homedir": "^1.0.0",
|
"os-homedir": "^1.0.0",
|
||||||
"os-tmpdir": "^1.0.0"
|
"os-tmpdir": "^1.0.0"
|
||||||
@@ -2436,7 +2258,8 @@
|
|||||||
"path-is-absolute": {
|
"path-is-absolute": {
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
|
||||||
"integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18="
|
"integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=",
|
||||||
|
"optional": true
|
||||||
},
|
},
|
||||||
"path-is-inside": {
|
"path-is-inside": {
|
||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
@@ -2778,31 +2601,13 @@
|
|||||||
"path-parse": "^1.0.6"
|
"path-parse": "^1.0.6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"restore-cursor": {
|
|
||||||
"version": "2.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-2.0.0.tgz",
|
|
||||||
"integrity": "sha1-n37ih/gv0ybU/RYpI9YhKe7g368=",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"onetime": "^2.0.0",
|
|
||||||
"signal-exit": "^3.0.2"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"rimraf": {
|
"rimraf": {
|
||||||
"version": "2.6.3",
|
"version": "2.6.2",
|
||||||
"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz",
|
"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.2.tgz",
|
||||||
"integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==",
|
"integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==",
|
||||||
|
"optional": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"glob": "^7.1.3"
|
"glob": "^7.0.5"
|
||||||
}
|
|
||||||
},
|
|
||||||
"rxjs": {
|
|
||||||
"version": "6.5.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.5.1.tgz",
|
|
||||||
"integrity": "sha512-y0j31WJc83wPu31vS1VlAFW5JGrnGC+j+TtGAa1fRQphy48+fDYiDmX8tjGloToEsMkxnouOg/1IzXGKkJnZMg==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"tslib": "^1.9.0"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"safe-buffer": {
|
"safe-buffer": {
|
||||||
@@ -2914,17 +2719,6 @@
|
|||||||
"source-map": "^0.6.0"
|
"source-map": "^0.6.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spawn-rx": {
|
|
||||||
"version": "3.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/spawn-rx/-/spawn-rx-3.0.0.tgz",
|
|
||||||
"integrity": "sha512-dw4Ryg/KMNfkKa5ezAR5aZe9wNwPdKlnHEXtHOjVnyEDSPQyOpIPPRtcIiu7127SmtHhaCjw21yC43HliW0iIg==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"debug": "^2.5.1",
|
|
||||||
"lodash.assign": "^4.2.0",
|
|
||||||
"rxjs": "^6.3.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"spdx-correct": {
|
"spdx-correct": {
|
||||||
"version": "3.1.0",
|
"version": "3.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.0.tgz",
|
||||||
@@ -3078,32 +2872,14 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tar": {
|
"tar": {
|
||||||
"version": "4.4.8",
|
"version": "2.2.1",
|
||||||
"resolved": "https://registry.npmjs.org/tar/-/tar-4.4.8.tgz",
|
"resolved": "https://registry.npmjs.org/tar/-/tar-2.2.1.tgz",
|
||||||
"integrity": "sha512-LzHF64s5chPQQS0IYBn9IN5h3i98c12bo4NCO7e0sGM2llXQ3p2FGC5sdENN4cTW48O915Sh+x+EXx7XW96xYQ==",
|
"integrity": "sha1-jk0qJWwOIYXGsYrWlK7JaLg8sdE=",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"chownr": "^1.1.1",
|
"block-stream": "*",
|
||||||
"fs-minipass": "^1.2.5",
|
"fstream": "^1.0.2",
|
||||||
"minipass": "^2.3.4",
|
"inherits": "2"
|
||||||
"minizlib": "^1.1.1",
|
|
||||||
"mkdirp": "^0.5.0",
|
|
||||||
"safe-buffer": "^5.1.2",
|
|
||||||
"yallist": "^3.0.2"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"safe-buffer": {
|
|
||||||
"version": "5.1.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
|
|
||||||
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"yallist": {
|
|
||||||
"version": "3.0.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/yallist/-/yallist-3.0.3.tgz",
|
|
||||||
"integrity": "sha512-S+Zk8DEWE6oKpV+vI3qWkaK+jSbIK86pCwe2IF/xwIpQ8jEuxpw9NyaGjmp9+BoJv5FV2piqCDcoCtStppiq2A==",
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"temp-file": {
|
"temp-file": {
|
||||||
@@ -3217,12 +2993,6 @@
|
|||||||
"utf8-byte-length": "^1.0.1"
|
"utf8-byte-length": "^1.0.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tslib": {
|
|
||||||
"version": "1.9.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.9.3.tgz",
|
|
||||||
"integrity": "sha512-4krF8scpejhaOgqzBEcGM7yDIEfi0/8+8zDRZhNZZ2kjmHJ4hv3zCbQWxoJGz1iw5U0Jl0nma13xzHXcncMavQ==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"tunnel-agent": {
|
"tunnel-agent": {
|
||||||
"version": "0.6.0",
|
"version": "0.6.0",
|
||||||
"resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
|
"resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
|
||||||
@@ -3380,15 +3150,6 @@
|
|||||||
"resolved": "https://registry.npmjs.org/vue/-/vue-2.6.9.tgz",
|
"resolved": "https://registry.npmjs.org/vue/-/vue-2.6.9.tgz",
|
||||||
"integrity": "sha512-t1+tvH8hybPM86oNne3ZozCD02zj/VoZIiojOBPJLjwBn7hxYU5e1gBObFpq8ts1NEn1VhPf/hVXBDAJ3X5ljg=="
|
"integrity": "sha512-t1+tvH8hybPM86oNne3ZozCD02zj/VoZIiojOBPJLjwBn7hxYU5e1gBObFpq8ts1NEn1VhPf/hVXBDAJ3X5ljg=="
|
||||||
},
|
},
|
||||||
"wcwidth": {
|
|
||||||
"version": "1.0.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz",
|
|
||||||
"integrity": "sha1-8LDc+RW8X/FSivrbLA4XtTLaL+g=",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"defaults": "^1.0.3"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"which": {
|
"which": {
|
||||||
"version": "1.3.1",
|
"version": "1.3.1",
|
||||||
"resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz",
|
"resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz",
|
||||||
@@ -3407,6 +3168,7 @@
|
|||||||
"version": "1.1.3",
|
"version": "1.1.3",
|
||||||
"resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz",
|
"resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz",
|
||||||
"integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==",
|
"integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==",
|
||||||
|
"optional": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"string-width": "^1.0.2 || 2"
|
"string-width": "^1.0.2 || 2"
|
||||||
}
|
}
|
||||||
@@ -3455,7 +3217,7 @@
|
|||||||
},
|
},
|
||||||
"wrap-ansi": {
|
"wrap-ansi": {
|
||||||
"version": "2.1.0",
|
"version": "2.1.0",
|
||||||
"resolved": "http://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz",
|
||||||
"integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=",
|
"integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "thedesk",
|
"name": "thedesk",
|
||||||
"version": "18.4.0",
|
"version": "18.2.3",
|
||||||
"description": "TheDesk is a Mastodon client for PC.",
|
"description": "TheDesk is a Mastodon client for PC.",
|
||||||
"repository": "https://github.com/cutls/TheDesk",
|
"repository": "https://github.com/cutls/TheDesk",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
@@ -11,15 +11,15 @@
|
|||||||
"build:all": "electron-builder --win --linux",
|
"build:all": "electron-builder --win --linux",
|
||||||
"build:win": "electron-builder --win"
|
"build:win": "electron-builder --win"
|
||||||
},
|
},
|
||||||
"keywords": ["mastodon","client","electron","thedesk"],
|
"keywords": [],
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/cutls/TheDesk/issues",
|
"url": "https://github.com/cutls/TheDesk/issues",
|
||||||
"email": "web-pro@cutls.com"
|
"email": "mstdn@thedesk.top"
|
||||||
},
|
},
|
||||||
"homepage": "https://thedesk.top",
|
"homepage": "https://thedesk.top",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Cutls",
|
"name": "Cutls",
|
||||||
"url": "https://cutls.com/@Cutls",
|
"url": "https://kirishima.clooud/@Cutls",
|
||||||
"email": "web-pro@cutls.com"
|
"email": "web-pro@cutls.com"
|
||||||
},
|
},
|
||||||
"contributor": [
|
"contributor": [
|
||||||
@@ -35,7 +35,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "kPherox",
|
"name": "kPherox",
|
||||||
"url": "https://pawoo.net/@kPherox",
|
"url": "https://www.kr-kp.com/",
|
||||||
"email": "admin@mail.kr-kp.com"
|
"email": "admin@mail.kr-kp.com"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -49,7 +49,7 @@
|
|||||||
"vue": "^2.6.9"
|
"vue": "^2.6.9"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"nowplaying-node": "git+https://github.com/cutls/nowplaying-node",
|
"nowplaying-node": "^0.1.3",
|
||||||
"itunes-nowplaying-mac": "git+https://github.com/rinsuki/itunes-nowplaying-mac#pull/4/head",
|
"itunes-nowplaying-mac": "git+https://github.com/rinsuki/itunes-nowplaying-mac#pull/4/head",
|
||||||
"font-manager": "^0.3.0"
|
"font-manager": "^0.3.0"
|
||||||
},
|
},
|
||||||
@@ -88,23 +88,21 @@
|
|||||||
"linux": {
|
"linux": {
|
||||||
"icon": "build/icons",
|
"icon": "build/icons",
|
||||||
"target": [
|
"target": [
|
||||||
"zip"
|
"zip",
|
||||||
|
"snap"
|
||||||
],
|
],
|
||||||
"category": "Network"
|
"category": "Network"
|
||||||
},
|
},
|
||||||
"mac": {
|
"mac": {
|
||||||
"target": [
|
"target": ["dmg","zip"]
|
||||||
"dmg",
|
|
||||||
"zip"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"electronDownload": {
|
"electronDownload": {
|
||||||
"version": "4.2.0"
|
"version": "4.1.4"
|
||||||
},
|
},
|
||||||
"electronVersion": "4.2.0"
|
"electronVersion": "4.1.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"electron": "^4.2.0",
|
"electron": "^4.1.4",
|
||||||
"electron-builder": "^20.39.0"
|
"electron-builder": "^20.39.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -15,7 +15,7 @@
|
|||||||
<script type="text/javascript" src="../../js/platform/first.js"></script>
|
<script type="text/javascript" src="../../js/platform/first.js"></script>
|
||||||
<script type="text/javascript" src="../../js/common/materialize.js"></script>
|
<script type="text/javascript" src="../../js/common/materialize.js"></script>
|
||||||
<a href="setting.html" class="btn waves-effect orange nex" style="width:100%; max-width:200px;"><i class="material-icons left">undo</i>Back</a>
|
<a href="setting.html" class="btn waves-effect orange nex" style="width:100%; max-width:200px;"><i class="material-icons left">undo</i>Back</a>
|
||||||
LICENSE of TheDesk:<a href="https://github.com/cutls/TheDesk/blob/master/LICENSE">TheDesk LICENSE (Latest Ver.)</a><br>
|
LICENSE of TheDesk:<a href="https://github.com/cutls/TheDesk/blob/master/LICENSE.md">TheDesk LICENSE (Latest Ver.)</a><br>
|
||||||
<article style="width:500px; max-width:100%; margin:15px; font-family:Arial,Helvetica">
|
<article style="width:500px; max-width:100%; margin:15px; font-family:Arial,Helvetica">
|
||||||
<h5>TheDesk</h5>
|
<h5>TheDesk</h5>
|
||||||
<i class="fa fa-github"></i><a href="https://github.com/cutls/TheDesk" target="_blank">cutls/TheDesk</a><br>
|
<i class="fa fa-github"></i><a href="https://github.com/cutls/TheDesk" target="_blank">cutls/TheDesk</a><br>
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en" style="overflow:scroll">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<title>Settings - TheDesk</title>
|
<title>Settings - TheDesk</title>
|
||||||
@@ -22,6 +22,7 @@
|
|||||||
input {
|
input {
|
||||||
max-height: 50px !important
|
max-height: 50px !important
|
||||||
}
|
}
|
||||||
|
|
||||||
.pcr-result {
|
.pcr-result {
|
||||||
height: 1rem !important;
|
height: 1rem !important;
|
||||||
}
|
}
|
||||||
@@ -46,7 +47,7 @@
|
|||||||
<div class="collapsible-body">
|
<div class="collapsible-body">
|
||||||
<h5>Languages</h5>
|
<h5>Languages</h5>
|
||||||
To translate with Crowdin, you have to login Crowdin and restart TheDesk when login is finished.<br>
|
To translate with Crowdin, you have to login Crowdin and restart TheDesk when login is finished.<br>
|
||||||
<a onclick="changelang('ja')" class="pointer" style="margin-right:5px;">日本語</a><a onclick="changelang('en')" class="pointer" style="margin-right:5px;">English</a><a onclick="changelang('ps')" class="pointer" style="margin-right:5px;">Crowdin translate system(beta)</a>
|
<a href="../ja/setting.html" onclick="changelang('ja')">日本語(Japanese)</a>/<a href="../en/setting.html" onclick="changelang('en')">English</a>/<a href="../ps/setting.html" onclick="changelang('ps')">Crowdin web translate</a>/
|
||||||
<h5>Import and export of preferences</h5>
|
<h5>Import and export of preferences</h5>
|
||||||
<button onclick="exportSettings()" class="btn waves-effect lime darken-3"
|
<button onclick="exportSettings()" class="btn waves-effect lime darken-3"
|
||||||
style="width:100%; max-width:200px;">Export</button>
|
style="width:100%; max-width:200px;">Export</button>
|
||||||
@@ -55,8 +56,8 @@
|
|||||||
<div id="envView">
|
<div id="envView">
|
||||||
<template v-for="(item, i) in config">
|
<template v-for="(item, i) in config">
|
||||||
<h5>{{item.text.head}}</h5>
|
<h5>{{item.text.head}}</h5>
|
||||||
<template v-if="item.text.desc">
|
<template v-if=item.text.desc>
|
||||||
<templete v-html="item.text.desc"></templete><br>
|
<templete v-html=item.text.desc></templete><br>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="item.id=='notf'"><a onclick="notftest()"
|
<template v-if="item.id=='notf'"><a onclick="notftest()"
|
||||||
class="pointer">Notification test</a><br></template>
|
class="pointer">Notification test</a><br></template>
|
||||||
@@ -84,7 +85,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
<h5>Font</h5>
|
<h5>Font</h5>
|
||||||
Select your favorite font to 'Select'(Windows/ macOS only)<br>
|
Select your favorite font to 'Select'<br>
|
||||||
<button class="btn waves-effect" style="width:100px;" onclick="font()">Select</button><br>
|
<button class="btn waves-effect" style="width:100px;" onclick="font()">Select</button><br>
|
||||||
<div id="fonts" class="hide" style="overflow-y:scroll; width:300px; height:500px;"></div>
|
<div id="fonts" class="hide" style="overflow-y:scroll; width:300px; height:500px;"></div>
|
||||||
<br>
|
<br>
|
||||||
@@ -130,9 +131,9 @@
|
|||||||
<div class="input-field"><textarea style="width:300px" id="custom_desc" class="materialize-textarea"
|
<div class="input-field"><textarea style="width:300px" id="custom_desc" class="materialize-textarea"
|
||||||
placeholder="About this theme..."></textarea></div>
|
placeholder="About this theme..."></textarea></div>
|
||||||
<h5>Color scheme</h5>
|
<h5>Color scheme</h5>
|
||||||
<input class="with-gap" name="direction" type="radio" id="dark" value="dark" checked="true" />
|
<input class="with-gap" name="derection" type="radio" id="dark" value="dark" checked="true" />
|
||||||
<label for="dark">Dark</label>
|
<label for="dark">Dark</label>
|
||||||
<input class="with-gap" name="direction" type="radio" id="light" value="light" />
|
<input class="with-gap" name="derection" type="radio" id="light" value="light" />
|
||||||
<label for="light">Light</label>
|
<label for="light">Light</label>
|
||||||
<div id="pickers">
|
<div id="pickers">
|
||||||
<div>
|
<div>
|
||||||
@@ -157,11 +158,11 @@
|
|||||||
<input type="hidden" id="color-picker2_value">
|
<input type="hidden" id="color-picker2_value">
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<h5>Accent</h5>Background of boosts
|
<h5>Accent</h5>Background of boosts
|
||||||
<div id="color-picker3-wrap">
|
<div id="color-picker3-wrap">
|
||||||
<div class="color-picker" id="color-picker3"></div>
|
<div class="color-picker" id="color-picker3"></div>
|
||||||
</div>
|
</div>
|
||||||
<input type="hidden" id="color-picker3_value">
|
<input type="hidden" id="color-picker3_value">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button class="btn-large waves-effect" onclick="customComp()">Change</button> <button
|
<button class="btn-large waves-effect" onclick="customComp()">Change</button> <button
|
||||||
@@ -183,8 +184,8 @@
|
|||||||
<div id="tlView">
|
<div id="tlView">
|
||||||
<template v-for="(item, i) in config">
|
<template v-for="(item, i) in config">
|
||||||
<h5>{{item.text.head}}</h5>
|
<h5>{{item.text.head}}</h5>
|
||||||
<template v-if="item.text.desc">
|
<template v-if=item.text.desc>
|
||||||
<templete v-html="item.text.desc"></templete><br>
|
<templete v-html=item.text.desc></templete><br>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="item.checkbox">
|
<template v-if="item.checkbox">
|
||||||
<template v-for="(check, j) in item.text.checkbox">
|
<template v-for="(check, j) in item.text.checkbox">
|
||||||
@@ -209,11 +210,6 @@
|
|||||||
</template><br>
|
</template><br>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
<h5>Custom sound</h5>
|
|
||||||
<button class="btn waves-effect" style="width:120px;" onclick="customSound(1)">Custom 1</button><span id="c1-file"></span><br>
|
|
||||||
<button class="btn waves-effect" style="width:120px;" onclick="customSound(2)">Custom 2</button><span id="c2-file"></span><br>
|
|
||||||
<button class="btn waves-effect" style="width:120px;" onclick="customSound(3)">Custom 3</button><span id="c3-file"></span><br>
|
|
||||||
<button class="btn waves-effect" style="width:120px;" onclick="customSound(4)">Custom 4</button><span id="c4-file"></span><br>
|
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
@@ -224,8 +220,8 @@
|
|||||||
<div id="postView">
|
<div id="postView">
|
||||||
<template v-for="(item, i) in config">
|
<template v-for="(item, i) in config">
|
||||||
<h5>{{item.text.head}}</h5>
|
<h5>{{item.text.head}}</h5>
|
||||||
<template v-if="item.text.desc">
|
<template v-if=item.text.desc>
|
||||||
<templete v-html="item.text.desc"></templete><br>
|
<templete v-html=item.text.desc></templete><br>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="item.checkbox">
|
<template v-if="item.checkbox">
|
||||||
<template v-for="(check, j) in item.text.checkbox">
|
<template v-for="(check, j) in item.text.checkbox">
|
||||||
@@ -407,27 +403,29 @@
|
|||||||
class="material-icons left">info</i>About TheDesk</button>
|
class="material-icons left">info</i>About TheDesk</button>
|
||||||
<a href="https://thedesk.top" class="btn waves-effect deep-purple lighten-2" style="width:100%; max-width:500px;"><i
|
<a href="https://thedesk.top" class="btn waves-effect deep-purple lighten-2" style="width:100%; max-width:500px;"><i
|
||||||
class="material-icons left">web</i>Website</a>
|
class="material-icons left">web</i>Website</a>
|
||||||
|
<a href="https://enty.jp/Cutls" class="btn waves-effect purple lighten-2" style="width:100%; max-width:500px;"><i
|
||||||
|
class="material-icons left">trending_up</i>Support(Enty)</a>
|
||||||
<a href="https://www.pixiv.net/fanbox/creator/28105985" class="btn waves-effect red lighten-2"
|
<a href="https://www.pixiv.net/fanbox/creator/28105985" class="btn waves-effect red lighten-2"
|
||||||
style="width:100%; max-width:500px;"><i class="material-icons left">trending_up</i>Support(Pixiv FANBOX)</a>
|
style="width:100%; max-width:500px;"><i class="material-icons left">trending_up</i>Support(Pixiv FANBOX)</a>
|
||||||
<a href="https://docs.thedesk.top" class="btn waves-effect blue darken-2" style="width:100%; max-width:500px;"><i
|
<a href="https://docs.thedesk.top" class="btn waves-effect blue darken-2" style="width:100%; max-width:500px;"><i
|
||||||
class="material-icons left">list</i>Help/Docs(Constructing)</a>
|
class="material-icons left">list</i>Help/Docs(Constructing)</a>
|
||||||
<a href="https://github.com/cutls/TheDesk" class="btn waves-effect black lighten-2"
|
<a href="https://github.com/cutls/TheDesk" class="btn waves-effect black lighten-2"
|
||||||
style="width:100%; max-width:500px;"><i class="fa fa-github left"></i>GitHub</a>
|
style="width:100%; max-width:500px;"><i class="fa fa-github left"></i>GitHub</a>
|
||||||
<a href="index.html?mode=user&code=Cutls@cutls.com" class="btn waves-effect blue lighten-2"
|
<a href="index.html?mode=user&code=Cutls@kirishima.cloud" class="btn waves-effect blue lighten-2"
|
||||||
style="width:100%; max-width:500px;"><img src="../../img/desk_full.svg" class="left" width="25"
|
style="width:100%; max-width:500px;"><img src="../../img/desk_full.svg" class="left" width="25"
|
||||||
style="padding-top:5px;">Developer: Cutls@cutls.com</a>
|
style="padding-top:5px;">Developer: Cutls@kirishima.cloud</a>
|
||||||
<br>
|
<br>
|
||||||
Kyash<br>
|
Kyash<br>
|
||||||
<img src="../../img/kyash.png" width="100"><br>
|
<img src="../../img/kyash.png" width="100"><br>
|
||||||
<a onclick="localStorage.removeItem('new-ver-skip'); location.href='index.html';"
|
<a onclick="localStorage.removeItem('new-ver-skip'); location.href='index.html';"
|
||||||
class="pointer">Check update</a><br>
|
class="pointer">Check update</a><br>
|
||||||
<a href="oss.html">OSS License</a><br>
|
<a href="oss.html">OSS License</a><br>
|
||||||
<span style="font-family:Open Sans;">Copyright © TheDesk 2018
|
<span style="font-family:Open Sans;">Copyright © TheDesk 2018 All Rights Reserved.
|
||||||
Under <a href="https://github.com/cutls/TheDesk/blob/master/LICENSE">GNU General Public License v3.0</a> and <a
|
Under <a href="https://github.com/cutls/TheDesk/blob/master/LICENSE">GNU General Public License v3.0</a> and <a
|
||||||
href="https://thedesk.top/tos.html">Terms of Use</a>/<a href="https://thedesk.top/priv.html">Privacy
|
href="https://thedesk.top/tos.html">Terms of Use</a>/<a href="https://thedesk.top/priv.html">Privacy
|
||||||
Policy</a>
|
Policy</a>
|
||||||
<br>Developer: Cutls P(
|
<br>Developer: Cutls P(
|
||||||
<a href="index.html?mode=user&code=Cutls@cutls.com">@Cutls@cutls.com</a>)
|
<a href="index.html?mode=user&code=Cutls@kirishima.cloud">@Cutls@kirishima.cloud</a>)
|
||||||
<br>
|
<br>
|
||||||
</span><br>
|
</span><br>
|
||||||
TheDeskおよびCutls Pは<a href="https://donken.org/">被災地支援のためのマストドン研究会</a>をログイン機能提供等の形で応援しています。<br>
|
TheDeskおよびCutls Pは<a href="https://donken.org/">被災地支援のためのマストドン研究会</a>をログイン機能提供等の形で応援しています。<br>
|
||||||
|
@@ -7,27 +7,6 @@ var yesno=[
|
|||||||
value:"no"
|
value:"no"
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
var sound=[
|
|
||||||
{
|
|
||||||
text:"None",
|
|
||||||
value:"none"
|
|
||||||
},{
|
|
||||||
text:"Default",
|
|
||||||
value:"default"
|
|
||||||
},{
|
|
||||||
text:"Custom 1",
|
|
||||||
value:"c1"
|
|
||||||
},{
|
|
||||||
text:"Custom 2",
|
|
||||||
value:"c2"
|
|
||||||
},{
|
|
||||||
text:"Custom 3",
|
|
||||||
value:"c3"
|
|
||||||
},{
|
|
||||||
text:"Custom 4",
|
|
||||||
value:"c4"
|
|
||||||
}
|
|
||||||
];
|
|
||||||
var envConstruction=[
|
var envConstruction=[
|
||||||
{
|
{
|
||||||
id:"popup",
|
id:"popup",
|
||||||
@@ -307,46 +286,6 @@ var tlConstruction=[
|
|||||||
desc:"",
|
desc:"",
|
||||||
checkbox:yesno
|
checkbox:yesno
|
||||||
}
|
}
|
||||||
},{
|
|
||||||
id:"replySound",
|
|
||||||
storage:"replySound",
|
|
||||||
checkbox:true,
|
|
||||||
setValue:"none",
|
|
||||||
text:{
|
|
||||||
head:"Sound(Reply)",
|
|
||||||
desc:"",
|
|
||||||
checkbox:sound
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
id:"favSound",
|
|
||||||
storage:"favSound",
|
|
||||||
checkbox:true,
|
|
||||||
setValue:"none",
|
|
||||||
text:{
|
|
||||||
head:"Sound(Fav)",
|
|
||||||
desc:"",
|
|
||||||
checkbox:sound
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
id:"btSound",
|
|
||||||
storage:"btSound",
|
|
||||||
checkbox:true,
|
|
||||||
setValue:"none",
|
|
||||||
text:{
|
|
||||||
head:"Sound(Boost)",
|
|
||||||
desc:"",
|
|
||||||
checkbox:sound
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
id:"followSound",
|
|
||||||
storage:"followSound",
|
|
||||||
checkbox:true,
|
|
||||||
setValue:"none",
|
|
||||||
text:{
|
|
||||||
head:"Sound(Follow)",
|
|
||||||
desc:"",
|
|
||||||
checkbox:sound
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
var postConstruction=[
|
var postConstruction=[
|
||||||
|
@@ -197,24 +197,10 @@ function verck(){
|
|||||||
todo(error);
|
todo(error);
|
||||||
console.error(error);
|
console.error(error);
|
||||||
}).then(function(json) {
|
}).then(function(json) {
|
||||||
console.log(json);
|
console.log(json);
|
||||||
if(platform=="win32"){
|
$("#ver").text(json.desk);
|
||||||
$("#ver").text(json.desk);
|
localStorage.setItem("next-ver",json.desk);
|
||||||
localStorage.setItem("next-ver",json.desk);
|
$("#det").html(json.detail);
|
||||||
}else if(platform=="linux"){
|
|
||||||
$("#ver").text(json.desk_linux);
|
|
||||||
localStorage.setItem("next-ver",json.desk_linux);
|
|
||||||
}else if(platform=="darwin"){
|
|
||||||
$("#ver").text(json.desk_mac);
|
|
||||||
localStorage.setItem("next-ver",json.desk_mac);
|
|
||||||
}
|
|
||||||
var lang="en";
|
|
||||||
if(lang=="ja"){
|
|
||||||
$("#det").html(json.detail);
|
|
||||||
}else{
|
|
||||||
$("#det").html(json.detail_en);
|
|
||||||
}
|
|
||||||
|
|
||||||
$("#now").text(localStorage.getItem("ver"));
|
$("#now").text(localStorage.getItem("ver"));
|
||||||
|
|
||||||
});
|
});
|
||||||
|
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,5 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="ja" style="overflow:scroll">
|
<html lang="ja">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<title>Settings - TheDesk</title>
|
<title>Settings - TheDesk</title>
|
||||||
@@ -22,6 +22,7 @@
|
|||||||
input {
|
input {
|
||||||
max-height: 50px !important
|
max-height: 50px !important
|
||||||
}
|
}
|
||||||
|
|
||||||
.pcr-result {
|
.pcr-result {
|
||||||
height: 1rem !important;
|
height: 1rem !important;
|
||||||
}
|
}
|
||||||
@@ -46,7 +47,7 @@
|
|||||||
<div class="collapsible-body">
|
<div class="collapsible-body">
|
||||||
<h5>言語</h5>
|
<h5>言語</h5>
|
||||||
To translate with Crowdin, you have to login Crowdin and restart TheDesk when login is finished.<br>
|
To translate with Crowdin, you have to login Crowdin and restart TheDesk when login is finished.<br>
|
||||||
<a onclick="changelang('ja')" class="pointer" style="margin-right:5px;">日本語</a><a onclick="changelang('en')" class="pointer" style="margin-right:5px;">English</a><a onclick="changelang('ps')" class="pointer" style="margin-right:5px;">Crowdin translate system(beta)</a>
|
<a href="../ja/setting.html" onclick="changelang('ja')">日本語(Japanese)</a>/<a href="../en/setting.html" onclick="changelang('en')">English</a>/<a href="../ps/setting.html" onclick="changelang('ps')">Crowdin web translate</a>/
|
||||||
<h5>設定のインポートとエクスポート</h5>
|
<h5>設定のインポートとエクスポート</h5>
|
||||||
<button onclick="exportSettings()" class="btn waves-effect lime darken-3"
|
<button onclick="exportSettings()" class="btn waves-effect lime darken-3"
|
||||||
style="width:100%; max-width:200px;">エクスポート</button>
|
style="width:100%; max-width:200px;">エクスポート</button>
|
||||||
@@ -55,8 +56,8 @@
|
|||||||
<div id="envView">
|
<div id="envView">
|
||||||
<template v-for="(item, i) in config">
|
<template v-for="(item, i) in config">
|
||||||
<h5>{{item.text.head}}</h5>
|
<h5>{{item.text.head}}</h5>
|
||||||
<template v-if="item.text.desc">
|
<template v-if=item.text.desc>
|
||||||
<templete v-html="item.text.desc"></templete><br>
|
<templete v-html=item.text.desc></templete><br>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="item.id=='notf'"><a onclick="notftest()"
|
<template v-if="item.id=='notf'"><a onclick="notftest()"
|
||||||
class="pointer">通知テスト</a><br></template>
|
class="pointer">通知テスト</a><br></template>
|
||||||
@@ -84,7 +85,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
<h5>フォント</h5>
|
<h5>フォント</h5>
|
||||||
「選択」を押してフォントを選んでください。(Linuxでは動きません)<br>
|
「選択」を押してフォントを選んでください。<br>
|
||||||
<button class="btn waves-effect" style="width:100px;" onclick="font()">選択</button><br>
|
<button class="btn waves-effect" style="width:100px;" onclick="font()">選択</button><br>
|
||||||
<div id="fonts" class="hide" style="overflow-y:scroll; width:300px; height:500px;"></div>
|
<div id="fonts" class="hide" style="overflow-y:scroll; width:300px; height:500px;"></div>
|
||||||
<br>
|
<br>
|
||||||
@@ -130,9 +131,9 @@
|
|||||||
<div class="input-field"><textarea style="width:300px" id="custom_desc" class="materialize-textarea"
|
<div class="input-field"><textarea style="width:300px" id="custom_desc" class="materialize-textarea"
|
||||||
placeholder="説明..."></textarea></div>
|
placeholder="説明..."></textarea></div>
|
||||||
<h5>色の系統</h5>
|
<h5>色の系統</h5>
|
||||||
<input class="with-gap" name="direction" type="radio" id="dark" value="dark" checked="true" />
|
<input class="with-gap" name="derection" type="radio" id="dark" value="dark" checked="true" />
|
||||||
<label for="dark">Dark</label>
|
<label for="dark">Dark</label>
|
||||||
<input class="with-gap" name="direction" type="radio" id="light" value="light" />
|
<input class="with-gap" name="derection" type="radio" id="light" value="light" />
|
||||||
<label for="light">Light</label>
|
<label for="light">Light</label>
|
||||||
<div id="pickers">
|
<div id="pickers">
|
||||||
<div>
|
<div>
|
||||||
@@ -157,11 +158,11 @@
|
|||||||
<input type="hidden" id="color-picker2_value">
|
<input type="hidden" id="color-picker2_value">
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<h5>Accent</h5>ブーストの背景色など
|
<h5>Accent</h5>ブーストの背景色など
|
||||||
<div id="color-picker3-wrap">
|
<div id="color-picker3-wrap">
|
||||||
<div class="color-picker" id="color-picker3"></div>
|
<div class="color-picker" id="color-picker3"></div>
|
||||||
</div>
|
</div>
|
||||||
<input type="hidden" id="color-picker3_value">
|
<input type="hidden" id="color-picker3_value">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button class="btn-large waves-effect" onclick="customComp()">変更</button> <button
|
<button class="btn-large waves-effect" onclick="customComp()">変更</button> <button
|
||||||
@@ -183,8 +184,8 @@
|
|||||||
<div id="tlView">
|
<div id="tlView">
|
||||||
<template v-for="(item, i) in config">
|
<template v-for="(item, i) in config">
|
||||||
<h5>{{item.text.head}}</h5>
|
<h5>{{item.text.head}}</h5>
|
||||||
<template v-if="item.text.desc">
|
<template v-if=item.text.desc>
|
||||||
<templete v-html="item.text.desc"></templete><br>
|
<templete v-html=item.text.desc></templete><br>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="item.checkbox">
|
<template v-if="item.checkbox">
|
||||||
<template v-for="(check, j) in item.text.checkbox">
|
<template v-for="(check, j) in item.text.checkbox">
|
||||||
@@ -209,11 +210,6 @@
|
|||||||
</template><br>
|
</template><br>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
<h5>カスタム通知音</h5>
|
|
||||||
<button class="btn waves-effect" style="width:120px;" onclick="customSound(1)">Custom 1</button><span id="c1-file"></span><br>
|
|
||||||
<button class="btn waves-effect" style="width:120px;" onclick="customSound(2)">Custom 2</button><span id="c2-file"></span><br>
|
|
||||||
<button class="btn waves-effect" style="width:120px;" onclick="customSound(3)">Custom 3</button><span id="c3-file"></span><br>
|
|
||||||
<button class="btn waves-effect" style="width:120px;" onclick="customSound(4)">Custom 4</button><span id="c4-file"></span><br>
|
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
@@ -224,8 +220,8 @@
|
|||||||
<div id="postView">
|
<div id="postView">
|
||||||
<template v-for="(item, i) in config">
|
<template v-for="(item, i) in config">
|
||||||
<h5>{{item.text.head}}</h5>
|
<h5>{{item.text.head}}</h5>
|
||||||
<template v-if="item.text.desc">
|
<template v-if=item.text.desc>
|
||||||
<templete v-html="item.text.desc"></templete><br>
|
<templete v-html=item.text.desc></templete><br>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="item.checkbox">
|
<template v-if="item.checkbox">
|
||||||
<template v-for="(check, j) in item.text.checkbox">
|
<template v-for="(check, j) in item.text.checkbox">
|
||||||
@@ -407,27 +403,29 @@
|
|||||||
class="material-icons left">info</i>このソフトについて</button>
|
class="material-icons left">info</i>このソフトについて</button>
|
||||||
<a href="https://thedesk.top" class="btn waves-effect deep-purple lighten-2" style="width:100%; max-width:500px;"><i
|
<a href="https://thedesk.top" class="btn waves-effect deep-purple lighten-2" style="width:100%; max-width:500px;"><i
|
||||||
class="material-icons left">web</i>公式HP</a>
|
class="material-icons left">web</i>公式HP</a>
|
||||||
|
<a href="https://enty.jp/Cutls" class="btn waves-effect purple lighten-2" style="width:100%; max-width:500px;"><i
|
||||||
|
class="material-icons left">trending_up</i>支援(Enty)</a>
|
||||||
<a href="https://www.pixiv.net/fanbox/creator/28105985" class="btn waves-effect red lighten-2"
|
<a href="https://www.pixiv.net/fanbox/creator/28105985" class="btn waves-effect red lighten-2"
|
||||||
style="width:100%; max-width:500px;"><i class="material-icons left">trending_up</i>支援(Pixiv FANBOX)</a>
|
style="width:100%; max-width:500px;"><i class="material-icons left">trending_up</i>支援(Pixiv FANBOX)</a>
|
||||||
<a href="https://docs.thedesk.top" class="btn waves-effect blue darken-2" style="width:100%; max-width:500px;"><i
|
<a href="https://docs.thedesk.top" class="btn waves-effect blue darken-2" style="width:100%; max-width:500px;"><i
|
||||||
class="material-icons left">list</i>ヘルプ/Docs(Constructing)</a>
|
class="material-icons left">list</i>ヘルプ/Docs(Constructing)</a>
|
||||||
<a href="https://github.com/cutls/TheDesk" class="btn waves-effect black lighten-2"
|
<a href="https://github.com/cutls/TheDesk" class="btn waves-effect black lighten-2"
|
||||||
style="width:100%; max-width:500px;"><i class="fa fa-github left"></i>GitHub</a>
|
style="width:100%; max-width:500px;"><i class="fa fa-github left"></i>GitHub</a>
|
||||||
<a href="index.html?mode=user&code=Cutls@cutls.com" class="btn waves-effect blue lighten-2"
|
<a href="index.html?mode=user&code=Cutls@kirishima.cloud" class="btn waves-effect blue lighten-2"
|
||||||
style="width:100%; max-width:500px;"><img src="../../img/desk_full.svg" class="left" width="25"
|
style="width:100%; max-width:500px;"><img src="../../img/desk_full.svg" class="left" width="25"
|
||||||
style="padding-top:5px;">Developer: Cutls@cutls.com</a>
|
style="padding-top:5px;">Developer: Cutls@kirishima.cloud</a>
|
||||||
<br>
|
<br>
|
||||||
Kyash<br>
|
Kyash<br>
|
||||||
<img src="../../img/kyash.png" width="100"><br>
|
<img src="../../img/kyash.png" width="100"><br>
|
||||||
<a onclick="localStorage.removeItem('new-ver-skip'); location.href='index.html';"
|
<a onclick="localStorage.removeItem('new-ver-skip'); location.href='index.html';"
|
||||||
class="pointer">アップデートを確認</a><br>
|
class="pointer">アップデートを確認</a><br>
|
||||||
<a href="oss.html">OSS License(オープンソースライセンス)</a><br>
|
<a href="oss.html">OSS License(オープンソースライセンス)</a><br>
|
||||||
<span style="font-family:Open Sans;">Copyright © TheDesk 2018
|
<span style="font-family:Open Sans;">Copyright © TheDesk 2018 All Rights Reserved.
|
||||||
Under <a href="https://github.com/cutls/TheDesk/blob/master/LICENSE">GNU General Public License v3.0</a> and <a
|
Under <a href="https://github.com/cutls/TheDesk/blob/master/LICENSE">GNU General Public License v3.0</a> and <a
|
||||||
href="https://thedesk.top/tos.html">Terms of Use</a>/<a href="https://thedesk.top/priv.html">Privacy
|
href="https://thedesk.top/tos.html">Terms of Use</a>/<a href="https://thedesk.top/priv.html">Privacy
|
||||||
Policy</a>
|
Policy</a>
|
||||||
<br>Developer: Cutls P(
|
<br>Developer: Cutls P(
|
||||||
<a href="index.html?mode=user&code=Cutls@cutls.com">@Cutls@cutls.com</a>)
|
<a href="index.html?mode=user&code=Cutls@kirishima.cloud">@Cutls@kirishima.cloud</a>)
|
||||||
<br>
|
<br>
|
||||||
</span><br>
|
</span><br>
|
||||||
TheDeskおよびCutls Pは<a href="https://donken.org/">被災地支援のためのマストドン研究会</a>をログイン機能提供等の形で応援しています。<br>
|
TheDeskおよびCutls Pは<a href="https://donken.org/">被災地支援のためのマストドン研究会</a>をログイン機能提供等の形で応援しています。<br>
|
||||||
|
@@ -7,27 +7,6 @@ var yesno=[
|
|||||||
value:"no"
|
value:"no"
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
var sound=[
|
|
||||||
{
|
|
||||||
text:"なし",
|
|
||||||
value:"none"
|
|
||||||
},{
|
|
||||||
text:"既定",
|
|
||||||
value:"default"
|
|
||||||
},{
|
|
||||||
text:"Custom 1",
|
|
||||||
value:"c1"
|
|
||||||
},{
|
|
||||||
text:"Custom 2",
|
|
||||||
value:"c2"
|
|
||||||
},{
|
|
||||||
text:"Custom 3",
|
|
||||||
value:"c3"
|
|
||||||
},{
|
|
||||||
text:"Custom 4",
|
|
||||||
value:"c4"
|
|
||||||
}
|
|
||||||
];
|
|
||||||
var envConstruction=[
|
var envConstruction=[
|
||||||
{
|
{
|
||||||
id:"popup",
|
id:"popup",
|
||||||
@@ -307,46 +286,6 @@ var tlConstruction=[
|
|||||||
desc:"",
|
desc:"",
|
||||||
checkbox:yesno
|
checkbox:yesno
|
||||||
}
|
}
|
||||||
},{
|
|
||||||
id:"replySound",
|
|
||||||
storage:"replySound",
|
|
||||||
checkbox:true,
|
|
||||||
setValue:"none",
|
|
||||||
text:{
|
|
||||||
head:"リプライの通知音",
|
|
||||||
desc:"",
|
|
||||||
checkbox:sound
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
id:"favSound",
|
|
||||||
storage:"favSound",
|
|
||||||
checkbox:true,
|
|
||||||
setValue:"none",
|
|
||||||
text:{
|
|
||||||
head:"お気に入り登録の通知音",
|
|
||||||
desc:"",
|
|
||||||
checkbox:sound
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
id:"btSound",
|
|
||||||
storage:"btSound",
|
|
||||||
checkbox:true,
|
|
||||||
setValue:"none",
|
|
||||||
text:{
|
|
||||||
head:"ブーストの通知音",
|
|
||||||
desc:"",
|
|
||||||
checkbox:sound
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
id:"followSound",
|
|
||||||
storage:"followSound",
|
|
||||||
checkbox:true,
|
|
||||||
setValue:"none",
|
|
||||||
text:{
|
|
||||||
head:"フォローの通知音",
|
|
||||||
desc:"",
|
|
||||||
checkbox:sound
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
var postConstruction=[
|
var postConstruction=[
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="ja">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<title>Update - TheDesk</title>
|
<title>Update - TheDesk</title>
|
||||||
<link href="../../css/materialize.css" type="text/css" rel="stylesheet">
|
<link href="../../css/materialize.css" type="text/css" rel="stylesheet">
|
||||||
@@ -197,24 +197,10 @@ function verck(){
|
|||||||
todo(error);
|
todo(error);
|
||||||
console.error(error);
|
console.error(error);
|
||||||
}).then(function(json) {
|
}).then(function(json) {
|
||||||
console.log(json);
|
console.log(json);
|
||||||
if(platform=="win32"){
|
$("#ver").text(json.desk);
|
||||||
$("#ver").text(json.desk);
|
localStorage.setItem("next-ver",json.desk);
|
||||||
localStorage.setItem("next-ver",json.desk);
|
$("#det").html(json.detail);
|
||||||
}else if(platform=="linux"){
|
|
||||||
$("#ver").text(json.desk_linux);
|
|
||||||
localStorage.setItem("next-ver",json.desk_linux);
|
|
||||||
}else if(platform=="darwin"){
|
|
||||||
$("#ver").text(json.desk_mac);
|
|
||||||
localStorage.setItem("next-ver",json.desk_mac);
|
|
||||||
}
|
|
||||||
var lang="ja";
|
|
||||||
if(lang=="ja"){
|
|
||||||
$("#det").html(json.detail);
|
|
||||||
}else{
|
|
||||||
$("#det").html(json.detail_en);
|
|
||||||
}
|
|
||||||
|
|
||||||
$("#now").text(localStorage.getItem("ver"));
|
$("#now").text(localStorage.getItem("ver"));
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="@@lang@@">
|
<html lang="{{lang}}">
|
||||||
<head>
|
<head>
|
||||||
<title>Account Manager - TheDesk</title>
|
<title>Account Manager - TheDesk</title>
|
||||||
<meta content="width=device-width,initial-scale=1.0" name="viewport">
|
<meta content="width=device-width,initial-scale=1.0" name="viewport">
|
||||||
@@ -28,19 +28,19 @@ body,html{overflow-y: scroll;}
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
@@comment-start@@
|
{{comment-start}}
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var _jipt = [];
|
var _jipt = [];
|
||||||
_jipt.push(['project', 'thedesk']);
|
_jipt.push(['project', 'thedesk']);
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="https://cdn.crowdin.com/jipt/jipt.js"></script>
|
<script type="text/javascript" src="https://cdn.crowdin.com/jipt/jipt.js"></script>
|
||||||
@@comment-end@@
|
{{comment-end}}
|
||||||
</head>
|
</head>
|
||||||
<body id="mainView">
|
<body id="mainView">
|
||||||
<script type="text/javascript" src="../../js/common/jquery.js"></script>
|
<script type="text/javascript" src="../../js/common/jquery.js"></script>
|
||||||
<script type="text/javascript" src="../../js/platform/first.js"></script>
|
<script type="text/javascript" src="../../js/platform/first.js"></script>
|
||||||
<script type="text/javascript" src="../../js/common/materialize.js"></script>
|
<script type="text/javascript" src="../../js/common/materialize.js"></script>
|
||||||
<script type="text/javascript" src="../../js/lang/lang.@@lang@@.js"></script>
|
<script type="text/javascript" src="../../js/lang/lang.{{lang}}.js"></script>
|
||||||
<script>
|
<script>
|
||||||
var misskeytoken=false;
|
var misskeytoken=false;
|
||||||
</script>
|
</script>
|
||||||
@@ -48,23 +48,23 @@ body,html{overflow-y: scroll;}
|
|||||||
<script type="text/javascript" src="../../js/common/time.js"></script>
|
<script type="text/javascript" src="../../js/common/time.js"></script>
|
||||||
<script type="text/javascript" src="../../js/common/modal.js"></script>
|
<script type="text/javascript" src="../../js/common/modal.js"></script>
|
||||||
<div class="hide-first">
|
<div class="hide-first">
|
||||||
<a href="index.html" class="btn waves-effect orange nex" style="width:100%; max-width:200px;">@@back@@</a><br>
|
<a href="index.html" class="btn waves-effect orange nex" style="width:100%; max-width:200px;">{{back}}</a><br>
|
||||||
<h5>@@list@@</h5>
|
<h5>{{list}}</h5>
|
||||||
<div id="acct-list"></div>
|
<div id="acct-list"></div>
|
||||||
<div class="divider"></div>
|
<div class="divider"></div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<h5>@@add@@</h5><br>
|
<h5>{{add}}</h5><br>
|
||||||
<div id="add">
|
<div id="add">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col s8">
|
<div class="col s8">
|
||||||
<input type="text" id="url" style="width:70%" placeholder="ex)mstdn.jp">
|
<input type="text" id="url" style="width:70%" placeholder="ex)mstdn.jp">
|
||||||
<div id="ins-suggest"></div>
|
<div id="ins-suggest"></div>
|
||||||
@@codesetupwarn@@<br>
|
{{codesetupwarn}}<br>
|
||||||
<input type="checkbox" class="filled-in" id="linux" />
|
<input type="checkbox" class="filled-in" id="linux" />
|
||||||
<label for="linux">@@codesetup@@</label><br>
|
<label for="linux">{{codesetup}}</label><br>
|
||||||
<input type="checkbox" class="filled-in" id="misskey" />
|
<input type="checkbox" class="filled-in" id="misskey" />
|
||||||
<label for="misskey">@@thisismisskey@@</label><br>
|
<label for="misskey">{{thisismisskey}}</label><br>
|
||||||
<button class="btn waves-effect" onclick="instance()">Login</button><br>
|
<button class="btn waves-effect" onclick="instance()">Login</button><br>
|
||||||
</div>
|
</div>
|
||||||
<div class="col s4">
|
<div class="col s4">
|
||||||
@@ -73,21 +73,21 @@ body,html{overflow-y: scroll;}
|
|||||||
</div>
|
</div>
|
||||||
</div></div>
|
</div></div>
|
||||||
<div id="auth" style="display:none">
|
<div id="auth" style="display:none">
|
||||||
@@codepastewarn@@<br>
|
{{codepastewarn}}<br>
|
||||||
<input type="text" id="code" placeholder="@@codepaste@@">
|
<input type="text" id="code" placeholder="{{codepaste}}">
|
||||||
<button class="btn waves-effect" onclick="code()">Auth</button><br>
|
<button class="btn waves-effect" onclick="code()">Auth</button><br>
|
||||||
</div>
|
</div>
|
||||||
<div id="misskeylogin" style="display:none">
|
<div id="misskeylogin" style="display:none">
|
||||||
<h5>AppSecret</h5>
|
<h5>AppSecret</h5>
|
||||||
@@misskeylogin@@<br>
|
{{misskeylogin}}<br>
|
||||||
<input type="hidden" id="misskey-url">
|
<input type="hidden" id="misskey-url">
|
||||||
<input type="text" id="misskey-key" placeholder="@@codepaste@@">
|
<input type="text" id="misskey-key" placeholder="{{codepaste}}">
|
||||||
<button class="btn waves-effect" onclick="misskeyLogin()">Auth</button><br>
|
<button class="btn waves-effect" onclick="misskeyLogin()">Auth</button><br>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="hide-first">
|
<div class="hide-first">
|
||||||
<h5>@@mainacct@@</h5>
|
<h5>{{mainacct}}</h5>
|
||||||
<div class="input-field" style="width:300px"><span data-trans="your_acct">@@selacct@@</span>
|
<div class="input-field" style="width:300px"><span data-trans="your_acct">{{selacct}}</span>
|
||||||
<br>
|
<br>
|
||||||
<select id="main-acct-sel" class="acct-sel" style="color:black" onchange="mainacct()"></select>
|
<select id="main-acct-sel" class="acct-sel" style="color:black" onchange="mainacct()"></select>
|
||||||
<label></label>
|
<label></label>
|
||||||
@@ -98,12 +98,12 @@ Administered by:<a id="ins-admin"></a><br>
|
|||||||
<span id="ins-desc"></span><br>
|
<span id="ins-desc"></span><br>
|
||||||
<img src="../../img/loading.svg" id="ins-prof" width="200"><br>
|
<img src="../../img/loading.svg" id="ins-prof" width="200"><br>
|
||||||
<br>
|
<br>
|
||||||
@@domain@@:<span id="ins-name"></span><br>
|
{{domain}}:<span id="ins-name"></span><br>
|
||||||
@@connect@@:<span id="ins-connect"></span>@@ko@@<br>
|
{{connect}}:<span id="ins-connect"></span>{{ko}}<br>
|
||||||
@@toots@@:<span id="ins-toot"></span>@@ko@@<br>
|
{{toots}}:<span id="ins-toot"></span>{{ko}}<br>
|
||||||
@@users@@:<span id="ins-user"></span>@@users@@<br>
|
{{users}}:<span id="ins-user"></span>{{users}}<br>
|
||||||
@@safety@@:<span id="ins-per"></span>%<br>
|
{{safety}}:<span id="ins-per"></span>%<br>
|
||||||
@@ver@@:<span id="ins-ver"></span>@<span id="ins-upd"></span><br>
|
{{ver}}:<span id="ins-ver"></span>@<span id="ins-upd"></span><br>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript" src="../../js/ui/theme.js"></script>
|
<script type="text/javascript" src="../../js/ui/theme.js"></script>
|
||||||
<script type="text/javascript" src="../../js/platform/end.js"></script>
|
<script type="text/javascript" src="../../js/platform/end.js"></script>
|
||||||
|
File diff suppressed because it is too large
Load Diff
@@ -56,9 +56,6 @@
|
|||||||
"contextAfter":"Context after this toot",
|
"contextAfter":"Context after this toot",
|
||||||
"beforeLTL":"Local TL before this toot",
|
"beforeLTL":"Local TL before this toot",
|
||||||
"beforeUTL":"User TL before this toot",
|
"beforeUTL":"User TL before this toot",
|
||||||
"afterLTL":"Local TL after this toot)",
|
|
||||||
"afterUTL":"User TL before this toot",
|
|
||||||
"afterFTL":"Federated TL after this toot",
|
|
||||||
"favedPeople":"People who favourited it",
|
"favedPeople":"People who favourited it",
|
||||||
"btedPeople":"People who boosted it",
|
"btedPeople":"People who boosted it",
|
||||||
"useOtherAcct1":"Use other account",
|
"useOtherAcct1":"Use other account",
|
||||||
@@ -161,6 +158,5 @@
|
|||||||
"ramTips":"RAM status",
|
"ramTips":"RAM status",
|
||||||
"changeTips":"Change Tips",
|
"changeTips":"Change Tips",
|
||||||
"help":"Help",
|
"help":"Help",
|
||||||
"about":"About TheDesk",
|
"about":"About TheDesk"
|
||||||
"hereAddColumns":"<- Add TL"
|
|
||||||
}
|
}
|
@@ -56,9 +56,6 @@
|
|||||||
"contextAfter":"これより後の会話",
|
"contextAfter":"これより後の会話",
|
||||||
"beforeLTL":"これより前のLocal TL(エアリプソース確認)",
|
"beforeLTL":"これより前のLocal TL(エアリプソース確認)",
|
||||||
"beforeUTL":"これより前のユーザーTL(BTソース確認)",
|
"beforeUTL":"これより前のユーザーTL(BTソース確認)",
|
||||||
"afterLTL":"これより後のLocal TL(言及確認)",
|
|
||||||
"afterUTL":"これより後のユーザーTL(言及確認)",
|
|
||||||
"afterFTL":"これより後の連合TL(言及確認)",
|
|
||||||
"favedPeople":"このトゥートをお気に入りに登録した人",
|
"favedPeople":"このトゥートをお気に入りに登録した人",
|
||||||
"btedPeople":"このトゥートをブーストした人",
|
"btedPeople":"このトゥートをブーストした人",
|
||||||
"useOtherAcct1":"他のアカウントを使用",
|
"useOtherAcct1":"他のアカウントを使用",
|
||||||
@@ -161,6 +158,5 @@
|
|||||||
"ramTips":"システムメモリ容量",
|
"ramTips":"システムメモリ容量",
|
||||||
"changeTips":"Tips変更",
|
"changeTips":"Tips変更",
|
||||||
"help":"ヘルプ",
|
"help":"ヘルプ",
|
||||||
"about":"このソフトについて",
|
"about":"このソフトについて"
|
||||||
"hereAddColumns":"←ここからTL追加"
|
|
||||||
}
|
}
|
@@ -3,8 +3,6 @@
|
|||||||
"set":"Save",
|
"set":"Save",
|
||||||
"yes":"Yes",
|
"yes":"Yes",
|
||||||
"no":"No",
|
"no":"No",
|
||||||
"none":"None",
|
|
||||||
"default":"Default",
|
|
||||||
"change":"Change",
|
"change":"Change",
|
||||||
"select":"Select",
|
"select":"Select",
|
||||||
"env":"System Preferences",
|
"env":"System Preferences",
|
||||||
@@ -27,7 +25,7 @@
|
|||||||
"fixwidthwarn":"",
|
"fixwidthwarn":"",
|
||||||
"above":"above",
|
"above":"above",
|
||||||
"font":"Font",
|
"font":"Font",
|
||||||
"fontwarn":"Select your favorite font to 'Select'(Windows/ macOS only)",
|
"fontwarn":"Select your favorite font to 'Select'",
|
||||||
"fontsize":"Font size",
|
"fontsize":"Font size",
|
||||||
"savefolder":"Folder to save",
|
"savefolder":"Folder to save",
|
||||||
"savefolderwarn":"TheDesk uses this value when it try to save pictures or take screenshots.",
|
"savefolderwarn":"TheDesk uses this value when it try to save pictures or take screenshots.",
|
||||||
@@ -87,11 +85,6 @@
|
|||||||
"ticker":"Enable #InstanceTicker",
|
"ticker":"Enable #InstanceTicker",
|
||||||
"tickerwarn":"Show colorful stickers about the server. <a href=\"https://cdn.weep.me/mastodon/\">About #InstanceTicker</a> Copyright 2018 weepjp, kyori19.",
|
"tickerwarn":"Show colorful stickers about the server. <a href=\"https://cdn.weep.me/mastodon/\">About #InstanceTicker</a> Copyright 2018 weepjp, kyori19.",
|
||||||
"animation":"Animation of timelines",
|
"animation":"Animation of timelines",
|
||||||
"replySound":"Sound(Reply)",
|
|
||||||
"favSound":"Sound(Fav)",
|
|
||||||
"btSound":"Sound(Boost)",
|
|
||||||
"followSound":"Sound(Follow)",
|
|
||||||
"customSound":"Custom sound",
|
|
||||||
"post":"Posting Preferences",
|
"post":"Posting Preferences",
|
||||||
"autocw":"Alert before posting a long toot.",
|
"autocw":"Alert before posting a long toot.",
|
||||||
"autocwwarn":"Show dialog whether you make too-long text hidden.",
|
"autocwwarn":"Show dialog whether you make too-long text hidden.",
|
||||||
|
@@ -3,8 +3,6 @@
|
|||||||
"set":"設定",
|
"set":"設定",
|
||||||
"yes":"はい",
|
"yes":"はい",
|
||||||
"no":"いいえ",
|
"no":"いいえ",
|
||||||
"none":"なし",
|
|
||||||
"default":"既定",
|
|
||||||
"change":"変更",
|
"change":"変更",
|
||||||
"select":"選択",
|
"select":"選択",
|
||||||
"env":"環境設定",
|
"env":"環境設定",
|
||||||
@@ -27,7 +25,7 @@
|
|||||||
"fixwidthwarn":"",
|
"fixwidthwarn":"",
|
||||||
"above":"以上",
|
"above":"以上",
|
||||||
"font":"フォント",
|
"font":"フォント",
|
||||||
"fontwarn":"「選択」を押してフォントを選んでください。(Linuxでは動きません)",
|
"fontwarn":"「選択」を押してフォントを選んでください。",
|
||||||
"fontsize":"フォントサイズ",
|
"fontsize":"フォントサイズ",
|
||||||
"savefolder":"デフォルトの保存先",
|
"savefolder":"デフォルトの保存先",
|
||||||
"savefolderwarn":"画像ダウンロードやスクリーンショットに影響します。",
|
"savefolderwarn":"画像ダウンロードやスクリーンショットに影響します。",
|
||||||
@@ -87,11 +85,6 @@
|
|||||||
"ticker":"#InstanceTickerを使う",
|
"ticker":"#InstanceTickerを使う",
|
||||||
"tickerwarn":"トゥートした人の所属サーバーをわかりやすく彩ります(自サーバー以外のトゥート向け)。<a href=\"https://cdn.weep.me/mastodon/\">#InstanceTickerについて</a> Copyright 2018 weepjp, kyori19.",
|
"tickerwarn":"トゥートした人の所属サーバーをわかりやすく彩ります(自サーバー以外のトゥート向け)。<a href=\"https://cdn.weep.me/mastodon/\">#InstanceTickerについて</a> Copyright 2018 weepjp, kyori19.",
|
||||||
"animation":"タイムラインのアニメーション",
|
"animation":"タイムラインのアニメーション",
|
||||||
"replySound":"リプライの通知音",
|
|
||||||
"favSound":"お気に入り登録の通知音",
|
|
||||||
"btSound":"ブーストの通知音",
|
|
||||||
"followSound":"フォローの通知音",
|
|
||||||
"customSound":"カスタム通知音",
|
|
||||||
"post":"投稿設定",
|
"post":"投稿設定",
|
||||||
"autocw":"長文投稿時に警告",
|
"autocw":"長文投稿時に警告",
|
||||||
"autocwwarn":"下で指定した以上のトゥートを投稿するときにCWするかのダイアログを表示します。",
|
"autocwwarn":"下で指定した以上のトゥートを投稿するときにCWするかのダイアログを表示します。",
|
||||||
|
@@ -1,37 +0,0 @@
|
|||||||
const fs = require("fs")
|
|
||||||
const ver="Usamin (18.4.0)"
|
|
||||||
const langs=["ja","en","ps"]
|
|
||||||
const langsh=["日本語","English","Crowdin translate system(beta)"]
|
|
||||||
const simples=["acct","index","setting","update","setting"]
|
|
||||||
const samples=["acct.sample.html","index.sample.html","setting.sample.html","update.sample.html","setting.sample.js"]
|
|
||||||
const pages=["acct.html","index.html","setting.html","update.html","setting.vue.js"]
|
|
||||||
let langstr=""
|
|
||||||
for(let n=0; n<langs.length; n++){
|
|
||||||
let lang=langs[n]
|
|
||||||
langstr=langstr+'<a onclick="changelang(\''+lang+'\')" class="pointer" style="margin-right:5px;">'+langsh[n]+'</a>'
|
|
||||||
}
|
|
||||||
for(let i=0; i<samples.length; i++){
|
|
||||||
let sample=samples[i]
|
|
||||||
let sourceParent = fs.readFileSync(sample, 'utf8')
|
|
||||||
for(let j=0; j<langs.length; j++){
|
|
||||||
let source=sourceParent
|
|
||||||
let lang=langs[j]
|
|
||||||
let target = JSON.parse(fs.readFileSync("language/"+simples[i]+"."+lang+".json", 'utf8'))
|
|
||||||
Object.keys(target).forEach(function(key) {
|
|
||||||
let str = target[key]
|
|
||||||
var regExp = new RegExp("@@" + key + "@@", "g")
|
|
||||||
source = source.replace(regExp, str)
|
|
||||||
})
|
|
||||||
if(lang=="ps"){
|
|
||||||
source = source.replace(/@@comment-start@@/g, "")
|
|
||||||
source = source.replace(/@@comment-end@@/g, "")
|
|
||||||
}else{
|
|
||||||
source = source.replace(/@@comment-start@@/g, "<!--")
|
|
||||||
source = source.replace(/@@comment-end@@/g, "-->")
|
|
||||||
}
|
|
||||||
source = source.replace(/@@versionLetter@@/g, ver)
|
|
||||||
source = source.replace(/@@lang@@/g, lang)
|
|
||||||
source = source.replace(/@@langlist@@/g, langstr)
|
|
||||||
fs.writeFileSync("../"+lang+"/"+pages[i], source)
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,5 +1,5 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="@@lang@@" style="overflow:scroll">
|
<html lang="@@lang@@">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<title>Settings - TheDesk</title>
|
<title>Settings - TheDesk</title>
|
||||||
@@ -22,6 +22,7 @@
|
|||||||
input {
|
input {
|
||||||
max-height: 50px !important
|
max-height: 50px !important
|
||||||
}
|
}
|
||||||
|
|
||||||
.pcr-result {
|
.pcr-result {
|
||||||
height: 1rem !important;
|
height: 1rem !important;
|
||||||
}
|
}
|
||||||
@@ -55,8 +56,8 @@
|
|||||||
<div id="envView">
|
<div id="envView">
|
||||||
<template v-for="(item, i) in config">
|
<template v-for="(item, i) in config">
|
||||||
<h5>{{item.text.head}}</h5>
|
<h5>{{item.text.head}}</h5>
|
||||||
<template v-if="item.text.desc">
|
<template v-if=item.text.desc>
|
||||||
<templete v-html="item.text.desc"></templete><br>
|
<templete v-html=item.text.desc></templete><br>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="item.id=='notf'"><a onclick="notftest()"
|
<template v-if="item.id=='notf'"><a onclick="notftest()"
|
||||||
class="pointer">@@nntest@@</a><br></template>
|
class="pointer">@@nntest@@</a><br></template>
|
||||||
@@ -130,9 +131,9 @@
|
|||||||
<div class="input-field"><textarea style="width:300px" id="custom_desc" class="materialize-textarea"
|
<div class="input-field"><textarea style="width:300px" id="custom_desc" class="materialize-textarea"
|
||||||
placeholder="@@desc@@..."></textarea></div>
|
placeholder="@@desc@@..."></textarea></div>
|
||||||
<h5>@@customthemeDirection@@</h5>
|
<h5>@@customthemeDirection@@</h5>
|
||||||
<input class="with-gap" name="direction" type="radio" id="dark" value="dark" checked="true" />
|
<input class="with-gap" name="derection" type="radio" id="dark" value="dark" checked="true" />
|
||||||
<label for="dark">Dark</label>
|
<label for="dark">Dark</label>
|
||||||
<input class="with-gap" name="direction" type="radio" id="light" value="light" />
|
<input class="with-gap" name="derection" type="radio" id="light" value="light" />
|
||||||
<label for="light">Light</label>
|
<label for="light">Light</label>
|
||||||
<div id="pickers">
|
<div id="pickers">
|
||||||
<div>
|
<div>
|
||||||
@@ -157,11 +158,11 @@
|
|||||||
<input type="hidden" id="color-picker2_value">
|
<input type="hidden" id="color-picker2_value">
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<h5>Accent</h5>@@accent@@
|
<h5>Accent</h5>@@accent@@
|
||||||
<div id="color-picker3-wrap">
|
<div id="color-picker3-wrap">
|
||||||
<div class="color-picker" id="color-picker3"></div>
|
<div class="color-picker" id="color-picker3"></div>
|
||||||
</div>
|
</div>
|
||||||
<input type="hidden" id="color-picker3_value">
|
<input type="hidden" id="color-picker3_value">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button class="btn-large waves-effect" onclick="customComp()">@@change@@</button> <button
|
<button class="btn-large waves-effect" onclick="customComp()">@@change@@</button> <button
|
||||||
@@ -183,8 +184,8 @@
|
|||||||
<div id="tlView">
|
<div id="tlView">
|
||||||
<template v-for="(item, i) in config">
|
<template v-for="(item, i) in config">
|
||||||
<h5>{{item.text.head}}</h5>
|
<h5>{{item.text.head}}</h5>
|
||||||
<template v-if="item.text.desc">
|
<template v-if=item.text.desc>
|
||||||
<templete v-html="item.text.desc"></templete><br>
|
<templete v-html=item.text.desc></templete><br>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="item.checkbox">
|
<template v-if="item.checkbox">
|
||||||
<template v-for="(check, j) in item.text.checkbox">
|
<template v-for="(check, j) in item.text.checkbox">
|
||||||
@@ -209,11 +210,6 @@
|
|||||||
</template><br>
|
</template><br>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
<h5>@@customSound@@</h5>
|
|
||||||
<button class="btn waves-effect" style="width:120px;" onclick="customSound(1)">Custom 1</button><span id="c1-file"></span><br>
|
|
||||||
<button class="btn waves-effect" style="width:120px;" onclick="customSound(2)">Custom 2</button><span id="c2-file"></span><br>
|
|
||||||
<button class="btn waves-effect" style="width:120px;" onclick="customSound(3)">Custom 3</button><span id="c3-file"></span><br>
|
|
||||||
<button class="btn waves-effect" style="width:120px;" onclick="customSound(4)">Custom 4</button><span id="c4-file"></span><br>
|
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
@@ -224,8 +220,8 @@
|
|||||||
<div id="postView">
|
<div id="postView">
|
||||||
<template v-for="(item, i) in config">
|
<template v-for="(item, i) in config">
|
||||||
<h5>{{item.text.head}}</h5>
|
<h5>{{item.text.head}}</h5>
|
||||||
<template v-if="item.text.desc">
|
<template v-if=item.text.desc>
|
||||||
<templete v-html="item.text.desc"></templete><br>
|
<templete v-html=item.text.desc></templete><br>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="item.checkbox">
|
<template v-if="item.checkbox">
|
||||||
<template v-for="(check, j) in item.text.checkbox">
|
<template v-for="(check, j) in item.text.checkbox">
|
||||||
@@ -407,27 +403,29 @@
|
|||||||
class="material-icons left">info</i>@@about@@</button>
|
class="material-icons left">info</i>@@about@@</button>
|
||||||
<a href="https://thedesk.top" class="btn waves-effect deep-purple lighten-2" style="width:100%; max-width:500px;"><i
|
<a href="https://thedesk.top" class="btn waves-effect deep-purple lighten-2" style="width:100%; max-width:500px;"><i
|
||||||
class="material-icons left">web</i>@@hp@@</a>
|
class="material-icons left">web</i>@@hp@@</a>
|
||||||
|
<a href="https://enty.jp/Cutls" class="btn waves-effect purple lighten-2" style="width:100%; max-width:500px;"><i
|
||||||
|
class="material-icons left">trending_up</i>@@support@@(Enty)</a>
|
||||||
<a href="https://www.pixiv.net/fanbox/creator/28105985" class="btn waves-effect red lighten-2"
|
<a href="https://www.pixiv.net/fanbox/creator/28105985" class="btn waves-effect red lighten-2"
|
||||||
style="width:100%; max-width:500px;"><i class="material-icons left">trending_up</i>@@support@@(Pixiv FANBOX)</a>
|
style="width:100%; max-width:500px;"><i class="material-icons left">trending_up</i>@@support@@(Pixiv FANBOX)</a>
|
||||||
<a href="https://docs.thedesk.top" class="btn waves-effect blue darken-2" style="width:100%; max-width:500px;"><i
|
<a href="https://docs.thedesk.top" class="btn waves-effect blue darken-2" style="width:100%; max-width:500px;"><i
|
||||||
class="material-icons left">list</i>@@help@@/Docs(Constructing)</a>
|
class="material-icons left">list</i>@@help@@/Docs(Constructing)</a>
|
||||||
<a href="https://github.com/cutls/TheDesk" class="btn waves-effect black lighten-2"
|
<a href="https://github.com/cutls/TheDesk" class="btn waves-effect black lighten-2"
|
||||||
style="width:100%; max-width:500px;"><i class="fa fa-github left"></i>GitHub</a>
|
style="width:100%; max-width:500px;"><i class="fa fa-github left"></i>GitHub</a>
|
||||||
<a href="index.html?mode=user&code=Cutls@cutls.com" class="btn waves-effect blue lighten-2"
|
<a href="index.html?mode=user&code=Cutls@kirishima.cloud" class="btn waves-effect blue lighten-2"
|
||||||
style="width:100%; max-width:500px;"><img src="../../img/desk_full.svg" class="left" width="25"
|
style="width:100%; max-width:500px;"><img src="../../img/desk_full.svg" class="left" width="25"
|
||||||
style="padding-top:5px;">Developer: Cutls@cutls.com</a>
|
style="padding-top:5px;">Developer: Cutls@kirishima.cloud</a>
|
||||||
<br>
|
<br>
|
||||||
Kyash<br>
|
Kyash<br>
|
||||||
<img src="../../img/kyash.png" width="100"><br>
|
<img src="../../img/kyash.png" width="100"><br>
|
||||||
<a onclick="localStorage.removeItem('new-ver-skip'); location.href='index.html';"
|
<a onclick="localStorage.removeItem('new-ver-skip'); location.href='index.html';"
|
||||||
class="pointer">@@checkup@@</a><br>
|
class="pointer">@@checkup@@</a><br>
|
||||||
<a href="oss.html">OSS License@@ossJP@@</a><br>
|
<a href="oss.html">OSS License@@ossJP@@</a><br>
|
||||||
<span style="font-family:Open Sans;">Copyright © TheDesk 2018
|
<span style="font-family:Open Sans;">Copyright © TheDesk 2018 All Rights Reserved.
|
||||||
Under <a href="https://github.com/cutls/TheDesk/blob/master/LICENSE">GNU General Public License v3.0</a> and <a
|
Under <a href="https://github.com/cutls/TheDesk/blob/master/LICENSE">GNU General Public License v3.0</a> and <a
|
||||||
href="https://thedesk.top/tos.html">Terms of Use</a>/<a href="https://thedesk.top/priv.html">Privacy
|
href="https://thedesk.top/tos.html">Terms of Use</a>/<a href="https://thedesk.top/priv.html">Privacy
|
||||||
Policy</a>
|
Policy</a>
|
||||||
<br>Developer: Cutls P(
|
<br>Developer: Cutls P(
|
||||||
<a href="index.html?mode=user&code=Cutls@cutls.com">@Cutls@cutls.com</a>)
|
<a href="index.html?mode=user&code=Cutls@kirishima.cloud">@Cutls@kirishima.cloud</a>)
|
||||||
<br>
|
<br>
|
||||||
</span><br>
|
</span><br>
|
||||||
TheDeskおよびCutls Pは<a href="https://donken.org/">被災地支援のためのマストドン研究会</a>をログイン機能提供等の形で応援しています。<br>
|
TheDeskおよびCutls Pは<a href="https://donken.org/">被災地支援のためのマストドン研究会</a>をログイン機能提供等の形で応援しています。<br>
|
||||||
|
@@ -7,27 +7,6 @@ var yesno=[
|
|||||||
value:"no"
|
value:"no"
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
var sound=[
|
|
||||||
{
|
|
||||||
text:"@@none@@",
|
|
||||||
value:"none"
|
|
||||||
},{
|
|
||||||
text:"@@default@@",
|
|
||||||
value:"default"
|
|
||||||
},{
|
|
||||||
text:"Custom 1",
|
|
||||||
value:"c1"
|
|
||||||
},{
|
|
||||||
text:"Custom 2",
|
|
||||||
value:"c2"
|
|
||||||
},{
|
|
||||||
text:"Custom 3",
|
|
||||||
value:"c3"
|
|
||||||
},{
|
|
||||||
text:"Custom 4",
|
|
||||||
value:"c4"
|
|
||||||
}
|
|
||||||
];
|
|
||||||
var envConstruction=[
|
var envConstruction=[
|
||||||
{
|
{
|
||||||
id:"popup",
|
id:"popup",
|
||||||
@@ -307,46 +286,6 @@ var tlConstruction=[
|
|||||||
desc:"",
|
desc:"",
|
||||||
checkbox:yesno
|
checkbox:yesno
|
||||||
}
|
}
|
||||||
},{
|
|
||||||
id:"replySound",
|
|
||||||
storage:"replySound",
|
|
||||||
checkbox:true,
|
|
||||||
setValue:"none",
|
|
||||||
text:{
|
|
||||||
head:"@@replySound@@",
|
|
||||||
desc:"",
|
|
||||||
checkbox:sound
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
id:"favSound",
|
|
||||||
storage:"favSound",
|
|
||||||
checkbox:true,
|
|
||||||
setValue:"none",
|
|
||||||
text:{
|
|
||||||
head:"@@favSound@@",
|
|
||||||
desc:"",
|
|
||||||
checkbox:sound
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
id:"btSound",
|
|
||||||
storage:"btSound",
|
|
||||||
checkbox:true,
|
|
||||||
setValue:"none",
|
|
||||||
text:{
|
|
||||||
head:"@@btSound@@",
|
|
||||||
desc:"",
|
|
||||||
checkbox:sound
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
id:"followSound",
|
|
||||||
storage:"followSound",
|
|
||||||
checkbox:true,
|
|
||||||
setValue:"none",
|
|
||||||
text:{
|
|
||||||
head:"@@followSound@@",
|
|
||||||
desc:"",
|
|
||||||
checkbox:sound
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
var postConstruction=[
|
var postConstruction=[
|
||||||
|
@@ -1,18 +1,18 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="@@lang@@">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<title>Update - TheDesk</title>
|
<title>Update - TheDesk</title>
|
||||||
<link href="../../css/materialize.css" type="text/css" rel="stylesheet">
|
<link href="../../css/materialize.css" type="text/css" rel="stylesheet">
|
||||||
<link href="../../css/master.css" type="text/css" rel="stylesheet">
|
<link href="../../css/master.css" type="text/css" rel="stylesheet">
|
||||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons|Open+Sans:300" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/icon?family=Material+Icons|Open+Sans:300" rel="stylesheet">
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
@@comment-start@@
|
{{comment-start}}
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var _jipt = [];
|
var _jipt = [];
|
||||||
_jipt.push(['project', 'thedesk']);
|
_jipt.push(['project', 'thedesk']);
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="https://cdn.crowdin.com/jipt/jipt.js"></script>
|
<script type="text/javascript" src="https://cdn.crowdin.com/jipt/jipt.js"></script>
|
||||||
@@comment-end@@
|
{{comment-end}}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<style>
|
<style>
|
||||||
@@ -72,27 +72,27 @@ a,button,input,label,i{
|
|||||||
<div id="start">
|
<div id="start">
|
||||||
<div id="box" class="show">
|
<div id="box" class="show">
|
||||||
<h2>TheDesk</h2>
|
<h2>TheDesk</h2>
|
||||||
<p>@@updatehere@@</p>
|
<p>{{updatehere}}</p>
|
||||||
<span id="now"></span>→<b id="ver"></b><br>
|
<span id="now"></span>→<b id="ver"></b><br>
|
||||||
<span id="det"></span><br>
|
<span id="det"></span><br>
|
||||||
<button class="waves-effect btn windows hide" onclick="update('install')" style="margin-left:15px;">@@installer@@</button>
|
<button class="waves-effect btn windows hide" onclick="update('install')" style="margin-left:15px;">{{installer}}</button>
|
||||||
<button class="waves-effect btn windows hide" onclick="update('portable')" style="margin-left:15px;">@@portable@@</button>
|
<button class="waves-effect btn windows hide" onclick="update('portable')" style="margin-left:15px;">{{portable}}</button>
|
||||||
<button class="waves-effect btn linux hide" onclick="update('linux')" style="margin-left:15px;">@@download@@</button>
|
<button class="waves-effect btn linux hide" onclick="update('linux')" style="margin-left:15px;">{{download}}</button>
|
||||||
<button class="waves-effect btn mac hide" onclick="update('mac')" style="margin-left:15px;">@@download@@</button>
|
<button class="waves-effect btn mac hide" onclick="update('mac')" style="margin-left:15px;">{{download}}</button>
|
||||||
<br>
|
<br>
|
||||||
@@problem1@@<br>@@problem2@@
|
{{problem1}}<br>{{problem2}}
|
||||||
</div>
|
</div>
|
||||||
<div id="skipper" class="hide">
|
<div id="skipper" class="hide">
|
||||||
<h4>@@sureupd@@</h4>
|
<h4>{{sureupd}}</h4>
|
||||||
@@skipupd@@<br>
|
{{skipupd}}<br>
|
||||||
<div id="updskip">
|
<div id="updskip">
|
||||||
<a onclick="window.close();" class="pointer skipbtn waves-effect waves-light"><div>@@nexttl@@</div></a>
|
<a onclick="window.close();" class="pointer skipbtn waves-effect waves-light"><div>{{nexttl}}</div></a>
|
||||||
<a onclick="nextv();" class="pointer skipbtn waves-effect waves-light"><div>@@nextver@@</div></a>
|
<a onclick="nextv();" class="pointer skipbtn waves-effect waves-light"><div>{{nextver}}</div></a>
|
||||||
</div>
|
</div>
|
||||||
<a class="pointer waves-effect" onclick="skipper();" style="margin-top:5px">@@continue@@</a>
|
<a class="pointer waves-effect" onclick="skipper();" style="margin-top:5px">{{continue}}</a>
|
||||||
</div>
|
</div>
|
||||||
<div id="dlnow" class="hide">
|
<div id="dlnow" class="hide">
|
||||||
<h4>@@dlnow@@</h4>
|
<h4>{{dlnow}}</h4>
|
||||||
<h4 id="prog"></h4>
|
<h4 id="prog"></h4>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -197,24 +197,10 @@ function verck(){
|
|||||||
todo(error);
|
todo(error);
|
||||||
console.error(error);
|
console.error(error);
|
||||||
}).then(function(json) {
|
}).then(function(json) {
|
||||||
console.log(json);
|
console.log(json);
|
||||||
if(platform=="win32"){
|
$("#ver").text(json.desk);
|
||||||
$("#ver").text(json.desk);
|
localStorage.setItem("next-ver",json.desk);
|
||||||
localStorage.setItem("next-ver",json.desk);
|
$("#det").html(json.detail);
|
||||||
}else if(platform=="linux"){
|
|
||||||
$("#ver").text(json.desk_linux);
|
|
||||||
localStorage.setItem("next-ver",json.desk_linux);
|
|
||||||
}else if(platform=="darwin"){
|
|
||||||
$("#ver").text(json.desk_mac);
|
|
||||||
localStorage.setItem("next-ver",json.desk_mac);
|
|
||||||
}
|
|
||||||
var lang="@@lang@@";
|
|
||||||
if(lang=="ja"){
|
|
||||||
$("#det").html(json.detail);
|
|
||||||
}else{
|
|
||||||
$("#det").html(json.detail_en);
|
|
||||||
}
|
|
||||||
|
|
||||||
$("#now").text(localStorage.getItem("ver"));
|
$("#now").text(localStorage.getItem("ver"));
|
||||||
|
|
||||||
});
|
});
|
||||||
|
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,5 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="ps" style="overflow:scroll">
|
<html lang="ps">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<title>Settings - TheDesk</title>
|
<title>Settings - TheDesk</title>
|
||||||
@@ -22,6 +22,7 @@
|
|||||||
input {
|
input {
|
||||||
max-height: 50px !important
|
max-height: 50px !important
|
||||||
}
|
}
|
||||||
|
|
||||||
.pcr-result {
|
.pcr-result {
|
||||||
height: 1rem !important;
|
height: 1rem !important;
|
||||||
}
|
}
|
||||||
@@ -46,7 +47,7 @@
|
|||||||
<div class="collapsible-body">
|
<div class="collapsible-body">
|
||||||
<h5>crwdns530:0crwdne530:0</h5>
|
<h5>crwdns530:0crwdne530:0</h5>
|
||||||
To translate with Crowdin, you have to login Crowdin and restart TheDesk when login is finished.<br>
|
To translate with Crowdin, you have to login Crowdin and restart TheDesk when login is finished.<br>
|
||||||
<a onclick="changelang('ja')" class="pointer" style="margin-right:5px;">日本語</a><a onclick="changelang('en')" class="pointer" style="margin-right:5px;">English</a><a onclick="changelang('ps')" class="pointer" style="margin-right:5px;">Crowdin translate system(beta)</a>
|
<a href="../ja/setting.html" onclick="changelang('ja')">日本語(Japanese)</a>/<a href="../en/setting.html" onclick="changelang('en')">English</a>/<a href="../ps/setting.html" onclick="changelang('ps')">Crowdin web translate</a>/
|
||||||
<h5>crwdns531:0crwdne531:0</h5>
|
<h5>crwdns531:0crwdne531:0</h5>
|
||||||
<button onclick="exportSettings()" class="btn waves-effect lime darken-3"
|
<button onclick="exportSettings()" class="btn waves-effect lime darken-3"
|
||||||
style="width:100%; max-width:200px;">crwdns533:0crwdne533:0</button>
|
style="width:100%; max-width:200px;">crwdns533:0crwdne533:0</button>
|
||||||
@@ -55,8 +56,8 @@
|
|||||||
<div id="envView">
|
<div id="envView">
|
||||||
<template v-for="(item, i) in config">
|
<template v-for="(item, i) in config">
|
||||||
<h5>{{item.text.head}}</h5>
|
<h5>{{item.text.head}}</h5>
|
||||||
<template v-if="item.text.desc">
|
<template v-if=item.text.desc>
|
||||||
<templete v-html="item.text.desc"></templete><br>
|
<templete v-html=item.text.desc></templete><br>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="item.id=='notf'"><a onclick="notftest()"
|
<template v-if="item.id=='notf'"><a onclick="notftest()"
|
||||||
class="pointer">crwdns540:0crwdne540:0</a><br></template>
|
class="pointer">crwdns540:0crwdne540:0</a><br></template>
|
||||||
@@ -130,9 +131,9 @@
|
|||||||
<div class="input-field"><textarea style="width:300px" id="custom_desc" class="materialize-textarea"
|
<div class="input-field"><textarea style="width:300px" id="custom_desc" class="materialize-textarea"
|
||||||
placeholder="crwdns2440:0crwdne2440:0..."></textarea></div>
|
placeholder="crwdns2440:0crwdne2440:0..."></textarea></div>
|
||||||
<h5>crwdns2426:0crwdne2426:0</h5>
|
<h5>crwdns2426:0crwdne2426:0</h5>
|
||||||
<input class="with-gap" name="direction" type="radio" id="dark" value="dark" checked="true" />
|
<input class="with-gap" name="derection" type="radio" id="dark" value="dark" checked="true" />
|
||||||
<label for="dark">Dark</label>
|
<label for="dark">Dark</label>
|
||||||
<input class="with-gap" name="direction" type="radio" id="light" value="light" />
|
<input class="with-gap" name="derection" type="radio" id="light" value="light" />
|
||||||
<label for="light">Light</label>
|
<label for="light">Light</label>
|
||||||
<div id="pickers">
|
<div id="pickers">
|
||||||
<div>
|
<div>
|
||||||
@@ -157,11 +158,11 @@
|
|||||||
<input type="hidden" id="color-picker2_value">
|
<input type="hidden" id="color-picker2_value">
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<h5>Accent</h5>crwdns2434:0crwdne2434:0
|
<h5>Accent</h5>crwdns2434:0crwdne2434:0
|
||||||
<div id="color-picker3-wrap">
|
<div id="color-picker3-wrap">
|
||||||
<div class="color-picker" id="color-picker3"></div>
|
<div class="color-picker" id="color-picker3"></div>
|
||||||
</div>
|
</div>
|
||||||
<input type="hidden" id="color-picker3_value">
|
<input type="hidden" id="color-picker3_value">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button class="btn-large waves-effect" onclick="customComp()">crwdns528:0crwdne528:0</button> <button
|
<button class="btn-large waves-effect" onclick="customComp()">crwdns528:0crwdne528:0</button> <button
|
||||||
@@ -183,8 +184,8 @@
|
|||||||
<div id="tlView">
|
<div id="tlView">
|
||||||
<template v-for="(item, i) in config">
|
<template v-for="(item, i) in config">
|
||||||
<h5>{{item.text.head}}</h5>
|
<h5>{{item.text.head}}</h5>
|
||||||
<template v-if="item.text.desc">
|
<template v-if=item.text.desc>
|
||||||
<templete v-html="item.text.desc"></templete><br>
|
<templete v-html=item.text.desc></templete><br>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="item.checkbox">
|
<template v-if="item.checkbox">
|
||||||
<template v-for="(check, j) in item.text.checkbox">
|
<template v-for="(check, j) in item.text.checkbox">
|
||||||
@@ -209,11 +210,6 @@
|
|||||||
</template><br>
|
</template><br>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
<h5>@@customSound@@</h5>
|
|
||||||
<button class="btn waves-effect" style="width:120px;" onclick="customSound(1)">Custom 1</button><span id="c1-file"></span><br>
|
|
||||||
<button class="btn waves-effect" style="width:120px;" onclick="customSound(2)">Custom 2</button><span id="c2-file"></span><br>
|
|
||||||
<button class="btn waves-effect" style="width:120px;" onclick="customSound(3)">Custom 3</button><span id="c3-file"></span><br>
|
|
||||||
<button class="btn waves-effect" style="width:120px;" onclick="customSound(4)">Custom 4</button><span id="c4-file"></span><br>
|
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
@@ -224,8 +220,8 @@
|
|||||||
<div id="postView">
|
<div id="postView">
|
||||||
<template v-for="(item, i) in config">
|
<template v-for="(item, i) in config">
|
||||||
<h5>{{item.text.head}}</h5>
|
<h5>{{item.text.head}}</h5>
|
||||||
<template v-if="item.text.desc">
|
<template v-if=item.text.desc>
|
||||||
<templete v-html="item.text.desc"></templete><br>
|
<templete v-html=item.text.desc></templete><br>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="item.checkbox">
|
<template v-if="item.checkbox">
|
||||||
<template v-for="(check, j) in item.text.checkbox">
|
<template v-for="(check, j) in item.text.checkbox">
|
||||||
@@ -407,27 +403,29 @@
|
|||||||
class="material-icons left">info</i>crwdns662:0crwdne662:0</button>
|
class="material-icons left">info</i>crwdns662:0crwdne662:0</button>
|
||||||
<a href="https://thedesk.top" class="btn waves-effect deep-purple lighten-2" style="width:100%; max-width:500px;"><i
|
<a href="https://thedesk.top" class="btn waves-effect deep-purple lighten-2" style="width:100%; max-width:500px;"><i
|
||||||
class="material-icons left">web</i>crwdns663:0crwdne663:0</a>
|
class="material-icons left">web</i>crwdns663:0crwdne663:0</a>
|
||||||
|
<a href="https://enty.jp/Cutls" class="btn waves-effect purple lighten-2" style="width:100%; max-width:500px;"><i
|
||||||
|
class="material-icons left">trending_up</i>crwdns664:0crwdne664:0(Enty)</a>
|
||||||
<a href="https://www.pixiv.net/fanbox/creator/28105985" class="btn waves-effect red lighten-2"
|
<a href="https://www.pixiv.net/fanbox/creator/28105985" class="btn waves-effect red lighten-2"
|
||||||
style="width:100%; max-width:500px;"><i class="material-icons left">trending_up</i>crwdns664:0crwdne664:0(Pixiv FANBOX)</a>
|
style="width:100%; max-width:500px;"><i class="material-icons left">trending_up</i>crwdns664:0crwdne664:0(Pixiv FANBOX)</a>
|
||||||
<a href="https://docs.thedesk.top" class="btn waves-effect blue darken-2" style="width:100%; max-width:500px;"><i
|
<a href="https://docs.thedesk.top" class="btn waves-effect blue darken-2" style="width:100%; max-width:500px;"><i
|
||||||
class="material-icons left">list</i>crwdns665:0crwdne665:0/Docs(Constructing)</a>
|
class="material-icons left">list</i>crwdns665:0crwdne665:0/Docs(Constructing)</a>
|
||||||
<a href="https://github.com/cutls/TheDesk" class="btn waves-effect black lighten-2"
|
<a href="https://github.com/cutls/TheDesk" class="btn waves-effect black lighten-2"
|
||||||
style="width:100%; max-width:500px;"><i class="fa fa-github left"></i>GitHub</a>
|
style="width:100%; max-width:500px;"><i class="fa fa-github left"></i>GitHub</a>
|
||||||
<a href="index.html?mode=user&code=Cutls@cutls.com" class="btn waves-effect blue lighten-2"
|
<a href="index.html?mode=user&code=Cutls@kirishima.cloud" class="btn waves-effect blue lighten-2"
|
||||||
style="width:100%; max-width:500px;"><img src="../../img/desk_full.svg" class="left" width="25"
|
style="width:100%; max-width:500px;"><img src="../../img/desk_full.svg" class="left" width="25"
|
||||||
style="padding-top:5px;">Developer: Cutls@cutls.com</a>
|
style="padding-top:5px;">Developer: Cutls@kirishima.cloud</a>
|
||||||
<br>
|
<br>
|
||||||
Kyash<br>
|
Kyash<br>
|
||||||
<img src="../../img/kyash.png" width="100"><br>
|
<img src="../../img/kyash.png" width="100"><br>
|
||||||
<a onclick="localStorage.removeItem('new-ver-skip'); location.href='index.html';"
|
<a onclick="localStorage.removeItem('new-ver-skip'); location.href='index.html';"
|
||||||
class="pointer">crwdns667:0crwdne667:0</a><br>
|
class="pointer">crwdns667:0crwdne667:0</a><br>
|
||||||
<a href="oss.html">OSS Licensecrwdns668:0crwdne668:0</a><br>
|
<a href="oss.html">OSS Licensecrwdns668:0crwdne668:0</a><br>
|
||||||
<span style="font-family:Open Sans;">Copyright © TheDesk 2018
|
<span style="font-family:Open Sans;">Copyright © TheDesk 2018 All Rights Reserved.
|
||||||
Under <a href="https://github.com/cutls/TheDesk/blob/master/LICENSE">GNU General Public License v3.0</a> and <a
|
Under <a href="https://github.com/cutls/TheDesk/blob/master/LICENSE">GNU General Public License v3.0</a> and <a
|
||||||
href="https://thedesk.top/tos.html">Terms of Use</a>/<a href="https://thedesk.top/priv.html">Privacy
|
href="https://thedesk.top/tos.html">Terms of Use</a>/<a href="https://thedesk.top/priv.html">Privacy
|
||||||
Policy</a>
|
Policy</a>
|
||||||
<br>Developer: Cutls P(
|
<br>Developer: Cutls P(
|
||||||
<a href="index.html?mode=user&code=Cutls@cutls.com">@Cutls@cutls.com</a>)
|
<a href="index.html?mode=user&code=Cutls@kirishima.cloud">@Cutls@kirishima.cloud</a>)
|
||||||
<br>
|
<br>
|
||||||
</span><br>
|
</span><br>
|
||||||
TheDeskおよびCutls Pは<a href="https://donken.org/">被災地支援のためのマストドン研究会</a>をログイン機能提供等の形で応援しています。<br>
|
TheDeskおよびCutls Pは<a href="https://donken.org/">被災地支援のためのマストドン研究会</a>をログイン機能提供等の形で応援しています。<br>
|
||||||
|
@@ -7,27 +7,6 @@ var yesno=[
|
|||||||
value:"no"
|
value:"no"
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
var sound=[
|
|
||||||
{
|
|
||||||
text:"@@none@@",
|
|
||||||
value:"none"
|
|
||||||
},{
|
|
||||||
text:"@@default@@",
|
|
||||||
value:"default"
|
|
||||||
},{
|
|
||||||
text:"Custom 1",
|
|
||||||
value:"c1"
|
|
||||||
},{
|
|
||||||
text:"Custom 2",
|
|
||||||
value:"c2"
|
|
||||||
},{
|
|
||||||
text:"Custom 3",
|
|
||||||
value:"c3"
|
|
||||||
},{
|
|
||||||
text:"Custom 4",
|
|
||||||
value:"c4"
|
|
||||||
}
|
|
||||||
];
|
|
||||||
var envConstruction=[
|
var envConstruction=[
|
||||||
{
|
{
|
||||||
id:"popup",
|
id:"popup",
|
||||||
@@ -307,46 +286,6 @@ var tlConstruction=[
|
|||||||
desc:"",
|
desc:"",
|
||||||
checkbox:yesno
|
checkbox:yesno
|
||||||
}
|
}
|
||||||
},{
|
|
||||||
id:"replySound",
|
|
||||||
storage:"replySound",
|
|
||||||
checkbox:true,
|
|
||||||
setValue:"none",
|
|
||||||
text:{
|
|
||||||
head:"@@replySound@@",
|
|
||||||
desc:"",
|
|
||||||
checkbox:sound
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
id:"favSound",
|
|
||||||
storage:"favSound",
|
|
||||||
checkbox:true,
|
|
||||||
setValue:"none",
|
|
||||||
text:{
|
|
||||||
head:"@@favSound@@",
|
|
||||||
desc:"",
|
|
||||||
checkbox:sound
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
id:"btSound",
|
|
||||||
storage:"btSound",
|
|
||||||
checkbox:true,
|
|
||||||
setValue:"none",
|
|
||||||
text:{
|
|
||||||
head:"@@btSound@@",
|
|
||||||
desc:"",
|
|
||||||
checkbox:sound
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
id:"followSound",
|
|
||||||
storage:"followSound",
|
|
||||||
checkbox:true,
|
|
||||||
setValue:"none",
|
|
||||||
text:{
|
|
||||||
head:"@@followSound@@",
|
|
||||||
desc:"",
|
|
||||||
checkbox:sound
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
var postConstruction=[
|
var postConstruction=[
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="ps">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<title>Update - TheDesk</title>
|
<title>Update - TheDesk</title>
|
||||||
<link href="../../css/materialize.css" type="text/css" rel="stylesheet">
|
<link href="../../css/materialize.css" type="text/css" rel="stylesheet">
|
||||||
@@ -197,24 +197,10 @@ function verck(){
|
|||||||
todo(error);
|
todo(error);
|
||||||
console.error(error);
|
console.error(error);
|
||||||
}).then(function(json) {
|
}).then(function(json) {
|
||||||
console.log(json);
|
console.log(json);
|
||||||
if(platform=="win32"){
|
$("#ver").text(json.desk);
|
||||||
$("#ver").text(json.desk);
|
localStorage.setItem("next-ver",json.desk);
|
||||||
localStorage.setItem("next-ver",json.desk);
|
$("#det").html(json.detail);
|
||||||
}else if(platform=="linux"){
|
|
||||||
$("#ver").text(json.desk_linux);
|
|
||||||
localStorage.setItem("next-ver",json.desk_linux);
|
|
||||||
}else if(platform=="darwin"){
|
|
||||||
$("#ver").text(json.desk_mac);
|
|
||||||
localStorage.setItem("next-ver",json.desk_mac);
|
|
||||||
}
|
|
||||||
var lang="ps";
|
|
||||||
if(lang=="ja"){
|
|
||||||
$("#det").html(json.detail);
|
|
||||||
}else{
|
|
||||||
$("#det").html(json.detail_en);
|
|
||||||
}
|
|
||||||
|
|
||||||
$("#now").text(localStorage.getItem("ver"));
|
$("#now").text(localStorage.getItem("ver"));
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user