From 3a0660f9113b5996f7956d18fc7b2c437f13e379 Mon Sep 17 00:00:00 2001 From: eric-intuitem <71850047+eric-intuitem@users.noreply.github.com> Date: Mon, 1 Apr 2024 23:50:18 +0200 Subject: [PATCH] add BASE_NAME support in front - add BASE_NAME support in front - remove debug stuff --- frontend/src/lib/components/ModelTable/ModelTable.svelte | 3 +-- .../src/lib/components/TableRowActions/TableRowActions.svelte | 2 -- frontend/src/routes/(app)/evidences/[id=uuid]/+page.svelte | 1 - frontend/svelte.config.js | 2 +- 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/frontend/src/lib/components/ModelTable/ModelTable.svelte b/frontend/src/lib/components/ModelTable/ModelTable.svelte index 14a6e72f5..da8e4b78a 100644 --- a/frontend/src/lib/components/ModelTable/ModelTable.svelte +++ b/frontend/src/lib/components/ModelTable/ModelTable.svelte @@ -196,7 +196,7 @@ coucou2 + > {#if taggedKeys.has(key)} {@const _tagList = tagMap[key]} {@const tagList = Array.isArray(_tagList) ? _tagList : [_tagList]} @@ -224,7 +224,6 @@ (item) => item.field === key )?.urlModel }/${val.id}`} - coucou e.stopPropagation()}>{val.str} {:else} {val} diff --git a/frontend/src/lib/components/TableRowActions/TableRowActions.svelte b/frontend/src/lib/components/TableRowActions/TableRowActions.svelte index a9ee537c6..04f3a019b 100644 --- a/frontend/src/lib/components/TableRowActions/TableRowActions.svelte +++ b/frontend/src/lib/components/TableRowActions/TableRowActions.svelte @@ -67,7 +67,6 @@ {#if !hasBody} {#if displayDetail} - coucou5 {/if} {#if displayEdit} - coucou6 {value.str} {:else if isURL(value)} - coucou {value} {:else} {value.str ?? value} diff --git a/frontend/svelte.config.js b/frontend/svelte.config.js index abf2a1dfa..0335aa349 100644 --- a/frontend/svelte.config.js +++ b/frontend/svelte.config.js @@ -17,7 +17,7 @@ const config = { $paraglide: './src/paraglide/' }, paths: { - base: '', + base: process.env.hasOwnProperty('BASE_NAME') ? '/' + process.env.BASE_NAME : '', relative: false } }