forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExampleSettings.vue
More file actions
173 lines (152 loc) · 4.53 KB
/
ExampleSettings.vue
File metadata and controls
173 lines (152 loc) · 4.53 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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<template>
<div class="q-pa-md" style="max-width: 350px">
<q-list bordered padding>
<q-item-label header>User Controls</q-item-label>
<q-item clickable v-ripple>
<q-item-section>
<q-item-label>Content filtering</q-item-label>
<q-item-label caption>
Set the content filtering level to restrict
apps that can be downloaded
</q-item-label>
</q-item-section>
</q-item>
<q-item clickable v-ripple>
<q-item-section>
<q-item-label>Password</q-item-label>
<q-item-label caption>
Require password for purchase or use
password to restrict purchase
</q-item-label>
</q-item-section>
</q-item>
<q-separator spaced />
<q-item-label header>General</q-item-label>
<q-item tag="label" v-ripple>
<q-item-section side top>
<q-checkbox v-model="check1" />
</q-item-section>
<q-item-section>
<q-item-label>Notifications</q-item-label>
<q-item-label caption>
Notify me about updates to apps or games that I downloaded
</q-item-label>
</q-item-section>
</q-item>
<q-item tag="label" v-ripple>
<q-item-section side top>
<q-checkbox v-model="check2" />
</q-item-section>
<q-item-section>
<q-item-label>Sound</q-item-label>
<q-item-label caption>
Auto-update apps at anytime. Data charges may apply
</q-item-label>
</q-item-section>
</q-item>
<q-item tag="label" v-ripple>
<q-item-section side top>
<q-checkbox v-model="check3" />
</q-item-section>
<q-item-section>
<q-item-label>Auto-add widgets</q-item-label>
<q-item-label caption>
Automatically add home screen widgets
</q-item-label>
</q-item-section>
</q-item>
<q-separator spaced />
<q-item-label header>Notifications</q-item-label>
<q-item tag="label" v-ripple>
<q-item-section>
<q-item-label>Battery too low</q-item-label>
</q-item-section>
<q-item-section side >
<q-toggle color="blue" v-model="notif1" val="battery" />
</q-item-section>
</q-item>
<q-item tag="label" v-ripple>
<q-item-section>
<q-item-label>Friend request</q-item-label>
<q-item-label caption>Allow notification</q-item-label>
</q-item-section>
<q-item-section side top>
<q-toggle color="green" v-model="notif2" val="friend" />
</q-item-section>
</q-item>
<q-item tag="label" v-ripple>
<q-item-section>
<q-item-label>Picture uploaded</q-item-label>
<q-item-label caption>Allow notification when uploading images</q-item-label>
</q-item-section>
<q-item-section side top>
<q-toggle color="red" v-model="notif3" val="picture" />
</q-item-section>
</q-item>
<q-separator spaced />
<q-item-label header>Other settings</q-item-label>
<q-item>
<q-item-section side>
<q-icon color="teal" name="volume_down" />
</q-item-section>
<q-item-section>
<q-slider
v-model="volume"
:min="0"
:max="10"
label
color="teal"
/>
</q-item-section>
<q-item-section side>
<q-icon color="teal" name="volume_up" />
</q-item-section>
</q-item>
<q-item>
<q-item-section side>
<q-icon color="deep-orange" name="brightness_medium" />
</q-item-section>
<q-item-section>
<q-slider
v-model="brightness"
:min="0"
:max="10"
label
color="deep-orange"
/>
</q-item-section>
</q-item>
<q-item>
<q-item-section side>
<q-icon color="primary" name="mic" />
</q-item-section>
<q-item-section>
<q-slider
v-model="mic"
:min="0"
:max="50"
label
/>
</q-item-section>
</q-item>
</q-list>
</div>
</template>
<script>
import { ref } from 'vue'
export default {
setup () {
return {
check1: ref(true),
check2: ref(false),
check3: ref(false),
notif1: ref(true),
notif2: ref(true),
notif3: ref(false),
volume: ref(6),
brightness: ref(3),
mic: ref(8)
}
}
}
</script>