Mercurial > gemma
annotate client/src/components/importoverview/LogItem.vue @ 5356:3216b4a19023 extented-report
spinner added to info tool's download link for DQL reports
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Tue, 22 Jun 2021 14:44:34 +0200 |
parents | 5e62c467e145 |
children | 84d01a536bec |
rev | line source |
---|---|
3750 | 1 <template> |
2 <div> | |
3 <span | |
4 :class="[ | |
5 'kind', | |
6 { | |
7 'text-danger': /error/.test(line.kind), | |
8 'text-warning': /warn/.test(line.kind), | |
9 'font-weight-bold': /warn|error/.test(line.kind) | |
10 } | |
11 ]" | |
4451
5e62c467e145
import_overview: insert space in log to get better copy&paste experience
Thomas Junk <thomas.junk@intevation.de>
parents:
3755
diff
changeset
|
12 >{{ line.kind.toUpperCase() }} |
5e62c467e145
import_overview: insert space in log to get better copy&paste experience
Thomas Junk <thomas.junk@intevation.de>
parents:
3755
diff
changeset
|
13 </span> |
3750 | 14 <span |
15 :class="[ | |
16 'time', | |
17 { | |
18 'text-danger': /error/.test(line.kind), | |
19 'text-warning': /warn/.test(line.kind), | |
20 'font-weight-bold': /warn|error/.test(line.kind) | |
21 } | |
22 ]" | |
4451
5e62c467e145
import_overview: insert space in log to get better copy&paste experience
Thomas Junk <thomas.junk@intevation.de>
parents:
3755
diff
changeset
|
23 >{{ line.time | dateTime }} |
5e62c467e145
import_overview: insert space in log to get better copy&paste experience
Thomas Junk <thomas.junk@intevation.de>
parents:
3755
diff
changeset
|
24 </span> |
3750 | 25 <span |
26 :class="[ | |
27 'message', | |
28 { | |
29 'text-danger': /error/.test(line.kind), | |
30 'text-warning': /warn/.test(line.kind), | |
31 'font-weight-bold': /warn|error/.test(line.kind) | |
32 } | |
33 ]" | |
4451
5e62c467e145
import_overview: insert space in log to get better copy&paste experience
Thomas Junk <thomas.junk@intevation.de>
parents:
3755
diff
changeset
|
34 >{{ line.message }} |
5e62c467e145
import_overview: insert space in log to get better copy&paste experience
Thomas Junk <thomas.junk@intevation.de>
parents:
3755
diff
changeset
|
35 </span> |
3750 | 36 </div> |
37 </template> | |
38 | |
39 <script> | |
40 export default { | |
41 name: "Item", | |
42 props: ["height", "line", "index"] | |
43 }; | |
44 </script> | |
45 | |
46 <style lang="sass" scoped> | |
3755
7ca3b288ac5e
virtual_scrolling: size parameter
Thomas Junk <thomas.junk@intevation.de>
parents:
3750
diff
changeset
|
47 .kind |
7ca3b288ac5e
virtual_scrolling: size parameter
Thomas Junk <thomas.junk@intevation.de>
parents:
3750
diff
changeset
|
48 width: 9% |
3750 | 49 |
3755
7ca3b288ac5e
virtual_scrolling: size parameter
Thomas Junk <thomas.junk@intevation.de>
parents:
3750
diff
changeset
|
50 .time |
7ca3b288ac5e
virtual_scrolling: size parameter
Thomas Junk <thomas.junk@intevation.de>
parents:
3750
diff
changeset
|
51 width: 26% |
3750 | 52 |
3755
7ca3b288ac5e
virtual_scrolling: size parameter
Thomas Junk <thomas.junk@intevation.de>
parents:
3750
diff
changeset
|
53 .message |
7ca3b288ac5e
virtual_scrolling: size parameter
Thomas Junk <thomas.junk@intevation.de>
parents:
3750
diff
changeset
|
54 width: 65% |
7ca3b288ac5e
virtual_scrolling: size parameter
Thomas Junk <thomas.junk@intevation.de>
parents:
3750
diff
changeset
|
55 word-wrap: break-word |
3750 | 56 </style> |