-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathumd-test.html
More file actions
141 lines (131 loc) · 4.75 KB
/
Copy pathumd-test.html
File metadata and controls
141 lines (131 loc) · 4.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<!doctype html>
<html lang="en-US">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="format-detection" content="telephone=no" />
<meta name="msapplication-tap-highlight" content="no" />
<meta
name="viewport"
content="user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1,width=device-width"
/>
<link rel="icon" href="data:," />
<title>UMD test</title>
<link
href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons"
rel="stylesheet"
type="text/css"
/>
<link
href="https://cdn.jsdelivr.net/npm/quasar@2/dist/quasar.prod.css"
rel="stylesheet"
type="text/css"
/>
<link href="dist/index.css?ae=qactivity" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="q-app">
<q-layout view="lHh Lpr fff">
<q-header class="glossy bg-primary">
<q-toolbar>
<q-toolbar-title> QActivity v{{ version }} </q-toolbar-title>
<div>Quasar v{{ $q.version }}</div>
</q-toolbar>
</q-header>
<q-page-container>
<q-page padding>
<q-card flat bordered class="q-mb-lg" style="max-width: 760px">
<q-card-section class="row items-center q-col-gutter-md">
<div class="col">
<div class="text-h6">Release timeline smoke test</div>
<div class="text-body2 text-grey-7">
This exercises both QActivity and QActivityItem from the UMD bundle.
</div>
</div>
<div class="col-auto">
<q-toggle v-model="dense" label="Dense"></q-toggle>
</div>
</q-card-section>
<q-separator></q-separator>
<q-card-section>
<q-activity
:dense="dense"
bar-color="primary"
bar-width="3px"
bar-distance="18px"
bar-start="round"
bar-end="round"
>
<q-activity-item
v-for="(entry, index) in entries"
:key="entry.time"
:icon="entry.icon"
icon-color="primary"
icon-text-color="white"
icon-size="28px"
:class="index < entries.length - 1 ? (dense === true ? 'q-pb-sm' : 'q-pb-md') : ''"
>
<div class="row items-center justify-between q-col-gutter-md">
<div class="col">
<div class="text-weight-medium">{{ entry.title }}</div>
<div class="text-body2 text-grey-7">{{ entry.description }}</div>
</div>
<div class="col-auto text-caption text-grey-7">{{ entry.time }}</div>
</div>
</q-activity-item>
</q-activity>
</q-card-section>
</q-card>
</q-page>
</q-page-container>
</q-layout>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue@3/dist/vue.global.prod.js"></script>
<script src="https://cdn.jsdelivr.net/npm/quasar@2/dist/quasar.umd.prod.js"></script>
<script src="dist/index.umd.js?ae=qactivity"></script>
<script>
const { ref } = Vue
const activityPlugin = globalThis.QActivity
const bundleReady =
activityPlugin !== void 0 &&
typeof activityPlugin.install === 'function' &&
activityPlugin.QActivity !== void 0 &&
activityPlugin.QActivityItem !== void 0
const app = Vue.createApp({
setup() {
const dense = ref(false)
const entries = [
{
title: 'Package installed',
description: 'The plugin registered QActivity and QActivityItem from the UMD build.',
icon: 'extension',
time: '09:00',
},
{
title: 'Timeline rendered',
description: 'The vertical bar, markers, and entry content are all visible.',
icon: 'timeline',
time: '09:15',
},
{
title: 'Dense mode toggled',
description: 'Use the switch above to verify the compact layout state.',
icon: 'tune',
time: '09:30',
},
]
return {
version: bundleReady === true ? activityPlugin.version : 'bundle missing',
dense,
entries,
}
},
})
app.use(Quasar)
if (bundleReady === true) {
app.use(activityPlugin)
}
app.mount('#q-app')
</script>
</body>
</html>