clean-jsdoc-theme 4.3.2 → 5.0.0-alpha.1

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 (86) hide show
  1. package/README.md +117 -625
  2. package/dist/publish.d.mts +218 -0
  3. package/dist/publish.d.ts +218 -0
  4. package/dist/publish.js +641 -0
  5. package/dist/publish.js.map +1 -0
  6. package/dist/publish.mjs +605 -0
  7. package/dist/publish.mjs.map +1 -0
  8. package/package.json +65 -55
  9. package/.eslintignore +0 -5
  10. package/.eslintrc.js +0 -3
  11. package/.github/ISSUE_TEMPLATE/bug_report.md +0 -43
  12. package/.github/ISSUE_TEMPLATE/feature_request.md +0 -27
  13. package/.github/dependabot.yml +0 -9
  14. package/.github/pull_request_template.md +0 -16
  15. package/.github/workflows/codeql.yml +0 -72
  16. package/.github/workflows/greetings.yml +0 -16
  17. package/.prettierignore +0 -2
  18. package/.prettierrc +0 -5
  19. package/.stylelintignore +0 -4
  20. package/.stylelintrc +0 -18
  21. package/.travis.yml +0 -30
  22. package/CHANGELOG.md +0 -260
  23. package/CODE_OF_CONDUCT.md +0 -76
  24. package/CODE_OF_CONDUCT_HINDI.md +0 -61
  25. package/CONTRIBUTING.md +0 -36
  26. package/LICENSE +0 -21
  27. package/SECURITY.md +0 -21
  28. package/clean-jsdoc-theme-defaults.js +0 -37
  29. package/clean-jsdoc-theme-helper.js +0 -186
  30. package/css-property-order-fix.js +0 -56
  31. package/helpers/Environment.html +0 -3
  32. package/helpers/down-arrow.js +0 -9
  33. package/jsdoc-config.json +0 -102
  34. package/minify.js +0 -72
  35. package/publish.js +0 -1110
  36. package/static/fonts/Inconsolata-Regular.ttf +0 -0
  37. package/static/fonts/OpenSans-Regular.ttf +0 -0
  38. package/static/fonts/WorkSans-Bold.ttf +0 -0
  39. package/static/scripts/core.js +0 -726
  40. package/static/scripts/core.min.js +0 -23
  41. package/static/scripts/resize.js +0 -90
  42. package/static/scripts/search.js +0 -265
  43. package/static/scripts/search.min.js +0 -6
  44. package/static/scripts/third-party/Apache-License-2.0.txt +0 -202
  45. package/static/scripts/third-party/fuse.js +0 -9
  46. package/static/scripts/third-party/hljs-line-num-original.js +0 -369
  47. package/static/scripts/third-party/hljs-line-num.js +0 -1
  48. package/static/scripts/third-party/hljs-original.js +0 -5171
  49. package/static/scripts/third-party/hljs.js +0 -1
  50. package/static/scripts/third-party/popper.js +0 -5
  51. package/static/scripts/third-party/tippy.js +0 -1
  52. package/static/scripts/third-party/tocbot.js +0 -672
  53. package/static/scripts/third-party/tocbot.min.js +0 -1
  54. package/static/styles/clean-jsdoc-theme-base.css +0 -1159
  55. package/static/styles/clean-jsdoc-theme-dark.css +0 -412
  56. package/static/styles/clean-jsdoc-theme-light.css +0 -482
  57. package/static/styles/clean-jsdoc-theme-scrollbar.css +0 -30
  58. package/static/styles/clean-jsdoc-theme-without-scrollbar.min.css +0 -1
  59. package/static/styles/clean-jsdoc-theme.min.css +0 -1
  60. package/tmpl/augments.tmpl +0 -10
  61. package/tmpl/container.tmpl +0 -208
  62. package/tmpl/details.tmpl +0 -207
  63. package/tmpl/example.tmpl +0 -3
  64. package/tmpl/examples.tmpl +0 -48
  65. package/tmpl/exceptions.tmpl +0 -32
  66. package/tmpl/icons.tmpl +0 -73
  67. package/tmpl/include-target-script-and-styles.tmpl +0 -43
  68. package/tmpl/layout.tmpl +0 -167
  69. package/tmpl/mainpage.tmpl +0 -10
  70. package/tmpl/members.tmpl +0 -42
  71. package/tmpl/method.tmpl +0 -175
  72. package/tmpl/mobile-sidebar.tmpl +0 -21
  73. package/tmpl/navbar-actions.tmpl +0 -19
  74. package/tmpl/navbar-menu.tmpl +0 -25
  75. package/tmpl/navbar.tmpl +0 -14
  76. package/tmpl/params.tmpl +0 -131
  77. package/tmpl/properties.tmpl +0 -109
  78. package/tmpl/returns.tmpl +0 -19
  79. package/tmpl/search.tmpl +0 -17
  80. package/tmpl/sidebar-items.tmpl +0 -24
  81. package/tmpl/sidebar-title.tmpl +0 -8
  82. package/tmpl/sidebar.tmpl +0 -9
  83. package/tmpl/source.tmpl +0 -13
  84. package/tmpl/toc.tmpl +0 -4
  85. package/tmpl/tutorial.tmpl +0 -32
  86. package/tmpl/type.tmpl +0 -13
