annotate client/src/components/importoverview/LogItem.vue @ 4451:5e62c467e145

import_overview: insert space in log to get better copy&paste experience
author Thomas Junk <thomas.junk@intevation.de>
date Fri, 20 Sep 2019 13:52:19 +0200
parents 7ca3b288ac5e
children 84d01a536bec
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3750
dbdef91a3ff3 first implementation
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
1 <template>
dbdef91a3ff3 first implementation
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
2 <div>
dbdef91a3ff3 first implementation
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
3 <span
dbdef91a3ff3 first implementation
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
4 :class="[
dbdef91a3ff3 first implementation
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
5 'kind',
dbdef91a3ff3 first implementation
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
6 {
dbdef91a3ff3 first implementation
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
7 'text-danger': /error/.test(line.kind),
dbdef91a3ff3 first implementation
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
8 'text-warning': /warn/.test(line.kind),
dbdef91a3ff3 first implementation
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
9 'font-weight-bold': /warn|error/.test(line.kind)
dbdef91a3ff3 first implementation
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
10 }
dbdef91a3ff3 first implementation
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
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
dbdef91a3ff3 first implementation
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
14 <span
dbdef91a3ff3 first implementation
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
15 :class="[
dbdef91a3ff3 first implementation
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
16 'time',
dbdef91a3ff3 first implementation
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
17 {
dbdef91a3ff3 first implementation
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
18 'text-danger': /error/.test(line.kind),
dbdef91a3ff3 first implementation
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
19 'text-warning': /warn/.test(line.kind),
dbdef91a3ff3 first implementation
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
20 'font-weight-bold': /warn|error/.test(line.kind)
dbdef91a3ff3 first implementation
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
21 }
dbdef91a3ff3 first implementation
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
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
dbdef91a3ff3 first implementation
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
25 <span
dbdef91a3ff3 first implementation
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
26 :class="[
dbdef91a3ff3 first implementation
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
27 'message',
dbdef91a3ff3 first implementation
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
28 {
dbdef91a3ff3 first implementation
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
29 'text-danger': /error/.test(line.kind),
dbdef91a3ff3 first implementation
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
30 'text-warning': /warn/.test(line.kind),
dbdef91a3ff3 first implementation
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
31 'font-weight-bold': /warn|error/.test(line.kind)
dbdef91a3ff3 first implementation
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
32 }
dbdef91a3ff3 first implementation
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
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
dbdef91a3ff3 first implementation
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
36 </div>
dbdef91a3ff3 first implementation
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
37 </template>
dbdef91a3ff3 first implementation
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
38
dbdef91a3ff3 first implementation
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
39 <script>
dbdef91a3ff3 first implementation
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
40 export default {
dbdef91a3ff3 first implementation
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
41 name: "Item",
dbdef91a3ff3 first implementation
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
42 props: ["height", "line", "index"]
dbdef91a3ff3 first implementation
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
43 };
dbdef91a3ff3 first implementation
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
44 </script>
dbdef91a3ff3 first implementation
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
45
dbdef91a3ff3 first implementation
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
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
dbdef91a3ff3 first implementation
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
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
dbdef91a3ff3 first implementation
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
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
dbdef91a3ff3 first implementation
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
56 </style>