Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
leximpact-budget-ui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
leximpact
leximpact-budget-ui
Commits
b9c46255
Commit
b9c46255
authored
Mar 22, 2022
by
sandcha
Browse files
Options
Downloads
Patches
Plain Diff
Extract CSG histogram config in new file
parent
fe3e248e
No related branches found
No related tags found
1 merge request
!5
Désactive le PLF 2022
Pipeline
#3271
passed
Mar 22, 2022
Stage: deploy
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/lib/components/budget/config-csg-activite.ts
+32
-0
32 additions, 0 deletions
src/lib/components/budget/config-csg-activite.ts
src/routes/index.svelte
+8
-20
8 additions, 20 deletions
src/routes/index.svelte
with
40 additions
and
20 deletions
src/lib/components/budget/config-csg-activite.ts
0 → 100644
+
32
−
0
View file @
b9c46255
const
CSG_TITLE
=
"
Recettes de CSG des revenus d'activité du secteur privé/public
"
const
HISTOGRAM_VARIABLES_TO_SUM
=
[
"
csg_imposable_salaire
"
,
"
csg_deductible_salaire
"
,
]
const
API_OUTPUT_VARIABLES
:
string
[]
=
[
"
assiette_csg_abattue
"
,
"
assiette_csg_non_abattue
"
,
"
csg_imposable_salaire
"
,
"
csg_deductible_salaire
"
,
]
const
API_QUANTILES_BASE_VARIABLES
:
string
[]
=
[
"
assiette_csg_abattue
"
,
"
assiette_csg_non_abattue
"
,
]
const
API_QUANTILES_COMPARE_VARIABLES
:
string
[]
=
[
"
csg_imposable_salaire
"
,
"
csg_deductible_salaire
"
,
]
export
{
CSG_TITLE
,
HISTOGRAM_VARIABLES_TO_SUM
,
API_OUTPUT_VARIABLES
,
API_QUANTILES_BASE_VARIABLES
,
API_QUANTILES_COMPARE_VARIABLES
,
}
This diff is collapsed.
Click to expand it.
src/routes/index.svelte
+
8
−
20
View file @
b9c46255
...
...
@@ -7,6 +7,13 @@
import
NavBar
from
"
$lib/components/NavBar.svelte
"
import
{
calculateBudget
}
from
"
$lib/components/budget/api-budget
"
import
type
{
ApiResponse
}
from
"
$lib/components/budget/api-budget
"
import
{
CSG_TITLE
,
HISTOGRAM_VARIABLES_TO_SUM
,
API_OUTPUT_VARIABLES
,
API_QUANTILES_BASE_VARIABLES
,
API_QUANTILES_COMPARE_VARIABLES
,
}
from
"
$lib/components/budget/config-csg-activite
"
import
ConnectionPane
from
"
$lib/components/budget/ConnectionPane.svelte
"
import
HistogramPane
from
"
$lib/components/budget/HistogramPane.svelte
"
import
LawEdit
from
"
$lib/components/budget/LawEdit.svelte
"
...
...
@@ -38,8 +45,7 @@
const
YEAR_ESTIMATION
=
ACTIVATE_PLF
?
CALCULATION_PLF_YEAR
:
CALCULATION_PLF_YEAR
const
CSG_TITLE
=
"
Recettes de CSG des revenus d'activité du secteur privé/public
"
const
CSG_DESCRIPTION
=
"
Montants estimés pour l'année 2022
"
const
CSG_GRAPH_TITLE
=
"
Périmètre actuel du simulateur par rapport à la CSG totale
"
...
...
@@ -51,24 +57,6 @@
const
reform
=
getContext
(
"
reform
"
)
as
Writable
<
Reform
>
$
:
console
.
log
(
"
🔶 Réforme définie :
"
,
$reform
)
const
HISTOGRAM_VARIABLES_TO_SUM
=
[
"
csg_imposable_salaire
"
,
"
csg_deductible_salaire
"
,
]
const
API_OUTPUT_VARIABLES
:
string
[]
=
[
"
assiette_csg_abattue
"
,
"
assiette_csg_non_abattue
"
,
"
csg_imposable_salaire
"
,
"
csg_deductible_salaire
"
,
]
const
API_QUANTILES_BASE_VARIABLES
:
string
[]
=
[
"
assiette_csg_abattue
"
,
"
assiette_csg_non_abattue
"
,
]
const
API_QUANTILES_COMPARE_VARIABLES
:
string
[]
=
[
"
csg_imposable_salaire
"
,
"
csg_deductible_salaire
"
,
]
let
csgResponseJson
:
ApiResponse
|
undefined
=
undefined
let
updatingHistogram
=
false
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment