-
Notifications
You must be signed in to change notification settings - Fork 1
/
gphotos-sync.html
178 lines (178 loc) · 7.65 KB
/
gphotos-sync.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>gPhotos Sync</title>
<link rel="stylesheet" href="./material.min.css" />
<script src="./material.min.js"></script>
<link rel="stylesheet" href="./dialog-polyfill.css" />
<script src="./dialog-polyfill.js"></script>
<link rel="stylesheet" content="text/css" href="gphotos-sync.css" />
<script src="./sql.js"></script>
<script src="./gphotos-sync-ui.js"></script>
<body>
<!-- Always shows a header, even in smaller screens. -->
<div class="mdl-layout mdl-js-layout mdl-layout--fixed-header">
<header class="mdl-layout__header">
<div class="mdl-layout__header-row">
<!-- Title -->
<span class="mdl-layout-title">gPhotos Sync</span>
</div>
</header>
<div class="mdl-layout__drawer">
<span class="mdl-layout-title">gPhotos Sync</span>
<nav class="mdl-navigation">
<a class="mdl-navigation__link" href="#sync" id="menu-sync">Sync</a>
<a class="mdl-navigation__link" href="#settings" id="menu-settings">Settings</a>
<a class="mdl-navigation__link" href="#log" id="menu-log">Log</a>
<a class="mdl-navigation__link" href="#about" id="menu-about">About</a>
</nav>
</div>
<main class="mdl-layout__content">
<div class="page-content" id="sync" style="display: block;">
<div id="sync-libraries"></div>
<!-- Colored FAB button with ripple -->
<button id="add" class="mdl-button mdl-js-button mdl-button--fab mdl-js-ripple-effect mdl-button--colored">
<i class="material-icons">add</i>
</button>
</div>
<div class="page-content" id="settings" style="display: none;">Settings<!-- Your content goes here --></div>
<div class="page-content" id="log" style="display: none;">
<div class="log mdl-card mdl-shadow--2dp">
<div class="mdl-card__title">
<h2 class="mdl-card__title-text">Log</h2>
</div>
<div class="mdl-card__supporting-text">
...
</div>
<div class="mdl-card__actions mdl-card--border">
<a class="mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect">
Clear log
</a>
</div>
<div class="mdl-card__menu">
<button class="mdl-button mdl-button--icon mdl-js-button mdl-js-ripple-effect">
<i class="material-icons">share</i>
</button>
</div>
</div>
</div>
<div class="page-content" id="about" style="display: none;">About<!-- Your content goes here --></div>
</main>
</div>
<dialog id="sync-dialog" class="mdl-dialog">
<h4 class="mdl-dialog__title">Sync</h4>
<div class="mdl-dialog__content">
<p id="status">
<tt>Syncing...</tt>
</p>
</div>
<div class="mdl-dialog__actions">
<button type="button" class="mdl-button" id="stop">Close</button>
</div>
</dialog>
<dialog id="settings-dialog" class="mdl-dialog">
<h4 class="mdl-dialog__title">Settings</h4>
<div class="mdl-dialog__content">
<ul class="mdl-list">
<li class="lib-settings mdl-list__item" id="lib-settings-favourites-only">
<span class="mdl-list__item-primary-content">
Favourites only
</span>
<span class="mdl-list__item-secondary-action">
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="settings-favourites-only">
<input type="checkbox" id="settings-favourites-only" class="mdl-switch__input" />
</label>
</span>
</li>
<li class="lib-settings mdl-list__item" id="lib-settings-skip-albums">
<span class="mdl-list__item-primary-content">
Skip albums
</span>
<span class="mdl-list__item-secondary-action">
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="settings-skip-albums">
<input type="checkbox" id="settings-skip-albums" class="mdl-switch__input" />
</label>
</span>
</li>
<li class="lib-settings mdl-list__item" id="lib-settings-rescan">
<span class="mdl-list__item-primary-content">
Rescan (ignore scan date)
</span>
<span class="mdl-list__item-secondary-action">
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="settings-rescan">
<input type="checkbox" id="settings-rescan" class="mdl-switch__input" />
</label>
</span>
</li>
<li class="lib-settings mdl-list__item" id="lib-settings-flush-index">
<span class="mdl-list__item-primary-content">
Flush index (rescan everything)
</span>
<span class="mdl-list__item-secondary-action">
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="settings-flush-index">
<input type="checkbox" id="settings-flush-index" class="mdl-switch__input" />
</label>
</span>
</li>
<li class="lib-settings mdl-list__item" id="lib-settings-retry-download">
<span class="mdl-list__item-primary-content">
Retry download (e.g. you deleted some local files)
</span>
<span class="mdl-list__item-secondary-action">
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="settings-retry-download">
<input type="checkbox" id="settings-retry-download" class="mdl-switch__input" />
</label>
</span>
</li>
<li class="lib-settings mdl-list__item" id="lib-settings-skip-video">
<span class="mdl-list__item-primary-content">
Skip videos (download photos only)
</span>
<span class="mdl-list__item-secondary-action">
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="settings-skip-video">
<input type="checkbox" id="settings-skip-video" class="mdl-switch__input" />
</label>
</span>
</li>
<li class="lib-settings mdl-list__item" id="lib-settings-skip-shared-albums">
<span class="mdl-list__item-primary-content">
Skip shared albums
</span>
<span class="mdl-list__item-secondary-action">
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="settings-skip-shared-albums">
<input type="checkbox" id="settings-skip-shared-albums" class="mdl-switch__input" />
</label>
</span>
</li>
<li class="lib-settings mdl-list__item" id="lib-settings-do-delete">
<span class="mdl-list__item-primary-content">
Mirror deletions (delete local files when remote files are deleted)
</span>
<span class="mdl-list__item-secondary-action">
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="settings-do-delete">
<input type="checkbox" id="settings-do-delete" class="mdl-switch__input" />
</label>
</span>
</li>
<li class="lib-settings mdl-list__item" id="lib-settings-web-download">
<span class="mdl-list__item-primary-content">
Download original (download from Web; requires login)
</span>
<span class="mdl-list__item-secondary-action">
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="settings-web-download">
<input type="checkbox" id="settings-web-download" class="mdl-switch__input" />
</label>
</span>
</li>
</ul>
</div>
<div class="mdl-dialog__actions">
<button type="button" class="mdl-button" id="ok">Ok</button>
<button type="button" class="mdl-button" id="cancel">Cancel</button>
</div>
</dialog>
</body>
</html>