Fossil SCM

Added comment to timeline/ticket. Minor additions to AJAX test pages.

stephan 2011-09-23 12:46 UTC json
Commit de0b860f770141f5fe99eda8f03f6c51f3871e5b
--- ajax/index.html
+++ ajax/index.html
@@ -190,10 +190,13 @@
190190
<h1>You know, for sending raw JSON requests to Fossil...</h1>
191191
192192
If you're actually using this page, then you know what you're doing and don't
193193
need help text, hoverhelp, and a snazzy interface.
194194
195
+<br><br>
196
+See also: <a href='wiki-editor.html'>prototype wiki editor</a>.
197
+
195198
<h2>Request...</h2>
196199
197200
Path: <input type='text' size='40' id='textPath' value='/json/HAI'/>
198201
<input type='button' value='Send...' id='btnSend' onclick='TheApp.sendRequest()' /><br/>
199202
If the POST textarea is not empty then it will be posted with the request.
@@ -205,10 +208,11 @@
205208
<input type='button' value='whoami' onclick='TheApp.cgi.sendCommand("/json/whoami")' />
206209
<input type='button' value='cap' onclick='TheApp.cgi.sendCommand("/json/cap")' />
207210
<input type='button' value='branch/list' onclick='TheApp.cgi.sendCommand("/json/branch/list")' />
208211
<input type='button' value='timeline/ci' onclick='TheApp.cgi.sendCommand("/json/timeline/ci")' />
209212
<input type='button' value='timeline/wiki' onclick='TheApp.cgi.sendCommand("/json/timeline/wiki")' />
213
+<input type='button' value='timeline/ticket' onclick='TheApp.cgi.sendCommand("/json/timeline/ticket")' />
210214
<input type='button' value='wiki/list' onclick='TheApp.cgi.sendCommand("/json/wiki/list")' />
211215
<input type='button' value='wiki/get Fossil' onclick='TheApp.cgi.sendCommand("/json/wiki/get",{"page":"Fossil"})' />
212216
213217
<!--
214218
<input type='button' value='get whiki' onclick='TheApp.cgi.getPages("whiki")' />
215219
--- ajax/index.html
+++ ajax/index.html
@@ -190,10 +190,13 @@
190 <h1>You know, for sending raw JSON requests to Fossil...</h1>
191
192 If you're actually using this page, then you know what you're doing and don't
193 need help text, hoverhelp, and a snazzy interface.
194
 
 
 
195 <h2>Request...</h2>
196
197 Path: <input type='text' size='40' id='textPath' value='/json/HAI'/>
198 <input type='button' value='Send...' id='btnSend' onclick='TheApp.sendRequest()' /><br/>
199 If the POST textarea is not empty then it will be posted with the request.
@@ -205,10 +208,11 @@
205 <input type='button' value='whoami' onclick='TheApp.cgi.sendCommand("/json/whoami")' />
206 <input type='button' value='cap' onclick='TheApp.cgi.sendCommand("/json/cap")' />
207 <input type='button' value='branch/list' onclick='TheApp.cgi.sendCommand("/json/branch/list")' />
208 <input type='button' value='timeline/ci' onclick='TheApp.cgi.sendCommand("/json/timeline/ci")' />
209 <input type='button' value='timeline/wiki' onclick='TheApp.cgi.sendCommand("/json/timeline/wiki")' />
 
