Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Nuxt3 / Vuetify3 正式版対応 #1

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
fix(vuetify): アイコンインポートの仕様変更対応
  • Loading branch information
Dosugamea committed Dec 11, 2022
commit b365daa4ac608c061a1cd1999d32ab0c88a43ee5
8 changes: 2 additions & 6 deletions src/components/Header.vue
Original file line number Diff line number Diff line change
@@ -19,9 +19,7 @@
aria-expanded="false"
icon
>
<v-icon aria-label="Change theme" role="img" aria-hidden="false">
{{ mdiThemeLightDark }}
</v-icon>
<v-icon :icon="mdiThemeLightDark" aria-label="Change theme" role="img" aria-hidden="false" />
</v-btn>
<v-btn
@click="menu.toggle"
@@ -31,9 +29,7 @@
aria-expanded="false"
icon
>
<v-icon aria-label="My Account" role="img" aria-hidden="false">
{{ mdiMenu }}
</v-icon>
<v-icon :icon="mdiMenu" aria-label="My Account" role="img" aria-hidden="false" />
</v-btn>
</v-app-bar>
</template>
4 changes: 2 additions & 2 deletions src/composables/use-nav.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {
mdiAccount,
mdiDiscord,
mdiDisc,
mdiFileSearch,
mdiFileUpload,
mdiInformation,
@@ -9,7 +9,7 @@ import {
export default function () {
return [
{ icon: mdiInformation, text: "SweetPotato.Navigation.Header.Introduction", to: "/introduction" },
{ icon: mdiDiscord, text: "SweetPotato.Navigation.Header.Community", to: "#" },
{ icon: mdiDisc, text: "SweetPotato.Navigation.Header.Community", to: "#" },
{ icon: mdiFileSearch, text: "SweetPotato.Navigation.Header.Explorer", to: "/explorer/levels" },
{ icon: mdiFileUpload, text: "SweetPotato.Navigation.Header.Upload", to: "/upload" },
{ icon: mdiAccount, text: "SweetPotato.Navigation.Header.MyPage", to: "/my-page" }
2 changes: 1 addition & 1 deletion src/plugins/vuetify.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { defineNuxtPlugin } from '#app'
import { createVuetify } from 'vuetify'
import { aliases, mdi } from 'vuetify/lib/iconsets/mdi-svg'
import { aliases, mdi } from 'vuetify/iconsets/mdi-svg'

import * as components from 'vuetify/components'
import * as directives from 'vuetify/directives'