@nixweb/nixloc-ui 0.0.262 → 0.0.263
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
</template>
|
|
77
77
|
|
|
78
78
|
<script>
|
|
79
|
-
import { mapState, mapMutations } from "vuex";
|
|
79
|
+
import { mapState, mapMutations, mapGetters } from "vuex";
|
|
80
80
|
export default {
|
|
81
81
|
name: "Menu",
|
|
82
82
|
props: {
|
|
@@ -156,8 +156,15 @@ export default {
|
|
|
156
156
|
},
|
|
157
157
|
computed: {
|
|
158
158
|
...mapState("user", ["menu", "userLogged"]),
|
|
159
|
+
...mapGetters("generic", ["event"]),
|
|
159
160
|
},
|
|
160
161
|
watch: {
|
|
162
|
+
event: {
|
|
163
|
+
handler(event) {
|
|
164
|
+
if (event.name == "closeMenu") this.hideSubMenu();
|
|
165
|
+
},
|
|
166
|
+
deep: true,
|
|
167
|
+
},
|
|
161
168
|
$route: {
|
|
162
169
|
handler: function (router) {
|
|
163
170
|
this.menuActive = router.matched[0].props.default.module;
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
+
<span v-if="play" class="pause" @click="play = false">
|
|
4
|
+
<i class="fa-solid fa-pause"></i>
|
|
5
|
+
</span>
|
|
6
|
+
<span v-else class="play" @click="play = true">
|
|
7
|
+
<i class="fa-solid fa-play"></i>
|
|
8
|
+
</span>
|
|
3
9
|
<span class="title"> {{ title }}</span>
|
|
4
|
-
<span class="title timer">
|
|
5
|
-
|
|
10
|
+
<span class="title timer">
|
|
11
|
+
{{ time }}
|
|
12
|
+
</span>
|
|
13
|
+
<span class="title"> segundos...</span>
|
|
6
14
|
</div>
|
|
7
15
|
</template>
|
|
8
16
|
<script>
|
|
@@ -22,6 +30,7 @@ export default {
|
|
|
22
30
|
data() {
|
|
23
31
|
return {
|
|
24
32
|
time: 10,
|
|
33
|
+
play: true,
|
|
25
34
|
};
|
|
26
35
|
},
|
|
27
36
|
created() {
|
|
@@ -36,7 +45,7 @@ export default {
|
|
|
36
45
|
clearInterval(this.$options.interval);
|
|
37
46
|
},
|
|
38
47
|
decrement() {
|
|
39
|
-
this.time--;
|
|
48
|
+
if (this.play) this.time--;
|
|
40
49
|
},
|
|
41
50
|
},
|
|
42
51
|
watch: {
|
|
@@ -56,4 +65,14 @@ export default {
|
|
|
56
65
|
font-size: 15px;
|
|
57
66
|
font-weight: bold;
|
|
58
67
|
}
|
|
68
|
+
|
|
69
|
+
.play {
|
|
70
|
+
color: darkblue;
|
|
71
|
+
cursor: pointer;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.pause {
|
|
75
|
+
color: red;
|
|
76
|
+
cursor: pointer;
|
|
77
|
+
}
|
|
59
78
|
</style>
|