@pinegrow/quasar-module 3.0.40 → 3.0.41
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/dist/templates/[slug].vue +47 -0
- package/dist/templates/new-page-simple.vue +38 -0
- package/dist/templates/new-page.vue +34 -0
- package/dist/templates/screenshots/[slug].vue.jpg +0 -0
- package/dist/templates/screenshots/new-page-simple.vue.jpg +0 -0
- package/dist/templates/screenshots/new-page.vue.jpg +0 -0
- package/package.json +2 -2
- package/dist/templates/SampleCard.vue +0 -71
- package/dist/templates/screenshots/SampleCard.jpg +0 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { useMeta } from 'quasar'
|
|
3
|
+
import { ref } from 'vue'
|
|
4
|
+
import { useRoute } from 'vue-router'
|
|
5
|
+
|
|
6
|
+
const pageMeta = {
|
|
7
|
+
// layout: 'default',
|
|
8
|
+
// name: '[[PinegrowTemplateComponentNameWithoutFx]]',
|
|
9
|
+
// alias: '[[PinegrowTemplateComponentNameWithoutFx]]',
|
|
10
|
+
title: ref('[[PinegrowTemplateComponentNameCapitalize]]'),
|
|
11
|
+
description: '[[PinegrowTemplateComponentNameCapitalize]]',
|
|
12
|
+
// hidden: true,
|
|
13
|
+
navOrder: '[[PinegrowTemplateNavOrder]]',
|
|
14
|
+
type: 'primary',
|
|
15
|
+
icon: 'i-mdi-home',
|
|
16
|
+
// ogImage: 'images/ogImage.png', // url or local images inside public folder, for eg, ~/public/images/ogImage.png
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// import { computed } from 'vue'
|
|
20
|
+
// import { useArticles } from '~/composables/articles'
|
|
21
|
+
|
|
22
|
+
// const articleId = useRoute().params.id
|
|
23
|
+
|
|
24
|
+
// const { data: article } = await useAsyncData('articles', async () => {
|
|
25
|
+
// const { getArticle } = useArticles()
|
|
26
|
+
// return await getArticle(+articleId)
|
|
27
|
+
// })
|
|
28
|
+
|
|
29
|
+
const route = useRoute()
|
|
30
|
+
const capitalize = s => (s && s[0].toUpperCase() + s.slice(1)) || ''
|
|
31
|
+
useMeta(() => {
|
|
32
|
+
return {
|
|
33
|
+
title: () => capitalize(route.params.[[PinegrowTemplateSlug]]),
|
|
34
|
+
}
|
|
35
|
+
})
|
|
36
|
+
</script>
|
|
37
|
+
|
|
38
|
+
<template>
|
|
39
|
+
<q-page padding>
|
|
40
|
+
<div style="min-height: 100px; display: flex; align-items: center; justify-content: center; font-weight: bold">
|
|
41
|
+
<span style="color: #0198cd">[[PinegrowTemplateComponentNameWithExtn]]</span>
|
|
42
|
+
</div>
|
|
43
|
+
</q-page>
|
|
44
|
+
</template>
|
|
45
|
+
|
|
46
|
+
<style scoped></style>
|
|
47
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { useMeta } from 'quasar'
|
|
3
|
+
import { ref } from 'vue'
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
setup() {
|
|
7
|
+
const pageMeta = {
|
|
8
|
+
// layout: 'default',
|
|
9
|
+
// name: '[[PinegrowTemplateComponentNameWithoutFx]]',
|
|
10
|
+
// alias: '[[PinegrowTemplateComponentNameWithoutFx]]',
|
|
11
|
+
title: ref('[[PinegrowTemplateComponentNameCapitalize]]'),
|
|
12
|
+
description: '[[PinegrowTemplateComponentNameCapitalize]]',
|
|
13
|
+
// hidden: true,
|
|
14
|
+
navOrder: '[[PinegrowTemplateNavOrder]]',
|
|
15
|
+
type: 'primary',
|
|
16
|
+
icon: 'i-mdi-home',
|
|
17
|
+
// ogImage: 'images/ogImage.png', // url or local images inside public folder, for eg, ~/public/images/ogImage.png
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
useMeta(() => {
|
|
21
|
+
return {
|
|
22
|
+
title: pageMeta.title.value,
|
|
23
|
+
}
|
|
24
|
+
})
|
|
25
|
+
},
|
|
26
|
+
}
|
|
27
|
+
</script>
|
|
28
|
+
|
|
29
|
+
<template>
|
|
30
|
+
<q-page padding>
|
|
31
|
+
<div style="min-height: 100px; display: flex; align-items: center; justify-content: center; font-weight: bold">
|
|
32
|
+
<span style="color: #0198cd">[[PinegrowTemplateComponentNameWithExtn]]</span>
|
|
33
|
+
</div>
|
|
34
|
+
</q-page>
|
|
35
|
+
</template>
|
|
36
|
+
|
|
37
|
+
<style scoped></style>
|
|
38
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { useMeta } from 'quasar'
|
|
3
|
+
import { ref } from 'vue'
|
|
4
|
+
|
|
5
|
+
const pageMeta = {
|
|
6
|
+
// layout: 'default',
|
|
7
|
+
// name: '[[PinegrowTemplateComponentNameWithoutFx]]',
|
|
8
|
+
// alias: '[[PinegrowTemplateComponentNameWithoutFx]]',
|
|
9
|
+
title: ref('[[PinegrowTemplateComponentNameCapitalize]]'),
|
|
10
|
+
description: '[[PinegrowTemplateComponentNameCapitalize]]',
|
|
11
|
+
// hidden: true,
|
|
12
|
+
navOrder: '[[PinegrowTemplateNavOrder]]',
|
|
13
|
+
type: 'primary',
|
|
14
|
+
icon: 'i-mdi-home',
|
|
15
|
+
// ogImage: 'images/ogImage.png', // url or local images inside public folder, for eg, ~/public/images/ogImage.png
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
useMeta(() => {
|
|
19
|
+
return {
|
|
20
|
+
title: pageMeta.title.value,
|
|
21
|
+
}
|
|
22
|
+
})
|
|
23
|
+
</script>
|
|
24
|
+
|
|
25
|
+
<template>
|
|
26
|
+
<q-page padding>
|
|
27
|
+
<div style="min-height: 100px; display: flex; align-items: center; justify-content: center; font-weight: bold">
|
|
28
|
+
<span style="color: #0198cd">[[PinegrowTemplateComponentNameWithExtn]]</span>
|
|
29
|
+
</div>
|
|
30
|
+
</q-page>
|
|
31
|
+
</template>
|
|
32
|
+
|
|
33
|
+
<style scoped></style>
|
|
34
|
+
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pinegrow/quasar-module",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.41",
|
|
4
4
|
"description": "Pinegrow Quasar Module",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pinegrow",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"increment-version": "npm version patch"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@pinegrow/vite-plugin": "3.0.
|
|
41
|
+
"@pinegrow/vite-plugin": "3.0.41"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"copy-webpack-plugin": "^10.2.4"
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { ref } from 'vue'
|
|
3
|
-
|
|
4
|
-
const heroImageUrl =
|
|
5
|
-
'https://images.unsplash.com/photo-1654870468927-92c943da24fe?crop=entropy&cs=srgb&fm=jpg&ixid=M3wyMDkyMnwwfDF8c2VhcmNofDEzfHxiYWtlcnklMjBjb2ZmZWV8ZW58MHx8fHwxNjkzNTcxNzY4fDA&ixlib=rb-4.0.3&q=85'
|
|
6
|
-
const availableTimeSlots = ['3.30PM', '4.20PM', '5.50PM', '6.00PM']
|
|
7
|
-
const selectedTimeSlot = ref(0)
|
|
8
|
-
|
|
9
|
-
const statusDisplay = ref(false)
|
|
10
|
-
const showStatus = status => {
|
|
11
|
-
statusDisplay.value = status
|
|
12
|
-
}
|
|
13
|
-
</script>
|
|
14
|
-
|
|
15
|
-
<template>
|
|
16
|
-
<v-card width="360" class="elevation-4 mt-12 mx-auto">
|
|
17
|
-
<v-img :src="heroImageUrl" height="250" cover></v-img>
|
|
18
|
-
<v-card-item>
|
|
19
|
-
<template #title>
|
|
20
|
-
<div class="d-flex justify-space-between">
|
|
21
|
-
<span class="text-primary">Cafe Bella Vista</span>
|
|
22
|
-
</div>
|
|
23
|
-
</template>
|
|
24
|
-
<template #subtitle
|
|
25
|
-
><span>Local Favourite</span>
|
|
26
|
-
<v-icon
|
|
27
|
-
icon="i-ic-round-local-fire-department"
|
|
28
|
-
class="bg-red-darken-4 ml-2 text-red-darken-2"
|
|
29
|
-
size="small"
|
|
30
|
-
></v-icon>
|
|
31
|
-
</template>
|
|
32
|
-
<div class="align-center d-flex">
|
|
33
|
-
<v-rating
|
|
34
|
-
density="compact"
|
|
35
|
-
size="small"
|
|
36
|
-
color="amber-darken-2"
|
|
37
|
-
model-value="4.5"
|
|
38
|
-
half-increments
|
|
39
|
-
></v-rating
|
|
40
|
-
><span class="ml-2 mt-2 text-caption text-medium-emphasis">4.5 (413)</span>
|
|
41
|
-
</div>
|
|
42
|
-
<div class="mt-2 text-subtitle-1">
|
|
43
|
-
<span>$ . Italian, Cafe</span>
|
|
44
|
-
</div>
|
|
45
|
-
</v-card-item>
|
|
46
|
-
<v-card-text>
|
|
47
|
-
<div class="mt-1">
|
|
48
|
-
<span
|
|
49
|
-
>Small plates, salads & sandwiches - an intimate setting with 12 indoor seats plus patio
|
|
50
|
-
seating.</span
|
|
51
|
-
>
|
|
52
|
-
</div>
|
|
53
|
-
<v-divider class="mt-4"></v-divider>
|
|
54
|
-
</v-card-text>
|
|
55
|
-
<v-card-item>
|
|
56
|
-
<template #title><span>Tonight's availability</span> </template>
|
|
57
|
-
<v-chip-group v-model="selectedTimeSlot" class="mt-2">
|
|
58
|
-
<v-chip v-for="(timeSlot, index) in availableTimeSlots" :key="index" :text="timeSlot"></v-chip>
|
|
59
|
-
</v-chip-group>
|
|
60
|
-
</v-card-item>
|
|
61
|
-
<v-card-actions>
|
|
62
|
-
<v-btn text="Reserve" variant="tonal" class="mb-2 ml-2" @click="showStatus(true)"></v-btn>
|
|
63
|
-
<v-snackbar v-model="statusDisplay" timeout="2000"
|
|
64
|
-
><span class="text-white w-100">{{ availableTimeSlots[selectedTimeSlot] }} was reserved.</span>
|
|
65
|
-
</v-snackbar>
|
|
66
|
-
</v-card-actions>
|
|
67
|
-
</v-card>
|
|
68
|
-
</template>
|
|
69
|
-
|
|
70
|
-
<style scoped></style>
|
|
71
|
-
|
|
Binary file
|