-
Notifications
You must be signed in to change notification settings - Fork 2
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 #51 from thelia/feat/checkout
Feat/checkout
- Loading branch information
Showing
28 changed files
with
5,815 additions
and
2,329 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
{ | ||
"root": true, | ||
"parser": "@babel/eslint-parser", | ||
"extends": [ | ||
"react-app", | ||
"plugin:storybook/recommended" | ||
] | ||
"root": true, | ||
"parser": "@babel/eslint-parser", | ||
"extends": [ | ||
"react-app" | ||
], | ||
"rules": { | ||
"semi": [ | ||
2, | ||
"always" | ||
] | ||
} | ||
} |
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,3 @@ | ||
import Checkout from '@react/Layout/Checkout'; | ||
|
||
Checkout(); |
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,5 @@ | ||
import ProductGallery from "@components/Layout/ProductGallery/ProductGallery"; | ||
import PseSelectorRoot from "@react/Layout/PseSelector/PseSelector"; | ||
|
||
ProductGallery(); | ||
PseSelectorRoot(); |
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,3 @@ | ||
# Changelog Checkout | ||
|
||
- Reprise de la structure générale de CHR |
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,23 @@ | ||
{% extends 'base.html.twig' %} | ||
|
||
{% block title %} | ||
Tunnel d'achat | ||
{% endblock %} | ||
|
||
{% block javascripts %} | ||
{{ encore_entry_script_tags('checkout') }} | ||
{% endblock %} | ||
|
||
{% block header %} | ||
{% include '@components/Layout/Header/HeaderCheckout.twig' %} | ||
{% endblock %} | ||
{% block body %} | ||
{% set products = resources('/api/front/products', {'productCategories.category.id':1, itemsPerPage:3}) %} | ||
<div id="Checkout"></div> | ||
<div class="bg-theme-lighter"> | ||
{% include '@components/Layout/CrossSelling/CrossSelling.twig' with {products: products, title: 'Consultés récemment'} %} | ||
</div> | ||
{% endblock %} | ||
{% block footer %} | ||
{% include '@components/Layout/Footer/FooterCheckout.twig' %} | ||
{% endblock %} |
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,16 @@ | ||
|
||
{% set images = resources('/api/front/product_images', {'product.id':productId}) %} | ||
{% if images %} | ||
{% set imgId = images|first.id %} | ||
{% endif %} | ||
|
||
<ul class="absolute top-0 left-0 md:transform-none hidden -translate-x-full lg:translate-x-0 sm:block"> | ||
{% for image in images %} | ||
<li class="ProductGallery-item cursor-pointer{% if loop.index== 1 %} is-active{% endif %}"> | ||
<img class="ProductGallery-thumbnail" data-image-id="{{ image.id }}" src="{{ "/legacy-image-library/product_image_"~image.id~"/full/%5E*!92,92/0/default.webp"}}" loading="lazy" /> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
<div> | ||
<img id="MainImage" src="{{ imgId ? "/legacy-image-library/product_image_"~imgId~"/full/%5E*!594,594/0/default.webp" : "@assets/images/placeholder2.webp"}}" loading="lazy" alt="{{ attr('product', 'title') }}"/> | ||
</div> |
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 @@ | ||
<p>Toto</p> |
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,11 @@ | ||
declare module '*.svg' { | ||
import * as React from 'react'; | ||
|
||
export const ReactComponent: React.FunctionComponent< | ||
React.SVGProps<SVGSVGElement> & { title?: string } | ||
>; | ||
} | ||
interface Window { | ||
PSES: import('@react/Layout/PseSelector/PseSelector.types').PSE[]; | ||
ATTRIBUTES: import('@react/Layout/PseSelector/PseSelector.types').Attribute[]; | ||
} |
Oops, something went wrong.