1
1
<template >
2
2
<div class =" mapcontrols" >
3
- <!-- <div style="display:none">{{bufer}}</div> -->
3
+ <!-- <div style="display:none">{{bufer}}</div> -->
4
4
<div class =" flexline" >
5
-
6
5
<div id =" bookmarks" class =" popover-bottom-left popover" popover >
7
- <h3 >{{$t("bookmarks.listtitle")}}</h3 >
6
+ <h3 >{{ $t("bookmarks.listtitle") }}</h3 >
8
7
<Bookmarks />
9
8
</div >
10
- <button class =" popovercontrol" :class =" bookmarks && bookmarks.length > 0 ? 'active' : null" popovertarget =" bookmarks" ><font-awesome-icon icon =" fa-solid fa-bookmark" /></button >
9
+ <button
10
+ class =" popovercontrol"
11
+ :class =" bookmarks && bookmarks.length > 0 ? 'active' : null"
12
+ popovertarget =" bookmarks"
13
+ >
14
+ <font-awesome-icon icon =" fa-solid fa-bookmark" />
15
+ </button >
11
16
12
17
<input type =" date" v-model =" start" :max =" maxDate" :disabled =" currentProvider == 'realtime'" />
13
18
14
- <Measures :current =" measuretype.toLowerCase()" />
19
+ <Measures
20
+ :startTime =" startTimestamp"
21
+ :endTime =" endTimestamp"
22
+ :current =" measuretype.toLowerCase()"
23
+ />
15
24
<div v-if =" isLoad" >{{ $t("isLoad") }}</div >
16
25
</div >
17
26
18
27
<div class =" flexline" >
19
28
<div id =" mapsettings" class =" popover-bottom-right popover" popover >
20
29
<section >
21
30
<input id =" realtime" v-model =" realtime" type =" checkbox" :checked =" realtime" />
22
- <label for =" realtime" >{{$t(' provider.realtime') }}</label >
31
+ <label for =" realtime" >{{ $t(" provider.realtime") }}</label >
23
32
</section >
24
33
<section >
25
- <input id =" wind" v-model =" wind" type =" checkbox" :disabled =" !realtime" :checked =" wind && realtime" />
26
- <label for =" wind" >{{$t('layer.wind')}}</label >
34
+ <input
35
+ id =" wind"
36
+ v-model =" wind"
37
+ type =" checkbox"
38
+ :disabled =" !realtime"
39
+ :checked =" wind && realtime"
40
+ />
41
+ <label for =" wind" >{{ $t("layer.wind") }}</label >
27
42
</section >
28
43
<section >
29
44
<input id =" messages" v-model =" messages" type =" checkbox" :checked =" messages" />
30
- <label for =" messages" >{{$t(' layer.messages') }}</label >
45
+ <label for =" messages" >{{ $t(" layer.messages") }}</label >
31
46
</section >
32
- <hr />
47
+ <hr />
33
48
<section >
34
- <h3 >{{$t("history.title")}}</h3 >
49
+ <h3 >{{ $t("history.title") }}</h3 >
35
50
<HistoryImport />
36
51
</section >
37
52
</div >
38
- <button class =" popovercontrol" popovertarget =" mapsettings" ><font-awesome-icon icon =" fa-solid fa-gear" /></button >
39
- <slot />
53
+ <button class =" popovercontrol" popovertarget =" mapsettings" >
54
+ <font-awesome-icon icon =" fa-solid fa-gear" />
55
+ </button >
56
+ <slot />
40
57
</div >
41
58
</div >
42
59
</template >
@@ -73,18 +90,14 @@ export default {
73
90
},
74
91
computed: {
75
92
startTimestamp : function () {
76
- return Number (
77
- moment (this .start + " 00:00:00" , " YYYY-MM-DD HH:mm:ss" ).format (" X" )
78
- );
93
+ return Number (moment (this .start + " 00:00:00" , " YYYY-MM-DD HH:mm:ss" ).format (" X" ));
79
94
},
80
95
endTimestamp : function () {
81
- return Number (
82
- moment (this .start + " 23:59:59" , " YYYY-MM-DD HH:mm:ss" ).format (" X" )
83
- );
96
+ return Number (moment (this .start + " 23:59:59" , " YYYY-MM-DD HH:mm:ss" ).format (" X" ));
84
97
},
85
- bookmarks : function () {
98
+ bookmarks : function () {
86
99
return this .store .idbBookmarks ;
87
- }
100
+ },
88
101
},
89
102
watch: {
90
103
async realtime (v ) {
@@ -135,43 +148,44 @@ export default {
135
148
</script >
136
149
137
150
<style scoped>
138
- .mapcontrols {
139
- bottom : 0 ;
140
- box-sizing : border-box ;
141
- display : flex ;
142
- justify-content : space-between ;
143
- left : 0 ;
144
- padding : 0 var (--app-controlsgap ) var (--app-controlsgap );
145
- position : absolute ;
146
- right : 0 ;
147
- z-index : 12 ;
148
- pointer-events : none ;
149
- }
150
-
151
- .mapcontrols > * {
152
- pointer-events : all ;
153
- }
154
-
155
- .popover-bottom-right , .popover-bottom-left {
156
- bottom : calc (var (--app-inputheight ) + var (--app-controlsgap ) * 2 );
157
- max-width : calc (100vw - var (--app-controlsgap ) * 2 );
158
- }
159
-
160
- .popover-bottom-right {
161
- right : var (--app-controlsgap );
162
- }
163
-
164
- .popover-bottom-left {
165
- left : var (--app-controlsgap );
166
- }
151
+ .mapcontrols {
152
+ bottom : 0 ;
153
+ box-sizing : border-box ;
154
+ display : flex ;
155
+ justify-content : space-between ;
156
+ left : 0 ;
157
+ padding : 0 var (--app-controlsgap ) var (--app-controlsgap );
158
+ position : absolute ;
159
+ right : 0 ;
160
+ z-index : 12 ;
161
+ pointer-events : none ;
162
+ }
163
+
164
+ .mapcontrols > * {
165
+ pointer-events : all ;
166
+ }
167
+
168
+ .popover-bottom-right ,
169
+ .popover-bottom-left {
170
+ bottom : calc (var (--app-inputheight ) + var (--app-controlsgap ) * 2 );
171
+ max-width : calc (100vw - var (--app-controlsgap ) * 2 );
172
+ }
173
+
174
+ .popover-bottom-right {
175
+ right : var (--app-controlsgap );
176
+ }
177
+
178
+ .popover-bottom-left {
179
+ left : var (--app-controlsgap );
180
+ }
167
181
</style >
168
182
169
183
<style >
170
- .popovercontrol.active {
171
- border-color : var (--color-green );
172
- }
184
+ .popovercontrol.active {
185
+ border-color : var (--color-green );
186
+ }
173
187
174
- .popovercontrol.active path {
175
- fill : var (--color-green ) !important ;
176
- }
177
- </style >
188
+ .popovercontrol.active path {
189
+ fill : var (--color-green ) !important ;
190
+ }
191
+ </style >
0 commit comments