git ssb

2+

cel / scuttlebot.io



Tree: 5018dc163eaf620159efec3f49b4bf2b2e286656

Files: 5018dc163eaf620159efec3f49b4bf2b2e286656 / tmpl / leftnav.part.js

6267 bytesRaw
1function item (current, path, label) {
2 var cls = ''
3 if (current == path)
4 cls = 'class="current"'
5 return `<li ${cls}><a href="${path}" title="${label}">${label}</a></li>`
6}
7
8module.exports['docs-basics'] = (c) => `<ul class="nav">
9 ${item(c, '/docs/basics/install-the-database.html', 'Install the database')}
10 ${item(c, '/docs/basics/open-a-client.html', 'Open a client (js only)')}
11 ${item(c, '/docs/basics/publish-a-message.html', 'Publish a message')}
12 ${item(c, '/docs/basics/read-your-log.html', 'Read your log')}
13 ${item(c, '/docs/basics/create-secondary-users.html', 'Create secondary users')}
14 ${item(c, '/docs/basics/encryption.html', 'Encrypt messages')}
15 ${item(c, '/docs/basics/sync-via-wifi.html', 'Sync via Wifi')}
16</ul>`
17
18module.exports['docs-social'] = (c) => `<ul class="nav">
19 ${item(c, '/docs/social/update-your-profile.html', 'Update your profile')}
20 ${item(c, '/docs/social/view-a-profile.html', 'View a profile')}
21 ${item(c, '/docs/social/follow-users.html', 'Follow users')}
22 ${item(c, '/docs/social/query-the-social-graph.html', 'Query the social graph')}
23 ${item(c, '/docs/social/join-a-pub.html', 'Join a Pub')}
24</ul>`
25
26module.exports['docs-advanced'] = (c) => `<ul class="nav">
27 ${item(c, '/docs/advanced/links.html', 'Links')}
28 ${item(c, '/docs/advanced/publish-a-file.html', 'Publish a file')}
29 ${item(c, '/docs/advanced/read-a-file.html', 'Read a file')}
30 ${item(c, '/docs/advanced/feed-send-time-sort.html', 'Feed (send time sort)')}
31 ${item(c, '/docs/advanced/feed-receive-time-sort.html', 'Feed (receive time sort)')}
32 ${item(c, '/docs/advanced/messages-by-type.html', 'Messages by type')}
33 ${item(c, '/docs/advanced/messages-by-user.html', 'Messages by user')}
34 ${item(c, '/docs/advanced/watch-for-messages.html', 'Watch for messages')}
35 ${item(c, '/docs/advanced/votes-on-a-message.html', 'Votes on a message')}
36 ${item(c, '/docs/advanced/user-files.html', 'User files')}
37 ${item(c, '/docs/advanced/links-between-users.html', 'Links between users')}
38 ${item(c, '/docs/advanced/post-threads.html', 'Post threads')}
39</ul>`
40
41module.exports['docs-message-types'] = (c) => `<ul class="nav">
42 ${item(c, '/docs/message-types/post.html', 'Post')}
43 ${item(c, '/docs/message-types/about.html', 'About')}
44 ${item(c, '/docs/message-types/contact.html', 'Contact')}
45 ${item(c, '/docs/message-types/vote.html', 'Vote')}
46 ${item(c, '/docs/message-types/pub.html', 'Pub')}
47 ${item(c, '/docs/message-types/custom-types.html', 'Custom Types')}
48</ul>`
49
50module.exports['docs-config'] = (c) => `<ul class="nav">
51 ${item(c, '/docs/config/configure-scuttlebot.html', 'Configure Scuttlebot')}
52 ${item(c, '/docs/config/create-a-pub.html', 'Create a Pub')}
53 ${item(c, '/docs/config/creating-test-databases.html', 'Creating test databases')}
54 ${item(c, '/docs/config/creating-test-users.html', 'Creating test users')}
55</ul>`
56
57module.exports['apis-scuttlebot'] = (c) => `<ul class="nav">
58 ${item(c, '/apis/scuttlebot/ssb.html', 'SSB')}
59 ${item(c, '/apis/scuttlebot/blobs.html', 'Blobs')}
60 ${item(c, '/apis/scuttlebot/block.html', 'Block')}
61 ${item(c, '/apis/scuttlebot/friends.html', 'Friends')}
62 ${item(c, '/apis/scuttlebot/gossip.html', 'Gossip')}
63 ${item(c, '/apis/scuttlebot/invite.html', 'Invite')}
64 ${item(c, '/apis/scuttlebot/private.html', 'Private')}
65 ${item(c, '/apis/scuttlebot/replicate.html', 'Replicate')}
66</ul>`
67
68module.exports['apis-modules'] = (c) => `<ul class="nav">
69 ${item(c, '/apis/modules/ssb-client.html', 'SSB-Client')}
70 ${item(c, '/apis/modules/ssb-feed.html', 'SSB-Feed')}
71 ${item(c, '/apis/modules/ssb-keys.html', 'SSB-Keys')}
72 ${item(c, '/apis/modules/ssb-ref.html', 'SSB-Ref')}
73 ${item(c, '/apis/modules/ssb-msgs.html', 'SSB-Msgs')}
74 ${item(c, '/apis/modules/ssb-msg-schemas.html', 'SSB-Msg-Schemas')}
75 ${item(c, '/apis/modules/ssb-markdown.html', 'SSB-Markdown')}
76 ${item(c, '/apis/modules/ssb-config.html', 'SSB-Config')}
77 ${item(c, '/apis/modules/secret-stack.html', 'Secret-Stack')}
78 ${item(c, '/apis/modules/muxrpc.html', 'MuxRPC')}
79 ${item(c, '/apis/modules/muxrpcli.html', 'MuxRPCCli')}
80 ${item(c, '/apis/modules/mdmanifest.html', 'MDManifest')}
81 ${item(c, '/apis/modules/graphmitter.html', 'Graphmitter')}
82</ul>`
83
84module.exports['apis-pull-stream'] = (c) => `<ul class="nav">
85 ${item(c, '/apis/pull-stream/pull-stream.html', 'Pull-Stream')}
86 ${item(c, '/apis/pull-stream/core-sources.html', 'Source Functions')}
87 ${item(c, '/apis/pull-stream/core-throughs.html', 'Through Functions')}
88 ${item(c, '/apis/pull-stream/core-sinks.html', 'Sink Functions')}
89 ${item(c, '/apis/pull-stream/pull-stream-to-stream.html', 'Pull-Stream-to-Stream')}
90 ${item(c, '/apis/pull-stream/stream-to-pull-stream.html', 'Stream-to-Pull-Stream')}
91 ${item(c, '/apis/pull-stream/pull-paramap.html', 'Pull-Paramap')}
92 ${item(c, '/apis/pull-stream/pull-cat.html', 'Pull-Cat')}
93 ${item(c, '/apis/pull-stream/pull-pushable.html', 'Pull-Pushable')}
94 ${item(c, '/apis/pull-stream/pull-notify.html', 'Pull-Notify')}
95 ${item(c, '/apis/pull-stream/pull-pause.html', 'Pull-Pause')}
96 ${item(c, '/apis/pull-stream/pull-timeout.html', 'Pull-Timeout')}
97 ${item(c, '/apis/pull-stream/pull-window.html', 'Pull-Window')}
98 ${item(c, '/apis/pull-stream/pull-otherwise.html', 'Pull-Otherwise')}
99 ${item(c, '/apis/pull-stream/pull-ws-server.html', 'Pull-WS-Server')}
100</ul>`
101
102module.exports['apis-community'] = (c) => `<ul class="nav">
103 ${item(c, '/apis/community/ssbify.html', 'SSBify')}
104 ${item(c, '/apis/community/git-ssb.html', 'Git-SSB')}
105 ${item(c, '/apis/community/ssb-notifier.html', 'SSB-Notifier')}
106 ${item(c, '/apis/community/patchwork-threads.html', 'Patchwork-Threads')}
107</ul>`
108
109module.exports['more-protocols'] = (c) => `<ul class="nav">
110 ${item(c, '/more/protocols/secure-scuttlebutt.html', 'Secure Scuttlebutt')}
111 ${item(c, '/more/protocols/secret-handshake.html', 'Secret Handshake')}
112 ${item(c, '/more/protocols/private-box.html', 'Private Box')}
113</ul>`
114
115module.exports['more-articles'] = (c) => `<ul class="nav">
116 ${item(c, '/more/articles/design-challenge-avoid-centralization-and-singletons.html', 'Design Challenge: Avoid Centralization and Singletons')}
117 ${item(c, '/more/articles/design-challenge-sybil-attack.html', 'Design Challenge: Sybil Attacks')}
118</ul>`

Built with git-ssb-web