add randomized posting form placeholders
This commit is contained in:
parent
7e42d667bc
commit
e66387972b
1 changed files with 22 additions and 0 deletions
|
|
@ -151,6 +151,27 @@ const PostStatusForm = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
|
const allPlaceholders =
|
||||||
|
[
|
||||||
|
"Just arrived at Virgo Synthetics",
|
||||||
|
"Just landed in the Outer Rim",
|
||||||
|
"What Synth propaganda will you post today?",
|
||||||
|
"Beep!",
|
||||||
|
"beep beep beep",
|
||||||
|
"Merp!",
|
||||||
|
"merrrrrrrrrrp",
|
||||||
|
"BEEP BEEP BEEP BEEP BEEP BEEP BEEP BEEP BEEP BEEP BEEP BEEP",
|
||||||
|
"What do you want to say?",
|
||||||
|
"[insert Misskey reference here]",
|
||||||
|
"[insert Pleroma reference here]",
|
||||||
|
"[insert Iceshrimp reference here]",
|
||||||
|
"The",
|
||||||
|
"Just arrived at... wait, what?",
|
||||||
|
"What Flash game to post today?",
|
||||||
|
"brb recharging"
|
||||||
|
]
|
||||||
|
var buildPostPlaceholder = allPlaceholders[Math.floor(Math.random() * allPlaceholders.length)]
|
||||||
|
|
||||||
const preset = this.$route.query.message
|
const preset = this.$route.query.message
|
||||||
let statusText = preset || ''
|
let statusText = preset || ''
|
||||||
|
|
||||||
|
|
@ -232,6 +253,7 @@ const PostStatusForm = {
|
||||||
posting: false,
|
posting: false,
|
||||||
highlighted: 0,
|
highlighted: 0,
|
||||||
newStatus: statusParams,
|
newStatus: statusParams,
|
||||||
|
placeholder: buildPostPlaceholder,
|
||||||
caret: 0,
|
caret: 0,
|
||||||
pollFormVisible: false,
|
pollFormVisible: false,
|
||||||
showDropIcon: 'hide',
|
showDropIcon: 'hide',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue