git ssb

2+

cel / scuttlebot.io



Tree: 9e4b77aeb7181a93a9ee3ceb1c21d11841a35f57

Files: 9e4b77aeb7181a93a9ee3ceb1c21d11841a35f57 / tmpl / leftnav.part.js

3636 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.basics = (c) => `<ul class="nav">
9 ${item(c, '/basics/install-the-database.html', 'Install the database')}
10 ${item(c, '/basics/open-a-client.html', 'Open a client')}
11 ${item(c, '/basics/read-the-log.html', 'Read the log')}
12 ${item(c, '/basics/publish-a-message.html', 'Publish a message')}
13 ${item(c, '/basics/encryption.html', 'Encryption')}
14 ${item(c, '/basics/publish-a-file.html', 'Publish a file')}
15 ${item(c, '/basics/read-a-file.html', 'Read a file')}
16</ul>`
17
18module.exports.social = (c) => `<ul class="nav">
19 ${item(c, '/social/social-network.html', 'Social network')}
20 ${item(c, '/social/follow-users.html', 'Follow users')}
21 ${item(c, '/social/update-your-profile.html', 'Update your profile')}
22 ${item(c, '/social/query-the-social-graph.html', 'Query the social graph')}
23 ${item(c, '/social/join-a-pub.html', 'Join a Pub')}
24 ${item(c, '/social/create-a-pub.html', 'Create a Pub')}
25 ${item(c, '/social/invite-users-to-a-pub.html', 'Invite users to a Pub')}
26</ul>`
27
28module.exports.advanced = (c) => `<ul class="nav">
29 ${item(c, '/advanced/writing-applications.html', 'Writing applications')}
30 ${item(c, '/advanced/creating-test-users.html', 'Creating test users')}
31 ${item(c, '/advanced/creating-test-databases.html', 'Creating test databases')}
32 ${item(c, '/advanced/message-schemas.html', 'Message schemas')}
33 ${item(c, '/advanced/linking-messages.html', 'Linking messages')}
34 ${item(c, '/advanced/advanced-queries.html', 'Advanced queries')}
35 ${item(c, '/advanced/pull-streams.html', 'Pull streams')}
36 ${item(c, '/advanced/crdts.html', 'CRDTs')}
37 ${item(c, '/advanced/configure-scuttlebot.html', 'Configure Scuttlebot')}
38</ul>`
39
40module.exports.whitepapers = (c) => `<ul class="nav">
41 ${item(c, '/whitepapers/secure-scuttlebutt.html', 'Secure Scuttlebutt')}
42 ${item(c, '/whitepapers/secret-handshake.html', 'Secret Handshake')}
43 ${item(c, '/whitepapers/private-box.html', 'Private Box')}
44</ul>`
45
46module.exports.modules = (c) => `<ul class="nav">
47 ${item(c, '/modules/ssb-client.html', 'SSB-Client')}
48 ${item(c, '/modules/scuttlebot.html', 'Scuttlebot')}
49 ${item(c, '/modules/scuttlebot-blobs.html', 'Scuttlebot.Blobs')}
50 ${item(c, '/modules/scuttlebot-friends.html', 'Scuttlebot.Friends')}
51 ${item(c, '/modules/scuttlebot-gossip.html', 'Scuttlebot.Gossip')}
52 ${item(c, '/modules/scuttlebot-invite.html', 'Scuttlebot.Invite')}
53 ${item(c, '/modules/scuttlebot-private.html', 'Scuttlebot.Private')}
54 ${item(c, '/modules/scuttlebot-replicate.html', 'Scuttlebot.Replicate')}
55 ${item(c, '/modules/ssb-feed.html', 'SSB-Feed')}
56 ${item(c, '/modules/ssb-keys.html', 'SSB-Keys')}
57 ${item(c, '/modules/ssb-refs.html', 'SSB-Refs')}
58 ${item(c, '/modules/ssb-msgs.html', 'SSB-Msgs')}
59 ${item(c, '/modules/ssb-msg-schemas.html', 'SSB-Msg-Schemas')}
60</ul>`
61
62module.exports['guides-how-to-use-pull-streams'] = (c) => `<ul class="nav">
63 ${item(c, '/guides/how-to-use-pull-streams/intro.html', 'Intro')}
64</ul>`
65
66module.exports['guides-lets-write-a-file-sharing-app'] = (c) => `<ul class="nav">
67 ${item(c, '/guides/lets-write-a-file-sharing-app/intro.html', 'Intro')}
68</ul>`
69
70module.exports['guides-lets-write-a-private-messaging-app'] = (c) => `<ul class="nav">
71 ${item(c, '/guides/lets-write-a-private-messaging-app/intro.html', 'Intro')}
72</ul>`
73
74module.exports['guides-lets-write-a-todo-list-app'] = (c) => `<ul class="nav">
75 ${item(c, '/guides/lets-write-a-todo-list-app/intro.html', 'Intro')}
76</ul>`

Built with git-ssb-web