blob: 3c363594decad70b992f38aa26a350b1433d8736 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
<script setup>
import { Logger } from '@/logger.js'
const icon = {
success: "fa-trophy",
info: "fa-circle-exclamation",
warning: "fa-triangle-exclamation",
danger: "fa-fire",
};
</script>
<template>
<div class="row">
<div class="col-sm-12 col-md-6 col-lg-5 position-fixed bottom-0 end-0 my-1">
<div
v-for="(item, index) in Logger.items"
:key="index"
class="alert alert-dismissible d-flex align-items-center"
:class="'alert-' + item.type"
>
<button
type="button"
class="btn-close"
@click="Logger.delete(item)"
/>
<i
class="fs-3 me-3 fa"
:class="icon[item.type]"
/> {{ item.message }}
</div>
</div>
</div>
</template>
<style scoped>
</style>
|