codefresh 0.88.3 → 0.88.4

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 (411) hide show
  1. package/lib/interface/cli/completion/tree.json +1 -0
  2. package/package.json +9 -2
  3. package/.dockerignore +0 -15
  4. package/.eslintrc.js +0 -20
  5. package/.gitattributes +0 -29
  6. package/.github/CODEOWNERS +0 -1
  7. package/.github/pull_request_template.md +0 -5
  8. package/.github/release-drafter.yaml +0 -8
  9. package/.github/workflows/create-release.yaml +0 -36
  10. package/.github/workflows/draft-release.yaml +0 -33
  11. package/.nvmrc +0 -1
  12. package/Dockerfile +0 -39
  13. package/Dockerfile-debian +0 -43
  14. package/Dockerfile-debian-rootless +0 -50
  15. package/Dockerfile-rootless +0 -47
  16. package/__mocks__/codefresh.yml +0 -40
  17. package/__mocks__/requestretry.js +0 -35
  18. package/cli.gif +0 -0
  19. package/docs/archetypes/default.md +0 -6
  20. package/docs/config.toml +0 -44
  21. package/docs/content/_header.md +0 -6
  22. package/docs/content/_index.md +0 -19
  23. package/docs/content/contexts/spec/_index.md +0 -28
  24. package/docs/content/contexts/spec/config.md +0 -30
  25. package/docs/content/contexts/spec/helm-repository.md +0 -16
  26. package/docs/content/contexts/spec/secret-yaml.md +0 -32
  27. package/docs/content/contexts/spec/secret.md +0 -30
  28. package/docs/content/contexts/spec/yaml.md +0 -30
  29. package/docs/content/external-resources.md +0 -8
  30. package/docs/content/getting-started/_index.md +0 -28
  31. package/docs/content/installation/_index.md +0 -13
  32. package/docs/content/installation/docker.md +0 -15
  33. package/docs/content/installation/homebrew.md +0 -29
  34. package/docs/content/installation/npm.md +0 -22
  35. package/docs/content/installation/yarn.md +0 -22
  36. package/docs/content/more/_index.md +0 -7
  37. package/docs/content/operate on resources/_index.md +0 -10
  38. package/docs/content/pipelines/Run Pipeline.md +0 -38
  39. package/docs/content/pipelines/spec.md +0 -264
  40. package/docs/docs.spec.js +0 -8
  41. package/docs/index.js +0 -431
  42. package/docs/layouts/partials/menu-footer.html +0 -13
  43. package/docs/themes/docdock/LICENSE.md +0 -22
  44. package/docs/themes/docdock/README.md +0 -129
  45. package/docs/themes/docdock/archetypes/default.md +0 -9
  46. package/docs/themes/docdock/archetypes/slide.md +0 -46
  47. package/docs/themes/docdock/exampleSite/config.toml +0 -68
  48. package/docs/themes/docdock/exampleSite/content/_index.md +0 -50
  49. package/docs/themes/docdock/exampleSite/content/content-organisation/_index.md +0 -138
  50. package/docs/themes/docdock/exampleSite/content/content-organisation/customize-style/_index.md +0 -66
  51. package/docs/themes/docdock/exampleSite/content/content-organisation/customize-style/disable.md +0 -24
  52. package/docs/themes/docdock/exampleSite/content/content-organisation/customize-style/theme-variants.md +0 -35
  53. package/docs/themes/docdock/exampleSite/content/content-organisation/customize-style/themestyle.md +0 -25
  54. package/docs/themes/docdock/exampleSite/content/content-organisation/extramenu.md +0 -28
  55. package/docs/themes/docdock/exampleSite/content/content-organisation/logo.md +0 -12
  56. package/docs/themes/docdock/exampleSite/content/create-page/_index.md +0 -54
  57. package/docs/themes/docdock/exampleSite/content/create-page/homepage.md +0 -8
  58. package/docs/themes/docdock/exampleSite/content/create-page/myslide.md +0 -48
  59. package/docs/themes/docdock/exampleSite/content/create-page/page-images.md +0 -28
  60. package/docs/themes/docdock/exampleSite/content/create-page/page-slide.md +0 -114
  61. package/docs/themes/docdock/exampleSite/content/credits.md +0 -44
  62. package/docs/themes/docdock/exampleSite/content/getting-start/_index.md +0 -12
  63. package/docs/themes/docdock/exampleSite/content/getting-start/configuration.md +0 -56
  64. package/docs/themes/docdock/exampleSite/content/getting-start/installation.md +0 -83
  65. package/docs/themes/docdock/exampleSite/content/search/_index.md +0 -13
  66. package/docs/themes/docdock/exampleSite/content/shortcodes/_index.md +0 -10
  67. package/docs/themes/docdock/exampleSite/content/shortcodes/alert.md +0 -30
  68. package/docs/themes/docdock/exampleSite/content/shortcodes/attachments.files/BachGavotteShort.mp3 +0 -0
  69. package/docs/themes/docdock/exampleSite/content/shortcodes/attachments.files/Carroll_AliceAuPaysDesMerveilles.pdf +0 -0
  70. package/docs/themes/docdock/exampleSite/content/shortcodes/attachments.files/adivorciarsetoca00cape.pdf +0 -0
  71. package/docs/themes/docdock/exampleSite/content/shortcodes/attachments.files/hugo.png +0 -0
  72. package/docs/themes/docdock/exampleSite/content/shortcodes/attachments.files/movieselectricsheep-flock-244-32500-2.mp4 +0 -0
  73. package/docs/themes/docdock/exampleSite/content/shortcodes/attachments.md +0 -59
  74. package/docs/themes/docdock/exampleSite/content/shortcodes/button.md +0 -37
  75. package/docs/themes/docdock/exampleSite/content/shortcodes/children/_index.md +0 -46
  76. package/docs/themes/docdock/exampleSite/content/shortcodes/children/children-1/_index.md +0 -6
  77. package/docs/themes/docdock/exampleSite/content/shortcodes/children/children-1/children-1-1/_index.md +0 -6
  78. package/docs/themes/docdock/exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/_index.md +0 -6
  79. package/docs/themes/docdock/exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/children-1-1-1-1/_index.md +0 -6
  80. package/docs/themes/docdock/exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/children-1-1-1-1/children-1-1-1-1-1/_index.md +0 -6
  81. package/docs/themes/docdock/exampleSite/content/shortcodes/children/children-2/_index.md +0 -11
  82. package/docs/themes/docdock/exampleSite/content/shortcodes/children/children-2/test3.md +0 -6
  83. package/docs/themes/docdock/exampleSite/content/shortcodes/children/children-3/_index.md +0 -6
  84. package/docs/themes/docdock/exampleSite/content/shortcodes/children/children-4/_index.md +0 -7
  85. package/docs/themes/docdock/exampleSite/content/shortcodes/children/test.md +0 -6
  86. package/docs/themes/docdock/exampleSite/content/shortcodes/excerpt-include.md +0 -25
  87. package/docs/themes/docdock/exampleSite/content/shortcodes/excerpt.md +0 -39
  88. package/docs/themes/docdock/exampleSite/content/shortcodes/expand.md +0 -41
  89. package/docs/themes/docdock/exampleSite/content/shortcodes/icon.md +0 -1254
  90. package/docs/themes/docdock/exampleSite/content/shortcodes/mermaid.md +0 -98
  91. package/docs/themes/docdock/exampleSite/content/shortcodes/notice.md +0 -61
  92. package/docs/themes/docdock/exampleSite/content/shortcodes/panel.md +0 -60
  93. package/docs/themes/docdock/exampleSite/content/shortcodes/revealjs.md +0 -119
  94. package/docs/themes/docdock/exampleSite/content/showcase.md +0 -15
  95. package/docs/themes/docdock/exampleSite/layouts/partials/custom-head.html +0 -10
  96. package/docs/themes/docdock/exampleSite/layouts/partials/menu-footer.html +0 -13
  97. package/docs/themes/docdock/exampleSite/layouts/shortcodes/ghcontributors.html +0 -31
  98. package/docs/themes/docdock/exampleSite/static/menu-entry-icon.png +0 -0
  99. package/docs/themes/docdock/exampleSite/static/showcase/bitfan.site.png +0 -0
  100. package/docs/themes/docdock/exampleSite/static/showcase/invincible.site.png +0 -0
  101. package/docs/themes/docdock/exampleSite/static/style-flex.png +0 -0
  102. package/docs/themes/docdock/exampleSite/static/style-original.png +0 -0
  103. package/docs/themes/docdock/exampleSite/static/variant-gold.png +0 -0
  104. package/docs/themes/docdock/exampleSite/static/variant-gray.png +0 -0
  105. package/docs/themes/docdock/exampleSite/static/variant-green.png +0 -0
  106. package/docs/themes/docdock/i18n/en.toml +0 -44
  107. package/docs/themes/docdock/i18n/es.toml +0 -26
  108. package/docs/themes/docdock/i18n/fr.toml +0 -44
  109. package/docs/themes/docdock/i18n/nb.toml +0 -38
  110. package/docs/themes/docdock/images/screenshot.png +0 -0
  111. package/docs/themes/docdock/images/tn.png +0 -0
  112. package/docs/themes/docdock/layouts/404.html +0 -39
  113. package/docs/themes/docdock/layouts/_default/baseof.html +0 -32
  114. package/docs/themes/docdock/layouts/_default/li.html +0 -22
  115. package/docs/themes/docdock/layouts/_default/list.html +0 -20
  116. package/docs/themes/docdock/layouts/_default/single.html +0 -3
  117. package/docs/themes/docdock/layouts/index.html +0 -30
  118. package/docs/themes/docdock/layouts/index.json +0 -12
  119. package/docs/themes/docdock/layouts/partials/breadcrumb.html +0 -8
  120. package/docs/themes/docdock/layouts/partials/custom-content-footer.html +0 -6
  121. package/docs/themes/docdock/layouts/partials/custom-footer.html +0 -0
  122. package/docs/themes/docdock/layouts/partials/custom-head.html +0 -2
  123. package/docs/themes/docdock/layouts/partials/flex/body-aftercontent.html +0 -54
  124. package/docs/themes/docdock/layouts/partials/flex/body-beforecontent.html +0 -68
  125. package/docs/themes/docdock/layouts/partials/flex/head.html +0 -17
  126. package/docs/themes/docdock/layouts/partials/flex/scripts.html +0 -11
  127. package/docs/themes/docdock/layouts/partials/flex/selectnavigation.html +0 -58
  128. package/docs/themes/docdock/layouts/partials/header.html +0 -10
  129. package/docs/themes/docdock/layouts/partials/language-selector.html +0 -18
  130. package/docs/themes/docdock/layouts/partials/menu-footer.html +0 -0
  131. package/docs/themes/docdock/layouts/partials/menu.html +0 -82
  132. package/docs/themes/docdock/layouts/partials/next-prev-page.html +0 -44
  133. package/docs/themes/docdock/layouts/partials/original/body-aftercontent.html +0 -13
  134. package/docs/themes/docdock/layouts/partials/original/body-beforecontent.html +0 -128
  135. package/docs/themes/docdock/layouts/partials/original/head.html +0 -23
  136. package/docs/themes/docdock/layouts/partials/original/scripts.html +0 -10
  137. package/docs/themes/docdock/layouts/partials/pagination.html +0 -9
  138. package/docs/themes/docdock/layouts/shortcodes/alert.html +0 -6
  139. package/docs/themes/docdock/layouts/shortcodes/anchor.html +0 -1
  140. package/docs/themes/docdock/layouts/shortcodes/anchorlink.html +0 -1
  141. package/docs/themes/docdock/layouts/shortcodes/attachmentlink.html +0 -5
  142. package/docs/themes/docdock/layouts/shortcodes/attachments.html +0 -33
  143. package/docs/themes/docdock/layouts/shortcodes/button.html +0 -6
  144. package/docs/themes/docdock/layouts/shortcodes/children.html +0 -104
  145. package/docs/themes/docdock/layouts/shortcodes/code.html +0 -1
  146. package/docs/themes/docdock/layouts/shortcodes/emoticon.html +0 -29
  147. package/docs/themes/docdock/layouts/shortcodes/excerpt-include.html +0 -14
  148. package/docs/themes/docdock/layouts/shortcodes/excerpt.html +0 -7
  149. package/docs/themes/docdock/layouts/shortcodes/expand.html +0 -16
  150. package/docs/themes/docdock/layouts/shortcodes/header.html +0 -16
  151. package/docs/themes/docdock/layouts/shortcodes/icon.html +0 -13
  152. package/docs/themes/docdock/layouts/shortcodes/image.html +0 -5
  153. package/docs/themes/docdock/layouts/shortcodes/info.html +0 -10
  154. package/docs/themes/docdock/layouts/shortcodes/label.html +0 -1
  155. package/docs/themes/docdock/layouts/shortcodes/mermaid.html +0 -3
  156. package/docs/themes/docdock/layouts/shortcodes/note.html +0 -4
  157. package/docs/themes/docdock/layouts/shortcodes/notice.html +0 -1
  158. package/docs/themes/docdock/layouts/shortcodes/pagelink.html +0 -12
  159. package/docs/themes/docdock/layouts/shortcodes/pagetreesearch.html +0 -1
  160. package/docs/themes/docdock/layouts/shortcodes/panel.html +0 -5
  161. package/docs/themes/docdock/layouts/shortcodes/recently-updated.html +0 -7
  162. package/docs/themes/docdock/layouts/shortcodes/relref.html +0 -14
  163. package/docs/themes/docdock/layouts/shortcodes/revealjs.html +0 -66
  164. package/docs/themes/docdock/layouts/shortcodes/section.html +0 -1
  165. package/docs/themes/docdock/layouts/shortcodes/task.html +0 -10
  166. package/docs/themes/docdock/layouts/shortcodes/tasklist.html +0 -4
  167. package/docs/themes/docdock/layouts/shortcodes/tip.html +0 -10
  168. package/docs/themes/docdock/layouts/shortcodes/toc.html +0 -2
  169. package/docs/themes/docdock/layouts/shortcodes/unknow.html +0 -1
  170. package/docs/themes/docdock/layouts/shortcodes/userlink.html +0 -1
  171. package/docs/themes/docdock/layouts/shortcodes/viewppt.html +0 -5
  172. package/docs/themes/docdock/layouts/shortcodes/viewxls.html +0 -5
  173. package/docs/themes/docdock/layouts/shortcodes/warning.html +0 -12
  174. package/docs/themes/docdock/layouts/shortcodes/well.html +0 -1
  175. package/docs/themes/docdock/layouts/slide/single.html +0 -38
  176. package/docs/themes/docdock/static/css/auto-complete.css +0 -49
  177. package/docs/themes/docdock/static/css/bootstrap.min.css +0 -1884
  178. package/docs/themes/docdock/static/css/featherlight.min.css +0 -8
  179. package/docs/themes/docdock/static/css/font-awesome.min.css +0 -4
  180. package/docs/themes/docdock/static/css/horsey.css +0 -35
  181. package/docs/themes/docdock/static/css/hybrid.css +0 -102
  182. package/docs/themes/docdock/static/css/nucleus.css +0 -617
  183. package/docs/themes/docdock/static/fonts/FontAwesome.otf +0 -0
  184. package/docs/themes/docdock/static/fonts/Inconsolata.eot +0 -0
  185. package/docs/themes/docdock/static/fonts/Inconsolata.svg +0 -359
  186. package/docs/themes/docdock/static/fonts/Inconsolata.ttf +0 -0
  187. package/docs/themes/docdock/static/fonts/Inconsolata.woff +0 -0
  188. package/docs/themes/docdock/static/fonts/Lato-Bold.ttf +0 -0
  189. package/docs/themes/docdock/static/fonts/Lato-Bold.woff2 +0 -0
  190. package/docs/themes/docdock/static/fonts/Lato-Regular.ttf +0 -0
  191. package/docs/themes/docdock/static/fonts/Lato-Regular.woff2 +0 -0
  192. package/docs/themes/docdock/static/fonts/Novecentosanswide-Normal-webfont.eot +0 -0
  193. package/docs/themes/docdock/static/fonts/Novecentosanswide-Normal-webfont.svg +0 -1019
  194. package/docs/themes/docdock/static/fonts/Novecentosanswide-Normal-webfont.ttf +0 -0
  195. package/docs/themes/docdock/static/fonts/Novecentosanswide-Normal-webfont.woff +0 -0
  196. package/docs/themes/docdock/static/fonts/Novecentosanswide-Normal-webfont.woff2 +0 -0
  197. package/docs/themes/docdock/static/fonts/Novecentosanswide-UltraLight-webfont.eot +0 -0
  198. package/docs/themes/docdock/static/fonts/Novecentosanswide-UltraLight-webfont.svg +0 -918
  199. package/docs/themes/docdock/static/fonts/Novecentosanswide-UltraLight-webfont.ttf +0 -0
  200. package/docs/themes/docdock/static/fonts/Novecentosanswide-UltraLight-webfont.woff +0 -0
  201. package/docs/themes/docdock/static/fonts/Novecentosanswide-UltraLight-webfont.woff2 +0 -0
  202. package/docs/themes/docdock/static/fonts/Roboto-Italic.ttf +0 -0
  203. package/docs/themes/docdock/static/fonts/Roboto-Medium.ttf +0 -0
  204. package/docs/themes/docdock/static/fonts/Roboto-Regular.ttf +0 -0
  205. package/docs/themes/docdock/static/fonts/RobotoMono-Medium.ttf +0 -0
  206. package/docs/themes/docdock/static/fonts/RobotoMono-Regular.ttf +0 -0
  207. package/docs/themes/docdock/static/fonts/Work_Sans_200.eot +0 -0
  208. package/docs/themes/docdock/static/fonts/Work_Sans_200.svg +0 -332
  209. package/docs/themes/docdock/static/fonts/Work_Sans_200.ttf +0 -0
  210. package/docs/themes/docdock/static/fonts/Work_Sans_200.woff +0 -0
  211. package/docs/themes/docdock/static/fonts/Work_Sans_200.woff2 +0 -0
  212. package/docs/themes/docdock/static/fonts/Work_Sans_300.eot +0 -0
  213. package/docs/themes/docdock/static/fonts/Work_Sans_300.svg +0 -331
  214. package/docs/themes/docdock/static/fonts/Work_Sans_300.ttf +0 -0
  215. package/docs/themes/docdock/static/fonts/Work_Sans_300.woff +0 -0
  216. package/docs/themes/docdock/static/fonts/Work_Sans_300.woff2 +0 -0
  217. package/docs/themes/docdock/static/fonts/Work_Sans_500.eot +0 -0
  218. package/docs/themes/docdock/static/fonts/Work_Sans_500.svg +0 -333
  219. package/docs/themes/docdock/static/fonts/Work_Sans_500.ttf +0 -0
  220. package/docs/themes/docdock/static/fonts/Work_Sans_500.woff +0 -0
  221. package/docs/themes/docdock/static/fonts/Work_Sans_500.woff2 +0 -0
  222. package/docs/themes/docdock/static/fonts/fontawesome-webfont.eot +0 -0
  223. package/docs/themes/docdock/static/fonts/fontawesome-webfont.svg +0 -2671
  224. package/docs/themes/docdock/static/fonts/fontawesome-webfont.ttf +0 -0
  225. package/docs/themes/docdock/static/fonts/fontawesome-webfont.woff +0 -0
  226. package/docs/themes/docdock/static/fonts/fontawesome-webfont.woff2 +0 -0
  227. package/docs/themes/docdock/static/fonts/glyphicons-halflings-regular.eot +0 -0
  228. package/docs/themes/docdock/static/fonts/glyphicons-halflings-regular.svg +0 -288
  229. package/docs/themes/docdock/static/fonts/glyphicons-halflings-regular.ttf +0 -0
  230. package/docs/themes/docdock/static/fonts/glyphicons-halflings-regular.woff +0 -0
  231. package/docs/themes/docdock/static/fonts/glyphicons-halflings-regular.woff2 +0 -0
  232. package/docs/themes/docdock/static/images/clippy.svg +0 -4
  233. package/docs/themes/docdock/static/images/favicon.png +0 -0
  234. package/docs/themes/docdock/static/images/gopher-404.jpg +0 -0
  235. package/docs/themes/docdock/static/js/auto-complete.js +0 -223
  236. package/docs/themes/docdock/static/js/clipboard.min.js +0 -7
  237. package/docs/themes/docdock/static/js/docdock.js +0 -309
  238. package/docs/themes/docdock/static/js/featherlight.min.js +0 -8
  239. package/docs/themes/docdock/static/js/highlight.pack.js +0 -2
  240. package/docs/themes/docdock/static/js/html5shiv-printshiv.min.js +0 -4
  241. package/docs/themes/docdock/static/js/jquery-2.x.min.js +0 -4
  242. package/docs/themes/docdock/static/js/lunr.min.js +0 -6
  243. package/docs/themes/docdock/static/js/modernizr.custom.71422.js +0 -4
  244. package/docs/themes/docdock/static/js/search.js +0 -91
  245. package/docs/themes/docdock/static/mermaid/mermaid.css +0 -273
  246. package/docs/themes/docdock/static/mermaid/mermaid.dark.css +0 -275
  247. package/docs/themes/docdock/static/mermaid/mermaid.forest.css +0 -353
  248. package/docs/themes/docdock/static/mermaid/mermaid.js +0 -30
  249. package/docs/themes/docdock/static/none.html +0 -0
  250. package/docs/themes/docdock/static/revealjs/.travis.yml +0 -5
  251. package/docs/themes/docdock/static/revealjs/CONTRIBUTING.md +0 -23
  252. package/docs/themes/docdock/static/revealjs/Gruntfile.js +0 -192
  253. package/docs/themes/docdock/static/revealjs/LICENSE +0 -19
  254. package/docs/themes/docdock/static/revealjs/README.md +0 -1238
  255. package/docs/themes/docdock/static/revealjs/bower.json +0 -27
  256. package/docs/themes/docdock/static/revealjs/css/print/paper.css +0 -203
  257. package/docs/themes/docdock/static/revealjs/css/print/pdf.css +0 -178
  258. package/docs/themes/docdock/static/revealjs/css/reveal.css +0 -1555
  259. package/docs/themes/docdock/static/revealjs/css/reveal.scss +0 -1717
  260. package/docs/themes/docdock/static/revealjs/css/theme/README.md +0 -21
  261. package/docs/themes/docdock/static/revealjs/css/theme/beige.css +0 -268
  262. package/docs/themes/docdock/static/revealjs/css/theme/black.css +0 -264
  263. package/docs/themes/docdock/static/revealjs/css/theme/blood.css +0 -287
  264. package/docs/themes/docdock/static/revealjs/css/theme/league.css +0 -270
  265. package/docs/themes/docdock/static/revealjs/css/theme/moon.css +0 -268
  266. package/docs/themes/docdock/static/revealjs/css/theme/night.css +0 -262
  267. package/docs/themes/docdock/static/revealjs/css/theme/serif.css +0 -264
  268. package/docs/themes/docdock/static/revealjs/css/theme/simple.css +0 -267
  269. package/docs/themes/docdock/static/revealjs/css/theme/sky.css +0 -271
  270. package/docs/themes/docdock/static/revealjs/css/theme/solarized.css +0 -268
  271. package/docs/themes/docdock/static/revealjs/css/theme/source/beige.scss +0 -39
  272. package/docs/themes/docdock/static/revealjs/css/theme/source/black.scss +0 -49
  273. package/docs/themes/docdock/static/revealjs/css/theme/source/blood.scss +0 -78
  274. package/docs/themes/docdock/static/revealjs/css/theme/source/league.scss +0 -34
  275. package/docs/themes/docdock/static/revealjs/css/theme/source/moon.scss +0 -57
  276. package/docs/themes/docdock/static/revealjs/css/theme/source/night.scss +0 -34
  277. package/docs/themes/docdock/static/revealjs/css/theme/source/serif.scss +0 -35
  278. package/docs/themes/docdock/static/revealjs/css/theme/source/simple.scss +0 -43
  279. package/docs/themes/docdock/static/revealjs/css/theme/source/sky.scss +0 -46
  280. package/docs/themes/docdock/static/revealjs/css/theme/source/solarized.scss +0 -63
  281. package/docs/themes/docdock/static/revealjs/css/theme/source/white.scss +0 -49
  282. package/docs/themes/docdock/static/revealjs/css/theme/template/mixins.scss +0 -29
  283. package/docs/themes/docdock/static/revealjs/css/theme/template/settings.scss +0 -43
  284. package/docs/themes/docdock/static/revealjs/css/theme/template/theme.scss +0 -316
  285. package/docs/themes/docdock/static/revealjs/css/theme/white.css +0 -264
  286. package/docs/themes/docdock/static/revealjs/demo.html +0 -410
  287. package/docs/themes/docdock/static/revealjs/index.html +0 -49
  288. package/docs/themes/docdock/static/revealjs/js/reveal.js +0 -5239
  289. package/docs/themes/docdock/static/revealjs/lib/css/zenburn.css +0 -80
  290. package/docs/themes/docdock/static/revealjs/lib/font/league-gothic/LICENSE +0 -2
  291. package/docs/themes/docdock/static/revealjs/lib/font/league-gothic/league-gothic.css +0 -10
  292. package/docs/themes/docdock/static/revealjs/lib/font/league-gothic/league-gothic.eot +0 -0
  293. package/docs/themes/docdock/static/revealjs/lib/font/league-gothic/league-gothic.ttf +0 -0
  294. package/docs/themes/docdock/static/revealjs/lib/font/league-gothic/league-gothic.woff +0 -0
  295. package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/LICENSE +0 -45
  296. package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-italic.eot +0 -0
  297. package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-italic.ttf +0 -0
  298. package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-italic.woff +0 -0
  299. package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-regular.eot +0 -0
  300. package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-regular.ttf +0 -0
  301. package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-regular.woff +0 -0
  302. package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibold.eot +0 -0
  303. package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibold.ttf +0 -0
  304. package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibold.woff +0 -0
  305. package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibolditalic.eot +0 -0
  306. package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibolditalic.ttf +0 -0
  307. package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibolditalic.woff +0 -0
  308. package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro.css +0 -39
  309. package/docs/themes/docdock/static/revealjs/lib/js/classList.js +0 -2
  310. package/docs/themes/docdock/static/revealjs/lib/js/head.min.js +0 -9
  311. package/docs/themes/docdock/static/revealjs/lib/js/html5shiv.js +0 -7
  312. package/docs/themes/docdock/static/revealjs/package.json +0 -43
  313. package/docs/themes/docdock/static/revealjs/plugin/highlight/highlight.js +0 -77
  314. package/docs/themes/docdock/static/revealjs/plugin/markdown/example.html +0 -129
  315. package/docs/themes/docdock/static/revealjs/plugin/markdown/example.md +0 -31
  316. package/docs/themes/docdock/static/revealjs/plugin/markdown/markdown.js +0 -412
  317. package/docs/themes/docdock/static/revealjs/plugin/markdown/marked.js +0 -6
  318. package/docs/themes/docdock/static/revealjs/plugin/math/math.js +0 -67
  319. package/docs/themes/docdock/static/revealjs/plugin/multiplex/client.js +0 -13
  320. package/docs/themes/docdock/static/revealjs/plugin/multiplex/index.js +0 -64
  321. package/docs/themes/docdock/static/revealjs/plugin/multiplex/master.js +0 -34
  322. package/docs/themes/docdock/static/revealjs/plugin/multiplex/package.json +0 -19
  323. package/docs/themes/docdock/static/revealjs/plugin/notes/notes.html +0 -759
  324. package/docs/themes/docdock/static/revealjs/plugin/notes/notes.js +0 -155
  325. package/docs/themes/docdock/static/revealjs/plugin/notes-server/client.js +0 -65
  326. package/docs/themes/docdock/static/revealjs/plugin/notes-server/index.js +0 -69
  327. package/docs/themes/docdock/static/revealjs/plugin/notes-server/notes.html +0 -585
  328. package/docs/themes/docdock/static/revealjs/plugin/print-pdf/print-pdf.js +0 -69
  329. package/docs/themes/docdock/static/revealjs/plugin/search/search.js +0 -206
  330. package/docs/themes/docdock/static/revealjs/plugin/zoom-js/zoom.js +0 -272
  331. package/docs/themes/docdock/static/revealjs/test/examples/assets/image1.png +0 -0
  332. package/docs/themes/docdock/static/revealjs/test/examples/assets/image2.png +0 -0
  333. package/docs/themes/docdock/static/revealjs/test/examples/barebones.html +0 -41
  334. package/docs/themes/docdock/static/revealjs/test/examples/embedded-media.html +0 -49
  335. package/docs/themes/docdock/static/revealjs/test/examples/math.html +0 -185
  336. package/docs/themes/docdock/static/revealjs/test/examples/slide-backgrounds.html +0 -144
  337. package/docs/themes/docdock/static/revealjs/test/examples/slide-transitions.html +0 -101
  338. package/docs/themes/docdock/static/revealjs/test/qunit-1.12.0.css +0 -244
  339. package/docs/themes/docdock/static/revealjs/test/qunit-1.12.0.js +0 -2212
  340. package/docs/themes/docdock/static/revealjs/test/simple.md +0 -12
  341. package/docs/themes/docdock/static/revealjs/test/test-markdown-element-attributes.html +0 -134
  342. package/docs/themes/docdock/static/revealjs/test/test-markdown-element-attributes.js +0 -46
  343. package/docs/themes/docdock/static/revealjs/test/test-markdown-external.html +0 -36
  344. package/docs/themes/docdock/static/revealjs/test/test-markdown-external.js +0 -24
  345. package/docs/themes/docdock/static/revealjs/test/test-markdown-options.html +0 -41
  346. package/docs/themes/docdock/static/revealjs/test/test-markdown-options.js +0 -26
  347. package/docs/themes/docdock/static/revealjs/test/test-markdown-slide-attributes.html +0 -128
  348. package/docs/themes/docdock/static/revealjs/test/test-markdown-slide-attributes.js +0 -47
  349. package/docs/themes/docdock/static/revealjs/test/test-markdown.html +0 -52
  350. package/docs/themes/docdock/static/revealjs/test/test-markdown.js +0 -15
  351. package/docs/themes/docdock/static/revealjs/test/test-pdf.html +0 -83
  352. package/docs/themes/docdock/static/revealjs/test/test-pdf.js +0 -15
  353. package/docs/themes/docdock/static/revealjs/test/test.html +0 -86
  354. package/docs/themes/docdock/static/revealjs/test/test.js +0 -597
  355. package/docs/themes/docdock/static/scss/flex/article.scss +0 -356
  356. package/docs/themes/docdock/static/scss/flex/fonts.scss +0 -38
  357. package/docs/themes/docdock/static/scss/flex/footer.scss +0 -45
  358. package/docs/themes/docdock/static/scss/flex/header.scss +0 -89
  359. package/docs/themes/docdock/static/scss/flex/main.scss +0 -164
  360. package/docs/themes/docdock/static/scss/flex/medias.scss +0 -74
  361. package/docs/themes/docdock/static/scss/flex/menu.scss +0 -126
  362. package/docs/themes/docdock/static/scss/flex/shortcode.children.scss +0 -34
  363. package/docs/themes/docdock/static/scss/flex/shortcode.notice.scss +0 -63
  364. package/docs/themes/docdock/static/scss/flex/style.scss +0 -14
  365. package/docs/themes/docdock/static/scss/original/_colours.scss +0 -14
  366. package/docs/themes/docdock/static/scss/original/_functions.scss +0 -89
  367. package/docs/themes/docdock/static/scss/original/_variables.scss +0 -137
  368. package/docs/themes/docdock/static/scss/original/fonts.scss +0 -23
  369. package/docs/themes/docdock/static/scss/original/main.scss +0 -1233
  370. package/docs/themes/docdock/static/scss/original/print.scss +0 -29
  371. package/docs/themes/docdock/static/scss/original/responsive.scss +0 -124
  372. package/docs/themes/docdock/static/scss/original/shortcodes.scss +0 -32
  373. package/docs/themes/docdock/static/scss/original/sidebar.scss +0 -276
  374. package/docs/themes/docdock/static/scss/original/style.scss +0 -16
  375. package/docs/themes/docdock/static/theme-flex/ribbon.png +0 -0
  376. package/docs/themes/docdock/static/theme-flex/script.js +0 -277
  377. package/docs/themes/docdock/static/theme-flex/style.css +0 -728
  378. package/docs/themes/docdock/static/theme-original/script.js +0 -133
  379. package/docs/themes/docdock/static/theme-original/style.css +0 -1411
  380. package/docs/themes/docdock/static/theme-original/variant-blue.css +0 -0
  381. package/docs/themes/docdock/static/theme-original/variant-gold.css +0 -61
  382. package/docs/themes/docdock/static/theme-original/variant-gray.css +0 -61
  383. package/docs/themes/docdock/static/theme-original/variant-green.css +0 -61
  384. package/docs/themes/docdock/theme.toml +0 -22
  385. package/e2e/README.md +0 -10
  386. package/e2e/data/crud.pip.yaml +0 -23
  387. package/e2e/data/test-run.pip.yaml +0 -23
  388. package/e2e/e2e.spec.sh +0 -25
  389. package/e2e/helpers.sh +0 -10
  390. package/e2e/scenarios/agents.sh +0 -1
  391. package/e2e/scenarios/annotations.sh +0 -2
  392. package/e2e/scenarios/boards.sh +0 -3
  393. package/e2e/scenarios/builds.sh +0 -1
  394. package/e2e/scenarios/clusters.sh +0 -1
  395. package/e2e/scenarios/compositions.sh +0 -1
  396. package/e2e/scenarios/contexts.sh +0 -1
  397. package/e2e/scenarios/environments.sh +0 -1
  398. package/e2e/scenarios/helm-repo.sh +0 -1
  399. package/e2e/scenarios/images.sh +0 -1
  400. package/e2e/scenarios/pipeline-run.sh +0 -26
  401. package/e2e/scenarios/pipelines.sh +0 -31
  402. package/e2e/scenarios/projects.sh +0 -17
  403. package/e2e/scenarios/registry.sh +0 -1
  404. package/e2e/scenarios/repository.sh +0 -2
  405. package/e2e/scenarios/runtime-environment.sh +0 -1
  406. package/e2e/scenarios/step-types.sh +0 -1
  407. package/e2e/scenarios/system-runtime-environments.sh +0 -1
  408. package/e2e/scenarios/teams.sh +0 -1
  409. package/e2e/scenarios/tokens.sh +0 -1
  410. package/e2e/scenarios/triggers.sh +0 -3
  411. package/test-setup.js +0 -34
