Files: 634a3e47dc6133cc55dae03d47dc86880af6282c / index.js
1299 bytesRaw
1 | var Tr = require('./translations') |
2 | |
3 | module.exports = function (sbot) { |
4 | return function (use) { |
5 | //view (and filtered views) on the raw log |
6 | use('public', require('./public')(sbot)) |
7 | use('public/menu', function (opts, apply, req) { |
8 | var tr = require('./translations')(req.cookies.lang) |
9 | return ['a', {href: '/patch/public'}, tr('Public')] |
10 | }) |
11 | |
12 | use('messages/post', require('./messages/post')(sbot)) |
13 | use('messages/vote', require('./messages/vote')(sbot)) |
14 | use.map('messages', 'post', 'messages/post') |
15 | use.map('messages', 'vote', 'messages/vote') |
16 | |
17 | use('names/post', require('./post-name')(sbot)) |
18 | |
19 | use.list('menu', 'public/menu') |
20 | use('thread', require('./thread')(sbot)) |
21 | use('private', require('./private')(sbot)) |
22 | use('private/menu', function (opts, apply, req) { |
23 | return ['a', {href: '/patch/private'}, Tr(req.cookies.lang)('Private')] |
24 | }) |
25 | |
26 | use.list('menu', 'private/menu') |
27 | use('likes', require('./likes')(sbot)), |
28 | use.list('extra', 'likes') |
29 | use('backlinks', require('./backlinks')(sbot)), |
30 | use.list('extra', 'backlinks') |
31 | use('friends', require('./friends')(sbot)) |
32 | use('messageLink', require('./message-link')(sbot)) |
33 | use('channelLink', require('./channel-link')(sbot)) |
34 | } |
35 | } |
36 |
Built with git-ssb-web