thedesk/app/view/en/setting.vue.js

552 lines
14 KiB
JavaScript
Raw Normal View History

2019-03-15 22:12:11 +11:00
var yesno=[
{
2019-05-07 01:42:06 +10:00
text:"Yes",
2019-03-15 22:12:11 +11:00
value:"yes"
},{
2019-05-07 01:42:06 +10:00
text:"No",
2019-03-15 22:12:11 +11:00
value:"no"
}
];
2019-04-15 01:45:04 +10:00
var sound=[
{
2019-05-07 01:42:06 +10:00
text:"None",
2019-04-15 01:45:04 +10:00
value:"none"
},{
2019-05-07 01:42:06 +10:00
text:"Default",
2019-04-15 01:45:04 +10:00
value:"default"
},{
text:"Custom 1",
value:"c1"
},{
text:"Custom 2",
value:"c2"
},{
text:"Custom 3",
value:"c3"
},{
text:"Custom 4",
value:"c4"
}
];
2019-03-15 22:12:11 +11:00
var envConstruction=[
{
id:"popup",
storage:"popup",
checkbox:false,
doubleText:false,
setValue:0,
width:50,
text:{
2019-05-07 01:42:06 +10:00
head:"Popup notification(on Windows)",
desc:'Hide to set "0"',
after:"sec"
2019-03-15 22:12:11 +11:00
}
},{
id:"notf",
storage:"nativenotf",
checkbox:true,
setValue:"yes",
text:{
2019-05-07 01:42:06 +10:00
head:"Native notification",
desc:"This does not work on Windows Portable ver.",
2019-03-15 22:12:11 +11:00
checkbox:yesno
}
},{
id:"width",
storage:"width",
checkbox:false,
doubleText:false,
width:50,
setValue:300,
text:{
2019-05-07 01:42:06 +10:00
head:"Minimum width of columns",
desc:"Scroll bar will be shown when your window size is more than ammounts of columns.",
after:"px above"
2019-03-15 22:12:11 +11:00
}
},{
id:"fixwidth",
storage:"fixwidth",
checkbox:false,
doubleText:false,
setValue:300,
width:50,
text:{
2019-05-07 01:42:06 +10:00
head:"Minimum width of TweetDeck browser",
2019-03-15 22:12:11 +11:00
desc:"",
2019-05-07 01:42:06 +10:00
after:"px above"
2019-03-15 22:12:11 +11:00
}
},{
id:"size",
storage:"size",
checkbox:false,
doubleText:false,
width:50,
setValue:13,
text:{
2019-05-07 01:42:06 +10:00
head:"Font size",
desc:'<span style="font-size:13px">13px(absolute value)</span>',
2019-03-15 22:12:11 +11:00
after:"px"
}
},{
id:"ha",
storage:"ha",
checkbox:true,
setValue:false,
text:{
2019-05-07 01:42:06 +10:00
head:"Disable hardware acceleration",
desc:"Auto restarted",
2019-03-15 22:12:11 +11:00
checkbox:[
{
2019-05-07 01:42:06 +10:00
text:"Yes",
2019-03-15 22:12:11 +11:00
value:"true"
},{
2019-05-07 01:42:06 +10:00
text:"No",
2019-03-15 22:12:11 +11:00
value:"false"
}
]
}
}
];
var tlConstruction=[
{
id:"time",
storage:"datetype",
checkbox:true,
setValue:"absolute",
text:{
2019-05-07 01:42:06 +10:00
head:"Time format",
desc:'Relative format:"1 minutes ago","3 days ago"<br>Absolute format:"23:25:21","2017/12/30 23:59:00"<br>Mixed format:toots posted today are relative-format, others are absolute-format.',
2019-03-15 22:12:11 +11:00
checkbox:[
{
2019-05-07 01:42:06 +10:00
text:"Relative",
2019-03-15 22:12:11 +11:00
value:"relative"
},{
2019-05-07 01:42:06 +10:00
text:"Absolute",
2019-03-15 22:12:11 +11:00
value:"absolute"
},{
2019-05-07 01:42:06 +10:00
text:"Both relative and absolute",
2019-03-15 22:12:11 +11:00
value:"double"
},{
2019-05-07 01:42:06 +10:00
text:"Mixed",
2019-03-15 22:12:11 +11:00
value:"medium"
}
]
}
},{
id:"ul",
storage:"locale",
checkbox:true,
setValue:"yes",
text:{
2019-05-07 01:42:06 +10:00
head:"Server's unique locale",
desc:"This value is available on some Japanese servers",
2019-03-15 22:12:11 +11:00
checkbox:yesno
}
},{
id:"nsfw",
storage:"nsfw",
checkbox:true,
setValue:"yes",
text:{
2019-05-07 01:42:06 +10:00
head:"Hide NSFW pictures",
desc:"Strong blur effect",
2019-03-15 22:12:11 +11:00
checkbox:yesno
}
},{
id:"cw",
storage:"cw",
checkbox:true,
setValue:"yes",
text:{
2019-05-07 01:42:06 +10:00
head:"Hide CW contents",
2019-03-15 22:12:11 +11:00
desc:"",
checkbox:yesno
}
},{
id:"rp",
storage:"replyct",
checkbox:true,
setValue:"hidden",
text:{
2019-05-07 01:42:06 +10:00
head:"Reply counter style",
2019-03-15 22:12:11 +11:00
desc:"",
checkbox:[
{
2019-05-07 01:42:06 +10:00
text:"Show 1+ if the replies are more than 1.",
2019-03-15 22:12:11 +11:00
value:"hidden"
},{
2019-05-07 01:42:06 +10:00
text:"Show 1+ if the replies are more than 1.",
2019-03-15 22:12:11 +11:00
value:"all"
}
]
}
},{
id:"gif",
storage:"gif",
checkbox:true,
setValue:"yes",
text:{
2019-05-07 01:42:06 +10:00
head:"Animated GIF images animation",
2019-03-15 22:12:11 +11:00
desc:"",
checkbox:yesno
}
},{
id:"tag",
storage:"tag-range",
checkbox:true,
setValue:"local",
text:{
2019-05-07 01:42:06 +10:00
head:"Tag TL Search",
2019-03-15 22:12:11 +11:00
desc:"",
checkbox:[
{
2019-05-07 01:42:06 +10:00
text:"Use federated network",
2019-03-15 22:12:11 +11:00
value:"all"
},{
2019-05-07 01:42:06 +10:00
text:"Use local network",
2019-03-15 22:12:11 +11:00
value:"local"
}
]
}
},{
id:"via",
storage:"viashow",
checkbox:true,
setValue:"no",
text:{
2019-05-07 01:42:06 +10:00
head:"Show via",
2019-03-15 22:12:11 +11:00
desc:"",
checkbox:yesno
}
},{
id:"mov",
storage:"mouseover",
checkbox:true,
setValue:"no",
text:{
2019-05-07 01:42:06 +10:00
head:"Hide action buttons without mouseover",
desc:"You may feel 'mouseover' is unconfortable:(",
2019-03-15 22:12:11 +11:00
checkbox:[
{
2019-05-07 01:42:06 +10:00
text:"Mouseover to show",
2019-03-15 22:12:11 +11:00
value:"yes"
},{
2019-05-07 01:42:06 +10:00
text:"Click to show",
2019-03-15 22:12:11 +11:00
value:"click"
},{
2019-05-07 01:42:06 +10:00
text:"No",
2019-03-15 22:12:11 +11:00
value:"no"
}
]
}
},{
id:"notfm",
storage:"setasread",
checkbox:true,
setValue:"yes",
text:{
2019-05-07 01:42:06 +10:00
head:"Show Notification marker, red colored bell and counter(if you show a notification column.)",
2019-03-15 22:12:11 +11:00
desc:"",
checkbox:yesno
}
},{
checkbox:false,
doubleText:true,
data:[
{
id:"sentence",
storage:"sentence",
width:50,
setValue:500,
2019-05-07 01:42:06 +10:00
text:{after:"lines above or"}
2019-03-15 22:12:11 +11:00
},{
id:"letters",
storage:"letters",
width:50,
setValue:7000,
2019-05-07 01:42:06 +10:00
text:{after:"letters above"}
2019-03-15 22:12:11 +11:00
}
],
text:{
2019-05-07 01:42:06 +10:00
head:"Auto folding",
desc:"TheDesk does not collapse totes of 5 characters or less. Also, when collapsing, newlines are not shown. TheDesk count only newlines as the number of lines.",
2019-03-15 22:12:11 +11:00
}
},{
id:"img-height",
storage:"img-height",
checkbox:false,
doubleText:false,
width:80,
setValue:200,
text:{
2019-05-07 01:42:06 +10:00
head:"Height of images",
desc:'Option:Set "full" to uncrop.',
2019-03-15 22:12:11 +11:00
after:"px"
}
},{
id:"ticker",
storage:"ticker_ok",
checkbox:true,
setValue:"no",
text:{
2019-05-07 01:42:06 +10:00
head:"Enable #InstanceTicker",
desc:'Show colorful stickers about the server. <a href="https://cdn.weep.me/mastodon/">About #InstanceTicker</a> Copyright 2018 weepjp, kyori19.',
2019-03-15 22:12:11 +11:00
checkbox:yesno
}
},{
id:"anime",
storage:"animation",
checkbox:true,
setValue:"yes",
text:{
2019-05-07 01:42:06 +10:00
head:"Animation of timelines",
2019-03-15 22:12:11 +11:00
desc:"",
checkbox:yesno
}
2019-04-15 01:45:04 +10:00
},{
id:"replySound",
storage:"replySound",
checkbox:true,
2019-04-16 02:38:29 +10:00
setValue:"none",
2019-04-15 01:45:04 +10:00
text:{
2019-05-07 01:42:06 +10:00
head:"Sound(Reply)",
2019-04-15 01:45:04 +10:00
desc:"",
checkbox:sound
}
},{
id:"favSound",
storage:"favSound",
checkbox:true,
2019-04-16 02:38:29 +10:00
setValue:"none",
2019-04-15 01:45:04 +10:00
text:{
2019-05-07 01:42:06 +10:00
head:"Sound(Fav)",
2019-04-15 01:45:04 +10:00
desc:"",
checkbox:sound
}
},{
id:"btSound",
storage:"btSound",
checkbox:true,
2019-04-16 02:38:29 +10:00
setValue:"none",
2019-04-15 01:45:04 +10:00
text:{
2019-05-07 01:42:06 +10:00
head:"Sound(Boost)",
2019-04-15 01:45:04 +10:00
desc:"",
checkbox:sound
}
},{
id:"followSound",
storage:"followSound",
checkbox:true,
2019-04-16 02:38:29 +10:00
setValue:"none",
2019-04-15 01:45:04 +10:00
text:{
2019-05-07 01:42:06 +10:00
head:"Sound(Follow)",
2019-04-15 01:45:04 +10:00
desc:"",
checkbox:sound
}
2019-03-15 22:12:11 +11:00
}
];
var postConstruction=[
{
id:"cw-text",
storage:"cw-text",
checkbox:false,
doubleText:false,
width:150,
setValue:"",
text:{
2019-05-07 01:42:06 +10:00
head:"Default warining text",
2019-03-15 22:12:11 +11:00
desc:"",
after:""
}
},{
checkbox:false,
doubleText:true,
data:[
{
id:"cw_sentence",
storage:"cw_sentence",
width:50,
setValue:500,
2019-05-07 01:42:06 +10:00
text:{after:"lines above or"}
2019-03-15 22:12:11 +11:00
},{
id:"cw_letters",
storage:"cw_letters",
width:50,
setValue:7000,
2019-05-07 01:42:06 +10:00
text:{after:"letters above"}
2019-03-15 22:12:11 +11:00
}
],
text:{
2019-05-07 01:42:06 +10:00
head:"Alert before posting a long toot.",
desc:"Show dialog whether you make too-long text hidden.",
2019-03-15 22:12:11 +11:00
}
},{
id:"cws",
storage:"always-cw",
checkbox:true,
setValue:"no",
text:{
2019-05-07 01:42:06 +10:00
head:"Always CW set",
2019-03-15 22:12:11 +11:00
desc:"",
checkbox:yesno
}
},{
id:"vis",
storage:"vis",
checkbox:true,
setValue:"public",
text:{
2019-05-07 01:42:06 +10:00
head:"Default visibility",
2019-03-15 22:12:11 +11:00
desc:"",
checkbox:[
{
2019-05-07 01:42:06 +10:00
text:"Public",
2019-03-15 22:12:11 +11:00
value:"public"
},{
2019-05-07 01:42:06 +10:00
text:"Unlisted",
2019-03-15 22:12:11 +11:00
value:"unlisted"
},{
2019-05-07 01:42:06 +10:00
text:"Private",
2019-03-15 22:12:11 +11:00
value:"private"
},{
2019-05-07 01:42:06 +10:00
text:"Direct",
2019-03-15 22:12:11 +11:00
value:"direct"
},{
2019-05-07 01:42:06 +10:00
text:"Memory(memorized as each server)",
2019-03-15 22:12:11 +11:00
value:"memory"
},{
2019-05-07 01:42:06 +10:00
text:"Default of your visibility(Set on preferences of Mastodon server)",
2019-03-15 22:12:11 +11:00
value:"useapi"
}
]
}
},{
id:"img",
storage:"img",
checkbox:true,
setValue:"no-act",
text:{
2019-05-07 01:42:06 +10:00
head:"Posting images preferences",
2019-03-15 22:12:11 +11:00
desc:"",
checkbox:[
{
2019-05-07 01:42:06 +10:00
text:"Insert media URL",
2019-03-15 22:12:11 +11:00
value:"url"
},{
2019-05-07 01:42:06 +10:00
text:"Insert nothig",
2019-03-15 22:12:11 +11:00
value:"no-act"
}
]
}
},{
id:"box",
storage:"box",
checkbox:true,
setValue:"yes",
text:{
2019-05-07 01:42:06 +10:00
head:"Action of posting-box",
2019-03-15 22:12:11 +11:00
desc:"",
checkbox:[
{
2019-05-07 01:42:06 +10:00
text:"Folding",
2019-03-15 22:12:11 +11:00
value:"yes"
},{
2019-05-07 01:42:06 +10:00
text:"Open after posting",
2019-03-15 22:12:11 +11:00
value:"no"
},{
2019-05-07 01:42:06 +10:00
text:"Absolutely open",
2019-03-15 22:12:11 +11:00
value:"absolute"
}
]
}
},{
id:"quote",
storage:"quote",
checkbox:true,
setValue:"nothing",
text:{
2019-05-07 01:42:06 +10:00
head:"Quote format",
2019-03-15 22:12:11 +11:00
desc:"",
checkbox:[
{
2019-05-07 01:42:06 +10:00
text:"Only URL",
2019-03-15 22:12:11 +11:00
value:"simple"
},{
2019-05-07 01:42:06 +10:00
text:"URL and acct(mention to the user)",
2019-03-15 22:12:11 +11:00
value:"mention"
},{
2019-05-07 01:42:06 +10:00
text:"URL, text and acct(mention to the user)",
2019-03-15 22:12:11 +11:00
value:"full"
},{
2019-05-07 01:42:06 +10:00
text:"Disabled(Hide buttons on TLs)",
2019-03-15 22:12:11 +11:00
value:"nothing"
}
]
}
},{
id:"main",
storage:"mainuse",
checkbox:true,
setValue:"remain",
text:{
2019-05-07 01:42:06 +10:00
head:"Default accounts of actions",
desc:"Main account can be set on Account Manager.",
2019-03-15 22:12:11 +11:00
checkbox:[
{
2019-05-07 01:42:06 +10:00
text:"Account you used recently",
2019-03-15 22:12:11 +11:00
value:"remain"
},{
2019-05-07 01:42:06 +10:00
text:"Main account",
2019-03-15 22:12:11 +11:00
value:"main"
}
]
}
},{
id:"sec",
storage:"sec",
checkbox:true,
setValue:"public",
text:{
2019-05-07 01:42:06 +10:00
head:"Secondary Toot Button",
2019-03-15 22:12:11 +11:00
desc:"",
checkbox:[
{
2019-05-07 01:42:06 +10:00
text:"Hidden",
2019-03-15 22:12:11 +11:00
value:"nothing"
},{
2019-05-07 01:42:06 +10:00
text:"Public",
2019-03-15 22:12:11 +11:00
value:"public"
},{
2019-05-07 01:42:06 +10:00
text:"Unlisted",
2019-03-15 22:12:11 +11:00
value:"unlisted"
},{
2019-05-07 01:42:06 +10:00
text:"Private",
2019-03-15 22:12:11 +11:00
value:"private"
},{
2019-05-07 01:42:06 +10:00
text:"Direct",
2019-03-15 22:12:11 +11:00
value:"direct"
},{
2019-05-07 01:42:06 +10:00
text:"Local Only",
2019-03-15 22:12:11 +11:00
value:"local",
kirishima:true,
kirishimaText:"非対応インスタンスでは「未収載」になります。"
}
]
}
2019-04-11 03:59:13 +10:00
},{
id:"zero",
storage:"emoji-zero-width",
checkbox:true,
setValue:"normal",
setValue:"no",
text:{
2019-05-07 01:42:06 +10:00
head:"Zero-width space when inserting emojis",
2019-04-11 03:59:13 +10:00
desc:"",
checkbox:yesno
}
2019-03-15 22:12:11 +11:00
}
]