Mercurial > gemma
annotate client/src/components/Logs.vue @ 1599:5e16d1fbe91f
WFS Capabilities parser: Parse constraints, too.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 17 Dec 2018 11:13:11 +0100 |
parents | 0ded4c56978e |
children | ef5cc5f1c757 |
rev | line source |
---|---|
1276
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
1 <template> |
1361
ea3a89a1813a
remove trailing whitespace, add headers for Makefile, add the missed authors
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1276
diff
changeset
|
2 <div class="main d-flex flex-column"> |
ea3a89a1813a
remove trailing whitespace, add headers for Makefile, add the missed authors
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1276
diff
changeset
|
3 <div class="d-flex flex-row"> |
ea3a89a1813a
remove trailing whitespace, add headers for Makefile, add the missed authors
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1276
diff
changeset
|
4 <div :class="spacer"></div> |
1482
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
5 <div class="card logs shadow-xs mt-3 mr-3"> |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
6 <h6 |
1483
5ef81251af18
logs: fix layout for header
Thomas Junk <thomas.junk@intevation.de>
parents:
1482
diff
changeset
|
7 class="mb-0 py-2 px-3 border-bottom d-flex text-info align-items-center" |
1482
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
8 > |
1517
6eec1c324a64
font-awesome fixed width icons
Thomas Junk <thomas.junk@intevation.de>
parents:
1500
diff
changeset
|
9 <font-awesome-icon class="mr-2 fa-fw" icon="book"></font-awesome-icon> |
1482
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
10 <translate class="headline">Logs</translate> |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
11 </h6> |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
12 <div class="logoutput text-left bg-white"> |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
13 <pre id="code" v-highlightjs="logs"> |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
14 <code class="bash hljs hljs-string"></code> |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
15 </pre> |
1276
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
16 </div> |
1482
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
17 <div class="logmenu"> |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
18 <div class="d-flex align-self-center"> |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
19 <ul class="nav nav-pills"> |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
20 <li class="nav-item"> |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
21 <a |
1490 | 22 :class="accesslogStyle" |
1482
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
23 @click="fetch('system/log/apache2/access.log', 'accesslog')" |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
24 href="#" |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
25 > |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
26 <translate>Accesslog</translate> |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
27 </a> |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
28 </li> |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
29 <li class="nav-item"> |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
30 <a |
1490 | 31 :class="errorlogStyle" |
1482
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
32 @click="fetch('system/log/apache2/error.log', 'errorlog')" |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
33 href="#" |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
34 > |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
35 <translate>Errorlog</translate> |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
36 </a> |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
37 </li> |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
38 </ul> |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
39 </div> |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
40 <div class="statuscontainer d-flex flex-row mb-3"> |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
41 <div class="statusline align-self-center"> |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
42 <h3><translate>Last refresh:</translate> {{ refreshed }}</h3> |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
43 </div> |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
44 <div class="refresh"> |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
45 <button |
1490 | 46 @click="fetch(currentFile, currentLog)" |
1482
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
47 class="btn btn-dark" |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
48 > |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
49 <translate>Refresh</translate> |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
50 </button> |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
51 </div> |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
52 </div> |
1276
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
53 </div> |
1361
ea3a89a1813a
remove trailing whitespace, add headers for Makefile, add the missed authors
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1276
diff
changeset
|
54 </div> |
1276
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
55 </div> |
1361
ea3a89a1813a
remove trailing whitespace, add headers for Makefile, add the missed authors
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1276
diff
changeset
|
56 </div> |
1276
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
57 </template> |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
58 |
1449 | 59 <style lang="scss" scoped> |
60 .statuscontainer { | |
61 width: 87%; | |
62 position: relative; | |
63 } | |
1361
ea3a89a1813a
remove trailing whitespace, add headers for Makefile, add the missed authors
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1276
diff
changeset
|
64 |
1449 | 65 .logmenu { |
1482
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
66 position: relative; |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
67 margin-left: $offset; |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
68 margin-top: $offset; |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
69 } |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
70 |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
71 .logs { |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
72 height: 85vh; |
1449 | 73 } |
1361
ea3a89a1813a
remove trailing whitespace, add headers for Makefile, add the missed authors
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1276
diff
changeset
|
74 |
1449 | 75 #code { |
76 overflow: auto; | |
77 } | |
1361
ea3a89a1813a
remove trailing whitespace, add headers for Makefile, add the missed authors
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1276
diff
changeset
|
78 |
1449 | 79 .refresh { |
80 position: absolute; | |
1482
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
81 right: $offset; |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
82 bottom: 0; |
1449 | 83 } |
1361
ea3a89a1813a
remove trailing whitespace, add headers for Makefile, add the missed authors
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1276
diff
changeset
|
84 |
1449 | 85 .logoutput { |
1482
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
86 margin-left: $offset; |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
87 margin-right: $offset; |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
88 margin-top: $offset; |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
89 height: 90%; |
1449 | 90 overflow: auto; |
91 transition: $transition-fast; | |
92 } | |
1276
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
93 |
1449 | 94 .spacer { |
95 height: 90vh; | |
96 } | |
1276
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
97 |
1449 | 98 .spacer-collapsed { |
99 min-width: $icon-width + $offset; | |
100 transition: $transition-fast; | |
101 } | |
1276
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
102 |
1449 | 103 .spacer-expanded { |
104 min-width: $sidebar-width + $offset; | |
105 } | |
1276
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
106 |
1449 | 107 .statusline { |
108 position: absolute; | |
109 right: 0; | |
1500
811497a8092f
layout issues due to translations
Thomas Junk <thomas.junk@intevation.de>
parents:
1490
diff
changeset
|
110 margin-right: 9rem; |
1482
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
111 bottom: -0.5rem; |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
112 } |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
113 |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
114 .statuscontainer { |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
115 width: 100%; |
1449 | 116 } |
1276
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
117 </style> |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
118 |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
119 <script> |
1362
ca33ad696594
remove the first empyty lines
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1361
diff
changeset
|
120 /* This is Free Software under GNU Affero General Public License v >= 3.0 |
1276
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
121 * without warranty, see README.md and license for details. |
1361
ea3a89a1813a
remove trailing whitespace, add headers for Makefile, add the missed authors
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1276
diff
changeset
|
122 * |
1276
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
123 * SPDX-License-Identifier: AGPL-3.0-or-later |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
124 * License-Filename: LICENSES/AGPL-3.0.txt |
1361
ea3a89a1813a
remove trailing whitespace, add headers for Makefile, add the missed authors
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1276
diff
changeset
|
125 * |
ea3a89a1813a
remove trailing whitespace, add headers for Makefile, add the missed authors
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1276
diff
changeset
|
126 * Copyright (C) 2018 by via donau |
1276
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
127 * – Österreichische Wasserstraßen-Gesellschaft mbH |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
128 * Software engineering by Intevation GmbH |
1361
ea3a89a1813a
remove trailing whitespace, add headers for Makefile, add the missed authors
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1276
diff
changeset
|
129 * |
1276
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
130 * Author(s): |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
131 * Thomas Junk <thomas.junk@intevation.de> |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
132 */ |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
133 import { mapState } from "vuex"; |
1558
0ded4c56978e
refac: component filestructure. remove admin/map hierarchy
Thomas Junk <thomas.junk@intevation.de>
parents:
1517
diff
changeset
|
134 import { HTTP } from "../lib/http.js"; |
0ded4c56978e
refac: component filestructure. remove admin/map hierarchy
Thomas Junk <thomas.junk@intevation.de>
parents:
1517
diff
changeset
|
135 import "../../node_modules/highlight.js/styles/paraiso-dark.css"; |
1276
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
136 import Vue from "vue"; |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
137 import VueHighlightJS from "vue-highlightjs"; |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
138 Vue.use(VueHighlightJS); |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
139 |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
140 const ACCESSLOG = "accesslog"; |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
141 const ERRORLOG = "errorlog"; |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
142 |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
143 export default { |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
144 name: "logs", |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
145 mounted() { |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
146 this.fetch("system/log/apache2/access.log", ACCESSLOG); |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
147 }, |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
148 data() { |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
149 return { |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
150 logs: null, |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
151 currentLog: null, |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
152 currentFile: null, |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
153 refreshed: null |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
154 }; |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
155 }, |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
156 methods: { |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
157 fetch(file, type) { |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
158 HTTP.get(file, { |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
159 headers: { "X-Gemma-Auth": localStorage.getItem("token") } |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
160 }) |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
161 .then(response => { |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
162 this.logs = response.data.content; |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
163 this.currentLog = type; |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
164 this.refreshed = new Date().toLocaleString(); |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
165 this.currentFile = file; |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
166 }) |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
167 .catch(); |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
168 }, |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
169 disallow(e) { |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
170 e.target.blur(); |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
171 } |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
172 }, |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
173 computed: { |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
174 ...mapState("application", ["showSidebar"]), |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
175 accesslogStyle() { |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
176 return { |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
177 active: this.currentLog == ACCESSLOG, |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
178 "nav-link": true |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
179 }; |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
180 }, |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
181 errorlogStyle() { |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
182 return { |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
183 active: this.currentLog == ERRORLOG, |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
184 "nav-link": true |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
185 }; |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
186 }, |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
187 spacer() { |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
188 return [ |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
189 "spacer ml-3", |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
190 { |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
191 "spacer-expanded": this.showSidebar, |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
192 "spacer-collapsed": !this.showSidebar |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
193 } |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
194 ]; |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
195 } |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
196 } |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
197 }; |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
198 </script> |