Skip to main content
Sign in
Snippets Groups Projects
Commit 065dacc3 authored by Emmanuel Raviart's avatar Emmanuel Raviart
Browse files

Improve pages layout.

parent d1ed1b81
No related branches found
No related tags found
No related merge requests found
<script> <script>
import NavBar from "$lib/NavBar.svelte"
import "../global.css" import "../global.css"
import NavBar from "$lib/NavBar.svelte"
</script> </script>
<NavBar /> <NavBar />
... ...
......
TODO <script lang="ts">
import { session } from "$app/stores"
</script>
<svelte:head>
<title>À propos | {$session.title}</title>
</svelte:head>
<main>
<h1>À propos</h1>
</main>
...@@ -227,6 +227,11 @@ ...@@ -227,6 +227,11 @@
} }
</script> </script>
<svelte:head>
<title>Calculs | {$session.title}</title>
</svelte:head>
<main>
<label class="block"> <label class="block">
Année Année
<input max={2021} min={2013} step="1" type="number" bind:value={year} /> <input max={2021} min={2013} step="1" type="number" bind:value={year} />
...@@ -254,3 +259,4 @@ ...@@ -254,3 +259,4 @@
<label <label
><input bind:checked={showNulls} type="checkbox" /> Montrer les montants nuls</label ><input bind:checked={showNulls} type="checkbox" /> Montrer les montants nuls</label
> >
</main>
...@@ -177,9 +177,18 @@ ...@@ -177,9 +177,18 @@
</script> </script>
<script lang="ts"> <script lang="ts">
import { session } from "$app/stores"
import type { Simulation } from "$lib/simulations" import type { Simulation } from "$lib/simulations"
export let simulation: Simulation export let simulation: Simulation
</script> </script>
<svelte:head>
<title>Décomposition | {$session.title}</title>
</svelte:head>
<main>
<h1>Décomposition</h1>
<pre>{JSON.stringify(simulation, null, 2)}</pre> <pre>{JSON.stringify(simulation, null, 2)}</pre>
</main>
...@@ -21,7 +21,17 @@ ...@@ -21,7 +21,17 @@
</script> </script>
<script lang="ts"> <script lang="ts">
import { session } from "$app/stores"
export let entityById: unknown export let entityById: unknown
</script> </script>
<svelte:head>
<title>Entités | {$session.title}</title>
</svelte:head>
<main>
<h1>Entités</h1>
<pre>{JSON.stringify(entityById, null, 2)}</pre> <pre>{JSON.stringify(entityById, null, 2)}</pre>
</main>
<script lang="ts">
import { session } from "$app/stores"
$: title = $session.title
</script>
<svelte:head>
<title>{title}</title>
</svelte:head>
<main> <main>
<h1>Simulateur socio-fiscal Leximpact</h1> <h1>{title}</h1>
<h2>Tests de l'API OpenFisca</h2> <h2>Tests de l'API OpenFisca</h2>
<ul> <ul>
... ...
......
...@@ -49,9 +49,18 @@ ...@@ -49,9 +49,18 @@
</script> </script>
<script lang="ts"> <script lang="ts">
import { session } from "$app/stores"
import ParametersTree from "$lib/ParametersTree.svelte" import ParametersTree from "$lib/ParametersTree.svelte"
export let parametersTree: { [id: string]: ParametersNode } export let parametersTree: { [id: string]: ParametersNode }
</script> </script>
<svelte:head>
<title>Paramètres | {$session.title}</title>
</svelte:head>
<main>
<h1>Paramètres</h1>
<ParametersTree tree={parametersTree} /> <ParametersTree tree={parametersTree} />
</main>
...@@ -21,7 +21,17 @@ ...@@ -21,7 +21,17 @@
</script> </script>
<script lang="ts"> <script lang="ts">
import { session } from "$app/stores"
export let spec: unknown export let spec: unknown
</script> </script>
<svelte:head>
<title>Documentation de l'API | {$session.title}</title>
</svelte:head>
<main>
<h1>Documentation de l'API</h1>
<pre>{JSON.stringify(spec, null, 2)}</pre> <pre>{JSON.stringify(spec, null, 2)}</pre>
</main>
...@@ -20,11 +20,17 @@ ...@@ -20,11 +20,17 @@
</script> </script>
<script lang="ts"> <script lang="ts">
import { session } from "$app/stores"
import type { Variable } from "$lib/variables" import type { Variable } from "$lib/variables"
export let variable: Variable export let variable: Variable
</script> </script>
<svelte:head>
<title>{variable.id} | Variables | {$session.title}</title>
</svelte:head>
<main>
<h1> <h1>
Variable Variable
<var>{variable.id}</var> <var>{variable.id}</var>
...@@ -51,5 +57,9 @@ ...@@ -51,5 +57,9 @@
<hr class="my-4" /> <hr class="my-4" />
<h2>JSON</h2> <section>
<h1>JSON</h1>
<pre>{JSON.stringify(variable, null, 2)}</pre> <pre>{JSON.stringify(variable, null, 2)}</pre>
</section>
</main>
...@@ -19,12 +19,19 @@ ...@@ -19,12 +19,19 @@
</script> </script>
<script lang="ts"> <script lang="ts">
import { session } from "$app/stores"
import type { VariableSummaryById } from "$lib/variables" import type { VariableSummaryById } from "$lib/variables"
export let variableById: VariableSummaryById export let variableById: VariableSummaryById
</script> </script>
<svelte:head>
<title>Variables | {$session.title}</title>
</svelte:head>
<main>
<h1>Variables</h1> <h1>Variables</h1>
<ul class="list-disc list-inside"> <ul class="list-disc list-inside">
{#each Object.entries(variableById) as [id, variable]} {#each Object.entries(variableById) as [id, variable]}
<li> <li>
...@@ -37,3 +44,4 @@ ...@@ -37,3 +44,4 @@
</li> </li>
{/each} {/each}
</ul> </ul>
</main>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment