Skip to content

Commit

Permalink
remove vue default pages
Browse files Browse the repository at this point in the history
  • Loading branch information
supalarry committed Feb 17, 2021
1 parent 128a38e commit ed1b6fb
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 100 deletions.
21 changes: 1 addition & 20 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,32 +1,13 @@
<template>
<div id="app">
<div id="nav">
<router-link to="/">Home</router-link> |
<router-link to="/about">About</router-link>
</div>
<router-view/>
</div>
</template>

<style>
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
font-family: Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
}
#nav {
padding: 30px;
}
#nav a {
font-weight: bold;
color: #2c3e50;
}
#nav a.router-link-exact-active {
color: #42b983;
}
</style>
62 changes: 0 additions & 62 deletions src/components/HelloWorld.vue

This file was deleted.

8 changes: 0 additions & 8 deletions src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,6 @@ const routes = [
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({
Expand Down
5 changes: 0 additions & 5 deletions src/views/About.vue

This file was deleted.

5 changes: 0 additions & 5 deletions src/views/Home.vue
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
<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>

0 comments on commit ed1b6fb

Please sign in to comment.