210 <input type='button' value='wiki/list' onclick='TheApp.cgi.sendCommand("/json/wiki/list")' />
211 <input type='button' value='wiki/get Fossil' onclick='TheApp.cgi.sendCommand("/json/wiki/get",{"page":"Fossil"})' />
212
213 <!--
214 <input type='button' value='get whiki' onclick='TheApp.cgi.getPages("whiki")' />
215
--- ajax/index.html
+++ ajax/index.html
@@ -190,10 +190,13 @@
190 <h1>You know, for sending raw JSON requests to Fossil...</h1>
191
192 If you're actually using this page, then you know what you're doing and don't
193 need help text, hoverhelp, and a snazzy interface.
194
195 <br><br>
196 See also: <a href='wiki-editor.html'>prototype wiki editor</a>.
197
198 <h2>Request...</h2>
199
200 Path: <input type='text' size='40' id='textPath' value='/json/HAI'/>
201 <input type='button' value='Send...' id='btnSend' onclick='TheApp.sendRequest()' /><br/>
202 If the POST textarea is not empty then it will be posted with the request.
@@ -205,10 +208,11 @@
208 <input type='button' value='whoami' onclick='TheApp.cgi.sendCommand("/json/whoami")' />
209 <input type='button' value='cap' onclick='TheApp.cgi.sendCommand("/json/cap")' />
210 <input type='button' value='branch/list' onclick='TheApp.cgi.sendCommand("/json/branch/list")' />
211 <input type='button' value='timeline/ci' onclick='TheApp.cgi.sendCommand("/json/timeline/ci")' />
212 <input type='button' value='timeline/wiki' onclick='TheApp.cgi.sendCommand("/json/timeline/wiki")' />
213 <input type='button' value='timeline/ticket' onclick='TheApp.cgi.sendCommand("/json/timeline/ticket")' />
214 <input type='button' value='wiki/list' onclick='TheApp.cgi.sendCommand("/json/wiki/list")' />
215 <input type='button' value='wiki/get Fossil' onclick='TheApp.cgi.sendCommand("/json/wiki/get",{"page":"Fossil"})' />
216
217 <!--
218 <input type='button' value='get whiki' onclick='TheApp.cgi.getPages("whiki")' />
219
--- ajax/wiki-editor.html
+++ ajax/wiki-editor.html
@@ -318,10 +318,13 @@
318318
319319
<body>
320320
<span id='ajaxNotification'></span>
321321
<h1>PROTOTYPE JSON-based Fossil Wiki Editor</h1>
322322
323
+See also: <a href='index.html'>main test page</a>.
324
+
325
+<br>
323326
<b>Login:</b>
324327
<br/>
325328
<input type='button' value='Anon. Login' onclick='TheApp.cgi.login()' />
326329
or:
327330
name:<input type='text' id='textUser' value='json-demo' size='12'/>
328331
--- ajax/wiki-editor.html
+++ ajax/wiki-editor.html
@@ -318,10 +318,13 @@
318
319 <body>
320 <span id='ajaxNotification'></span>
321 <h1>PROTOTYPE JSON-based Fossil Wiki Editor</h1>
322
 
 
 
323 <b>Login:</b>
324 <br/>
325 <input type='button' value='Anon. Login' onclick='TheApp.cgi.login()' />
326 or:
327 name:<input type='text' id='textUser' value='json-demo' size='12'/>
328
--- ajax/wiki-editor.html
+++ ajax/wiki-editor.html
@@ -318,10 +318,13 @@
318
319 <body>
320 <span id='ajaxNotification'></span>
321 <h1>PROTOTYPE JSON-based Fossil Wiki Editor</h1>
322
323 See also: <a href='index.html'>main test page</a>.
324
325 <br>
326 <b>Login:</b>
327 <br/>
328 <input type='button' value='Anon. Login' onclick='TheApp.cgi.login()' />
329 or:
330 name:<input type='text' id='textUser' value='json-demo' size='12'/>
331
+1
--- src/json.c
+++ src/json.c
@@ -2342,10 +2342,11 @@
23422342
" uuid AS uuid,"
23432343
" mtime AS timestamp,"
23442344
" timestampString AS timestampString,"
23452345
" user AS user,"
23462346
" eventType AS eventType,"
2347
+ " comment AS comment,"
23472348
" brief AS briefText"
23482349
" FROM json_timeline"
23492350
" ORDER BY sortId",
23502351
-1);
23512352
db_prepare(&q,blob_buffer(&sql));
23522353
--- src/json.c
+++ src/json.c
@@ -2342,10 +2342,11 @@
2342 " uuid AS uuid,"
2343 " mtime AS timestamp,"
2344 " timestampString AS timestampString,"
2345 " user AS user,"
2346 " eventType AS eventType,"
 
2347 " brief AS briefText"
2348 " FROM json_timeline"
2349 " ORDER BY sortId",
2350 -1);
2351 db_prepare(&q,blob_buffer(&sql));
2352
--- src/json.c
+++ src/json.c
@@ -2342,10 +2342,11 @@
2342 " uuid AS uuid,"
2343 " mtime AS timestamp,"
2344 " timestampString AS timestampString,"
2345 " user AS user,"
2346 " eventType AS eventType,"
2347 " comment AS comment,"
2348 " brief AS briefText"
2349 " FROM json_timeline"
2350 " ORDER BY sortId",
2351 -1);
2352 db_prepare(&q,blob_buffer(&sql));
2353

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button