<commit_before><template>
  <v-container fluid>
    <content-card :title="$tc('views.camps.title', camps.items.length)" max-width="800">
      <v-list class="py-0">
        <template v-if="camps._meta.loading">
          <v-skeleton-loader type="list-item-two-line" height="64" />
          <v-skeleton-loader type="list-item-two-line" height="64" />
        </template>
        <v-list-item
          v-for="camp in camps.items"
          :key="camp.id"
          two-line>
          <v-list-item-content @click.prevent="goToCamp(camp)">
            <v-list-item-title>{{ camp.title }}</v-list-item-title>
            <v-list-item-subtitle>
              {{ camp.name }} - {{ camp.campType().organization().name }}
            </v-list-item-subtitle>
          </v-list-item-content>
          <v-list-item-action>
            <dialog-entity-delete :entity="camp">
              <template v-slot:activator="{ on }">
                <button-delete @click.prevent="on.click" />
              </template>
              {{ $tc('components.dialog.dialogEntityDelete.warningText') }}
              <ul>
                <li>{{ camp.title }}</li>
              </ul>
            </dialog-entity-delete>
          </v-list-item-action>
        </v-list-item>
        <v-divider />
        <v-list-item>
          <v-list-item-content />
          <v-list-item-action>
            <button-add
              icon="mdi-plus"
              :to="{ name: 'camps/create' }">
              {{ $tc('views.camps.create') }}
            </button-add>
          </v-list-item-action>
        </v-list-item>
      </v-list>
    </content-card>
  </v-container>
</template>

<script>
import router, { campRoute } from '@/router'
import ContentCard from '@/components/layout/ContentCard'
import ButtonAdd from '@/components/buttons/ButtonAdd'
import ButtonDelete from '@/components/buttons/ButtonDelete'
import DialogEntityDelete from '@/components/dialog/DialogEntityDelete'

export default {<commit_msg>Update frontend/src/views/Camps.vue<commit_after><template>
  <v-container fluid>
    <content-card :title="$tc('views.camps.title', camps.items.length)" max-width="800">
      <v-list class="py-0">
        <template v-if="camps._meta.loading">
          <v-skeleton-loader type="list-item-two-line" height="64" />
          <v-skeleton-loader type="list-item-two-line" height="64" />
        </template>
        <v-list-item
          v-for="camp in camps.items"
          :key="camp.id"
          two-line>
          <v-list-item-content @click.prevent="goToCamp(camp)">
            <v-list-item-title>{{ camp.title }}</v-list-item-title>
            <v-list-item-subtitle>
              {{ camp.name }} - {{ camp.campType().organization().name }}
            </v-list-item-subtitle>
          </v-list-item-content>
          <v-list-item-action>
            <dialog-entity-delete :entity="camp">
              <template v-slot:activator="{ on }">
                <button-delete @click.prevent="on.click" />
              </template>
              {{ $tc('components.dialog.dialogEntityDelete.warningText') }}
              <ul>
                <li>{{ camp.title }}</li>
              </ul>
            </dialog-entity-delete>
          </v-list-item-action>
        </v-list-item>
        <v-divider />
        <v-list-item>
          <v-list-item-content />
          <v-list-item-action>
            <button-add
              icon="mdi-plus"
              :to="{ name: 'camps/create' }">
              {{ $tc('views.camps.create') }}
            </button-add>
          </v-list-item-action>
        </v-list-item>
      </v-list>
    </content-card>
  </v-container>
</template>

<script>
import { campRoute } from '@/router'
import ContentCard from '@/components/layout/ContentCard'
import ButtonAdd from '@/components/buttons/ButtonAdd'
import ButtonDelete from '@/components/buttons/ButtonDelete'
import DialogEntityDelete from '@/components/dialog/DialogEntityDelete'

export default {
{'fraction_non_alphanumeric': 0.17219708396178984, 'fraction_numerical': 0.004022121669180492, 'mean_word_length': 1.8896151053013799, 'pattern_counts': {'":': 0, '<': 83, '<?xml version=': 0, '>': 83, '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': '7292365', 'n_tokens_mistral': 1244, 'n_tokens_neox': 1219, 'n_words': 186}