glib-web 0.5.77 → 0.5.78
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/README.md +0 -0
- package/action.js +167 -167
- package/actions/analytics/logEvent.js +0 -0
- package/actions/cables/push.js +0 -0
- package/actions/dialogs/notification.js +0 -0
- package/actions/http/patch.js +0 -0
- package/actions/panels/scrollTo.js +18 -18
- package/actions/panels/scrollToBottom.js +0 -0
- package/actions/timeouts/set.js +20 -20
- package/actions/windows/close.js +0 -0
- package/actions/windows/closeAll.js +0 -0
- package/actions/windows/closeWithReload.js +0 -0
- package/actions/windows/refreshState.js +5 -5
- package/actions/windows/reload.js +0 -0
- package/actions/ws/push.js +0 -0
- package/app.vue +180 -180
- package/components/_button.vue +101 -101
- package/components/_dropdownMenu.vue +76 -76
- package/components/_icon.vue +50 -50
- package/components/avatar.vue +16 -16
- package/components/banners/alert.vue +0 -0
- package/components/banners/select.vue +82 -82
- package/components/component.vue +222 -222
- package/components/fields/_patternText.vue +61 -61
- package/components/fields/_select.vue +86 -86
- package/components/fields/autocomplete.vue +73 -73
- package/components/fields/check.vue +104 -104
- package/components/fields/creditCard.vue +0 -0
- package/components/fields/dynamicGroup.vue +0 -0
- package/components/fields/hidden.vue +0 -0
- package/components/fields/location.vue +0 -0
- package/components/fields/newRichText.vue +0 -0
- package/components/fields/phone/countries.js +315 -315
- package/components/fields/phone/field.vue +348 -348
- package/components/fields/phone/sprite.css +1071 -1071
- package/components/fields/radio.vue +64 -64
- package/components/fields/radioGroup.vue +0 -0
- package/components/fields/rating.vue +0 -0
- package/components/fields/richText.vue +0 -0
- package/components/fields/select.vue +17 -17
- package/components/fields/stripe/stripeFields.vue +93 -93
- package/components/fields/stripe/stripeIndividualFields.vue +207 -207
- package/components/fields/stripeExternalAccount.vue +135 -135
- package/components/fields/text.vue +0 -0
- package/components/fields/textarea.vue +0 -0
- package/components/fields/timeZone.vue +22 -22
- package/components/fields/timer.vue +83 -83
- package/components/h1.vue +28 -28
- package/components/h2.vue +20 -20
- package/components/h3.vue +22 -22
- package/components/h4.vue +20 -20
- package/components/h5.vue +20 -20
- package/components/h6.vue +20 -20
- package/components/icon.vue +25 -25
- package/components/label.vue +62 -62
- package/components/map.vue +0 -0
- package/components/mixins/events.js +178 -178
- package/components/mixins/generic.js +0 -0
- package/components/mixins/list/autoload.js +0 -0
- package/components/mixins/styles.js +221 -221
- package/components/mixins/table/autoload.js +0 -0
- package/components/mixins/text.js +20 -20
- package/components/mixins/ws/actionCable.js +48 -48
- package/components/mixins/ws/phoenixSocket.js +0 -0
- package/components/panels/carousel.vue +55 -55
- package/components/panels/flow.vue +81 -81
- package/components/panels/form.vue +126 -126
- package/components/panels/list.vue +0 -0
- package/components/panels/scroll.vue +0 -0
- package/components/panels/table.vue +0 -0
- package/components/panels/ul.vue +34 -34
- package/components/panels/vertical.vue +0 -0
- package/components/panels/web.vue +11 -11
- package/components/spacer.vue +0 -0
- package/components/switch.vue +42 -42
- package/extensions/string.js +21 -21
- package/index.js +195 -195
- package/nav/content.vue +0 -0
- package/nav/dialog.vue +127 -127
- package/nav/snackbar.vue +0 -0
- package/package.json +42 -42
- package/static/plugins/alignment/alignment.js +0 -0
- package/static/plugins/alignment/alignment.min.js +0 -0
- package/static/plugins/beyondgrammar/beyondgrammar.js +0 -0
- package/static/plugins/beyondgrammar/beyondgrammar.min.js +0 -0
- package/static/plugins/blockcode/blockcode.js +0 -0
- package/static/plugins/blockcode/blockcode.min.js +0 -0
- package/static/plugins/clips/clips.js +0 -0
- package/static/plugins/clips/clips.min.js +0 -0
- package/static/plugins/counter/counter.js +0 -0
- package/static/plugins/counter/counter.min.js +0 -0
- package/static/plugins/definedlinks/definedlinks.js +0 -0
- package/static/plugins/definedlinks/definedlinks.min.js +0 -0
- package/static/plugins/handle/handle.js +0 -0
- package/static/plugins/handle/handle.min.js +0 -0
- package/static/plugins/icons/icons.js +0 -0
- package/static/plugins/icons/icons.min.js +0 -0
- package/static/plugins/imageposition/imageposition.js +0 -0
- package/static/plugins/imageposition/imageposition.min.js +0 -0
- package/static/plugins/inlineformat/inlineformat.js +0 -0
- package/static/plugins/inlineformat/inlineformat.min.js +0 -0
- package/static/plugins/removeformat/removeformat.js +0 -0
- package/static/plugins/removeformat/removeformat.min.js +0 -0
- package/static/plugins/selector/selector.js +0 -0
- package/static/plugins/selector/selector.min.js +0 -0
- package/static/plugins/specialchars/specialchars.js +0 -0
- package/static/plugins/specialchars/specialchars.min.js +0 -0
- package/static/plugins/textdirection/textdirection.js +0 -0
- package/static/plugins/textdirection/textdirection.min.js +0 -0
- package/static/plugins/textexpander/textexpander.js +0 -0
- package/static/plugins/textexpander/textexpander.min.js +0 -0
- package/static/plugins/underline/underline.js +0 -0
- package/static/plugins/underline/underline.min.js +0 -0
- package/static/redactorx.css +0 -0
- package/static/redactorx.js +0 -0
- package/static/redactorx.min.css +0 -0
- package/static/redactorx.min.js +0 -0
- package/static/redactorx.usm.min.js +0 -0
- package/templates/_menu.vue +38 -38
- package/templates/comment.vue +202 -202
- package/templates/featured.vue +32 -32
- package/templates/thumbnail.vue +138 -138
- package/templates/unsupported.vue +12 -12
- package/utils/app.js +0 -0
- package/utils/hash.js +0 -0
- package/utils/helper.js +0 -0
- package/utils/history.js +70 -70
- package/utils/http.js +209 -209
- package/utils/launch.js +135 -135
- package/utils/private/ws.js +0 -0
package/templates/comment.vue
CHANGED
|
@@ -1,202 +1,202 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div v-longclick="$onLongPress" class="outer-container">
|
|
3
|
-
<div :class="[spec.editButtons ? 'container-edit' : 'container']">
|
|
4
|
-
<v-card flat :class="mode" class="py-1">
|
|
5
|
-
<v-card-title v-if="mode === 'system'" class="caption">{{
|
|
6
|
-
spec.subtitle
|
|
7
|
-
}}</v-card-title>
|
|
8
|
-
<v-avatar
|
|
9
|
-
v-if="spec.imageUrl && mode !== 'outgoing'"
|
|
10
|
-
class="avatar"
|
|
11
|
-
size="30px"
|
|
12
|
-
>
|
|
13
|
-
<img :src="spec.imageUrl" alt="avatar" />
|
|
14
|
-
</v-avatar>
|
|
15
|
-
<v-card-title
|
|
16
|
-
v-if="spec.title"
|
|
17
|
-
class="font-weight-bold body-2 subtitle"
|
|
18
|
-
>{{ spec.title }}</v-card-title
|
|
19
|
-
>
|
|
20
|
-
<div v-if="mode !== 'system'" class="comment-bubble pa-2">
|
|
21
|
-
{{ spec.subtitle }}
|
|
22
|
-
</div>
|
|
23
|
-
<img
|
|
24
|
-
v-if="spec.image"
|
|
25
|
-
:src="spec.image"
|
|
26
|
-
class="comment-image pa-2"
|
|
27
|
-
:href="taHref(spec)"
|
|
28
|
-
@click="taClick($event, spec)"
|
|
29
|
-
/>
|
|
30
|
-
<v-card-title v-if="spec.subsubtitle" class="subsubtitle caption">{{
|
|
31
|
-
spec.subsubtitle
|
|
32
|
-
}}</v-card-title>
|
|
33
|
-
|
|
34
|
-
<div class="mt-1 chips">
|
|
35
|
-
<template v-for="(spec, index) in chips">
|
|
36
|
-
<v-chip :key="index" class="ma-1" :color="spec.color">
|
|
37
|
-
{{ spec.text }}
|
|
38
|
-
</v-chip>
|
|
39
|
-
</template>
|
|
40
|
-
</div>
|
|
41
|
-
</v-card>
|
|
42
|
-
</div>
|
|
43
|
-
</div>
|
|
44
|
-
</template>
|
|
45
|
-
|
|
46
|
-
<script>
|
|
47
|
-
export default {
|
|
48
|
-
props: {
|
|
49
|
-
spec: { type: Object, required: true }
|
|
50
|
-
},
|
|
51
|
-
data: function() {
|
|
52
|
-
return {
|
|
53
|
-
position: null,
|
|
54
|
-
mode: null,
|
|
55
|
-
chips: []
|
|
56
|
-
};
|
|
57
|
-
},
|
|
58
|
-
methods: {
|
|
59
|
-
$ready() {
|
|
60
|
-
const template = this.spec.template;
|
|
61
|
-
this.mode = this.determineMode(template);
|
|
62
|
-
|
|
63
|
-
this.chips = (this.spec.chips || []).map(spec => {
|
|
64
|
-
var color = null;
|
|
65
|
-
this.$type.ifArray(spec.styleClasses, classes => {
|
|
66
|
-
for (const val of ["success", "info", "warning", "error"]) {
|
|
67
|
-
if (classes.includes(val)) {
|
|
68
|
-
color = val;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
return Object.assign({}, spec, { color: color });
|
|
73
|
-
});
|
|
74
|
-
},
|
|
75
|
-
determineMode(template) {
|
|
76
|
-
switch (template) {
|
|
77
|
-
case "commentIncoming":
|
|
78
|
-
case "commentImageIncoming":
|
|
79
|
-
case "commentVideoIncoming":
|
|
80
|
-
return "incoming";
|
|
81
|
-
case "commentOutgoing":
|
|
82
|
-
case "commentImageOutgoing":
|
|
83
|
-
case "commentVideoOutgoing":
|
|
84
|
-
return "outgoing";
|
|
85
|
-
case "systemComment":
|
|
86
|
-
return "system";
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
</script>
|
|
92
|
-
|
|
93
|
-
<style lang="scss" scoped>
|
|
94
|
-
.outer-container {
|
|
95
|
-
width: 100%;
|
|
96
|
-
display: grid;
|
|
97
|
-
grid-template-columns: 1fr 56px;
|
|
98
|
-
}
|
|
99
|
-
.edit-actions {
|
|
100
|
-
grid-column: 2/3;
|
|
101
|
-
justify-content: center;
|
|
102
|
-
}
|
|
103
|
-
.container,
|
|
104
|
-
.container-edit {
|
|
105
|
-
width: 100%;
|
|
106
|
-
display: grid;
|
|
107
|
-
grid-template-columns: 30% 20% 20% 30%;
|
|
108
|
-
}
|
|
109
|
-
.container-edit {
|
|
110
|
-
padding: 0px;
|
|
111
|
-
grid-column: 1/2;
|
|
112
|
-
}
|
|
113
|
-
.container {
|
|
114
|
-
grid-column: 1/3;
|
|
115
|
-
}
|
|
116
|
-
.system {
|
|
117
|
-
max-height: auto;
|
|
118
|
-
grid-column: 1/5;
|
|
119
|
-
color: #bdbdbd;
|
|
120
|
-
justify-self: center;
|
|
121
|
-
}
|
|
122
|
-
.incoming {
|
|
123
|
-
display: grid;
|
|
124
|
-
grid-template-columns: 36px auto;
|
|
125
|
-
grid-template-rows: 1fr auto 0.5fr;
|
|
126
|
-
grid-column: 1/4;
|
|
127
|
-
|
|
128
|
-
> * {
|
|
129
|
-
justify-self: start;
|
|
130
|
-
grid-column: 2/3;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
> .chips {
|
|
134
|
-
grid-row: 4/4;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
> .comment-bubble {
|
|
138
|
-
background-color: #e6e5ea;
|
|
139
|
-
border-radius: 0px 10px 10px 10px;
|
|
140
|
-
grid-row: 2/3;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
> .comment-image {
|
|
144
|
-
max-width: 100%;
|
|
145
|
-
height: 300px;
|
|
146
|
-
border-radius: 10px !important;
|
|
147
|
-
grid-row: 2/3;
|
|
148
|
-
padding: 0px !important;
|
|
149
|
-
cursor: pointer;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
> .subsubtitle {
|
|
153
|
-
grid-row: 3/4;
|
|
154
|
-
padding: 0;
|
|
155
|
-
color: #9e9e9e;
|
|
156
|
-
padding-top: 4px;
|
|
157
|
-
align-self: start;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
.avatar {
|
|
161
|
-
grid-row: 1/2;
|
|
162
|
-
grid-column: 1/2;
|
|
163
|
-
padding: 0;
|
|
164
|
-
justify-self: center;
|
|
165
|
-
}
|
|
166
|
-
.subtitle {
|
|
167
|
-
grid-row: 1/2;
|
|
168
|
-
grid-column: 2/3;
|
|
169
|
-
padding: 0;
|
|
170
|
-
}
|
|
171
|
-
.outgoing {
|
|
172
|
-
display: grid;
|
|
173
|
-
grid-template-rows: auto 1fr;
|
|
174
|
-
grid-column: 2/5;
|
|
175
|
-
|
|
176
|
-
> * {
|
|
177
|
-
justify-self: end;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
> .comment-bubble {
|
|
181
|
-
background-color: #0084ff;
|
|
182
|
-
color: #fff;
|
|
183
|
-
border-radius: 10px 10px 0px 10px !important;
|
|
184
|
-
grid-row: 1/2;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
> .comment-image {
|
|
188
|
-
max-width: 100%;
|
|
189
|
-
height: 300px;
|
|
190
|
-
border-radius: 10px !important;
|
|
191
|
-
grid-row: 1/2;
|
|
192
|
-
padding: 0px !important;
|
|
193
|
-
cursor: pointer;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
> .subsubtitle {
|
|
197
|
-
grid-row: 2/3;
|
|
198
|
-
padding: 0;
|
|
199
|
-
color: #9e9e9e;
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div v-longclick="$onLongPress" class="outer-container">
|
|
3
|
+
<div :class="[spec.editButtons ? 'container-edit' : 'container']">
|
|
4
|
+
<v-card flat :class="mode" class="py-1">
|
|
5
|
+
<v-card-title v-if="mode === 'system'" class="caption">{{
|
|
6
|
+
spec.subtitle
|
|
7
|
+
}}</v-card-title>
|
|
8
|
+
<v-avatar
|
|
9
|
+
v-if="spec.imageUrl && mode !== 'outgoing'"
|
|
10
|
+
class="avatar"
|
|
11
|
+
size="30px"
|
|
12
|
+
>
|
|
13
|
+
<img :src="spec.imageUrl" alt="avatar" />
|
|
14
|
+
</v-avatar>
|
|
15
|
+
<v-card-title
|
|
16
|
+
v-if="spec.title"
|
|
17
|
+
class="font-weight-bold body-2 subtitle"
|
|
18
|
+
>{{ spec.title }}</v-card-title
|
|
19
|
+
>
|
|
20
|
+
<div v-if="mode !== 'system'" class="comment-bubble pa-2">
|
|
21
|
+
{{ spec.subtitle }}
|
|
22
|
+
</div>
|
|
23
|
+
<img
|
|
24
|
+
v-if="spec.image"
|
|
25
|
+
:src="spec.image"
|
|
26
|
+
class="comment-image pa-2"
|
|
27
|
+
:href="taHref(spec)"
|
|
28
|
+
@click="taClick($event, spec)"
|
|
29
|
+
/>
|
|
30
|
+
<v-card-title v-if="spec.subsubtitle" class="subsubtitle caption">{{
|
|
31
|
+
spec.subsubtitle
|
|
32
|
+
}}</v-card-title>
|
|
33
|
+
|
|
34
|
+
<div class="mt-1 chips">
|
|
35
|
+
<template v-for="(spec, index) in chips">
|
|
36
|
+
<v-chip :key="index" class="ma-1" :color="spec.color">
|
|
37
|
+
{{ spec.text }}
|
|
38
|
+
</v-chip>
|
|
39
|
+
</template>
|
|
40
|
+
</div>
|
|
41
|
+
</v-card>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
</template>
|
|
45
|
+
|
|
46
|
+
<script>
|
|
47
|
+
export default {
|
|
48
|
+
props: {
|
|
49
|
+
spec: { type: Object, required: true }
|
|
50
|
+
},
|
|
51
|
+
data: function() {
|
|
52
|
+
return {
|
|
53
|
+
position: null,
|
|
54
|
+
mode: null,
|
|
55
|
+
chips: []
|
|
56
|
+
};
|
|
57
|
+
},
|
|
58
|
+
methods: {
|
|
59
|
+
$ready() {
|
|
60
|
+
const template = this.spec.template;
|
|
61
|
+
this.mode = this.determineMode(template);
|
|
62
|
+
|
|
63
|
+
this.chips = (this.spec.chips || []).map(spec => {
|
|
64
|
+
var color = null;
|
|
65
|
+
this.$type.ifArray(spec.styleClasses, classes => {
|
|
66
|
+
for (const val of ["success", "info", "warning", "error"]) {
|
|
67
|
+
if (classes.includes(val)) {
|
|
68
|
+
color = val;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
return Object.assign({}, spec, { color: color });
|
|
73
|
+
});
|
|
74
|
+
},
|
|
75
|
+
determineMode(template) {
|
|
76
|
+
switch (template) {
|
|
77
|
+
case "commentIncoming":
|
|
78
|
+
case "commentImageIncoming":
|
|
79
|
+
case "commentVideoIncoming":
|
|
80
|
+
return "incoming";
|
|
81
|
+
case "commentOutgoing":
|
|
82
|
+
case "commentImageOutgoing":
|
|
83
|
+
case "commentVideoOutgoing":
|
|
84
|
+
return "outgoing";
|
|
85
|
+
case "systemComment":
|
|
86
|
+
return "system";
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
</script>
|
|
92
|
+
|
|
93
|
+
<style lang="scss" scoped>
|
|
94
|
+
.outer-container {
|
|
95
|
+
width: 100%;
|
|
96
|
+
display: grid;
|
|
97
|
+
grid-template-columns: 1fr 56px;
|
|
98
|
+
}
|
|
99
|
+
.edit-actions {
|
|
100
|
+
grid-column: 2/3;
|
|
101
|
+
justify-content: center;
|
|
102
|
+
}
|
|
103
|
+
.container,
|
|
104
|
+
.container-edit {
|
|
105
|
+
width: 100%;
|
|
106
|
+
display: grid;
|
|
107
|
+
grid-template-columns: 30% 20% 20% 30%;
|
|
108
|
+
}
|
|
109
|
+
.container-edit {
|
|
110
|
+
padding: 0px;
|
|
111
|
+
grid-column: 1/2;
|
|
112
|
+
}
|
|
113
|
+
.container {
|
|
114
|
+
grid-column: 1/3;
|
|
115
|
+
}
|
|
116
|
+
.system {
|
|
117
|
+
max-height: auto;
|
|
118
|
+
grid-column: 1/5;
|
|
119
|
+
color: #bdbdbd;
|
|
120
|
+
justify-self: center;
|
|
121
|
+
}
|
|
122
|
+
.incoming {
|
|
123
|
+
display: grid;
|
|
124
|
+
grid-template-columns: 36px auto;
|
|
125
|
+
grid-template-rows: 1fr auto 0.5fr;
|
|
126
|
+
grid-column: 1/4;
|
|
127
|
+
|
|
128
|
+
> * {
|
|
129
|
+
justify-self: start;
|
|
130
|
+
grid-column: 2/3;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
> .chips {
|
|
134
|
+
grid-row: 4/4;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
> .comment-bubble {
|
|
138
|
+
background-color: #e6e5ea;
|
|
139
|
+
border-radius: 0px 10px 10px 10px;
|
|
140
|
+
grid-row: 2/3;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
> .comment-image {
|
|
144
|
+
max-width: 100%;
|
|
145
|
+
height: 300px;
|
|
146
|
+
border-radius: 10px !important;
|
|
147
|
+
grid-row: 2/3;
|
|
148
|
+
padding: 0px !important;
|
|
149
|
+
cursor: pointer;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
> .subsubtitle {
|
|
153
|
+
grid-row: 3/4;
|
|
154
|
+
padding: 0;
|
|
155
|
+
color: #9e9e9e;
|
|
156
|
+
padding-top: 4px;
|
|
157
|
+
align-self: start;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
.avatar {
|
|
161
|
+
grid-row: 1/2;
|
|
162
|
+
grid-column: 1/2;
|
|
163
|
+
padding: 0;
|
|
164
|
+
justify-self: center;
|
|
165
|
+
}
|
|
166
|
+
.subtitle {
|
|
167
|
+
grid-row: 1/2;
|
|
168
|
+
grid-column: 2/3;
|
|
169
|
+
padding: 0;
|
|
170
|
+
}
|
|
171
|
+
.outgoing {
|
|
172
|
+
display: grid;
|
|
173
|
+
grid-template-rows: auto 1fr;
|
|
174
|
+
grid-column: 2/5;
|
|
175
|
+
|
|
176
|
+
> * {
|
|
177
|
+
justify-self: end;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
> .comment-bubble {
|
|
181
|
+
background-color: #0084ff;
|
|
182
|
+
color: #fff;
|
|
183
|
+
border-radius: 10px 10px 0px 10px !important;
|
|
184
|
+
grid-row: 1/2;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
> .comment-image {
|
|
188
|
+
max-width: 100%;
|
|
189
|
+
height: 300px;
|
|
190
|
+
border-radius: 10px !important;
|
|
191
|
+
grid-row: 1/2;
|
|
192
|
+
padding: 0px !important;
|
|
193
|
+
cursor: pointer;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
> .subsubtitle {
|
|
197
|
+
grid-row: 2/3;
|
|
198
|
+
padding: 0;
|
|
199
|
+
color: #9e9e9e;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
</style>
|
package/templates/featured.vue
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<v-card :href="$href()" @click="$onClick()">
|
|
3
|
-
<v-img :src="spec.imageUrl" height="200" :style="genericStyles()" />
|
|
4
|
-
|
|
5
|
-
<v-list-item v-if="spec.template != 'spacer'">
|
|
6
|
-
<v-list-item-content>
|
|
7
|
-
<v-list-item-title>{{ spec.title }}</v-list-item-title>
|
|
8
|
-
<v-list-item-subtitle v-if="spec.subtitle">{{
|
|
9
|
-
spec.subtitle
|
|
10
|
-
}}</v-list-item-subtitle>
|
|
11
|
-
<v-list-item-subtitle v-if="spec.subsubtitle">{{
|
|
12
|
-
spec.subsubtitle
|
|
13
|
-
}}</v-list-item-subtitle>
|
|
14
|
-
</v-list-item-content>
|
|
15
|
-
|
|
16
|
-
<template-menu :edit-buttons="spec.editButtons || []" />
|
|
17
|
-
</v-list-item>
|
|
18
|
-
</v-card>
|
|
19
|
-
</template>
|
|
20
|
-
|
|
21
|
-
<script>
|
|
22
|
-
// import Menu from "./menu";
|
|
23
|
-
|
|
24
|
-
export default {
|
|
25
|
-
// components: {
|
|
26
|
-
// "template-menu": Menu
|
|
27
|
-
// },
|
|
28
|
-
props: {
|
|
29
|
-
spec: { type: Object, required: true }
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<v-card :href="$href()" @click="$onClick()">
|
|
3
|
+
<v-img :src="spec.imageUrl" height="200" :style="genericStyles()" />
|
|
4
|
+
|
|
5
|
+
<v-list-item v-if="spec.template != 'spacer'">
|
|
6
|
+
<v-list-item-content>
|
|
7
|
+
<v-list-item-title>{{ spec.title }}</v-list-item-title>
|
|
8
|
+
<v-list-item-subtitle v-if="spec.subtitle">{{
|
|
9
|
+
spec.subtitle
|
|
10
|
+
}}</v-list-item-subtitle>
|
|
11
|
+
<v-list-item-subtitle v-if="spec.subsubtitle">{{
|
|
12
|
+
spec.subsubtitle
|
|
13
|
+
}}</v-list-item-subtitle>
|
|
14
|
+
</v-list-item-content>
|
|
15
|
+
|
|
16
|
+
<template-menu :edit-buttons="spec.editButtons || []" />
|
|
17
|
+
</v-list-item>
|
|
18
|
+
</v-card>
|
|
19
|
+
</template>
|
|
20
|
+
|
|
21
|
+
<script>
|
|
22
|
+
// import Menu from "./menu";
|
|
23
|
+
|
|
24
|
+
export default {
|
|
25
|
+
// components: {
|
|
26
|
+
// "template-menu": Menu
|
|
27
|
+
// },
|
|
28
|
+
props: {
|
|
29
|
+
spec: { type: Object, required: true }
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
</script>
|