Skip to content

Commit

Permalink
Convert Vue component tags to PascalCase in HTML templates
Browse files Browse the repository at this point in the history
  • Loading branch information
TaiSakuma committed May 31, 2024
1 parent d72726d commit d16c755
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 20 deletions.
16 changes: 8 additions & 8 deletions src/app/AppBar.vue
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
<template>
<v-app-bar color="surface-container-low">
<VAppBar color="surface-container-low">
<template #prepend>
<slot name="prepend" comment="slot for v-app-bar-nav-icon"> </slot>
</template>
<template #title>
<router-link
<RouterLink
:to="{ name: 'home' }"
class="text-decoration-none"
style="color: inherit"
>
<span v-if="!mobile"> {{ appName }}: </span> {{ apiName }}
</router-link>
</RouterLink>
</template>
<template #append>
<template v-if="!mobile">
<span class="mx-4"> {{ version }} </span>
<v-btn icon="mdi-graphql" :href="apiHttp" target="_blank"> </v-btn>
<toggle-dark-mode-button></toggle-dark-mode-button>
<VBtn icon="mdi-graphql" :href="apiHttp" target="_blank"> </VBtn>
<ToggleDarkModeButton></ToggleDarkModeButton>
</template>
<auto-mode-button></auto-mode-button>
<AutoModeButton></AutoModeButton>
</template>
<template #extension v-if="!mobile">
<tab-navi></tab-navi>
<TabNavi></TabNavi>
</template>
</v-app-bar>
</VAppBar>
</template>

<script setup lang="ts">
Expand Down
4 changes: 2 additions & 2 deletions src/components/auto-mode-button/AutoModeButton.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<template>
<v-card-actions>
<VCardActions>
<ButtonOff v-if="mode === 'off'"></ButtonOff>
<ButtonScheduler v-else-if="mode === 'scheduler'"></ButtonScheduler>
<ButtonQueue v-else-if="mode === 'queue'"></ButtonQueue>
<ButtonError v-else></ButtonError>
</v-card-actions>
</VCardActions>
</template>

<script setup lang="ts">
Expand Down
8 changes: 4 additions & 4 deletions src/components/utils/ToggleDarkModeButton.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<template>
<v-btn variant="text" icon @click="toggleDark()">
<v-icon v-if="isDark" icon="mdi-weather-night"></v-icon>
<v-icon v-else icon="mdi-weather-sunny"></v-icon>
</v-btn>
<VBtn variant="text" icon @click="toggleDark()">
<VIcon v-if="isDark" icon="mdi-weather-night"></VIcon>
<VIcon v-else icon="mdi-weather-sunny"></VIcon>
</VBtn>
</template>

<script setup lang="ts">
Expand Down
8 changes: 4 additions & 4 deletions src/components/utils/ToggleDarkModeButtonWithTooltip.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<template>
<v-tooltip location="top end">
<VTooltip location="top end">
<template #activator="{ props }">
<toggle-button v-bind="props"></toggle-button>
<ToggleButton v-bind="props"></ToggleButton>
</template>
<span>Toggle dark mode</span>
</v-tooltip>
</VTooltip>
</template>

<script setup lang="ts">
import toggleButton from "./ToggleDarkModeButton.vue";
import ToggleButton from "./ToggleDarkModeButton.vue";
</script>
4 changes: 2 additions & 2 deletions src/utils/config/ProvideConfig.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<template>
<template v-if="error">
<div>
<v-alert variant="tonal" type="error" class="ma-2">
<VAlert variant="tonal" type="error" class="ma-2">
{{ error }}
</v-alert>
</VAlert>
</div>
</template>
<template v-else>
Expand Down

0 comments on commit d16c755

Please sign in to comment.