copious-mail 0.0.0-stage → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (182) hide show
  1. package/LICENSE +504 -0
  2. package/README.md +83 -2
  3. package/bin/index.js +345 -0
  4. package/client/copiousLogo.svg +123 -0
  5. package/client/hosted.html +5173 -0
  6. package/client/mail_styles.css +40 -0
  7. package/client/mikado.bundle.debug.js +1406 -0
  8. package/client/mikado.bundle.min.js +68 -0
  9. package/client/mikado.bundle.module.debug.js +1401 -0
  10. package/client/mikado.bundle.module.min.js +67 -0
  11. package/client/mikado.bundle.profiler.debug.js +1490 -0
  12. package/client/mikado.es5.debug.js +1995 -0
  13. package/client/mikado.es5.min.js +85 -0
  14. package/client/mikado.light.debug.js +535 -0
  15. package/client/mikado.light.min.js +29 -0
  16. package/client/mikado.light.module.debug.js +530 -0
  17. package/data/user_list.db +14 -0
  18. package/index.html +7242 -0
  19. package/index.js +5 -0
  20. package/jsconfig.json +32 -0
  21. package/lib/mail_repo_bridge_ops.js +1158 -0
  22. package/lib/utils.js +70 -0
  23. package/lib/websocket_con.js +248 -0
  24. package/mail_bridge.conf +10 -0
  25. package/package.json +41 -5
  26. package/svelte-src/App.svelte +2513 -0
  27. package/svelte-src/ContactGrid.svelte +98 -0
  28. package/svelte-src/FloatWindow.svelte +181 -0
  29. package/svelte-src/MessageDisplay.svelte +230 -0
  30. package/svelte-src/MessageEditor.svelte +664 -0
  31. package/svelte-src/MessageListEditor.svelte +133 -0
  32. package/svelte-src/Thing.svelte +190 -0
  33. package/svelte-src/ThingFull.svelte +117 -0
  34. package/svelte-src/ipfs_profile_proxy.js +923 -0
  35. package/svelte-src/main.js +10 -0
  36. package/svelte-src/search_box.js +69 -0
  37. package/svelte-src/utilities.js +180 -0
  38. package/test/c +28 -0
  39. package/test/copiousLogo.svg +123 -0
  40. package/test/index.html +4408 -0
  41. package/test/index.js +244 -0
  42. package/test/mail_styles.css +40 -0
  43. package/test/mikado.bundle.debug.js +1406 -0
  44. package/test/mikado.bundle.min.js +68 -0
  45. package/test/mikado.bundle.module.debug.js +1401 -0
  46. package/test/mikado.bundle.module.min.js +67 -0
  47. package/test/mikado.bundle.profiler.debug.js +1490 -0
  48. package/test/mikado.es5.debug.js +1995 -0
  49. package/test/mikado.es5.min.js +85 -0
  50. package/test/mikado.light.debug.js +535 -0
  51. package/test/mikado.light.min.js +29 -0
  52. package/test/mikado.light.module.debug.js +530 -0
  53. package/test/tpl/partial/attachment_edit.es5.js +1 -0
  54. package/test/tpl/partial/attachment_edit.html +5 -0
  55. package/test/tpl/partial/attachment_edit.js +1 -0
  56. package/test/tpl/partial/attachment_view.es5.js +1 -0
  57. package/test/tpl/partial/attachment_view.html +1 -0
  58. package/test/tpl/partial/attachment_view.js +1 -0
  59. package/test/tpl/partial/contact_list.es5.js +1 -0
  60. package/test/tpl/partial/contact_list.html +9 -0
  61. package/test/tpl/partial/contact_list.js +1 -0
  62. package/test/tpl/partial/draft_list.es5.js +1 -0
  63. package/test/tpl/partial/draft_list.html +8 -0
  64. package/test/tpl/partial/draft_list.js +1 -0
  65. package/test/tpl/partial/inbox_list.es5.js +1 -0
  66. package/test/tpl/partial/inbox_list.html +7 -0
  67. package/test/tpl/partial/inbox_list.js +1 -0
  68. package/test/tpl/partial/notify_list.es5.js +1 -0
  69. package/test/tpl/partial/notify_list.html +8 -0
  70. package/test/tpl/partial/notify_list.js +1 -0
  71. package/test/tpl/partial/sent_list.es5.js +1 -0
  72. package/test/tpl/partial/sent_list.html +7 -0
  73. package/test/tpl/partial/sent_list.js +1 -0
  74. package/test/tpl/partial/spam_list.es5.js +1 -0
  75. package/test/tpl/partial/spam_list.html +8 -0
  76. package/test/tpl/partial/spam_list.js +1 -0
  77. package/test/tpl/partial/trash_list.es5.js +1 -0
  78. package/test/tpl/partial/trash_list.html +7 -0
  79. package/test/tpl/partial/trash_list.js +1 -0
  80. package/test/tpl/partial/user.es5.js +1 -0
  81. package/test/tpl/partial/user.html +18 -0
  82. package/test/tpl/partial/user.js +1 -0
  83. package/tools/jsdoc.conf +47 -0
  84. package/tools/templates/docdash/publish.js +843 -0
  85. package/tools/templates/docdash/static/fonts/Montserrat/Montserrat-Bold.eot +0 -0
  86. package/tools/templates/docdash/static/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
  87. package/tools/templates/docdash/static/fonts/Montserrat/Montserrat-Bold.woff +0 -0
  88. package/tools/templates/docdash/static/fonts/Montserrat/Montserrat-Bold.woff2 +0 -0
  89. package/tools/templates/docdash/static/fonts/Montserrat/Montserrat-Regular.eot +0 -0
  90. package/tools/templates/docdash/static/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
  91. package/tools/templates/docdash/static/fonts/Montserrat/Montserrat-Regular.woff +0 -0
  92. package/tools/templates/docdash/static/fonts/Montserrat/Montserrat-Regular.woff2 +0 -0
  93. package/tools/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
  94. package/tools/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +978 -0
  95. package/tools/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
  96. package/tools/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
  97. package/tools/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
  98. package/tools/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
  99. package/tools/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +1049 -0
  100. package/tools/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
  101. package/tools/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
  102. package/tools/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
  103. package/tools/templates/docdash/static/scripts/collapse.js +67 -0
  104. package/tools/templates/docdash/static/scripts/commonNav.js +28 -0
  105. package/tools/templates/docdash/static/scripts/linenumber.js +25 -0
  106. package/tools/templates/docdash/static/scripts/nav.js +12 -0
  107. package/tools/templates/docdash/static/scripts/polyfill.js +4 -0
  108. package/tools/templates/docdash/static/scripts/prettify/Apache-License-2.0.txt +202 -0
  109. package/tools/templates/docdash/static/scripts/prettify/lang-css.js +2 -0
  110. package/tools/templates/docdash/static/scripts/prettify/prettify.js +28 -0
  111. package/tools/templates/docdash/static/scripts/search.js +99 -0
  112. package/tools/templates/docdash/static/styles/jsdoc.css +803 -0
  113. package/tools/templates/docdash/static/styles/prettify.css +80 -0
  114. package/tools/templates/docdash/tmpl/augments.tmpl +10 -0
  115. package/tools/templates/docdash/tmpl/container.tmpl +203 -0
  116. package/tools/templates/docdash/tmpl/details.tmpl +152 -0
  117. package/tools/templates/docdash/tmpl/example.tmpl +2 -0
  118. package/tools/templates/docdash/tmpl/examples.tmpl +13 -0
  119. package/tools/templates/docdash/tmpl/exceptions.tmpl +32 -0
  120. package/tools/templates/docdash/tmpl/layout.tmpl +102 -0
  121. package/tools/templates/docdash/tmpl/mainpage.tmpl +15 -0
  122. package/tools/templates/docdash/tmpl/members.tmpl +38 -0
  123. package/tools/templates/docdash/tmpl/method.tmpl +132 -0
  124. package/tools/templates/docdash/tmpl/modifies.tmpl +14 -0
  125. package/tools/templates/docdash/tmpl/namespace.tmpl +133 -0
  126. package/tools/templates/docdash/tmpl/params.tmpl +132 -0
  127. package/tools/templates/docdash/tmpl/properties.tmpl +107 -0
  128. package/tools/templates/docdash/tmpl/returns.tmpl +19 -0
  129. package/tools/templates/docdash/tmpl/source.tmpl +8 -0
  130. package/tools/templates/docdash/tmpl/tutorial.tmpl +19 -0
  131. package/tools/templates/docdash/tmpl/type.tmpl +26 -0
  132. package/tools/templates/templates/docdash/publish.js +843 -0
  133. package/tools/templates/templates/docdash/static/fonts/Montserrat/Montserrat-Bold.eot +0 -0
  134. package/tools/templates/templates/docdash/static/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
  135. package/tools/templates/templates/docdash/static/fonts/Montserrat/Montserrat-Bold.woff +0 -0
  136. package/tools/templates/templates/docdash/static/fonts/Montserrat/Montserrat-Bold.woff2 +0 -0
  137. package/tools/templates/templates/docdash/static/fonts/Montserrat/Montserrat-Regular.eot +0 -0
  138. package/tools/templates/templates/docdash/static/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
  139. package/tools/templates/templates/docdash/static/fonts/Montserrat/Montserrat-Regular.woff +0 -0
  140. package/tools/templates/templates/docdash/static/fonts/Montserrat/Montserrat-Regular.woff2 +0 -0
  141. package/tools/templates/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
  142. package/tools/templates/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +978 -0
  143. package/tools/templates/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
  144. package/tools/templates/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
  145. package/tools/templates/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
  146. package/tools/templates/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
  147. package/tools/templates/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +1049 -0
  148. package/tools/templates/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
  149. package/tools/templates/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
  150. package/tools/templates/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
  151. package/tools/templates/templates/docdash/static/scripts/collapse.js +67 -0
  152. package/tools/templates/templates/docdash/static/scripts/commonNav.js +28 -0
  153. package/tools/templates/templates/docdash/static/scripts/linenumber.js +25 -0
  154. package/tools/templates/templates/docdash/static/scripts/nav.js +12 -0
  155. package/tools/templates/templates/docdash/static/scripts/polyfill.js +4 -0
  156. package/tools/templates/templates/docdash/static/scripts/prettify/Apache-License-2.0.txt +202 -0
  157. package/tools/templates/templates/docdash/static/scripts/prettify/lang-css.js +2 -0
  158. package/tools/templates/templates/docdash/static/scripts/prettify/prettify.js +28 -0
  159. package/tools/templates/templates/docdash/static/scripts/search.js +99 -0
  160. package/tools/templates/templates/docdash/static/styles/jsdoc.css +803 -0
  161. package/tools/templates/templates/docdash/static/styles/prettify.css +80 -0
  162. package/tools/templates/templates/docdash/tmpl/augments.tmpl +10 -0
  163. package/tools/templates/templates/docdash/tmpl/container.tmpl +203 -0
  164. package/tools/templates/templates/docdash/tmpl/details.tmpl +152 -0
  165. package/tools/templates/templates/docdash/tmpl/example.tmpl +2 -0
  166. package/tools/templates/templates/docdash/tmpl/examples.tmpl +13 -0
  167. package/tools/templates/templates/docdash/tmpl/exceptions.tmpl +32 -0
  168. package/tools/templates/templates/docdash/tmpl/layout.tmpl +102 -0
  169. package/tools/templates/templates/docdash/tmpl/mainpage.tmpl +15 -0
  170. package/tools/templates/templates/docdash/tmpl/members.tmpl +38 -0
  171. package/tools/templates/templates/docdash/tmpl/method.tmpl +132 -0
  172. package/tools/templates/templates/docdash/tmpl/modifies.tmpl +14 -0
  173. package/tools/templates/templates/docdash/tmpl/namespace.tmpl +133 -0
  174. package/tools/templates/templates/docdash/tmpl/params.tmpl +132 -0
  175. package/tools/templates/templates/docdash/tmpl/properties.tmpl +107 -0
  176. package/tools/templates/templates/docdash/tmpl/returns.tmpl +19 -0
  177. package/tools/templates/templates/docdash/tmpl/source.tmpl +8 -0
  178. package/tools/templates/templates/docdash/tmpl/tutorial.tmpl +19 -0
  179. package/tools/templates/templates/docdash/tmpl/type.tmpl +26 -0
  180. package/tpl/partial/user.es5.js +1 -0
  181. package/tpl/partial/user.html +10 -0
  182. package/tpl/partial/user.js +1 -0
