Skip to content

Commit

Permalink
feat(vue-demo): move breadcrumbs (#361)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdanilowicz authored Aug 17, 2023
1 parent 50a9db5 commit bc0d8d4
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/silly-pans-flash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"vue-demo-store": minor
---

Move `LayoutBreadcrumbs` component from the layout to the lower-level components
1 change: 1 addition & 0 deletions templates/vue-demo-store/components/FrontendDetailPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const { product } = useProduct(
useCmsHead(product, { mainShopTitle: "Shopware Frontends Demo Store" });
</script>
<template>
<LayoutBreadcrumbs />
<div class="container mx-auto bg-white flex flex-col">
<template v-if="!product?.cmsPage">
<ProductStatic :product="product" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ if (typeof landingResponse?.value !== null) {
</script>

<template>
<LayoutBreadcrumbs />
<CmsPage v-if="landingResponse?.cmsPage" :content="landingResponse.cmsPage" />
</template>
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@ useCmsHead(category, { mainShopTitle: "Shopware Frontends Demo Store" });
</script>

<template>
<LayoutBreadcrumbs />
<CmsPage v-if="category?.cmsPage" :content="category.cmsPage" />
</template>
1 change: 0 additions & 1 deletion templates/vue-demo-store/layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ provide("swNavigation-footer-navigation", footerData);
<LayoutHeader />
<LayoutNotifications />
<div class="mx-auto">
<LayoutBreadcrumbs />
<slot />
</div>
<LayoutFooter />
Expand Down
1 change: 1 addition & 0 deletions templates/vue-demo-store/pages/login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default {
</script>

<template>
<LayoutBreadcrumbs />
<div class="login-wrapper">
<AccountLoginForm @success="redirectAfterLogin('/account')">
<div class="flex items-center justify-end">
Expand Down
1 change: 1 addition & 0 deletions templates/vue-demo-store/pages/reset-password.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ useBreadcrumbs([
</script>

<template>
<LayoutBreadcrumbs />
<div class="reset-password-wrapper">
<AccountResetPasswordForm>
<template #action>
Expand Down
1 change: 1 addition & 0 deletions templates/vue-demo-store/pages/search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export default {
</script>

<template>
<LayoutBreadcrumbs />
<div
class="container mb-8 mx-4 md:mx-auto"
data-testid="search-results-container"
Expand Down
1 change: 1 addition & 0 deletions templates/vue-demo-store/pages/shopware.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ useBreadcrumbs([
</script>

<template>
<LayoutBreadcrumbs />
<div class="flex justify-center">
<img
class="md:w-11/12"
Expand Down
1 change: 1 addition & 0 deletions templates/vue-demo-store/pages/wishlist.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ watch(
</script>

<template>
<LayoutBreadcrumbs />
<div class="wishlist-page" data-testid="wishlist-wrapper">
<div
class="max-w-2xl mx-auto py-4 px-4 sm:py-4 sm:px-6 lg:max-w-7xl lg:px-8"
Expand Down

0 comments on commit bc0d8d4

Please sign in to comment.