ui: Update to sveltekit 1.0 + fix warnings
This commit is contained in:
parent
ef194d2cf3
commit
cad2bc09e4
11 changed files with 276 additions and 324 deletions
|
|
@ -2,6 +2,7 @@
|
|||
import {
|
||||
Alert,
|
||||
Container,
|
||||
Icon,
|
||||
Spinner,
|
||||
} from 'sveltestrap';
|
||||
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
<Col md="2" lg="3" class="d-none d-md-block">
|
||||
<Card class="pt-3 px-3">
|
||||
{#if $current_theme.partner_img}
|
||||
<img src="{$current_theme.partner_img}" class="card-img-top">
|
||||
<img src="{$current_theme.partner_img}" alt="En-tête du scénario" class="card-img-top">
|
||||
{/if}
|
||||
{#if $current_theme.partner_txt || $current_theme.partner_href}
|
||||
<CardBody class="p-0 mt-3">
|
||||
|
|
@ -55,6 +55,7 @@
|
|||
class="list-group-item"
|
||||
class:list-group-item-action={$my && $my.exercices[k]}
|
||||
on:click={goto(`${$current_theme.urlid}/${$current_theme.exercices[k].urlid}`)}
|
||||
on:keypress={goto(`${$current_theme.urlid}/${$current_theme.exercices[k].urlid}`)}
|
||||
>
|
||||
<div class="row">
|
||||
<div class="col-1" style="margin-top: -0.5rem; margin-bottom: -0.5rem; text-align: right; border-right: 5px solid #{$my && $my.exercices[k] && $my.exercices[k].solved_rank ? '62c462' : 'bbb'}">
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
<script>
|
||||
import {
|
||||
Alert,
|
||||
Icon,
|
||||
Spinner,
|
||||
} from 'sveltestrap';
|
||||
|
||||
|
|
|
|||
Reference in a new issue