-
Notifications
You must be signed in to change notification settings - Fork 9
/
home.xml
238 lines (238 loc) · 8.94 KB
/
home.xml
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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta charset="utf-8" />
<title>kcaldav: home</title>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/normalize/3.0.3/normalize.min.css" />
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/pure/0.6.0/pure-min.css" />
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css" />
<link rel="stylesheet" href="@HTDOCS@/style.css" />
<script src="@HTDOCS@/home.min.js"></script>
</head>
<body onload="load();">
<section id="loggedout" class="hide">
<p>
The nonce for this HTTP-authorised session has been deleted.
To complete your logout, you'll need to close the browser window to destroy your credentials.
</p>
</section>
<section id="loading">
<p>
<i class="fa fa-spin fa-spinner"></i> Loading <i>k</i>CalDAV...
</p>
</section>
<section id="loaded" class="hide">
<header>
<div>
<h1>
CalDAV
<span class="bigonly">Management</span>
</h1><nav>
<a href="#" onclick="logout();">logout</a>
</nav>
</div>
</header>
<article>
<p>
Welcome, <span class="kcalendar-field kcalendar-principal-name"></span>.
Your principal has <span class="kcalendar-field kcalendar-principal-quota-used"></span> used and <span
class="kcalendar-field kcalendar-principal-quota-avail"></span> available.
<span id="insecure">
This connection is <strong>not secure</strong>, so consider that your password hash is being sent in the clear!
</span>
</p>
<section>
<h2>
Your CalDAV Address
</h2>
<p>
Point your calendar client to this address.
</p>
<ul>
<li>
<span class="kcalendar-principal-uri"></span>
</li>
</ul>
<aside>
Note: some clients (e.g., <a href="https://www.mozilla.org/en-US/projects/calendar/">Lightning Calendar</a>) may
not be able to use this address.
Instead, you'll need to specify the full URL of each individual calendar.
</aside>
<h3>
Reverse CalDAV Proxies
</h3>
<p>
These principals have given you access to their calendars.
</p>
<ul class="kcalendar-principal-rproxies">
<li>
<span class="kcalendar-rproxy-uri"></span>
<span title="Read Access" class="kcalendar-rproxy-read"><i class="fa fa-search"></i></span>
<span title="Write Access" class="kcalendar-rproxy-write"><i class="fa fa-pencil"></i></span>
</li>
</ul>
<ul class="kcalendar-principal-norproxies">
<li>
<i>You have not been granted any proxies.</i>
</li>
</ul>
</section>
<section>
<h2>
Your CalDAV Calendars
</h2>
<ul class="kcalendar-principal-colns">
<li>
<a class="kcalendar-coln-uri"></a>
</li>
</ul>
<ul class="kcalendar-principal-nocolns">
<li>
<i>You have no calendars.</i>
</li>
</ul>
<p>
Add new calendar by specifying the file-system name.
This must conform to <a href="https://tools.ietf.org/html/rfc3986">RFC 3986, 3.3</a> and be less than 256 bytes in length.
</p>
<p class="newcoln-error error hide" id="newcoln-error-form">
Collection name must be a valid path component, or collection already exists.
</p>
<p class="newcoln-error error hide" id="newcoln-error-sys">
System failure when creating collection.
</p>
<form class="pure-form" action="@CGIURI@/newcoln.json" method="post" onsubmit="return(newcoln(this));">
<input name="path" type="text" required="required" />
<button id="newcoln-btn" type="submit" class="pure-button pure-button-primary">
<i class="fa fa-fw fa-folder-o"></i>
<span class="bigonly">Add</span>
</button>
<button id="newcoln-pbtn" type="submit" class="hide pure-button pure-button-primary">
<i class="fa fa-fw fa-spin fa-spinner"></i>
<span class="bigonly">Adding...</span>
</button>
</form>
</section>
<section>
<h2>
Your E-mail Address
</h2>
<p class="setemail-error error hide" id="setemail-error-form">
Malformed or missing e-mail address, or e-mail already exists.
</p>
<p class="setemail-error error hide" id="setemail-error-sys">
A system error occurred.
</p>
<form class="pure-form" action="@CGIURI@/setemail.json" method="post" onsubmit="return(setemail(this));">
<input class="kcalendar-principal-email" name="email" type="email"/>
<button id="setemail-btn" type="submit" class="pure-button pure-button-primary">
<i class="fa fa-fw fa-envelope-o"></i>
<span class="bigonly">Change</span>
</button>
<button id="setemail-pbtn" type="submit" class="hide pure-button pure-button-primary">
<i class="fa fa-fw fa-spin fa-spinner"></i>
<span class="bigonly">Changing...</span>
</button>
</form>
</section>
<section>
<h2>
Your Password
</h2>
<p>
Your password will be MD5-hashed before being passed to the server.
You'll be logged out if you change your password.
</p>
<p class="setpass-error error hide" id="setpass-error-form">
Password not hashed properly?
</p>
<p class="setpass-error error hide" id="setpass-error-sys">
A system error occurred.
</p>
<form class="pure-form" action="@CGIURI@/setpass.json" method="post" onsubmit="return(setpass(this));">
<input placeholder="Password" type="password" onkeyup="updateHash(this);" />
<button id="setpass-btn" type="submit" class="pure-button pure-button-primary">
<i class="fa fa-fw fa-lock"></i>
<span class="bigonly">Change</span>
</button>
<button id="setpass-pbtn" type="submit" class="hide pure-button pure-button-primary">
<i class="fa fa-fw fa-spin fa-spinner"></i>
<span class="bigonly">Changing...</span>
</button>
<span class="bigonly">
<input name="pass" id="password" type="text" readonly="readonly" />
</span>
</form>
</section>
<section>
<h2>
Your Proxies
</h2>
<ul class="kcalendar-principal-proxies">
<li>
<form class="kcalendar-proxy-delete" action="@CGIURI@/delproxy.json" method="post"
onsubmit="return(delproxy(this));" class="pure-form">
<span class="kcalendar-proxy-read"><i class="fa fa-search"></i></span>
<span class="kcalendar-proxy-write"><i class="fa fa-pencil"></i></span>
<a class="kcalendar-proxy-email"></a>
<input type="hidden" name="email" class="kcalendar-proxy-email-value" />
<button class="btn pure-button pure-button-primary" type="submit">
<i class="fa fa-fw fa-remove"></i>
Delete
</button>
<button class="pbtn hide pure-button pure-button-primary" type="button" disabled="disabled">
<i class="fa fa-fw fa-delete fa-spin fa-spinner"></i>
Delete
</button>
</form>
</li>
</ul>
<ul class="kcalendar-principal-noproxies">
<li>
<i>You have not granted any proxies.</i>
</li>
</ul>
<p>
Enter the e-mail address of a system user to grant them
<i class="fa fa-pencil"></i> read-write or
<i class="fa fa-search"></i> read-only proxy permissions.
(This is <q>delegation</q> in the terms of
<a href="https://github.com/apple/ccs-calendarserver/blob/master/doc/Extensions/caldav-proxy.txt">
caldav-proxy.txt</a>.)
If a proxy already exists for the principal, it is updated.
Otherwise it is created.
</p>
<p class="modproxy-error error hide" id="modproxy-error-form">
Requested user does not exist.
</p>
<p class="modproxy-error error hide" id="modproxy-error-sys">
A system error occurred.
</p>
<form id="modproxy" class="pure-form" action="@CGIURI@/modproxy.json" method="post" onsubmit="return(modproxy(this));">
<input placeholder="User" type="email" name="email" required="required" />
<label for="modproxy-read" class="pure-radio">
<i class="fa fa-search"></i>
<input id="modproxy-read" type="radio" name="bits" value="1" required="required" />
</label>
<label for="modproxy-write" class="pure-radio">
<i class="fa fa-pencil"></i>
<input id="modproxy-write" type="radio" name="bits" value="2" required="required" />
</label>
<button id="modproxy-btn" type="submit" class="pure-button pure-button-primary">
<i class="fa fa-fw fa-user"></i>
<span class="bigonly">Grant</span>
</button>
<button id="modproxy-pbtn" type="submit" class="hide pure-button pure-button-primary">
<i class="fa fa-fw fa-spin fa-spinner"></i>
<span class="bigonly">Granting...</span>
</button>
</form>
</section>
</article>
<footer>
<a href="https://kristaps.bsd.lv/kcaldav"><i>k</i>CalDAV</a> version @VERSION@
</footer>
</section>
</body>
</html>