Mercurial > gemma
annotate client/src/components/Logs.vue @ 2197:3203c53a8d29
import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Tue, 12 Feb 2019 14:29:16 +0100 |
parents | 16fb9667ddf8 |
children | f185503ef35a |
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"> |
1605
ef5cc5f1c757
refac: extracted spacer component
Thomas Junk <thomas.junk@intevation.de>
parents:
1558
diff
changeset
|
4 <Spacer></Spacer> |
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 .statusline { |
95 position: absolute; | |
96 right: 0; | |
1500
811497a8092f
layout issues due to translations
Thomas Junk <thomas.junk@intevation.de>
parents:
1490
diff
changeset
|
97 margin-right: 9rem; |
1482
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
98 bottom: -0.5rem; |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
99 } |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
100 |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
101 .statuscontainer { |
46636f863742
refac: logs in card-design
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
102 width: 100%; |
1449 | 103 } |
1276
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
104 </style> |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
105 |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
106 <script> |
1362
ca33ad696594
remove the first empyty lines
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1361
diff
changeset
|
107 /* 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
|
108 * 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
|
109 * |
1276
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
110 * SPDX-License-Identifier: AGPL-3.0-or-later |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
111 * 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
|
112 * |
ea3a89a1813a
remove trailing whitespace, add headers for Makefile, add the missed authors
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1276
diff
changeset
|
113 * Copyright (C) 2018 by via donau |
1276
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
114 * – Österreichische Wasserstraßen-Gesellschaft mbH |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
115 * 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
|
116 * |
1276
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
117 * Author(s): |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
118 * Thomas Junk <thomas.junk@intevation.de> |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
119 */ |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
120 import { mapState } from "vuex"; |
1613
f2d24dceecc7
refac: cleanup import paths
Thomas Junk <thomas.junk@intevation.de>
parents:
1605
diff
changeset
|
121 import { HTTP } from "@/lib/http.js"; |
1558
0ded4c56978e
refac: component filestructure. remove admin/map hierarchy
Thomas Junk <thomas.junk@intevation.de>
parents:
1517
diff
changeset
|
122 import "../../node_modules/highlight.js/styles/paraiso-dark.css"; |
1276
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
123 import Vue from "vue"; |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
124 import VueHighlightJS from "vue-highlightjs"; |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
125 Vue.use(VueHighlightJS); |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
126 |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
127 const ACCESSLOG = "accesslog"; |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
128 const ERRORLOG = "errorlog"; |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
129 |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
130 export default { |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
131 name: "logs", |
1605
ef5cc5f1c757
refac: extracted spacer component
Thomas Junk <thomas.junk@intevation.de>
parents:
1558
diff
changeset
|
132 components: { |
1669
16fb9667ddf8
refac: use dynamic imports for components
Thomas Junk <thomas.junk@intevation.de>
parents:
1613
diff
changeset
|
133 Spacer: () => import("./Spacer") |
1605
ef5cc5f1c757
refac: extracted spacer component
Thomas Junk <thomas.junk@intevation.de>
parents:
1558
diff
changeset
|
134 }, |
1276
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
135 mounted() { |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
136 this.fetch("system/log/apache2/access.log", ACCESSLOG); |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
137 }, |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
138 data() { |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
139 return { |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
140 logs: null, |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
141 currentLog: null, |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
142 currentFile: null, |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
143 refreshed: null |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
144 }; |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
145 }, |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
146 methods: { |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
147 fetch(file, type) { |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
148 HTTP.get(file, { |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
149 headers: { "X-Gemma-Auth": localStorage.getItem("token") } |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
150 }) |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
151 .then(response => { |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
152 this.logs = response.data.content; |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
153 this.currentLog = type; |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
154 this.refreshed = new Date().toLocaleString(); |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
155 this.currentFile = file; |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
156 }) |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
157 .catch(); |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
158 }, |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
159 disallow(e) { |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
160 e.target.blur(); |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
161 } |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
162 }, |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
163 computed: { |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
164 ...mapState("application", ["showSidebar"]), |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
165 accesslogStyle() { |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
166 return { |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
167 active: this.currentLog == ACCESSLOG, |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
168 "nav-link": true |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
169 }; |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
170 }, |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
171 errorlogStyle() { |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
172 return { |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
173 active: this.currentLog == ERRORLOG, |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
174 "nav-link": true |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
175 }; |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
176 } |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
177 } |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
178 }; |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
179 </script> |