Fix en not showing settings menu

This commit is contained in:
cutls 2019-10-11 22:04:28 +09:00
parent 2971144d7f
commit f74e2262dc
4 changed files with 30 additions and 14 deletions

View File

@ -152,11 +152,11 @@
"linkwarn": "TheDesk save your data on thedesk.top server.", "linkwarn": "TheDesk save your data on thedesk.top server.",
"connect": "Connect", "connect": "Connect",
"disconnect": "Disconnect", "disconnect": "Disconnect",
"templeteedit": "Edit a template", "templateedit": "Edit a template",
"templeteeditwarn": "", "templateeditwarn": "",
"templete1": "Spotify:{song}:Song name/{album}:Album name/{artist}:Artist name/{url}:URL to Spotify", "template1": "Spotify:{song}:Song name/{album}:Album name/{artist}:Artist name/{url}:URL to Spotify",
"templete2": "macOS:{song}:Song name/{album}:Album name/{artist}:Artist name/composer:{composer}/spampling rate:{hz}/bit rate:{bitRate}/genre:{genre}", "template2": "macOS:{song}:Song name/{album}:Album name/{artist}:Artist name/composer:{composer}/spampling rate:{hz}/bit rate:{bitRate}/genre:{genre}",
"templete3": "", "template3": "",
"postartwork": "Attach an Artwork of Spotify", "postartwork": "Attach an Artwork of Spotify",
"tts": "TTS(text to speech) Preferences", "tts": "TTS(text to speech) Preferences",
"bouyomi": "BouyomiChan connect", "bouyomi": "BouyomiChan connect",

View File

@ -3,6 +3,9 @@
"download":"開始", "download":"開始",
"portable":"ポータブル版", "portable":"ポータブル版",
"installer":"インストーラー版(推奨)", "installer":"インストーラー版(推奨)",
"linux":"zip版",
"linuxdeb":"deb版(対応の場合推奨)",
"linuxsnap":"snap版",
"snap":"snap版はSnapcraft等よりDLしてください。", "snap":"snap版はSnapcraft等よりDLしてください。",
"sureupd":"アップデートは必ず行ってください", "sureupd":"アップデートは必ず行ってください",
"skipupd":"アップデートをスキップする", "skipupd":"アップデートをスキップする",

View File

@ -1,5 +1,5 @@
const fs = require("fs") const fs = require("fs")
let ver = "Usamin (18.11.1)" let ver = "Usamin (18.11.2)"
const execSync = require('child_process').execSync; const execSync = require('child_process').execSync;
let gitHash = execSync("git rev-parse HEAD").toString().trim() let gitHash = execSync("git rev-parse HEAD").toString().trim()
fs.writeFileSync("../../git", gitHash) fs.writeFileSync("../../git", gitHash)
@ -52,6 +52,11 @@ for (let i = 0; i < samples.length; i++) {
} else { } else {
var str = englishRefer[tarKey] var str = englishRefer[tarKey]
} }
if(pages[i]=="setting.vue.js"){
if(str){
str = str.replace(/"/g, '\\"')
}
}
var regExp = new RegExp("@@" + tarKey + "@@", "g") var regExp = new RegExp("@@" + tarKey + "@@", "g")
source = source.replace(regExp, str) source = source.replace(regExp, str)
} }

View File

@ -92,7 +92,11 @@
<button class="waves-effect btn windows hide" onclick="update('portable')" <button class="waves-effect btn windows hide" onclick="update('portable')"
style="margin-left:15px;">@@portable@@</button> style="margin-left:15px;">@@portable@@</button>
<button class="waves-effect btn linux hide" onclick="update('linux')" <button class="waves-effect btn linux hide" onclick="update('linux')"
style="margin-left:15px;">@@download@@</button> style="margin-left:15px;">@@linux@@</button>
<button class="waves-effect btn linux hide" onclick="update('linuxdeb')"
style="margin-left:15px;">@@linuxdeb@@</button>
<button class="waves-effect btn linux hide" onclick="update('linuxsnap')"
style="margin-left:15px;">@@linuxsnap@@</button>
<button class="waves-effect btn mac hide" onclick="update('mac')" <button class="waves-effect btn mac hide" onclick="update('mac')"
style="margin-left:15px;">@@download@@</button> style="margin-left:15px;">@@download@@</button>
<br> <br>
@ -169,13 +173,17 @@
var file = "TheDesk-ia32.exe"; var file = "TheDesk-ia32.exe";
} }
} else if (sel == "linux") { } else if (sel == "linux") {
if (bit == "x64") { var url = json["linuxx64"];
var url = json["linuxx64"]; var file = "thedesk.zip";
var file = "TheDesk-linux-x64.zip"; } else if (sel == "linuxdeb") {
} else if (bit == "ia32") { var url = json["linuxdeb"];
var url = json["linuxia64"]; var url = json["mac"];
var file = "TheDesk-linux-ia32.zip"; postMessage(["openUrl", url], "*")
} return false;
} else if (sel == "linuxsnap") {
var url = json["linuxsnap"];
postMessage(["openUrl", url], "*")
return false;
} else if (sel == "mac") { } else if (sel == "mac") {
var url = json["mac"]; var url = json["mac"];
postMessage(["openUrl", url], "*") postMessage(["openUrl", url], "*")