TheDesk Miria (17.0.1)

This commit is contained in:
Cutls 2019-02-27 10:58:29 +09:00
parent 75a397aafd
commit 560494467b
8 changed files with 237 additions and 38 deletions

View File

@ -280,13 +280,12 @@ ipc.on('shot-img-dl', (e, args) => {
}) })
//アプデDL //アプデDL
ipc.on('download-btn', (e, args) => { ipc.on('download-btn', (e, args) => {
console.log(args); //console.log(args[1]);
var platform=process.platform; var platform=process.platform;
var bit=process.arch; var bit=process.arch;
dialog.showSaveDialog(null, { dialog.showSaveDialog(null, {
title: '保存', title: 'Save',
properties: ['openFile', 'createDirectory'], defaultPath: app.getPath('home')+"/"+args[1]
defaultPath: args[1]
}, (savedFiles) => { }, (savedFiles) => {
console.log(savedFiles); console.log(savedFiles);
if(!savedFiles){ if(!savedFiles){
@ -297,12 +296,11 @@ ipc.on('download-btn', (e, args) => {
}else{ }else{
var m = savedFiles.match(/(.+)\/(.+)$/); var m = savedFiles.match(/(.+)\/(.+)$/);
} }
//console.log(m);
if(isExistFile(savedFiles)){ if(isExistFile(savedFiles)){
fs.statSync(savedFiles); fs.unlinkSync(savedFiles);
fs.unlink(savedFiles);
} }
dl(args[0],args[1],savedFiles); dl(args[0],args[1],m[1]);
}); });
}); });
function isExistFile(file) { function isExistFile(file) {

View File

@ -80,7 +80,7 @@ a,button,input,label,i{
<span id="det"></span><br> <span id="det"></span><br>
<button class="waves-effect btn windows" onclick="update('install')" style="margin-left:15px;">Installer ver.</button> <button class="waves-effect btn windows" onclick="update('install')" style="margin-left:15px;">Installer ver.</button>
<button class="waves-effect btn windows" onclick="update('portable')" style="margin-left:15px;">Portable ver.</button> <button class="waves-effect btn windows" onclick="update('portable')" style="margin-left:15px;">Portable ver.</button>
<span class="linux">{{snap}}<br></span> <span class="linux">Snap ver may be on Snapcraft<br></span>
<button class="waves-effect btn linux" onclick="update('linux')" style="margin-left:15px;">Start</button> <button class="waves-effect btn linux" onclick="update('linux')" style="margin-left:15px;">Start</button>
<button class="waves-effect btn mac" onclick="update('mac')" style="margin-left:15px;">Start</button> <button class="waves-effect btn mac" onclick="update('mac')" style="margin-left:15px;">Start</button>
<br> <br>
@ -136,27 +136,27 @@ function update(sel){
todo(error); todo(error);
console.error(error); console.error(error);
}).then(function(json) { }).then(function(json) {
if(sel=="installer"){ if(sel=="install"){
if(bit=="64"){ if(bit=="x64"){
var url=json["winx64"]; var url=json["winx64"];
var file="TheDesk-setup.exe"; var file="TheDesk-setup.exe";
}else if(bit=="32"){ }else if(bit=="ia32"){
var url=json["winia32"]; var url=json["winia32"];
var file="TheDesk-setup-ia32.exe"; var file="TheDesk-setup-ia32.exe";
} }
}else if(sel=="portable"){ }else if(sel=="portable"){
if(bit=="64"){ if(bit=="x64"){
var url=json["winx64p"]; var url=json["winx64p"];
var file="TheDesk.exe"; var file="TheDesk.exe";
}else if(bit=="32"){ }else if(bit=="ia32"){
var url=json["winia32p"]; var url=json["winia32p"];
var file="TheDesk-ia32.exe"; var file="TheDesk-ia32.exe";
} }
}else if(sel=="linux"){ }else if(sel=="linux"){
if(bit=="64"){ if(bit=="x64"){
var url=json["linuxx64"]; var url=json["linuxx64"];
var file="TheDesk-linux-x64.zip"; var file="TheDesk-linux-x64.zip";
}else if(bit=="32"){ }else if(bit=="ia32"){
var url=json["linuxia64"]; var url=json["linuxia64"];
var file="TheDesk-linux-ia32.zip"; var file="TheDesk-linux-ia32.zip";
} }

View File

@ -80,7 +80,7 @@ a,button,input,label,i{
<span id="det"></span><br> <span id="det"></span><br>
<button class="waves-effect btn windows" onclick="update('install')" style="margin-left:15px;">インストーラー版(推奨)</button> <button class="waves-effect btn windows" onclick="update('install')" style="margin-left:15px;">インストーラー版(推奨)</button>
<button class="waves-effect btn windows" onclick="update('portable')" style="margin-left:15px;">ポータブル版</button> <button class="waves-effect btn windows" onclick="update('portable')" style="margin-left:15px;">ポータブル版</button>
<span class="linux">{{snap}}<br></span> <span class="linux">snap版はSnapcraft等よりDLしてください。<br></span>
<button class="waves-effect btn linux" onclick="update('linux')" style="margin-left:15px;">開始</button> <button class="waves-effect btn linux" onclick="update('linux')" style="margin-left:15px;">開始</button>
<button class="waves-effect btn mac" onclick="update('mac')" style="margin-left:15px;">開始</button> <button class="waves-effect btn mac" onclick="update('mac')" style="margin-left:15px;">開始</button>
<br> <br>
@ -136,27 +136,27 @@ function update(sel){
todo(error); todo(error);
console.error(error); console.error(error);
}).then(function(json) { }).then(function(json) {
if(sel=="installer"){ if(sel=="install"){
if(bit=="64"){ if(bit=="x64"){
var url=json["winx64"]; var url=json["winx64"];
var file="TheDesk-setup.exe"; var file="TheDesk-setup.exe";
}else if(bit=="32"){ }else if(bit=="ia32"){
var url=json["winia32"]; var url=json["winia32"];
var file="TheDesk-setup-ia32.exe"; var file="TheDesk-setup-ia32.exe";
} }
}else if(sel=="portable"){ }else if(sel=="portable"){
if(bit=="64"){ if(bit=="x64"){
var url=json["winx64p"]; var url=json["winx64p"];
var file="TheDesk.exe"; var file="TheDesk.exe";
}else if(bit=="32"){ }else if(bit=="ia32"){
var url=json["winia32p"]; var url=json["winia32p"];
var file="TheDesk-ia32.exe"; var file="TheDesk-ia32.exe";
} }
}else if(sel=="linux"){ }else if(sel=="linux"){
if(bit=="64"){ if(bit=="x64"){
var url=json["linuxx64"]; var url=json["linuxx64"];
var file="TheDesk-linux-x64.zip"; var file="TheDesk-linux-x64.zip";
}else if(bit=="32"){ }else if(bit=="ia32"){
var url=json["linuxia64"]; var url=json["linuxia64"];
var file="TheDesk-linux-ia32.zip"; var file="TheDesk-linux-ia32.zip";
} }

View File

@ -0,0 +1,199 @@
{
"language":"en",
"lang_toot":"Toot",
"lang_there":"Yes",
"lang_nothing":"None",
"lang_yesno":"Yes",
"lang_no":"No",
"lang_progress":"Wait...",
"lang_edit":"Edit",
"lang_del":"Delete",
"lang_add":"Add",
"lang_fatalerroroccured":"Some errors are occured, please restart TheDesk.",
"lang_speech":"Google US English",
"lang_lang":"Language",
"lang_langlocale":"English",
"lang_back":"Back",
"lang_set":"Set",
"lang_langadd":"Translate TheDesk to other languages or proofread TheDesk on <a href=\"https://github.com/cutls/TheDesk\" target=\"_blank\">GitHub</a>. TheDesk needs your help.",
"lang_version_usever":"No update is found({{ver}})",
"lang_version_skipver":"Update was ignored.",
"lang_login_noauth":"Show TL of unlogined accounts",
"lang_manager_info":"About this instance",
"lang_manager_refresh":"Refresh",
"lang_manager_delete":"Logout",
"lang_manager_color":"Account Color",
"lang_manager_confirm":"is about to logout. Continue?",
"lang_manager_mainAcct":"Done:choose main account",
"lang_manager_def":"Default",
"lang_manager_none":"None",
"lang_manager_godev":"Open DevCenter of Misskey. We show also an official documents to refer.",
"lang_bbmd_misskey":"TheDesk regards \"@\" as reply, but put other parameter. Unlisted on Mastodon means Home on Misskey.",
"lang_emoji_get":"Get emojis",
"lang_emoji_custom":"Custom emojis",
"lang_postimg_previewdis":"cannot preview",
"lang_postimg_aftupload":"You cannot change accounts after uploading.",
"lang_post_tagTL":"This toot does not contain a default tag. This toot will not be shown on Local TL. Continue?",
"lang_post_tagVis":"This toot(not 'public' toot) is not shown on this tag's TL.",
"lang_post_cwtitle":"Auto CW Alert",
"lang_post_cwtxt":"You are about to post longer toot than you set.\nWarning text:",
"lang_post_btn1":"Cancel (will not post)",
"lang_post_btn2":"Make text hidden automatically",
"lang_post_btn3":"Continue to post",
"lang_status_favWarn":"It will take a miunte to favourite a remote toot.",
"lang_status_btWarn":"It will take a miunte to boost a remote toot.",
"lang_status_follow":"Follow",
"lang_status_unfollow":"Unfollow",
"lang_status_block":"Block",
"lang_status_unblock":"Unblock",
"lang_status_mute":"Mute",
"lang_status_unmute":"Unmute",
"lang_status_redraft":"Continue to delete & redraft? You lose statuses of this toot. This fanction may contain some bugs. Images of this toot will be deleted on older than Mastodon 2.4.1.",
"lang_status_emphas":"'s toots are emphasized. Please reload after this action.",
"lang_status_unemphas":"'s toots are not emphasized. Please reload after this action.",
"lang_status_unendorse":"Not feature on profile",
"lang_status_endorse":"Feature on profile",
"lang_suggest_nodata":"Please get emojis list in order to show suggestion.",
"lang_usetxtbox_reply":"Reply Mode. Ctrl+Shift+C to clear.",
"lang_cards_check":" check",
"lang_cards_pip":"PiP mode",
"lang_details_nodata":"No data",
"lang_details_filtered":"Filtered toot",
"lang_details_embed":"Embed HTML is cliped.",
"lang_details_url":"URL of this toot is cliped.",
"lang_details_txt":"Content of this toot is cliped.",
"lang_filter_nodata":"No data",
"lang_filter_errordegree":"Please check a context",
"lang_list_nodata":"No data",
"lang_list_show":"Show",
"lang_list_users":"Users list",
"lang_list_nouser":"No users in this list.",
"lang_list_add":"Add to the list",
"lang_list_remove":"Remove from the list",
"lang_notf_new":" new notifications",
"lang_speech_refresh":"Save value about TTS config",
"lang_src_ts":"chronological order",
"lang_src_people":" people toot",
"lang_tags_always":"Always toots with ",
"lang_tags_realtime":"Tag-stream toot",
"lang_tags_tagunpin":"Unpin {{tag}}",
"lang_tags_tagwarn":"When you toot without {{tag}}, tag-streaming mode will be off.",
"lang_tl_media":"Media",
"lang_tl_reconnect":"Reconnect to streaming API",
"lang_layout_gotop":"Go top of this column. When icon is red, this column cannot connect straming API. Please reload.",
"lang_layout_thisacct":"{{notf}} of this account",
"lang_layout_delthis":"Remove this column",
"lang_layout_setthis":"Preferences of this column",
"lang_layout_mediafil":"Media filtering",
"lang_layout_linkana":"Auto Link Analyzer",
"lang_layout_linkanades":"Auto link analyzer",
"lang_layout_tts":"Text to speech ",
"lang_layout_reconnect":"Reconnect to streaming API",
"lang_layout_headercolor":"Header color of this column",
"lang_layout_nodata":"[No data]<br>F5/⌘+R to reload",
"lang_layout_dm":"Direct Message",
"lang_layout_webviewmode":"Prefer WebView",
"lang_excluded":"Excluded type of notification",
"lang_spotify_img":"Attach an album artwork",
"lang_spotify_imgno":"Not attach an album artwork",
"lang_spotify_acct":"Connect TheDesk to Spotify",
"lang_spotify_np":"Done:templete of NowPlaying",
"lang_setting_npprovide":"NowPlaying provider:{{set}}",
"lang_hisdata_frcreq":"Required Mastodon 2.4.3 and above",
"lang_hisdata_frcwarn":"Unfollow accounts will be shown.",
"lang_hisdata_taketime":"It will take 30s ~ several minutes",
"lang_hisdata_notonmisskey":"Misskey is unable to request.",
"lang_showontl_movetxt":"This account was moved",
"lang_showontl_movebtn":"Continue on the new account",
"lang_showontl_botacct":"[bot]",
"lang_showontl_followed":"Following you",
"lang_showontl_notf":"Notification ",
"lang_showontl_domain":"Domain ",
"lang_showontl_listwarn":"Follow to add this user to lists.",
"lang_parse_mentioned":" replied to you",
"lang_parse_faved":" favourited your toot",
"lang_parse_bted":" boosted your toot",
"lang_parse_btedsimple":" boosted",
"lang_parse_notftime":"Actioned at",
"lang_parse_cwshow":"Show",
"lang_parse_fulltext":"Full size text:",
"lang_parse_autofold":"Auto folded",
"lang_parse_more":"More",
"lang_parse_url":"URL Analyzer",
"lang_parse_tagTL":"Timeline of {{tag}}",
"lang_parse_tagtoot":"Toot with {{tag}}",
"lang_parse_tagpin":"Pin {{tag}}",
"lang_parse_public":"Public",
"lang_parse_unlisted":"Unlisted",
"lang_parse_private":"Private",
"lang_parse_direct":"Direct",
"lang_parse_clickcopy":"Click to copy text of this toot",
"lang_parse_clickcopyurl":"Click to copy URL of this toot",
"lang_parse_trans":"Translate to Japanese",
"lang_parse_replyto":"Reply to this toot",
"lang_parse_bt":"Boost this toot",
"lang_parse_fav":"Favourite this toot",
"lang_parse_quote":"Quote this toot",
"lang_parse_del":"Delete this toot",
"lang_parse_pin":"Pin this toot",
"lang_parse_det":"Details via your main account.",
"lang_parse_redraft":"Delete & re-draft",
"lang_parse_followed":"Followed you",
"lang_parse_clientop":"Operation of this client",
"lang_parse_clienttxt":" will be",
"lang_parse_clientno":"done nothing",
"lang_parse_clientemp":"emphasized(/not emphasized)",
"lang_parse_clientmute":"muted",
"lang_parse_mute":" will be muted. You can remove on preferences.",
"lang_misskeyparse_renote":"Repost",
"lang_misskeyparse_renoteqt":"Renote",
"lang_misskeyparse_reaction":"Reaction",
"lang_misskeyparse_tagnostr":"No streaming API on Tag TLs",
"lang_misskeyparse_listnostr":"No streaming API on List TLs",
"lang_misskeyparse_home":"Home",
"lang_misskeyparse_followers":"Follower",
"lang_misskeyparse_specified":"Specified User",
"lang_misskeyparse_qt":"Misskey renote(quote) mode:Ctrl+Shift+Enter to clear",
"lang_misskeyparse_renoted":" renoted your following post.",
"lang_misskeyparse_quoted":" quoted your following post.",
"lang_misskeyparse_reacted":" reacted your following post.",
"lang_setting_time":"Time format:{{set}}",
"lang_setting_theme":"Theme:{{set}}",
"lang_setting_nsfw":"NSFW:{{set}}",
"lang_setting_cw":"CW:{{set}}",
"lang_setting_cwtext":"Default CW text:{{set}}",
"lang_setting_cws":"Always CW on:{{set}}",
"lang_setting_rp":"Reply counter:{{set}}",
"lang_setting_vis":"Default visibility:{{set}}",
"lang_setting_popup":"Popup notification:{{set}}",
"lang_setting_off":"Off",
"lang_setting_s":"s",
"lang_setting_box":"Default toot box action:{{set}}",
"lang_setting_gif":"GIF:{{set}}",
"lang_setting_selt":"Auto fold:{{set1}} lines and above, {{set2}} letters and above",
"lang_setting_autocw":"Auto CW:{{set1}} lines and above, {{set2}} letters and above",
"lang_setting_width":"Minimam width:{{set}}",
"lang_setting_fixwidth":"TweetDeck fixed width:{{set}}px",
"lang_setting_img":"After posting an image:{{set}}",
"lang_setting_font":"Fonts:{{set}}",
"lang_setting_default":"default font",
"lang_setting_size":"Font size:{{set}}px",
"lang_setting_imgheight":"Image height:{{set}}px",
"lang_setting_ticker":"#InstanceTicker:{{set}}px",
"lang_setting_tag":"Tag TL:{{set}}",
"lang_setting_boxConfirm":"Post box:{{set}}",
"lang_setting_ul":"Native locale:{{set}}",
"lang_setting_notf":"Native notification:{{set}}",
"lang_setting_quote":"Quote format:{{set}}",
"lang_setting_via":"Via:{{set}}",
"lang_setting_mov":"Action buttons hiding:{{set}}",
"lang_setting_setasread":"Notification markers:{{set}}",
"lang_setting_main":"Default account:{{set}}",
"lang_setting_sec":"Secondary toot button:{{set}}",
"lang_setting_ksref":"Keyboard shortcuts are refreshed.",
"lang_setting_nomuting":"No client is muted.",
"lang_setting_notftest":" Notification test ",
"lang_setting_notftestprof":"Your icon is shown.",
"lang_setting_exportwarn":"Only important data will be exported. You must keep this data secure.",
"lang_setting_importwarn":"All data will be deleted."
}

View File

@ -3,6 +3,7 @@
"download":"Start", "download":"Start",
"portable":"Portable ver.", "portable":"Portable ver.",
"installer":"Installer ver.", "installer":"Installer ver.",
"snap":"Snap ver may be on Snapcraft",
"unrewrite":"Not rewrite", "unrewrite":"Not rewrite",
"sureupd":"You may lose a cool experience!", "sureupd":"You may lose a cool experience!",
"skipupd":"Skip this update", "skipupd":"Skip this update",

View File

@ -3,6 +3,7 @@
"download":"開始", "download":"開始",
"portable":"ポータブル版", "portable":"ポータブル版",
"installer":"インストーラー版(推奨)", "installer":"インストーラー版(推奨)",
"snap":"snap版はSnapcraft等よりDLしてください。",
"sureupd":"アップデートは必ず行ってください", "sureupd":"アップデートは必ず行ってください",
"skipupd":"アップデートをスキップする", "skipupd":"アップデートをスキップする",
"nexttl":"次回TL表示時まで", "nexttl":"次回TL表示時まで",

View File

@ -136,27 +136,27 @@ function update(sel){
todo(error); todo(error);
console.error(error); console.error(error);
}).then(function(json) { }).then(function(json) {
if(sel=="installer"){ if(sel=="install"){
if(bit=="64"){ if(bit=="x64"){
var url=json["winx64"]; var url=json["winx64"];
var file="TheDesk-setup.exe"; var file="TheDesk-setup.exe";
}else if(bit=="32"){ }else if(bit=="ia32"){
var url=json["winia32"]; var url=json["winia32"];
var file="TheDesk-setup-ia32.exe"; var file="TheDesk-setup-ia32.exe";
} }
}else if(sel=="portable"){ }else if(sel=="portable"){
if(bit=="64"){ if(bit=="x64"){
var url=json["winx64p"]; var url=json["winx64p"];
var file="TheDesk.exe"; var file="TheDesk.exe";
}else if(bit=="32"){ }else if(bit=="ia32"){
var url=json["winia32p"]; var url=json["winia32p"];
var file="TheDesk-ia32.exe"; var file="TheDesk-ia32.exe";
} }
}else if(sel=="linux"){ }else if(sel=="linux"){
if(bit=="64"){ if(bit=="x64"){
var url=json["linuxx64"]; var url=json["linuxx64"];
var file="TheDesk-linux-x64.zip"; var file="TheDesk-linux-x64.zip";
}else if(bit=="32"){ }else if(bit=="ia32"){
var url=json["linuxia64"]; var url=json["linuxia64"];
var file="TheDesk-linux-ia32.zip"; var file="TheDesk-linux-ia32.zip";
} }

View File

@ -136,27 +136,27 @@ function update(sel){
todo(error); todo(error);
console.error(error); console.error(error);
}).then(function(json) { }).then(function(json) {
if(sel=="installer"){ if(sel=="install"){
if(bit=="64"){ if(bit=="x64"){
var url=json["winx64"]; var url=json["winx64"];
var file="TheDesk-setup.exe"; var file="TheDesk-setup.exe";
}else if(bit=="32"){ }else if(bit=="ia32"){
var url=json["winia32"]; var url=json["winia32"];
var file="TheDesk-setup-ia32.exe"; var file="TheDesk-setup-ia32.exe";
} }
}else if(sel=="portable"){ }else if(sel=="portable"){
if(bit=="64"){ if(bit=="x64"){
var url=json["winx64p"]; var url=json["winx64p"];
var file="TheDesk.exe"; var file="TheDesk.exe";
}else if(bit=="32"){ }else if(bit=="ia32"){
var url=json["winia32p"]; var url=json["winia32p"];
var file="TheDesk-ia32.exe"; var file="TheDesk-ia32.exe";
} }
}else if(sel=="linux"){ }else if(sel=="linux"){
if(bit=="64"){ if(bit=="x64"){
var url=json["linuxx64"]; var url=json["linuxx64"];
var file="TheDesk-linux-x64.zip"; var file="TheDesk-linux-x64.zip";
}else if(bit=="32"){ }else if(bit=="ia32"){
var url=json["linuxia64"]; var url=json["linuxia64"];
var file="TheDesk-linux-ia32.zip"; var file="TheDesk-linux-ia32.zip";
} }