@burh/nuxt-core 1.0.170 → 1.0.171
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.
|
@@ -1,63 +1,105 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
2
|
+
<card
|
|
3
|
+
class="card-app card-app--training"
|
|
4
|
+
:class="icon ? 'card--icon' : ''"
|
|
5
|
+
@click.native="$emit('course-click')"
|
|
6
|
+
>
|
|
7
|
+
<base-dropdown
|
|
8
|
+
@click.native.stop
|
|
9
|
+
class="top-right custom"
|
|
10
|
+
v-if="showMenu"
|
|
11
|
+
>
|
|
12
|
+
<i
|
|
13
|
+
slot="title-container"
|
|
14
|
+
class="fa fa-ellipsis-h custom"
|
|
15
|
+
aria-hidden="true"
|
|
16
|
+
/>
|
|
17
|
+
<li
|
|
18
|
+
v-for="actions in dropdownActions"
|
|
19
|
+
class="dropdown-item d-flex align-items-center w-100"
|
|
20
|
+
@click="$emit(actions.action)"
|
|
21
|
+
:key="actions.name"
|
|
22
|
+
>
|
|
23
|
+
<i
|
|
24
|
+
:class="actions.icon ? actions.icon : 'fa fa-paper-plane'"
|
|
25
|
+
aria-hidden="true"
|
|
26
|
+
/>
|
|
27
|
+
<span>
|
|
28
|
+
{{ actions.name }}
|
|
29
|
+
</span>
|
|
30
|
+
</li>
|
|
31
|
+
<li
|
|
32
|
+
v-if="defaultAction"
|
|
33
|
+
class="dropdown-item d-flex align-items-center w-100"
|
|
34
|
+
@click="$emit(defaultAction.action)"
|
|
35
|
+
>
|
|
36
|
+
<i
|
|
37
|
+
:class="
|
|
38
|
+
defaultAction.icon ? defaultAction.icon : 'fa fa-clone'
|
|
39
|
+
"
|
|
40
|
+
aria-hidden="true"
|
|
41
|
+
/>
|
|
42
|
+
<span>
|
|
43
|
+
{{ defaultAction.name }}
|
|
44
|
+
</span>
|
|
45
|
+
</li>
|
|
46
|
+
</base-dropdown>
|
|
47
|
+
<img
|
|
48
|
+
v-if="image"
|
|
49
|
+
slot="image"
|
|
50
|
+
class="card-img-top"
|
|
51
|
+
:src="image"
|
|
52
|
+
alt="Card image cap"
|
|
53
|
+
/>
|
|
22
54
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
55
|
+
<i
|
|
56
|
+
v-if="icon"
|
|
57
|
+
slot="image"
|
|
58
|
+
:class="icon"
|
|
59
|
+
class="card-img-top card__icon"
|
|
60
|
+
/>
|
|
61
|
+
<!-- title -->
|
|
62
|
+
<h3 class="h6 title mb-2">{{ title }}</h3>
|
|
63
|
+
<!-- descrição -->
|
|
64
|
+
<p v-if="description" class="card-title mb-2">{{ description }}</p>
|
|
65
|
+
<!-- another information -->
|
|
66
|
+
<p v-if="info" class="card-title">
|
|
67
|
+
<small class="text-muted">{{ info }}</small>
|
|
68
|
+
</p>
|
|
69
|
+
</card>
|
|
31
70
|
</template>
|
|
32
71
|
|
|
33
72
|
<script>
|
|
34
73
|
export default {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
74
|
+
name: 'training-card',
|
|
75
|
+
data() {
|
|
76
|
+
return {};
|
|
77
|
+
},
|
|
78
|
+
props: {
|
|
79
|
+
id: Number,
|
|
80
|
+
icon: String,
|
|
81
|
+
link: String,
|
|
82
|
+
image: String,
|
|
83
|
+
title: String,
|
|
84
|
+
description: String,
|
|
85
|
+
info: String,
|
|
86
|
+
showMenu: {
|
|
87
|
+
type: Boolean,
|
|
88
|
+
default: false,
|
|
89
|
+
description: 'Defines if option menu is visible'
|
|
90
|
+
},
|
|
91
|
+
dropdownActions: null,
|
|
92
|
+
defaultAction: null
|
|
93
|
+
}
|
|
56
94
|
};
|
|
57
95
|
</script>
|
|
58
96
|
|
|
59
|
-
<style lang="scss">
|
|
60
|
-
.
|
|
97
|
+
<style lang="scss" scoped>
|
|
98
|
+
.card-app--training {
|
|
99
|
+
height: 15.8rem !important;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.title {
|
|
61
103
|
margin-bottom: 0px !important;
|
|
62
104
|
}
|
|
63
105
|
|
|
@@ -75,7 +117,7 @@ export default {
|
|
|
75
117
|
background-color: #8192a6;
|
|
76
118
|
border-radius: 15%;
|
|
77
119
|
font-size: 1.25rem;
|
|
78
|
-
padding: .25rem .5rem;
|
|
120
|
+
padding: 0.25rem 0.5rem;
|
|
79
121
|
display: none;
|
|
80
122
|
&:hover {
|
|
81
123
|
cursor: pointer;
|
|
@@ -83,14 +125,14 @@ export default {
|
|
|
83
125
|
}
|
|
84
126
|
|
|
85
127
|
.top-right {
|
|
86
|
-
right: .5rem;
|
|
128
|
+
right: 0.5rem;
|
|
87
129
|
position: absolute;
|
|
88
|
-
top: .5rem;
|
|
130
|
+
top: 0.5rem;
|
|
89
131
|
z-index: 100;
|
|
90
132
|
}
|
|
91
133
|
|
|
92
134
|
.fa-plus::before {
|
|
93
|
-
content:
|
|
135
|
+
content: '\f067';
|
|
94
136
|
position: relative;
|
|
95
137
|
top: 25%;
|
|
96
138
|
transform: translateY(-50%);
|