Skip to content

Commit

Permalink
style(lint): auto-fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
WikiRik committed Sep 26, 2023
1 parent 50d8b79 commit 2e695ad
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 70 deletions.
4 changes: 2 additions & 2 deletions src/views/core/bodies/ChangeBoardModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<header class="modal-card-head">
<p class="modal-card-title" v-if="edit">Edit board</p>
<p class="modal-card-title" v-else>Add board</p>
<button class="delete" aria-label="close" @click="$parent.close()"></button>
<button class="delete" aria-label="close" @click="$parent.close()" />
</header>
<section class="modal-card-body">

Expand Down Expand Up @@ -122,7 +122,7 @@
<div class="control">
<b-input type="textarea" v-model="board.message" />
</div>
<label class="label">Preview <MarkdownTooltip/></label>
<label class="label">Preview <MarkdownTooltip /></label>
<div class="content">
<span v-html="$options.filters.markdown(board.message)" />
</div>
Expand Down
58 changes: 29 additions & 29 deletions src/views/core/bodies/Single.vue
Original file line number Diff line number Diff line change
Expand Up @@ -173,35 +173,35 @@
<div class="content">
<p class="subtitle">Board</p>
<div class="content" v-for="board in boards" v-bind:key="board.id">
<table class="table is-narrow">
<tbody>
<tr v-if="board.name">
<th>Name</th>
<td>{{ board.name }}</td>
</tr>
<tr>
<th>Term</th>
<td>{{ board.start_date }} - {{ board.end_date }}</td>
</tr>
<tr>
<th>President</th>
<td>{{ board.president_user.first_name }} {{ board.president_user.last_name }}</td>
</tr>
<tr>
<th>Secretary</th>
<td>{{ board.secretary_user.first_name }} {{ board.secretary_user.last_name }}</td>
</tr>
<tr>
<th>Treasurer</th>
<td>{{ board.treasurer_user.first_name }} {{ board.treasurer_user.last_name }}</td>
</tr>
<tr v-for="position in board.other_members" v-bind:key="position.index">
<th>{{ position.function }}</th>
<td>{{ position.user.first_name }} {{ position.user.last_name }}</td>
</tr>
</tbody>
</table>
</div>
<table class="table is-narrow">
<tbody>
<tr v-if="board.name">
<th>Name</th>
<td>{{ board.name }}</td>
</tr>
<tr>
<th>Term</th>
<td>{{ board.start_date }} - {{ board.end_date }}</td>
</tr>
<tr>
<th>President</th>
<td>{{ board.president_user.first_name }} {{ board.president_user.last_name }}</td>
</tr>
<tr>
<th>Secretary</th>
<td>{{ board.secretary_user.first_name }} {{ board.secretary_user.last_name }}</td>
</tr>
<tr>
<th>Treasurer</th>
<td>{{ board.treasurer_user.first_name }} {{ board.treasurer_user.last_name }}</td>
</tr>
<tr v-for="position in board.other_members" v-bind:key="position.index">
<th>{{ position.function }}</th>
<td>{{ position.user.first_name }} {{ position.user.last_name }}</td>
</tr>
</tbody>
</table>
</div>
</div>
</article>

Expand Down
72 changes: 36 additions & 36 deletions src/views/core/bodies/ViewBoards.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,45 +8,45 @@
<template v-for="(board, index) in boards">
<b-collapse class="card" animation="slide" :open="false" v-bind:key="index">
<template #trigger="props">
<div class="card-header" role="button">
<p class="card-header-title" v-if="!board.name">
{{ board.start_date }} - {{ board.end_date }}
</p>
<p class="card-header-title" v-else>
{{ board.name }} ({{ board.start_date }} - {{ board.end_date }})
</p>
<a class="card-header-icon">
<span class="icon is-small is-angle">
<font-awesome-icon :icon="['fa', 'angle-down']" v-if="!props.open" />
<font-awesome-icon :icon="['fa', 'angle-up']" v-else />
</span>
</a>
</div>
<div class="card-header" role="button">
<p class="card-header-title" v-if="!board.name">
{{ board.start_date }} - {{ board.end_date }}
</p>
<p class="card-header-title" v-else>
{{ board.name }} ({{ board.start_date }} - {{ board.end_date }})
</p>
<a class="card-header-icon">
<span class="icon is-small is-angle">
<font-awesome-icon :icon="['fa', 'angle-down']" v-if="!props.open" />
<font-awesome-icon :icon="['fa', 'angle-up']" v-else />
</span>
</a>
</div>
</template>

<div class="card-content">
<div class="content">
<table class="table is-narrow">
<tbody>
<tr>
<th>President</th>
<td>{{ board.president_user ? board.president_user.first_name : 'Deleted' }} {{ board.president_user ? board.president_user.last_name : 'User' }}</td>
</tr>
<tr>
<th>Secretary</th>
<td>{{ board.secretary_user ? board.secretary_user.first_name : 'Deleted' }} {{ board.secretary_user ? board.secretary_user.last_name : 'User' }}</td>
</tr>
<tr>
<th>Treasurer</th>
<td>{{ board.treasurer_user ? board.treasurer_user.first_name : 'Deleted' }} {{ board.treasurer_user ? board.treasurer_user.last_name : 'User' }}</td>
</tr>
<tr v-for="position in board.other_members" v-bind:key="position.index">
<th>{{ position.function }}</th>
<td>{{ position.user ? position.user.first_name : 'Deleted' }} {{ position.user ? position.user.last_name : 'User' }}</td>
</tr>
</tbody>
</table>
</div>
<div class="content">
<table class="table is-narrow">
<tbody>
<tr>
<th>President</th>
<td>{{ board.president_user ? board.president_user.first_name : 'Deleted' }} {{ board.president_user ? board.president_user.last_name : 'User' }}</td>
</tr>
<tr>
<th>Secretary</th>
<td>{{ board.secretary_user ? board.secretary_user.first_name : 'Deleted' }} {{ board.secretary_user ? board.secretary_user.last_name : 'User' }}</td>
</tr>
<tr>
<th>Treasurer</th>
<td>{{ board.treasurer_user ? board.treasurer_user.first_name : 'Deleted' }} {{ board.treasurer_user ? board.treasurer_user.last_name : 'User' }}</td>
</tr>
<tr v-for="position in board.other_members" v-bind:key="position.index">
<th>{{ position.function }}</th>
<td>{{ position.user ? position.user.first_name : 'Deleted' }} {{ position.user ? position.user.last_name : 'User' }}</td>
</tr>
</tbody>
</table>
</div>
</div>

<footer class="card-footer">
Expand Down
5 changes: 2 additions & 3 deletions src/views/network/BoardListing.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<input class="input" type="text" v-model="query" placeholder="Search by name, body code or abbreviation" @input="refetch()">
</div>
<div class="control" v-if="can.viewDeleted">
<a class="button is-info" v-if="includeDeleted" @click="toggleIncludeDeleted()">Only show active bodies</a>
<a class="button is-info" v-if="includeDeleted" @click="toggleIncludeDeleted()">Only show active bodies</a>
<a class="button is-info" v-if="!includeDeleted" @click="toggleIncludeDeleted()">Also show deleted bodies</a>
</div>
</div>
Expand All @@ -30,8 +30,7 @@
placeholder="Select body types"
track-by="value"
label="name"
@input="refetch">
</multiselect>
@input="refetch" />
</div>
</div>

Expand Down

0 comments on commit 2e695ad

Please sign in to comment.