<commit_before><template>
    <full-calendar ref="calendar" :options="calendarOptions"></full-calendar>
</template>

<script>
import '@fullcalendar/core/vdom';
import FullCalendar from '@fullcalendar/vue';
import allLocales from '@fullcalendar/core/locales-all';
import luxon2Plugin from '@fullcalendar/luxon2';
import timeGridPlugin from '@fullcalendar/timegrid';

export default {
    name: 'Schedule',
    components: {FullCalendar},
    props: {
        scheduleUrl: String,
        stationTimeZone: String
    },
    data() {
        return {
            calendarOptions: {
                locale: App.locale_short,
                locales: allLocales,
                plugins: [luxon2Plugin, timeGridPlugin],
                initialView: 'timeGridWeek',
                timeZone: this.stationTimeZone,
                themeSystem: 'bootstrap',
                nowIndicator: true,
                defaultTimedEventDuration: '00:20',
                headerToolbar: false,
                footerToolbar: false,
                height: 'auto',
                events: this.scheduleUrl,
                eventClick: this.onEventClick,
                eventDidMount: this.onEventDidMount
            }
        };
    },
    methods: {
        refresh() {

        },
        onEventDidMount(info) {
            $(info.el).tooltip({
                title: info.event.extendedProps.description,
                placement: 'top',
                trigger: 'hover',
                container: 'body',
                offset: 0
            });
        },
        onEventClick(arg) {
            this.$emit('click', arg.event);
        }<commit_msg>Fix schedule view sidebar not using 12/24 hour setting.<commit_after><template>
    <full-calendar ref="calendar" :options="calendarOptions"></full-calendar>
</template>

<script>
import '@fullcalendar/core/vdom';
import FullCalendar from '@fullcalendar/vue';
import allLocales from '@fullcalendar/core/locales-all';
import luxon2Plugin from '@fullcalendar/luxon2';
import timeGridPlugin from '@fullcalendar/timegrid';

export default {
    name: 'Schedule',
    components: {FullCalendar},
    props: {
        scheduleUrl: String,
        stationTimeZone: String
    },
    data() {
        return {
            calendarOptions: {
                locale: App.locale_short,
                locales: allLocales,
                plugins: [luxon2Plugin, timeGridPlugin],
                initialView: 'timeGridWeek',
                timeZone: this.stationTimeZone,
                themeSystem: 'bootstrap',
                nowIndicator: true,
                defaultTimedEventDuration: '00:20',
                headerToolbar: false,
                footerToolbar: false,
                height: 'auto',
                events: this.scheduleUrl,
                eventClick: this.onEventClick,
                eventDidMount: this.onEventDidMount,
                views: {
                    timeGridWeek: {
                        slotLabelFormat: {
                            ...App.time_config,
                            hour: 'numeric',
                            minute: '2-digit',
                            omitZeroMinute: true,
                            meridiem: 'short'
                        }
                    }
                }
            }
        };
    },
    methods: {
        refresh() {

        },
        onEventDidMount(info) {
            $(info.el).tooltip({
                title: info.event.extendedProps.description,
                placement: 'top',
                trigger: 'hover',
                container: 'body',
                offset: 0
            });
        },
        onEventClick(arg) {
            this.$emit('click', arg.event);
        }
{'fraction_non_alphanumeric': 0.10265344411685876, 'fraction_numerical': 0.005628517823639775, 'mean_word_length': 1.488, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7241481', 'n_tokens_mistral': 970, 'n_tokens_neox': 908, 'n_words': 188}