2023-09-29 10:08:43 +00:00
|
|
|
var config = {
|
|
|
|
props: ['config'],
|
|
|
|
template: `
|
|
|
|
<div>
|
|
|
|
<h4>Frab Plugin</h4>
|
|
|
|
<div class='row'>
|
|
|
|
<div class='col-xs-3'>
|
2023-09-30 08:02:33 +00:00
|
|
|
Display Mode<br/>
|
2023-09-29 10:08:43 +00:00
|
|
|
<select class='btn btn-default' v-model="mode">
|
|
|
|
<option value="all_talks">All Talks</option>
|
|
|
|
<option value="next_talk">Next Talk</option>
|
|
|
|
<option value="room">Room Name</option>
|
|
|
|
<option value="day">Day</option>
|
2023-12-18 10:30:50 +00:00
|
|
|
<option value="clock">Clock</option>
|
2023-12-19 09:40:30 +00:00
|
|
|
<option value="info">Info text</option>
|
2023-09-29 10:08:43 +00:00
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class='col-xs-3'>
|
2023-09-30 08:07:18 +00:00
|
|
|
Text Colour<br/>
|
2023-09-29 10:08:43 +00:00
|
|
|
<input
|
|
|
|
type="color"
|
|
|
|
v-model="color"
|
|
|
|
class='form-control'/>
|
|
|
|
</div>
|
|
|
|
<div class='col-xs-3'>
|
2023-09-30 08:01:04 +00:00
|
|
|
Font Size<br/>
|
|
|
|
<input
|
|
|
|
type="number"
|
|
|
|
class='form-control'
|
|
|
|
v-model="font_size" />
|
2023-09-29 10:08:43 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<template v-if='mode == "all_talks"'>
|
|
|
|
<h4>All Talks options</h4>
|
|
|
|
<div class='row'>
|
|
|
|
<div class='col-xs-3'>
|
|
|
|
<input
|
|
|
|
type="checkbox"
|
|
|
|
v-model="all_speakers"
|
|
|
|
class='form-check-input'/>
|
|
|
|
Show speaker names
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<template v-if='mode == "next_talk"'>
|
|
|
|
<h4>Next Talk options</h4>
|
|
|
|
<div class='row'>
|
|
|
|
<div class='col-xs-3'>
|
|
|
|
<input
|
|
|
|
type="checkbox"
|
|
|
|
v-model="next_abstract"
|
|
|
|
class='form-check-input'/>
|
|
|
|
Show abstract
|
|
|
|
</div>
|
2023-09-30 08:07:18 +00:00
|
|
|
<div class='col-xs-3'>
|
|
|
|
<input
|
|
|
|
type="checkbox"
|
|
|
|
v-model="next_track_text"
|
|
|
|
class='form-check-input'/>
|
|
|
|
Show track name instead of coloured bar
|
|
|
|
</div>
|
2023-09-29 10:08:43 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
2023-09-29 13:50:27 +00:00
|
|
|
<template v-if='mode == "room"'>
|
2023-12-18 10:30:50 +00:00
|
|
|
<h4>Room options</h4>
|
2023-09-29 13:50:27 +00:00
|
|
|
<div class='row'>
|
|
|
|
<div class='col-xs-3'>
|
2023-09-30 08:02:33 +00:00
|
|
|
Alignment<br/>
|
2023-09-29 13:50:27 +00:00
|
|
|
<select class='btn btn-default' v-model="room_align">
|
|
|
|
<option value="left">Align left</option>
|
|
|
|
<option value="center">Align centered</option>
|
|
|
|
<option value="right">Align right</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
2023-09-30 12:14:47 +00:00
|
|
|
<div class='col-xs-3'>
|
|
|
|
<input
|
|
|
|
type="checkbox"
|
|
|
|
v-model="room_animate"
|
|
|
|
class='form-check-input'/>
|
|
|
|
Fade in and out
|
|
|
|
</div>
|
2023-09-29 13:50:27 +00:00
|
|
|
</div>
|
2023-09-29 13:52:00 +00:00
|
|
|
</template>
|
2023-12-18 10:30:50 +00:00
|
|
|
<template v-if='mode == "clock"'>
|
|
|
|
<h4>Clock options</h4>
|
|
|
|
<div class='row'>
|
|
|
|
<div class='col-xs-3'>
|
|
|
|
Alignment<br/>
|
|
|
|
<select class='btn btn-default' v-model="clock_align">
|
|
|
|
<option value="left">Align left</option>
|
|
|
|
<option value="center">Align centered</option>
|
|
|
|
<option value="right">Align right</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class='col-xs-3'>
|
|
|
|
<input
|
|
|
|
type="checkbox"
|
|
|
|
v-model="clock_animate"
|
|
|
|
class='form-check-input'/>
|
|
|
|
Fade in and out
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
2023-09-29 10:08:43 +00:00
|
|
|
<template v-if='mode == "day"'>
|
2023-09-29 13:53:48 +00:00
|
|
|
<h4>Day options</h4>
|
2023-09-29 10:08:43 +00:00
|
|
|
<div class='row'>
|
|
|
|
<div class='col-xs-3'>
|
2023-09-30 08:02:33 +00:00
|
|
|
Alignment<br/>
|
2023-09-29 10:08:43 +00:00
|
|
|
<select class='btn btn-default' v-model="day_align">
|
|
|
|
<option value="left">Align left</option>
|
|
|
|
<option value="center">Align centered</option>
|
|
|
|
<option value="right">Align right</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class='col-xs-3'>
|
2023-09-30 08:01:04 +00:00
|
|
|
Format<br/>
|
2023-09-29 10:08:43 +00:00
|
|
|
<input
|
|
|
|
type="text"
|
|
|
|
v-model="day_template"
|
|
|
|
placeholder="Template: 'Day %s'"
|
|
|
|
class='form-control'/>
|
|
|
|
</div>
|
2023-09-30 12:14:47 +00:00
|
|
|
<div class='col-xs-3'>
|
|
|
|
<input
|
|
|
|
type="checkbox"
|
|
|
|
v-model="day_animate"
|
|
|
|
class='form-check-input'/>
|
|
|
|
Fade in and out
|
|
|
|
</div>
|
2023-09-29 10:08:43 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
2023-12-19 09:40:30 +00:00
|
|
|
<template v-if='mode == "info"'>
|
|
|
|
<h4>Info options</h4>
|
|
|
|
<div class='row'>
|
|
|
|
<div class='col-xs-3'>
|
|
|
|
Alignment<br/>
|
|
|
|
<select class='btn btn-default' v-model="info_align">
|
|
|
|
<option value="left">Align left</option>
|
|
|
|
<option value="center">Align centered</option>
|
|
|
|
<option value="right">Align right</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class='col-xs-3'>
|
|
|
|
Text source<br/>
|
|
|
|
<select class='btn btn-default' v-model="info_text_source">
|
|
|
|
<option value="a">Text A</option>
|
|
|
|
<option value="b">Text B</option>
|
2024-02-25 08:28:12 +00:00
|
|
|
<option value="image_a">Image A</option>
|
|
|
|
<option value="image_b">Image B</option>
|
2023-12-19 09:40:30 +00:00
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class='col-xs-3'>
|
|
|
|
<input
|
|
|
|
type="checkbox"
|
|
|
|
v-model="info_animate"
|
|
|
|
class='form-check-input'/>
|
|
|
|
Fade in and out
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
2023-09-29 10:08:43 +00:00
|
|
|
</div>
|
|
|
|
`,
|
|
|
|
computed: {
|
|
|
|
mode: ChildTile.config_value('mode', 'all_talks'),
|
|
|
|
color: ChildTile.config_value('color', '#ffffff'),
|
|
|
|
font_size: ChildTile.config_value('font_size', 70, parseInt),
|
2023-09-30 12:14:47 +00:00
|
|
|
|
2023-09-29 13:33:46 +00:00
|
|
|
all_speakers: ChildTile.config_value('all_speakers', true),
|
2023-09-30 12:14:47 +00:00
|
|
|
|
2023-09-29 10:08:43 +00:00
|
|
|
next_abstract: ChildTile.config_value('next_abstract', false),
|
2023-09-30 08:07:18 +00:00
|
|
|
next_track_text: ChildTile.config_value('next_track_text', false),
|
2023-09-30 12:14:47 +00:00
|
|
|
|
2023-09-29 13:50:27 +00:00
|
|
|
room_align: ChildTile.config_value('room_align', 'left'),
|
2023-09-30 12:14:47 +00:00
|
|
|
room_animate: ChildTile.config_value('room_animate', true),
|
|
|
|
|
2023-12-18 10:30:50 +00:00
|
|
|
clock_align: ChildTile.config_value('clock_align', 'left'),
|
2023-12-19 09:40:30 +00:00
|
|
|
clock_animate: ChildTile.config_value('clock_animate', false),
|
2023-12-18 10:30:50 +00:00
|
|
|
|
2023-09-29 10:08:43 +00:00
|
|
|
day_align: ChildTile.config_value('day_align', 'left'),
|
|
|
|
day_template: ChildTile.config_value('day_template', 'Day %d'),
|
2023-09-30 12:14:47 +00:00
|
|
|
day_animate: ChildTile.config_value('day_animate', false),
|
2023-12-19 09:40:30 +00:00
|
|
|
|
|
|
|
info_align: ChildTile.config_value('info_align', 'left'),
|
|
|
|
info_animate: ChildTile.config_value('info_animate', true),
|
|
|
|
info_text_source: ChildTile.config_value('info_text_source', 'a'),
|
2023-09-29 10:08:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ChildTile.register({
|
|
|
|
config: config,
|
|
|
|
});
|