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

552 lines
14 KiB
JavaScript
Raw Normal View History

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