1
0

feat: eslint enforce vue/component-name-in-template-casing

This commit is contained in:
Dominik Pschenitschni
2024-06-17 17:31:37 +02:00
committed by konrad
parent 8f094c140a
commit 23707fc493
20 changed files with 64 additions and 62 deletions

View File

@ -12,14 +12,14 @@
>
<slot />
</div>
<router-link
<RouterLink
v-else-if="to !== undefined"
ref="button"
:to="to"
class="base-button"
>
<slot />
</router-link>
</RouterLink>
<a
v-else-if="href !== undefined"
ref="button"

View File

@ -33,14 +33,14 @@
<QuickActions />
<router-view
<RouterView
v-slot="{ Component }"
:route="routeWithModal"
>
<keep-alive :include="['project.view']">
<component :is="Component" />
</keep-alive>
</router-view>
</RouterView>
<modal
:enabled="typeof currentModal !== 'undefined'"

View File

@ -20,7 +20,7 @@
{{ currentProject?.title === '' ? $t('misc.loading') : currentProject?.title }}
</h1>
<div class="box has-text-left view">
<router-view />
<RouterView />
<PoweredByLink />
</div>
</div>

View File

@ -4,7 +4,7 @@
class="menu-container"
>
<nav class="menu top-menu">
<router-link
<RouterLink
:to="{name: 'home'}"
class="logo"
>
@ -12,10 +12,10 @@
width="164"
height="48"
/>
</router-link>
</RouterLink>
<menu class="menu-list other-menu-items">
<li>
<router-link
<RouterLink
v-shortcut="'g o'"
:to="{ name: 'home'}"
>
@ -23,10 +23,10 @@
<icon icon="calendar" />
</span>
{{ $t('navigation.overview') }}
</router-link>
</RouterLink>
</li>
<li>
<router-link
<RouterLink
v-shortcut="'g u'"
:to="{ name: 'tasks.range'}"
>
@ -34,10 +34,10 @@
<icon :icon="['far', 'calendar-alt']" />
</span>
{{ $t('navigation.upcoming') }}
</router-link>
</RouterLink>
</li>
<li>
<router-link
<RouterLink
v-shortcut="'g p'"
:to="{ name: 'projects.index'}"
>
@ -45,10 +45,10 @@
<icon icon="layer-group" />
</span>
{{ $t('project.projects') }}
</router-link>
</RouterLink>
</li>
<li>
<router-link
<RouterLink
v-shortcut="'g a'"
:to="{ name: 'labels.index'}"
>
@ -56,10 +56,10 @@
<icon icon="tags" />
</span>
{{ $t('label.title') }}
</router-link>
</RouterLink>
</li>
<li>
<router-link
<RouterLink
v-shortcut="'g m'"
:to="{ name: 'teams.index'}"
>
@ -67,7 +67,7 @@
<icon icon="users" />
</span>
{{ $t('team.title') }}
</router-link>
</RouterLink>
</li>
</menu>
</nav>

View File

@ -4,7 +4,7 @@
aria-label="main navigation"
class="navbar d-print-none"
>
<router-link
<RouterLink
:to="{ name: 'home' }"
class="logo-link"
>
@ -12,7 +12,7 @@
width="164"
height="48"
/>
</router-link>
</RouterLink>
<MenuButton class="menu-button" />

View File

@ -5,20 +5,20 @@
class="pagination is-centered p-4"
role="navigation"
>
<router-link
<RouterLink
:disabled="currentPage === 1 || undefined"
:to="getRouteForPagination(currentPage - 1)"
class="pagination-previous"
>
{{ $t('misc.previous') }}
</router-link>
<router-link
</RouterLink>
<RouterLink
:disabled="currentPage === totalPages || undefined"
:to="getRouteForPagination(currentPage + 1)"
class="pagination-next"
>
{{ $t('misc.next') }}
</router-link>
</RouterLink>
<ul class="pagination-list">
<li
v-for="(p, i) in pages"
@ -28,7 +28,7 @@
v-if="p.isEllipsis"
class="pagination-ellipsis"
>&hellip;</span>
<router-link
<RouterLink
v-else
class="pagination-link"
:aria-label="'Goto page ' + p.number"
@ -36,7 +36,7 @@
:to="getRouteForPagination(p.number)"
>
{{ p.number }}
</router-link>
</RouterLink>
</li>
</ul>
</nav>

View File

@ -178,14 +178,14 @@
:key="t.id"
>
<td v-if="activeColumns.index">
<router-link :to="taskDetailRoutes[t.id]">
<RouterLink :to="taskDetailRoutes[t.id]">
<template v-if="t.identifier === ''">
#{{ t.index }}
</template>
<template v-else>
{{ t.identifier }}
</template>
</router-link>
</RouterLink>
</td>
<td v-if="activeColumns.done">
<Done
@ -194,9 +194,9 @@
/>
</td>
<td v-if="activeColumns.title">
<router-link :to="taskDetailRoutes[t.id]">
<RouterLink :to="taskDetailRoutes[t.id]">
{{ t.title }}
</router-link>
</RouterLink>
</td>
<td v-if="activeColumns.priority">
<PriorityLabel

View File

@ -60,14 +60,14 @@
</template>
<template v-if="shareType === 'team'">
<td>
<router-link
<RouterLink
:to="{
name: 'teams.edit',
params: { id: s.id },
}"
>
{{ s.name }}
</router-link>
</RouterLink>
</td>
</template>
<td class="type">

View File

@ -125,7 +125,7 @@
class="task-done-checkbox"
@update:modelValue="toggleTaskDone(t)"
/>
<router-link
<RouterLink
:to="{ name: route.name as string, params: { id: task.id } }"
:class="{ 'is-strikethrough': task.done}"
>
@ -141,7 +141,7 @@
</span>
</span>
{{ task.title }}
</router-link>
</RouterLink>
</div>
<BaseButton
v-if="editEnabled"

View File

@ -27,7 +27,7 @@
@mousedown.stop.self="focusTaskLink"
>
<span>
<router-link
<RouterLink
v-if="showProject && typeof project !== 'undefined'"
v-tooltip="$t('task.detail.belongsToProject', {project: project.title})"
:to="{ name: 'project.index', params: { projectId: task.projectId } }"
@ -35,7 +35,7 @@
:class="{'mr-2': task.hexColor !== ''}"
>
{{ project.title }}
</router-link>
</RouterLink>
<ColorBubble
v-if="task.hexColor !== ''"
@ -49,14 +49,14 @@
class="pr-2"
/>
<router-link
<RouterLink
ref="taskLink"
:to="taskDetailRoute"
class="task-link"
tabindex="-1"
>
{{ task.title }}
</router-link>
</RouterLink>
</span>
<Labels
@ -133,14 +133,14 @@
class="mr-1"
/>
<router-link
<RouterLink
v-if="showProjectSeparately"
v-tooltip="$t('task.detail.belongsToProject', {project: project.title})"
:to="{ name: 'project.index', params: { projectId: task.projectId } }"
class="task-project"
>
{{ project.title }}
</router-link>
</RouterLink>
<BaseButton
:class="{'is-favorite': task.isFavorite}"