-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.html
More file actions
387 lines (318 loc) · 18 KB
/
settings.html
File metadata and controls
387 lines (318 loc) · 18 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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="assets/css/settings.css">
<link rel="stylesheet" href="components/v-dropdown/v-dropdown.css">
<link rel="stylesheet" href="components/v-confirm-action-button/v-confirm-action-button.css">
<title>Settings - V-Sasver</title>
</head>
<body>
<h1 class="page-title" >
<img src="./assets/img/videoscreensaver-gradient-icon.png"
class="logo" id="logoImg"/>
V-Sasver - Settings
<div class="title-window-actions">
<button id="minimizeBtnTitle" class="title-button">–</button>
<button id="closeBtnTitle" class="title-button">×</button>
</div>
</h1>
<div class="main-content" id="settings">
<p id="message" :class="{'show-message' : showMessage, 'is-error-message' : isErrorMessage}">{{ message }}</p>
<div id="sectionsNav">
<ul>
<li :class="tab1ActiveClass">
<button id="go_tab1" @click.prevent="handleTabSwitch('tab1')">Appearance/Behavior</button>
</li>
<li :class="tab2ActiveClass">
<button id="go_tab2" @click.prevent="handleTabSwitch('tab2')">Files</button>
</li>
</ul>
</div>
<div id="sectionsWrapper">
<div id="sectionsSlider" :class="sectionsSliderClass">
<section id="appearanceSection" class="section">
<div class="settings-col settings-col-1">
<div class="settings-option-wrap">
<span class="settings-option-title">Run after idle (1-{{ maxRunInterval }}min)
<note-tip text="Run screensaver after system idle time value. Switch off system screensaver, power management settings" ></note-tip>
</span>
<div class="settings-option-control">
<input type="number" min="1"
:max="maxRunInterval"
v-model="settings.runInterval"
class="settings-input number-input">
</div>
</div>
<div class="settings-option-wrap">
<span class="settings-option-title">{{this.settings.externalDisplay ? 'Primary screen' : ''}} Saver type:
<note-tip text="Select screensaver type as videoscreensaver or floating clock screensaver" ></note-tip>
</span>
<div class="vs-radioGroup settings-option-control">
<input type="radio" id="saverTypeMainChoice1"
name="saver_type_main" value="video" v-model="settings.saverTypeMain">
<label for="saverTypeMainChoice1">Video</label>
<input type="radio" id="saverTypeMainChoice2"
name="saver_type_main" value="clock" v-model="settings.saverTypeMain">
<label for="saverTypeMainChoice2">Clock</label>
</div>
</div>
<div v-if="settings.externalDisplay" class="settings-option-wrap">
<span class="settings-option-title">External screen Saver type:
<note-tip text="Select screensaver type as videoscreensaver or floating clock screensaver for secondary screen" ></note-tip>
</span>
<div class="vs-radioGroup settings-option-control">
<input type="radio" id="saverTypeExternalChoice1"
name="saver_type_external" value="video" v-model="settings.saverTypeExternal">
<label for="saverTypeExternalChoice1">Video</label>
<input type="radio" id="saverTypeExternalChoice2"
name="saver_type_external" value="clock" v-model="settings.saverTypeExternal">
<label for="saverTypeExternalChoice2">Clock</label>
</div>
</div>
<div class="settings-option-wrap" :class="{'disabled-option' : videoOptionsDisabled}">
<span class="settings-option-title">Change video after:
<note-tip text="Plays next video by certain defined interval or plays every video to end. Anyway plays next video if the previous one was over" ></note-tip>
</span>
<div class="vs-radioGroup settings-option-control">
<input type="radio" id="changeAfterChoice1"
name="change_after" value="interval" v-model="settings.changeAfter" :disabled="videoOptionsDisabled">
<label for="changeAfterChoice1">Interval</label>
<input type="radio" id="changeAfterChoice2"
name="change_after" value="videoends" v-model="settings.changeAfter" :disabled="videoOptionsDisabled">
<label for="changeAfterChoice2">Video ends</label>
</div>
</div>
<div class="settings-option-wrap" :class="{'disabled-option' : changeIntervalDisabled}">
<span class="settings-option-title">Change interval (1-30min)</span>
<div class="settings-option-control">
<input type="number" min="1"
:max="maxVideoChangeInterval"
v-model="settings.changeInterval"
:disabled="changeIntervalDisabled"
class="settings-input number-input">
</div>
</div>
<div class="settings-option-wrap" :class="{'disabled-option' : videoOptionsDisabled}">
<span class="settings-option-title ">Shuffle video
<note-tip text="Shuffle video sources playlist. Shuffling on saver start and periodically direcly in screensaver vindow, not in settings:Files" ></note-tip>
</span>
<div class="slideCheckBox settings-option-control">
<input type="checkbox" id="randomizeVideoChBx" name="randomizeVideo" v-model="settings.randomizeVideo" :disabled="videoOptionsDisabled" >
<label for="randomizeVideoChBx"></label>
</div>
</div>
<div class="settings-option-wrap">
<span class="settings-option-title">Lock system on exit
<note-tip text="Lock system after screensaver exit" ></note-tip>
</span>
<div class="slideCheckBox settings-option-control">
<input type="checkbox" id="lockSystemOnExitChBx" name="lockSystemOnExit" v-model="settings.lockSystemOnExit" >
<label for="lockSystemOnExitChBx"></label>
</div>
</div>
<p></p></br>
<!-- showTrayIcon -->
<div class="settings-option-wrap">
<span class="settings-option-title">Show tray icon <!--(restart to show settings)-->
<note-tip text="Warning: run another instance to show settings and restore temporarily the tray icon" ></note-tip>
</span>
<div class="slideCheckBox settings-option-control">
<input type="checkbox" id="showTrayIconChBx" name="showTrayIcon" v-model="settings.showTrayIcon" >
<label for="showTrayIconChBx"></label>
</div>
</div>
<!-- showTrayIcon -->
<p></p></br>
<p></p></br>
<p></p></br>
<!--
<div v-if="showDevDebugOption" class="settings-option-wrap">
<span class="settings-option-title">dev/debug mode</span>
<div class="slideCheckBox settings-option-control">
<input type="checkbox" id="devDebugModeChBx" name="devDebugMode" v-model="settings.devDebugMode" >
<label for="devDebugModeChBx"></label>
</div>
</div>
-->
</div>
<div class="settings-col settings-col-2">
<div class="settings-option-wrap" :class="{'disabled-option' : videoOptionsDisabled}">
<span class="settings-option-title">Show system clock time
<note-tip text="Shows clock on left side of video screensaver window periodically changing its vertical position" ></note-tip>
</span>
<div class="slideCheckBox settings-option-control">
<input type="checkbox" id="showSystemClockTimeChBx" name="showSystemClockTime" v-model="settings.showSystemClockTime" :disabled="videoOptionsDisabled" >
<label for="showSystemClockTimeChBx"></label>
</div>
</div>
<div class="settings-option-wrap" :class="{'disabled-option' : changeTimeFormatDisabled}">
<span class="settings-option-title">Time format:</span>
<div class="vs-radioGroup settings-option-control">
<input type="radio" id="timeFormatChoice1"
name="time_format" value="12" v-model="settings.clockTimeFormat" :disabled="changeTimeFormatDisabled">
<label for="timeFormatChoice1">12h</label>
<input type="radio" id="timeFormatChoice2"
name="time_format" value="24" v-model="settings.clockTimeFormat" :disabled="changeTimeFormatDisabled">
<label for="timeFormatChoice2">24h</label>
</div>
</div>
<div class="settings-option-wrap" :class="{'disabled-option' : videoOptionsDisabled}">
<span class="settings-option-title">Show video remaining time
</span>
<div class="slideCheckBox settings-option-control">
<input type="checkbox" id="showVideoRemainingTimeChBx" name="showVideoRemainingTime" v-model="settings.showVideoRemainingTime" :disabled="videoOptionsDisabled" >
<label for="showVideoRemainingTimeChBx"></label>
</div>
</div>
<div class="settings-option-wrap" :class="{'disabled-option' : videoOptionsDisabled}">
<span class="settings-option-title">Show video file name on change
<note-tip text="Shows video file name for a few seconds at the beginning of each video" ></note-tip>
</span>
<div class="slideCheckBox settings-option-control">
<input type="checkbox" id="showVideoFileNameChBx" name="showVideoFileName" v-model="settings.showVideoFileName" :disabled="videoOptionsDisabled" >
<label for="showVideoFileNameChBx"></label>
</div>
</div>
<div class="settings-option-wrap">
<span class="settings-option-title">Show Internet connection lost indicator
<note-tip
text="Shows a pulsing red indicator in the top left corner when the Internet connection is lost. Based on external source DNS lookup" img-src="./assets/img/cloud-connection-2.svg"></note-tip>
</span>
<div class="slideCheckBox settings-option-control">
<input type="checkbox" id="showInternetConnectionLostIndicatorChBx" name="showInternetConnectionLostIndicator" v-model="settings.showInternetConnectionLostIndicator" >
<label for="showInternetConnectionLostIndicatorChBx"></label>
</div>
</div>
<div class="settings-option-wrap">
<span class="settings-option-title">Show Internet connection lost notification
<note-tip
text="Shows OS desktop notifications when the Internet connection is lost and then when connection established. Based on external source DNS lookup" img-src="./assets/img/cloud-connection-2.svg"></note-tip>
</span>
<div class="slideCheckBox settings-option-control">
<input type="checkbox" id="showInternetConnectionNotificationChBx" name="showInternetConnectionNotification" v-model="settings.showInternetConnectionNotification" >
<label for="showInternetConnectionNotificationChBx"></label>
</div>
</div>
<div class="settings-option-wrap">
<span class="settings-option-title">Switch off suspending after idle:
<note-tip
text="Resets the suspend mode after this idle interval value" img-src="./assets/img/v-saver__reset-suspend.png"></note-tip>
</span>
<div class="settings-option-control">
<v-dropdown class="__active"
v-model="settings.resetSuspendInterval"
:select-options="resetSuspendIntervalItems"
select-name="resetSuspendInterval"
>
</v-dropdown>
</div>
</div>
<div class="settings-option-wrap">
<span class="settings-option-title">Ignore fullscreen after idle:
<note-tip
text="Ceases to consider the fullscreen applications states after this idle interval value and starts saver if no suspend mode is switched on" ></note-tip>
</span>
<div class="settings-option-control">
<v-dropdown class="__active"
v-model="settings.resetFullScreenInterval"
:select-options="resetFullScreenIntervalItems"
select-name="resetFullScreenInterval"
>
</v-dropdown>
</div>
</div>
<br>
<p></p></br>
<p></p></br>
<button class="btn" @click="handleRunTestSaverWindow">Run screensaver</button>
<div class="settings-option-wrap">
<p class="run-saver-notif"><sup>*</sup>Press `H` in screesaver to show hotkeys help info</p>
</div>
</div>
</section>
<section id="filesSection" class="section" @dragover.prevent.stop="handleFileDragover" @drop.prevent.stop="handleFileDrop">
<div class="settings-col settings-col-1">
<button class="btn" @click="handleAddFiles">Add files</button>
<span class="btn-notif">duplicates will be skipped</span>
<button class="btn right" @click="handleLoadDemoFiles">Load demo</button>
</div>
<div class="settings-col settings-col-2">
<v-confirm-action-state-button
class="btn"
:confirmed-handler="handleClearFiles"
default-text="Remove all files"
>
</v-confirm-action-state-button>
<span class="btn-notif">Files count: {{ filesCount }}</span>
<span v-if="fileErrorsCount > 0" class="btn-notif duration-error">Errors: {{ fileErrorsCount }}</span>
</div>
<div class="clearfix-divider"></div>
<div class="setting-files-wrap" id="settingFilesWrapNode">
<div id="fileDropHolder"
:class="{'show' : showFileDropHolder}"
@dragleave.prevent.stop="handleFileDragleave"
@click.prevent.stop="showFileDropHolder=false;"
></div>
<sortable-list lock-axis="y"
helper-class="drag-sortable-list-item"
v-model="filesWithDurations"
press-threshold="10"
distance="6"
lock-to-container-edges="true"
@sortStart="handleFileListSortStart($event)"
@sort-start="handleFileListSortStart($event)"
@sortEnd="handleFileListSortEnd($event)"
@sort-end="handleFileListSortEnd($event)"
@input="handleFileListSortInput"
>
<sortable-item v-for="(file, filePathindex) in filesWithDurations"
:index="filePathindex"
:key="filePathindex"
:file="file"
:file-pathindex="filePathindex"
:saver-type="settings.saverTypeMain"
:handle-play-file-by-index="handlePlayFileByIndex"
:handle-move-file-path-up="handleMoveFilePathUp"
:handle-move-file-path-down="handleMoveFilePathDown"
:handle-remove-file-path="handleRemoveFilePath"
/>
</sortable-list>
<div class="file-list-scroller" v-if="showfileListScroll"><span>↕</span></div>
</div>
</section>
</div>
<div class="clearfix-divider"></div>
<div class="btn-controls">
<v-confirm-action-state-button
class="btn mr-6"
:confirmed-handler="handleResetSettings"
default-text="Reset to default"
>
</v-confirm-action-state-button>
<button class="btn btn-close" @click="handleCloseSettings">Close</button>
<v-confirm-action-state-button
class="btn right"
:confirmed-handler="handleCloseSettings"
:first-action-handler="handleSaveSettings"
default-text="Save"
confirm-text="Close"
>
</v-confirm-action-state-button>
<p v-if="isNewVersionavailable" class="new-version-info">A new <a @click.prevent="handleOpenVersion" href="#">version {{newVersionValue}}</a> is available</p>
</div>
</div>
</div>
<template id="noteTip">
<div class="note-tip-wr">
<div class="note-tip-ct">
<span class="note-tip-text">{{ text }}</span>
<img v-if="imgSrc" width="22" height="22" class="note-tip-img" :src="imgSrc"/>
</div>
</div>
</template>
<script>
require('./settings-renderer.js')
</script>
</body>
</html>