Mercurial > gemma
annotate client/src/components/importoverview/LogItem.vue @ 4321:6dfbf534818b
Improve naming and rename fairway/Profiles to fairway/BottleneckDialogue
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Wed, 04 Sep 2019 13:40:11 +0200 |
parents | 7ca3b288ac5e |
children | 5e62c467e145 |
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 ]" | |
12 >{{ line.kind.toUpperCase() }}</span | |
13 > | |
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 ]" | |
23 >{{ line.time | dateTime }}</span | |
24 > | |
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 ]" | |
34 >{{ line.message }}</span | |
35 > | |
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> |