Skip to content

Commit f80683a

Browse files
authored
Merge pull request #600 from matthieu-rolland/rel-0.1.7
Release 0.2.0
2 parents 484309c + cd74796 commit f80683a

File tree

52 files changed

+1033
-1301
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+1033
-1301
lines changed

CONTRIBUTING.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
### Understanding
44

55
Before getting started, you should read our article introducing the project:
6-
[We're Building A Starter Theme For PrestaShop 1.7.8 and 8](https://build.prestashop.com/news/new-theme-announce/).
6+
[We're Building A Starter Theme For PrestaShop 1.7.8 and 8](https://build.prestashop-project.org/news/2022/new-theme-announce/).
77

8-
If you are contributing to this theme, you are probably interested in PrestaShop development as well. Please the following article to get familiar with [PrestaShop branching model](http://build.prestashop.com/news/introducing-new-branching-model-prestashop/).
8+
If you are contributing to this theme, you are probably interested in PrestaShop development as well. Please the following article to get familiar with [PrestaShop branching model](https://build.prestashop-project.org/news/2015/introducing-new-branching-model-prestashop/).
99

1010
You got any questions ? Join the open source slack.
1111

@@ -15,10 +15,10 @@ You got any questions ? Join the open source slack.
1515

1616
There are few things to do before you are ready to contribute.
1717

18-
1. Check your _Git_ configuration. Read [Set Up Your Git For Contributing](http://build.prestashop.com/howtos/misc/set-up-your-git-for-contributing/)
18+
1. Check your _Git_ configuration. Read [Set Up Your Git For Contributing](https://build.prestashop-project.org/howtos/misc/set-up-your-git-for-contributing/)
1919
2. Check your editor configuration. The rules are defined in `.editorconfig`. Do it manually or [install the available plugin](http://editorconfig.org/#download).
2020
3. Make sure you at least have [NodeJS 14](https://nodejs.org/en/download/) installed.
21-
4. You should install the theme inside a PrestaShop instance, please refer to [the developers docummentation of the project](https://devdocs.prestashop.com/1.7/basics/installation/).
21+
4. You should install the theme inside a PrestaShop instance, please refer to [the developers docummentation of the project](https://devdocs.prestashop-project.org/1.7/basics/installation/).
2222

2323
### How to build the theme
2424

@@ -35,7 +35,7 @@ then build assets:
3535
### Good practices
3636

3737
- Follow the BEM convention
38-
- Be careful about creating SCSS files in the right folder, refer to the [documentation](https://build.prestashop.com/hummingbird/) for further informations.
38+
- Be careful about creating SCSS files in the right folder, refer to the [documentation](https://build.prestashop-project.org/hummingbird/) for further informations.
3939
- When you want to submit a PR, please make sure that you ran both linters using `npm run lint-fix && npm run scss-fix` and fixed every lint issues.
4040
- If your PR is a work in progress, make sure that you use the Github draft mode.
4141
- Fill the PR template as much as possible, it's important to speed the process of testing, reviewing...

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Hummingbird theme
22

3-
This is a PrestaShop's theme we are working on. Please, if you work on this theme, use the `8.0.x` branch of PrestaShop to make sure this theme is compatible with the latest `8.x` version.
3+
This is a PrestaShop's theme we are working on. Please, if you work on this theme, use the `8.1.x` branch of PrestaShop to make sure this theme is compatible with the latest `8.1.x` version.
44

55
[Read more](https://build.prestashop.com/news/new-theme-announce/) about this theme on the blog.
66

@@ -9,7 +9,7 @@ This is a PrestaShop's theme we are working on. Please, if you work on this them
99

1010
## How to build assets
1111

12-
Same as the PrestaShop project, you need at least **NodeJS 14.x** and **NPM 7** in order to build the project.
12+
Same as the PrestaShop project, you need at least **NodeJS 16.x** and **NPM 8** in order to build the project.
1313

1414
First you need to install every node module:
1515

config/theme.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
name: hummingbird
1+
name: hummingbird
22
display_name: Hummingbird
3-
version: 0.1.5
3+
version: 0.2.0
44
author:
55
name: "PrestaShop Team"
66
email: "pub@prestashop.com"
@@ -59,6 +59,7 @@ global_settings:
5959
- blockwishlist
6060
displayCustomerAccount:
6161
- blockwishlist
62+
- psgdpr
6263
displayMyAccountBlock:
6364
- blockwishlist
6465
displayNav1:

modules/blockwishlist/views/templates/components/modals/add-to-wishlist.tpl

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
>
1010
<div
1111
class="wishlist-modal modal fade"
12-
{literal}
13-
:class="{show: !isHidden}"
14-
{/literal}
12+
:class="{ldelim}show: !isHidden{rdelim}"
1513
tabindex="-1"
1614
role="dialog"
1715
aria-modal="true"
@@ -26,8 +24,7 @@
2624
@click="toggleModal"
2725
data-dismiss="modal"
2826
aria-label="{l s='Close' d='Modules.Blockwishlist.Shop'}"
29-
>
30-
</button>
27+
></button>
3128
</div>
3229

3330
<div class="modal-body">
@@ -39,24 +36,20 @@
3936
url="{$url}"
4037
add-url="{$addUrl}"
4138
empty-text="{l s='No list found.' d='Modules.Blockwishlist.Shop'}"
42-
>
43-
</choose-list>
39+
></choose-list>
4440
</div>
4541

4642
<div class="modal-footer">
47-
<a @click="openNewWishlistModal" class="wishlist-add-to-new text-primary">
43+
<div role="button" @click="openNewWishlistModal" class="wishlist-add-to-new text-primary">
4844
<i class="material-icons text-primary" aria-hidden="true">add_circle_outline</i> {$newWishlistCTA}
49-
</a>
45+
</div>
5046
</div>
5147
</div>
5248
</div>
5349
</div>
5450

55-
<div
51+
<div
5652
class="modal-backdrop fade"
57-
{literal}
58-
:class="{in: !isHidden}"
59-
{/literal}
60-
>
61-
</div>
53+
:class="{ldelim}show: !isHidden{rdelim}"
54+
></div>
6255
</div>

modules/blockwishlist/views/templates/components/modals/create.tpl

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
>
1616
<div
1717
class="wishlist-modal modal fade"
18-
{literal}
19-
:class="{show: !isHidden}"
20-
{/literal}
18+
:class="{ldelim}show: !isHidden{rdelim}"
2119
tabindex="-1"
2220
role="dialog"
2321
aria-modal="true"
@@ -32,8 +30,7 @@
3230
@click="toggleModal"
3331
data-dismiss="modal"
3432
aria-label="Close"
35-
>
36-
</button>
33+
></button>
3734
</div>
3835
<div class="modal-body">
3936
<div class="form-group form-group-lg">
@@ -53,27 +50,20 @@
5350
class="modal-cancel btn btn-secondary"
5451
data-dismiss="modal"
5552
@click="toggleModal"
56-
>
57-
((cancelText))
58-
</button>
53+
>((cancelText))</button>
5954

6055
<button
6156
type="button"
6257
class="btn btn-primary"
6358
@click="createWishlist"
64-
>
65-
((createText))
66-
</button>
59+
>((createText))</button>
6760
</div>
6861
</div>
6962
</div>
7063
</div>
7164

72-
<div
65+
<div
7366
class="modal-backdrop fade"
74-
{literal}
75-
:class="{in: !isHidden}"
76-
{/literal}
77-
>
78-
</div>
67+
:class="{ldelim}show: !isHidden{rdelim}"
68+
></div>
7969
</div>

modules/blockwishlist/views/templates/components/modals/delete.tpl

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@
2020
>
2121
<div
2222
class="wishlist-modal modal fade"
23-
{literal}
24-
:class="{show: !isHidden}"
25-
{/literal}
23+
:class="{ldelim}show: !isHidden{rdelim}"
2624
tabindex="-1"
2725
role="dialog"
2826
aria-modal="true"
@@ -37,39 +35,31 @@
3735
@click="toggleModal"
3836
data-dismiss="modal"
3937
aria-label="Close"
40-
>
41-
</button>
38+
></button>
4239
</div>
4340
<div class="modal-body" v-if="productId">
44-
<p class="modal-text">((confirmMessage))</p>
41+
<p class="modal-text">((confirmMessage))</p>
4542
</div>
4643
<div class="modal-footer">
4744
<button
4845
type="button"
4946
class="modal-cancel btn btn-secondary"
5047
data-dismiss="modal"
5148
@click="toggleModal"
52-
>
53-
((cancelText))
54-
</button>
49+
>((cancelText))</button>
5550

5651
<button
5752
type="button"
5853
class="btn btn-primary"
5954
@click="deleteWishlist"
60-
>
61-
((modalDeleteText))
62-
</button>
55+
>((modalDeleteText))</button>
6356
</div>
6457
</div>
6558
</div>
6659
</div>
6760

68-
<div
61+
<div
6962
class="modal-backdrop fade"
70-
{literal}
71-
:class="{in: !isHidden}"
72-
{/literal}
73-
>
74-
</div>
63+
:class="{ldelim}show: !isHidden{rdelim}"
64+
></div>
7565
</div>

modules/blockwishlist/views/templates/components/modals/login.tpl

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
>
1111
<div
1212
class="wishlist-modal modal fade"
13-
{literal}
14-
:class="{show: !isHidden}"
15-
{/literal}
13+
:class="{ldelim}show: !isHidden{rdelim}"
1614
tabindex="-1"
1715
role="dialog"
1816
aria-modal="true"
@@ -27,8 +25,7 @@
2725
@click="toggleModal"
2826
data-dismiss="modal"
2927
aria-label="Close"
30-
>
31-
</button>
28+
></button>
3229
</div>
3330
<div class="modal-body">
3431
<p class="modal-text">{l s='You need to be logged in to save products in your wishlist.' d='Modules.Blockwishlist.Shop'}</p>
@@ -39,26 +36,19 @@
3936
class="modal-cancel btn btn-secondary"
4037
data-dismiss="modal"
4138
@click="toggleModal"
42-
>
43-
((cancelText))
44-
</button>
39+
>((cancelText))</button>
4540

4641
<a
4742
class="btn btn-primary"
4843
:href="prestashop.urls.pages.authentication"
49-
>
50-
((loginText))
51-
</a>
44+
>((loginText))</a>
5245
</div>
5346
</div>
5447
</div>
5548
</div>
5649

5750
<div
5851
class="modal-backdrop fade"
59-
{literal}
60-
:class="{in: !isHidden}"
61-
{/literal}
62-
>
63-
</div>
52+
:class="{ldelim}show: !isHidden{rdelim}"
53+
></div>
6454
</div>

modules/blockwishlist/views/templates/components/modals/rename.tpl

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@
1414
>
1515
<div
1616
class="wishlist-modal modal fade"
17-
{literal}
18-
:class="{show: !isHidden}"
19-
{/literal}
17+
:class="{ldelim}show: !isHidden{rdelim}"
2018
tabindex="-1"
2119
role="dialog"
2220
aria-modal="true"
@@ -31,8 +29,7 @@
3129
@click="toggleModal"
3230
data-dismiss="modal"
3331
aria-label="Close"
34-
>
35-
</button>
32+
></button>
3633
</div>
3734
<div class="modal-body">
3835
<div class="form-group form-group-lg">
@@ -51,26 +48,19 @@
5148
class="modal-cancel btn btn-secondary"
5249
data-dismiss="modal"
5350
@click="toggleModal"
54-
>
55-
((cancelText))
56-
</button>
51+
>((cancelText))</button>
5752
<button
5853
type="button"
5954
class="btn btn-primary"
6055
@click="renameWishlist"
61-
>
62-
((renameText))
63-
</button>
56+
>((renameText))</button>
6457
</div>
6558
</div>
6659
</div>
6760
</div>
6861

69-
<div
62+
<div
7063
class="modal-backdrop fade"
71-
{literal}
72-
:class="{in: !isHidden}"
73-
{/literal}
74-
>
75-
</div>
64+
:class="{ldelim}show: !isHidden{rdelim}"
65+
></div>
7666
</div>

modules/blockwishlist/views/templates/components/modals/share.tpl

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@
1414
>
1515
<div
1616
class="wishlist-modal modal fade"
17-
{literal}
18-
:class="{show: !isHidden}"
19-
{/literal}
17+
:class="{ldelim}show: !isHidden{rdelim}"
2018
tabindex="-1"
2119
role="dialog"
2220
aria-modal="true"
@@ -31,8 +29,7 @@
3129
@click="toggleModal"
3230
data-dismiss="modal"
3331
aria-label="Close"
34-
>
35-
</button>
32+
></button>
3633
</div>
3734
<div class="modal-body">
3835
<div class="form-group form-group-lg">
@@ -52,27 +49,20 @@
5249
class="modal-cancel btn btn-secondary"
5350
data-dismiss="modal"
5451
@click="toggleModal"
55-
>
56-
((cancelText))
57-
</button>
52+
>((cancelText))</button>
5853

5954
<button
6055
type="button"
6156
class="btn btn-primary"
6257
@click="copyLink"
63-
>
64-
(( actionText ))
65-
</button>
58+
>(( actionText ))</button>
6659
</div>
6760
</div>
6861
</div>
6962
</div>
7063

71-
<div
64+
<div
7265
class="modal-backdrop fade"
73-
{literal}
74-
:class="{in: !isHidden}"
75-
{/literal}
76-
>
77-
</div>
66+
:class="{ldelim}show: !isHidden{rdelim}"
67+
></div>
7868
</div>

0 commit comments

Comments
 (0)