Skip to content

Commit

Permalink
chore: format code
Browse files Browse the repository at this point in the history
  • Loading branch information
kingyue737 committed Mar 20, 2024
1 parent 0639f8b commit 6ed1db5
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 38 deletions.
13 changes: 6 additions & 7 deletions components/App/AppBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ const { loggedIn, clear, user } = useUserSession()
<template>
<v-app-bar flat>
<v-app-bar-nav-icon @click="drawer = !drawer" />
<v-breadcrumbs :items="breadcrumbs"> </v-breadcrumbs>
<v-breadcrumbs :items="breadcrumbs" />
<v-spacer />
<div id="app-bar"></div>
<div id="app-bar" />
<client-only>
<div>
<v-switch
Expand All @@ -44,7 +44,7 @@ const { loggedIn, clear, user } = useUserSession()
true-icon="mdi-weather-night"
style="opacity: 0.8"
@update:model-value="toggleDark"
></v-switch>
/>
</div>
</client-only>
<v-btn
Expand All @@ -54,7 +54,7 @@ const { loggedIn, clear, user } = useUserSession()
class="ml-2"
target="_blank"
>
<v-icon size="30" icon="mdi-github"></v-icon>
<v-icon size="30" icon="mdi-github" />
</v-btn>
<v-menu location="bottom">
<template #activator="{ props: menu }">
Expand All @@ -76,14 +76,13 @@ const { loggedIn, clear, user } = useUserSession()
title="Login"
prepend-icon="mdi-github"
href="/api/auth/github"
></v-list-item>
/>
<v-list-item
v-else
title="Logout"
prepend-icon="mdi-logout"
@click="clear"
>
</v-list-item>
/>
</v-list>
</v-menu>
</v-app-bar>
Expand Down
5 changes: 2 additions & 3 deletions components/App/AppDrawerItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@ const icon = computed(() => props.item.meta?.icon)
:prepend-icon="icon"
active-class="text-primary"
:title="title"
>
</v-list-item>
/>
<v-list-group v-else-if="icon" :prepend-icon="icon" color="primary">
<template #activator="{ props: vProps }">
<v-list-item :title="title" v-bind="vProps"></v-list-item>
<v-list-item :title="title" v-bind="vProps" />
</template>
<AppDrawerItem
v-for="child in visibleChildren"
Expand Down
12 changes: 4 additions & 8 deletions components/App/AppNotification.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ function toggleAll() {
:rounded="0"
v-bind="props"
@click="toggleAll"
>
</v-btn>
/>
</template>
<span>Notification</span>
</v-tooltip>
Expand All @@ -51,23 +50,20 @@ function toggleAll() {
<v-toolbar-title
class="font-weight-light text-body-1"
:text="notifications.length ? 'Notification' : 'No New Notifications'"
>
</v-toolbar-title>
/>
<v-btn
size="small"
icon="mdi-bell-remove"
title="Clear All Notifications"
@click="emptyNotifications"
>
</v-btn>
/>
<v-btn
class="mr-0"
size="small"
icon="$expand"
title="Hide Notifications"
@click="toggleAll"
>
</v-btn>
/>
</v-toolbar>
<v-slide-y-reverse-transition
tag="div"
Expand Down
17 changes: 8 additions & 9 deletions components/App/AppSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,14 @@ const menuShow = ref(false)
icon="mdi-palette-outline"
v-bind="mergeProps(menu, tooltip)"
:rounded="0"
>
</v-btn>
/>
</template>
<span>Theme Palette</span>
</v-tooltip>
</template>
<v-card width="320">
<v-card-text class="text-center">
<v-label class="mb-3">Theme Palette</v-label>
<v-label class="mb-3"> Theme Palette </v-label>
<v-color-picker
v-model="color"
show-swatches
Expand All @@ -54,13 +53,13 @@ const menuShow = ref(false)
mode="rgb"
:modes="['rgb', 'hex', 'hsl']"
:swatches="colors"
></v-color-picker>
/>
<v-btn-toggle v-model="store" mandatory class="mt-2" rounded="lg">
<v-btn prepend-icon="mdi-white-balance-sunny" value="light"
>Light</v-btn
>
<v-btn prepend-icon="mdi-weather-night" value="dark">Dark</v-btn>
<v-btn prepend-icon="mdi-laptop" value="auto">System</v-btn>
<v-btn prepend-icon="mdi-white-balance-sunny" value="light">
Light
</v-btn>
<v-btn prepend-icon="mdi-weather-night" value="dark"> Dark </v-btn>
<v-btn prepend-icon="mdi-laptop" value="auto"> System </v-btn>
</v-btn-toggle>
</v-card-text>
</v-card>
Expand Down
10 changes: 5 additions & 5 deletions components/DialogConfirm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ defineExpose({ open })
<v-dialog v-model="dialog" max-width="400px">
<v-card style="z-index: -1">
<v-card-text class="font-weight-bold d-flex">
<v-icon class="mr-2" color="warning">$warning</v-icon>
<v-icon class="mr-2" color="warning"> $warning </v-icon>
<span>{{ message }}</span>
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="primary darken-1" @click="cancel">Cancel</v-btn>
<v-btn color="primary darken-1" @click="confirm">Confirm</v-btn>
<v-spacer></v-spacer>
<v-spacer />
<v-btn color="primary darken-1" @click="cancel"> Cancel </v-btn>
<v-btn color="primary darken-1" @click="confirm"> Confirm </v-btn>
<v-spacer />
</v-card-actions>
</v-card>
</v-dialog>
Expand Down
2 changes: 1 addition & 1 deletion pages/homepage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ definePageMeta({
<v-btn :disabled="!name" class="mr-2" color="primary" @click="sayHi">
Confirm
</v-btn>
<v-btn :disabled="!name" @click="warning">Cancel</v-btn>
<v-btn :disabled="!name" @click="warning"> Cancel </v-btn>
</div>
</template>

Expand Down
2 changes: 1 addition & 1 deletion pages/index.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div></div>
<div />
</template>
<script setup lang="ts">
definePageMeta({
Expand Down
2 changes: 1 addition & 1 deletion pages/nested/menu1.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ definePageMeta({
})
</script>
<template>
<v-container fluid>empty page</v-container>
<v-container fluid> empty page </v-container>
</template>
2 changes: 1 addition & 1 deletion pages/nested/menu2/menu2-1.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ definePageMeta({
})
</script>
<template>
<v-container fluid>empty page</v-container>
<v-container fluid> empty page </v-container>
</template>
2 changes: 1 addition & 1 deletion pages/nested/menu2/menu2-2.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ definePageMeta({
})
</script>
<template>
<v-container fluid>empty page</v-container>
<v-container fluid> empty page </v-container>
</template>
2 changes: 1 addition & 1 deletion pages/table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ const desserts = ref([
flat
variant="solo"
style="width: 250px"
></v-text-field>
/>
</teleport>
</client-only>
<v-data-table
Expand Down

0 comments on commit 6ed1db5

Please sign in to comment.