Move config files

pull/2503/head
Jérémy Rialland 2023-02-07 11:46:35 +01:00 committed by Jérémy Rialland
parent 1abc827be0
commit 73f01dddb7
106 changed files with 186 additions and 188 deletions

View File

@ -4,8 +4,8 @@ import { Project } from 'ts-morph'
import yaml from 'yaml'
const buildYamlToDts = [
'./source/pages/Simulateurs/EconomieCollaborative/activités.yaml',
'./source/pages/Simulateurs/EconomieCollaborative/activités.en.yaml',
'./source/pages/Simulateurs/économie-collaborative/activités.yaml',
'./source/pages/Simulateurs/économie-collaborative/activités.en.yaml',
]
const transform = (data: Record<string, unknown>, filePath: string) => {

View File

@ -9,8 +9,8 @@ export const runScriptOnFileChange = async () => {
options: [
{
paths: [
'./source/pages/Simulateurs/EconomieCollaborative/activités.yaml',
'./source/pages/Simulateurs/EconomieCollaborative/activités.en.yaml',
'./source/pages/Simulateurs/économie-collaborative/activités.yaml',
'./source/pages/Simulateurs/économie-collaborative/activités.en.yaml',
],
run: 'yarn build:yaml-to-dts',
},

View File

@ -13,9 +13,9 @@ import { RootState } from '@/reducers/rootReducer'
import { useNextQuestionUrl } from '@/selectors/companyStatusSelectors'
import { useSitePaths } from '@/sitePaths'
import { TrackPage } from '../../ATInternetTracking'
import { SimulateurCard } from '../Simulateurs/Home'
import useSimulatorsData from '../Simulateurs/metadata'
import { TrackPage } from '../../../ATInternetTracking'
import { SimulateurCard } from '../../Simulateurs/Home'
import useSimulatorsData from '../../Simulateurs/metadata'
import créerSvg from './créer.svg'
export default function Créer() {

View File

@ -1,6 +1,6 @@
import Créer from '../../Creer/Home'
import { config } from '../configs/config'
import { SimulatorsDataParams } from '../configs/types'
import { config } from '../../Simulateurs/configs/config'
import { SimulatorsDataParams } from '../../Simulateurs/configs/types'
import Créer from './Home'
export function choixStatutConfig({ t, sitePaths }: SimulatorsDataParams) {
return config({

View File

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

@ -7,7 +7,7 @@ import { LANDING_LEGAL_STATUS_LIST, useSitePaths } from '../../sitePaths'
import AfterRegistration from './AfterRegistration'
import CreationChecklist from './CreationChecklist'
import GuideStatut from './GuideStatut'
import Home from './Home'
import Home from './choix-statut/Home'
export default function CreateMyCompany() {
const { relativeSitePaths } = useSitePaths()

View File

@ -14,7 +14,7 @@ import { EngineContext } from '@/components/utils/EngineContext'
import useSimulationConfig from '@/components/utils/useSimulationConfig'
import { H2 } from '@/design-system/typography/heading'
import { configArtisteAuteur } from './configs/artisteAuteur'
import { configArtisteAuteur } from './_simulationConfig'
export default function ArtisteAuteur() {
useSimulationConfig({ path: 'artiste-auteur', config: configArtisteAuteur })

View File

@ -1,6 +1,6 @@
import ArtisteAuteur from '../ArtisteAuteur'
import { config } from '../configs/config'
import { SimulatorsDataParams } from '../configs/types'
import ArtisteAuteur from './ArtisteAuteur'
export function artisteAuteurConfig({ t, sitePaths }: SimulatorsDataParams) {
return config({

View File

@ -1,4 +1,4 @@
import { SimulationConfig } from './types'
import { SimulationConfig } from '../configs/types'
export const configArtisteAuteur: SimulationConfig = {
objectifs: [

View File

@ -1,8 +1,8 @@
import AutoEntrepreneur, { SeoExplanations } from '../AutoEntrepreneur'
import { configAutoEntrepreneur } from '../configs/autoEntrepreneur'
import { config } from '../configs/config'
import { SimulatorsDataParams } from '../configs/types'
import AutoEntrepreneurPreview from './images/AutoEntrepreneurPreview.png'
import AutoEntrepreneurPreview from '../images/AutoEntrepreneurPreview.png'
import AutoEntrepreneur, { SeoExplanations } from './AutoEntrepreneur'
import { configAutoEntrepreneur } from './_simulationConfig'
export function autoEntrepreneurConfig({ t, sitePaths }: SimulatorsDataParams) {
return config({

View File

@ -1,4 +1,4 @@
import { SimulationConfig } from './types'
import { SimulationConfig } from '../configs/types'
export const configAutoEntrepreneur: SimulationConfig = {
'objectifs exclusifs': [

View File

@ -1,7 +1,7 @@
import { IndépendantPLSimulation } from '../Indépendant'
import { config } from '../configs/config'
import { configAuxiliaire } from '../configs/professionLibérale'
import { SimulatorsDataParams } from '../configs/types'
import { IndépendantPLSimulation } from '../indépendant/Indépendant'
import { configAuxiliaire } from '../profession-libérale/_simulationConfig'
export function auxiliaireMédicalConfig({
t,

View File

@ -1,7 +1,7 @@
import { IndépendantPLSimulation } from '../Indépendant'
import { config } from '../configs/config'
import { configAvocat } from '../configs/professionLibérale'
import { SimulatorsDataParams } from '../configs/types'
import { IndépendantPLSimulation } from '../indépendant/Indépendant'
import { configAvocat } from '../profession-libérale/_simulationConfig'
export function avocatConfig({ t, sitePaths }: SimulatorsDataParams) {
return config({

View File

@ -1,7 +1,7 @@
import { IndépendantPLSimulation } from '../Indépendant'
import { config } from '../configs/config'
import { configDentiste } from '../configs/professionLibérale'
import { SimulatorsDataParams } from '../configs/types'
import { IndépendantPLSimulation } from '../indépendant/Indépendant'
import { configDentiste } from '../profession-libérale/_simulationConfig'
export function chirurgienDentisteConfig({
t,

View File

@ -19,8 +19,6 @@ import { Li, Ul } from '@/design-system/typography/list'
import { Body } from '@/design-system/typography/paragraphs'
import { catchDivideByZeroError } from '@/utils'
import { SimulatorsDataParams } from './configs/types'
declare global {
interface Window {
STONLY_WID: string

View File

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 54 KiB

View File

@ -1,8 +1,8 @@
import ChômagePartielComponent, { SeoExplanations } from '../ChômagePartiel'
import { configChômagePartiel } from '../configs/chômagePartiel'
import { config } from '../configs/config'
import { SimulatorsDataParams } from '../configs/types'
import ChômagePartielPreview from './images/ChômagePartielPreview.png'
import ChômagePartielComponent, { SeoExplanations } from './ChômagePartiel'
import ChômagePartielPreview from './ChômagePartielPreview.png'
import { configChômagePartiel } from './_simulationConfig'
export function chômagePartielConfig({ t, sitePaths }: SimulatorsDataParams) {
return config({

View File

@ -1,4 +1,4 @@
import { SimulationConfig } from './types'
import { SimulationConfig } from '../configs/types'
export const configChômagePartiel: SimulationConfig = {
objectifs: [

View File

@ -1,6 +1,7 @@
import SchemeComparaisonPage from '../ComparateurStatuts'
import SchemeComparaisonPage from '.'
import { config } from '../configs/config'
import { SimulatorsDataParams } from '../configs/types'
import { configComparateurStatuts } from './_simulationConfig'
export function comparaisonStatutsConfig({
t,
@ -32,6 +33,7 @@ export function comparaisonStatutsConfig({
'Comparaison des statuts'
),
path: sitePaths.simulateurs.comparaison,
simulation: configComparateurStatuts,
component: SchemeComparaisonPage,
} as const)
}

View File

@ -1,4 +1,4 @@
import { SimulationConfig } from './types'
import { SimulationConfig } from '../configs/types'
export const configComparateurStatuts: SimulationConfig = {
'objectifs exclusifs': [],

View File

@ -62,7 +62,7 @@ const StatusCard = ({
))}
</Grid>
<StyledBody>{children}</StyledBody>
<StyledBody as="div">{children}</StyledBody>
</CardBody>
{isBestOption && (
<Tooltip

View File

@ -4,12 +4,9 @@ import { useMemo } from 'react'
import { Trans } from 'react-i18next'
import { useEngine, useRawSituation } from '@/components/utils/EngineContext'
import useSimulationConfig from '@/components/utils/useSimulationConfig'
import { Strong } from '@/design-system/typography'
import { Intro } from '@/design-system/typography/paragraphs'
import { useSitePaths } from '@/sitePaths'
import { configComparateurStatuts } from '../configs/comparateurStatuts'
import Comparateur from './components/Comparateur'
import {
CasParticuliersProvider,
@ -22,12 +19,6 @@ function ComparateurStatutsUI() {
const { isAutoEntrepreneurACREEnabled } = useCasParticuliers()
const { absoluteSitePaths } = useSitePaths()
useSimulationConfig({
path: absoluteSitePaths.simulateurs.comparaison,
config: configComparateurStatuts,
})
const assimiléEngine = useMemo(
() =>
engine.shallowCopy().setSituation({

View File

@ -1,7 +1,7 @@
import DividendesSimulation, { SeoExplanations } from '../Dividendes'
import { config } from '../configs/config'
import { configDividendes } from '../configs/dividendes'
import { SimulatorsDataParams } from '../configs/types'
import DividendesSimulation, { SeoExplanations } from './Dividendes'
import { configDividendes } from './_simulationConfig'
export function dividendesConfig({ t, sitePaths }: SimulatorsDataParams) {
return config({

View File

@ -1,4 +1,4 @@
import { SimulationConfig } from './types'
import { SimulationConfig } from '../configs/types'
export const configDividendes: SimulationConfig = {
'objectifs exclusifs': [

View File

@ -1,40 +0,0 @@
import DéclarationChargeSocialeIndépendant from '../../gerer/declaration-charges-sociales-independant'
import { config } from '../configs/config'
import { SimulatorsDataParams } from '../configs/types'
export function déclarationChargesSocialesIndépendantConfig({
t,
sitePaths,
}: SimulatorsDataParams) {
return config({
id: 'déclaration-charges-sociales-indépendant',
path: sitePaths.gérer['déclaration-charges-sociales-indépendant'],
tracking: {
chapter1: 'gerer',
chapter2: 'declaration_charges_sociales_independant',
},
icône: '📑',
meta: {
description: t(
'pages.gérer.declaration_charges_sociales_indépendant.meta.description',
'Calculez le montant des cotisations et contributions sociales à reporter dans votre déclaration de revenu 2021'
),
title: t(
'pages.gérer.declaration_charges_sociales_indépendant.meta.title',
'Détermination des charges sociales déductibles'
),
},
pathId: 'gérer.déclaration-charges-sociales-indépendant',
shortName: t(
'pages.gérer.declaration_charges_sociales_indépendant.shortname',
'Détermination des charges sociales déductibles'
),
iframePath: 'déclaration-charges-sociales-indépendant',
title: t(
'pages.gérer.declaration_charges_sociales_indépendant.title',
'Assistant à la détermination des charges sociales déductibles'
),
nextSteps: ['exonération-covid', 'déclaration-revenu-indépendant-beta'],
component: DéclarationChargeSocialeIndépendant,
} as const)
}

View File

@ -1,41 +0,0 @@
import DéclarationChargeSocialeIndépendant from '../../gerer/declaration-charges-sociales-independant'
import { config } from '../configs/config'
import { SimulatorsDataParams } from '../configs/types'
export function déclarationRevenuIndépendantConfig({
t,
sitePaths,
}: SimulatorsDataParams) {
// TODO: Delete "déclaration-revenu-indépendant" object when DRI will no longer be in beta
return config({
id: 'déclaration-revenu-indépendant',
path: sitePaths.gérer.déclarationIndépendant.index,
tracking: {
chapter1: 'gerer',
chapter2: 'declaration_charges_sociales_independant',
},
icône: '📑',
meta: {
description: t(
'pages.gérer.declaration_charges_sociales_indépendant.meta.description',
'Calculez le montant des cotisations et contributions sociales à reporter dans votre déclaration de revenu 2021'
),
title: t(
'pages.gérer.declaration_charges_sociales_indépendant.meta.title',
'Détermination des charges sociales déductibles'
),
},
pathId: 'gérer.déclarationIndépendant.index',
shortName: t(
'pages.gérer.declaration_charges_sociales_indépendant.shortname',
'Détermination des charges sociales déductibles'
),
iframePath: 'déclaration-revenu-indépendant',
title: t(
'pages.gérer.declaration_charges_sociales_indépendant.title',
'Assistant à la détermination des charges sociales déductibles'
),
nextSteps: ['exonération-covid', 'déclaration-revenu-indépendant-beta'],
component: DéclarationChargeSocialeIndépendant,
} as const)
}

View File

@ -1,8 +1,8 @@
import IndépendantSimulation from '../Indépendant'
import { config } from '../configs/config'
import { configEirl } from '../configs/indépendant'
import { SimulatorsDataParams } from '../configs/types'
import AutoEntrepreneurPreview from './images/AutoEntrepreneurPreview.png'
import AutoEntrepreneurPreview from '../images/AutoEntrepreneurPreview.png'
import IndépendantSimulation from '../indépendant/Indépendant'
import { configEirl } from '../indépendant/_simulationConfig'
export function eirlConfig({ t, sitePaths }: SimulatorsDataParams) {
return config({

View File

@ -1,8 +1,11 @@
import { EntrepriseIndividuelle, SeoExplanationsEI } from '../Indépendant'
import { config } from '../configs/config'
import { configEntrepriseIndividuelle } from '../configs/indépendant'
import { SimulatorsDataParams } from '../configs/types'
import AutoEntrepreneurPreview from './images/AutoEntrepreneurPreview.png'
import AutoEntrepreneurPreview from '../images/AutoEntrepreneurPreview.png'
import {
EntrepriseIndividuelle,
SeoExplanationsEI,
} from '../indépendant/Indépendant'
import { configEntrepriseIndividuelle } from '../indépendant/_simulationConfig'
export function entrepriseIndividuelleConfig({
t,

View File

@ -1,8 +1,8 @@
import IndépendantSimulation from '../Indépendant'
import { config } from '../configs/config'
import { configEurl } from '../configs/indépendant'
import { SimulatorsDataParams } from '../configs/types'
import RémunérationSASUPreview from './images/RémunérationSASUPreview.png'
import RémunérationSASUPreview from '../images/RémunérationSASUPreview.png'
import IndépendantSimulation from '../indépendant/Indépendant'
import { configEurl } from '../indépendant/_simulationConfig'
export function eurlConfig({ t, sitePaths }: SimulatorsDataParams) {
return config({

View File

@ -1,4 +1,4 @@
import ExonérationCovid from '../ExonerationCovid'
import ExonérationCovid from '.'
import { config } from '../configs/config'
import { SimulatorsDataParams } from '../configs/types'

View File

@ -1,7 +1,7 @@
import { IndépendantPLSimulation } from '../Indépendant'
import { config } from '../configs/config'
import { configExpertComptable } from '../configs/professionLibérale'
import { SimulatorsDataParams } from '../configs/types'
import { IndépendantPLSimulation } from '../indépendant/Indépendant'
import { configExpertComptable } from '../profession-libérale/_simulationConfig'
export function expertComptableConfig({ t, sitePaths }: SimulatorsDataParams) {
return config({

View File

@ -1,7 +1,7 @@
import IndépendantSimulation from '../Indépendant'
import { config } from '../configs/config'
import { configIndépendant } from '../configs/indépendant'
import { SimulatorsDataParams } from '../configs/types'
import IndépendantSimulation from './Indépendant'
import { configIndépendant } from './_simulationConfig'
export function indépendantConfig({ t, sitePaths }: SimulatorsDataParams) {
return config({

View File

@ -1,4 +1,4 @@
import { SimulationConfig } from './types'
import { SimulationConfig } from '../configs/types'
export const configIndépendant: SimulationConfig = {
'objectifs exclusifs': [

View File

@ -1,20 +1,22 @@
import { ImmutableType } from '@/types/utils'
import { choixStatutConfig } from '../Creer/choix-statut/_config'
import {
déclarationChargesSocialesIndépendantConfig,
déclarationRevenuIndépendantConfig,
} from '../gerer/declaration-charges-sociales-independant/_config'
import { déclarationRevenuIndépendantBetaConfig } from '../gerer/declaration-revenu-independants/_config'
import { demandeMobilitéConfig } from '../gerer/demande-mobilité/_config'
import { artisteAuteurConfig } from './artiste-auteur/_config'
import { autoEntrepreneurConfig } from './auto-entrepreneur/_config'
import { auxiliaireMédicalConfig } from './auxiliaire-médical/_config'
import { avocatConfig } from './avocat/_config'
import { chirurgienDentisteConfig } from './chirurgien-dentiste/_config'
import { choixStatutConfig } from './choix-statut/_config'
import { chômagePartielConfig } from './chômage-partiel/_config'
import { comparaisonStatutsConfig } from './comparaison-statuts/_config'
import { PageConfig, SimulatorsDataParams } from './configs/types'
import { coûtCréationEntrepriseConfig } from './cout-creation-entreprise/_config.js'
import { demandeMobilitéConfig } from './demande-mobilité/_config'
import { dividendesConfig } from './dividendes/_config'
import { déclarationChargesSocialesIndépendantConfig } from './déclaration-charges-sociales-indépendant/_config'
import { déclarationRevenuIndépendantBetaConfig } from './déclaration-revenu-indépendant-beta/_config'
import { déclarationRevenuIndépendantConfig } from './déclaration-revenu-indépendant/_config'
import { eirlConfig } from './eirl/_config'
import { entrepriseIndividuelleConfig } from './entreprise-individuelle/_config'
import { eurlConfig } from './eurl/_config'

View File

@ -1,7 +1,7 @@
import { IndépendantPLSimulation } from '../Indépendant'
import { config } from '../configs/config'
import { configMédecin } from '../configs/professionLibérale'
import { SimulatorsDataParams } from '../configs/types'
import { IndépendantPLSimulation } from '../indépendant/Indépendant'
import { configMédecin } from '../profession-libérale/_simulationConfig'
export function médecinConfig({ t, sitePaths }: SimulatorsDataParams) {
return config({

View File

@ -1,8 +1,8 @@
import { H2 } from '@/design-system/typography/heading'
import { TrackPage } from '../../ATInternetTracking'
import { SimulateurCard } from './Home'
import useSimulatorsData from './metadata'
import { TrackPage } from '../../../ATInternetTracking'
import { SimulateurCard } from '../Home'
import useSimulatorsData from '../metadata'
export default function SalariéSimulation() {
const simulators = useSimulatorsData()

View File

@ -1,7 +1,7 @@
import PAMCHome from '../PAMCHome'
import { config } from '../configs/config'
import { configProfessionLibérale } from '../configs/professionLibérale'
import { SimulatorsDataParams } from '../configs/types'
import { configProfessionLibérale } from '../profession-libérale/_simulationConfig'
import PAMCHome from './PAMCHome'
export function pamcConfig({ t, sitePaths }: SimulatorsDataParams) {
return config({

View File

@ -1,7 +1,9 @@
import { config } from '../configs/config'
import { SimulatorsDataParams } from '../configs/types'
import { IndépendantPLSimulation } from '../indépendant/Indépendant'
import { configPharmacien } from '../profession-libérale/_simulationConfig'
export function pharmacienConfig({ t }: SimulatorsDataParams) {
export function pharmacienConfig({ t, sitePaths }: SimulatorsDataParams) {
return config({
id: 'pharmacien',
tracking: {
@ -26,5 +28,8 @@ export function pharmacienConfig({ t }: SimulatorsDataParams) {
'pages.simulateurs.pharmacien.title',
'Simulateur de revenus pour pharmacien en libéral'
),
path: sitePaths.simulateurs['profession-libérale'].pharmacien,
simulation: configPharmacien,
component: IndépendantPLSimulation,
} as const)
}

View File

@ -1,7 +1,7 @@
import { IndépendantPLSimulation } from '../Indépendant'
import { config } from '../configs/config'
import { configProfessionLibérale } from '../configs/professionLibérale'
import { SimulatorsDataParams } from '../configs/types'
import { IndépendantPLSimulation } from '../indépendant/Indépendant'
import { configProfessionLibérale } from './_simulationConfig'
export function professionLibéraleConfig({
t,

View File

@ -1,4 +1,4 @@
import { SimulationConfig } from './types'
import { SimulationConfig } from '../configs/types'
export const configProfessionLibérale: SimulationConfig = {
'objectifs exclusifs': [

View File

@ -1,7 +1,7 @@
import { IndépendantPLSimulation } from '../Indépendant'
import { config } from '../configs/config'
import { configSageFemme } from '../configs/professionLibérale'
import { SimulatorsDataParams } from '../configs/types'
import { IndépendantPLSimulation } from '../indépendant/Indépendant'
import { configSageFemme } from '../profession-libérale/_simulationConfig'
export function sageFemmeConfig({ t, sitePaths }: SimulatorsDataParams) {
return config({

View File

Before

Width:  |  Height:  |  Size: 53 KiB

After

Width:  |  Height:  |  Size: 53 KiB

View File

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 60 KiB

View File

@ -30,8 +30,8 @@ import { Body, SmallBody } from '@/design-system/typography/paragraphs'
import { targetUnitSelector } from '@/selectors/simulationSelectors'
import { useSitePaths } from '@/sitePaths'
import urlIllustrationNetBrutEn from './images/illustration-net-brut-en.png'
import urlIllustrationNetBrut from './images/illustration-net-brut.png'
import urlIllustrationNetBrutEn from './illustration-net-brut-en.png'
import urlIllustrationNetBrut from './illustration-net-brut.png'
const ButtonContainer = styled.span`
display: block;

View File

@ -1,9 +1,9 @@
import SalariéSimulation, { SeoExplanations } from '../Salarié'
import { config } from '../configs/config'
import { configSalarié } from '../configs/salarié'
import { SimulatorsDataParams } from '../configs/types'
import salaireBrutNetPreviewEN from './images/SalaireBrutNetPreviewEN.png'
import salaireBrutNetPreviewFR from './images/SalaireBrutNetPreviewFR.png'
import salaireBrutNetPreviewEN from './SalaireBrutNetPreviewEN.png'
import salaireBrutNetPreviewFR from './SalaireBrutNetPreviewFR.png'
import SalariéSimulation, { SeoExplanations } from './Salarié'
import { configSalarié } from './_simulationConfig'
export function salariéConfig(params: SimulatorsDataParams) {
const { t, sitePaths, language } = params

View File

@ -1,4 +1,4 @@
import { SimulationConfig } from './types'
import { SimulationConfig } from '../configs/types'
export const configSalarié: SimulationConfig = {
'objectifs exclusifs': [

View File

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

View File

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

View File

@ -1,8 +1,8 @@
import { SASUSimulation, SeoExplanations } from '../SASU'
import { config } from '../configs/config'
import { configSASU } from '../configs/dirigeantSASU'
import { SimulatorsDataParams } from '../configs/types'
import RémunérationSASUPreview from './images/RémunérationSASUPreview.png'
import RémunérationSASUPreview from '../images/RémunérationSASUPreview.png'
import { SASUSimulation, SeoExplanations } from './SASU'
import { configSASU } from './_simulationConfig'
export function sasuConfig({ t, sitePaths }: SimulatorsDataParams) {
return config({

View File

@ -1,4 +1,4 @@
import { SimulationConfig } from './types'
import { SimulationConfig } from '../configs/types'
export const configSASU: SimulationConfig = {
'objectifs exclusifs': [

View File

@ -3,6 +3,7 @@ import { useContext } from 'react'
import { Trans, useTranslation } from 'react-i18next'
import { Navigate, useParams } from 'react-router-dom'
import { TrackPage } from '@/ATInternetTracking'
import { FromBottom } from '@/components/ui/animate'
import { ScrollToTop } from '@/components/utils/Scroll'
import { Markdown } from '@/components/utils/markdown'
@ -13,7 +14,6 @@ import { Body, SmallBody } from '@/design-system/typography/paragraphs'
import { useSitePaths } from '@/sitePaths'
import { getValueFrom } from '@/utils'
import { TrackPage } from '../../../ATInternetTracking'
import { ActivitéSelection } from './ActivitésSelection'
import Exonérations from './Exonérations'
import NextButton from './NextButton'

View File

@ -2,6 +2,7 @@ import { useContext } from 'react'
import { Trans, useTranslation } from 'react-i18next'
import { Navigate } from 'react-router-dom'
import { TrackPage } from '@/ATInternetTracking'
import { FromBottom } from '@/components/ui/animate'
import DefaultHelmet from '@/components/utils/DefaultHelmet'
import { ScrollToTop } from '@/components/utils/Scroll'
@ -14,7 +15,6 @@ import { Link } from '@/design-system/typography/link'
import { Body, SmallBody } from '@/design-system/typography/paragraphs'
import { useSitePaths } from '@/sitePaths'
import { TrackPage } from '../../../ATInternetTracking'
import { ActiviteCard } from './ActiviteCard'
import { StoreContext } from './StoreContext'
import illustration from './images/multitasking.svg'

View File

@ -1,4 +1,4 @@
import ÉconomieCollaborative from '../EconomieCollaborative'
import ÉconomieCollaborative from '.'
import { config } from '../configs/config'
import { SimulatorsDataParams } from '../configs/types'

View File

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

View File

@ -2,11 +2,11 @@ import { Trans } from 'react-i18next'
import { Route, Routes } from 'react-router-dom'
import styled from 'styled-components'
import { TrackChapter } from '@/ATInternetTracking'
import { useIsEmbedded } from '@/components/utils/useIsEmbedded'
import { Link } from '@/design-system/typography/link'
import { useSitePaths } from '@/sitePaths'
import { TrackChapter } from '../../../ATInternetTracking'
import useSimulatorsData from '../metadata'
import Activité from './Activité'
import ActivitésSelection from './ActivitésSelection'

View File

@ -0,0 +1,78 @@
import DéclarationChargeSocialeIndépendant from '.'
import { config } from '../../Simulateurs/configs/config'
import { SimulatorsDataParams } from '../../Simulateurs/configs/types'
export function déclarationChargesSocialesIndépendantConfig({
t,
sitePaths,
}: SimulatorsDataParams) {
return config({
id: 'déclaration-charges-sociales-indépendant',
path: sitePaths.gérer['déclaration-charges-sociales-indépendant'],
tracking: {
chapter1: 'gerer',
chapter2: 'declaration_charges_sociales_independant',
},
icône: '📑',
meta: {
description: t(
'pages.gérer.declaration_charges_sociales_indépendant.meta.description',
'Calculez le montant des cotisations et contributions sociales à reporter dans votre déclaration de revenu 2021'
),
title: t(
'pages.gérer.declaration_charges_sociales_indépendant.meta.title',
'Détermination des charges sociales déductibles'
),
},
pathId: 'gérer.déclaration-charges-sociales-indépendant',
shortName: t(
'pages.gérer.declaration_charges_sociales_indépendant.shortname',
'Détermination des charges sociales déductibles'
),
iframePath: 'déclaration-charges-sociales-indépendant',
title: t(
'pages.gérer.declaration_charges_sociales_indépendant.title',
'Assistant à la détermination des charges sociales déductibles'
),
nextSteps: ['exonération-covid', 'déclaration-revenu-indépendant-beta'],
component: DéclarationChargeSocialeIndépendant,
} as const)
}
export function déclarationRevenuIndépendantConfig({
t,
sitePaths,
}: SimulatorsDataParams) {
// TODO: Delete "déclaration-revenu-indépendant" object when DRI will no longer be in beta
return config({
id: 'déclaration-revenu-indépendant',
path: sitePaths.gérer.déclarationIndépendant.index,
tracking: {
chapter1: 'gerer',
chapter2: 'declaration_charges_sociales_independant',
},
icône: '📑',
meta: {
description: t(
'pages.gérer.declaration_charges_sociales_indépendant.meta.description',
'Calculez le montant des cotisations et contributions sociales à reporter dans votre déclaration de revenu 2021'
),
title: t(
'pages.gérer.declaration_charges_sociales_indépendant.meta.title',
'Détermination des charges sociales déductibles'
),
},
pathId: 'gérer.déclarationIndépendant.index',
shortName: t(
'pages.gérer.declaration_charges_sociales_indépendant.shortname',
'Détermination des charges sociales déductibles'
),
iframePath: 'déclaration-revenu-indépendant',
title: t(
'pages.gérer.declaration_charges_sociales_indépendant.title',
'Assistant à la détermination des charges sociales déductibles'
),
nextSteps: ['exonération-covid', 'déclaration-revenu-indépendant-beta'],
component: DéclarationChargeSocialeIndépendant,
} as const)
}

View File

@ -1,6 +1,6 @@
import DéclarationRevenuIndépendant from '../../gerer/declaration-revenu-independants'
import { config } from '../configs/config'
import { SimulatorsDataParams } from '../configs/types'
import DéclarationRevenuIndépendant from '.'
import { config } from '../../Simulateurs/configs/config'
import { SimulatorsDataParams } from '../../Simulateurs/configs/types'
export function déclarationRevenuIndépendantBetaConfig({
t,

View File

@ -1,6 +1,6 @@
import FormulaireMobilitéIndépendant from '../../gerer/demande-mobilité'
import { config } from '../configs/config'
import { SimulatorsDataParams } from '../configs/types'
import FormulaireMobilitéIndépendant from '.'
import { config } from '../../Simulateurs/configs/config'
import { SimulatorsDataParams } from '../../Simulateurs/configs/types'
export function demandeMobilitéConfig({ t, sitePaths }: SimulatorsDataParams) {
return config({

View File

@ -1,6 +1,6 @@
import { it } from 'vitest'
import { configSASU } from '@/pages/Simulateurs/configs/dirigeantSASU'
import { configSASU } from '@/pages/Simulateurs/sasu/dirigeantSASU'
import rémunérationSASUSituations from './simulations-SASU.yaml'
import { runSimulations } from './utils'

View File

@ -1,6 +1,6 @@
import { expect, it } from 'vitest'
import { configArtisteAuteur } from '@/pages/Simulateurs/configs/artisteAuteur'
import { configArtisteAuteur } from '@/pages/Simulateurs/artiste-auteur/artisteAuteur'
import artisteAuteurSituations from './simulations-artiste-auteur.yaml'
import { engine, getMissingVariables, runSimulations } from './utils'

Some files were not shown because too many files have changed in this diff Show More