2024-12-04

This commit is contained in:
gcch 2024-12-03 13:03:12 +01:00
commit cdcf186a16
12 changed files with 198 additions and 216 deletions

View file

@ -2,7 +2,7 @@
* Initialise GlitchTip.
*/
import type { Transport, TransportMakeRequestResponse, TransportRequest } from "@sentry/types";
import type { Transport, TransportMakeRequestResponse, TransportRequest } from "@sentry/core";
import { pipe } from "@mobily/ts-belt";
import {
@ -26,9 +26,9 @@ import { ENTETE_GLITCHTIP_RATE_LIMITS, ENTETE_GLITCHTIP_RETRY_AFTER } from "./co
/* Créé la fonction génératrice de la requête auprès de GlitchTip */
const creeTransportFetch = (options: BrowserTransportOptions): Transport => {
const creeRequete = async (request: TransportRequest): Promise<TransportMakeRequestResponse> => {
const creeRequete = async (requete: TransportRequest): Promise<TransportMakeRequestResponse> => {
const optionsRequete: RequestInit = {
body: request.body,
body: requete.body,
headers: options.headers ?? {},
method: "POST",
mode: "no-cors",

View file

@ -16,7 +16,7 @@ import { WCErrorSchema } from "./schemas/api/erreurs.ts";
import { MessageMajBoutonPanierSchema, MessageMajContenuPanierSchema } from "./schemas/messages.ts";
import { eitherParse } from "./validation.ts";
const canalPostMessage = (canal: BroadcastChannel, message: any): BroadcastChannel => {
const canalPostMessage = (canal: BroadcastChannel, message: unknown): BroadcastChannel => {
canal.postMessage(message);
return canal;
};

View file

@ -4,17 +4,17 @@
<script>
// Injection d'états pour les Scripts de la page.
const _etats = {
nonce: "{{ nonce_wc }}",
authString: "{{ auth_string }}",
};
const _etats = {
nonce: "{{ nonce_wc }}",
authString: "{{ auth_string }}",
};
</script>
{% endblock head %}
{% block contenu %}
{# Menu avec les catégories de produits #}
{% include "parts/menu-categories-produits.twig" %}
{% include "parts/bandeau.twig" %}
{# {% include "parts/bandeau.twig" %} #}
<main id="page-boutique">
{% include "parts/pages/shop/grille-produits.twig" %}

View file

@ -4,10 +4,10 @@
<script>
// Injection d'états pour les Scripts de la page.
const _etats = {
nonce: "{{ nonce_wc }}",
authString: "{{ auth_string }}",
};
const _etats = {
nonce: "{{ nonce_wc }}",
authString: "{{ auth_string }}",
};
</script>
{% endblock head %}

View file

@ -1,18 +1,6 @@
<aside class="bandeau">
<div class="bandeau__conteneur">
<p>-20% off with this code to celebrate the new website: <strong>NEWSHOP20</strong>. Until the 3rd of December!</p>
<p>•</p>
</div>
<div class="bandeau__conteneur">
<p>-20% off with this code to celebrate the new website: <strong>NEWSHOP20</strong>. Until the 3rd of December!</p>
<p>•</p>
</div>
<div class="bandeau__conteneur">
<p>-20% off with this code to celebrate the new website: <strong>NEWSHOP20</strong>. Until the 3rd of December!</p>
<p>•</p>
</div>
<div class="bandeau__conteneur">
<p>-20% off with this code to celebrate the new website: <strong>NEWSHOP20</strong>. Until the 3rd of December!</p>
<p>•</p>
</div>
<div class="bandeau__conteneur"> </div>
<div class="bandeau__conteneur"> </div>
<div class="bandeau__conteneur"> </div>
<div class="bandeau__conteneur"> </div>
</aside>