Skip to content

Commit

Permalink
chore: ページ一覧表示ツール
Browse files Browse the repository at this point in the history
  • Loading branch information
jun0222 committed Mar 23, 2024
1 parent dc9da15 commit 9ceb5cd
Showing 1 changed file with 13 additions and 80 deletions.
93 changes: 13 additions & 80 deletions pages/index.vue
@@ -1,87 +1,20 @@
<template>
<v-row justify="center" align="center">
<v-col cols="12" sm="8" md="6">
<v-card class="logo py-4 d-flex justify-center">
<NuxtLogo />
<VuetifyLogo />
</v-card>
<v-card>
<v-card-title class="headline">
Welcome to the Vuetify + Nuxt.js template
</v-card-title>
<v-card-text>
<p>
Vuetify is a progressive Material Design component framework for
Vue.js. It was designed to empower developers to create amazing
applications.
</p>
<p>
For more information on Vuetify, check out the
<a
href="https://vuetifyjs.com"
target="_blank"
rel="noopener noreferrer"
>
documentation </a
>.
</p>
<p>
If you have questions, please join the official
<a
href="https://chat.vuetifyjs.com/"
target="_blank"
rel="noopener noreferrer"
title="chat"
>
discord </a
>.
</p>
<p>
Find a bug? Report it on the github
<a
href="https://github.com/vuetifyjs/vuetify/issues"
target="_blank"
rel="noopener noreferrer"
title="contribute"
>
issue board </a
>.
</p>
<p>
Thank you for developing with Vuetify and I look forward to bringing
more exciting features in the future.
</p>
<div class="text-xs-right">
<em><small>&mdash; John Leider</small></em>
</div>
<hr class="my-3" />
<a
href="https://nuxtjs.org/"
target="_blank"
rel="noopener noreferrer"
>
Nuxt Documentation
</a>
<br />
<a
href="https://github.com/nuxt/nuxt.js"
target="_blank"
rel="noopener noreferrer"
>
Nuxt GitHub
</a>
</v-card-text>
<v-card-actions>
<v-spacer />
<v-btn color="primary" nuxt to="/inspire"> Continue </v-btn>
</v-card-actions>
</v-card>
</v-col>
</v-row>
<div>
<h1>ページ一覧</h1>
<ul>
<li v-for="page in pages" :key="page">
<nuxt-link :to="`/${page}`">{{ page }}</nuxt-link>
</li>
</ul>
</div>
</template>

<script>
export default {
name: 'IndexPage',
async asyncData({ $axios }) {
// staticディレクトリ内のpages.jsonを読み込む
const pages = await $axios.$get('/pages.json')
return { pages }
},
}
</script>

0 comments on commit 9ceb5cd

Please sign in to comment.