thedesk/app/view/make/setting.sample.js

552 lines
13 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@@",
2019-08-07 13:14:07 +10:00
desc: "@@popupwarn@@",
2019-05-19 17:39:30 +10:00
after: "@@s@@"
}
}, {
id: "notf",
storage: "nativenotf",
checkbox: true,
setValue: "yes",
text: {
head: "@@nativenotf@@",
desc: "@@nnwarn@@",
checkbox: yesno
}
}, {
id: "width",
storage: "width",
checkbox: false,
doubleText: false,
width: 50,
setValue: 300,
text: {
head: "@@minwidth@@",
desc: "@@minwidthwarn@@",
after: "px @@above@@"
}
}, {
id: "fixwidth",
storage: "fixwidth",
checkbox: false,
doubleText: false,
setValue: 300,
width: 50,
text: {
head: "@@fixwidth@@",
desc: "@@fixwidthwarn@@",
after: "px @@above@@"
}
}, {
id: "size",
storage: "size",
checkbox: false,
doubleText: false,
width: 50,
setValue: 13,
text: {
head: "@@fontsize@@",
2019-08-07 13:14:07 +10:00
desc: "<span style=\"font-size:13px\">13px(@@absolute@@)</span>",
2019-05-19 17:39:30 +10:00
after: "px"
}
}, {
id: "ha",
storage: "ha",
checkbox: true,
setValue: false,
text: {
head: "@@hardwareAcceleration@@",
desc: "@@hardwareAccelerationWarn@@",
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: "@@timemode@@",
2019-08-07 13:14:07 +10:00
desc: "@@relativetime@@<br>@@absolutetime@@<br>@@mixtime@@",
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: "@@relativesel@@",
value: "relative"
}, {
text: "@@absolutesel@@",
value: "absolute"
}, {
text: "@@doublesel@@",
value: "double"
}, {
text: "@@mixsel@@",
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: "@@locale@@",
desc: "@@localewarn@@",
checkbox: yesno
}
}, {
id: "nsfw",
storage: "nsfw",
checkbox: true,
setValue: "yes",
text: {
head: "@@nswf@@",
desc: "@@nsfwwarn@@",
checkbox: yesno
}
}, {
id: "cw",
storage: "cw",
checkbox: true,
setValue: "yes",
text: {
head: "@@cw@@",
desc: "",
checkbox: yesno
}
}, {
id: "rp",
storage: "replyct",
checkbox: true,
setValue: "hidden",
text: {
head: "@@replyct@@",
desc: "",
checkbox: [
2019-03-15 22:12:11 +11:00
{
2019-05-19 17:39:30 +10:00
text: "@@replyct_hidden@@",
value: "hidden"
}, {
text: "@@replyct_hidden@@",
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: "@@gif@@",
desc: "",
checkbox: yesno
}
}, {
id: "tag",
storage: "tag-range",
checkbox: true,
setValue: "local",
text: {
head: "@@tag@@",
desc: "",
checkbox: [
2019-03-15 22:12:11 +11:00
{
2019-05-19 17:39:30 +10:00
text: "@@tagfed@@",
value: "all"
}, {
text: "@@taglocal@@",
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: "@@via@@",
desc: "",
checkbox: yesno
}
}, {
id: "mov",
storage: "mouseover",
checkbox: true,
setValue: "no",
text: {
head: "@@mouseover@@",
desc: "@@mouseoverwarn@@",
checkbox: [
2019-03-15 22:12:11 +11:00
{
2019-05-19 17:39:30 +10:00
text: "@@mv@@",
value: "yes"
}, {
text: "@@mvclick@@",
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: "@@notfmarker@@",
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: "@@autofold@@",
desc: "@@autofoldwarn@@",
}
}, {
id: "img-height",
storage: "img-height",
checkbox: false,
doubleText: false,
width: 80,
setValue: 200,
text: {
head: "@@imgheight@@",
2019-08-07 13:14:07 +10:00
desc: "@@imgheightwarn@@",
2019-05-19 17:39:30 +10:00
after: "px"
}
}, {
id: "ticker",
storage: "ticker_ok",
checkbox: true,
setValue: "no",
text: {
head: "@@ticker@@",
2019-08-07 13:14:07 +10:00
desc: "@@tickerwarn@@",
2019-05-19 17:39:30 +10:00
checkbox: yesno
}
}, {
id: "anime",
storage: "animation",
checkbox: true,
setValue: "yes",
text: {
head: "@@animation@@",
desc: "",
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
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: "@@defaultcw@@",
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: "@@autocw@@",
desc: "@@autocwwarn@@",
}
}, {
id: "cws",
storage: "always-cw",
checkbox: true,
setValue: "no",
text: {
head: "@@cws@@",
desc: "",
checkbox: yesno
}
}, {
id: "vis",
storage: "vis",
checkbox: true,
setValue: "public",
text: {
head: "@@defaultvis@@",
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@@",
value: "memory"
}, {
text: "@@useapi@@",
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: "@@postimg@@",
desc: "",
checkbox: [
2019-03-15 22:12:11 +11:00
{
2019-05-19 17:39:30 +10:00
text: "@@showurl@@",
value: "url"
}, {
text: "@@nourl@@",
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: "@@box@@",
desc: "",
checkbox: [
2019-03-15 22:12:11 +11:00
{
2019-05-19 17:39:30 +10:00
text: "@@boxyes@@",
value: "yes"
}, {
text: "@@boxno@@",
value: "no"
}, {
text: "@@boxabs@@",
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@@",
desc: "",
checkbox: [
2019-03-15 22:12:11 +11:00
{
2019-05-19 17:39:30 +10:00
text: "@@simple@@",
value: "simple"
}, {
text: "@@mention@@",
value: "mention"
}, {
text: "@@full@@",
value: "full"
}, {
text: "@@notqt@@",
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: "@@main@@",
desc: "@@mainwarn@@",
checkbox: [
2019-03-15 22:12:11 +11:00
{
2019-05-19 17:39:30 +10:00
text: "@@lastacct@@",
value: "remain"
}, {
text: "@@usemainacct@@",
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@@",
desc: "",
checkbox: [
2019-03-15 22:12:11 +11:00
{
2019-05-19 17:39:30 +10:00
text: "@@nothing@@",
value: "nothing"
}, {
text: "@@public@@",
value: "public"
}, {
text: "@@unlisted@@",
value: "unlisted"
}, {
text: "@@private@@",
value: "private"
}, {
text: "@@direct@@",
value: "direct"
}, {
text: "@@localonly@@",
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: "@@zeroWidthEmoji@@",
desc: "",
checkbox: yesno
2019-04-11 03:59:13 +10:00
}
2019-03-15 22:12:11 +11:00
}
]