Skip to content

Commit

Permalink
used ts-prune to remove useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
enguerranws committed Sep 24, 2024
1 parent d927d10 commit 28bbe08
Show file tree
Hide file tree
Showing 15 changed files with 21 additions and 476 deletions.
7 changes: 0 additions & 7 deletions back/src/config/bootstrap/middlewareHelpers.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,9 @@ export const rueSaintHonoreDto: AddressDto = {
departmentCode: "75",
};

export const rueSaintHonore = "55 rue de Faubourg Saint Honoré 75008 Paris";

export const avenueChampsElyseesDto: AddressDto = {
streetNumberAndAddress: "30 avenue des champs Elysées",
departmentCode: "75",
city: "Paris",
postcode: "75017",
};

export const avenueChampsElysees = "30 avenue des champs Elysées 75017 Paris";
12 changes: 0 additions & 12 deletions back/src/domains/core/events/test.helpers.ts

This file was deleted.

13 changes: 0 additions & 13 deletions back/src/utils/counters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,6 @@ export const apiKeyAuthMiddlewareRequestsTotal = new Counter({
labelNames: ["route", "method", "consumerName", "authorisationStatus"],
});

//ESTABLISHMENT
export const counterFormEstablishmentCaller = new Counter({
name: "form_establishment_callers_counter",
help: "The total count form establishment adds, broken down by referer.",
labelNames: ["referer"],
});

export const counterFormEstablishmentCallerV1 = new Counter({
name: "form_establishment_v1_callers_counter",
help: "The total count form establishment adds, broken down by referer.",
labelNames: ["referer"],
});

//EVENT BUS
export const counterPublishedEventsTotal = new Counter({
name: "in_memory_event_bus_published_events_total",
Expand Down
171 changes: 0 additions & 171 deletions back/src/utils/db.integration.utils.ts

This file was deleted.

44 changes: 20 additions & 24 deletions front/src/app/components/ConsentManager.tsx
Original file line number Diff line number Diff line change
@@ -1,31 +1,27 @@
import { createConsentManagement } from "@codegouvfr/react-dsfr/consentManagement";

export const {
ConsentBannerAndConsentManagement,
FooterConsentManagementItem,
FooterPersonalDataPolicyItem,
useConsent,
} = createConsentManagement({
finalityDescription: () => ({
statistics: {
title: "Mesure d'audience",
description:
"Nous utilisons des cookies pour mesurer l’audience de notre site et améliorer son contenu.",
export const { ConsentBannerAndConsentManagement, useConsent } =
createConsentManagement({
finalityDescription: () => ({
statistics: {
title: "Mesure d'audience",
description:
"Nous utilisons des cookies pour mesurer l’audience de notre site et améliorer son contenu.",
},
support: {
title: "Support et assistance utilisateur",
description:
"Nous utilisons des cookies pour vous proposer la fonctionnalité de contact par chat avec le support d'Immersion Facilitée.",
},
}),
personalDataPolicyLinkProps: {
href: "/pages/politique-de-confidentialite",
},
support: {
title: "Support et assistance utilisateur",
description:
"Nous utilisons des cookies pour vous proposer la fonctionnalité de contact par chat avec le support d'Immersion Facilitée.",
consentCallback: (arg) => {
// biome-ignore lint/suspicious/noConsoleLog: <explanation>
console.log(arg);
},
}),
personalDataPolicyLinkProps: {
href: "/pages/politique-de-confidentialite",
},
consentCallback: (arg) => {
// biome-ignore lint/suspicious/noConsoleLog: <explanation>
console.log(arg);
},
});
});

export const getConsentModal = () => {
const modalElement = document.querySelector("#fr-consent-modal");
Expand Down
21 changes: 0 additions & 21 deletions front/src/app/components/SuccessFeedback.tsx

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 28bbe08

Please sign in to comment.