-
Notifications
You must be signed in to change notification settings - Fork 106
/
app.html
182 lines (173 loc) · 11.7 KB
/
app.html
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
174
175
176
177
178
179
180
181
182
<!DOCTYPE html>
<html>
<head>
<title>Word Clock</title>
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel='stylesheet prefetch' href='https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons'>
<link rel='stylesheet prefetch' href='https://unpkg.com/vuetify@1.5.16/dist/vuetify.min.css'>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui">
<script src='https://unpkg.com/vue/dist/vue.min.js'></script>
<script src='https://unpkg.com/vuetify@1.5.16/dist/vuetify.js'></script>
<script src='https://unpkg.com/babel-polyfill/dist/polyfill.min.js'></script>
<!--script src="https://unpkg.com/@radial-color-picker/vue-color-picker/dist/vue-color-picker.min.js"></script-->
<script src="static/js/vue-color-picker.js"></script>
<script src="static/js/iro.min.js"></script>
<link rel="stylesheet" href="static/vue-color-picker.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css">
<link rel="icon" sizes="512x512" href="/static/icon/icon512.png">
<link rel="icon" sizes="256x256" href="/static/icon/icon256.png">
<link rel="icon" sizes="192x192" href="/static/icon/icon192.png">
<link rel="icon" sizes="128x128" href="/static/icon/icon128.png">
<link rel="icon" sizes="64x64" href="/static/icon/icon64.png">
<link rel="icon" sizes="32x32" href="/static/icon/icon32.png">
<link rel="apple-touch-icon" sizes="57x57" href="/static/icon/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/static/icon/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="/static/icon/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/static/icon/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/static/icon/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/static/icon/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/static/icon/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/static/icon/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/static/icon/apple-icon-180x180.png">
</head>
<body>
<div id="app">
<v-app id="inspire" dark>
<v-content>
<v-container fluid fill-height>
<v-layout align-center justify-center>
<v-flex xs12 sm8 md4>
<v-tabs dark color="primary" class="elevation-12">
<v-tab ripple height="100%">
Control
</v-tab>
<v-tab ripple>
Colors
</v-tab>
<v-spacer></v-spacer>
<v-dialog v-model="about" width="400">
<v-btn icon slot="activator">
<v-icon>fa fa-question-circle</v-icon>
</v-btn>
<v-card>
<v-card-title>The Raspberry Wordclock</v-card-title>
<v-card-text>
<v-icon>fa fa-link fa-fw</v-icon> <a href="https://github.com/bk1285/rpi_wordclock">Project page</a><br><br>
<v-icon>fa fa-users fa-fw</v-icon> <a href="https://github.com/bk1285/rpi_wordclock/graphs/contributors">Contributors</a><br><br>
<v-icon>fa fa-cogs fa-fw</v-icon> <a href="/api#/API">API of this clock</a><br><br>
</v-card-text>
</v-card>
</v-dialog>
<v-tabs-items touchless>
<v-tab-item>
<v-card height=562>
<v-card-text>
<v-select
v-if="apiData"
v-bind:items="apiData.plugins"
item-text="pretty_name"
item-value="name"
v-model="selectedPlugin"
:hint="`${selectedPlugin.description}`"
persistent-hint
return-object
label="Select plugin"
v-on:change="selectionChanged"
single-line menu-props="bottom">
</v-select>
</v-card-text>
<v-card-actions>
<v-container fluid text-xs-center px-0>
<v-layout row px-0>
<v-flex xs4>
<v-card tile flat>
<v-card-text>
<v-btn small color="primary" v-on:click="buttonClick('left')">
<v-icon>fa fa-caret-left</v-icon>
</v-btn>
</v-card-text>
</v-card>
</v-flex>
<v-flex xs4>
<v-card tile flat>
<v-card-text>
<v-btn small color="primary" v-on:click="buttonClick('return')">
<v-icon>fa fa-circle </v-icon>
</v-btn>
</v-card-text>
</v-card>
</v-flex>
<v-flex xs4>
<v-card tile flat>
<v-card-text>
<v-btn small color="primary" v-on:click="buttonClick('right')">
<v-icon>fa fa-caret-right</v-icon>
</v-btn>
</v-card-text>
</v-card>
</v-flex>
</v-layout>
</v-container>
</v-card-actions>
</v-card>
</v-tab-item>
<v-tab-item>
<v-card height=562>
<v-card-actions>
<v-container fluid text-xs-center>
<v-layout row justify-center>
<div id="color-picker-container"></div>
</v-layout>
<v-layout row justify-center>
<v-flex xs4>
<v-card tile flat>
<v-card-text>
<v-checkbox label="Words" v-model="switchWords"></v-checkbox>
</v-card-text>
</v-card>
</v-flex>
<v-flex xs4>
<v-card tile flat>
<v-card-text>
<v-checkbox label="Mins" v-model="switchMinutes"></v-checkbox>
</v-card-text>
</v-card>
</v-flex>
<v-flex xs4>
<v-card tile flat>
<v-card-text>
<v-checkbox label="Back" v-model="switchBackground"></v-checkbox>
</v-card-text>
</v-card>
</v-flex>
<v-layout row justify-center>
<v-dialog v-model="colorByTemp" width="400">
<v-btn icon slot="activator">
<v-icon>fa fa-thermometer-half</v-icon>
</v-btn>
<v-card>
<v-card-title><v-icon>fa fa-thermometer-half fa-fw</v-icon> Set color temperature </v-card-title>
<v-card-text>
<v-slider thumb-label v-model="color_temperature" :min="1000" :max="10000" v-on:input="updateColorTemperature(color_temperature)"></v-slider>
</v-card-text>
</v-card>
</v-dialog>
</v-layout>
</v-layout>
</v-container>
</v-card-actions>
</v-card>
</v-tab-item>
</v-tabs-items>
</v-tabs>
</v-flex>
</v-layout>
</v-container>
</v-content>
</v-app>
</div>
</body>
<script src="https://cdn.jsdelivr.net/npm/vue-resource@1.3.5"></script>
<script src="{{ url_for('static', filename='js/scripts.js') }}"></script>
</html>