Skip to content

Commit

Permalink
Merge pull request #231 from PrestaShop/dev
Browse files Browse the repository at this point in the history
v3.0.1
  • Loading branch information
jolelievre authored Aug 11, 2023
2 parents d420911 + 7b9f5ce commit 75c39bc
Show file tree
Hide file tree
Showing 146 changed files with 7,668 additions and 4,348 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.0.0
uses: actions/checkout@v3

- name: Clone PrestaShop for core dependencies
run: |
Expand All @@ -19,7 +19,7 @@ jobs:
cd blockwishlist
- name: Install Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 14.x

Expand All @@ -39,7 +39,7 @@ jobs:
run: composer install --no-dev -o

- name: Clean-up project
uses: PrestaShopCorp/github-action-clean-before-deploy@v1.0
uses: PrestaShopCorp/github-action-clean-before-deploy@v2.0
with:
paths: node_modules

Expand All @@ -50,18 +50,18 @@ jobs:
run: ~/.composer/vendor/bin/autoindex

- name: Create & upload artifact
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v3
with:
name: ${{ github.event.repository.name }}
path: ../
path: /home/runner/work/blockwishlist/

update_release_draft:
runs-on: ubuntu-latest
needs: [deploy]
if: github.event_name == 'push' && github.event.ref == 'refs/heads/master'
steps:
- name: Download artifact
uses: actions/download-artifact@v1
uses: actions/download-artifact@v3
with:
name: ${{ github.event.repository.name }}

Expand All @@ -88,7 +88,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish to GitHub Release
uses: actions/[email protected].1
uses: actions/[email protected].2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
27 changes: 15 additions & 12 deletions .github/workflows/js.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
name: JS tests
on: [push, pull_request]
jobs:
js-linter:
name: JS linter
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]

- name: lint js dependencies
uses: PrestaShopCorp/github-action-lint-js/14@master
with:
cmd: yarn
path: .
js-linter:
name: JS linter
runs-on: ubuntu-latest
strategy:
matrix:
node-versions: [ '14', '16' ]
steps:
- name: Checkout
uses: actions/[email protected]
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-versions }}
- run: npm install
- name: Lint
run: npm run lint
14 changes: 7 additions & 7 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.0.0
uses: actions/checkout@v3.1.0

- name: PHP syntax checker 7.2
uses: prestashop/github-action-php-lint/7.2@master
Expand Down Expand Up @@ -37,10 +37,10 @@ jobs:
php-version: '7.4'

- name: Checkout
uses: actions/checkout@v2.0.0
uses: actions/checkout@v3.1.0

- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: vendor
key: php-${{ hashFiles('composer.lock') }}
Expand All @@ -49,7 +49,7 @@ jobs:
run: composer install

- name: Run PHP-CS-Fixer
run: ./vendor/bin/php-cs-fixer fix --dry-run --diff --using-cache=no --diff-format udiff
run: ./vendor/bin/php-cs-fixer fix --dry-run --diff --using-cache=no

# Run PHPStan against the module and a PrestaShop release
phpstan:
Expand All @@ -65,18 +65,18 @@ jobs:
php-version: '7.4'

- name: Checkout
uses: actions/checkout@v2.0.0
uses: actions/checkout@v3.1.0

# Add vendor folder in cache to make next builds faster
- name: Cache vendor folder
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: vendor
key: php-${{ hashFiles('composer.lock') }}

# Add composer local folder in cache to make next builds faster
- name: Cache composer folder
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/.composer/cache
key: php-composer-cache
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions .webpack/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ module.exports = {
{
loader: 'babel-loader',
options: {
presets: [['env', {useBuiltIns: 'usage', modules: false}]],
plugins: ['transform-object-rest-spread', 'transform-runtime'],
presets: [['@babel/preset-env', {useBuiltIns: 'usage', modules: false}]],
plugins: ['@babel/plugin-transform-runtime'],
},
},
],
Expand Down
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,26 @@

Adds a block containing the customer's wishlists.

## Compatibility

PrestaShop: `8.0.0` or later

## Multistore compatibility

This module is compatible with the multistore :heavy_check_mark: <br/>
It can be configured differently from one store to another.<br/>
It can be configured quickly in the same way on all stores thanks to the all shops context or the group of shops.<br/>
It can be activated on one store and deactivated on another

## How to test