@@ -0,0 +1,132 @@
1
+ <?js
2
+ var data = obj;
3
+ var self = this;
4
+ ?>
5
+ <?js if (data.kind !== 'module' && !data.hideconstructor) { ?>
6
+ <?js if (data.kind === 'class' && data.classdesc) { ?>
7
+ <h2>Constructor</h2>
8
+ <?js } ?>
9
+
10
+ <h4 class="name" id="<?js= id ?>"><?js= data.attribs ?><?js
11
+ if(kind === 'class' && name.indexOf('module:') === 0) {
12
+ print('new (require("' + name.slice(7) + '"))');
13
+ } else if(kind === 'class') {
14
+ print('new ' + name);
15
+ } else if(kind === 'event' && data.alias) {
16
+ print(data.alias);
17
+ } else {
18
+ print(name);
19
+ }
20
+ ?><?js= (data.signature || '') ?></h4>
21
+
22
+ <?js if (data.summary) { ?>
23
+ <p class="summary usertext"><?js= summary ?></p>
24
+ <?js } ?>
25
+ <?js } ?>
26
+
27
+ <?js= this.partial('details.tmpl', data) ?>
28
+
29
+ <?js if (data.augments && data.alias && data.alias.indexOf('module:') === 0) { ?>
30
+ <h5 class="h5-extends">Extends:</h5>
31
+ <?js= self.partial('augments.tmpl', data) ?>
32
+ <?js } ?>
33
+
34
+ <?js if (kind === 'event' && data.type && data.type.names) {?>
35
+ <h5 class="h5-types">Type:</h5>
36
+ <ul>
37
+ <li>
38
+ <?js= self.partial('type.tmpl', data.type.names) ?>
39
+ </li>
40
+ </ul>
41
+ <?js } ?>
42
+
43
+ <?js if (data['this']) { ?>
44
+ <h5 class="h5-this">This:</h5>
45
+ <ul><li><?js= this.linkto(data['this'], data['this']) ?></li></ul>
46
+ <?js } ?>
47
+
48
+ <?js if (data.examples && examples.length) { ?>
49
+ <h5 class="h5-examples">Example<?js= examples.length > 1? 's':'' ?></h5>
50
+ <?js= this.partial('examples.tmpl', examples) ?>
51
+ <?js } ?>
52
+
53
+ <?js if (data.params && params.length) { ?>
54
+ <h5 class="h5-parameters">Parameters:</h5>
55
+ <?js= this.partial('params.tmpl', params) ?>
56
+ <?js } ?>
57
+
58
+ <?js if (data.kind !== 'module' && data.requires && data.requires.length) { ?>
59
+ <h5 class="h5-requires">Requires:</h5>
60
+ <ul><?js data.requires.forEach(function(r) { ?>
61
+ <li><?js= self.linkto(r) ?></li>
62
+ <?js }); ?></ul>
63
+ <?js } ?>
64
+
65
+ <?js if (data.fires && fires.length) { ?>
66
+ <h5 class="h5-fires">Fires:</h5>
67
+ <ul><?js fires.forEach(function(f) { ?>
68
+ <li><?js= self.linkto(f) ?></li>
69
+ <?js }); ?></ul>
70
+ <?js } ?>
71
+
72
+ <?js if (data.listens && listens.length) { ?>
73
+ <h5 class="h5-listens">Listens to Events:</h5>
74
+ <ul><?js listens.forEach(function(f) { ?>
75
+ <li><?js= self.linkto(f) ?></li>
76
+ <?js }); ?></ul>
77
+ <?js } ?>
78
+
79
+ <?js if (data.listeners && listeners.length) { ?>
80
+ <h5 class="h5-listeners">Listeners of This Event:</h5>
81
+ <ul><?js listeners.forEach(function(f) { ?>
82
+ <li><?js= self.linkto(f) ?></li>
83
+ <?js }); ?></ul>
84
+ <?js } ?>
85
+
86
+ <?js if (data.modifies && modifies.length) {?>
87
+ <h5 class="h5-modifies">Modifies:</h5>
88
+ <?js if (modifies.length > 1) { ?><ul><?js
89
+ modifies.forEach(function(m) { ?>
90
+ <li><?js= self.partial('modifies.tmpl', m) ?></li>
91
+ <?js });
92
+ ?></ul><?js } else {
93
+ modifies.forEach(function(m) { ?>
94
+ <?js= self.partial('modifies.tmpl', m) ?>
95
+ <?js });
96
+ } } ?>
97
+
98
+ <?js if (data.exceptions && exceptions.length) { ?>
99
+ <h5 class="h5-throws">Throws:</h5>
100
+ <?js if (exceptions.length > 1) { ?><ul><?js
101
+ exceptions.forEach(function(r) { ?>
102
+ <li><?js= self.partial('exceptions.tmpl', r) ?></li>
103
+ <?js });
104
+ ?></ul><?js } else {
105
+ exceptions.forEach(function(r) { ?>
106
+ <?js= self.partial('exceptions.tmpl', r) ?>
107
+ <?js });
108
+ } } ?>
109
+
110
+ <?js if (data.returns && returns.length) { ?>
111
+ <h5 class="h5-returns">Returns:</h5>
112
+ <?js if (returns.length > 1) { ?><ul><?js
113
+ returns.forEach(function(r) { ?>
114
+ <li><?js= self.partial('returns.tmpl', r) ?></li>
115
+ <?js });
116
+ ?></ul><?js } else {
117
+ returns.forEach(function(r) { ?>
118
+ <?js= self.partial('returns.tmpl', r) ?>
119
+ <?js });
120
+ } } ?>
121
+
122
+ <?js if (data.yields && yields.length) { ?>
123
+ <h5 class="h5-yields">Yields:</h5>
124
+ <?js if (yields.length > 1) { ?><ul><?js
125
+ yields.forEach(function(r) { ?>
126
+ <li><?js= self.partial('returns.tmpl', r) ?></li>
127
+ <?js });
128
+ ?></ul><?js } else {
129
+ yields.forEach(function(r) { ?>
130
+ <?js= self.partial('returns.tmpl', r) ?>
131
+ <?js });
132
+ } } ?>
@@ -0,0 +1,14 @@
1
+ <?js
2
+ var data = obj || {};
3
+ ?>
4
+
5
+ <?js if (data.type && data.type.names) {?>
6
+ <dl>
7
+ <dt>
8
+ Type
9
+ </dt>
10
+ <dd>
11
+ <?js= this.partial('type.tmpl', data.type.names) ?>
12
+ </dd>
13
+ </dl>
14
+ <?js } ?>
@@ -0,0 +1,133 @@
1
+ <?js
2
+ var data = obj;
3
+ var self = this;
4
+ ?>
5
+
6
+ <?js if (data.kind !== 'module' && !data.hideconstructor) { ?>
7
+ <?js if (data.kind === 'class' && data.classdesc) { ?>
8
+ <h2>Constructor</h2>
9
+ <?js } ?>
10
+
11
+ <h4 class="name" id="<?js= id ?>"><?js= data.attribs ?><?js
12
+ if(kind === 'class' && name.indexOf('module:') === 0) {
13
+ print('new (require("' + name.slice(7) + '"))');
14
+ } else if(kind === 'class') {
15
+ print('new ' + name);
16
+ } else if(kind === 'event' && data.alias) {
17
+ print(data.alias);
18
+ } else {
19
+ print(name);
20
+ }
21
+ ?><?js= (data.signature || '') ?></h4>
22
+
23
+ <?js if (data.summary) { ?>
24
+ <p class="summary usertext"><?js= summary ?></p>
25
+ <?js } ?>
26
+ <?js } ?>
27
+
28
+ <?js= this.partial('details.tmpl', data) ?>
29
+
30
+ <?js if (data.augments && data.alias && data.alias.indexOf('module:') === 0) { ?>
31
+ <h5 class="h5-extends">Extends:</h5>
32
+ <?js= self.partial('augments.tmpl', data) ?>
33
+ <?js } ?>
34
+
35
+ <?js if (kind === 'event' && data.type && data.type.names) {?>
36
+ <h5 class="h5-types">Type:</h5>
37
+ <ul>
38
+ <li>
39
+ <?js= self.partial('type.tmpl', data.type.names) ?>
40
+ </li>
41
+ </ul>
42
+ <?js } ?>
43
+
44
+ <?js if (data['this']) { ?>
45
+ <h5 class="h5-this">This:</h5>
46
+ <ul><li><?js= this.linkto(data['this'], data['this']) ?></li></ul>
47
+ <?js } ?>
48
+
49
+ <?js if (data.examples && examples.length) { ?>
50
+ <h5 class="h5-examples">Example<?js= examples.length > 1? 's':'' ?></h5>
51
+ <?js= this.partial('examples.tmpl', examples) ?>
52
+ <?js } ?>
53
+
54
+ <?js if (data.params && params.length) { ?>
55
+ <h5 class="h5-parameters">Parameters:</h5>
56
+ <?js= this.partial('params.tmpl', params) ?>
57
+ <?js } ?>
58
+
59
+ <?js if (data.kind !== 'module' && data.requires && data.requires.length) { ?>
60
+ <h5 class="h5-requires">Requires:</h5>
61
+ <ul><?js data.requires.forEach(function(r) { ?>
62
+ <li><?js= self.linkto(r) ?></li>
63
+ <?js }); ?></ul>
64
+ <?js } ?>
65
+
66
+ <?js if (data.fires && fires.length) { ?>
67
+ <h5 class="h5-fires">Fires:</h5>
68
+ <ul><?js fires.forEach(function(f) { ?>
69
+ <li><?js= self.linkto(f) ?></li>
70
+ <?js }); ?></ul>
71
+ <?js } ?>
72
+
73
+ <?js if (data.listens && listens.length) { ?>
74
+ <h5 class="h5-listens">Listens to Events:</h5>
75
+ <ul><?js listens.forEach(function(f) { ?>
76
+ <li><?js= self.linkto(f) ?></li>
77
+ <?js }); ?></ul>
78
+ <?js } ?>
79
+
80
+ <?js if (data.listeners && listeners.length) { ?>
81
+ <h5 class="h5-rlistenerseturns">Listeners of This Event:</h5>
82
+ <ul><?js listeners.forEach(function(f) { ?>
83
+ <li><?js= self.linkto(f) ?></li>
84
+ <?js }); ?></ul>
85
+ <?js } ?>
86
+
87
+ <?js if (data.modifies && modifies.length) {?>
88
+ <h5 class="h5-modifies">Modifies:</h5>
89
+ <?js if (modifies.length > 1) { ?><ul><?js
90
+ modifies.forEach(function(m) { ?>
91
+ <li><?js= self.partial('modifies.tmpl', m) ?></li>
92
+ <?js });
93
+ ?></ul><?js } else {
94
+ modifies.forEach(function(m) { ?>
95
+ <?js= self.partial('modifies.tmpl', m) ?>
96
+ <?js });
97
+ } } ?>
98
+
99
+ <?js if (data.exceptions && exceptions.length) { ?>
100
+ <h5 class="h5-throws">Throws:</h5>
101
+ <?js if (exceptions.length > 1) { ?><ul><?js
102
+ exceptions.forEach(function(r) { ?>
103
+ <li><?js= self.partial('exceptions.tmpl', r) ?></li>
104
+ <?js });
105
+ ?></ul><?js } else {
106
+ exceptions.forEach(function(r) { ?>
107
+ <?js= self.partial('exceptions.tmpl', r) ?>
108
+ <?js });
109
+ } } ?>
110
+
111
+ <?js if (data.returns && returns.length) { ?>
112
+ <h5 class="h5-returns">Returns:</h5>
113
+ <?js if (returns.length > 1) { ?><ul><?js
114
+ returns.forEach(function(r) { ?>
115
+ <li><?js= self.partial('returns.tmpl', r) ?></li>
116
+ <?js });
117
+ ?></ul><?js } else {
118
+ returns.forEach(function(r) { ?>
119
+ <?js= self.partial('returns.tmpl', r) ?>
120
+ <?js });
121
+ } } ?>
122
+
123
+ <?js if (data.yields && yields.length) { ?>
124
+ <h5 class="h5-yields">Yields:</h5>
125
+ <?js if (yields.length > 1) { ?><ul><?js
126
+ yields.forEach(function(r) { ?>
127
+ <li><?js= self.partial('returns.tmpl', r) ?></li>
128
+ <?js });
129
+ ?></ul><?js } else {
130
+ yields.forEach(function(r) { ?>
131
+ <?js= self.partial('returns.tmpl', r) ?>
132
+ <?js });
133
+ } } ?>
@@ -0,0 +1,132 @@
1
+ <?js
2
+ var params = obj;
3
+
4
+ /* sort subparams under their parent params (like opts.classname) */
5
+ var parentParam = null;
6
+ params.forEach(function(param, i) {
7
+ var paramRegExp;
8
+
9
+ if (!param) {
10
+ return;
11
+ }
12
+
13
+ if (parentParam && parentParam.name && param.name) {
14
+ try {
15
+ paramRegExp = new RegExp('^(?:' + parentParam.name + '(?:\\[\\])*)\\.(.+)$');
16
+ }
17
+ catch (e) {
18
+ console.error("Problem parsing comment", e);
19
+ // there's probably a typo in the JSDoc comment that resulted in a weird
20
+ // parameter name
21
+ return;
22
+ }
23
+
24
+ if ( paramRegExp.test(param.name) ) {
25
+ param.name = RegExp.$1;
26
+ parentParam.subparams = parentParam.subparams || [];
27
+ parentParam.subparams.push(param);
28
+ params[i] = null;
29
+ }
30
+ else {
31
+ parentParam = param;
32
+ }
33
+ }
34
+ else {
35
+ parentParam = param;
36
+ }
37
+ });
38
+
39
+ /* determine if we need extra columns, "attributes" and "default" */
40
+ params.hasAttributes = false;
41
+ params.hasDefault = false;
42
+ params.hasName = false;
43
+
44
+ params.forEach(function(param) {
45
+ if (!param) { return; }
46
+
47
+ if (param.optional || param.nullable || param.variable) {
48
+ params.hasAttributes = true;
49
+ }
50
+
51
+ if (param.name) {
52
+ params.hasName = true;
53
+ }
54
+
55
+ if (typeof param.defaultvalue !== 'undefined') {
56
+ params.hasDefault = true;
57
+ }
58
+ });
59
+ ?>
60
+
61
+ <table class="params">
62
+ <thead>
63
+ <tr>
64
+ <?js if (params.hasName) {?>
65
+ <th>Name</th>
66
+ <?js } ?>
67
+
68
+ <th>Type</th>
69
+
70
+ <?js if (params.hasAttributes) {?>
71
+ <th>Attributes</th>
72
+ <?js } ?>
73
+
74
+ <?js if (params.hasDefault) {?>
75
+ <th>Default</th>
76
+ <?js } ?>
77
+
78
+ <th class="last">Description</th>
79
+ </tr>
80
+ </thead>
81
+
82
+ <tbody>
83
+ <?js
84
+ var self = this;
85
+ params.forEach(function(param) {
86
+ if (!param) { return; }
87
+ ?>
88
+
89
+ <tr>
90
+ <?js if (params.hasName) {?>
91
+ <td class="name"><code><?js= param.name ?></code></td>
92
+ <?js } ?>
93
+
94
+ <td class="type">
95
+ <?js if (param.type && param.type.names) {?>
96
+ <?js= self.partial('type.tmpl', param.type.names) ?>
97
+ <?js } ?>
98
+ </td>
99
+
100
+ <?js if (params.hasAttributes) {?>
101
+ <td class="attributes">
102
+ <?js if (param.optional) { ?>
103
+ &lt;optional><br>
104
+ <?js } ?>
105
+
106
+ <?js if (param.nullable) { ?>
107
+ &lt;nullable><br>
108
+ <?js } ?>
109
+
110
+ <?js if (param.variable) { ?>
111
+ &lt;repeatable><br>
112
+ <?js } ?>
113
+ </td>
114
+ <?js } ?>
115
+
116
+ <?js if (params.hasDefault) {?>
117
+ <td class="default">
118
+ <?js if (typeof param.defaultvalue !== 'undefined') { ?>
119
+ <code><?js= self.htmlsafe(param.defaultvalue) ?></code>
120
+ <?js } ?>
121
+ </td>
122
+ <?js } ?>
123
+
124
+ <td class="description last"><?js= param.description ?><?js if (param.subparams) { ?>
125
+ <h6>Properties</h6>
126
+ <?js= self.partial('params.tmpl', param.subparams) ?>
127
+ <?js } ?></td>
128
+ </tr>
129
+
130
+ <?js }); ?>
131
+ </tbody>
132
+ </table>
@@ -0,0 +1,107 @@
1
+ <?js
2
+ var data = obj;
3
+ var props = data.subprops || data.properties;
4
+ /* sort subprops under their parent props (like opts.classname) */
5
+ var parentProp = null;
6
+ props.forEach(function(prop, i) {
7
+ if (!prop) { return; }
8
+ if ( parentProp && prop.name && prop.name.indexOf(parentProp.name + '.') === 0 ) {
9
+ prop.name = prop.name.substr(parentProp.name.length+1);
10
+ parentProp.subprops = parentProp.subprops || [];
11
+ parentProp.subprops.push(prop);
12
+ props[i] = null;
13
+ }
14
+ else {
15
+ parentProp = prop;
16
+ }
17
+ });
18
+
19
+ /* determine if we need extra columns, "attributes" and "default" */
20
+ props.hasAttributes = false;
21
+ props.hasDefault = false;
22
+ props.hasName = false;
23
+
24
+ props.forEach(function(prop) {
25
+ if (!prop) { return; }
26
+
27
+ if (prop.optional || prop.nullable) {
28
+ props.hasAttributes = true;
29
+ }
30
+
31
+ if (prop.name) {
32
+ props.hasName = true;
33
+ }
34
+
35
+ if (typeof prop.defaultvalue !== 'undefined' && !data.isEnum) {
36
+ props.hasDefault = true;
37
+ }
38
+ });
39
+ ?>
40
+
41
+ <table class="props">
42
+ <thead>
43
+ <tr>
44
+ <?js if (props.hasName) {?>
45
+ <th>Name</th>
46
+ <?js } ?>
47
+
48
+ <th>Type</th>
49
+
50
+ <?js if (props.hasAttributes) {?>
51
+ <th>Attributes</th>
52
+ <?js } ?>
53
+
54
+ <?js if (props.hasDefault) {?>
55
+ <th>Default</th>
56
+ <?js } ?>
57
+
58
+ <th class="last">Description</th>
59
+ </tr>
60
+ </thead>
61
+
62
+ <tbody>
63
+ <?js
64
+ var self = this;
65
+ props.forEach(function(prop) {
66
+ if (!prop) { return; }
67
+ ?>
68
+
69
+ <tr>
70
+ <?js if (props.hasName) {?>
71
+ <td class="name"><code><?js= prop.name ?></code></td>
72
+ <?js } ?>
73
+
74
+ <td class="type">
75
+ <?js if (prop.type && prop.type.names) {?>
76
+ <?js= self.partial('type.tmpl', prop.type.names) ?>
77
+ <?js } ?>
78
+ </td>
79
+
80
+ <?js if (props.hasAttributes) {?>
81
+ <td class="attributes">
82
+ <?js if (prop.optional) { ?>
83
+ &lt;optional><br>
84
+ <?js } ?>
85
+
86
+ <?js if (prop.nullable) { ?>
87
+ &lt;nullable><br>
88
+ <?js } ?>
89
+ </td>
90
+ <?js } ?>
91
+
92
+ <?js if (props.hasDefault) {?>
93
+ <td class="default">
94
+ <?js if (typeof prop.defaultvalue !== 'undefined') { ?>
95
+ <code><?js= self.htmlsafe(prop.defaultvalue) ?></code>
96
+ <?js } ?>
97
+ </td>
98
+ <?js } ?>
99
+
100
+ <td class="description last"><?js= prop.description ?><?js if (prop.subprops) { ?>
101
+ <h6>Properties</h6><?js= self.partial('properties.tmpl', prop) ?>
102
+ <?js } ?></td>
103
+ </tr>
104
+
105
+ <?js }); ?>
106
+ </tbody>
107
+ </table>
@@ -0,0 +1,19 @@
1
+ <?js
2
+ var data = obj || {};
3
+ if (data.description) {
4
+ ?>
5
+ <div class="param-desc">
6
+ <?js= description ?>
7
+ </div>
8
+ <?js } ?>
9
+
10
+ <?js if (data.type && data.type.names) {?>
11
+ <dl class="param-type">
12
+ <dt>
13
+ Type
14
+ </dt>
15
+ <dd>
16
+ <?js= this.partial('type.tmpl', data.type.names) ?>
17
+ </dd>
18
+ </dl>
19
+ <?js } ?>
@@ -0,0 +1,8 @@
1
+ <?js
2
+ var data = obj;
3
+ ?>
4
+ <section>
5
+ <article>
6
+ <pre class="prettyprint source linenums"><code><?js= data.code ?></code></pre>
7
+ </article>
8
+ </section>
@@ -0,0 +1,19 @@
1
+ <section>
2
+
3
+ <header>
4
+ <?js if (children.length > 0) { ?>
5
+ <ul><?js
6
+ var self = this;
7
+ children.forEach(function(t) { ?>
8
+ <li><?js= self.tutoriallink(t.name) ?></li>
9
+ <?js }); ?></ul>
10
+ <?js } ?>
11
+
12
+ <h2><?js= header ?></h2>
13
+ </header>
14
+
15
+ <article>
16
+ <?js= content ?>
17
+ </article>
18
+
19
+ </section>
@@ -0,0 +1,26 @@
1
+ <?js
2
+ var data = obj;
3
+ var self = this;
4
+ data.forEach(function(name, i) {
5
+ if (env && env.conf && env.conf.docdash && env.conf.docdash.shortenTypes === true) {
6
+ var nameArr = name.split(/[\.~#]/);
7
+ var resolvedName = nameArr[nameArr.length - 1];
8
+ if (name.startsWith("Array.<")) {
9
+ if (nameArr.length === 2) {
10
+ resolvedName = name;
11
+ } else {
12
+ resolvedName = resolvedName.replace(">", "");
13
+ var longname = name.replace("Array.<","").replace(">", "");
14
+ }
15
+ }
16
+ } else {
17
+ var resolvedName = name;
18
+ }
19
+ var link = self.linkto(name, self.htmlsafe(resolvedName));
20
+ if (longname) {
21
+ link = link.replace(longname, resolvedName);
22
+ }
23
+ ?>
24
+ <span class="param-type"><?js= link?></span>
25
+ <?js if (i < data.length-1) { ?>|<?js } ?>
26
+ <?js }); ?>