-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #211 from vuestorefront-community/develop
feat: 1.2.0
- Loading branch information
Showing
28 changed files
with
3,107 additions
and
2,792 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# 1.2.0 | ||
|
||
* [Bug]: sizes of images in related products component [#172](https://github.com/vuestorefront-community/vendure/pull/172) | ||
* [Bug]: Project is not building [#176](https://github.com/vuestorefront-community/vendure/issues/176) | ||
* [Docs]: Update README.md [#177](https://github.com/vuestorefront-community/vendure/issues/177) | ||
* [Bug]: BottomNavigation on mobile is moved to the left, and cannot open the mobile menu [#184](https://github.com/vuestorefront-community/vendure/issues/184) | ||
* [Feature]: Replace mocked products in carousel on Home page [#165](https://github.com/vuestorefront-community/vendure/issues/165) | ||
* [Bug]: Country state on billing step not getting persisted upon selection [#194](https://github.com/vuestorefront-community/vendure/pull/194) | ||
* [Bug]: Pagination not working [#200](https://github.com/vuestorefront-community/vendure/issues/200) | ||
* [Bug]: Cannot continue to payment if shipping price i 0 [#199](https://github.com/vuestorefront-community/vendure/issues/199) | ||
* [Feature]: expose getCode on order setters [#203](https://github.com/vuestorefront-community/vendure/issues/203) | ||
* [Bug]: HTTP 500 calling /api/vendure/resetPassword [#205](https://github.com/vuestorefront-community/vendure/issues/205) | ||
* [Bug]: Shipping and Payment methods descriptions not rendered correctly or missing [#212](https://github.com/vuestorefront-community/vendure/issues/212) |
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,9 +1,14 @@ | ||
# Stripe [Coming soon] | ||
# Stripe | ||
|
||
There is an implementation of Stripe module for Nuxt ongoing for VSF&Vendure. | ||
Integration with payment gateways is much more difficult than with Content Management System because it requires you to integrate it on both frontend and backend of your store. You have to handle payments via form (ideally a drop in component or redirect) and then configure your e-commerce platform to trust external provider that the payment was successful. | ||
|
||
A package [nuxt-stripe-module](https://www.npmjs.com/package/nuxt-stripe-module) will be used for that. | ||
## Vue Storefront | ||
|
||
:::warning | ||
This integration is only between Vue Storefront and Stripe. In order to correctly handle the payment you would also need to develop a Stripe plugin for Vendure [like this one](https://github.com/gaiusmathew/stripe-payment-plugin). | ||
::: | ||
As Vue Storefront uses Nuxt.js under the hood and is built using Vue.js, you can use Vue.js plugin or Nuxt.js module to integrate with Stripe: | ||
|
||
- <https://vuestripe.com/> especially -> <https://vuestripe.com/nuxt/> | ||
- <https://www.npmjs.com/package/nuxt-stripe-module> | ||
|
||
## Vendure | ||
|
||
To integrate Vendure with Stripe to accept and handle payments you can use official plugin that is described [here](https://www.vendure.io/docs/typescript-api/payments-plugin/stripe-plugin/) |
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
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
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
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 |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<template> | ||
<!-- TODO: create logic with isActive prop for BottomNavigationItems --> | ||
<SfBottomNavigation class="navigation-bottom smartphone-only"> | ||
<SfBottomNavigationItem | ||
:class="$route.path == '/' ? 'sf-bottom-navigation__item--active' : ''" | ||
icon="home" | ||
size="20px" | ||
label="Home" | ||
@click="handleHomeClick" | ||
/> | ||
<SfBottomNavigationItem icon="menu" size="20px" :label="$t('Menu')" @click="toggleMobileMenu"/> | ||
<SfBottomNavigationItem icon="heart" size="20px" :label="$t('Wishlist')" @click="toggleWishlistSidebar"/> | ||
<SfBottomNavigationItem icon="profile" size="20px" :label="$t('Account')" @click="handleAccountClick"/> | ||
<!-- TODO: add logic for label - if on Home then Basket, if on PDC then AddToCart etc. --> | ||
<SfBottomNavigationItem | ||
:label="$t('Basket')" | ||
icon="add_to_cart" | ||
@click="toggleCartSidebar" | ||
> | ||
<template #icon> | ||
<SfCircleIcon aria-label="Add to cart"> | ||
<SfIcon | ||
icon="add_to_cart" | ||
color="white" | ||
size="25px" | ||
:style="{margin: '0 0 0 -2px'}" | ||
/> | ||
</SfCircleIcon> | ||
</template> | ||
</SfBottomNavigationItem> | ||
</SfBottomNavigation> | ||
</template> | ||
|
||
<script> | ||
import { SfBottomNavigation, SfIcon, SfCircleIcon } from '@storefront-ui/vue'; | ||
import { useUiState } from '~/composables'; | ||
import { useUser } from '@vue-storefront/vendure'; | ||
export default { | ||
components: { | ||
SfBottomNavigation, | ||
SfIcon, | ||
SfCircleIcon | ||
}, | ||
setup(props, { root }) { | ||
const { toggleCartSidebar, toggleWishlistSidebar, toggleLoginModal, toggleMobileMenu, isMobileMenuOpen } = useUiState(); | ||
const { isAuthenticated } = useUser(); | ||
const handleAccountClick = async () => { | ||
if (isAuthenticated.value) { | ||
return root.$router.push('/my-account'); | ||
} | ||
toggleLoginModal(); | ||
}; | ||
const handleHomeClick = () => { | ||
isMobileMenuOpen.value ? toggleMobileMenu() : false; | ||
root.$router.push('/'); | ||
}; | ||
return { | ||
isMobileMenuOpen, | ||
toggleWishlistSidebar, | ||
toggleCartSidebar, | ||
toggleMobileMenu, | ||
handleAccountClick, | ||
handleHomeClick | ||
}; | ||
} | ||
}; | ||
</script> | ||
<style lang="scss" scoped> | ||
.navigation-bottom { | ||
--bottom-navigation-z-index: 3; | ||
} | ||
</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
Oops, something went wrong.