git ssb

16+

Dominic / patchbay



Tree: d7221d981ca25931b54c37c514c78e9803027278

Files: d7221d981ca25931b54c37c514c78e9803027278 / modules_basic / avatar / avatar.js

865 bytesRaw
1
2exports.needs = {
3 avatar_name: 'first',
4 avatar_image: 'first',
5 avatar_link: 'first'
6}
7
8exports.gives = {
9 avatar: true,
10 avatar_image_name_link: true,
11 avatar_image_link: true,
12 avatar_name_link: true
13}
14
15exports.create = function (api) {
16 return {
17 avatar,
18 avatar_image_name_link,
19 avatar_image_link,
20 avatar_name_link
21 }
22
23 function avatar (author, classes) {
24 return exports.avatar_image_name_link(author, classes)
25 }
26
27 function avatar_image_name_link (author, classes) {
28 return api.avatar_link(author, [
29 api.avatar_image(author, classes),
30 api.avatar_name(author)
31 ])
32 }
33
34 function avatar_image_link (author, classes) {
35 return api.avatar_link(author, api.avatar_image(author, classes))
36 }
37
38 function avatar_name_link (author, classes) {
39 return api.avatar_link(author, api.avatar_name(author))
40 }
41}
42
43
44

Built with git-ssb-web