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