<commit_before><template>
    <div>
        <table class='highlight striped centered'>
            <thead>
                <tr>
                    <th>Disciplina</th>
                    <th>Unidade</th>
                    <th>Data</th>
                    <th>Horário</th>
                    <th>Sala</th>
                    <th>Vagas</th>
                    <th>Editar</th>
                    <th>Ativo</th>
                </tr>
            </thead>
            <tbody>
                <tr :id="''+ horario.codigo"
                    v-for="horario in horarios" 
                    v-if="horario.disciplina === horario.filtroDisciplina && horario.filtroStatus === true">

                    <td>{{ horario.disciplina }}</td>
                    <td>{{ horario.unidade }}</td>
                    <td>{{ horario.data | dataFormatada }}</td>
                    <td>{{ horario.data | horarioFormatado }}</td>
                    <td>{{ horario.sala }}</td>
                    <td>{{ horario.vagas }}</td>
                    <td>
                        <a class="btn-floating btn-small waves-effect waves-light red modal-trigger" :class="horario.botaoEdicao" href="#modalEdicao" @click="editarCadastro(horario)"><i class="material-icons">edit</i></a>
                    </td>
                    <td>
                        <div class = "switch">
                            <label><input type = "checkbox" :checked="horario.status" @change="alterarStatus(horario, $event)"><span class = "lever"></span></label>
                        </div> 
                    </td>
                </tr>
            </tbody>
        </table>

        <div class="row center">
            <ul class="pagination">
                <li class="disabled"><a href="#!"><i class="material-icons">chevron_left</i></a></li>
                <li class="active"><a href="#!">1</a></li>
                <li class="waves-effect"><a href="#!">2</a></li>
                <li class="waves-effect"><a href="#!">3</a></li>
                <li class="waves-effect"><a href="#!">4</a></li>
                <li class="waves-effect"><a href="#!">5</a></li>
                <li class="waves-effect"><a href="#!"><i class="material-icons">chevron_right</i></a></li>
            </ul>
        </div>

        <modal-edicao :horario="horarioEditado" :disciplinas="listaDeDisciplinas"></modal-edicao>

    </div>
</template>

<script>
    import { Dados } from './Dados.js'
    import moment from 'moment';
    import sweetalert from 'sweetalert';
    import {firebase} from '../../Firebase'
    const firebaseDatabase = firebase.database();
    const disciplinasRef = firebaseDatabase.ref('disciplina');
    import ModalEdicao from './ModalEdicao'

export default {
    components: {
        ModalEdicao
    },
    data() {
        return {
            horarios: [],
            unidades: '',
            disciplinas: [],
            status: '',
            horarioEditado: '',
            listaDeDisciplinas: []
        };
    },

    mounted: function() {
        $('.modal').modal();
        var disciplinasPromise = disciplinasRef.once('value');<commit_msg>retirando paginação<commit_after><template>
    <div>
        <table class='highlight striped centered'>
            <thead>
                <tr>
                    <th>Disciplina</th>
                    <th>Unidade</th>
                    <th>Data</th>
                    <th>Horário</th>
                    <th>Sala</th>
                    <th>Vagas</th>
                    <th>Editar</th>
                    <th>Ativo</th>
                </tr>
            </thead>
            <tbody>
                <tr :id="''+ horario.codigo"
                    v-for="horario in horarios" 
                    v-if="horario.disciplina === horario.filtroDisciplina && horario.filtroStatus === true">

                    <td>{{ horario.disciplina }}</td>
                    <td>{{ horario.unidade }}</td>
                    <td>{{ horario.data | dataFormatada }}</td>
                    <td>{{ horario.data | horarioFormatado }}</td>
                    <td>{{ horario.sala }}</td>
                    <td>{{ horario.vagas }}</td>
                    <td>
                        <a class="btn-floating btn-small waves-effect waves-light red modal-trigger" :class="horario.botaoEdicao" href="#modalEdicao" @click="editarCadastro(horario)"><i class="material-icons">edit</i></a>
                    </td>
                    <td>
                        <div class = "switch">
                            <label><input type = "checkbox" :checked="horario.status" @change="alterarStatus(horario, $event)"><span class = "lever"></span></label>
                        </div> 
                    </td>
                </tr>
            </tbody>
        </table>
        <modal-edicao :horario="horarioEditado" :disciplinas="listaDeDisciplinas"></modal-edicao>
    </div>
</template>

<script>
    import { Dados } from './Dados.js'
    import moment from 'moment';
    import sweetalert from 'sweetalert';
    import {firebase} from '../../Firebase'
    const firebaseDatabase = firebase.database();
    const disciplinasRef = firebaseDatabase.ref('disciplina');
    import ModalEdicao from './ModalEdicao'

export default {
    components: {
        ModalEdicao
    },
    data() {
        return {
            horarios: [],
            unidades: '',
            disciplinas: [],
            status: '',
            horarioEditado: '',
            listaDeDisciplinas: []
        };
    },

    mounted: function() {
        $('.modal').modal();
        var disciplinasPromise = disciplinasRef.once('value');
{'fraction_non_alphanumeric': 0.16002126528442318, 'fraction_numerical': 0.000886053517632465, 'mean_word_length': 1.4797891036906854, 'pattern_counts': {'":': 0, '<': 159, '<?xml version=': 0, '>': 159, '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': '6123210', 'n_tokens_mistral': 1681, 'n_tokens_neox': 1586, 'n_words': 288}