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,80 @@
1
+ .pln {
2
+ color: #ddd;
3
+ }
4
+
5
+ /* string content */
6
+ .str {
7
+ color: #61ce3c;
8
+ }
9
+
10
+ /* a keyword */
11
+ .kwd {
12
+ color: #fbde2d;
13
+ }
14
+
15
+ /* a comment */
16
+ .com {
17
+ color: #aeaeae;
18
+ }
19
+
20
+ /* a type name */
21
+ .typ {
22
+ color: #8da6ce;
23
+ }
24
+
25
+ /* a literal value */
26
+ .lit {
27
+ color: #fbde2d;
28
+ }
29
+
30
+ /* punctuation */
31
+ .pun {
32
+ color: #ddd;
33
+ }
34
+
35
+ /* lisp open bracket */
36
+ .opn {
37
+ color: #000000;
38
+ }
39
+
40
+ /* lisp close bracket */
41
+ .clo {
42
+ color: #000000;
43
+ }
44
+
45
+ /* a markup tag name */
46
+ .tag {
47
+ color: #8da6ce;
48
+ }
49
+
50
+ /* a markup attribute name */
51
+ .atn {
52
+ color: #fbde2d;
53
+ }
54
+
55
+ /* a markup attribute value */
56
+ .atv {
57
+ color: #ddd;
58
+ }
59
+
60
+ /* a declaration */
61
+ .dec {
62
+ color: #EF5050;
63
+ }
64
+
65
+ /* a variable name */
66
+ .var {
67
+ color: #c82829;
68
+ }
69
+
70
+ /* a function name */
71
+ .fun {
72
+ color: #4271ae;
73
+ }
74
+
75
+ /* Specify class=linenums on a pre to get line numbering */
76
+ ol.linenums {
77
+ margin-top: 0;
78
+ margin-bottom: 0;
79
+ padding-bottom: 2px;
80
+ }
@@ -0,0 +1,10 @@
1
+ <?js
2
+ var data = obj;
3
+ var self = this;
4
+ ?>
5
+
6
+ <?js if (data.augments && data.augments.length) { ?>
7
+ <ul><?js data.augments.forEach(function(a) { ?>
8
+ <li><?js= self.linkto(a, a) ?></li>
9
+ <?js }) ?></ul>
10
+ <?js } ?>
@@ -0,0 +1,203 @@
1
+ <?js
2
+ var self = this;
3
+ var isGlobalPage;
4
+
5
+ docs.forEach(function(doc, i) {
6
+ ?>
7
+
8
+ <?js
9
+ // we only need to check this once
10
+ if (typeof isGlobalPage === 'undefined') {
11
+ isGlobalPage = (doc.kind === 'globalobj');
12
+ }
13
+ ?>
14
+ <?js if (doc.kind === 'mainpage' || (doc.kind === 'package')) { ?>
15
+ <?js= self.partial('mainpage.tmpl', doc) ?>
16
+ <?js } else if (doc.kind === 'source') { ?>
17
+ <?js= self.partial('source.tmpl', doc) ?>
18
+ <?js } else { ?>
19
+
20
+ <section>
21
+
22
+ <header>
23
+ <?js if (!doc.longname || doc.kind !== 'module') { ?>
24
+ <h2><?js if (doc.ancestors && doc.ancestors.length) { ?>
25
+ <span class="ancestors"><?js= doc.ancestors.join('') ?></span>
26
+ <?js } ?>
27
+ <?js if (doc.kind === 'namespace') { ?>
28
+ Namespace
29
+ <?js } else { ?>
30
+ <?js= doc.name ?>
31
+ <?js } ?>
32
+ <?js if (doc.variation) { ?>
33
+ <sup class="variation"><?js= doc.variation ?></sup>
34
+ <?js } ?></h2>
35
+ <?js if (doc.classdesc) { ?>
36
+ <div class="class-description usertext"><?js= doc.classdesc ?></div>
37
+ <?js } ?>
38
+ <?js } else if (doc.kind === 'module' && doc.modules) { ?>
39
+ <?js doc.modules.forEach(function(module) { ?>
40
+ <?js if (module.classdesc) { ?>
41
+ <div class="class-description"><?js= module.classdesc ?></div>
42
+ <?js } ?>
43
+ <?js }) ?>
44
+ <?js } ?>
45
+ </header>
46
+
47
+ <article>
48
+ <?js if (!doc.hideconstructor) { ?>
49
+ <div class="container-overview">
50
+ <?js if (doc.kind === 'module' && doc.modules) { ?>
51
+ <?js if (doc.description) { ?>
52
+ <div class="description usertext"><?js= doc.description ?></div>
53
+ <?js } ?>
54
+
55
+ <?js doc.modules.forEach(function(module) { ?>
56
+ <?js= self.partial('method.tmpl', module) ?>
57
+ <?js }) ?>
58
+ <?js } else if (doc.kind === 'class') { ?>
59
+ <?js= self.partial('method.tmpl', doc) ?>
60
+ <?js } else if (doc.kind === 'namespace') { ?>
61
+ <?js= self.partial('namespace.tmpl', doc) ?>
62
+ <?js } else { ?>
63
+ <?js= self.partial('details.tmpl', doc) ?>
64
+
65
+ <?js if (doc.description) { ?>
66
+ <div class="description usertext"><?js= doc.description ?></div>
67
+ <?js } ?>
68
+
69
+ <?js if (doc.examples && doc.examples.length) { ?>
70
+ <h3>Example<?js= doc.examples.length > 1? 's':'' ?></h3>
71
+ <?js= self.partial('examples.tmpl', doc.examples) ?>
72
+ <?js } ?>
73
+ <?js } ?>
74
+ </div>
75
+ <?js } ?>
76
+
77
+ <?js if (doc.augments && doc.augments.length) { ?>
78
+ <h3 class="subsection-title">Extends</h3>
79
+
80
+ <?js= self.partial('augments.tmpl', doc) ?>
81
+ <?js } ?>
82
+
83
+ <?js if (doc.requires && doc.requires.length) { ?>
84
+ <h3 class="subsection-title">Requires</h3>
85
+
86
+ <ul><?js doc.requires.forEach(function(r) { ?>
87
+ <li><?js= self.linkto(r, r) ?></li>
88
+ <?js }); ?></ul>
89
+ <?js } ?>
90
+
91
+ <?js
92
+ var classes = self.find({kind: 'class', memberof: doc.longname});
93
+ if (!isGlobalPage && classes && classes.length) {
94
+ ?>
95
+ <h3 class="subsection-title">Classes</h3>
96
+
97
+ <dl><?js classes.forEach(function(c) { ?>
98
+ <dt><?js= self.linkto(c.longname, c.name) ?></dt>
99
+ <dd><?js if (c.summary) { ?><?js= c.summary ?><?js } ?></dd>
100
+ <?js }); ?></dl>
101
+ <?js } ?>
102
+
103
+ <?js
104
+ var interfaces = self.find({kind: 'interface', memberof: doc.longname});
105
+ if (!isGlobalPage && interfaces && interfaces.length) {
106
+ ?>
107
+ <h3 class="subsection-title">Interfaces</h3>
108
+
109
+ <dl><?js interfaces.forEach(function(i) { ?>
110
+ <dt><?js= self.linkto(i.longname, i.name) ?></dt>
111
+ <dd><?js if (i.summary) { ?><?js= i.summary ?><?js } ?></dd>
112
+ <?js }); ?></dl>
113
+ <?js } ?>
114
+
115
+ <?js
116
+ var mixins = self.find({kind: 'mixin', memberof: doc.longname});
117
+ if (!isGlobalPage && mixins && mixins.length) {
118
+ ?>
119
+ <h3 class="subsection-title">Mixins</h3>
120
+
121
+ <dl><?js mixins.forEach(function(m) { ?>
122
+ <dt><?js= self.linkto(m.longname, m.name) ?></dt>
123
+ <dd><?js if (m.summary) { ?><?js= m.summary ?><?js } ?></dd>
124
+ <?js }); ?></dl>
125
+ <?js } ?>
126
+
127
+ <?js
128
+ var namespaces = self.find({kind: 'namespace', memberof: doc.longname});
129
+ if (!isGlobalPage && namespaces && namespaces.length) {
130
+ ?>
131
+ <h3 class="subsection-title">Namespaces</h3>
132
+
133
+ <dl><?js namespaces.forEach(function(n) { ?>
134
+ <dt><?js= self.linkto(n.longname, n.name) ?></dt>
135
+ <dd><?js if (n.summary) { ?><?js= n.summary ?><?js } ?></dd>
136
+ <?js }); ?></dl>
137
+ <?js } ?>
138
+
139
+ <?js
140
+ var members = self.find({kind: 'member', memberof: isGlobalPage ? {isUndefined: true} : doc.longname});
141
+
142
+ // symbols that are assigned to module.exports are not globals, even though they're not a memberof anything
143
+ if (isGlobalPage && members && members.length && members.forEach) {
144
+ members = members.filter(function(m) {
145
+ return m.longname && m.longname.indexOf('module:') !== 0;
146
+ });
147
+ }
148
+ if (members && members.length && members.forEach) {
149
+ ?>
150
+ <h3 class="subsection-title">Members</h3>
151
+
152
+ <?js members.forEach(function(p) { ?>
153
+ <?js= self.partial('members.tmpl', p) ?>
154
+ <?js }); ?>
155
+ <?js } ?>
156
+
157
+ <?js
158
+ var methods = self.find({kind: 'function', memberof: isGlobalPage ? {isUndefined: true} : doc.longname});
159
+ if (methods && methods.length && methods.forEach) {
160
+ ?>
161
+ <h3 class="subsection-title">Methods</h3>
162
+
163
+ <?js methods.forEach(function(m) { ?>
164
+ <?js= self.partial('method.tmpl', m) ?>
165
+ <?js }); ?>
166
+ <?js } ?>
167
+
168
+ <?js
169
+ var typedefs = self.find({kind: 'typedef', memberof: isGlobalPage ? {isUndefined: true} : doc.longname});
170
+ if (typedefs && typedefs.length && typedefs.forEach) {
171
+ ?>
172
+ <h3 class="subsection-title">Type Definitions</h3>
173
+
174
+ <?js typedefs.forEach(function(e) {
175
+ if (e.signature) {
176
+ ?>
177
+ <?js= self.partial('method.tmpl', e) ?>
178
+ <?js
179
+ }
180
+ else {
181
+ ?>
182
+ <?js= self.partial('members.tmpl', e) ?>
183
+ <?js
184
+ }
185
+ }); ?>
186
+ <?js } ?>
187
+
188
+ <?js
189
+ var events = self.find({kind: 'event', memberof: isGlobalPage ? {isUndefined: true} : doc.longname});
190
+ if (events && events.length && events.forEach) {
191
+ ?>
192
+ <h3 class="subsection-title">Events</h3>
193
+
194
+ <?js events.forEach(function(e) { ?>
195
+ <?js= self.partial('method.tmpl', e) ?>
196
+ <?js }); ?>
197
+ <?js } ?>
198
+ </article>
199
+
200
+ </section>
201
+ <?js } ?>
202
+
203
+ <?js }); ?>
@@ -0,0 +1,152 @@
1
+ <?js
2
+ var data = obj;
3
+ var self = this;
4
+ var defaultObjectClass = '';
5
+
6
+ // Check if the default value is an object or array; if so, apply code highlighting
7
+ if (data.defaultvalue && (data.defaultvaluetype === 'object' || data.defaultvaluetype === 'array')) {
8
+ try {
9
+ var indentedValues = JSON.stringify(JSON.parse(data.defaultvalue), null, ' ');
10
+ data.defaultvalue = indentedValues;
11
+ } catch (e) {}
12
+ data.defaultvalue = "<pre class=\"prettyprint\"><code>" + data.defaultvalue + "</code></pre>";
13
+ defaultObjectClass = ' class="object-value"';
14
+ }
15
+ ?>
16
+
17
+ <dl class="details">
18
+ <?js if (data.description) {?>
19
+ <dt class="tag-description">Description:</dt>
20
+ <dd class="tag-description"><ul class="dummy"><li><?js= data.description ?></li></ul></dd>
21
+ <?js } ?>
22
+
23
+ <?js if (data.meta && self.outputSourceFiles) {?>
24
+ <dt class="tag-source">Source:</dt>
25
+ <dd class="tag-source"><ul class="dummy"><li>
26
+ <?js= self.linkto(meta.shortpath) ?>, <?js= self.linkto(meta.shortpath, 'line ' + meta.lineno, null, 'line' + meta.lineno) ?>
27
+ </li></ul></dd>
28
+ <?js } ?>
29
+
30
+ <?js if (data.version) {?>
31
+ <dt class="tag-version">Version:</dt>
32
+ <dd class="tag-version"><ul class="dummy"><li><?js= version ?></li></ul></dd>
33
+ <?js } ?>
34
+
35
+ <?js if (data.since) {?>
36
+ <dt class="tag-since">Since:</dt>
37
+ <dd class="tag-since"><ul class="dummy"><li><?js= since ?></li></ul></dd>
38
+ <?js } ?>
39
+
40
+ <?js if (data.inherited && data.inherits && !data.overrides) { ?>
41
+ <dt class="inherited-from">Inherited From:</dt>
42
+ <dd class="inherited-from"><ul class="dummy"><li>
43
+ <?js= this.linkto(data.inherits, this.htmlsafe(data.inherits)) ?>
44
+ </li></ul></dd>
45
+ <?js } ?>
46
+
47
+ <?js if (data.overrides) { ?>
48
+ <dt class="tag-overrides">Overrides:</dt>
49
+ <dd class="tag-overrides"><ul class="dummy"><li>
50
+ <?js= this.linkto(data.overrides, this.htmlsafe(data.overrides)) ?>
51
+ </li></ul></dd>
52
+ <?js } ?>
53
+
54
+ <?js if (data.implementations && data.implementations.length) { ?>
55
+ <dt class="implementations">Implementations:</dt>
56
+ <dd class="implementations"><ul>
57
+ <?js data.implementations.forEach(function(impl) { ?>
58
+ <li><?js= self.linkto(impl, self.htmlsafe(impl)) ?></li>
59
+ <?js }); ?>
60
+ </ul></dd>
61
+ <?js } ?>
62
+
63
+ <?js if (data.implements && data.implements.length) { ?>
64
+ <dt class="implements">Implements:</dt>
65
+ <dd class="implements"><ul>
66
+ <?js data.implements.forEach(function(impl) { ?>
67
+ <li><?js= self.linkto(impl, self.htmlsafe(impl)) ?></li>
68
+ <?js }); ?>
69
+ </ul></dd>
70
+ <?js } ?>
71
+
72
+ <?js if (data.mixes && data.mixes.length) { ?>
73
+ <dt class="mixes">Mixes In:</dt>
74
+
75
+ <dd class="mixes"><ul>
76
+ <?js data.mixes.forEach(function(a) { ?>
77
+ <li><?js= self.linkto(a, a) ?></li>
78
+ <?js }); ?>
79
+ </ul></dd>
80
+ <?js } ?>
81
+
82
+ <?js if (data.deprecated) { ?>
83
+ <dt class="important tag-deprecated">Deprecated:</dt><?js
84
+ if (data.deprecated === true) { ?><dd class="yes-def tag-deprecated"><ul class="dummy"><li>Yes</li></ul></dd><?js }
85
+ else { ?><dd><ul class="dummy"><li><?js= data.deprecated ?></li></ul></dd><?js }
86
+ ?>
87
+ <?js } ?>
88
+
89
+ <?js if (data.author && author.length) {?>
90
+ <dt class="tag-author">Author:</dt>
91
+ <dd class="tag-author">
92
+ <ul><?js author.forEach(function(a) { ?>
93
+ <li><?js= self.resolveAuthorLinks(a) ?></li>
94
+ <?js }); ?></ul>
95
+ </dd>
96
+ <?js } ?>
97
+
98
+ <?js if (data.copyright) {?>
99
+ <dt class="tag-copyright">Copyright:</dt>
100
+ <dd class="tag-copyright"><ul class="dummy"><li><?js= copyright ?></li></ul></dd>
101
+ <?js } ?>
102
+
103
+ <?js if (data.license) {?>
104
+ <dt class="tag-license">License:</dt>
105
+ <dd class="tag-license"><ul class="dummy"><li><?js= license ?></li></ul></dd>
106
+ <?js } ?>
107
+
108
+ <?js if (data.defaultvalue) {?>
109
+ <dt class="tag-default">Default Value:</dt>
110
+ <dd class="tag-default"><ul class="dummy">
111
+ <li<?js= defaultObjectClass ?>><?js= data.defaultvalue ?></li>
112
+ </ul></dd>
113
+ <?js } ?>
114
+
115
+ <?js if (data.tutorials && tutorials.length) {?>
116
+ <dt class="tag-tutorial">Tutorials:</dt>
117
+ <dd class="tag-tutorial">
118
+ <ul><?js tutorials.forEach(function(t) { ?>
119
+ <li><?js= self.tutoriallink(t) ?></li>
120
+ <?js }); ?></ul>
121
+ </dd>
122
+ <?js } ?>
123
+
124
+ <?js if (data.see && see.length) {?>
125
+ <dt class="tag-see">See:</dt>
126
+ <dd class="tag-see">
127
+ <ul><?js see.forEach(function(s) { ?>
128
+ <li><?js= self.linkto(s) ?></li>
129
+ <?js }); ?></ul>
130
+ </dd>
131
+ <?js } ?>
132
+
133
+ <?js if (data.todo && todo.length) {?>
134
+ <dt class="tag-todo">To Do:</dt>
135
+ <dd class="tag-todo">
136
+ <ul><?js todo.forEach(function(t) { ?>
137
+ <li><?js= t ?></li>
138
+ <?js }); ?></ul>
139
+ </dd>
140
+ <?js } ?>
141
+ </dl>
142
+
143
+ <?js
144
+ var properties = data.properties;
145
+ if (properties && properties.length && properties.forEach) {
146
+ ?>
147
+
148
+ <h5 class="subsection-title">Properties:</h5>
149
+
150
+ <?js= this.partial('properties.tmpl', data) ?>
151
+
152
+ <?js } ?>
@@ -0,0 +1,2 @@
1
+ <?js var data = obj; ?>
2
+ <pre><code><?js= data ?></code></pre>
@@ -0,0 +1,13 @@
1
+ <?js
2
+ var data = obj;
3
+ var self = this;
4
+
5
+ data.forEach(function(example) {
6
+ if (example.caption) {
7
+ ?>
8
+ <p class="code-caption"><?js= example.caption ?></p>
9
+ <?js } ?>
10
+ <pre class="prettyprint"><code><?js= self.htmlsafe(example.code) ?></code></pre>
11
+ <?js
12
+ });
13
+ ?>
@@ -0,0 +1,32 @@
1
+ <?js
2
+ var data = obj;
3
+ ?>
4
+ <?js if (data.description && data.type && data.type.names) { ?>
5
+ <dl>
6
+ <dt>
7
+ <div class="param-desc usertext">
8
+ <?js= data.description ?>
9
+ </div>
10
+ </dt>
11
+ <dd></dd>
12
+ <dt>
13
+ <dl class="param-type">
14
+ <dt>
15
+ Type
16
+ </dt>
17
+ <dd>
18
+ <?js= this.partial('type.tmpl', data.type.names) ?>
19
+ </dd>
20
+ </dl>
21
+ </dt>
22
+ <dd></dd>
23
+ </dl>
24
+ <?js } else { ?>
25
+ <div class="param-desc usertext">
26
+ <?js if (data.description) { ?>
27
+ <?js= data.description ?>
28
+ <?js } else if (data.type && data.type.names) { ?>
29
+ <?js= this.partial('type.tmpl', data.type.names) ?>
30
+ <?js } ?>
31
+ </div>
32
+ <?js } ?>
@@ -0,0 +1,102 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <?js if (!env.conf.docdash) { env.conf.docdash = {};} ?>
5
+ <meta charset="utf-8">
6
+ <title><?js= title ?> - <?js= ((env.conf.docdash.meta && env.conf.docdash.meta.title) || "Documentation") ?></title>
7
+ <?js if (env.conf.docdash.meta) { ?>
8
+ <?js if (env.conf.docdash.meta.description) { ?><meta name="description" content="<?js= env.conf.docdash.meta.description ?>" /><?js } ?>
9
+ <?js if (env.conf.docdash.meta.keyword) { ?>
10
+ <meta name="keywords" content="<?js= env.conf.docdash.meta.keyword ?>" />
11
+ <meta name="keyword" content="<?js= env.conf.docdash.meta.keyword ?>" />
12
+ <?js } ?>
13
+ <?js } ?>
14
+ <?js if (env.conf.docdash.openGraph) { ?>
15
+ <meta property="og:title" content="<?js= env.conf.docdash.openGraph.title ?>"/>
16
+ <meta property="og:type" content="<?js= env.conf.docdash.openGraph.type ?>"/>
17
+ <meta property="og:image" content="<?js= env.conf.docdash.openGraph.image ?>"/>
18
+ <?js if (env.conf.docdash.openGraph.site_name) { ?><meta property="og:site_name" content="<?js= env.conf.docdash.openGraph.site_name ?>"/><?js } ?>
19
+ <meta property="og:url" content="<?js= env.conf.docdash.openGraph.url ?>"/>
20
+ <?js } ?>
21
+ <script src="scripts/prettify/prettify.js"></script>
22
+ <script src="scripts/prettify/lang-css.js"></script>
23
+ <!--[if lt IE 9]>
24
+ <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
25
+ <![endif]-->
26
+ <link type="text/css" rel="stylesheet" href="styles/prettify.css">
27
+ <link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
28
+ <script src="scripts/nav.js" defer></script>
29
+ <?js if (env.conf.docdash.commonNav) { ?>
30
+ <script src="scripts/commonNav.js" defer></script>
31
+ <?js } ?>
32
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
33
+ </head>
34
+ <body>
35
+
36
+ <input type="checkbox" id="nav-trigger" class="nav-trigger" />
37
+ <label for="nav-trigger" class="navicon-button x">
38
+ <div class="navicon"></div>
39
+ </label>
40
+
41
+ <label for="nav-trigger" class="overlay"></label>
42
+
43
+ <nav <?js if (env.conf.docdash.wrap) { ?>class="wrap"<?js } ?>>
44
+ <?js if (env.conf.docdash.search) { ?>
45
+ <input type="text" id="nav-search" placeholder="Search" />
46
+ <?js } ?>
47
+ <?js if (!env.conf.docdash.commonNav) { ?>
48
+ <?js= this.nav ?>
49
+ <?js } ?>
50
+ </nav>
51
+
52
+ <div id="main">
53
+ <?js if (title != 'Home') { ?>
54
+ <h1 class="page-title"><?js= title ?></h1>
55
+ <?js } ?>
56
+
57
+ <?js= content ?>
58
+
59
+ <?js if (env.conf.docdash.disqus) { ?>
60
+ <div id="disqus_thread"></div>
61
+ <script>
62
+ (function() { // DON'T EDIT BELOW THIS LINE
63
+ var d = document, s = d.createElement('script');
64
+ s.src = '//<?js= env.conf.docdash.disqus ?>.disqus.com/embed.js';
65
+ s.setAttribute('data-timestamp', +new Date());
66
+ (d.head || d.body).appendChild(s);
67
+ })();
68
+ </script>
69
+ <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
70
+ <?js } ?>
71
+ </div>
72
+
73
+ <br class="clear">
74
+
75
+ <footer>
76
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc <?js= env.version.number ?></a><?js if(env.conf.templates && env.conf.templates.default && env.conf.templates.default.includeDate !== false) { ?> on <?js= (new Date()) ?><?js } ?> using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
77
+ </footer>
78
+
79
+ <script>prettyPrint();</script>
80
+ <script src="scripts/polyfill.js"></script>
81
+ <script src="scripts/linenumber.js"></script>
82
+ <?js if (env.conf.docdash.search) { ?>
83
+ <script src="scripts/search.js" defer></script>
84
+ <?js } ?>
85
+ <?js if (env.conf.docdash.collapse) { ?>
86
+ <script src="scripts/collapse.js" defer></script>
87
+ <?js } ?>
88
+ <?js if (env.conf.docdash.scripts && env.conf.docdash.scripts.length) {
89
+ for(var i = 0; i < env.conf.docdash.scripts.length; i++){
90
+ if (env.conf.docdash.scripts[i].indexOf(".css") != -1) {
91
+ ?>
92
+ <link type="text/css" rel="stylesheet" href="<?js= env.conf.docdash.scripts[i] ?>">
93
+ <?js
94
+ } else {
95
+ ?>
96
+ <script src="<?js= env.conf.docdash.scripts[i] ?>"></script>
97
+ <?js
98
+ }
99
+ }
100
+ } ?>
101
+ </body>
102
+ </html>
@@ -0,0 +1,15 @@
1
+ <?js
2
+ var data = obj;
3
+ var self = this;
4
+ ?>
5
+
6
+ <?js if (data.kind === 'package') { ?>
7
+ <section class="package">
8
+ <h3><?js= data.name ?> <?js= data.version ?></h3>
9
+ </section>
10
+ <?js } ?>
11
+ <?js if (data.readme) { ?>
12
+ <section class="readme usertext">
13
+ <article><?js= data.readme ?></article>
14
+ </section>
15
+ <?js } ?>
@@ -0,0 +1,38 @@
1
+ <?js
2
+ var data = obj;
3
+ var self = this;
4
+ ?>
5
+ <h4 class="name" id="<?js= id ?>"><?js= data.attribs + name + (data.signature ? data.signature : '') ?></h4>
6
+
7
+ <?js if (data.summary) { ?>
8
+ <p class="summary"><?js= summary ?></p>
9
+ <?js } ?>
10
+
11
+ <?js= this.partial('details.tmpl', data) ?>
12
+
13
+ <?js if (data.description) { ?>
14
+ <div class="description usertext">
15
+ <?js= data.description ?>
16
+ </div>
17
+ <?js } ?>
18
+
19
+ <?js if (data.type && data.type.names) {?>
20
+ <h5 class="h5-types">Type:</h5>
21
+ <ul>
22
+ <li>
23
+ <?js= self.partial('type.tmpl', data.type.names) ?>
24
+ </li>
25
+ </ul>
26
+ <?js } ?>
27
+
28
+ <?js if (data.fires && fires.length) { ?>
29
+ <h5 class="h5-fires">Fires:</h5>
30
+ <ul><?js fires.forEach(function(f) { ?>
31
+ <li><?js= self.linkto(f) ?></li>
32
+ <?js }); ?></ul>
33
+ <?js } ?>
34
+
35
+ <?js if (data.examples && examples.length) { ?>
36
+ <h5 class="h5-examples">Example<?js= examples.length > 1? 's':'' ?></h5>
37
+ <?js= this.partial('examples.tmpl', examples) ?>
38
+ <?js } ?>