Link to specs : https://docs.prestashop-project.org/functional-documentation/functional-documentation/ux-ui/back-office/improve/modules/wishlist-module

- Configuration Tab
Edit wording and check in FO that the wording is updated
- Statistics Tab
Add multiple products to your wishlist, update the page, see that the Statistics are well updated

## Reporting issues

You can report issues with this module in the main PrestaShop repository. [Click here to report an issue][report-issue].
Expand Down
14 changes: 7 additions & 7 deletions _dev/back/js/backoffice.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
/**
* 2007-2020 PrestaShop and Contributors
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
* that is bundled with this package in the file LICENSE.txt.
* This source file is subject to the Academic Free License version 3.0
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* @author PrestaShop SA <[email protected]>
* @copyright 2007-2020 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
* International Registered Trademark & Property of PrestaShop SA
* @author PrestaShop SA and Contributors <[email protected]>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
*/

import blockwishlistModule from 'blockwishlistModule';
Expand Down
22 changes: 13 additions & 9 deletions _dev/back/js/form.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
/**
* 2007-2020 PrestaShop and Contributors
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
* that is bundled with this package in the file LICENSE.txt.
* This source file is subject to the Academic Free License version 3.0
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* @author PrestaShop SA <[email protected]>
* @copyright 2007-2020 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
* International Registered Trademark & Property of PrestaShop SA
* @author PrestaShop SA and Contributors <[email protected]>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
*/

import TranslatableInput from '@PSJs/components/translatable-input';
const {$} = window;

new TranslatableInput();
$(() => {
window.prestashop.component.initComponents([
'TranslatableInput',
]);
});
18 changes: 18 additions & 0 deletions _dev/back/scss/_stats.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License version 3.0
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* @author PrestaShop SA and Contributors <[email protected]>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
*/
.wishlist-stats {
.card {
&-text {
Expand Down
18 changes: 18 additions & 0 deletions _dev/back/scss/backoffice.scss
Original file line number Diff line number Diff line change
@@ -1 +1,19 @@
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License version 3.0
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* @author PrestaShop SA and Contributors <[email protected]>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
*/
@import '_stats';
14 changes: 7 additions & 7 deletions _dev/front/js/components/AddToWishlist/AddToWishlist.vue
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<!--**
* 2007-2020 PrestaShop and Contributors
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
* that is bundled with this package in the file LICENSE.txt.
* This source file is subject to the Academic Free License version 3.0
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* @author PrestaShop SA <[email protected]>
* @copyright 2007-2020 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
* International Registered Trademark & Property of PrestaShop SA
* @author PrestaShop SA and Contributors <[email protected]>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
*-->
<script>
import EventBus from '@components/EventBus';
Expand Down
14 changes: 7 additions & 7 deletions _dev/front/js/components/AddToWishlist/index.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
/**
* 2007-2020 PrestaShop and Contributors
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
* that is bundled with this package in the file LICENSE.txt.
* This source file is subject to the Academic Free License version 3.0
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* @author PrestaShop SA <[email protected]>
* @copyright 2007-2020 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
* International Registered Trademark & Property of PrestaShop SA
* @author PrestaShop SA and Contributors <[email protected]>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
*/
import initApp from '@components/init';
import AddToWishlist from './AddToWishlist';
Expand Down
17 changes: 9 additions & 8 deletions _dev/front/js/components/Button/Button.vue
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<!--**
* 2007-2020 PrestaShop and Contributors
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
* that is bundled with this package in the file LICENSE.txt.
* This source file is subject to the Academic Free License version 3.0
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* @author PrestaShop SA <[email protected]>
* @copyright 2007-2020 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
* International Registered Trademark & Property of PrestaShop SA
* @author PrestaShop SA and Contributors <[email protected]>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
*-->
<template>
<button
Expand Down Expand Up @@ -71,6 +71,7 @@
return {
isChecked: this.checked === 'true',
idList: this.listId,
idProductAttribute: this.productAttributeId,
};
},
methods: {
Expand Down Expand Up @@ -169,7 +170,7 @@
'.product-quantity input#quantity_wanted',
);
this.productAttributeId = parseInt(args.id_product_attribute, 10);
this.idProductAttribute = parseInt(args.id_product_attribute, 10);
// eslint-disable-next-line
const itemsFiltered = productsAlreadyTagged.filter(
Expand Down
Loading

0 comments on commit 75c39bc

Please sign in to comment.