diff --git a/src/App.vue b/src/App.vue index d1917e2..0f2d304 100644 --- a/src/App.vue +++ b/src/App.vue @@ -5,7 +5,7 @@ Home - About + Profile Log in Log out diff --git a/src/router.js b/src/router.js index 961e9bc..70c5fb1 100644 --- a/src/router.js +++ b/src/router.js @@ -7,7 +7,7 @@ import store from './store'; * Don't forget to import your views here: */ import Home from './views/Home.vue' -import About from './views/About.vue' +import Profile from './views/Profile.vue' import Login from './views/Login.vue' @@ -29,9 +29,9 @@ const router = new Router({ }, { - path: '/about', - name: 'about', - component: About + path: '/Profile', + name: 'Profile', + component: Profile } ] }); diff --git a/src/views/About.vue b/src/views/About.vue deleted file mode 100644 index 8a2f417..0000000 --- a/src/views/About.vue +++ /dev/null @@ -1,8 +0,0 @@ - - - Welcome to the Dog Park, Where anyone can Bark! - Boot - - - - diff --git a/src/views/Home.vue b/src/views/Home.vue index 56f54ef..951d72e 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -1,23 +1,27 @@ Compose a Bark + + + + + + + Add Bark + + + + + {{ bark.user.displayName }} | {{ bark.createdAt }} + + + + + {{ bark.content }} + + + - - - - - Add Bark - - - Thanks for adding your post - - - - - {{ bark.content }} by {{ bark.user.displayName }} - - - @@ -27,9 +31,10 @@ export default { data () { return { bark: { - content: '', + content: '', }, allBarks: [], + search: '', submitted: false } }, @@ -64,7 +69,15 @@ export default { mounted(){ this.getBarks(); - + + }, + computed: { + filteredallBarks: function(){ + return this.allBarks.filter((bark) => { + return bark.content.match(this.search) + + }); + } } } @@ -78,19 +91,17 @@ export default {
{{ bark.user.displayName }} | {{ bark.createdAt }}
{{ bark.content }}