@@ -1,86 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
-
4
- <head>
5
- <meta charset="utf-8">
6
-
7
- <title>reveal.js - Tests</title>
8
-
9
- <link rel="stylesheet" href="../css/reveal.css">
10
- <link rel="stylesheet" href="qunit-1.12.0.css">
11
- </head>
12
-
13
- <body style="overflow: auto;">
14
-
15
- <div id="qunit"></div>
16
- <div id="qunit-fixture"></div>
17
-
18
- <div class="reveal" style="display: none;">
19
-
20
- <div class="slides">
21
-
22
- <section data-background-image="examples/assets/image1.png">
23
- <h1>1</h1>
24
- <img data-src="fake-url.png">
25
- <video data-src="fake-url.mp4"></video>
26
- <audio data-src="fake-url.mp3"></audio>
27
- <aside class="notes">speaker notes 1</aside>
28
- </section>
29
-
30
- <section>
31
- <section data-background="examples/assets/image2.png" data-notes="speaker notes 2">
32
- <h1>2.1</h1>
33
- </section>
34
- <section>
35
- <h1>2.2</h1>
36
- </section>
37
- <section>
38
- <h1>2.3</h1>
39
- </section>
40
- </section>
41
-
42
- <section id="fragment-slides">
43
- <section>
44
- <h1>3.1</h1>
45
- <ul>
46
- <li class="fragment">4.1</li>
47
- <li class="fragment">4.2</li>
48
- <li class="fragment">4.3</li>
49
- </ul>
50
- </section>
51
-
52
- <section>
53
- <h1>3.2</h1>
54
- <ul>
55
- <li class="fragment" data-fragment-index="0">4.1</li>
56
- <li class="fragment" data-fragment-index="0">4.2</li>
57
- </ul>
58
- <iframe data-src="http://example.com"></iframe>
59
- </section>
60
-
61
- <section>
62
- <h1>3.3</h1>
63
- <ul>
64
- <li class="fragment" data-fragment-index="1">3.3.1</li>
65
- <li class="fragment" data-fragment-index="4">3.3.2</li>
66
- <li class="fragment" data-fragment-index="4">3.3.3</li>
67
- </ul>
68
- </section>
69
- </section>
70
-
71
- <section>
72
- <h1>4</h1>
73
- </section>
74
-
75
- </div>
76
-
77
- </div>
78
-
79
- <script src="../lib/js/head.min.js"></script>
80
- <script src="../js/reveal.js"></script>
81
- <script src="qunit-1.12.0.js"></script>
82
-
83
- <script src="test.js"></script>
84
-
85
- </body>
86
- </html>
@@ -1,597 +0,0 @@
1
-
2
- // These tests expect the DOM to contain a presentation
3
- // with the following slide structure:
4
- //
5
- // 1
6
- // 2 - Three sub-slides
7
- // 3 - Three fragment elements
8
- // 3 - Two fragments with same data-fragment-index
9
- // 4
10
-
11
-
12
- Reveal.addEventListener( 'ready', function() {
13
-
14
- // ---------------------------------------------------------------
15
- // DOM TESTS
16
-
17
- QUnit.module( 'DOM' );
18
-
19
- test( 'Initial slides classes', function() {
20
- var horizontalSlides = document.querySelectorAll( '.reveal .slides>section' )
21
-
22
- strictEqual( document.querySelectorAll( '.reveal .slides section.past' ).length, 0, 'no .past slides' );
23
- strictEqual( document.querySelectorAll( '.reveal .slides section.present' ).length, 1, 'one .present slide' );
24
- strictEqual( document.querySelectorAll( '.reveal .slides>section.future' ).length, horizontalSlides.length - 1, 'remaining horizontal slides are .future' );
25
-
26
- strictEqual( document.querySelectorAll( '.reveal .slides section.stack' ).length, 2, 'two .stacks' );
27
-
28
- ok( document.querySelectorAll( '.reveal .slides section.stack' )[0].querySelectorAll( '.future' ).length > 0, 'vertical slides are given .future' );
29
- });
30
-
31
- // ---------------------------------------------------------------
32
- // API TESTS
33
-
34
- QUnit.module( 'API' );
35
-
36
- test( 'Reveal.isReady', function() {
37
- strictEqual( Reveal.isReady(), true, 'returns true' );
38
- });
39
-
40
- test( 'Reveal.isOverview', function() {
41
- strictEqual( Reveal.isOverview(), false, 'false by default' );
42
-
43
- Reveal.toggleOverview();
44
- strictEqual( Reveal.isOverview(), true, 'true after toggling on' );
45
-
46
- Reveal.toggleOverview();
47
- strictEqual( Reveal.isOverview(), false, 'false after toggling off' );
48
- });
49
-
50
- test( 'Reveal.isPaused', function() {
51
- strictEqual( Reveal.isPaused(), false, 'false by default' );
52
-
53
- Reveal.togglePause();
54
- strictEqual( Reveal.isPaused(), true, 'true after pausing' );
55
-
56
- Reveal.togglePause();
57
- strictEqual( Reveal.isPaused(), false, 'false after resuming' );
58
- });
59
-
60
- test( 'Reveal.isFirstSlide', function() {
61
- Reveal.slide( 0, 0 );
62
- strictEqual( Reveal.isFirstSlide(), true, 'true after Reveal.slide( 0, 0 )' );
63
-
64
- Reveal.slide( 1, 0 );
65
- strictEqual( Reveal.isFirstSlide(), false, 'false after Reveal.slide( 1, 0 )' );
66
-
67
- Reveal.slide( 0, 0 );
68
- strictEqual( Reveal.isFirstSlide(), true, 'true after Reveal.slide( 0, 0 )' );
69
- });
70
-
71
- test( 'Reveal.isFirstSlide after vertical slide', function() {
72
- Reveal.slide( 1, 1 );
73
- Reveal.slide( 0, 0 );
74
- strictEqual( Reveal.isFirstSlide(), true, 'true after Reveal.slide( 1, 1 ) and then Reveal.slide( 0, 0 )' );
75
- });
76
-
77
- test( 'Reveal.isLastSlide', function() {
78
- Reveal.slide( 0, 0 );
79
- strictEqual( Reveal.isLastSlide(), false, 'false after Reveal.slide( 0, 0 )' );
80
-
81
- var lastSlideIndex = document.querySelectorAll( '.reveal .slides>section' ).length - 1;
82
-
83
- Reveal.slide( lastSlideIndex, 0 );
84
- strictEqual( Reveal.isLastSlide(), true, 'true after Reveal.slide( '+ lastSlideIndex +', 0 )' );
85
-
86
- Reveal.slide( 0, 0 );
87
- strictEqual( Reveal.isLastSlide(), false, 'false after Reveal.slide( 0, 0 )' );
88
- });
89
-
90
- test( 'Reveal.isLastSlide after vertical slide', function() {
91
- var lastSlideIndex = document.querySelectorAll( '.reveal .slides>section' ).length - 1;
92
-
93
- Reveal.slide( 1, 1 );
94
- Reveal.slide( lastSlideIndex );
95
- strictEqual( Reveal.isLastSlide(), true, 'true after Reveal.slide( 1, 1 ) and then Reveal.slide( '+ lastSlideIndex +', 0 )' );
96
- });
97
-
98
- test( 'Reveal.getTotalSlides', function() {
99
- strictEqual( Reveal.getTotalSlides(), 8, 'eight slides in total' );
100
- });
101
-
102
- test( 'Reveal.getIndices', function() {
103
- var indices = Reveal.getIndices();
104
-
105
- ok( indices.hasOwnProperty( 'h' ), 'h exists' );
106
- ok( indices.hasOwnProperty( 'v' ), 'v exists' );
107
- ok( indices.hasOwnProperty( 'f' ), 'f exists' );
108
-
109
- Reveal.slide( 1, 0 );
110
- strictEqual( Reveal.getIndices().h, 1, 'h 1' );
111
- strictEqual( Reveal.getIndices().v, 0, 'v 0' );
112
-
113
- Reveal.slide( 1, 2 );
114
- strictEqual( Reveal.getIndices().h, 1, 'h 1' );
115
- strictEqual( Reveal.getIndices().v, 2, 'v 2' );
116
-
117
- Reveal.slide( 0, 0 );
118
- strictEqual( Reveal.getIndices().h, 0, 'h 0' );
119
- strictEqual( Reveal.getIndices().v, 0, 'v 0' );
120
- });
121
-
122
- test( 'Reveal.getSlide', function() {
123
- equal( Reveal.getSlide( 0 ), document.querySelector( '.reveal .slides>section:first-child' ), 'gets correct first slide' );
124
- equal( Reveal.getSlide( 1 ), document.querySelector( '.reveal .slides>section:nth-child(2)' ), 'no v index returns stack' );
125
- equal( Reveal.getSlide( 1, 0 ), document.querySelector( '.reveal .slides>section:nth-child(2)>section:nth-child(1)' ), 'v index 0 returns first vertical child' );
126
- equal( Reveal.getSlide( 1, 1 ), document.querySelector( '.reveal .slides>section:nth-child(2)>section:nth-child(2)' ), 'v index 1 returns second vertical child' );
127
-
128
- strictEqual( Reveal.getSlide( 100 ), undefined, 'undefined when out of horizontal bounds' );
129
- strictEqual( Reveal.getSlide( 1, 100 ), undefined, 'undefined when out of vertical bounds' );
130
- });
131
-
132
- test( 'Reveal.getSlideBackground', function() {
133
- equal( Reveal.getSlideBackground( 0 ), document.querySelector( '.reveal .backgrounds>.slide-background:first-child' ), 'gets correct first background' );
134
- equal( Reveal.getSlideBackground( 1 ), document.querySelector( '.reveal .backgrounds>.slide-background:nth-child(2)' ), 'no v index returns stack' );
135
- equal( Reveal.getSlideBackground( 1, 0 ), document.querySelector( '.reveal .backgrounds>.slide-background:nth-child(2) .slide-background:nth-child(1)' ), 'v index 0 returns first vertical child' );
136
- equal( Reveal.getSlideBackground( 1, 1 ), document.querySelector( '.reveal .backgrounds>.slide-background:nth-child(2) .slide-background:nth-child(2)' ), 'v index 1 returns second vertical child' );
137
-
138
- strictEqual( Reveal.getSlideBackground( 100 ), undefined, 'undefined when out of horizontal bounds' );
139
- strictEqual( Reveal.getSlideBackground( 1, 100 ), undefined, 'undefined when out of vertical bounds' );
140
- });
141
-
142
- test( 'Reveal.getSlideNotes', function() {
143
- Reveal.slide( 0, 0 );
144
- ok( Reveal.getSlideNotes() === 'speaker notes 1', 'works with <aside class="notes">' );
145
-
146
- Reveal.slide( 1, 0 );
147
- ok( Reveal.getSlideNotes() === 'speaker notes 2', 'works with <section data-notes="">' );
148
- });
149
-
150
- test( 'Reveal.getPreviousSlide/getCurrentSlide', function() {
151
- Reveal.slide( 0, 0 );
152
- Reveal.slide( 1, 0 );
153
-
154
- var firstSlide = document.querySelector( '.reveal .slides>section:first-child' );
155
- var secondSlide = document.querySelector( '.reveal .slides>section:nth-child(2)>section' );
156
-
157
- equal( Reveal.getPreviousSlide(), firstSlide, 'previous is slide #0' );
158
- equal( Reveal.getCurrentSlide(), secondSlide, 'current is slide #1' );
159
- });
160
-
161
- test( 'Reveal.getProgress', function() {
162
- Reveal.slide( 0, 0 );
163
- strictEqual( Reveal.getProgress(), 0, 'progress is 0 on first slide' );
164
-
165
- var lastSlideIndex = document.querySelectorAll( '.reveal .slides>section' ).length - 1;
166
-
167
- Reveal.slide( lastSlideIndex, 0 );
168
- strictEqual( Reveal.getProgress(), 1, 'progress is 1 on last slide' );
169
- });
170
-
171
- test( 'Reveal.getScale', function() {
172
- ok( typeof Reveal.getScale() === 'number', 'has scale' );
173
- });
174
-
175
- test( 'Reveal.getConfig', function() {
176
- ok( typeof Reveal.getConfig() === 'object', 'has config' );
177
- });
178
-
179
- test( 'Reveal.configure', function() {
180
- strictEqual( Reveal.getConfig().loop, false, '"loop" is false to start with' );
181
-
182
- Reveal.configure({ loop: true });
183
- strictEqual( Reveal.getConfig().loop, true, '"loop" has changed to true' );
184
-
185
- Reveal.configure({ loop: false, customTestValue: 1 });
186
- strictEqual( Reveal.getConfig().customTestValue, 1, 'supports custom values' );
187
- });
188
-
189
- test( 'Reveal.availableRoutes', function() {
190
- Reveal.slide( 0, 0 );
191
- deepEqual( Reveal.availableRoutes(), { left: false, up: false, down: false, right: true }, 'correct for first slide' );
192
-
193
- Reveal.slide( 1, 0 );
194
- deepEqual( Reveal.availableRoutes(), { left: true, up: false, down: true, right: true }, 'correct for vertical slide' );
195
- });
196
-
197
- test( 'Reveal.next', function() {
198
- Reveal.slide( 0, 0 );
199
-
200
- // Step through vertical child slides
201
- Reveal.next();
202
- deepEqual( Reveal.getIndices(), { h: 1, v: 0, f: undefined } );
203
-
204
- Reveal.next();
205
- deepEqual( Reveal.getIndices(), { h: 1, v: 1, f: undefined } );
206
-
207
- Reveal.next();
208
- deepEqual( Reveal.getIndices(), { h: 1, v: 2, f: undefined } );
209
-
210
- // Step through fragments
211
- Reveal.next();
212
- deepEqual( Reveal.getIndices(), { h: 2, v: 0, f: -1 } );
213
-
214
- Reveal.next();
215
- deepEqual( Reveal.getIndices(), { h: 2, v: 0, f: 0 } );
216
-
217
- Reveal.next();
218
- deepEqual( Reveal.getIndices(), { h: 2, v: 0, f: 1 } );
219
-
220
- Reveal.next();
221
- deepEqual( Reveal.getIndices(), { h: 2, v: 0, f: 2 } );
222
- });
223
-
224
- test( 'Reveal.next at end', function() {
225
- Reveal.slide( 3 );
226
-
227
- // We're at the end, this should have no effect
228
- Reveal.next();
229
- deepEqual( Reveal.getIndices(), { h: 3, v: 0, f: undefined } );
230
-
231
- Reveal.next();
232
- deepEqual( Reveal.getIndices(), { h: 3, v: 0, f: undefined } );
233
- });
234
-
235
-
236
- // ---------------------------------------------------------------
237
- // FRAGMENT TESTS
238
-
239
- QUnit.module( 'Fragments' );
240
-
241
- test( 'Sliding to fragments', function() {
242
- Reveal.slide( 2, 0, -1 );
243
- deepEqual( Reveal.getIndices(), { h: 2, v: 0, f: -1 }, 'Reveal.slide( 2, 0, -1 )' );
244
-
245
- Reveal.slide( 2, 0, 0 );
246
- deepEqual( Reveal.getIndices(), { h: 2, v: 0, f: 0 }, 'Reveal.slide( 2, 0, 0 )' );
247
-
248
- Reveal.slide( 2, 0, 2 );
249
- deepEqual( Reveal.getIndices(), { h: 2, v: 0, f: 2 }, 'Reveal.slide( 2, 0, 2 )' );
250
-
251
- Reveal.slide( 2, 0, 1 );
252
- deepEqual( Reveal.getIndices(), { h: 2, v: 0, f: 1 }, 'Reveal.slide( 2, 0, 1 )' );
253
- });
254
-
255
- test( 'Hiding all fragments', function() {
256
- var fragmentSlide = document.querySelector( '#fragment-slides>section:nth-child(1)' );
257
-
258
- Reveal.slide( 2, 0, 0 );
259
- strictEqual( fragmentSlide.querySelectorAll( '.fragment.visible' ).length, 1, 'one fragment visible when index is 0' );
260
-
261
- Reveal.slide( 2, 0, -1 );
262
- strictEqual( fragmentSlide.querySelectorAll( '.fragment.visible' ).length, 0, 'no fragments visible when index is -1' );
263
- });
264
-
265
- test( 'Current fragment', function() {
266
- var fragmentSlide = document.querySelector( '#fragment-slides>section:nth-child(1)' );
267
-
268
- Reveal.slide( 2, 0 );
269
- strictEqual( fragmentSlide.querySelectorAll( '.fragment.current-fragment' ).length, 0, 'no current fragment at index -1' );
270
-
271
- Reveal.slide( 2, 0, 0 );
272
- strictEqual( fragmentSlide.querySelectorAll( '.fragment.current-fragment' ).length, 1, 'one current fragment at index 0' );
273
-
274
- Reveal.slide( 1, 0, 0 );
275
- strictEqual( fragmentSlide.querySelectorAll( '.fragment.current-fragment' ).length, 0, 'no current fragment when navigating to previous slide' );
276
-
277
- Reveal.slide( 3, 0, 0 );
278
- strictEqual( fragmentSlide.querySelectorAll( '.fragment.current-fragment' ).length, 0, 'no current fragment when navigating to next slide' );
279
- });
280
-
281
- test( 'Stepping through fragments', function() {
282
- Reveal.slide( 2, 0, -1 );
283
-
284
- // forwards:
285
-
286
- Reveal.next();
287
- deepEqual( Reveal.getIndices(), { h: 2, v: 0, f: 0 }, 'next() goes to next fragment' );
288
-
289
- Reveal.right();
290
- deepEqual( Reveal.getIndices(), { h: 2, v: 0, f: 1 }, 'right() goes to next fragment' );
291
-
292
- Reveal.down();
293
- deepEqual( Reveal.getIndices(), { h: 2, v: 0, f: 2 }, 'down() goes to next fragment' );
294
-
295
- Reveal.down(); // moves to f #3
296
-
297
- // backwards:
298
-
299
- Reveal.prev();
300
- deepEqual( Reveal.getIndices(), { h: 2, v: 0, f: 2 }, 'prev() goes to prev fragment' );
301
-
302
- Reveal.left();
303
- deepEqual( Reveal.getIndices(), { h: 2, v: 0, f: 1 }, 'left() goes to prev fragment' );
304
-
305
- Reveal.up();
306
- deepEqual( Reveal.getIndices(), { h: 2, v: 0, f: 0 }, 'up() goes to prev fragment' );
307
- });
308
-
309
- test( 'Stepping past fragments', function() {
310
- var fragmentSlide = document.querySelector( '#fragment-slides>section:nth-child(1)' );
311
-
312
- Reveal.slide( 0, 0, 0 );
313
- equal( fragmentSlide.querySelectorAll( '.fragment.visible' ).length, 0, 'no fragments visible when on previous slide' );
314
-
315
- Reveal.slide( 3, 0, 0 );
316
- equal( fragmentSlide.querySelectorAll( '.fragment.visible' ).length, 3, 'all fragments visible when on future slide' );
317
- });
318
-
319
- test( 'Fragment indices', function() {
320
- var fragmentSlide = document.querySelector( '#fragment-slides>section:nth-child(2)' );
321
-
322
- Reveal.slide( 3, 0, 0 );
323
- equal( fragmentSlide.querySelectorAll( '.fragment.visible' ).length, 2, 'both fragments of same index are shown' );
324
-
325
- // This slide has three fragments, first one is index 0, second and third have index 1
326
- Reveal.slide( 2, 2, 0 );
327
- equal( Reveal.getIndices().f, 0, 'returns correct index for first fragment' );
328
-
329
- Reveal.slide( 2, 2, 1 );
330
- equal( Reveal.getIndices().f, 1, 'returns correct index for two fragments with same index' );
331
- });
332
-
333
- test( 'Index generation', function() {
334
- var fragmentSlide = document.querySelector( '#fragment-slides>section:nth-child(1)' );
335
-
336
- // These have no indices defined to start with
337
- equal( fragmentSlide.querySelectorAll( '.fragment' )[0].getAttribute( 'data-fragment-index' ), '0' );
338
- equal( fragmentSlide.querySelectorAll( '.fragment' )[1].getAttribute( 'data-fragment-index' ), '1' );
339
- equal( fragmentSlide.querySelectorAll( '.fragment' )[2].getAttribute( 'data-fragment-index' ), '2' );
340
- });
341
-
342
- test( 'Index normalization', function() {
343
- var fragmentSlide = document.querySelector( '#fragment-slides>section:nth-child(3)' );
344
-
345
- // These start out as 1-4-4 and should normalize to 0-1-1
346
- equal( fragmentSlide.querySelectorAll( '.fragment' )[0].getAttribute( 'data-fragment-index' ), '0' );
347
- equal( fragmentSlide.querySelectorAll( '.fragment' )[1].getAttribute( 'data-fragment-index' ), '1' );
348
- equal( fragmentSlide.querySelectorAll( '.fragment' )[2].getAttribute( 'data-fragment-index' ), '1' );
349
- });
350
-
351
- asyncTest( 'fragmentshown event', function() {
352
- expect( 2 );
353
-
354
- var _onEvent = function( event ) {
355
- ok( true, 'event fired' );
356
- }
357
-
358
- Reveal.addEventListener( 'fragmentshown', _onEvent );
359
-
360
- Reveal.slide( 2, 0 );
361
- Reveal.slide( 2, 0 ); // should do nothing
362
- Reveal.slide( 2, 0, 0 ); // should do nothing
363
- Reveal.next();
364
- Reveal.next();
365
- Reveal.prev(); // shouldn't fire fragmentshown
366
-
367
- start();
368
-
369
- Reveal.removeEventListener( 'fragmentshown', _onEvent );
370
- });
371
-
372
- asyncTest( 'fragmenthidden event', function() {
373
- expect( 2 );
374
-
375
- var _onEvent = function( event ) {
376
- ok( true, 'event fired' );
377
- }
378
-
379
- Reveal.addEventListener( 'fragmenthidden', _onEvent );
380
-
381
- Reveal.slide( 2, 0, 2 );
382
- Reveal.slide( 2, 0, 2 ); // should do nothing
383
- Reveal.prev();
384
- Reveal.prev();
385
- Reveal.next(); // shouldn't fire fragmenthidden
386
-
387
- start();
388
-
389
- Reveal.removeEventListener( 'fragmenthidden', _onEvent );
390
- });
391
-
392
-
393
- // ---------------------------------------------------------------
394
- // AUTO-SLIDE TESTS
395
-
396
- QUnit.module( 'Auto Sliding' );
397
-
398
- test( 'Reveal.isAutoSliding', function() {
399
- strictEqual( Reveal.isAutoSliding(), false, 'false by default' );
400
-
401
- Reveal.configure({ autoSlide: 10000 });
402
- strictEqual( Reveal.isAutoSliding(), true, 'true after starting' );
403
-
404
- Reveal.configure({ autoSlide: 0 });
405
- strictEqual( Reveal.isAutoSliding(), false, 'false after setting to 0' );
406
- });
407
-
408
- test( 'Reveal.toggleAutoSlide', function() {
409
- Reveal.configure({ autoSlide: 10000 });
410
-
411
- Reveal.toggleAutoSlide();
412
- strictEqual( Reveal.isAutoSliding(), false, 'false after first toggle' );
413
- Reveal.toggleAutoSlide();
414
- strictEqual( Reveal.isAutoSliding(), true, 'true after second toggle' );
415
-
416
- Reveal.configure({ autoSlide: 0 });
417
- });
418
-
419
- asyncTest( 'autoslidepaused', function() {
420
- expect( 1 );
421
-
422
- var _onEvent = function( event ) {
423
- ok( true, 'event fired' );
424
- }
425
-
426
- Reveal.addEventListener( 'autoslidepaused', _onEvent );
427
- Reveal.configure({ autoSlide: 10000 });
428
- Reveal.toggleAutoSlide();
429
-
430
- start();
431
-
432
- // cleanup
433
- Reveal.configure({ autoSlide: 0 });
434
- Reveal.removeEventListener( 'autoslidepaused', _onEvent );
435
- });
436
-
437
- asyncTest( 'autoslideresumed', function() {
438
- expect( 1 );
439
-
440
- var _onEvent = function( event ) {
441
- ok( true, 'event fired' );
442
- }
443
-
444
- Reveal.addEventListener( 'autoslideresumed', _onEvent );
445
- Reveal.configure({ autoSlide: 10000 });
446
- Reveal.toggleAutoSlide();
447
- Reveal.toggleAutoSlide();
448
-
449
- start();
450
-
451
- // cleanup
452
- Reveal.configure({ autoSlide: 0 });
453
- Reveal.removeEventListener( 'autoslideresumed', _onEvent );
454
- });
455
-
456
-
457
- // ---------------------------------------------------------------
458
- // CONFIGURATION VALUES
459
-
460
- QUnit.module( 'Configuration' );
461
-
462
- test( 'Controls', function() {
463
- var controlsElement = document.querySelector( '.reveal>.controls' );
464
-
465
- Reveal.configure({ controls: false });
466
- equal( controlsElement.style.display, 'none', 'controls are hidden' );
467
-
468
- Reveal.configure({ controls: true });
469
- equal( controlsElement.style.display, 'block', 'controls are visible' );
470
- });
471
-
472
- test( 'Progress', function() {
473
- var progressElement = document.querySelector( '.reveal>.progress' );
474
-
475
- Reveal.configure({ progress: false });
476
- equal( progressElement.style.display, 'none', 'progress are hidden' );
477
-
478
- Reveal.configure({ progress: true });
479
- equal( progressElement.style.display, 'block', 'progress are visible' );
480
- });
481
-
482
- test( 'Loop', function() {
483
- Reveal.configure({ loop: true });
484
-
485
- Reveal.slide( 0, 0 );
486
-
487
- Reveal.left();
488
- notEqual( Reveal.getIndices().h, 0, 'looped from start to end' );
489
-
490
- Reveal.right();
491
- equal( Reveal.getIndices().h, 0, 'looped from end to start' );
492
-
493
- Reveal.configure({ loop: false });
494
- });
495
-
496
-
497
- // ---------------------------------------------------------------
498
- // LAZY-LOADING TESTS
499
-
500
- QUnit.module( 'Lazy-Loading' );
501
-
502
- test( 'img with data-src', function() {
503
- strictEqual( document.querySelectorAll( '.reveal section img[src]' ).length, 1, 'Image source has been set' );
504
- });
505
-
506
- test( 'video with data-src', function() {
507
- strictEqual( document.querySelectorAll( '.reveal section video[src]' ).length, 1, 'Video source has been set' );
508
- });
509
-
510
- test( 'audio with data-src', function() {
511
- strictEqual( document.querySelectorAll( '.reveal section audio[src]' ).length, 1, 'Audio source has been set' );
512
- });
513
-
514
- test( 'iframe with data-src', function() {
515
- Reveal.slide( 0, 0 );
516
- strictEqual( document.querySelectorAll( '.reveal section iframe[src]' ).length, 0, 'Iframe source is not set' );
517
- Reveal.slide( 2, 1 );
518
- strictEqual( document.querySelectorAll( '.reveal section iframe[src]' ).length, 1, 'Iframe source is set' );
519
- Reveal.slide( 2, 2 );
520
- strictEqual( document.querySelectorAll( '.reveal section iframe[src]' ).length, 0, 'Iframe source is not set' );
521
- });
522
-
523
- test( 'background images', function() {
524
- var imageSource1 = Reveal.getSlide( 0 ).getAttribute( 'data-background-image' );
525
- var imageSource2 = Reveal.getSlide( 1, 0 ).getAttribute( 'data-background' );
526
-
527
- // check that the images are applied to the background elements
528
- ok( Reveal.getSlideBackground( 0 ).style.backgroundImage.indexOf( imageSource1 ) !== -1, 'data-background-image worked' );
529
- ok( Reveal.getSlideBackground( 1, 0 ).style.backgroundImage.indexOf( imageSource2 ) !== -1, 'data-background worked' );
530
- });
531
-
532
-
533
- // ---------------------------------------------------------------
534
- // EVENT TESTS
535
-
536
- QUnit.module( 'Events' );
537
-
538
- asyncTest( 'slidechanged', function() {
539
- expect( 3 );
540
-
541
- var _onEvent = function( event ) {
542
- ok( true, 'event fired' );
543
- }
544
-
545
- Reveal.addEventListener( 'slidechanged', _onEvent );
546
-
547
- Reveal.slide( 1, 0 ); // should trigger
548
- Reveal.slide( 1, 0 ); // should do nothing
549
- Reveal.next(); // should trigger
550
- Reveal.slide( 3, 0 ); // should trigger
551
- Reveal.next(); // should do nothing
552
-
553
- start();
554
-
555
- Reveal.removeEventListener( 'slidechanged', _onEvent );
556
-
557
- });
558
-
559
- asyncTest( 'paused', function() {
560
- expect( 1 );
561
-
562
- var _onEvent = function( event ) {
563
- ok( true, 'event fired' );
564
- }
565
-
566
- Reveal.addEventListener( 'paused', _onEvent );
567
-
568
- Reveal.togglePause();
569
- Reveal.togglePause();
570
-
571
- start();
572
-
573
- Reveal.removeEventListener( 'paused', _onEvent );
574
- });
575
-
576
- asyncTest( 'resumed', function() {
577
- expect( 1 );
578
-
579
- var _onEvent = function( event ) {
580
- ok( true, 'event fired' );
581
- }
582
-
583
- Reveal.addEventListener( 'resumed', _onEvent );
584
-
585
- Reveal.togglePause();
586
- Reveal.togglePause();
587
-
588
- start();
589
-
590
- Reveal.removeEventListener( 'resumed', _onEvent );
591
- });
592
-
593
-
594
- } );
595
-
596
- Reveal.initialize();
597
-