Sanitize lib paths
This commit is contained in:
parent
8faa21ccab
commit
1b08805285
43 changed files with 68 additions and 66 deletions
|
|
@ -1,62 +0,0 @@
|
|||
<script>
|
||||
import {
|
||||
Badge,
|
||||
Button,
|
||||
Card,
|
||||
CardBody,
|
||||
CardHeader,
|
||||
Col,
|
||||
Container,
|
||||
ListGroup,
|
||||
ListGroupItem,
|
||||
Row,
|
||||
Icon,
|
||||
} from 'sveltestrap';
|
||||
|
||||
import { actions_idx } from '../stores/actions';
|
||||
|
||||
export let routine = {
|
||||
name: "Classique",
|
||||
steps: [],
|
||||
};
|
||||
</script>
|
||||
|
||||
<Card>
|
||||
<CardHeader>
|
||||
<Button
|
||||
color="outline-danger"
|
||||
size="sm"
|
||||
class="float-end ms-1"
|
||||
>
|
||||
<Icon name="trash" />
|
||||
</Button>
|
||||
<Button
|
||||
color="outline-info"
|
||||
size="sm"
|
||||
class="float-end ms-1"
|
||||
>
|
||||
<Icon name="pencil" />
|
||||
</Button>
|
||||
{routine.name}
|
||||
</CardHeader>
|
||||
{#if routine.steps}
|
||||
<ListGroup>
|
||||
{#each routine.steps as step}
|
||||
<ListGroupItem action>
|
||||
{#if $actions_idx && $actions_idx[step.action]}
|
||||
{$actions_idx[step.action].name}
|
||||
{:else}
|
||||
{step.action}
|
||||
{/if}
|
||||
<Badge class="float-end">
|
||||
{step.delay/60} min
|
||||
</Badge>
|
||||
</ListGroupItem>
|
||||
{/each}
|
||||
</ListGroup>
|
||||
{:else}
|
||||
<CardBody>
|
||||
Aucune action définie.
|
||||
</CardBody>
|
||||
{/if}
|
||||
</Card>
|
||||
Loading…
Add table
Add a link
Reference in a new issue