Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
leximpact-socio-fiscal-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
Show more breadcrumbs
leximpact
Simulateur socio-fiscal
leximpact-socio-fiscal-ui
Commits
9dfc0136
Commit
9dfc0136
authored
Feb 27, 2023
by
Dorine Lambinet
Browse files
Options
Downloads
Patches
Plain Diff
Résoud bug lien vers Openfisca pour presque toutes les formules
parent
d3280a26
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!132
Bug lien openfisca variables
Pipeline
#8228
passed
Feb 27, 2023
Stage: build
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lib/components/variables/VariableView.svelte
+21
-45
21 additions, 45 deletions
src/lib/components/variables/VariableView.svelte
with
21 additions
and
45 deletions
src/lib/components/variables/VariableView.svelte
+
21
−
45
View file @
9dfc0136
...
...
@@ -105,23 +105,6 @@
>. <br />La dernière date de relecture du dispositif
<b>est inconnue.</b>
<br />
<a
class="link text-sm text-gray-700"
href={newVariableRepositoryUrl(metadata, variable)}
rel="noreferrer"
target="_blank"
>
Mettre à jour la formule sur Github <svg
class="inline h-4 w-4 fill-current"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
width="24"
height="24"
><path fill="none" d="M0 0h24v24H0z" /><path
d="M12 2C6.475 2 2 6.475 2 12a9.994 9.994 0 0 0 6.838 9.488c.5.087.687-.213.687-.476 0-.237-.013-1.024-.013-1.862-2.512.463-3.162-.612-3.362-1.175-.113-.288-.6-1.175-1.025-1.413-.35-.187-.85-.65-.013-.662.788-.013 1.35.725 1.538 1.025.9 1.512 2.338 1.087 2.912.825.088-.65.35-1.087.638-1.337-2.225-.25-4.55-1.113-4.55-4.938 0-1.088.387-1.987 1.025-2.688-.1-.25-.45-1.275.1-2.65 0 0 .837-.262 2.75 1.026a9.28 9.28 0 0 1 2.5-.338c.85 0 1.7.112 2.5.337 1.912-1.3 2.75-1.024 2.75-1.024.55 1.375.2 2.4.1 2.65.637.7 1.025 1.587 1.025 2.687 0 3.838-2.337 4.688-4.562 4.938.362.312.675.912.675 1.85 0 1.337-.013 2.412-.013 2.75 0 .262.188.574.688.474A10.016 10.016 0 0 0 22 12c0-5.525-4.475-10-10-10z"
/></svg
>
</a>
</p>
</div>
</div>
...
...
@@ -147,29 +130,29 @@
)
}
.
</b
>
<br
/>
<a
class=
"link text-sm text-gray-700"
href=
{
newVariableRepositoryUrl(metadata, variable)
}
rel=
"noreferrer"
target=
"_blank"
>
Proposer une modification de la formule sur Github
<svg
class=
"inline h-4 w-4 fill-current"
xmlns=
"http://www.w3.org/2000/svg"
viewBox=
"0 0 24 24"
width=
"24"
height=
"24"
><path
fill=
"none"
d=
"M0 0h24v24H0z"
/><path
d=
"M12 2C6.475 2 2 6.475 2 12a9.994 9.994 0 0 0 6.838 9.488c.5.087.687-.213.687-.476 0-.237-.013-1.024-.013-1.862-2.512.463-3.162-.612-3.362-1.175-.113-.288-.6-1.175-1.025-1.413-.35-.187-.85-.65-.013-.662.788-.013 1.35.725 1.538 1.025.9 1.512 2.338 1.087 2.912.825.088-.65.35-1.087.638-1.337-2.225-.25-4.55-1.113-4.55-4.938 0-1.088.387-1.987 1.025-2.688-.1-.25-.45-1.275.1-2.65 0 0 .837-.262 2.75 1.026a9.28 9.28 0 0 1 2.5-.338c.85 0 1.7.112 2.5.337 1.912-1.3 2.75-1.024 2.75-1.024.55 1.375.2 2.4.1 2.65.637.7 1.025 1.587 1.025 2.687 0 3.838-2.337 4.688-4.562 4.938.362.312.675.912.675 1.85 0 1.337-.013 2.412-.013 2.75 0 .262.188.574.688.474A10.016 10.016 0 0 0 22 12c0-5.525-4.475-10-10-10z"
/></svg
>
</a>
</p>
</div>
</div>
{
/if
}
</div>
{
#if
variable.file_path !== undefined
}
<div
class=
"mt-4 flex"
>
<a
class=
"mx-4 mb-3 flex h-8 grow-0 items-center rounded-md bg-gray-300 px-2 py-1 text-sm uppercase text-black shadow-md hover:bg-le-bleu hover:text-white focus:outline-none md:mx-0"
href=
"https://github.com/openfisca/openfisca-france/blob/master/{encodeURIComponent(
variable.file_path,
)}#L{variable.start_line_number}"
target=
"_blank"
rel=
"noreferrer"
>
Voir la formule sur OpenFisca
<iconify-icon
class=
"ml-1 align-[-0.1rem] text-base"
icon=
"ri-external-link-line"
/></a
>
</div>
{
/if
}
{
#each
buildInstantFormulaAndReferencesArray(variable) as { formula, instant, references }}
<p class="mt-5 pb-3 text-xl font-bold">
{#if formula === undefined}
...
...
@@ -216,17 +199,10 @@
)
}
>Voir toutes les variables des cas types influant sur la formule,
à la date du
{
date
}
<!-- RemixIcon :external-link-line -->
<svg
class=
"inline h-4 w-4 fill-current"
xmlns=
"http://www.w3.org/2000/svg"
viewBox=
"0 0 24 24"
width=
"24"
height=
"24"
><path
fill=
"none"
d=
"M0 0h24v24H0z"
/><path
d=
"M10 6v2H5v11h11v-5h2v6a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h6zm11-3v8h-2V6.413l-7.793 7.794-1.414-1.414L17.585 5H13V3h8z"
/></svg
></a
<iconify-icon
class=
"align-[-0.1rem] text-base"
icon=
"ri-external-link-line"
/></a
>
</div>
<!--
...
...
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