Mercurial > gemma
annotate client/src/components/importoverview/AdditionalLog.vue @ 2886:9e849838d2e3
client: importoverview: formatted date in logs
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Mon, 01 Apr 2019 18:39:39 +0200 |
parents | c40540889b53 |
children | 83acca8937de |
rev | line source |
---|---|
2594 | 1 <template> |
2717
5b990f612420
import_review: rename overview to review. More space for logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2708
diff
changeset
|
2 <div |
5b990f612420
import_review: rename overview to review. More space for logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2708
diff
changeset
|
3 :class="[ |
2886
9e849838d2e3
client: importoverview: formatted date in logs
Markus Kottlaender <markus@intevation.de>
parents:
2880
diff
changeset
|
4 'additionallog d-flex flex-column text-left', |
2717
5b990f612420
import_review: rename overview to review. More space for logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2708
diff
changeset
|
5 { |
2880
c40540889b53
client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2732
diff
changeset
|
6 full: !showAdditional, |
c40540889b53
client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2732
diff
changeset
|
7 split: showAdditional |
2717
5b990f612420
import_review: rename overview to review. More space for logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2708
diff
changeset
|
8 } |
5b990f612420
import_review: rename overview to review. More space for logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2708
diff
changeset
|
9 ]" |
5b990f612420
import_review: rename overview to review. More space for logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2708
diff
changeset
|
10 > |
2732
0ab7985ef008
import_review: fixed flakey display of logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2727
diff
changeset
|
11 <div |
0ab7985ef008
import_review: fixed flakey display of logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2727
diff
changeset
|
12 class="d-flex flex-row" |
0ab7985ef008
import_review: fixed flakey display of logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2727
diff
changeset
|
13 v-for="(line, index) in details.entries" |
0ab7985ef008
import_review: fixed flakey display of logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2727
diff
changeset
|
14 :key="index" |
0ab7985ef008
import_review: fixed flakey display of logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2727
diff
changeset
|
15 > |
2708
cefef8234d27
import_overview: larger fonts for log and details
Thomas Junk <thomas.junk@intevation.de>
parents:
2703
diff
changeset
|
16 <span |
2674
b219ca1514f4
overview2: highlight warnings in logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2608
diff
changeset
|
17 :class="[ |
b219ca1514f4
overview2: highlight warnings in logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2608
diff
changeset
|
18 'kind', |
b219ca1514f4
overview2: highlight warnings in logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2608
diff
changeset
|
19 { |
2703
c887666b110f
import_overview: increase log fontsize. errors in log are marked red
Thomas Junk <thomas.junk@intevation.de>
parents:
2685
diff
changeset
|
20 'text-danger': /error/.test(line.kind), |
2674
b219ca1514f4
overview2: highlight warnings in logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2608
diff
changeset
|
21 'text-warning': /warn/.test(line.kind), |
2703
c887666b110f
import_overview: increase log fontsize. errors in log are marked red
Thomas Junk <thomas.junk@intevation.de>
parents:
2685
diff
changeset
|
22 'font-weight-bold': /warn|error/.test(line.kind) |
2674
b219ca1514f4
overview2: highlight warnings in logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2608
diff
changeset
|
23 } |
b219ca1514f4
overview2: highlight warnings in logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2608
diff
changeset
|
24 ]" |
2708
cefef8234d27
import_overview: larger fonts for log and details
Thomas Junk <thomas.junk@intevation.de>
parents:
2703
diff
changeset
|
25 >{{ line.kind.toUpperCase() }}</span |
2674
b219ca1514f4
overview2: highlight warnings in logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2608
diff
changeset
|
26 > |
2708
cefef8234d27
import_overview: larger fonts for log and details
Thomas Junk <thomas.junk@intevation.de>
parents:
2703
diff
changeset
|
27 <span |
2674
b219ca1514f4
overview2: highlight warnings in logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2608
diff
changeset
|
28 :class="[ |
b219ca1514f4
overview2: highlight warnings in logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2608
diff
changeset
|
29 'time', |
b219ca1514f4
overview2: highlight warnings in logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2608
diff
changeset
|
30 { |
2703
c887666b110f
import_overview: increase log fontsize. errors in log are marked red
Thomas Junk <thomas.junk@intevation.de>
parents:
2685
diff
changeset
|
31 'text-danger': /error/.test(line.kind), |
2674
b219ca1514f4
overview2: highlight warnings in logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2608
diff
changeset
|
32 'text-warning': /warn/.test(line.kind), |
2703
c887666b110f
import_overview: increase log fontsize. errors in log are marked red
Thomas Junk <thomas.junk@intevation.de>
parents:
2685
diff
changeset
|
33 'font-weight-bold': /warn|error/.test(line.kind) |
2674
b219ca1514f4
overview2: highlight warnings in logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2608
diff
changeset
|
34 } |
b219ca1514f4
overview2: highlight warnings in logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2608
diff
changeset
|
35 ]" |
2886
9e849838d2e3
client: importoverview: formatted date in logs
Markus Kottlaender <markus@intevation.de>
parents:
2880
diff
changeset
|
36 >{{ line.time | dateTime }}</span |
2674
b219ca1514f4
overview2: highlight warnings in logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2608
diff
changeset
|
37 > |
2708
cefef8234d27
import_overview: larger fonts for log and details
Thomas Junk <thomas.junk@intevation.de>
parents:
2703
diff
changeset
|
38 <span |
2674
b219ca1514f4
overview2: highlight warnings in logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2608
diff
changeset
|
39 :class="[ |
b219ca1514f4
overview2: highlight warnings in logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2608
diff
changeset
|
40 'message', |
b219ca1514f4
overview2: highlight warnings in logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2608
diff
changeset
|
41 { |
2703
c887666b110f
import_overview: increase log fontsize. errors in log are marked red
Thomas Junk <thomas.junk@intevation.de>
parents:
2685
diff
changeset
|
42 'text-danger': /error/.test(line.kind), |
2674
b219ca1514f4
overview2: highlight warnings in logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2608
diff
changeset
|
43 'text-warning': /warn/.test(line.kind), |
2703
c887666b110f
import_overview: increase log fontsize. errors in log are marked red
Thomas Junk <thomas.junk@intevation.de>
parents:
2685
diff
changeset
|
44 'font-weight-bold': /warn|error/.test(line.kind) |
2674
b219ca1514f4
overview2: highlight warnings in logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2608
diff
changeset
|
45 } |
b219ca1514f4
overview2: highlight warnings in logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2608
diff
changeset
|
46 ]" |
2708
cefef8234d27
import_overview: larger fonts for log and details
Thomas Junk <thomas.junk@intevation.de>
parents:
2703
diff
changeset
|
47 >{{ line.message }}</span |
2674
b219ca1514f4
overview2: highlight warnings in logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2608
diff
changeset
|
48 > |
2597 | 49 </div> |
2594 | 50 </div> |
51 </template> | |
52 | |
53 <script> | |
54 /* This is Free Software under GNU Affero General Public License v >= 3.0 | |
55 * without warranty, see README.md and license for details. | |
56 * | |
57 * SPDX-License-Identifier: AGPL-3.0-or-later | |
58 * License-Filename: LICENSES/AGPL-3.0.txt | |
59 * | |
60 * Copyright (C) 2018 by via donau | |
61 * – Österreichische Wasserstraßen-Gesellschaft mbH | |
62 * Software engineering by Intevation GmbH | |
63 * | |
64 * Author(s): | |
65 * Thomas Junk <thomas.junk@intevation.de> | |
66 */ | |
2717
5b990f612420
import_review: rename overview to review. More space for logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2708
diff
changeset
|
67 import { mapState } from "vuex"; |
5b990f612420
import_review: rename overview to review. More space for logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2708
diff
changeset
|
68 |
2594 | 69 export default { |
70 name: "additionallogs", | |
2717
5b990f612420
import_review: rename overview to review. More space for logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2708
diff
changeset
|
71 computed: { |
2732
0ab7985ef008
import_review: fixed flakey display of logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2727
diff
changeset
|
72 ...mapState("imports", ["showAdditional", "details"]) |
2880
c40540889b53
client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2732
diff
changeset
|
73 } |
2594 | 74 }; |
75 </script> | |
76 | |
2599 | 77 <style lang="scss" scoped> |
2608
13377f2a5c42
overview2: agm details prototype implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
2599
diff
changeset
|
78 .additionallog { |
13377f2a5c42
overview2: agm details prototype implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
2599
diff
changeset
|
79 overflow-y: auto; |
13377f2a5c42
overview2: agm details prototype implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
2599
diff
changeset
|
80 } |
2717
5b990f612420
import_review: rename overview to review. More space for logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2708
diff
changeset
|
81 |
5b990f612420
import_review: rename overview to review. More space for logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2708
diff
changeset
|
82 .split { |
5b990f612420
import_review: rename overview to review. More space for logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2708
diff
changeset
|
83 max-height: 35vh; |
5b990f612420
import_review: rename overview to review. More space for logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2708
diff
changeset
|
84 } |
5b990f612420
import_review: rename overview to review. More space for logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2708
diff
changeset
|
85 |
5b990f612420
import_review: rename overview to review. More space for logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2708
diff
changeset
|
86 .full { |
5b990f612420
import_review: rename overview to review. More space for logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2708
diff
changeset
|
87 max-height: 70vh; |
5b990f612420
import_review: rename overview to review. More space for logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2708
diff
changeset
|
88 } |
5b990f612420
import_review: rename overview to review. More space for logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2708
diff
changeset
|
89 |
2599 | 90 .kind { |
2708
cefef8234d27
import_overview: larger fonts for log and details
Thomas Junk <thomas.junk@intevation.de>
parents:
2703
diff
changeset
|
91 width: 9%; |
2599 | 92 } |
93 .time { | |
2708
cefef8234d27
import_overview: larger fonts for log and details
Thomas Junk <thomas.junk@intevation.de>
parents:
2703
diff
changeset
|
94 width: 26%; |
2703
c887666b110f
import_overview: increase log fontsize. errors in log are marked red
Thomas Junk <thomas.junk@intevation.de>
parents:
2685
diff
changeset
|
95 } |
2727
0fe0b3f1720f
client: import overview: several style fixes
Markus Kottlaender <markus@intevation.de>
parents:
2717
diff
changeset
|
96 .message { |
0fe0b3f1720f
client: import overview: several style fixes
Markus Kottlaender <markus@intevation.de>
parents:
2717
diff
changeset
|
97 width: 65%; |
0fe0b3f1720f
client: import overview: several style fixes
Markus Kottlaender <markus@intevation.de>
parents:
2717
diff
changeset
|
98 word-wrap: break-word; |
0fe0b3f1720f
client: import overview: several style fixes
Markus Kottlaender <markus@intevation.de>
parents:
2717
diff
changeset
|
99 } |
2599 | 100 </style> |