Skip to content

Commit

Permalink
add BASE_NAME support in front
Browse files Browse the repository at this point in the history
- add BASE_NAME support in front
- remove debug stuff
  • Loading branch information
eric-intuitem committed Apr 1, 2024
1 parent 6cbccfe commit 3a0660f
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
3 changes: 1 addition & 2 deletions frontend/src/lib/components/ModelTable/ModelTable.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@
<td
class="{regionCell}"
role="gridcell"
>coucou2
>
{#if taggedKeys.has(key)}
{@const _tagList = tagMap[key]}
{@const tagList = Array.isArray(_tagList) ? _tagList : [_tagList]}
Expand Down Expand Up @@ -224,7 +224,6 @@
(item) => item.field === key
)?.urlModel
}/${val.id}`}
coucou
<a href={base}{itemHref} class="anchor" on:click={e => e.stopPropagation()}>{val.str}</a>
{:else}
{val}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,13 @@
<slot name="body" />
{#if !hasBody}
{#if displayDetail}
coucou5
<a
href={base}{detailURL}
class="unstyled cursor-pointer hover:text-primary-500"
data-testid="tablerow-detail-button"><i class="fa-solid fa-eye" /></a
>
{/if}
{#if displayEdit}
coucou6
<a
href={base}{editURL}
on:click={stopPropagation}
Expand Down
1 change: 0 additions & 1 deletion frontend/src/routes/(app)/evidences/[id=uuid]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@
}/${value.id}`}
<a href="{base}{itemHref}" class="anchor">{value.str}</a>
{:else if isURL(value)}
coucou
<a href="{base}{value}" target="_blank" class="anchor">{value}</a>
{:else}
{value.str ?? value}
Expand Down
2 changes: 1 addition & 1 deletion frontend/svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const config = {
$paraglide: './src/paraglide/'
},
paths: {
base: '',
base: process.env.hasOwnProperty('BASE_NAME') ? '/' + process.env.BASE_NAME : '',
relative: false
}
}
Expand Down

0 comments on commit 3a0660f

Please sign in to comment.