git ssb

2+

cel / scuttlebot.io



Tree: 18ca2b47b86cd361c03c92c0682500c5fa00451f

Files: 18ca2b47b86cd361c03c92c0682500c5fa00451f / tmpl / leftnav.part.js

6476 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/get-current-version.html', 'Get current version')}
53 ${item(c, '/docs/config/get-active-config.html', 'Get active config')}
54 ${item(c, '/docs/config/create-a-pub.html', 'Create a Pub')}
55 ${item(c, '/docs/config/creating-test-databases.html', 'Creating test databases')}
56 ${item(c, '/docs/config/creating-test-users.html', 'Creating test users')}
57</ul>`
58
59module.exports['apis-scuttlebot'] = (c) => `<ul class="nav">
60 ${item(c, '/apis/scuttlebot/ssb.html', 'SSB')}
61 ${item(c, '/apis/scuttlebot/blobs.html', 'Blobs')}
62 ${item(c, '/apis/scuttlebot/block.html', 'Block')}
63 ${item(c, '/apis/scuttlebot/friends.html', 'Friends')}
64 ${item(c, '/apis/scuttlebot/gossip.html', 'Gossip')}
65 ${item(c, '/apis/scuttlebot/invite.html', 'Invite')}
66 ${item(c, '/apis/scuttlebot/private.html', 'Private')}
67 ${item(c, '/apis/scuttlebot/replicate.html', 'Replicate')}
68</ul>`
69
70module.exports['apis-modules'] = (c) => `<ul class="nav">
71 ${item(c, '/apis/modules/ssb-client.html', 'SSB-Client')}
72 ${item(c, '/apis/modules/ssb-feed.html', 'SSB-Feed')}
73 ${item(c, '/apis/modules/ssb-keys.html', 'SSB-Keys')}
74 ${item(c, '/apis/modules/ssb-ref.html', 'SSB-Ref')}
75 ${item(c, '/apis/modules/ssb-msgs.html', 'SSB-Msgs')}
76 ${item(c, '/apis/modules/ssb-msg-schemas.html', 'SSB-Msg-Schemas')}
77 ${item(c, '/apis/modules/ssb-markdown.html', 'SSB-Markdown')}
78 ${item(c, '/apis/modules/ssb-config.html', 'SSB-Config')}
79 ${item(c, '/apis/modules/ssb-party.html', 'SSB-Party')}
80 ${item(c, '/apis/modules/secret-stack.html', 'Secret-Stack')}
81 ${item(c, '/apis/modules/muxrpc.html', 'MuxRPC')}
82 ${item(c, '/apis/modules/muxrpcli.html', 'MuxRPCCli')}
83 ${item(c, '/apis/modules/mdmanifest.html', 'MDManifest')}
84 ${item(c, '/apis/modules/graphmitter.html', 'Graphmitter')}
85</ul>`
86
87module.exports['apis-pull-stream'] = (c) => `<ul class="nav">
88 ${item(c, '/apis/pull-stream/pull-stream.html', 'Pull-Stream')}
89 ${item(c, '/apis/pull-stream/core-sources.html', 'Source Functions')}
90 ${item(c, '/apis/pull-stream/core-throughs.html', 'Through Functions')}
91 ${item(c, '/apis/pull-stream/core-sinks.html', 'Sink Functions')}
92 ${item(c, '/apis/pull-stream/pull-stream-to-stream.html', 'Pull-Stream-to-Stream')}
93 ${item(c, '/apis/pull-stream/stream-to-pull-stream.html', 'Stream-to-Pull-Stream')}
94 ${item(c, '/apis/pull-stream/pull-paramap.html', 'Pull-Paramap')}
95 ${item(c, '/apis/pull-stream/pull-cat.html', 'Pull-Cat')}
96 ${item(c, '/apis/pull-stream/pull-pushable.html', 'Pull-Pushable')}
97 ${item(c, '/apis/pull-stream/pull-notify.html', 'Pull-Notify')}
98 ${item(c, '/apis/pull-stream/pull-pause.html', 'Pull-Pause')}
99 ${item(c, '/apis/pull-stream/pull-timeout.html', 'Pull-Timeout')}
100 ${item(c, '/apis/pull-stream/pull-window.html', 'Pull-Window')}
101 ${item(c, '/apis/pull-stream/pull-otherwise.html', 'Pull-Otherwise')}
102 ${item(c, '/apis/pull-stream/pull-ws-server.html', 'Pull-WS-Server')}
103</ul>`
104
105module.exports['apis-community'] = (c) => `<ul class="nav">
106 ${item(c, '/apis/community/ssbify.html', 'SSBify')}
107 ${item(c, '/apis/community/git-ssb.html', 'Git-SSB')}
108 ${item(c, '/apis/community/ssb-notifier.html', 'SSB-Notifier')}
109 ${item(c, '/apis/community/patchwork-threads.html', 'Patchwork-Threads')}
110</ul>`
111
112module.exports['more-protocols'] = (c) => `<ul class="nav">
113 ${item(c, '/more/protocols/secure-scuttlebutt.html', 'Secure Scuttlebutt')}
114 ${item(c, '/more/protocols/secret-handshake.html', 'Secret Handshake')}
115 ${item(c, '/more/protocols/private-box.html', 'Private Box')}
116</ul>`
117
118module.exports['more-articles'] = (c) => `<ul class="nav">
119 ${item(c, '/more/articles/design-challenge-avoid-centralization-and-singletons.html', 'Design Challenge: Avoid Centralization and Singletons')}
120 ${item(c, '/more/articles/design-challenge-sybil-attack.html', 'Design Challenge: Sybil Attacks')}
121</ul>`
122

Built with git-ssb-web