From c9489394d7bbbc52eec4775a4959ff6f2202d527 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sat, 15 Jun 2019 22:53:50 +0100 Subject: [PATCH] Update project name in breadcrumb --- src/App.vue | 28 +++++++++++++++++++++-- src/components/ProjectBreadcrumb.vue | 6 ++--- src/components/ProjectCard.vue | 10 ++++----- src/views/Project.vue | 18 +++++++-------- src/views/Projects.vue | 33 +++++++--------------------- 5 files changed, 50 insertions(+), 45 deletions(-) diff --git a/src/App.vue b/src/App.vue index 202328d..b191f57 100644 --- a/src/App.vue +++ b/src/App.vue @@ -9,7 +9,7 @@

- + @@ -19,7 +19,31 @@ export default { data () { return { - title: 'Rebuilding Platform.sh' + title: 'Rebuilding Platform.sh', + + projects: [ + { + id: 1, + name: 'Drupal Bristol', + owner: 'accounts-partners', + region: 'Europe (West 1)', + image: 'default.jpg' + }, + { + id: 2, + name: 'oliverdavies.uk', + owner: 'Oliver Davies', + region: 'Europe (West 1)', + image: 'oliver-davies.png' + }, + { + id: 3, + name: 'PHP South Wales', + owner: 'PHP South Wales organisers', + region: 'Europe (West 1)', + image: 'php-south-wales.png' + } + ] } } } diff --git a/src/components/ProjectBreadcrumb.vue b/src/components/ProjectBreadcrumb.vue index cdf8f35..5d54409 100644 --- a/src/components/ProjectBreadcrumb.vue +++ b/src/components/ProjectBreadcrumb.vue @@ -5,7 +5,7 @@ Projects -
  • +
  • @@ -13,8 +13,8 @@ diff --git a/src/views/Projects.vue b/src/views/Projects.vue index c961674..a7546cd 100644 --- a/src/views/Projects.vue +++ b/src/views/Projects.vue @@ -57,6 +57,13 @@ import ProjectViewSwitcher from '@/components/ProjectViewSwitcher' export default { name: 'projects', + props: { + projects: { + type: Object, + required: true + } + }, + components: { ProjectCard, ProjectSearch, @@ -65,31 +72,7 @@ export default { data () { return { - displayMode: 'grid', - - projects: [ - { - id: 1, - name: 'Drupal Bristol', - owner: 'accounts-partners', - region: 'Europe (West 1)', - image: 'default.jpg' - }, - { - id: 2, - name: 'oliverdavies.uk', - owner: 'Oliver Davies', - region: 'Europe (West 1)', - image: 'oliver-davies.png' - }, - { - id: 3, - name: 'PHP South Wales', - owner: 'PHP South Wales organisers', - region: 'Europe (West 1)', - image: 'php-south-wales.png' - } - ] + displayMode: 'grid' } },