-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
971 additions
and
246 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,32 @@ | ||
<template> | ||
<div id="app"> | ||
<img alt="Vue logo" src="./assets/logo.png"> | ||
<HelloWorld msg="Welcome to Your Vue.js App"/> | ||
<div id="nav"> | ||
<router-link to="/">Home</router-link> | | ||
<router-link to="/about">About</router-link> | ||
</div> | ||
<router-view/> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import HelloWorld from './components/HelloWorld.vue' | ||
export default { | ||
name: 'App', | ||
components: { | ||
HelloWorld | ||
} | ||
} | ||
</script> | ||
|
||
<style> | ||
<style lang="scss"> | ||
#app { | ||
font-family: Avenir, Helvetica, Arial, sans-serif; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
text-align: center; | ||
color: #2c3e50; | ||
margin-top: 60px; | ||
} | ||
#nav { | ||
padding: 30px; | ||
a { | ||
font-weight: bold; | ||
color: #2c3e50; | ||
&.router-link-exact-active { | ||
color: #42b983; | ||
} | ||
} | ||
} | ||
</style> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,151 @@ | ||
<template> | ||
<div class="hello"> | ||
<h1>{{ msg }}</h1> | ||
<p> | ||
For a guide and recipes on how to configure / customize this project,<br> | ||
check out the | ||
<a href="https://cli.vuejs.org" target="_blank" rel="noopener">vue-cli documentation</a>. | ||
</p> | ||
<h3>Installed CLI Plugins</h3> | ||
<ul> | ||
<li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-babel" target="_blank" rel="noopener">babel</a></li> | ||
<li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-eslint" target="_blank" rel="noopener">eslint</a></li> | ||
</ul> | ||
<h3>Essential Links</h3> | ||
<ul> | ||
<li><a href="https://vuejs.org" target="_blank" rel="noopener">Core Docs</a></li> | ||
<li><a href="https://forum.vuejs.org" target="_blank" rel="noopener">Forum</a></li> | ||
<li><a href="https://chat.vuejs.org" target="_blank" rel="noopener">Community Chat</a></li> | ||
<li><a href="https://twitter.com/vuejs" target="_blank" rel="noopener">Twitter</a></li> | ||
<li><a href="https://news.vuejs.org" target="_blank" rel="noopener">News</a></li> | ||
</ul> | ||
<h3>Ecosystem</h3> | ||
<ul> | ||
<li><a href="https://router.vuejs.org" target="_blank" rel="noopener">vue-router</a></li> | ||
<li><a href="https://vuex.vuejs.org" target="_blank" rel="noopener">vuex</a></li> | ||
<li><a href="https://github.com/vuejs/vue-devtools#vue-devtools" target="_blank" rel="noopener">vue-devtools</a></li> | ||
<li><a href="https://vue-loader.vuejs.org" target="_blank" rel="noopener">vue-loader</a></li> | ||
<li><a href="https://github.com/vuejs/awesome-vue" target="_blank" rel="noopener">awesome-vue</a></li> | ||
</ul> | ||
</div> | ||
<v-container> | ||
<v-row class="text-center"> | ||
<v-col cols="12"> | ||
<v-img | ||
:src="require('../assets/logo.svg')" | ||
class="my-3" | ||
contain | ||
height="200" | ||
/> | ||
</v-col> | ||
|
||
<v-col class="mb-4"> | ||
<h1 class="display-2 font-weight-bold mb-3"> | ||
Welcome to Vuetify | ||
</h1> | ||
|
||
<p class="subheading font-weight-regular"> | ||
For help and collaboration with other Vuetify developers, | ||
<br>please join our online | ||
<a | ||
href="https://community.vuetifyjs.com" | ||
target="_blank" | ||
>Discord Community</a> | ||
</p> | ||
</v-col> | ||
|
||
<v-col | ||
class="mb-5" | ||
cols="12" | ||
> | ||
<h2 class="headline font-weight-bold mb-3"> | ||
What's next? | ||
</h2> | ||
|
||
<v-row justify="center"> | ||
<a | ||
v-for="(next, i) in whatsNext" | ||
:key="i" | ||
:href="next.href" | ||
class="subheading mx-3" | ||
target="_blank" | ||
> | ||
{{ next.text }} | ||
</a> | ||
</v-row> | ||
</v-col> | ||
|
||
<v-col | ||
class="mb-5" | ||
cols="12" | ||
> | ||
<h2 class="headline font-weight-bold mb-3"> | ||
Important Links | ||
</h2> | ||
|
||
<v-row justify="center"> | ||
<a | ||
v-for="(link, i) in importantLinks" | ||
:key="i" | ||
:href="link.href" | ||
class="subheading mx-3" | ||
target="_blank" | ||
> | ||
{{ link.text }} | ||
</a> | ||
</v-row> | ||
</v-col> | ||
|
||
<v-col | ||
class="mb-5" | ||
cols="12" | ||
> | ||
<h2 class="headline font-weight-bold mb-3"> | ||
Ecosystem | ||
</h2> | ||
|
||
<v-row justify="center"> | ||
<a | ||
v-for="(eco, i) in ecosystem" | ||
:key="i" | ||
:href="eco.href" | ||
class="subheading mx-3" | ||
target="_blank" | ||
> | ||
{{ eco.text }} | ||
</a> | ||
</v-row> | ||
</v-col> | ||
</v-row> | ||
</v-container> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'HelloWorld', | ||
props: { | ||
msg: String | ||
export default { | ||
name: 'HelloWorld', | ||
data: () => ({ | ||
ecosystem: [ | ||
{ | ||
text: 'vuetify-loader', | ||
href: 'https://github.com/vuetifyjs/vuetify-loader', | ||
}, | ||
{ | ||
text: 'github', | ||
href: 'https://github.com/vuetifyjs/vuetify', | ||
}, | ||
{ | ||
text: 'awesome-vuetify', | ||
href: 'https://github.com/vuetifyjs/awesome-vuetify', | ||
}, | ||
], | ||
importantLinks: [ | ||
{ | ||
text: 'Documentation', | ||
href: 'https://vuetifyjs.com', | ||
}, | ||
{ | ||
text: 'Chat', | ||
href: 'https://community.vuetifyjs.com', | ||
}, | ||
{ | ||
text: 'Made with Vuetify', | ||
href: 'https://madewithvuejs.com/vuetify', | ||
}, | ||
{ | ||
text: 'Twitter', | ||
href: 'https://twitter.com/vuetifyjs', | ||
}, | ||
{ | ||
text: 'Articles', | ||
href: 'https://medium.com/vuetify', | ||
}, | ||
], | ||
whatsNext: [ | ||
{ | ||
text: 'Explore components', | ||
href: 'https://vuetifyjs.com/components/api-explorer', | ||
}, | ||
{ | ||
text: 'Select a layout', | ||
href: 'https://vuetifyjs.com/getting-started/pre-made-layouts', | ||
}, | ||
{ | ||
text: 'Frequently Asked Questions', | ||
href: 'https://vuetifyjs.com/getting-started/frequently-asked-questions', | ||
}, | ||
], | ||
}), | ||
} | ||
} | ||
</script> | ||
|
||
<!-- Add "scoped" attribute to limit CSS to this component only --> | ||
<style scoped> | ||
h3 { | ||
margin: 40px 0 0; | ||
} | ||
ul { | ||
list-style-type: none; | ||
padding: 0; | ||
} | ||
li { | ||
display: inline-block; | ||
margin: 0 10px; | ||
} | ||
a { | ||
color: #42b983; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
import Vue from 'vue' | ||
import App from './App.vue' | ||
import vuetify from './plugins/vuetify'; | ||
import router from './router' | ||
import store from './store' | ||
|
||
Vue.config.productionTip = false | ||
|
||
new Vue({ | ||
render: h => h(App), | ||
vuetify, | ||
router, | ||
store, | ||
render: h => h(App) | ||
}).$mount('#app') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import Vue from 'vue'; | ||
import Vuetify from 'vuetify/lib/framework'; | ||
|
||
Vue.use(Vuetify); | ||
|
||
export default new Vuetify({ | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import Vue from 'vue' | ||
import VueRouter from 'vue-router' | ||
import Home from '../views/Home.vue' | ||
|
||
Vue.use(VueRouter) | ||
|
||
const routes = [ | ||
{ | ||
path: '/', | ||
name: 'Home', | ||
component: Home | ||
}, | ||
{ | ||
path: '/about', | ||
name: 'About', | ||
// route level code-splitting | ||
// this generates a separate chunk (about.[hash].js) for this route | ||
// which is lazy-loaded when the route is visited. | ||
component: () => import(/* webpackChunkName: "about" */ '../views/About.vue') | ||
} | ||
] | ||
|
||
const router = new VueRouter({ | ||
routes | ||
}) | ||
|
||
export default router |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import Vue from 'vue' | ||
import Vuex from 'vuex' | ||
|
||
Vue.use(Vuex) | ||
|
||
export default new Vuex.Store({ | ||
state: { | ||
}, | ||
mutations: { | ||
}, | ||
actions: { | ||
}, | ||
modules: { | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<template> | ||
<div class="about"> | ||
<h1>This is an about page</h1> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<template> | ||
<div class="home"> | ||
<img alt="Vue logo" src="../assets/logo.png"> | ||
<HelloWorld msg="Welcome to Your Vue.js App"/> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
// @ is an alias to /src | ||
import HelloWorld from '@/components/HelloWorld.vue' | ||
export default { | ||
name: 'Home', | ||
components: { | ||
HelloWorld | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module.exports = { | ||
"transpileDependencies": [ | ||
"vuetify" | ||
] | ||
} |