package/tmpl/layout.tmpl DELETED
@@ -1,167 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en" style="font-size: 16px">
3
-
4
- <head>
5
- <meta charset="utf-8">
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
-
8
- <!-- Adding favicon -->
9
- <?js if(this.favicon != undefined) { ?>
10
- <link rel="icon" href="<?js= this.favicon?>" />
11
- <?js } ?>
12
-
13
- <!-- Adding meta -->
14
- <?js if(this.meta != undefined) { ?>
15
- <?js this.meta.forEach(function(src){ ?>
16
- <meta <?js= Object.keys(src).map(key=> `${key}="${src[key]}"`).join(" ") ?> />
17
- <?js }) ?>
18
- <?js } ?>
19
-
20
- <!-- Adding external script-->
21
- <?js if(this.dynamicScriptSrc != undefined) { ?>
22
- <?js this.dynamicScriptSrc.forEach(function(src){ ?>
23
- <script <?js= Object.keys(src).map(key=> `${key}="${src[key]}"`).join(" ") ?> ></script>
24
- <?js }) ?>
25
- <?js } ?>
26
-
27
- <!-- Adding external style-->
28
- <?js if(this.dynamicStyleSrc != undefined) { ?>
29
- <?js this.dynamicStyleSrc.forEach(function(src){ ?>
30
- <link <?js= Object.keys(src).map(key=> `${key}="${src[key]}"`).join(" ") ?> />
31
- <?js }) ?>
32
- <?js } ?>
33
-
34
- <!-- Adding scripts-->
35
- <?js if(this.includeScript != undefined) { ?>
36
- <?js this.includeScript.forEach(function(source){ ?>
37
- <?js if(typeof source === 'string') { ?>
38
- <script src="<?js= source ?>"></script>
39
- <?js } ?>
40
- <?js }) ?>
41
- <?js } ?>
42
-
43
- <!-- Adding style-->
44
- <?js if(this.includeCss != undefined) { ?>
45
- <?js this.includeCss.forEach(function(source){ ?>
46
- <?js if(typeof source === 'string') { ?>
47
- <link type="text/css" rel="stylesheet" href="<?js= source ?>">
48
- <?js } ?>
49
- <?js }) ?>
50
- <?js } ?>
51
-
52
-
53
- <title>
54
- <?js= title ?>
55
- </title>
56
-
57
- <!--[if lt IE 9]>
58
- <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
59
- <![endif]-->
60
-
61
- <script src="scripts/third-party/hljs.js" defer></script>
62
- <script src="scripts/third-party/hljs-line-num.js" defer></script>
63
- <script src="scripts/third-party/popper.js" defer></script>
64
- <script src="scripts/third-party/tippy.js" defer></script>
65
- <script src="scripts/third-party/tocbot.min.js"></script>
66
-
67
- <script>
68
- var baseURL = "/"
69
- var locationPathname = ""
70
-
71
- // Global variables
72
- <?js if (this.baseURL) { ?>
73
- baseURL = "<?js= this.baseURL ?>"
74
- baseURL = baseURL.replace(/https?:\/\//i, '')
75
- baseURL = baseURL.substr(baseURL.indexOf("/"))
76
- <?js } else { ?>
77
- locationPathname = document.location.pathname
78
- baseURL = locationPathname.substr(0, locationPathname.lastIndexOf("/") + 1)
79
- <?js } ?>
80
-
81
- </script>
82
-
83
- <!-- clean jsdoc theme -->
84
- <?js if (this.shouldRemoveScrollbarStyle) { ?>
85
- <link rel="stylesheet" href="styles/clean-jsdoc-theme-without-scrollbar.min.css">
86
- <?js } else { ?>
87
- <link rel="stylesheet" href="styles/clean-jsdoc-theme.min.css">
88
- <?js } ?>
89
-
90
- <?js if(this.dynamicStyle != undefined ) { ?>
91
- <style>
92
- <?js= this.dynamicStyle ?>
93
- </style>
94
- <?js } ?>
95
- <?js= this.partial('icons.tmpl') ?>
96
-
97
- </head>
98
-
99
- <body data-theme="<?js= this.theme?>">
100
-
101
- <div class="sidebar-container">
102
- <?js= this.partial('sidebar.tmpl') ?>
103
- </div>
104
-
105
- <div class="navbar-container" id="VuAckcnZhf">
106
- <?js= this.partial('navbar.tmpl') ?>
107
- </div>
108
-
109
- <div class="toc-container">
110
- <?js= this.partial('toc.tmpl') ?>
111
- </div>
112
-
113
- <div class="body-wrapper">
114
- <div class="main-content">
115
- <div class="main-wrapper">
116
- <?js= content ?>
117
-
118
- <?js if(this.footer) {?>
119
-
120
- <footer class="footer" id="PeOAagUepe">
121
- <div class="wrapper">
122
- <?js= this.footer ?>
123
- </div>
124
- </footer>
125
- <?js } ?>
126
-
127
- </div>
128
- </div>
129
-
130
- </div>
131
-
132
- <?js if(this.navbar.search) { ?>
133
- <?js= this.partial('search.tmpl')?>
134
- <?js } ?>
135
-
136
- <?js= this.partial('mobile-sidebar.tmpl') ?>
137
-
138
- <script type="text/javascript" src="scripts/core.min.js"></script>
139
-
140
- <?js if(this.navbar.search !== 'false') { ?>
141
- <script src="scripts/search.min.js" defer></script>
142
- <script src="scripts/third-party/fuse.js" defer></script>
143
- <?js } ?>
144
-
145
- <?js if(this.dynamicScript != undefined ) { ?>
146
- <script type="text/javascript">
147
- <?js= this.dynamicScript ?>
148
- </script>
149
- <?js } ?>
150
-
151
-
152
- <script type="text/javascript">
153
- var tocbotInstance = tocbot.init({
154
- tocSelector: '#eed4d2a0bfd64539bb9df78095dec881',
155
- contentSelector: '.main-content',
156
- headingSelector: 'h1, h2, h3',
157
- hasInnerContainers: true,
158
- scrollContainer: '.main-content',
159
- headingsOffset: 130,
160
- onClick: bringLinkToView
161
- });
162
-
163
- </script>
164
-
165
- </body>
166
-
167
- </html>
@@ -1,10 +0,0 @@
1
- <?js
2
- var data = obj;
3
- var self = this;
4
- ?>
5
-
6
- <?js if (data.readme) { ?>
7
- <section class="readme">
8
- <article><?js= data.readme ?></article>
9
- </section>
10
- <?js } ?>
package/tmpl/members.tmpl DELETED
@@ -1,42 +0,0 @@
1
- <?js
2
- var data = obj;
3
- var self = this;
4
- ?>
5
- <h3 class="name has-anchor" id="<?js= id ?>">
6
- <?js= data.attribs + name + (data.signature ? data.signature : '') ?>
7
- </h3>
8
-
9
- <?js if (data.summary) { ?>
10
- <div class="summary"><?js= summary ?></div>
11
- <?js } ?>
12
-
13
- <?js if (data.description) { ?>
14
- <div class="description">
15
- <?js= data.description ?>
16
- </div>
17
- <?js } ?>
18
-
19
- <?js if (data.type && data.type.names) {?>
20
- <div class="member-item-container flex">
21
- <strong>Type: </strong>
22
- <ul>
23
- <li>
24
- <?js= self.partial('type.tmpl', data.type.names) ?>
25
- </li>
26
- </ul>
27
- </div>
28
- <?js } ?>
29
-
30
- <?js= this.partial('details.tmpl', data) ?>
31
-
32
- <?js if (data.fires && fires.length) { ?>
33
- <b>Fires:</b>
34
- <ul><?js fires.forEach(function(f) { ?>
35
- <li><?js= self.linkto(f) ?></li>
36
- <?js }); ?></ul>
37
- <?js } ?>
38
-
39
- <?js if (data.examples && examples.length) { ?>
40
- <b>Example<?js= examples.length > 1? 's':'' ?></b>
41
- <?js= this.partial('examples.tmpl', examples) ?>
42
- <?js } ?>
package/tmpl/method.tmpl DELETED
@@ -1,175 +0,0 @@
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 id="constructor" class="has-anchor">Constructor</h2>
9
- <?js } ?>
10
-
11
- <h3 class="name has-anchor" id="<?js= id ?>">
12
- <?js= data.attribs + (kind === 'class' ? 'new ' : '') + name + (data.signature || '') ?>
13
- </h3>
14
-
15
- <?js if (data.summary) { ?>
16
- <div class="summary"><?js= summary ?></div>
17
- <?js } ?>
18
- <?js } ?>
19
-
20
- <?js if (data.kind !== 'module' && data.description) { ?>
21
- <div class="description">
22
- <?js= data.description ?>
23
- </div>
24
- <?js } ?>
25
-
26
- <?js if (data.augments && data.alias && data.alias.indexOf('module:') === 0) { ?>
27
- <div class="method-member-container mt-20">
28
- <strong>Extends:</strong>
29
- <?js= self.partial('augments.tmpl', data) ?>
30
- </div>
31
- <?js } ?>
32
-
33
-
34
- <?js if (kind === 'event' && data.type && data.type.names) {?>
35
- <div class="method-member-container mt-20">
36
- <strong>Type:</strong>
37
- <ul>
38
- <li>
39
- <?js= self.partial('type.tmpl', data.type.names) ?>
40
- </li>
41
- </ul>
42
- </div>
43
- <?js } ?>
44
-
45
- <?js if (data['this']) { ?>
46
- <div class="method-member-container mt-20">
47
- <strong>This:</strong>
48
- <ul><li><?js= this.linkto(data['this'], data['this']) ?></li></ul>
49
- </div>
50
- <?js } ?>
51
-
52
- <?js if (data.params && params.length && !data.hideconstructor) { ?>
53
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
54
- <strong>Parameters:</strong>
55
- <?js= this.partial('params.tmpl', params) ?>
56
- </div>
57
- <?js } ?>
58
-
59
- <?js= this.partial('details.tmpl', data) ?>
60
-
61
- <?js if (data.kind !== 'module' && data.requires && data.requires.length) { ?>
62
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
63
- <strong>Requires:</strong>
64
- <ul>
65
- <?js data.requires.forEach(function(r) { ?>
66
- <li><?js= self.linkto(r) ?></li>
67
- <?js }); ?>
68
- </ul>
69
- </div>
70
- <?js } ?>
71
-
72
- <?js if (data.fires && fires.length) { ?>
73
- <div class="method-member-container flex w-100 overflow-auto mt-20">
74
- <strong>Fires:</strong>
75
- <ul>
76
- <?js fires.forEach(function(f) { ?>
77
- <li><?js= self.linkto(f) ?></li>
78
- <?js }); ?>
79
- </ul>
80
- </div>
81
- <?js } ?>
82
-
83
- <?js if (data.listens && listens.length) { ?>
84
- <div class="method-member-container flex w-100 overflow-auto mt-20">
85
- <strong>Listens to Events:</strong>
86
- <ul>
87
- <?js listens.forEach(function(f) { ?>
88
- <li><?js= self.linkto(f) ?></li>
89
- <?js }); ?>
90
- </ul>
91
- </div>
92
- <?js } ?>
93
-
94
- <?js if (data.listeners && listeners.length) { ?>
95
- <div class="method-member-container mt-20">
96
- <strong>Listeners of This Event:</strong>
97
- <ul>
98
- <?js listeners.forEach(function(f) { ?>
99
- <li><?js= self.linkto(f) ?></li>
100
- <?js }); ?>
101
- </ul>
102
- </div>
103
- <?js } ?>
104
-
105
- <?js if (data.modifies && modifies.length) {?>
106
- <div class="method-member-container mt-20">
107
- <strong>Modifies:</strong>
108
- <?js if (modifies.length > 1) { ?>
109
- <ul>
110
- <?js modifies.forEach(function(r) { ?>
111
- <li><?js= self.partial('type.tmpl', r) ?></li>
112
- <?js }); ?>
113
- </ul>
114
-
115
- <?js } else { modifies.forEach(function(r) { ?>
116
- <?js= self.partial('type.tmpl', r) ?>
117
- <?js });} ?>
118
- </div>
119
- <?js } ?>
120
-
121
-
122
- <?js if (data.exceptions && exceptions.length) { ?>
123
- <div class="method-member-container mt-20">
124
- <strong>Throws:</strong>
125
- <?js if (exceptions.length > 1) { ?>
126
- <ul>
127
- <?js exceptions.forEach(function(r) { ?>
128
- <li><?js= self.partial('exceptions.tmpl', r) ?></li>
129
- <?js }); ?>
130
- </ul>
131
- <?js } else { exceptions.forEach(function(r) { ?>
132
- <?js= self.partial('exceptions.tmpl', r) ?>
133
- <?js });} ?>
134
- </div>
135
- <?js } ?>
136
-
137
- <?js if (data.returns && returns.length) { ?>
138
- <div class="method-member-container mt-20">
139
- <strong>Returns:</strong>
140
- <?js if (returns.length > 1) { ?>
141
- <ul>
142
- <?js returns.forEach(function(r) { ?>
143
- <li><?js= self.partial('returns.tmpl', r) ?></li>
144
- <?js }); ?>
145
- </ul>
146
-
147
- <?js } else { returns.forEach(function(r) { ?>
148
- <?js= self.partial('returns.tmpl', r) ?>
149
- <?js });} ?>
150
- </div>
151
- <?js } ?>
152
-
153
- <?js if (data.yields && yields.length) { ?>
154
- <div class="method-member-container mt-20">
155
- <strong>Yields:</strong>
156
- <?js if (yields.length > 1) { ?>
157
- <ul>
158
- <?js yields.forEach(function(r) { ?>
159
- <li><?js= self.partial('returns.tmpl', r) ?></li>
160
- <?js }); ?>
161
- </ul>
162
-
163
- <?js } else { yields.forEach(function(r) { ?>
164
- <?js= self.partial('returns.tmpl', r) ?>
165
- <?js });} ?>
166
- </div>
167
- <?js } ?>
168
-
169
-
170
- <?js if (data.examples && examples.length) { ?>
171
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
172
- <strong>Example<?js= examples.length > 1? 's':'' ?></strong>
173
- <?js= this.partial('examples.tmpl', examples) ?>
174
- </div>
175
- <?js } ?>
@@ -1,21 +0,0 @@
1
- <div class="mobile-menu-icon-container">
2
- <button class="icon-button" id="mobile-menu" data-isopen="false" aria-label="menu">
3
- <svg><use xlink:href="#menu-icon"></use></svg>
4
- </button>
5
- </div>
6
-
7
- <div id="mobile-sidebar" class="mobile-sidebar-container">
8
- <div class="mobile-sidebar-wrapper">
9
- <?js= this.partial('sidebar-title.tmpl') ?>
10
- <div class="mobile-nav-links">
11
- <?js= this.partial('navbar-menu.tmpl', '-mobile') ?>
12
- </div>
13
- <div class="mobile-sidebar-items-c">
14
- <?js= this.partial('sidebar-items.tmpl') ?>
15
- </div>
16
- <div class="mobile-navbar-actions">
17
- <?js= this.partial('navbar-actions.tmpl') ?>
18
- </div>
19
- </div>
20
-
21
- </div>
@@ -1,19 +0,0 @@
1
- <?js
2
- var data = this.navbar
3
- if(data.search) { ?>
4
- <div class="navbar-right-item">
5
- <button class="icon-button search-button" aria-label='open-search'>
6
- <svg><use xlink:href="#search-icon"></use></svg>
7
- </button>
8
- </div>
9
- <?js } ?>
10
- <div class="navbar-right-item">
11
- <button class="icon-button theme-toggle" aria-label='toggle-theme'>
12
- <svg><use class="theme-svg-use" xlink:href="#<?js= (this.theme === 'dark' ? 'light' : 'dark') ?>-theme-icon"></use></svg>
13
- </button>
14
- </div>
15
- <div class="navbar-right-item">
16
- <button class="icon-button font-size" aria-label='change-font-size'>
17
- <svg><use xlink:href="#font-size-icon"></use></svg>
18
- </button>
19
- </div>
@@ -1,25 +0,0 @@
1
- <?js
2
- var data = this.navbar
3
- var idSuffix = obj || ''
4
- if(data.menu) { ?>
5
- <?js
6
- data.menu.forEach(function(item) {
7
- var className = item.class || '';
8
- var id = item.id || '';
9
- var target = item.target || '';
10
- className += ' navbar-item'
11
- if(id) {
12
- id += idSuffix
13
- }
14
- ?>
15
-
16
- <div class="<?js=className ?>">
17
- <a id="<?js= id ?>" href="<?js= item.link ?>" target="<?js= target ?>">
18
- <?js= item.title?>
19
- </a>
20
- </div>
21
-
22
- <?js
23
- })
24
- }
25
- ?>
package/tmpl/navbar.tmpl DELETED
@@ -1,14 +0,0 @@
1
- <?js
2
- var data = this.navbar;
3
- ?>
4
-
5
- <nav class="navbar">
6
- <div class="navbar-left-items">
7
- <?js= this.partial('navbar-menu.tmpl') ?>
8
-
9
- </div>
10
-
11
- <div class="navbar-right-items">
12
- <?js= this.partial('navbar-actions.tmpl') ?>
13
- </div>
14
- <nav>
package/tmpl/params.tmpl DELETED
@@ -1,131 +0,0 @@
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
- // there's probably a typo in the JSDoc comment that resulted in a weird
19
- // parameter name
20
- return;
21
- }
22
-
23
- if ( paramRegExp.test(param.name) ) {
24
- param.name = RegExp.$1;
25
- parentParam.subparams = parentParam.subparams || [];
26
- parentParam.subparams.push(param);
27
- params[i] = null;
28
- }
29
- else {
30
- parentParam = param;
31
- }
32
- }
33
- else {
34
- parentParam = param;
35
- }
36
- });
37
-
38
- /* determine if we need extra columns, "attributes" and "default" */
39
- params.hasAttributes = false;
40
- params.hasDefault = false;
41
- params.hasName = false;
42
-
43
- params.forEach(function(param) {
44
- if (!param) { return; }
45
-
46
- if (param.optional || param.nullable || param.variable) {
47
- params.hasAttributes = true;
48
- }
49
-
50
- if (param.name) {
51
- params.hasName = true;
52
- }
53
-
54
- if (typeof param.defaultvalue !== 'undefined') {
55
- params.hasDefault = true;
56
- }
57
- });
58
- ?>
59
-
60
- <table class="params">
61
- <thead>
62
- <tr>
63
- <?js if (params.hasName) {?>
64
- <th>Name</th>
65
- <?js } ?>
66
-
67
- <th>Type</th>
68
-
69
- <?js if (params.hasAttributes) {?>
70
- <th>Attributes</th>
71
- <?js } ?>
72
-
73
- <?js if (params.hasDefault) {?>
74
- <th>Default</th>
75
- <?js } ?>
76
-
77
- <th class="last">Description</th>
78
- </tr>
79
- </thead>
80
-
81
- <tbody>
82
- <?js
83
- var self = this;
84
- params.forEach(function(param) {
85
- if (!param) { return; }
86
- ?>
87
-
88
- <tr>
89
- <?js if (params.hasName) {?>
90
- <td class="name"><code><?js= param.name ?></code></td>
91
- <?js } ?>
92
-
93
- <td class="type">
94
- <?js if (param.type && param.type.names) {?>
95
- <?js= self.partial('type.tmpl', param.type.names) ?>
96
- <?js } ?>
97
- </td>
98
-
99
- <?js if (params.hasAttributes) {?>
100
- <td class="attributes">
101
- <?js if (param.optional) { ?>
102
- &lt;optional><br>
103
- <?js } ?>
104
-
105
- <?js if (param.nullable) { ?>
106
- &lt;nullable><br>
107
- <?js } ?>
108
-
109
- <?js if (param.variable) { ?>
110
- &lt;repeatable><br>
111
- <?js } ?>
112
- </td>
113
- <?js } ?>
114
-
115
- <?js if (params.hasDefault) {?>
116
- <td class="default">
117
- <?js if (typeof param.defaultvalue !== 'undefined') { ?>
118
- <?js= self.htmlsafe(param.defaultvalue) ?>
119
- <?js } ?>
120
- </td>
121
- <?js } ?>
122
-
123
- <td class="description last"><?js= param.description ?><?js if (param.subparams) { ?>
124
- <h6>Properties</h6>
125
- <?js= self.partial('params.tmpl', param.subparams) ?>
126
- <?js } ?></td>
127
- </tr>
128
-
129
- <?js }); ?>
130
- </tbody>
131
- </table>