Commit b2fc6fdb authored by Emmanuel Raviart's avatar Emmanuel Raviart
Browse files

Show debug menu only in development mode.

Code clean-up
parent 98fb18b6
<script lang="ts">
import { dev } from "$app/env"
import { goto } from "$app/navigation"
import { page, session } from "$app/stores"
import { validateJsonResponse } from "$lib/auditors/responses"
......@@ -144,10 +145,12 @@
</li>
</ul>
<label>
<input bind:checked={$debugMode} type="checkbox" />
Debug
</label>
{#if dev}
<label>
<input bind:checked={$debugMode} type="checkbox" />
Debug
</label>
{/if}
<select
class="border-0 portal mx-2 text-slate-600 hover:bg-gray-100 rounded-lg w-20"
......
......@@ -372,6 +372,13 @@
{:else if tab === "variables"}
<div class="flex flex-col w-auto overflow-hidden ml-4 mr-2 my-4">
{#if variables.length > 0}
<!--
<p
class="py-4 px-20 text-center italic text-gray-300 text-opacity-50"
>
AFFICHAGE CONFIGURÉ MANUELLEMENT
</p>
-->
{#each variables as variable}
<Drawer>
<!--
......@@ -447,6 +454,13 @@
{/each}-->
<!-- CODE WITH TABLE FROM JS OBJECT-->
<!--
<p
class="py-4 px-20 text-center italic text-gray-300 text-opacity-50"
>
AFFICHAGE CONFIGURÉ MANUELLEMENT
</p>
-->
{#each datafilesDscr as datafile}
<Drawer>
<!-- HEAD-->
......
......@@ -134,6 +134,5 @@
</table>
{/if}
<SimpleJsonTree title="DDI pour cette variable" value={variable} />
</section>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment