wiki-server 0.21.0-rc1 → 0.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/default-data/pages/how-to-wiki +95 -623
- package/lib/defaultargs.coffee +3 -1
- package/lib/page.coffee +3 -0
- package/lib/search.coffee +40 -15
- package/lib/server.coffee +1 -1
- package/package.json +4 -4
- package/wiki-server-0.21.0-rc1.tgz +0 -0
|
@@ -149,623 +149,98 @@
|
|
|
149
149
|
],
|
|
150
150
|
"journal": [
|
|
151
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
|
-
"item": {
|
|
245
|
-
"type": "paragraph",
|
|
246
|
-
"id": "f2a7762b712791e5",
|
|
247
|
-
"text": "How to [[Add Plugins]] to interpret new kinds of data."
|
|
248
|
-
}
|
|
249
|
-
},
|
|
250
|
-
{
|
|
251
|
-
"item": {
|
|
252
|
-
"type": "factory",
|
|
253
|
-
"id": "fa3e22f363cd93d5"
|
|
254
|
-
},
|
|
255
|
-
"id": "fa3e22f363cd93d5",
|
|
256
|
-
"type": "add",
|
|
257
|
-
"after": "f2a7762b712791e5"
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
"type": "edit",
|
|
261
|
-
"id": "fa3e22f363cd93d5",
|
|
262
|
-
"item": {
|
|
263
|
-
"type": "paragraph",
|
|
264
|
-
"id": "fa3e22f363cd93d5",
|
|
265
|
-
"text": "How to [[Add Paragraphs]] or paragraph-like items to a story."
|
|
266
|
-
}
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
"type": "move",
|
|
270
|
-
"order": [
|
|
271
|
-
"7b56f22a4b9ee974",
|
|
272
|
-
"d88b9a104822256b",
|
|
273
|
-
"1012dd3528d4c788",
|
|
274
|
-
"fa3e22f363cd93d5",
|
|
275
|
-
"d03bcc1fd0278522",
|
|
276
|
-
"f2a7762b712791e5"
|
|
277
|
-
],
|
|
278
|
-
"id": "fa3e22f363cd93d5"
|
|
279
|
-
},
|
|
280
|
-
{
|
|
281
|
-
"item": {
|
|
282
|
-
"type": "factory",
|
|
283
|
-
"id": "d3a1bd6b0c947378"
|
|
284
|
-
},
|
|
285
|
-
"id": "d3a1bd6b0c947378",
|
|
286
|
-
"type": "add",
|
|
287
|
-
"after": "f2a7762b712791e5"
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
"type": "edit",
|
|
291
|
-
"id": "d3a1bd6b0c947378",
|
|
292
|
-
"item": {
|
|
293
|
-
"type": "paragraph",
|
|
294
|
-
"id": "d3a1bd6b0c947378",
|
|
295
|
-
"text": "<h3>How To Improve Wiki"
|
|
296
|
-
}
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
"type": "move",
|
|
300
|
-
"order": [
|
|
301
|
-
"7b56f22a4b9ee974",
|
|
302
|
-
"d88b9a104822256b",
|
|
303
|
-
"1012dd3528d4c788",
|
|
304
|
-
"fa3e22f363cd93d5",
|
|
305
|
-
"d03bcc1fd0278522",
|
|
306
|
-
"d3a1bd6b0c947378",
|
|
307
|
-
"f2a7762b712791e5"
|
|
308
|
-
],
|
|
309
|
-
"id": "d3a1bd6b0c947378"
|
|
310
|
-
},
|
|
311
|
-
{
|
|
312
|
-
"item": {
|
|
313
|
-
"type": "factory",
|
|
314
|
-
"id": "4cb87e0352907dfe"
|
|
315
|
-
},
|
|
316
|
-
"id": "4cb87e0352907dfe",
|
|
317
|
-
"type": "add",
|
|
318
|
-
"after": "f2a7762b712791e5"
|
|
319
|
-
},
|
|
320
|
-
{
|
|
321
|
-
"type": "edit",
|
|
322
|
-
"id": "4cb87e0352907dfe",
|
|
323
|
-
"item": {
|
|
324
|
-
"type": "paragraph",
|
|
325
|
-
"id": "4cb87e0352907dfe",
|
|
326
|
-
"text": "How to [[Add Pages]] by adding links to existing pages."
|
|
327
|
-
}
|
|
328
|
-
},
|
|
329
|
-
{
|
|
330
|
-
"type": "move",
|
|
331
|
-
"order": [
|
|
332
|
-
"7b56f22a4b9ee974",
|
|
333
|
-
"d88b9a104822256b",
|
|
334
|
-
"1012dd3528d4c788",
|
|
335
|
-
"fa3e22f363cd93d5",
|
|
336
|
-
"d03bcc1fd0278522",
|
|
337
|
-
"4cb87e0352907dfe",
|
|
338
|
-
"d3a1bd6b0c947378",
|
|
339
|
-
"f2a7762b712791e5"
|
|
340
|
-
],
|
|
341
|
-
"id": "4cb87e0352907dfe"
|
|
342
|
-
},
|
|
343
|
-
{
|
|
344
|
-
"type": "edit",
|
|
345
|
-
"id": "7b56f22a4b9ee974",
|
|
346
|
-
"item": {
|
|
347
|
-
"text": "Welcome to the [[Smallest Federated Wiki]]. This page was first drafted Sunday, June 26th, 2011, at [[Indie Web Camp]]. These pages describe editing conventions common among the federated sites.",
|
|
348
|
-
"id": "7b56f22a4b9ee974",
|
|
349
|
-
"type": "paragraph"
|
|
350
|
-
}
|
|
351
|
-
},
|
|
352
|
-
{
|
|
353
|
-
"type": "edit",
|
|
354
|
-
"id": "7b56f22a4b9ee974",
|
|
355
|
-
"item": {
|
|
356
|
-
"text": "Welcome to the [[Smallest Federated Wiki]]. This page was first drafted Sunday, June 26th, 2011. These pages describe editing conventions common among the federated sites.",
|
|
357
|
-
"id": "7b56f22a4b9ee974",
|
|
358
|
-
"type": "paragraph"
|
|
359
|
-
}
|
|
360
|
-
},
|
|
361
|
-
{
|
|
362
|
-
"type": "edit",
|
|
363
|
-
"id": "7b56f22a4b9ee974",
|
|
364
|
-
"item": {
|
|
365
|
-
"text": "Welcome to the [[Smallest Federated Wiki]]. This page was first drafted Sunday, June 26th, 2011. The pages on this particular site have been edited to describe how to get things done on many of the federated sites.",
|
|
366
|
-
"id": "7b56f22a4b9ee974",
|
|
367
|
-
"type": "paragraph"
|
|
368
|
-
}
|
|
369
|
-
},
|
|
370
|
-
{
|
|
371
|
-
"item": {
|
|
372
|
-
"type": "factory",
|
|
373
|
-
"id": "07ef6b0e53a77dd2"
|
|
374
|
-
},
|
|
375
|
-
"id": "07ef6b0e53a77dd2",
|
|
376
|
-
"type": "add",
|
|
377
|
-
"after": "f2a7762b712791e5"
|
|
378
|
-
},
|
|
379
|
-
{
|
|
380
|
-
"type": "move",
|
|
381
|
-
"order": [
|
|
382
|
-
"7b56f22a4b9ee974",
|
|
383
|
-
"07ef6b0e53a77dd2",
|
|
384
|
-
"d88b9a104822256b",
|
|
385
|
-
"1012dd3528d4c788",
|
|
386
|
-
"fa3e22f363cd93d5",
|
|
387
|
-
"d03bcc1fd0278522",
|
|
388
|
-
"4cb87e0352907dfe",
|
|
389
|
-
"d3a1bd6b0c947378",
|
|
390
|
-
"f2a7762b712791e5"
|
|
391
|
-
],
|
|
392
|
-
"id": "07ef6b0e53a77dd2"
|
|
393
|
-
},
|
|
394
|
-
{
|
|
395
|
-
"type": "edit",
|
|
396
|
-
"id": "07ef6b0e53a77dd2",
|
|
397
|
-
"item": {
|
|
398
|
-
"type": "paragraph",
|
|
399
|
-
"id": "07ef6b0e53a77dd2",
|
|
400
|
-
"text": "Read a little bit. Then move on to our [http://sandbox.fed.wiki.org Sandbox] and give your new knowledge a workout."
|
|
401
|
-
}
|
|
402
|
-
},
|
|
403
|
-
{
|
|
404
|
-
"type": "edit",
|
|
405
|
-
"id": "07ef6b0e53a77dd2",
|
|
406
|
-
"item": {
|
|
407
|
-
"type": "paragraph",
|
|
408
|
-
"id": "07ef6b0e53a77dd2",
|
|
409
|
-
"text": "Read a little bit. Then move on to our [http://sandbox.fed.wiki.org Sandbox] and give your new knowledge a workout. Still confused? Add something to our [[Frequently Asked Questions]]."
|
|
410
|
-
}
|
|
411
|
-
},
|
|
412
|
-
{
|
|
413
|
-
"item": {
|
|
414
|
-
"type": "factory",
|
|
415
|
-
"id": "c8fda36855c0da59"
|
|
416
|
-
},
|
|
417
|
-
"id": "c8fda36855c0da59",
|
|
418
|
-
"type": "add",
|
|
419
|
-
"after": "f2a7762b712791e5"
|
|
420
|
-
},
|
|
421
|
-
{
|
|
422
|
-
"type": "edit",
|
|
423
|
-
"id": "c8fda36855c0da59",
|
|
424
|
-
"item": {
|
|
425
|
-
"type": "paragraph",
|
|
426
|
-
"id": "c8fda36855c0da59",
|
|
427
|
-
"text": "How to [[Host a Site]] of your own."
|
|
428
|
-
}
|
|
429
|
-
},
|
|
430
|
-
{
|
|
431
|
-
"type": "move",
|
|
432
|
-
"order": [
|
|
433
|
-
"07ef6b0e53a77dd2",
|
|
434
|
-
"d88b9a104822256b",
|
|
435
|
-
"1012dd3528d4c788",
|
|
436
|
-
"fa3e22f363cd93d5",
|
|
437
|
-
"d03bcc1fd0278522",
|
|
438
|
-
"4cb87e0352907dfe",
|
|
439
|
-
"d3a1bd6b0c947378",
|
|
440
|
-
"c8fda36855c0da59",
|
|
441
|
-
"f2a7762b712791e5"
|
|
442
|
-
],
|
|
443
|
-
"id": "c8fda36855c0da59"
|
|
444
|
-
},
|
|
445
|
-
{
|
|
446
|
-
"type": "edit",
|
|
447
|
-
"id": "c8fda36855c0da59",
|
|
448
|
-
"item": {
|
|
449
|
-
"type": "paragraph",
|
|
450
|
-
"id": "c8fda36855c0da59",
|
|
451
|
-
"text": "How to [[Host a Site]] to share your work."
|
|
452
|
-
}
|
|
453
|
-
},
|
|
454
|
-
{
|
|
455
|
-
"item": {
|
|
456
|
-
"type": "factory",
|
|
457
|
-
"id": "243033dc6528eab1"
|
|
458
|
-
},
|
|
459
|
-
"id": "243033dc6528eab1",
|
|
460
|
-
"type": "add",
|
|
461
|
-
"after": "f2a7762b712791e5"
|
|
462
|
-
},
|
|
463
|
-
{
|
|
464
|
-
"type": "edit",
|
|
465
|
-
"id": "243033dc6528eab1",
|
|
466
|
-
"item": {
|
|
467
|
-
"type": "paragraph",
|
|
468
|
-
"id": "243033dc6528eab1",
|
|
469
|
-
"text": "<h3>How to Remove Content"
|
|
470
|
-
}
|
|
471
|
-
},
|
|
472
|
-
{
|
|
473
|
-
"type": "move",
|
|
474
|
-
"order": [
|
|
475
|
-
"07ef6b0e53a77dd2",
|
|
476
|
-
"d88b9a104822256b",
|
|
477
|
-
"1012dd3528d4c788",
|
|
478
|
-
"fa3e22f363cd93d5",
|
|
479
|
-
"d03bcc1fd0278522",
|
|
480
|
-
"4cb87e0352907dfe",
|
|
481
|
-
"243033dc6528eab1",
|
|
482
|
-
"d3a1bd6b0c947378",
|
|
483
|
-
"c8fda36855c0da59",
|
|
484
|
-
"f2a7762b712791e5"
|
|
485
|
-
],
|
|
486
|
-
"id": "243033dc6528eab1"
|
|
487
|
-
},
|
|
488
|
-
{
|
|
489
|
-
"item": {
|
|
490
|
-
"type": "factory",
|
|
491
|
-
"id": "73e9a16ca95be40e"
|
|
492
|
-
},
|
|
493
|
-
"id": "73e9a16ca95be40e",
|
|
494
|
-
"type": "add",
|
|
495
|
-
"after": "f2a7762b712791e5"
|
|
496
|
-
},
|
|
497
|
-
{
|
|
498
|
-
"type": "move",
|
|
499
|
-
"order": [
|
|
500
|
-
"07ef6b0e53a77dd2",
|
|
501
|
-
"d88b9a104822256b",
|
|
502
|
-
"1012dd3528d4c788",
|
|
503
|
-
"fa3e22f363cd93d5",
|
|
504
|
-
"d03bcc1fd0278522",
|
|
505
|
-
"4cb87e0352907dfe",
|
|
506
|
-
"243033dc6528eab1",
|
|
507
|
-
"73e9a16ca95be40e",
|
|
508
|
-
"d3a1bd6b0c947378",
|
|
509
|
-
"c8fda36855c0da59",
|
|
510
|
-
"f2a7762b712791e5"
|
|
511
|
-
],
|
|
512
|
-
"id": "73e9a16ca95be40e"
|
|
513
|
-
},
|
|
514
|
-
{
|
|
515
|
-
"type": "edit",
|
|
516
|
-
"id": "73e9a16ca95be40e",
|
|
517
|
-
"item": {
|
|
518
|
-
"type": "paragraph",
|
|
519
|
-
"id": "73e9a16ca95be40e",
|
|
520
|
-
"text": "How to [[Remove Paragraphs]] and some other editable items."
|
|
521
|
-
}
|
|
522
|
-
},
|
|
523
|
-
{
|
|
524
|
-
"item": {
|
|
525
|
-
"type": "factory",
|
|
526
|
-
"id": "c63dc8ff04ecdc31"
|
|
527
|
-
},
|
|
528
|
-
"id": "c63dc8ff04ecdc31",
|
|
529
|
-
"type": "add",
|
|
530
|
-
"after": "f2a7762b712791e5"
|
|
531
|
-
},
|
|
532
|
-
{
|
|
533
|
-
"type": "move",
|
|
534
|
-
"order": [
|
|
535
|
-
"07ef6b0e53a77dd2",
|
|
536
|
-
"d88b9a104822256b",
|
|
537
|
-
"1012dd3528d4c788",
|
|
538
|
-
"fa3e22f363cd93d5",
|
|
539
|
-
"d03bcc1fd0278522",
|
|
540
|
-
"4cb87e0352907dfe",
|
|
541
|
-
"243033dc6528eab1",
|
|
542
|
-
"73e9a16ca95be40e",
|
|
543
|
-
"c63dc8ff04ecdc31",
|
|
544
|
-
"d3a1bd6b0c947378",
|
|
545
|
-
"c8fda36855c0da59",
|
|
546
|
-
"f2a7762b712791e5"
|
|
547
|
-
],
|
|
548
|
-
"id": "c63dc8ff04ecdc31"
|
|
549
|
-
},
|
|
550
|
-
{
|
|
551
|
-
"type": "edit",
|
|
552
|
-
"id": "c63dc8ff04ecdc31",
|
|
553
|
-
"item": {
|
|
554
|
-
"type": "paragraph",
|
|
555
|
-
"id": "c63dc8ff04ecdc31",
|
|
556
|
-
"text": "How to [[Remove Pages]] or direct readers to other sites."
|
|
557
|
-
}
|
|
558
|
-
},
|
|
559
|
-
{
|
|
560
|
-
"item": {
|
|
561
|
-
"type": "factory",
|
|
562
|
-
"id": "208e32f178e91c99"
|
|
563
|
-
},
|
|
564
|
-
"id": "208e32f178e91c99",
|
|
565
|
-
"type": "add",
|
|
566
|
-
"after": "f2a7762b712791e5"
|
|
567
|
-
},
|
|
568
|
-
{
|
|
569
|
-
"type": "edit",
|
|
570
|
-
"id": "208e32f178e91c99",
|
|
571
|
-
"item": {
|
|
572
|
-
"type": "paragraph",
|
|
573
|
-
"id": "208e32f178e91c99",
|
|
574
|
-
"text": "How to [[Add Weird Characters]] to a paragraph."
|
|
575
|
-
}
|
|
576
|
-
},
|
|
577
|
-
{
|
|
578
|
-
"type": "move",
|
|
579
|
-
"order": [
|
|
580
|
-
"07ef6b0e53a77dd2",
|
|
581
|
-
"d88b9a104822256b",
|
|
582
|
-
"1012dd3528d4c788",
|
|
583
|
-
"208e32f178e91c99",
|
|
584
|
-
"fa3e22f363cd93d5",
|
|
585
|
-
"d03bcc1fd0278522",
|
|
586
|
-
"4cb87e0352907dfe",
|
|
587
|
-
"243033dc6528eab1",
|
|
588
|
-
"73e9a16ca95be40e",
|
|
589
|
-
"c63dc8ff04ecdc31",
|
|
590
|
-
"d3a1bd6b0c947378",
|
|
591
|
-
"c8fda36855c0da59",
|
|
592
|
-
"f2a7762b712791e5"
|
|
593
|
-
],
|
|
594
|
-
"id": "208e32f178e91c99"
|
|
595
|
-
},
|
|
596
|
-
{
|
|
597
|
-
"type": "edit",
|
|
598
|
-
"id": "07ef6b0e53a77dd2",
|
|
599
|
-
"item": {
|
|
600
|
-
"type": "paragraph",
|
|
601
|
-
"id": "07ef6b0e53a77dd2",
|
|
602
|
-
"text": "Read a little bit. Then move on to our [http://sandbox.fed.wiki.org Sandbox] and give your new knowledge a workout. Still confused? Look through our our [[Frequently Asked Questions]]."
|
|
603
|
-
}
|
|
604
|
-
},
|
|
605
|
-
{
|
|
606
|
-
"item": {
|
|
607
|
-
"type": "factory",
|
|
608
|
-
"id": "1db26c2e0c7ed126"
|
|
609
|
-
},
|
|
610
|
-
"id": "1db26c2e0c7ed126",
|
|
611
|
-
"type": "add",
|
|
612
|
-
"after": "f2a7762b712791e5"
|
|
613
|
-
},
|
|
614
|
-
{
|
|
615
|
-
"type": "edit",
|
|
616
|
-
"id": "1db26c2e0c7ed126",
|
|
617
|
-
"item": {
|
|
618
|
-
"type": "paragraph",
|
|
619
|
-
"id": "1db26c2e0c7ed126",
|
|
620
|
-
"text": "How to [[Add Formatting]] to a paragraph."
|
|
621
|
-
}
|
|
622
|
-
},
|
|
623
|
-
{
|
|
624
|
-
"type": "move",
|
|
625
|
-
"order": [
|
|
626
|
-
"07ef6b0e53a77dd2",
|
|
627
|
-
"d88b9a104822256b",
|
|
628
|
-
"1012dd3528d4c788",
|
|
629
|
-
"1db26c2e0c7ed126",
|
|
630
|
-
"208e32f178e91c99",
|
|
631
|
-
"fa3e22f363cd93d5",
|
|
632
|
-
"d03bcc1fd0278522",
|
|
633
|
-
"4cb87e0352907dfe",
|
|
634
|
-
"243033dc6528eab1",
|
|
635
|
-
"73e9a16ca95be40e",
|
|
636
|
-
"c63dc8ff04ecdc31",
|
|
637
|
-
"d3a1bd6b0c947378",
|
|
638
|
-
"c8fda36855c0da59",
|
|
639
|
-
"f2a7762b712791e5"
|
|
640
|
-
],
|
|
641
|
-
"id": "1db26c2e0c7ed126"
|
|
642
|
-
},
|
|
643
|
-
{
|
|
644
|
-
"item": {
|
|
645
|
-
"type": "factory",
|
|
646
|
-
"id": "8bb136a087a9710f"
|
|
647
|
-
},
|
|
648
|
-
"id": "8bb136a087a9710f",
|
|
649
|
-
"type": "add",
|
|
650
|
-
"after": "f2a7762b712791e5"
|
|
651
|
-
},
|
|
652
|
-
{
|
|
653
|
-
"type": "move",
|
|
654
|
-
"order": [
|
|
655
|
-
"07ef6b0e53a77dd2",
|
|
656
|
-
"d88b9a104822256b",
|
|
657
|
-
"1012dd3528d4c788",
|
|
658
|
-
"1db26c2e0c7ed126",
|
|
659
|
-
"208e32f178e91c99",
|
|
660
|
-
"fa3e22f363cd93d5",
|
|
661
|
-
"d03bcc1fd0278522",
|
|
662
|
-
"4cb87e0352907dfe",
|
|
663
|
-
"8bb136a087a9710f",
|
|
664
|
-
"243033dc6528eab1",
|
|
665
|
-
"73e9a16ca95be40e",
|
|
666
|
-
"c63dc8ff04ecdc31",
|
|
667
|
-
"d3a1bd6b0c947378",
|
|
668
|
-
"c8fda36855c0da59",
|
|
669
|
-
"f2a7762b712791e5"
|
|
670
|
-
],
|
|
671
|
-
"id": "8bb136a087a9710f"
|
|
672
|
-
},
|
|
673
|
-
{
|
|
674
|
-
"type": "edit",
|
|
675
|
-
"id": "8bb136a087a9710f",
|
|
676
|
-
"item": {
|
|
677
|
-
"type": "paragraph",
|
|
678
|
-
"id": "8bb136a087a9710f",
|
|
679
|
-
"text": "How to [[Import Documents]] from various sources."
|
|
680
|
-
}
|
|
681
|
-
},
|
|
682
|
-
{
|
|
683
|
-
"item": {
|
|
684
|
-
"type": "factory",
|
|
685
|
-
"id": "69fd0eba8fefe2aa"
|
|
686
|
-
},
|
|
687
|
-
"id": "69fd0eba8fefe2aa",
|
|
688
|
-
"type": "add",
|
|
689
|
-
"after": "f2a7762b712791e5"
|
|
690
|
-
},
|
|
691
|
-
{
|
|
692
|
-
"type": "edit",
|
|
693
|
-
"id": "69fd0eba8fefe2aa",
|
|
694
|
-
"item": {
|
|
695
|
-
"type": "paragraph",
|
|
696
|
-
"id": "69fd0eba8fefe2aa",
|
|
697
|
-
"text": "How to [[Add Links]] to paragraphs."
|
|
698
|
-
}
|
|
699
|
-
},
|
|
700
|
-
{
|
|
701
|
-
"type": "move",
|
|
702
|
-
"order": [
|
|
703
|
-
"07ef6b0e53a77dd2",
|
|
704
|
-
"d88b9a104822256b",
|
|
705
|
-
"1012dd3528d4c788",
|
|
706
|
-
"69fd0eba8fefe2aa",
|
|
707
|
-
"1db26c2e0c7ed126",
|
|
708
|
-
"208e32f178e91c99",
|
|
709
|
-
"fa3e22f363cd93d5",
|
|
710
|
-
"d03bcc1fd0278522",
|
|
711
|
-
"4cb87e0352907dfe",
|
|
712
|
-
"8bb136a087a9710f",
|
|
713
|
-
"243033dc6528eab1",
|
|
714
|
-
"73e9a16ca95be40e",
|
|
715
|
-
"c63dc8ff04ecdc31",
|
|
716
|
-
"d3a1bd6b0c947378",
|
|
717
|
-
"c8fda36855c0da59",
|
|
718
|
-
"f2a7762b712791e5"
|
|
719
|
-
],
|
|
720
|
-
"id": "69fd0eba8fefe2aa"
|
|
721
|
-
},
|
|
722
|
-
{
|
|
723
|
-
"type": "edit",
|
|
724
|
-
"id": "69fd0eba8fefe2aa",
|
|
725
|
-
"item": {
|
|
726
|
-
"type": "paragraph",
|
|
727
|
-
"id": "69fd0eba8fefe2aa",
|
|
728
|
-
"text": "How to [[Add Links]] to a paragraph."
|
|
729
|
-
}
|
|
730
|
-
},
|
|
731
|
-
{
|
|
732
|
-
"item": {
|
|
733
|
-
"type": "factory",
|
|
734
|
-
"id": "a2bb10949e81f2c6"
|
|
735
|
-
},
|
|
736
|
-
"id": "a2bb10949e81f2c6",
|
|
737
|
-
"type": "add"
|
|
738
|
-
},
|
|
739
|
-
{
|
|
740
|
-
"type": "move",
|
|
741
|
-
"order": [
|
|
742
|
-
"07ef6b0e53a77dd2",
|
|
743
|
-
"d88b9a104822256b",
|
|
744
|
-
"1012dd3528d4c788",
|
|
745
|
-
"69fd0eba8fefe2aa",
|
|
746
|
-
"1db26c2e0c7ed126",
|
|
747
|
-
"208e32f178e91c99",
|
|
748
|
-
"fa3e22f363cd93d5",
|
|
749
|
-
"d03bcc1fd0278522",
|
|
750
|
-
"4cb87e0352907dfe",
|
|
751
|
-
"8bb136a087a9710f",
|
|
752
|
-
"243033dc6528eab1",
|
|
753
|
-
"73e9a16ca95be40e",
|
|
754
|
-
"c63dc8ff04ecdc31",
|
|
755
|
-
"d3a1bd6b0c947378",
|
|
756
|
-
"a2bb10949e81f2c6",
|
|
757
|
-
"c8fda36855c0da59",
|
|
758
|
-
"f2a7762b712791e5"
|
|
759
|
-
]
|
|
760
|
-
},
|
|
761
|
-
{
|
|
762
|
-
"type": "edit",
|
|
763
|
-
"id": "a2bb10949e81f2c6",
|
|
764
|
-
"item": {
|
|
765
|
-
"type": "paragraph",
|
|
766
|
-
"id": "a2bb10949e81f2c6",
|
|
767
|
-
"text": "How to [[Review Changes]] to any page or site."
|
|
768
|
-
}
|
|
152
|
+
"type": "create",
|
|
153
|
+
"item": {
|
|
154
|
+
"title": "How To Wiki",
|
|
155
|
+
"story": [
|
|
156
|
+
{
|
|
157
|
+
"type": "paragraph",
|
|
158
|
+
"id": "07ef6b0e53a77dd2",
|
|
159
|
+
"text": "Read a little bit. Then move on to our [http://sandbox.fed.wiki.org Sandbox] and give your new knowledge a workout. Still confused? Look through our our [[Frequently Asked Questions]]."
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"type": "html",
|
|
163
|
+
"id": "d88b9a104822256b",
|
|
164
|
+
"text": "<h3>How To Add Content"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"type": "paragraph",
|
|
168
|
+
"id": "1012dd3528d4c788",
|
|
169
|
+
"text": "How to [[Add Text]] to an existing paragraph."
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"type": "paragraph",
|
|
173
|
+
"id": "69fd0eba8fefe2aa",
|
|
174
|
+
"text": "How to [[Add Links]] to a paragraph."
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"type": "paragraph",
|
|
178
|
+
"id": "1db26c2e0c7ed126",
|
|
179
|
+
"text": "How to [[Add Formatting]] to a paragraph."
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"type": "paragraph",
|
|
183
|
+
"id": "208e32f178e91c99",
|
|
184
|
+
"text": "How to [[Add Weird Characters]] to a paragraph."
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"type": "paragraph",
|
|
188
|
+
"id": "fa3e22f363cd93d5",
|
|
189
|
+
"text": "How to [[Add Paragraphs]] or paragraph-like items to a story."
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"type": "paragraph",
|
|
193
|
+
"id": "d03bcc1fd0278522",
|
|
194
|
+
"text": "How to [[Move Paragraphs]] within and between wiki pages."
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"type": "paragraph",
|
|
198
|
+
"id": "4cb87e0352907dfe",
|
|
199
|
+
"text": "How to [[Add Pages]] by adding links to existing pages."
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"type": "paragraph",
|
|
203
|
+
"id": "8bb136a087a9710f",
|
|
204
|
+
"text": "How to [[Import Documents]] from various sources."
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"type": "html",
|
|
208
|
+
"id": "243033dc6528eab1",
|
|
209
|
+
"text": "<h3>How to Remove Content"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"type": "paragraph",
|
|
213
|
+
"id": "73e9a16ca95be40e",
|
|
214
|
+
"text": "How to [[Remove Paragraphs]] and some other editable items."
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"type": "paragraph",
|
|
218
|
+
"id": "c63dc8ff04ecdc31",
|
|
219
|
+
"text": "How to [[Remove Pages]] or direct readers to other sites."
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"type": "html",
|
|
223
|
+
"id": "d3a1bd6b0c947378",
|
|
224
|
+
"text": "<h3>How To Improve Wiki"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"type": "paragraph",
|
|
228
|
+
"id": "a2bb10949e81f2c6",
|
|
229
|
+
"text": "How to [[Review Changes]] to any page or site."
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"type": "paragraph",
|
|
233
|
+
"id": "c8fda36855c0da59",
|
|
234
|
+
"text": "How to [[Host a Site]] to share your work."
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"type": "paragraph",
|
|
238
|
+
"id": "f2a7762b712791e5",
|
|
239
|
+
"text": "How to [[Add Plugins]] to interpret new kinds of data."
|
|
240
|
+
}
|
|
241
|
+
]
|
|
242
|
+
},
|
|
243
|
+
"date": 1344124800000
|
|
769
244
|
},
|
|
770
245
|
{
|
|
771
246
|
"type": "edit",
|
|
@@ -991,7 +466,8 @@
|
|
|
991
466
|
},
|
|
992
467
|
{
|
|
993
468
|
"type": "fork",
|
|
994
|
-
"site": "fed.wiki.org"
|
|
469
|
+
"site": "fed.wiki.org",
|
|
470
|
+
"date": 1358732351905
|
|
995
471
|
},
|
|
996
472
|
{
|
|
997
473
|
"type": "edit",
|
|
@@ -1004,10 +480,6 @@
|
|
|
1004
480
|
"site": "fed.wiki.org",
|
|
1005
481
|
"date": 1358732351906
|
|
1006
482
|
},
|
|
1007
|
-
{
|
|
1008
|
-
"type": "fork",
|
|
1009
|
-
"date": 1358732385734
|
|
1010
|
-
},
|
|
1011
483
|
{
|
|
1012
484
|
"item": {
|
|
1013
485
|
"type": "paragraph",
|
|
@@ -1420,7 +892,7 @@
|
|
|
1420
892
|
{
|
|
1421
893
|
"type": "fork",
|
|
1422
894
|
"site": "fed.wiki.org",
|
|
1423
|
-
"date":
|
|
895
|
+
"date": 1488473254245
|
|
1424
896
|
}
|
|
1425
897
|
]
|
|
1426
898
|
}
|
package/lib/defaultargs.coffee
CHANGED
|
@@ -28,6 +28,7 @@ module.exports = (argv) ->
|
|
|
28
28
|
argv.status or= path.join(argv.data, 'status')
|
|
29
29
|
argv.assets or= path.join(argv.data, 'assets')
|
|
30
30
|
argv.recycler or= path.join(argv.data, 'recycle')
|
|
31
|
+
argv.commons or= path.join(argv.data, 'commons')
|
|
31
32
|
argv.url or= 'http://localhost' + (if argv.port is 80 then '' else ':' + argv.port)
|
|
32
33
|
argv.id or= path.join(argv.status, 'owner.json')
|
|
33
34
|
argv.uploadLimit or= '5mb'
|
|
@@ -50,7 +51,7 @@ module.exports = (argv) ->
|
|
|
50
51
|
|
|
51
52
|
argv.security_type or= './security'
|
|
52
53
|
if argv.security_type is './security'
|
|
53
|
-
console.log "\n\
|
|
54
|
+
console.log "\n\nINFORMATION: Using default security module."
|
|
54
55
|
else
|
|
55
56
|
argv.security_type = 'wiki-security-' + argv.security_type
|
|
56
57
|
argv.security_legacy or= false
|
|
@@ -64,6 +65,7 @@ module.exports = (argv) ->
|
|
|
64
65
|
argv.status = path.resolve(argv.status)
|
|
65
66
|
argv.assets = path.resolve(argv.assets)
|
|
66
67
|
argv.recycler = path.resolve(argv.recycler)
|
|
68
|
+
argv.commons = path.resolve(argv.commons)
|
|
67
69
|
argv.id = path.resolve(argv.id)
|
|
68
70
|
|
|
69
71
|
if /node_modules/.test(argv.data)
|
package/lib/page.coffee
CHANGED
|
@@ -296,6 +296,9 @@ module.exports = exports = (argv) ->
|
|
|
296
296
|
while (match = linkRe.exec(currentItem.text)) != null
|
|
297
297
|
if not collaborativeLinks.has(asSlug(match[1]))
|
|
298
298
|
collaborativeLinks.set(asSlug(match[1]), currentItem.id)
|
|
299
|
+
if 'reference' == currentItem.type
|
|
300
|
+
if not collaborativeLinks.has(currentItem.slug)
|
|
301
|
+
collaborativeLinks.set(currentItem.slug, currentItem.id)
|
|
299
302
|
catch err
|
|
300
303
|
console.log "METADATA *** #{wikiName} Error extracting links from #{currentIndex} of #{JSON.stringify(array)}", err.message
|
|
301
304
|
collaborativeLinks
|
package/lib/search.coffee
CHANGED
|
@@ -37,9 +37,9 @@ module.exports = exports = (argv) ->
|
|
|
37
37
|
working = false
|
|
38
38
|
|
|
39
39
|
touch = (file, cb) ->
|
|
40
|
-
fs.stat
|
|
40
|
+
fs.stat file, (err, stats) ->
|
|
41
41
|
return cb() if err is null
|
|
42
|
-
fs.open
|
|
42
|
+
fs.open file, 'w', (err,fd) ->
|
|
43
43
|
cb(err) if err
|
|
44
44
|
fs.close fd, (err) ->
|
|
45
45
|
cb(err)
|
|
@@ -162,21 +162,23 @@ module.exports = exports = (argv) ->
|
|
|
162
162
|
itself.stop()
|
|
163
163
|
|
|
164
164
|
extractPageText = (pageText, currentItem, currentIndex, array) ->
|
|
165
|
+
# console.log('extractPageText', pageText, currentItem, currentIndex, array)
|
|
165
166
|
try
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
167
|
+
if currentItem.text?
|
|
168
|
+
switch currentItem.type
|
|
169
|
+
when 'paragraph'
|
|
170
|
+
pageText += ' ' + currentItem.text.replace /\[{2}|\[(?:[\S]+)|\]{1,2}/g, ''
|
|
171
|
+
when 'markdown'
|
|
172
|
+
# really need to extract text from the markdown, but for now just remove link brackets, urls...
|
|
173
|
+
pageText += ' ' + currentItem.text.replace /\[{2}|\[(?:[\S]+)|\]{1,2}|\\n/g, ' '
|
|
174
|
+
when 'html'
|
|
175
|
+
pageText += ' ' + currentItem.text.replace /<[^>]*>/g, ''
|
|
176
|
+
else
|
|
177
|
+
if currentItem.text?
|
|
178
|
+
for line in currentItem.text.split /\r\n?|\n/
|
|
179
|
+
pageText += ' ' + line.replace /\[{2}|\[(?:[\S]+)|\]{1,2}/g, '' unless line.match /^[A-Z]+[ ].*/
|
|
178
180
|
catch err
|
|
179
|
-
throw new Error("Error extracting text from #{currentIndex}")
|
|
181
|
+
throw new Error("Error extracting text from #{currentIndex}, #{err}")
|
|
180
182
|
pageText
|
|
181
183
|
|
|
182
184
|
|
|
@@ -230,6 +232,7 @@ module.exports = exports = (argv) ->
|
|
|
230
232
|
pageText = page.story.reduce( extractPageText, '')
|
|
231
233
|
catch err
|
|
232
234
|
console.log "SITE INDEX *** #{wikiName} reduce to extract text on #{slug} failed", err.message
|
|
235
|
+
# console.log "page", page
|
|
233
236
|
pageText = ""
|
|
234
237
|
siteIndex.add {
|
|
235
238
|
'id': slug
|
|
@@ -281,6 +284,28 @@ module.exports = exports = (argv) ->
|
|
|
281
284
|
itself.once 'indexed', ->
|
|
282
285
|
fs.unlink indexUpdateFlag, (err) ->
|
|
283
286
|
console.log "+++ SITE INDEX #{wikiName} : unable to delete update flag" if err
|
|
287
|
+
else
|
|
288
|
+
# not been updated, but is it the correct version?
|
|
289
|
+
fs.readFile siteIndexLoc, (err, data) ->
|
|
290
|
+
if !err
|
|
291
|
+
try
|
|
292
|
+
testIndex = JSON.parse(data)
|
|
293
|
+
catch err
|
|
294
|
+
testIndex = {}
|
|
295
|
+
if testIndex.serializationVersion != 2
|
|
296
|
+
console.log "+++ SITE INDEX #{wikiName} : updating to latest version."
|
|
297
|
+
itself.createIndex pagehandler
|
|
298
|
+
# remove the update flag once the index has been created
|
|
299
|
+
itself.once 'indexed', ->
|
|
300
|
+
fs.unlink indexUpdateFlag, (err) ->
|
|
301
|
+
console.log "+++ SITE INDEX #{wikiName} : unable to delete update flag" if err
|
|
302
|
+
else
|
|
303
|
+
console.log "+++ SITE INDEX #{wikiName} : error reading index - attempting creating"
|
|
304
|
+
itself.createIndex pagehandler
|
|
305
|
+
# remove the update flag once the index has been created
|
|
306
|
+
itself.once 'indexed', ->
|
|
307
|
+
fs.unlink indexUpdateFlag, (err) ->
|
|
308
|
+
console.log "+++ SITE INDEX #{wikiName} : unable to delete update flag" if err
|
|
284
309
|
else
|
|
285
310
|
# index does not exist, so create it
|
|
286
311
|
itself.createIndex pagehandler
|
package/lib/server.coffee
CHANGED
|
@@ -583,7 +583,7 @@ module.exports = exports = (argv) ->
|
|
|
583
583
|
remoteResource = pathParts.join('/')
|
|
584
584
|
requestURL = 'http://' + remoteHost + '/' + remoteResource
|
|
585
585
|
console.log("PROXY Request: ", requestURL)
|
|
586
|
-
if requestURL.endsWith('.json') or requestURL.endsWith('.png') or pathParts[0] is "plugin"
|
|
586
|
+
if requestURL.endsWith('.json') or requestURL.endsWith('.png') or requestURL.endsWith('.jpg') or pathParts[0] is "plugin"
|
|
587
587
|
requestOptions = {
|
|
588
588
|
host: remoteHost
|
|
589
589
|
port: 80
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wiki-server",
|
|
3
3
|
"description": "A Federated Wiki Server",
|
|
4
|
-
"version": "0.21.
|
|
4
|
+
"version": "0.21.1",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Ward Cunningham",
|
|
7
7
|
"email": "ward@c2.com",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"glob": "^7.1.4",
|
|
34
34
|
"lodash": "^4.17.19",
|
|
35
35
|
"method-override": "^2.3.10",
|
|
36
|
-
"minisearch": "^
|
|
36
|
+
"minisearch": "^5.0.0",
|
|
37
37
|
"mkdirp": "^0.5.5",
|
|
38
38
|
"morgan": "^1.9.1",
|
|
39
39
|
"node-fetch": "^2.6.1",
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"grunt-git-authors": "^3.2.0",
|
|
51
51
|
"grunt-mocha-test": "^0.13.2",
|
|
52
52
|
"grunt-retire": "^1.0.8",
|
|
53
|
-
"mocha": "^
|
|
53
|
+
"mocha": "^9.2.2",
|
|
54
54
|
"should": "^13.2.3",
|
|
55
55
|
"supertest": "^4.0.2",
|
|
56
|
-
"wiki-client": "^0.
|
|
56
|
+
"wiki-client": "^0.24.0",
|
|
57
57
|
"wiki-plugin-activity": "^0.4.6",
|
|
58
58
|
"wiki-plugin-video": "^0.2.10"
|
|
59
59
|
},
|
|
Binary file
|