mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-07-04 01:58:31 +00:00
4.0.0-rc20
* Added: Room Actions for Chat. Easily send canned messages or open relevant links. * Changed: Refactor how action data is passed to in-line chat actions. Should perform better now, and also allow using the message text in actions. * Changed: Blacklist a few errors from automatic error reporting. * Fixed: Include the Squad Bar when calculating the player height for Portrait Mode. * Fixed: Issue with rich content embeds breaking chat rendering when an error occurs loading their data. * Fixed: Duplicate icon keys in chat action editor.
This commit is contained in:
parent
c920b43e01
commit
5500b6eef3
14 changed files with 312 additions and 67 deletions
|
@ -27,7 +27,7 @@
|
|||
</label>
|
||||
</div>
|
||||
|
||||
<div v-if="item.inline" class="tw-pd-x-1 tw-checkbox">
|
||||
<div v-if="item.inline && has_msg" class="tw-pd-x-1 tw-checkbox">
|
||||
<input
|
||||
id="is_deleted"
|
||||
ref="is_deleted"
|
||||
|
@ -76,6 +76,7 @@
|
|||
<div
|
||||
:data-user="JSON.stringify(sample_user)"
|
||||
:data-room="JSON.stringify(sample_room)"
|
||||
:data-message="JSON.stringify(sample_message)"
|
||||
class="ffz-action-data tw-pd-t-1"
|
||||
data-msg-id="1234-5678"
|
||||
>
|
||||
|
@ -169,7 +170,7 @@
|
|||
</span>
|
||||
</button>
|
||||
<button
|
||||
v-if="! val.length"
|
||||
v-if="! val.length && has_default"
|
||||
class="tw-mg-l-1 tw-button tw-button--text tw-tooltip-wrapper"
|
||||
@click="populate"
|
||||
>
|
||||
|
@ -191,6 +192,7 @@
|
|||
:action="act"
|
||||
:data="data"
|
||||
:inline="item.inline"
|
||||
:context="item.context"
|
||||
@remove="remove(act)"
|
||||
@save="save(act, $event)"
|
||||
/>
|
||||
|
@ -222,18 +224,6 @@ export default {
|
|||
show_all: false,
|
||||
|
||||
add_open: false,
|
||||
|
||||
sample_user: {
|
||||
displayName: 'SirStendec',
|
||||
login: 'sirstendec',
|
||||
id: 49399878
|
||||
},
|
||||
|
||||
sample_room: {
|
||||
displayName: 'FrankerFaceZ',
|
||||
login: 'frankerfacez',
|
||||
id: 46622312
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -244,6 +234,46 @@ export default {
|
|||
return true;
|
||||
},
|
||||
|
||||
sample_user() {
|
||||
return this.has_user ? {
|
||||
displayName: 'SirStendec',
|
||||
login: 'sirstendec',
|
||||
id: 49399878,
|
||||
color: '#008000'
|
||||
} : null
|
||||
},
|
||||
|
||||
sample_room() {
|
||||
return this.has_room ? {
|
||||
displayName: 'FrankerFaceZ',
|
||||
login: 'frankerfacez',
|
||||
id: 46622312
|
||||
} : null
|
||||
},
|
||||
|
||||
sample_message() {
|
||||
return this.has_msg ? {
|
||||
id: '46a473ee-a3c4-4556-a5ca-c0f1eac93ec0',
|
||||
text: 'sirstendec: Please do not do that.'
|
||||
} : null
|
||||
},
|
||||
|
||||
has_default() {
|
||||
return this.default_value && this.default_value.length
|
||||
},
|
||||
|
||||
has_user() {
|
||||
return this.item.context && this.item.context.includes('user')
|
||||
},
|
||||
|
||||
has_room() {
|
||||
return this.item.context && this.item.context.includes('room')
|
||||
},
|
||||
|
||||
has_msg() {
|
||||
return this.item.context && this.item.context.includes('message')
|
||||
},
|
||||
|
||||
presets() {
|
||||
const out = [],
|
||||
contexts = this.item.context || [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue