codefresh 0.78.2
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.
- package/.dockerignore +14 -0
- package/.eslintrc.js +20 -0
- package/.gitattributes +29 -0
- package/.nvmrc +1 -0
- package/Dockerfile +39 -0
- package/LICENSE +21 -0
- package/README.md +55 -0
- package/__mocks__/requestretry.js +35 -0
- package/brew/template.rb +15 -0
- package/check-version.js +13 -0
- package/cli.gif +0 -0
- package/codefresh-arm.yml +54 -0
- package/codefresh-release.yml +173 -0
- package/codefresh.yml +120 -0
- package/docs/archetypes/default.md +6 -0
- package/docs/config.toml +44 -0
- package/docs/content/_header.md +6 -0
- package/docs/content/_index.md +19 -0
- package/docs/content/contexts/spec/_index.md +28 -0
- package/docs/content/contexts/spec/config.md +30 -0
- package/docs/content/contexts/spec/helm-repository.md +16 -0
- package/docs/content/contexts/spec/secret-yaml.md +32 -0
- package/docs/content/contexts/spec/secret.md +30 -0
- package/docs/content/contexts/spec/yaml.md +30 -0
- package/docs/content/external-resources.md +8 -0
- package/docs/content/getting-started/_index.md +28 -0
- package/docs/content/installation/_index.md +13 -0
- package/docs/content/installation/docker.md +15 -0
- package/docs/content/installation/homebrew.md +29 -0
- package/docs/content/installation/npm.md +22 -0
- package/docs/content/installation/yarn.md +22 -0
- package/docs/content/more/_index.md +7 -0
- package/docs/content/operate on resources/_index.md +10 -0
- package/docs/content/pipelines/Run Pipeline.md +38 -0
- package/docs/content/pipelines/spec.md +190 -0
- package/docs/docs.spec.js +8 -0
- package/docs/index.js +407 -0
- package/docs/layouts/partials/menu-footer.html +13 -0
- package/docs/themes/docdock/LICENSE.md +22 -0
- package/docs/themes/docdock/README.md +129 -0
- package/docs/themes/docdock/archetypes/default.md +9 -0
- package/docs/themes/docdock/archetypes/slide.md +46 -0
- package/docs/themes/docdock/exampleSite/config.toml +68 -0
- package/docs/themes/docdock/exampleSite/content/_index.md +50 -0
- package/docs/themes/docdock/exampleSite/content/content-organisation/_index.md +138 -0
- package/docs/themes/docdock/exampleSite/content/content-organisation/customize-style/_index.md +66 -0
- package/docs/themes/docdock/exampleSite/content/content-organisation/customize-style/disable.md +24 -0
- package/docs/themes/docdock/exampleSite/content/content-organisation/customize-style/theme-variants.md +35 -0
- package/docs/themes/docdock/exampleSite/content/content-organisation/customize-style/themestyle.md +25 -0
- package/docs/themes/docdock/exampleSite/content/content-organisation/extramenu.md +28 -0
- package/docs/themes/docdock/exampleSite/content/content-organisation/logo.md +12 -0
- package/docs/themes/docdock/exampleSite/content/create-page/_index.md +54 -0
- package/docs/themes/docdock/exampleSite/content/create-page/homepage.md +8 -0
- package/docs/themes/docdock/exampleSite/content/create-page/myslide.md +48 -0
- package/docs/themes/docdock/exampleSite/content/create-page/page-images.md +28 -0
- package/docs/themes/docdock/exampleSite/content/create-page/page-slide.md +114 -0
- package/docs/themes/docdock/exampleSite/content/credits.md +44 -0
- package/docs/themes/docdock/exampleSite/content/getting-start/_index.md +12 -0
- package/docs/themes/docdock/exampleSite/content/getting-start/configuration.md +56 -0
- package/docs/themes/docdock/exampleSite/content/getting-start/installation.md +83 -0
- package/docs/themes/docdock/exampleSite/content/search/_index.md +13 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/_index.md +10 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/alert.md +30 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/attachments.files/BachGavotteShort.mp3 +0 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/attachments.files/Carroll_AliceAuPaysDesMerveilles.pdf +0 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/attachments.files/adivorciarsetoca00cape.pdf +0 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/attachments.files/hugo.png +0 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/attachments.files/movieselectricsheep-flock-244-32500-2.mp4 +0 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/attachments.md +59 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/button.md +37 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/children/_index.md +46 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/children/children-1/_index.md +6 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/children/children-1/children-1-1/_index.md +6 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/_index.md +6 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/children-1-1-1-1/_index.md +6 -0
- 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 +6 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/children/children-2/_index.md +11 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/children/children-2/test3.md +6 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/children/children-3/_index.md +6 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/children/children-4/_index.md +7 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/children/test.md +6 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/excerpt-include.md +25 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/excerpt.md +39 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/expand.md +41 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/icon.md +1254 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/mermaid.md +98 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/notice.md +61 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/panel.md +60 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/revealjs.md +119 -0
- package/docs/themes/docdock/exampleSite/content/showcase.md +15 -0
- package/docs/themes/docdock/exampleSite/layouts/partials/custom-head.html +10 -0
- package/docs/themes/docdock/exampleSite/layouts/partials/menu-footer.html +13 -0
- package/docs/themes/docdock/exampleSite/layouts/shortcodes/ghcontributors.html +31 -0
- package/docs/themes/docdock/exampleSite/static/menu-entry-icon.png +0 -0
- package/docs/themes/docdock/exampleSite/static/showcase/bitfan.site.png +0 -0
- package/docs/themes/docdock/exampleSite/static/showcase/invincible.site.png +0 -0
- package/docs/themes/docdock/exampleSite/static/style-flex.png +0 -0
- package/docs/themes/docdock/exampleSite/static/style-original.png +0 -0
- package/docs/themes/docdock/exampleSite/static/variant-gold.png +0 -0
- package/docs/themes/docdock/exampleSite/static/variant-gray.png +0 -0
- package/docs/themes/docdock/exampleSite/static/variant-green.png +0 -0
- package/docs/themes/docdock/i18n/en.toml +44 -0
- package/docs/themes/docdock/i18n/es.toml +26 -0
- package/docs/themes/docdock/i18n/fr.toml +44 -0
- package/docs/themes/docdock/i18n/nb.toml +38 -0
- package/docs/themes/docdock/images/screenshot.png +0 -0
- package/docs/themes/docdock/images/tn.png +0 -0
- package/docs/themes/docdock/layouts/404.html +39 -0
- package/docs/themes/docdock/layouts/_default/baseof.html +32 -0
- package/docs/themes/docdock/layouts/_default/li.html +22 -0
- package/docs/themes/docdock/layouts/_default/list.html +20 -0
- package/docs/themes/docdock/layouts/_default/single.html +3 -0
- package/docs/themes/docdock/layouts/index.html +30 -0
- package/docs/themes/docdock/layouts/index.json +12 -0
- package/docs/themes/docdock/layouts/partials/breadcrumb.html +8 -0
- package/docs/themes/docdock/layouts/partials/custom-content-footer.html +6 -0
- package/docs/themes/docdock/layouts/partials/custom-footer.html +0 -0
- package/docs/themes/docdock/layouts/partials/custom-head.html +2 -0
- package/docs/themes/docdock/layouts/partials/flex/body-aftercontent.html +54 -0
- package/docs/themes/docdock/layouts/partials/flex/body-beforecontent.html +68 -0
- package/docs/themes/docdock/layouts/partials/flex/head.html +17 -0
- package/docs/themes/docdock/layouts/partials/flex/scripts.html +11 -0
- package/docs/themes/docdock/layouts/partials/flex/selectnavigation.html +58 -0
- package/docs/themes/docdock/layouts/partials/header.html +10 -0
- package/docs/themes/docdock/layouts/partials/language-selector.html +18 -0
- package/docs/themes/docdock/layouts/partials/menu-footer.html +0 -0
- package/docs/themes/docdock/layouts/partials/menu.html +82 -0
- package/docs/themes/docdock/layouts/partials/next-prev-page.html +44 -0
- package/docs/themes/docdock/layouts/partials/original/body-aftercontent.html +13 -0
- package/docs/themes/docdock/layouts/partials/original/body-beforecontent.html +128 -0
- package/docs/themes/docdock/layouts/partials/original/head.html +23 -0
- package/docs/themes/docdock/layouts/partials/original/scripts.html +10 -0
- package/docs/themes/docdock/layouts/partials/pagination.html +9 -0
- package/docs/themes/docdock/layouts/shortcodes/alert.html +6 -0
- package/docs/themes/docdock/layouts/shortcodes/anchor.html +1 -0
- package/docs/themes/docdock/layouts/shortcodes/anchorlink.html +1 -0
- package/docs/themes/docdock/layouts/shortcodes/attachmentlink.html +5 -0
- package/docs/themes/docdock/layouts/shortcodes/attachments.html +33 -0
- package/docs/themes/docdock/layouts/shortcodes/button.html +6 -0
- package/docs/themes/docdock/layouts/shortcodes/children.html +104 -0
- package/docs/themes/docdock/layouts/shortcodes/code.html +1 -0
- package/docs/themes/docdock/layouts/shortcodes/emoticon.html +29 -0
- package/docs/themes/docdock/layouts/shortcodes/excerpt-include.html +14 -0
- package/docs/themes/docdock/layouts/shortcodes/excerpt.html +7 -0
- package/docs/themes/docdock/layouts/shortcodes/expand.html +16 -0
- package/docs/themes/docdock/layouts/shortcodes/header.html +16 -0
- package/docs/themes/docdock/layouts/shortcodes/icon.html +13 -0
- package/docs/themes/docdock/layouts/shortcodes/image.html +5 -0
- package/docs/themes/docdock/layouts/shortcodes/info.html +10 -0
- package/docs/themes/docdock/layouts/shortcodes/label.html +1 -0
- package/docs/themes/docdock/layouts/shortcodes/mermaid.html +3 -0
- package/docs/themes/docdock/layouts/shortcodes/note.html +4 -0
- package/docs/themes/docdock/layouts/shortcodes/notice.html +1 -0
- package/docs/themes/docdock/layouts/shortcodes/pagelink.html +12 -0
- package/docs/themes/docdock/layouts/shortcodes/pagetreesearch.html +1 -0
- package/docs/themes/docdock/layouts/shortcodes/panel.html +5 -0
- package/docs/themes/docdock/layouts/shortcodes/recently-updated.html +7 -0
- package/docs/themes/docdock/layouts/shortcodes/relref.html +14 -0
- package/docs/themes/docdock/layouts/shortcodes/revealjs.html +66 -0
- package/docs/themes/docdock/layouts/shortcodes/section.html +1 -0
- package/docs/themes/docdock/layouts/shortcodes/task.html +10 -0
- package/docs/themes/docdock/layouts/shortcodes/tasklist.html +4 -0
- package/docs/themes/docdock/layouts/shortcodes/tip.html +10 -0
- package/docs/themes/docdock/layouts/shortcodes/toc.html +2 -0
- package/docs/themes/docdock/layouts/shortcodes/unknow.html +1 -0
- package/docs/themes/docdock/layouts/shortcodes/userlink.html +1 -0
- package/docs/themes/docdock/layouts/shortcodes/viewppt.html +5 -0
- package/docs/themes/docdock/layouts/shortcodes/viewxls.html +5 -0
- package/docs/themes/docdock/layouts/shortcodes/warning.html +12 -0
- package/docs/themes/docdock/layouts/shortcodes/well.html +1 -0
- package/docs/themes/docdock/layouts/slide/single.html +38 -0
- package/docs/themes/docdock/static/css/auto-complete.css +49 -0
- package/docs/themes/docdock/static/css/bootstrap.min.css +1884 -0
- package/docs/themes/docdock/static/css/featherlight.min.css +8 -0
- package/docs/themes/docdock/static/css/font-awesome.min.css +4 -0
- package/docs/themes/docdock/static/css/horsey.css +35 -0
- package/docs/themes/docdock/static/css/hybrid.css +102 -0
- package/docs/themes/docdock/static/css/nucleus.css +617 -0
- package/docs/themes/docdock/static/fonts/FontAwesome.otf +0 -0
- package/docs/themes/docdock/static/fonts/Inconsolata.eot +0 -0
- package/docs/themes/docdock/static/fonts/Inconsolata.svg +359 -0
- package/docs/themes/docdock/static/fonts/Inconsolata.ttf +0 -0
- package/docs/themes/docdock/static/fonts/Inconsolata.woff +0 -0
- package/docs/themes/docdock/static/fonts/Lato-Bold.ttf +0 -0
- package/docs/themes/docdock/static/fonts/Lato-Bold.woff2 +0 -0
- package/docs/themes/docdock/static/fonts/Lato-Regular.ttf +0 -0
- package/docs/themes/docdock/static/fonts/Lato-Regular.woff2 +0 -0
- package/docs/themes/docdock/static/fonts/Novecentosanswide-Normal-webfont.eot +0 -0
- package/docs/themes/docdock/static/fonts/Novecentosanswide-Normal-webfont.svg +1019 -0
- package/docs/themes/docdock/static/fonts/Novecentosanswide-Normal-webfont.ttf +0 -0
- package/docs/themes/docdock/static/fonts/Novecentosanswide-Normal-webfont.woff +0 -0
- package/docs/themes/docdock/static/fonts/Novecentosanswide-Normal-webfont.woff2 +0 -0
- package/docs/themes/docdock/static/fonts/Novecentosanswide-UltraLight-webfont.eot +0 -0
- package/docs/themes/docdock/static/fonts/Novecentosanswide-UltraLight-webfont.svg +918 -0
- package/docs/themes/docdock/static/fonts/Novecentosanswide-UltraLight-webfont.ttf +0 -0
- package/docs/themes/docdock/static/fonts/Novecentosanswide-UltraLight-webfont.woff +0 -0
- package/docs/themes/docdock/static/fonts/Novecentosanswide-UltraLight-webfont.woff2 +0 -0
- package/docs/themes/docdock/static/fonts/Roboto-Italic.ttf +0 -0
- package/docs/themes/docdock/static/fonts/Roboto-Medium.ttf +0 -0
- package/docs/themes/docdock/static/fonts/Roboto-Regular.ttf +0 -0
- package/docs/themes/docdock/static/fonts/RobotoMono-Medium.ttf +0 -0
- package/docs/themes/docdock/static/fonts/RobotoMono-Regular.ttf +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_200.eot +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_200.svg +332 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_200.ttf +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_200.woff +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_200.woff2 +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_300.eot +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_300.svg +331 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_300.ttf +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_300.woff +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_300.woff2 +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_500.eot +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_500.svg +333 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_500.ttf +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_500.woff +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_500.woff2 +0 -0
- package/docs/themes/docdock/static/fonts/fontawesome-webfont.eot +0 -0
- package/docs/themes/docdock/static/fonts/fontawesome-webfont.svg +2671 -0
- package/docs/themes/docdock/static/fonts/fontawesome-webfont.ttf +0 -0
- package/docs/themes/docdock/static/fonts/fontawesome-webfont.woff +0 -0
- package/docs/themes/docdock/static/fonts/fontawesome-webfont.woff2 +0 -0
- package/docs/themes/docdock/static/fonts/glyphicons-halflings-regular.eot +0 -0
- package/docs/themes/docdock/static/fonts/glyphicons-halflings-regular.svg +288 -0
- package/docs/themes/docdock/static/fonts/glyphicons-halflings-regular.ttf +0 -0
- package/docs/themes/docdock/static/fonts/glyphicons-halflings-regular.woff +0 -0
- package/docs/themes/docdock/static/fonts/glyphicons-halflings-regular.woff2 +0 -0
- package/docs/themes/docdock/static/images/clippy.svg +4 -0
- package/docs/themes/docdock/static/images/favicon.png +0 -0
- package/docs/themes/docdock/static/images/gopher-404.jpg +0 -0
- package/docs/themes/docdock/static/js/auto-complete.js +223 -0
- package/docs/themes/docdock/static/js/clipboard.min.js +7 -0
- package/docs/themes/docdock/static/js/docdock.js +309 -0
- package/docs/themes/docdock/static/js/featherlight.min.js +8 -0
- package/docs/themes/docdock/static/js/highlight.pack.js +2 -0
- package/docs/themes/docdock/static/js/html5shiv-printshiv.min.js +4 -0
- package/docs/themes/docdock/static/js/jquery-2.x.min.js +4 -0
- package/docs/themes/docdock/static/js/lunr.min.js +6 -0
- package/docs/themes/docdock/static/js/modernizr.custom.71422.js +4 -0
- package/docs/themes/docdock/static/js/search.js +91 -0
- package/docs/themes/docdock/static/mermaid/mermaid.css +273 -0
- package/docs/themes/docdock/static/mermaid/mermaid.dark.css +275 -0
- package/docs/themes/docdock/static/mermaid/mermaid.forest.css +353 -0
- package/docs/themes/docdock/static/mermaid/mermaid.js +30 -0
- package/docs/themes/docdock/static/none.html +0 -0
- package/docs/themes/docdock/static/revealjs/.travis.yml +5 -0
- package/docs/themes/docdock/static/revealjs/CONTRIBUTING.md +23 -0
- package/docs/themes/docdock/static/revealjs/Gruntfile.js +192 -0
- package/docs/themes/docdock/static/revealjs/LICENSE +19 -0
- package/docs/themes/docdock/static/revealjs/README.md +1238 -0
- package/docs/themes/docdock/static/revealjs/bower.json +27 -0
- package/docs/themes/docdock/static/revealjs/css/print/paper.css +203 -0
- package/docs/themes/docdock/static/revealjs/css/print/pdf.css +178 -0
- package/docs/themes/docdock/static/revealjs/css/reveal.css +1555 -0
- package/docs/themes/docdock/static/revealjs/css/reveal.scss +1717 -0
- package/docs/themes/docdock/static/revealjs/css/theme/README.md +21 -0
- package/docs/themes/docdock/static/revealjs/css/theme/beige.css +268 -0
- package/docs/themes/docdock/static/revealjs/css/theme/black.css +264 -0
- package/docs/themes/docdock/static/revealjs/css/theme/blood.css +287 -0
- package/docs/themes/docdock/static/revealjs/css/theme/league.css +270 -0
- package/docs/themes/docdock/static/revealjs/css/theme/moon.css +268 -0
- package/docs/themes/docdock/static/revealjs/css/theme/night.css +262 -0
- package/docs/themes/docdock/static/revealjs/css/theme/serif.css +264 -0
- package/docs/themes/docdock/static/revealjs/css/theme/simple.css +267 -0
- package/docs/themes/docdock/static/revealjs/css/theme/sky.css +271 -0
- package/docs/themes/docdock/static/revealjs/css/theme/solarized.css +268 -0
- package/docs/themes/docdock/static/revealjs/css/theme/source/beige.scss +39 -0
- package/docs/themes/docdock/static/revealjs/css/theme/source/black.scss +49 -0
- package/docs/themes/docdock/static/revealjs/css/theme/source/blood.scss +78 -0
- package/docs/themes/docdock/static/revealjs/css/theme/source/league.scss +34 -0
- package/docs/themes/docdock/static/revealjs/css/theme/source/moon.scss +57 -0
- package/docs/themes/docdock/static/revealjs/css/theme/source/night.scss +34 -0
- package/docs/themes/docdock/static/revealjs/css/theme/source/serif.scss +35 -0
- package/docs/themes/docdock/static/revealjs/css/theme/source/simple.scss +43 -0
- package/docs/themes/docdock/static/revealjs/css/theme/source/sky.scss +46 -0
- package/docs/themes/docdock/static/revealjs/css/theme/source/solarized.scss +63 -0
- package/docs/themes/docdock/static/revealjs/css/theme/source/white.scss +49 -0
- package/docs/themes/docdock/static/revealjs/css/theme/template/mixins.scss +29 -0
- package/docs/themes/docdock/static/revealjs/css/theme/template/settings.scss +43 -0
- package/docs/themes/docdock/static/revealjs/css/theme/template/theme.scss +316 -0
- package/docs/themes/docdock/static/revealjs/css/theme/white.css +264 -0
- package/docs/themes/docdock/static/revealjs/demo.html +410 -0
- package/docs/themes/docdock/static/revealjs/index.html +49 -0
- package/docs/themes/docdock/static/revealjs/js/reveal.js +5239 -0
- package/docs/themes/docdock/static/revealjs/lib/css/zenburn.css +80 -0
- package/docs/themes/docdock/static/revealjs/lib/font/league-gothic/LICENSE +2 -0
- package/docs/themes/docdock/static/revealjs/lib/font/league-gothic/league-gothic.css +10 -0
- package/docs/themes/docdock/static/revealjs/lib/font/league-gothic/league-gothic.eot +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/league-gothic/league-gothic.ttf +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/league-gothic/league-gothic.woff +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/LICENSE +45 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-italic.eot +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-italic.ttf +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-italic.woff +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-regular.eot +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-regular.ttf +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-regular.woff +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibold.eot +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibold.ttf +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibold.woff +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibolditalic.eot +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibolditalic.ttf +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibolditalic.woff +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro.css +39 -0
- package/docs/themes/docdock/static/revealjs/lib/js/classList.js +2 -0
- package/docs/themes/docdock/static/revealjs/lib/js/head.min.js +9 -0
- package/docs/themes/docdock/static/revealjs/lib/js/html5shiv.js +7 -0
- package/docs/themes/docdock/static/revealjs/package.json +43 -0
- package/docs/themes/docdock/static/revealjs/plugin/highlight/highlight.js +77 -0
- package/docs/themes/docdock/static/revealjs/plugin/markdown/example.html +129 -0
- package/docs/themes/docdock/static/revealjs/plugin/markdown/example.md +31 -0
- package/docs/themes/docdock/static/revealjs/plugin/markdown/markdown.js +412 -0
- package/docs/themes/docdock/static/revealjs/plugin/markdown/marked.js +6 -0
- package/docs/themes/docdock/static/revealjs/plugin/math/math.js +67 -0
- package/docs/themes/docdock/static/revealjs/plugin/multiplex/client.js +13 -0
- package/docs/themes/docdock/static/revealjs/plugin/multiplex/index.js +64 -0
- package/docs/themes/docdock/static/revealjs/plugin/multiplex/master.js +34 -0
- package/docs/themes/docdock/static/revealjs/plugin/multiplex/package.json +19 -0
- package/docs/themes/docdock/static/revealjs/plugin/notes/notes.html +759 -0
- package/docs/themes/docdock/static/revealjs/plugin/notes/notes.js +155 -0
- package/docs/themes/docdock/static/revealjs/plugin/notes-server/client.js +65 -0
- package/docs/themes/docdock/static/revealjs/plugin/notes-server/index.js +69 -0
- package/docs/themes/docdock/static/revealjs/plugin/notes-server/notes.html +585 -0
- package/docs/themes/docdock/static/revealjs/plugin/print-pdf/print-pdf.js +69 -0
- package/docs/themes/docdock/static/revealjs/plugin/search/search.js +206 -0
- package/docs/themes/docdock/static/revealjs/plugin/zoom-js/zoom.js +272 -0
- package/docs/themes/docdock/static/revealjs/test/examples/assets/image1.png +0 -0
- package/docs/themes/docdock/static/revealjs/test/examples/assets/image2.png +0 -0
- package/docs/themes/docdock/static/revealjs/test/examples/barebones.html +41 -0
- package/docs/themes/docdock/static/revealjs/test/examples/embedded-media.html +49 -0
- package/docs/themes/docdock/static/revealjs/test/examples/math.html +185 -0
- package/docs/themes/docdock/static/revealjs/test/examples/slide-backgrounds.html +144 -0
- package/docs/themes/docdock/static/revealjs/test/examples/slide-transitions.html +101 -0
- package/docs/themes/docdock/static/revealjs/test/qunit-1.12.0.css +244 -0
- package/docs/themes/docdock/static/revealjs/test/qunit-1.12.0.js +2212 -0
- package/docs/themes/docdock/static/revealjs/test/simple.md +12 -0
- package/docs/themes/docdock/static/revealjs/test/test-markdown-element-attributes.html +134 -0
- package/docs/themes/docdock/static/revealjs/test/test-markdown-element-attributes.js +46 -0
- package/docs/themes/docdock/static/revealjs/test/test-markdown-external.html +36 -0
- package/docs/themes/docdock/static/revealjs/test/test-markdown-external.js +24 -0
- package/docs/themes/docdock/static/revealjs/test/test-markdown-options.html +41 -0
- package/docs/themes/docdock/static/revealjs/test/test-markdown-options.js +26 -0
- package/docs/themes/docdock/static/revealjs/test/test-markdown-slide-attributes.html +128 -0
- package/docs/themes/docdock/static/revealjs/test/test-markdown-slide-attributes.js +47 -0
- package/docs/themes/docdock/static/revealjs/test/test-markdown.html +52 -0
- package/docs/themes/docdock/static/revealjs/test/test-markdown.js +15 -0
- package/docs/themes/docdock/static/revealjs/test/test-pdf.html +83 -0
- package/docs/themes/docdock/static/revealjs/test/test-pdf.js +15 -0
- package/docs/themes/docdock/static/revealjs/test/test.html +86 -0
- package/docs/themes/docdock/static/revealjs/test/test.js +597 -0
- package/docs/themes/docdock/static/scss/flex/article.scss +356 -0
- package/docs/themes/docdock/static/scss/flex/fonts.scss +38 -0
- package/docs/themes/docdock/static/scss/flex/footer.scss +45 -0
- package/docs/themes/docdock/static/scss/flex/header.scss +89 -0
- package/docs/themes/docdock/static/scss/flex/main.scss +164 -0
- package/docs/themes/docdock/static/scss/flex/medias.scss +74 -0
- package/docs/themes/docdock/static/scss/flex/menu.scss +126 -0
- package/docs/themes/docdock/static/scss/flex/shortcode.children.scss +34 -0
- package/docs/themes/docdock/static/scss/flex/shortcode.notice.scss +63 -0
- package/docs/themes/docdock/static/scss/flex/style.scss +14 -0
- package/docs/themes/docdock/static/scss/original/_colours.scss +14 -0
- package/docs/themes/docdock/static/scss/original/_functions.scss +89 -0
- package/docs/themes/docdock/static/scss/original/_variables.scss +137 -0
- package/docs/themes/docdock/static/scss/original/fonts.scss +23 -0
- package/docs/themes/docdock/static/scss/original/main.scss +1233 -0
- package/docs/themes/docdock/static/scss/original/print.scss +29 -0
- package/docs/themes/docdock/static/scss/original/responsive.scss +124 -0
- package/docs/themes/docdock/static/scss/original/shortcodes.scss +32 -0
- package/docs/themes/docdock/static/scss/original/sidebar.scss +276 -0
- package/docs/themes/docdock/static/scss/original/style.scss +16 -0
- package/docs/themes/docdock/static/theme-flex/ribbon.png +0 -0
- package/docs/themes/docdock/static/theme-flex/script.js +277 -0
- package/docs/themes/docdock/static/theme-flex/style.css +728 -0
- package/docs/themes/docdock/static/theme-original/script.js +133 -0
- package/docs/themes/docdock/static/theme-original/style.css +1411 -0
- package/docs/themes/docdock/static/theme-original/variant-blue.css +0 -0
- package/docs/themes/docdock/static/theme-original/variant-gold.css +61 -0
- package/docs/themes/docdock/static/theme-original/variant-gray.css +61 -0
- package/docs/themes/docdock/static/theme-original/variant-green.css +61 -0
- package/docs/themes/docdock/theme.toml +22 -0
- package/lib/binary/components.js +77 -0
- package/lib/binary/downloader.js +170 -0
- package/lib/binary/index.js +11 -0
- package/lib/binary/runner.js +30 -0
- package/lib/interface/cli/Command.js +331 -0
- package/lib/interface/cli/codefresh +24 -0
- package/lib/interface/cli/commad-line-interface.js +90 -0
- package/lib/interface/cli/commands/agent/apply.cmd.js +61 -0
- package/lib/interface/cli/commands/agent/create.cmd.js +39 -0
- package/lib/interface/cli/commands/agent/delete.cmd.js +40 -0
- package/lib/interface/cli/commands/agent/get.cmd.js +44 -0
- package/lib/interface/cli/commands/agent/helper.js +28 -0
- package/lib/interface/cli/commands/agent/install.cmd.js +205 -0
- package/lib/interface/cli/commands/agent/uninstall.cmd.js +92 -0
- package/lib/interface/cli/commands/analyzer/analyze.cmd.js +34 -0
- package/lib/interface/cli/commands/analyzer/analyzer.logic.js +24 -0
- package/lib/interface/cli/commands/annotation/annotation.logic.js +59 -0
- package/lib/interface/cli/commands/annotation/annotation.sdk.spec.js +64 -0
- package/lib/interface/cli/commands/annotation/create.cmd.js +39 -0
- package/lib/interface/cli/commands/annotation/delete.cmd.js +38 -0
- package/lib/interface/cli/commands/annotation/get.cmd.js +42 -0
- package/lib/interface/cli/commands/app-proxy/helper.js +63 -0
- package/lib/interface/cli/commands/app-proxy/install.cmd.js +204 -0
- package/lib/interface/cli/commands/app-proxy/uninstall.cmd.js +175 -0
- package/lib/interface/cli/commands/app-proxy/upgrade.cmd.js +110 -0
- package/lib/interface/cli/commands/audit/download.cmd.js +57 -0
- package/lib/interface/cli/commands/auth/create-context.cmd.js +54 -0
- package/lib/interface/cli/commands/auth/current-context.cmd.js +25 -0
- package/lib/interface/cli/commands/auth/get-contexts.cmd.js +27 -0
- package/lib/interface/cli/commands/auth/use-context.cmd.js +42 -0
- package/lib/interface/cli/commands/board/apply.cmd.js +61 -0
- package/lib/interface/cli/commands/board/board.sdk.spec.js +87 -0
- package/lib/interface/cli/commands/board/create.cmd.js +33 -0
- package/lib/interface/cli/commands/board/delete.cmd.js +42 -0
- package/lib/interface/cli/commands/board/get.cmd.js +62 -0
- package/lib/interface/cli/commands/cli-config/cli-config.cmd.js +41 -0
- package/lib/interface/cli/commands/cli-config/ops/get.cmd.js +52 -0
- package/lib/interface/cli/commands/cli-config/ops/help.cmd.js +36 -0
- package/lib/interface/cli/commands/cli-config/ops/profile.cmd.js +49 -0
- package/lib/interface/cli/commands/cli-config/ops/set.cmd.js +65 -0
- package/lib/interface/cli/commands/cluster/cluster.sdk.spec.js +61 -0
- package/lib/interface/cli/commands/cluster/create.cmd.js +85 -0
- package/lib/interface/cli/commands/cluster/delete.cmd.js +39 -0
- package/lib/interface/cli/commands/cluster/get.cmd.js +30 -0
- package/lib/interface/cli/commands/completion/bash.sh.hbs +27 -0
- package/lib/interface/cli/commands/completion/completion.cmd.js +66 -0
- package/lib/interface/cli/commands/completion/zsh.sh.hbs +20 -0
- package/lib/interface/cli/commands/components/update.cmd.js +30 -0
- package/lib/interface/cli/commands/composition/composition.sdk.spec.js +95 -0
- package/lib/interface/cli/commands/composition/create.cmd.js +67 -0
- package/lib/interface/cli/commands/composition/create.completion.js +15 -0
- package/lib/interface/cli/commands/composition/delete.cmd.js +40 -0
- package/lib/interface/cli/commands/composition/get.cmd.js +43 -0
- package/lib/interface/cli/commands/composition/replace.cmd.js +76 -0
- package/lib/interface/cli/commands/composition/replace.completion.js +15 -0
- package/lib/interface/cli/commands/context/apply.cmd.js +51 -0
- package/lib/interface/cli/commands/context/context.sdk.spec.js +158 -0
- package/lib/interface/cli/commands/context/create/createConfig.cmd.js +54 -0
- package/lib/interface/cli/commands/context/create/createSecret.cmd.js +54 -0
- package/lib/interface/cli/commands/context/create/createSecretYaml.cmd.js +53 -0
- package/lib/interface/cli/commands/context/create/createYaml.cmd.js +53 -0
- package/lib/interface/cli/commands/context/create/git/base.cmd.js +38 -0
- package/lib/interface/cli/commands/context/create/git/types/bitbucket.cmd.js +64 -0
- package/lib/interface/cli/commands/context/create/git/types/github.cmd.js +79 -0
- package/lib/interface/cli/commands/context/create/git/types/gitlab.cmd.js +71 -0
- package/lib/interface/cli/commands/context/create/git/types/stash.cmd.js +69 -0
- package/lib/interface/cli/commands/context/create/helm-repo/base.cmd.js +24 -0
- package/lib/interface/cli/commands/context/create/helm-repo/types/http.cmd.js +60 -0
- package/lib/interface/cli/commands/context/create/helm-repo/types/s3.cmd.js +97 -0
- package/lib/interface/cli/commands/context/create/secret-store/base.cmd.js +33 -0
- package/lib/interface/cli/commands/context/create/secret-store/types/hashicorp-vault.cmd.js +141 -0
- package/lib/interface/cli/commands/context/create/secret-store/types/kubernetes-runtime.cmd.js +67 -0
- package/lib/interface/cli/commands/context/create/secret-store/types/kubernetes.cmd.js +67 -0
- package/lib/interface/cli/commands/context/create.cmd.js +23 -0
- package/lib/interface/cli/commands/context/delete.cmd.js +39 -0
- package/lib/interface/cli/commands/context/get.cmd.js +68 -0
- package/lib/interface/cli/commands/environment/delete.cmd.js +28 -0
- package/lib/interface/cli/commands/environment/environment.sdk.spec.js +40 -0
- package/lib/interface/cli/commands/environment/get.cmd.js +43 -0
- package/lib/interface/cli/commands/gitops/argocd/install.js +9 -0
- package/lib/interface/cli/commands/gitops/argocd/uninstall.js +11 -0
- package/lib/interface/cli/commands/gitops/argocd/upgrade.js +9 -0
- package/lib/interface/cli/commands/gitops/codefresh/install.js +50 -0
- package/lib/interface/cli/commands/gitops/codefresh/uninstall.js +14 -0
- package/lib/interface/cli/commands/gitops/codefresh/upgrade.js +9 -0
- package/lib/interface/cli/commands/gitops/common/install.js +62 -0
- package/lib/interface/cli/commands/gitops/common/uninstall.js +39 -0
- package/lib/interface/cli/commands/gitops/common/upgrade.js +45 -0
- package/lib/interface/cli/commands/gitops/install.cmd.js +111 -0
- package/lib/interface/cli/commands/gitops/install.spec.js +77 -0
- package/lib/interface/cli/commands/gitops/uninstall.cmd.js +56 -0
- package/lib/interface/cli/commands/gitops/upgrade.cmd.js +56 -0
- package/lib/interface/cli/commands/helm/chart/helm-charts.sdk.spec.js +65 -0
- package/lib/interface/cli/commands/helm/chart/install-chart.cmd.js +103 -0
- package/lib/interface/cli/commands/helm/chart/promote-chart.cmd.js +123 -0
- package/lib/interface/cli/commands/helm/helm.sdk.spec.js +81 -0
- package/lib/interface/cli/commands/helm/release/delete-release.cmd.js +102 -0
- package/lib/interface/cli/commands/helm/release/helm-releases.sdk.spec.js +53 -0
- package/lib/interface/cli/commands/helm/release/rollback-release.cmd.js +87 -0
- package/lib/interface/cli/commands/helm/release/test-release.cmd.js +93 -0
- package/lib/interface/cli/commands/helm/release/util.js +16 -0
- package/lib/interface/cli/commands/helm/repo/apply.cmd.js +54 -0
- package/lib/interface/cli/commands/helm/repo/create.cmd.js +46 -0
- package/lib/interface/cli/commands/helm/repo/delete.cmd.js +37 -0
- package/lib/interface/cli/commands/helm/repo/get.cmd.js +61 -0
- package/lib/interface/cli/commands/helm/repo/helm-repo.sdk.spec.js +58 -0
- package/lib/interface/cli/commands/helm/set-helm-config.cmd.js +93 -0
- package/lib/interface/cli/commands/hybrid/InstallationPlan.js +216 -0
- package/lib/interface/cli/commands/hybrid/delete.cmd.js +336 -0
- package/lib/interface/cli/commands/hybrid/execute-test-pipeline.cmd.js +37 -0
- package/lib/interface/cli/commands/hybrid/helper.js +1122 -0
- package/lib/interface/cli/commands/hybrid/info.cmd.js +27 -0
- package/lib/interface/cli/commands/hybrid/init.cmd.js +958 -0
- package/lib/interface/cli/commands/hybrid/installation-process.js +51 -0
- package/lib/interface/cli/commands/hybrid/key-helper.js +82 -0
- package/lib/interface/cli/commands/hybrid/migration.js +192 -0
- package/lib/interface/cli/commands/hybrid/pipeline-helper.js +71 -0
- package/lib/interface/cli/commands/hybrid/upgrade.cmd.js +195 -0
- package/lib/interface/cli/commands/image/annotate.cmd.js +61 -0
- package/lib/interface/cli/commands/image/get.cmd.js +122 -0
- package/lib/interface/cli/commands/image/image.sdk.spec.js +134 -0
- package/lib/interface/cli/commands/image/tag.cmd.js +50 -0
- package/lib/interface/cli/commands/image/untag.cmd.js +47 -0
- package/lib/interface/cli/commands/imagePullSecret/generate.cmd.js +49 -0
- package/lib/interface/cli/commands/imagePullSecret/imagePullSecret.sdk.spec.js +21 -0
- package/lib/interface/cli/commands/monitor/install.cmd.js +160 -0
- package/lib/interface/cli/commands/monitor/uninstall.cmd.js +78 -0
- package/lib/interface/cli/commands/offline-logs/base.cmd.js +33 -0
- package/lib/interface/cli/commands/offline-logs/ensure-index.cmd.js +44 -0
- package/lib/interface/cli/commands/offline-logs/ensure-index.spec.js +76 -0
- package/lib/interface/cli/commands/offline-logs/offload-to-collection.cmd.js +188 -0
- package/lib/interface/cli/commands/offline-logs/offload-to-file.cmd.js +175 -0
- package/lib/interface/cli/commands/offline-logs/offload-to-file.spec.js +59 -0
- package/lib/interface/cli/commands/offline-logs/utils.js +159 -0
- package/lib/interface/cli/commands/pipeline/delete.cmd.js +31 -0
- package/lib/interface/cli/commands/pipeline/get.cmd.js +125 -0
- package/lib/interface/cli/commands/pipeline/get.completion.js +14 -0
- package/lib/interface/cli/commands/pipeline/pipeline.sdk.spec.js +137 -0
- package/lib/interface/cli/commands/pipeline/run.base.js +153 -0
- package/lib/interface/cli/commands/pipeline/run.cf.js +58 -0
- package/lib/interface/cli/commands/pipeline/run.cmd.js +165 -0
- package/lib/interface/cli/commands/pipeline/run.completion.js +15 -0
- package/lib/interface/cli/commands/pipeline/run.local.js +200 -0
- package/lib/interface/cli/commands/project/apply.cmd.js +92 -0
- package/lib/interface/cli/commands/project/create.cmd.js +70 -0
- package/lib/interface/cli/commands/project/delete.cmd.js +39 -0
- package/lib/interface/cli/commands/project/get.cmd.js +67 -0
- package/lib/interface/cli/commands/project/project.sdk.spec.js +111 -0
- package/lib/interface/cli/commands/registry/create/create.standard.cmd.js +53 -0
- package/lib/interface/cli/commands/registry/create.cmd.js +20 -0
- package/lib/interface/cli/commands/registry/delete.cmd.js +29 -0
- package/lib/interface/cli/commands/registry/get.cmd.js +30 -0
- package/lib/interface/cli/commands/registry/registry.sdk.spec.js +43 -0
- package/lib/interface/cli/commands/repo/add.cmd.js +90 -0
- package/lib/interface/cli/commands/repo/delete.cmd.js +43 -0
- package/lib/interface/cli/commands/repo/get.cmd.js +101 -0
- package/lib/interface/cli/commands/repo/repo.sdk.spec.js +94 -0
- package/lib/interface/cli/commands/root/add.cmd.js +18 -0
- package/lib/interface/cli/commands/root/annotate.cmd.js +17 -0
- package/lib/interface/cli/commands/root/apply.cmd.js +38 -0
- package/lib/interface/cli/commands/root/apply.completion.js +15 -0
- package/lib/interface/cli/commands/root/auth.cmd.js +31 -0
- package/lib/interface/cli/commands/root/components.cmd.js +17 -0
- package/lib/interface/cli/commands/root/create.cmd.js +42 -0
- package/lib/interface/cli/commands/root/create.completion.js +15 -0
- package/lib/interface/cli/commands/root/delete.cmd.js +52 -0
- package/lib/interface/cli/commands/root/delete.completion.js +15 -0
- package/lib/interface/cli/commands/root/diff.cmd.js +38 -0
- package/lib/interface/cli/commands/root/diff.completion.js +15 -0
- package/lib/interface/cli/commands/root/download.cmd.js +18 -0
- package/lib/interface/cli/commands/root/generate.cmd.js +18 -0
- package/lib/interface/cli/commands/root/get.cmd.js +72 -0
- package/lib/interface/cli/commands/root/get.completion.js +19 -0
- package/lib/interface/cli/commands/root/install.cmd.js +17 -0
- package/lib/interface/cli/commands/root/replace.cmd.js +72 -0
- package/lib/interface/cli/commands/root/replace.completion.js +15 -0
- package/lib/interface/cli/commands/root/root.sdk.spec.js +197 -0
- package/lib/interface/cli/commands/root/runner.cmd.js +18 -0
- package/lib/interface/cli/commands/root/synchronize.cmd.js +17 -0
- package/lib/interface/cli/commands/root/uninstall.cmd.js +17 -0
- package/lib/interface/cli/commands/root/upgrade.cmd.js +38 -0
- package/lib/interface/cli/commands/root/validate.cmd.js +119 -0
- package/lib/interface/cli/commands/root/validate.completion.js +10 -0
- package/lib/interface/cli/commands/root/version.cmd.js +48 -0
- package/lib/interface/cli/commands/runtimeEnvironments/apply.cmd.js +111 -0
- package/lib/interface/cli/commands/runtimeEnvironments/attach.cmd.js +161 -0
- package/lib/interface/cli/commands/runtimeEnvironments/create.cmd.js +23 -0
- package/lib/interface/cli/commands/runtimeEnvironments/delete.cmd.js +35 -0
- package/lib/interface/cli/commands/runtimeEnvironments/diff.cmd.js +64 -0
- package/lib/interface/cli/commands/runtimeEnvironments/get.cmd.js +76 -0
- package/lib/interface/cli/commands/runtimeEnvironments/install.cmd.js +312 -0
- package/lib/interface/cli/commands/runtimeEnvironments/runtimeEnvironments.sdk.spec.js +61 -0
- package/lib/interface/cli/commands/runtimeEnvironments/uninstall.cmd.js +149 -0
- package/lib/interface/cli/commands/section/apply.cmd.js +85 -0
- package/lib/interface/cli/commands/section/create.cmd.js +69 -0
- package/lib/interface/cli/commands/section/delete.cmd.js +61 -0
- package/lib/interface/cli/commands/section/get.cmd.js +79 -0
- package/lib/interface/cli/commands/section/section.sdk.spec.js +143 -0
- package/lib/interface/cli/commands/step/delete.cmd.js +30 -0
- package/lib/interface/cli/commands/step/get.cmd.js +131 -0
- package/lib/interface/cli/commands/step/get.completion.js +14 -0
- package/lib/interface/cli/commands/step/step.sdk.spec.js +67 -0
- package/lib/interface/cli/commands/systemRuntimeEnvironments/apply.cmd.js +69 -0
- package/lib/interface/cli/commands/systemRuntimeEnvironments/delete.cmd.js +44 -0
- package/lib/interface/cli/commands/systemRuntimeEnvironments/diff.cmd.js +74 -0
- package/lib/interface/cli/commands/systemRuntimeEnvironments/get.cmd.js +103 -0
- package/lib/interface/cli/commands/systemRuntimeEnvironments/systemRuntimeEnvironments.sdk.spec.js +128 -0
- package/lib/interface/cli/commands/team/add.user.cmd.js +39 -0
- package/lib/interface/cli/commands/team/create.cmd.js +53 -0
- package/lib/interface/cli/commands/team/get.cmd.js +30 -0
- package/lib/interface/cli/commands/team/remove.user.cmd.js +39 -0
- package/lib/interface/cli/commands/team/synchronize.cmd.js +76 -0
- package/lib/interface/cli/commands/team/team.sdk.spec.js +65 -0
- package/lib/interface/cli/commands/tokens/apply.cmd.js +50 -0
- package/lib/interface/cli/commands/tokens/create.cmd.js +67 -0
- package/lib/interface/cli/commands/tokens/delete.cmd.js +43 -0
- package/lib/interface/cli/commands/tokens/get.cmd.js +38 -0
- package/lib/interface/cli/commands/tokens/tokens.sdk.spec.js +43 -0
- package/lib/interface/cli/commands/trigger/create.cmd.js +44 -0
- package/lib/interface/cli/commands/trigger/delete.cmd.js +39 -0
- package/lib/interface/cli/commands/trigger/event/create.cmd.js +60 -0
- package/lib/interface/cli/commands/trigger/event/delete.cmd.js +34 -0
- package/lib/interface/cli/commands/trigger/event/get.cmd.js +59 -0
- package/lib/interface/cli/commands/trigger/event/trigger-event.sdk.spec.js +51 -0
- package/lib/interface/cli/commands/trigger/get.cmd.js +47 -0
- package/lib/interface/cli/commands/trigger/trigger.sdk.spec.js +73 -0
- package/lib/interface/cli/commands/trigger/type/get.cmd.js +54 -0
- package/lib/interface/cli/commands/trigger/type/trigger-type.sdk.spec.js +33 -0
- package/lib/interface/cli/commands/workflow/approve.cmd.js +31 -0
- package/lib/interface/cli/commands/workflow/approve.cmd.spec.js +47 -0
- package/lib/interface/cli/commands/workflow/deny.cmd.js +31 -0
- package/lib/interface/cli/commands/workflow/deny.cmd.spec.js +47 -0
- package/lib/interface/cli/commands/workflow/get.cmd.js +161 -0
- package/lib/interface/cli/commands/workflow/logs.cmd.js +38 -0
- package/lib/interface/cli/commands/workflow/restart.cmd.js +37 -0
- package/lib/interface/cli/commands/workflow/terminate.cmd.js +31 -0
- package/lib/interface/cli/commands/workflow/wait.cmd.js +77 -0
- package/lib/interface/cli/commands/workflow/workflow-data-item/create.cmd.js +44 -0
- package/lib/interface/cli/commands/workflow/workflow-data-item/get.cmd.js +72 -0
- package/lib/interface/cli/commands/workflow/workflow.sdk.spec.js +123 -0
- package/lib/interface/cli/completion/completion.spec.js +313 -0
- package/lib/interface/cli/completion/generate +102 -0
- package/lib/interface/cli/completion/helpers.js +90 -0
- package/lib/interface/cli/completion/index.js +89 -0
- package/lib/interface/cli/completion/tree.json +1 -0
- package/lib/interface/cli/defaults.js +18 -0
- package/lib/interface/cli/helpers/auth.js +62 -0
- package/lib/interface/cli/helpers/cli-config.js +110 -0
- package/lib/interface/cli/helpers/entitiesManifests.js +60 -0
- package/lib/interface/cli/helpers/general.js +235 -0
- package/lib/interface/cli/helpers/helm.js +51 -0
- package/lib/interface/cli/helpers/helpers.sdk.spec.js +201 -0
- package/lib/interface/cli/helpers/helpers.unit.spec.js +105 -0
- package/lib/interface/cli/helpers/image.js +66 -0
- package/lib/interface/cli/helpers/kubernetes.js +61 -0
- package/lib/interface/cli/helpers/logs.js +99 -0
- package/lib/interface/cli/helpers/progressEvents.js +25 -0
- package/lib/interface/cli/helpers/sys-re.js +76 -0
- package/lib/interface/cli/helpers/validation.js +92 -0
- package/lib/logic/cli-config/Manager.js +187 -0
- package/lib/logic/cli-config/Model.js +82 -0
- package/lib/logic/cli-config/errors/MultiplePropertiesError.js +8 -0
- package/lib/logic/cli-config/errors/NoPropertyError.js +8 -0
- package/lib/logic/cli-config/errors/NotFullPropertyError.js +8 -0
- package/lib/logic/cli-config/errors/PipelineValidationError.js +12 -0
- package/lib/logic/cli-config/errors/SchemaValidationError.js +14 -0
- package/lib/logic/cli-config/errors/awaitTo.js +16 -0
- package/lib/logic/cli-config/errors/helpers.js +23 -0
- package/lib/logic/cli-config/errors/index.js +13 -0
- package/lib/logic/cli-config/manager.spec.js +152 -0
- package/lib/logic/cli-config/schema.json +61 -0
- package/lib/logic/entities/Agent.js +52 -0
- package/lib/logic/entities/Annotation.js +24 -0
- package/lib/logic/entities/Board.js +22 -0
- package/lib/logic/entities/Cluster.js +22 -0
- package/lib/logic/entities/CodefreshRepo.js +22 -0
- package/lib/logic/entities/Composition.js +22 -0
- package/lib/logic/entities/Context.js +31 -0
- package/lib/logic/entities/Entity.js +48 -0
- package/lib/logic/entities/Environment.js +38 -0
- package/lib/logic/entities/GitRepo.js +21 -0
- package/lib/logic/entities/HelmRepo.js +23 -0
- package/lib/logic/entities/Image.js +13 -0
- package/lib/logic/entities/Pipeline.js +22 -0
- package/lib/logic/entities/Project.js +25 -0
- package/lib/logic/entities/Registry.js +35 -0
- package/lib/logic/entities/RuntimeEnvironments.js +30 -0
- package/lib/logic/entities/Section.js +23 -0
- package/lib/logic/entities/StepType.js +27 -0
- package/lib/logic/entities/StepTypeVersion.js +19 -0
- package/lib/logic/entities/Team.js +36 -0
- package/lib/logic/entities/Token.js +25 -0
- package/lib/logic/entities/Trigger.js +21 -0
- package/lib/logic/entities/TriggerEvent.js +28 -0
- package/lib/logic/entities/TriggerType.js +25 -0
- package/lib/logic/entities/Workflow.js +63 -0
- package/lib/logic/entities/WorkflowDataItem.js +48 -0
- package/lib/logic/index.js +7 -0
- package/lib/logic/sdk/index.js +5 -0
- package/lib/output/Formatter.js +42 -0
- package/lib/output/Output.js +88 -0
- package/lib/output/Style.js +96 -0
- package/lib/output/__mocks__/Output.js +8 -0
- package/lib/output/formatters/Annotations.formatter.js +7 -0
- package/lib/output/formatters/Board.formatter.js +7 -0
- package/lib/output/formatters/CodefreshRepo.formatter.js +7 -0
- package/lib/output/formatters/Composition.formatter.js +8 -0
- package/lib/output/formatters/Environment.formatter.js +17 -0
- package/lib/output/formatters/GitRepo.formatter.js +7 -0
- package/lib/output/formatters/HelmRepo.formatter.js +9 -0
- package/lib/output/formatters/Image.formatter.js +12 -0
- package/lib/output/formatters/Pipeline.formatter.js +8 -0
- package/lib/output/formatters/Project.formatter.js +10 -0
- package/lib/output/formatters/Registry.formatter.js +7 -0
- package/lib/output/formatters/Section.formatter.js +8 -0
- package/lib/output/formatters/StepType.formatter.js +8 -0
- package/lib/output/formatters/Team.formatter.js +13 -0
- package/lib/output/formatters/Token.formatter.js +11 -0
- package/lib/output/formatters/TriggerEvent.formatter.js +12 -0
- package/lib/output/formatters/TriggerType.formatter.js +12 -0
- package/lib/output/formatters/Workflow.formatter.js +28 -0
- package/lib/output/formatters/index.js +38 -0
- package/lib/output/types/id.output.js +16 -0
- package/lib/output/types/json.output.js +22 -0
- package/lib/output/types/name.output.js +16 -0
- package/lib/output/types/table.output.js +107 -0
- package/lib/output/types/table.output.spec.js +93 -0
- package/lib/output/types/yaml.output.js +30 -0
- package/openapi.json +8645 -0
- package/package.json +105 -0
- package/run-check-version.js +3 -0
- package/test-setup.js +34 -0
- package/yarn.lock +6124 -0
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
/*
|
|
2
|
+
JavaScript autoComplete v1.0.4
|
|
3
|
+
Copyright (c) 2014 Simon Steinberger / Pixabay
|
|
4
|
+
GitHub: https://github.com/Pixabay/JavaScript-autoComplete
|
|
5
|
+
License: http://www.opensource.org/licenses/mit-license.php
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
var autoComplete = (function(){
|
|
9
|
+
// "use strict";
|
|
10
|
+
function autoComplete(options){
|
|
11
|
+
if (!document.querySelector) return;
|
|
12
|
+
|
|
13
|
+
// helpers
|
|
14
|
+
function hasClass(el, className){ return el.classList ? el.classList.contains(className) : new RegExp('\\b'+ className+'\\b').test(el.className); }
|
|
15
|
+
|
|
16
|
+
function addEvent(el, type, handler){
|
|
17
|
+
if (el.attachEvent) el.attachEvent('on'+type, handler); else el.addEventListener(type, handler);
|
|
18
|
+
}
|
|
19
|
+
function removeEvent(el, type, handler){
|
|
20
|
+
// if (el.removeEventListener) not working in IE11
|
|
21
|
+
if (el.detachEvent) el.detachEvent('on'+type, handler); else el.removeEventListener(type, handler);
|
|
22
|
+
}
|
|
23
|
+
function live(elClass, event, cb, context){
|
|
24
|
+
addEvent(context || document, event, function(e){
|
|
25
|
+
var found, el = e.target || e.srcElement;
|
|
26
|
+
while (el && !(found = hasClass(el, elClass))) el = el.parentElement;
|
|
27
|
+
if (found) cb.call(el, e);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
var o = {
|
|
32
|
+
selector: 0,
|
|
33
|
+
source: 0,
|
|
34
|
+
minChars: 3,
|
|
35
|
+
delay: 150,
|
|
36
|
+
offsetLeft: 0,
|
|
37
|
+
offsetTop: 1,
|
|
38
|
+
cache: 1,
|
|
39
|
+
menuClass: '',
|
|
40
|
+
renderItem: function (item, search){
|
|
41
|
+
// escape special characters
|
|
42
|
+
search = search.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
|
|
43
|
+
var re = new RegExp("(" + search.split(' ').join('|') + ")", "gi");
|
|
44
|
+
return '<div class="autocomplete-suggestion" data-val="' + item + '">' + item.replace(re, "<b>$1</b>") + '</div>';
|
|
45
|
+
},
|
|
46
|
+
onSelect: function(e, term, item){}
|
|
47
|
+
};
|
|
48
|
+
for (var k in options) { if (options.hasOwnProperty(k)) o[k] = options[k]; }
|
|
49
|
+
|
|
50
|
+
// init
|
|
51
|
+
var elems = typeof o.selector == 'object' ? [o.selector] : document.querySelectorAll(o.selector);
|
|
52
|
+
for (var i=0; i<elems.length; i++) {
|
|
53
|
+
var that = elems[i];
|
|
54
|
+
|
|
55
|
+
// create suggestions container "sc"
|
|
56
|
+
that.sc = document.createElement('div');
|
|
57
|
+
that.sc.className = 'autocomplete-suggestions '+o.menuClass;
|
|
58
|
+
|
|
59
|
+
that.autocompleteAttr = that.getAttribute('autocomplete');
|
|
60
|
+
that.setAttribute('autocomplete', 'off');
|
|
61
|
+
that.cache = {};
|
|
62
|
+
that.last_val = '';
|
|
63
|
+
|
|
64
|
+
that.updateSC = function(resize, next){
|
|
65
|
+
var rect = that.getBoundingClientRect();
|
|
66
|
+
that.sc.style.left = Math.round(rect.left + (window.pageXOffset || document.documentElement.scrollLeft) + o.offsetLeft) + 'px';
|
|
67
|
+
that.sc.style.top = Math.round(rect.bottom + (window.pageYOffset || document.documentElement.scrollTop) + o.offsetTop) + 'px';
|
|
68
|
+
that.sc.style.width = Math.round(rect.right - rect.left) + 'px'; // outerWidth
|
|
69
|
+
if (!resize) {
|
|
70
|
+
that.sc.style.display = 'block';
|
|
71
|
+
if (!that.sc.maxHeight) { that.sc.maxHeight = parseInt((window.getComputedStyle ? getComputedStyle(that.sc, null) : that.sc.currentStyle).maxHeight); }
|
|
72
|
+
if (!that.sc.suggestionHeight) that.sc.suggestionHeight = that.sc.querySelector('.autocomplete-suggestion').offsetHeight;
|
|
73
|
+
if (that.sc.suggestionHeight)
|
|
74
|
+
if (!next) that.sc.scrollTop = 0;
|
|
75
|
+
else {
|
|
76
|
+
var scrTop = that.sc.scrollTop, selTop = next.getBoundingClientRect().top - that.sc.getBoundingClientRect().top;
|
|
77
|
+
if (selTop + that.sc.suggestionHeight - that.sc.maxHeight > 0)
|
|
78
|
+
that.sc.scrollTop = selTop + that.sc.suggestionHeight + scrTop - that.sc.maxHeight;
|
|
79
|
+
else if (selTop < 0)
|
|
80
|
+
that.sc.scrollTop = selTop + scrTop;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
addEvent(window, 'resize', that.updateSC);
|
|
85
|
+
document.body.appendChild(that.sc);
|
|
86
|
+
|
|
87
|
+
live('autocomplete-suggestion', 'mouseleave', function(e){
|
|
88
|
+
var sel = that.sc.querySelector('.autocomplete-suggestion.selected');
|
|
89
|
+
if (sel) setTimeout(function(){ sel.className = sel.className.replace('selected', ''); }, 20);
|
|
90
|
+
}, that.sc);
|
|
91
|
+
|
|
92
|
+
live('autocomplete-suggestion', 'mouseover', function(e){
|
|
93
|
+
var sel = that.sc.querySelector('.autocomplete-suggestion.selected');
|
|
94
|
+
if (sel) sel.className = sel.className.replace('selected', '');
|
|
95
|
+
this.className += ' selected';
|
|
96
|
+
}, that.sc);
|
|
97
|
+
|
|
98
|
+
live('autocomplete-suggestion', 'mousedown', function(e){
|
|
99
|
+
if (hasClass(this, 'autocomplete-suggestion')) { // else outside click
|
|
100
|
+
var v = this.getAttribute('data-val');
|
|
101
|
+
that.value = v;
|
|
102
|
+
o.onSelect(e, v, this);
|
|
103
|
+
that.sc.style.display = 'none';
|
|
104
|
+
}
|
|
105
|
+
}, that.sc);
|
|
106
|
+
|
|
107
|
+
that.blurHandler = function(){
|
|
108
|
+
try { var over_sb = document.querySelector('.autocomplete-suggestions:hover'); } catch(e){ var over_sb = 0; }
|
|
109
|
+
if (!over_sb) {
|
|
110
|
+
that.last_val = that.value;
|
|
111
|
+
that.sc.style.display = 'none';
|
|
112
|
+
setTimeout(function(){ that.sc.style.display = 'none'; }, 350); // hide suggestions on fast input
|
|
113
|
+
} else if (that !== document.activeElement) setTimeout(function(){ that.focus(); }, 20);
|
|
114
|
+
};
|
|
115
|
+
addEvent(that, 'blur', that.blurHandler);
|
|
116
|
+
|
|
117
|
+
var suggest = function(data){
|
|
118
|
+
var val = that.value;
|
|
119
|
+
that.cache[val] = data;
|
|
120
|
+
if (data.length && val.length >= o.minChars) {
|
|
121
|
+
var s = '';
|
|
122
|
+
for (var i=0;i<data.length;i++) s += o.renderItem(data[i], val);
|
|
123
|
+
that.sc.innerHTML = s;
|
|
124
|
+
that.updateSC(0);
|
|
125
|
+
}
|
|
126
|
+
else
|
|
127
|
+
that.sc.style.display = 'none';
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
that.keydownHandler = function(e){
|
|
131
|
+
var key = window.event ? e.keyCode : e.which;
|
|
132
|
+
// down (40), up (38)
|
|
133
|
+
if ((key == 40 || key == 38) && that.sc.innerHTML) {
|
|
134
|
+
var next, sel = that.sc.querySelector('.autocomplete-suggestion.selected');
|
|
135
|
+
if (!sel) {
|
|
136
|
+
next = (key == 40) ? that.sc.querySelector('.autocomplete-suggestion') : that.sc.childNodes[that.sc.childNodes.length - 1]; // first : last
|
|
137
|
+
next.className += ' selected';
|
|
138
|
+
console.log(next);
|
|
139
|
+
that.value = next.getAttribute('data-val');
|
|
140
|
+
} else {
|
|
141
|
+
next = (key == 40) ? sel.nextSibling : sel.previousSibling;
|
|
142
|
+
if (next) {
|
|
143
|
+
sel.className = sel.className.replace('selected', '');
|
|
144
|
+
next.className += ' selected';
|
|
145
|
+
that.value = next.getAttribute('data-val');
|
|
146
|
+
}
|
|
147
|
+
else { sel.className = sel.className.replace('selected', ''); that.value = that.last_val; next = 0; }
|
|
148
|
+
}
|
|
149
|
+
that.updateSC(0, next);
|
|
150
|
+
return false;
|
|
151
|
+
}
|
|
152
|
+
// esc
|
|
153
|
+
else if (key == 27) { that.value = that.last_val; that.sc.style.display = 'none'; }
|
|
154
|
+
// enter
|
|
155
|
+
else if (key == 13 || key == 9) {
|
|
156
|
+
var sel = that.sc.querySelector('.autocomplete-suggestion.selected');
|
|
157
|
+
if (sel && that.sc.style.display != 'none') { o.onSelect(e, sel.getAttribute('data-val'), sel); setTimeout(function(){ that.sc.style.display = 'none'; }, 20); }
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
addEvent(that, 'keydown', that.keydownHandler);
|
|
161
|
+
|
|
162
|
+
that.keyupHandler = function(e){
|
|
163
|
+
var key = window.event ? e.keyCode : e.which;
|
|
164
|
+
if (!key || (key < 35 || key > 40) && key != 13 && key != 27) {
|
|
165
|
+
var val = that.value;
|
|
166
|
+
if (val.length >= o.minChars) {
|
|
167
|
+
if (val != that.last_val) {
|
|
168
|
+
that.last_val = val;
|
|
169
|
+
clearTimeout(that.timer);
|
|
170
|
+
if (o.cache) {
|
|
171
|
+
if (val in that.cache) { suggest(that.cache[val]); return; }
|
|
172
|
+
// no requests if previous suggestions were empty
|
|
173
|
+
for (var i=1; i<val.length-o.minChars; i++) {
|
|
174
|
+
var part = val.slice(0, val.length-i);
|
|
175
|
+
if (part in that.cache && !that.cache[part].length) { suggest([]); return; }
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
that.timer = setTimeout(function(){ o.source(val, suggest) }, o.delay);
|
|
179
|
+
}
|
|
180
|
+
} else {
|
|
181
|
+
that.last_val = val;
|
|
182
|
+
that.sc.style.display = 'none';
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
addEvent(that, 'keyup', that.keyupHandler);
|
|
187
|
+
|
|
188
|
+
that.focusHandler = function(e){
|
|
189
|
+
that.last_val = '\n';
|
|
190
|
+
that.keyupHandler(e)
|
|
191
|
+
};
|
|
192
|
+
if (!o.minChars) addEvent(that, 'focus', that.focusHandler);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
// public destroy method
|
|
196
|
+
this.destroy = function(){
|
|
197
|
+
for (var i=0; i<elems.length; i++) {
|
|
198
|
+
var that = elems[i];
|
|
199
|
+
removeEvent(window, 'resize', that.updateSC);
|
|
200
|
+
removeEvent(that, 'blur', that.blurHandler);
|
|
201
|
+
removeEvent(that, 'focus', that.focusHandler);
|
|
202
|
+
removeEvent(that, 'keydown', that.keydownHandler);
|
|
203
|
+
removeEvent(that, 'keyup', that.keyupHandler);
|
|
204
|
+
if (that.autocompleteAttr)
|
|
205
|
+
that.setAttribute('autocomplete', that.autocompleteAttr);
|
|
206
|
+
else
|
|
207
|
+
that.removeAttribute('autocomplete');
|
|
208
|
+
document.body.removeChild(that.sc);
|
|
209
|
+
that = null;
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
return autoComplete;
|
|
214
|
+
})();
|
|
215
|
+
|
|
216
|
+
(function(){
|
|
217
|
+
if (typeof define === 'function' && define.amd)
|
|
218
|
+
define('autoComplete', function () { return autoComplete; });
|
|
219
|
+
else if (typeof module !== 'undefined' && module.exports)
|
|
220
|
+
module.exports = autoComplete;
|
|
221
|
+
else
|
|
222
|
+
window.autoComplete = autoComplete;
|
|
223
|
+
})();
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* clipboard.js v1.5.5
|
|
3
|
+
* https://zenorocha.github.io/clipboard.js
|
|
4
|
+
*
|
|
5
|
+
* Licensed MIT © Zeno Rocha
|
|
6
|
+
*/
|
|
7
|
+
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.Clipboard=t()}}(function(){var t,e,n;return function t(e,n,r){function o(a,c){if(!n[a]){if(!e[a]){var s="function"==typeof require&&require;if(!c&&s)return s(a,!0);if(i)return i(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[a]={exports:{}};e[a][0].call(l.exports,function(t){var n=e[a][1][t];return o(n?n:t)},l,l.exports,t,e,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(t,e,n){var r=t("matches-selector");e.exports=function(t,e,n){for(var o=n?t:t.parentNode;o&&o!==document;){if(r(o,e))return o;o=o.parentNode}}},{"matches-selector":2}],2:[function(t,e,n){function r(t,e){if(i)return i.call(t,e);for(var n=t.parentNode.querySelectorAll(e),r=0;r<n.length;++r)if(n[r]==t)return!0;return!1}var o=Element.prototype,i=o.matchesSelector||o.webkitMatchesSelector||o.mozMatchesSelector||o.msMatchesSelector||o.oMatchesSelector;e.exports=r},{}],3:[function(t,e,n){function r(t,e,n,r){var i=o.apply(this,arguments);return t.addEventListener(n,i),{destroy:function(){t.removeEventListener(n,i)}}}function o(t,e,n,r){return function(n){n.delegateTarget=i(n.target,e,!0),n.delegateTarget&&r.call(t,n)}}var i=t("closest");e.exports=r},{closest:1}],4:[function(t,e,n){n.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},n.nodeList=function(t){var e=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===e||"[object HTMLCollection]"===e)&&"length"in t&&(0===t.length||n.node(t[0]))},n.string=function(t){return"string"==typeof t||t instanceof String},n.function=function(t){var e=Object.prototype.toString.call(t);return"[object Function]"===e}},{}],5:[function(t,e,n){function r(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!c.string(e))throw new TypeError("Second argument must be a String");if(!c.function(n))throw new TypeError("Third argument must be a Function");if(c.node(t))return o(t,e,n);if(c.nodeList(t))return i(t,e,n);if(c.string(t))return a(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function o(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}function i(t,e,n){return Array.prototype.forEach.call(t,function(t){t.addEventListener(e,n)}),{destroy:function(){Array.prototype.forEach.call(t,function(t){t.removeEventListener(e,n)})}}}function a(t,e,n){return s(document.body,t,e,n)}var c=t("./is"),s=t("delegate");e.exports=r},{"./is":4,delegate:3}],6:[function(t,e,n){function r(t){var e;if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName)t.focus(),t.setSelectionRange(0,t.value.length),e=t.value;else{t.hasAttribute("contenteditable")&&t.focus();var n=window.getSelection(),r=document.createRange();r.selectNodeContents(t),n.removeAllRanges(),n.addRange(r),e=n.toString()}return e}e.exports=r},{}],7:[function(t,e,n){function r(){}r.prototype={on:function(t,e,n){var r=this.e||(this.e={});return(r[t]||(r[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){function r(){o.off(t,r),e.apply(n,arguments)}var o=this;return r._=e,this.on(t,r,n)},emit:function(t){var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),r=0,o=n.length;for(r;o>r;r++)n[r].fn.apply(n[r].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),r=n[t],o=[];if(r&&e)for(var i=0,a=r.length;a>i;i++)r[i].fn!==e&&r[i].fn._!==e&&o.push(r[i]);return o.length?n[t]=o:delete n[t],this}},e.exports=r},{}],8:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.__esModule=!0;var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=t("select"),c=r(a),s=function(){function t(e){o(this,t),this.resolveOptions(e),this.initSelection()}return t.prototype.resolveOptions=function t(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.action=e.action,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""},t.prototype.initSelection=function t(){if(this.text&&this.target)throw new Error('Multiple attributes declared, use either "target" or "text"');if(this.text)this.selectFake();else{if(!this.target)throw new Error('Missing required attributes, use either "target" or "text"');this.selectTarget()}},t.prototype.selectFake=function t(){var e=this;this.removeFake(),this.fakeHandler=document.body.addEventListener("click",function(){return e.removeFake()}),this.fakeElem=document.createElement("textarea"),this.fakeElem.style.position="absolute",this.fakeElem.style.left="-9999px",this.fakeElem.style.top=(window.pageYOffset||document.documentElement.scrollTop)+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,document.body.appendChild(this.fakeElem),this.selectedText=c.default(this.fakeElem),this.copyText()},t.prototype.removeFake=function t(){this.fakeHandler&&(document.body.removeEventListener("click"),this.fakeHandler=null),this.fakeElem&&(document.body.removeChild(this.fakeElem),this.fakeElem=null)},t.prototype.selectTarget=function t(){this.selectedText=c.default(this.target),this.copyText()},t.prototype.copyText=function t(){var e=void 0;try{e=document.execCommand(this.action)}catch(n){e=!1}this.handleResult(e)},t.prototype.handleResult=function t(e){e?this.emitter.emit("success",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)}):this.emitter.emit("error",{action:this.action,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})},t.prototype.clearSelection=function t(){this.target&&this.target.blur(),window.getSelection().removeAllRanges()},t.prototype.destroy=function t(){this.removeFake()},i(t,[{key:"action",set:function t(){var e=arguments.length<=0||void 0===arguments[0]?"copy":arguments[0];if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function t(){return this._action}},{key:"target",set:function t(e){if(void 0!==e){if(!e||"object"!=typeof e||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');this._target=e}},get:function t(){return this._target}}]),t}();n.default=s,e.exports=n.default},{select:6}],9:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}n.__esModule=!0;var c=t("./clipboard-action"),s=r(c),u=t("tiny-emitter"),l=r(u),f=t("good-listener"),d=r(f),h=function(t){function e(n,r){o(this,e),t.call(this),this.resolveOptions(r),this.listenClick(n)}return i(e,t),e.prototype.resolveOptions=function t(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText},e.prototype.listenClick=function t(e){var n=this;this.listener=d.default(e,"click",function(t){return n.onClick(t)})},e.prototype.onClick=function t(e){var n=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new s.default({action:this.action(n),target:this.target(n),text:this.text(n),trigger:n,emitter:this})},e.prototype.defaultAction=function t(e){return a("action",e)},e.prototype.defaultTarget=function t(e){var n=a("target",e);return n?document.querySelector(n):void 0},e.prototype.defaultText=function t(e){return a("text",e)},e.prototype.destroy=function t(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)},e}(l.default);n.default=h,e.exports=n.default},{"./clipboard-action":8,"good-listener":5,"tiny-emitter":7}]},{},[9])(9)});
|
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
// Get Parameters from some url
|
|
2
|
+
var getUrlParameter = function getUrlParameter(sPageURL) {
|
|
3
|
+
var url = sPageURL.split('?');
|
|
4
|
+
var obj = {};
|
|
5
|
+
if (url.length == 2) {
|
|
6
|
+
var sURLVariables = url[1].split('&'),
|
|
7
|
+
sParameterName,
|
|
8
|
+
i;
|
|
9
|
+
for (i = 0; i < sURLVariables.length; i++) {
|
|
10
|
+
sParameterName = sURLVariables[i].split('=');
|
|
11
|
+
obj[sParameterName[0]] = sParameterName[1];
|
|
12
|
+
}
|
|
13
|
+
return obj;
|
|
14
|
+
} else {
|
|
15
|
+
return undefined;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
jQuery(document).ready(function () {
|
|
20
|
+
|
|
21
|
+
// Execute actions on images generated from Markdown pages
|
|
22
|
+
var images = $("article img").not(".inline");
|
|
23
|
+
// Wrap image inside a featherlight (to get a full size view in a popup)
|
|
24
|
+
images.wrap(function () {
|
|
25
|
+
var image = $(this);
|
|
26
|
+
if (!image.parent("a").length) {
|
|
27
|
+
return "<a href='" + image[0].src + "' data-featherlight='image'></a>";
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
// Change styles, depending on parameters set to the image
|
|
32
|
+
images.each(function (index) {
|
|
33
|
+
var image = $(this);
|
|
34
|
+
var o = getUrlParameter(image[0].src);
|
|
35
|
+
if (typeof o !== "undefined") {
|
|
36
|
+
var h = o["height"];
|
|
37
|
+
var w = o["width"];
|
|
38
|
+
var c = o["classes"];
|
|
39
|
+
image.css({
|
|
40
|
+
width: function () {
|
|
41
|
+
if (typeof w !== "undefined") {
|
|
42
|
+
return w;
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
height: function () {
|
|
46
|
+
if (typeof h !== "undefined") {
|
|
47
|
+
return h;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
if (typeof c !== "undefined") {
|
|
52
|
+
var classes = c.split(',');
|
|
53
|
+
$.each(classes, function(i) {
|
|
54
|
+
image.addClass(classes[i]);
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
// Add link button for every
|
|
61
|
+
var text, clip = new Clipboard('.anchor');
|
|
62
|
+
$("h1~h2,h1~h3,h1~h4,h1~h5,h1~h6").append(function (index, html) {
|
|
63
|
+
var element = $(this);
|
|
64
|
+
var url = document.location.origin + document.location.pathname;
|
|
65
|
+
var link = url + "#" + element[0].id;
|
|
66
|
+
return " <span class='anchor' data-clipboard-text='" + link + "'>" +
|
|
67
|
+
"<i class='fa fa-link fa-lg'></i>" +
|
|
68
|
+
"</span>";
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
$(".anchor").on('mouseleave', function (e) {
|
|
72
|
+
$(this).attr('aria-label', null).removeClass('tooltipped tooltipped-s tooltipped-w');
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
clip.on('success', function (e) {
|
|
76
|
+
e.clearSelection();
|
|
77
|
+
$(e.trigger).attr('aria-label', 'Link copied to clipboard!').addClass('tooltipped tooltipped-s');
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
function fallbackMessage(action) {
|
|
85
|
+
var actionMsg = '';
|
|
86
|
+
var actionKey = (action === 'cut' ? 'X' : 'C');
|
|
87
|
+
|
|
88
|
+
if (/iPhone|iPad/i.test(navigator.userAgent)) {
|
|
89
|
+
actionMsg = 'No support :(';
|
|
90
|
+
}
|
|
91
|
+
else if (/Mac/i.test(navigator.userAgent)) {
|
|
92
|
+
actionMsg = 'Press ⌘-' + actionKey + ' to ' + action;
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
actionMsg = 'Press Ctrl-' + actionKey + ' to ' + action;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
return actionMsg;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
jQuery(document).ready(function() {
|
|
102
|
+
jQuery('#sidebar .category-icon').on('click', function() {
|
|
103
|
+
$( this ).toggleClass("fa-angle-down fa-angle-right") ;
|
|
104
|
+
$( this ).parent().parent().children('ul').toggle() ;
|
|
105
|
+
return false;
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
jQuery('[data-clear-history-toggle]').on('click', function() {
|
|
110
|
+
sessionStorage.clear();
|
|
111
|
+
location.reload();
|
|
112
|
+
return false;
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
var ajax;
|
|
116
|
+
jQuery('[data-search-input]').on('input', function() {
|
|
117
|
+
var input = jQuery(this),
|
|
118
|
+
value = input.val(),
|
|
119
|
+
items = jQuery('[data-nav-id]');
|
|
120
|
+
items.removeClass('search-match');
|
|
121
|
+
if (!value.length) {
|
|
122
|
+
$('ul.topics').removeClass('searched');
|
|
123
|
+
items.css('display', 'block');
|
|
124
|
+
sessionStorage.removeItem('search-value');
|
|
125
|
+
$(".highlightable").unhighlight({ element: 'mark' })
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
sessionStorage.setItem('search-value', value);
|
|
130
|
+
$(".highlightable").unhighlight({ element: 'mark' }).highlight(value, { element: 'mark' });
|
|
131
|
+
|
|
132
|
+
if (ajax && ajax.abort) ajax.abort();
|
|
133
|
+
|
|
134
|
+
jQuery('[data-search-clear]').on('click', function() {
|
|
135
|
+
jQuery('[data-search-input]').val('').trigger('input');
|
|
136
|
+
sessionStorage.removeItem('search-input');
|
|
137
|
+
$(".highlightable").unhighlight({ element: 'mark' })
|
|
138
|
+
});
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
$.expr[":"].contains = $.expr.createPseudo(function(arg) {
|
|
142
|
+
return function( elem ) {
|
|
143
|
+
return $(elem).text().toUpperCase().indexOf(arg.toUpperCase()) >= 0;
|
|
144
|
+
};
|
|
145
|
+
});
|
|
146
|
+
|
|
147
|
+
if (sessionStorage.getItem('search-value')) {
|
|
148
|
+
var searchValue = sessionStorage.getItem('search-value')
|
|
149
|
+
sessionStorage.removeItem('search-value');
|
|
150
|
+
var searchedElem = $('article').find(':contains(' + searchValue + ')').get(0);
|
|
151
|
+
searchedElem && searchedElem.scrollIntoView();
|
|
152
|
+
$(".highlightable").highlight(searchValue, { element: 'mark' });
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
// clipboard
|
|
156
|
+
var clipInit = false;
|
|
157
|
+
$('code').each(function() {
|
|
158
|
+
var code = $(this),
|
|
159
|
+
text = code.text();
|
|
160
|
+
|
|
161
|
+
if (text.length > 5) {
|
|
162
|
+
if (!clipInit) {
|
|
163
|
+
var text, clip = new Clipboard('.copy-to-clipboard', {
|
|
164
|
+
text: function(trigger) {
|
|
165
|
+
text = $(trigger).prev('code').text();
|
|
166
|
+
return text.replace(/^\$\s/gm, '');
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
|
|
170
|
+
var inPre;
|
|
171
|
+
clip.on('success', function(e) {
|
|
172
|
+
e.clearSelection();
|
|
173
|
+
inPre = $(e.trigger).parent().prop('tagName') == 'PRE';
|
|
174
|
+
$(e.trigger).attr('aria-label', 'Copied to clipboard!').addClass('tooltipped tooltipped-' + (inPre ? 'w' : 's'));
|
|
175
|
+
});
|
|
176
|
+
|
|
177
|
+
clip.on('error', function(e) {
|
|
178
|
+
inPre = $(e.trigger).parent().prop('tagName') == 'PRE';
|
|
179
|
+
$(e.trigger).attr('aria-label', fallbackMessage(e.action)).addClass('tooltipped tooltipped-' + (inPre ? 'w' : 's'));
|
|
180
|
+
$(document).one('copy', function(){
|
|
181
|
+
$(e.trigger).attr('aria-label', 'Copied to clipboard!').addClass('tooltipped tooltipped-' + (inPre ? 'w' : 's'));
|
|
182
|
+
});
|
|
183
|
+
});
|
|
184
|
+
|
|
185
|
+
clipInit = true;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
code.after('<span class="copy-to-clipboard" title="Copy to clipboard"><object class="clippy-icon" type="image/svg+xml" data="' + baseurl + '/images/clippy.svg"/></span>');
|
|
189
|
+
code.next('.copy-to-clipboard').on('mouseleave', function() {
|
|
190
|
+
$(this).attr('aria-label', null).removeClass('tooltipped tooltipped-s tooltipped-w');
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
|
|
195
|
+
// allow keyboard control for prev/next links
|
|
196
|
+
jQuery(function() {
|
|
197
|
+
jQuery('.nav-prev').click(function(){
|
|
198
|
+
location.href = jQuery(this).attr('href');
|
|
199
|
+
});
|
|
200
|
+
jQuery('.nav-next').click(function() {
|
|
201
|
+
location.href = jQuery(this).attr('href');
|
|
202
|
+
});
|
|
203
|
+
});
|
|
204
|
+
|
|
205
|
+
jQuery(document).keydown(function(e) {
|
|
206
|
+
// prev links - left arrow key
|
|
207
|
+
if(e.which == '37') {
|
|
208
|
+
jQuery('.nav.nav-prev').click();
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
// next links - right arrow key
|
|
212
|
+
if(e.which == '39') {
|
|
213
|
+
jQuery('.nav.nav-next').click();
|
|
214
|
+
}
|
|
215
|
+
});
|
|
216
|
+
|
|
217
|
+
$('#top-bar a:not(:has(img)):not(.btn)').addClass('highlight');
|
|
218
|
+
$('article a:not(:has(img)):not(.btn)').addClass('highlight');
|
|
219
|
+
});
|
|
220
|
+
|
|
221
|
+
jQuery(window).on('load', function() {
|
|
222
|
+
// store this page in session
|
|
223
|
+
sessionStorage.setItem(jQuery('body').data('url'), 1);
|
|
224
|
+
|
|
225
|
+
// loop through the sessionStorage and see if something should be marked as visited
|
|
226
|
+
for (var url in sessionStorage) {
|
|
227
|
+
if (sessionStorage.getItem(url) == 1) jQuery('[data-nav-id="' + url + '"]').addClass('visited');
|
|
228
|
+
}
|
|
229
|
+
});
|
|
230
|
+
|
|
231
|
+
$(function() {
|
|
232
|
+
$('a[rel="lightbox"]').featherlight({
|
|
233
|
+
root: 'section#body'
|
|
234
|
+
});
|
|
235
|
+
});
|
|
236
|
+
|
|
237
|
+
jQuery.extend({
|
|
238
|
+
highlight: function(node, re, nodeName, className) {
|
|
239
|
+
if (node.nodeType === 3) {
|
|
240
|
+
var match = node.data.match(re);
|
|
241
|
+
if (match && !(node.parentNode.ownerSVGElement instanceof SVGElement)) {
|
|
242
|
+
var highlight = document.createElement(nodeName || 'span');
|
|
243
|
+
highlight.className = className || 'highlight';
|
|
244
|
+
var wordNode = node.splitText(match.index);
|
|
245
|
+
wordNode.splitText(match[0].length);
|
|
246
|
+
var wordClone = wordNode.cloneNode(true);
|
|
247
|
+
highlight.appendChild(wordClone);
|
|
248
|
+
wordNode.parentNode.replaceChild(highlight, wordNode);
|
|
249
|
+
return 1; //skip added node in parent
|
|
250
|
+
}
|
|
251
|
+
} else if ((node.nodeType === 1 && node.childNodes) && // only element nodes that have children
|
|
252
|
+
!/(script|style)/i.test(node.tagName) && // ignore script and style nodes
|
|
253
|
+
!(node.tagName === nodeName.toUpperCase() && node.className === className)) { // skip if already highlighted
|
|
254
|
+
for (var i = 0; i < node.childNodes.length; i++) {
|
|
255
|
+
i += jQuery.highlight(node.childNodes[i], re, nodeName, className);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
return 0;
|
|
259
|
+
}
|
|
260
|
+
});
|
|
261
|
+
|
|
262
|
+
jQuery.fn.unhighlight = function(options) {
|
|
263
|
+
var settings = {
|
|
264
|
+
className: 'highlight',
|
|
265
|
+
element: 'span'
|
|
266
|
+
};
|
|
267
|
+
jQuery.extend(settings, options);
|
|
268
|
+
|
|
269
|
+
return this.find(settings.element + "." + settings.className).each(function() {
|
|
270
|
+
var parent = this.parentNode;
|
|
271
|
+
parent.replaceChild(this.firstChild, this);
|
|
272
|
+
parent.normalize();
|
|
273
|
+
}).end();
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
jQuery.fn.highlight = function(words, options) {
|
|
277
|
+
var settings = {
|
|
278
|
+
className: 'highlight',
|
|
279
|
+
element: 'span',
|
|
280
|
+
caseSensitive: false,
|
|
281
|
+
wordsOnly: false
|
|
282
|
+
};
|
|
283
|
+
jQuery.extend(settings, options);
|
|
284
|
+
|
|
285
|
+
if (!words) { return; }
|
|
286
|
+
|
|
287
|
+
if (words.constructor === String) {
|
|
288
|
+
words = [words];
|
|
289
|
+
}
|
|
290
|
+
words = jQuery.grep(words, function(word, i) {
|
|
291
|
+
return word != '';
|
|
292
|
+
});
|
|
293
|
+
words = jQuery.map(words, function(word, i) {
|
|
294
|
+
return word.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
295
|
+
});
|
|
296
|
+
if (words.length == 0) { return this; }
|
|
297
|
+
;
|
|
298
|
+
|
|
299
|
+
var flag = settings.caseSensitive ? "" : "i";
|
|
300
|
+
var pattern = "(" + words.join("|") + ")";
|
|
301
|
+
if (settings.wordsOnly) {
|
|
302
|
+
pattern = "\\b" + pattern + "\\b";
|
|
303
|
+
}
|
|
304
|
+
var re = new RegExp(pattern, flag);
|
|
305
|
+
|
|
306
|
+
return this.each(function() {
|
|
307
|
+
jQuery.highlight(this, re, settings.element, settings.className);
|
|
308
|
+
});
|
|
309
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Featherlight - ultra slim jQuery lightbox
|
|
3
|
+
* Version 1.2.3 - http://noelboss.github.io/featherlight/
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2015, Noël Raoul Bossart (http://www.noelboss.com)
|
|
6
|
+
* MIT Licensed.
|
|
7
|
+
**/
|
|
8
|
+
!function(a){"use strict";function b(a,c){if(!(this instanceof b)){var d=new b(a,c);return d.open(),d}this.id=b.id++,this.setup(a,c),this.chainCallbacks(b._callbackChain)}if("undefined"==typeof a)return void("console"in window&&window.console.info("Too much lightness, Featherlight needs jQuery."));var c=[],d=function(b){return c=a.grep(c,function(a){return a!==b&&a.$instance.closest("body").length>0})},e=function(a,b){var c={},d=new RegExp("^"+b+"([A-Z])(.*)");for(var e in a){var f=e.match(d);if(f){var g=(f[1]+f[2].replace(/([A-Z])/g,"-$1")).toLowerCase();c[g]=a[e]}}return c},f={keyup:"onKeyUp",resize:"onResize"},g=function(c){a.each(b.opened().reverse(),function(){return c.isDefaultPrevented()||!1!==this[f[c.type]](c)?void 0:(c.preventDefault(),c.stopPropagation(),!1)})},h=function(c){if(c!==b._globalHandlerInstalled){b._globalHandlerInstalled=c;var d=a.map(f,function(a,c){return c+"."+b.prototype.namespace}).join(" ");a(window)[c?"on":"off"](d,g)}};b.prototype={constructor:b,namespace:"featherlight",targetAttr:"data-featherlight",variant:null,resetCss:!1,background:null,openTrigger:"click",closeTrigger:"click",filter:null,root:"body",openSpeed:250,closeSpeed:250,closeOnClick:"background",closeOnEsc:!0,closeIcon:"✕",loading:"",otherClose:null,beforeOpen:a.noop,beforeContent:a.noop,beforeClose:a.noop,afterOpen:a.noop,afterContent:a.noop,afterClose:a.noop,onKeyUp:a.noop,onResize:a.noop,type:null,contentFilters:["jquery","image","html","ajax","iframe","text"],setup:function(b,c){"object"!=typeof b||b instanceof a!=!1||c||(c=b,b=void 0);var d=a.extend(this,c,{target:b}),e=d.resetCss?d.namespace+"-reset":d.namespace,f=a(d.background||['<div class="'+e+"-loading "+e+'">','<div class="'+e+'-content">','<span class="'+e+"-close-icon "+d.namespace+'-close">',d.closeIcon,"</span>",'<div class="'+d.namespace+'-inner">'+d.loading+"</div>","</div>","</div>"].join("")),g="."+d.namespace+"-close"+(d.otherClose?","+d.otherClose:"");return d.$instance=f.clone().addClass(d.variant),d.$instance.on(d.closeTrigger+"."+d.namespace,function(b){var c=a(b.target);("background"===d.closeOnClick&&c.is("."+d.namespace)||"anywhere"===d.closeOnClick||c.closest(g).length)&&(b.preventDefault(),d.close())}),this},getContent:function(){var b=this,c=this.constructor.contentFilters,d=function(a){return b.$currentTarget&&b.$currentTarget.attr(a)},e=d(b.targetAttr),f=b.target||e||"",g=c[b.type];if(!g&&f in c&&(g=c[f],f=b.target&&e),f=f||d("href")||"",!g)for(var h in c)b[h]&&(g=c[h],f=b[h]);if(!g){var i=f;if(f=null,a.each(b.contentFilters,function(){return g=c[this],g.test&&(f=g.test(i)),!f&&g.regex&&i.match&&i.match(g.regex)&&(f=i),!f}),!f)return"console"in window&&window.console.error("Featherlight: no content filter found "+(i?' for "'+i+'"':" (no target specified)")),!1}return g.process.call(b,f)},setContent:function(b){var c=this;return(b.is("iframe")||a("iframe",b).length>0)&&c.$instance.addClass(c.namespace+"-iframe"),c.$instance.removeClass(c.namespace+"-loading"),c.$instance.find("."+c.namespace+"-inner").slice(1).remove().end().replaceWith(a.contains(c.$instance[0],b[0])?"":b),c.$content=b.addClass(c.namespace+"-inner"),c},open:function(b){var d=this;if(d.$instance.hide().appendTo(d.root),!(b&&b.isDefaultPrevented()||d.beforeOpen(b)===!1)){b&&b.preventDefault();var e=d.getContent();if(e)return c.push(d),h(!0),d.$instance.fadeIn(d.openSpeed),d.beforeContent(b),a.when(e).always(function(a){d.setContent(a),d.afterContent(b)}).then(d.$instance.promise()).done(function(){d.afterOpen(b)})}return d.$instance.detach(),a.Deferred().reject().promise()},close:function(b){var c=this,e=a.Deferred();return c.beforeClose(b)===!1?e.reject():(0===d(c).length&&h(!1),c.$instance.fadeOut(c.closeSpeed,function(){c.$instance.detach(),c.afterClose(b),e.resolve()})),e.promise()},chainCallbacks:function(b){for(var c in b)this[c]=a.proxy(b[c],this,a.proxy(this[c],this))}},a.extend(b,{id:0,autoBind:"[data-featherlight]",defaults:b.prototype,contentFilters:{jquery:{regex:/^[#.]\w/,test:function(b){return b instanceof a&&b},process:function(b){return a(b).clone(!0)}},image:{regex:/\.(png|jpg|jpeg|gif|tiff|bmp)(\?\S*)?$/i,process:function(b){var c=this,d=a.Deferred(),e=new Image,f=a('<img src="'+b+'" alt="" class="'+c.namespace+'-image" />');return e.onload=function(){f.naturalWidth=e.width,f.naturalHeight=e.height,d.resolve(f)},e.onerror=function(){d.reject(f)},e.src=b,d.promise()}},html:{regex:/^\s*<[\w!][^<]*>/,process:function(b){return a(b)}},ajax:{regex:/./,process:function(b){var c=a.Deferred(),d=a("<div></div>").load(b,function(a,b){"error"!==b&&c.resolve(d.contents()),c.fail()});return c.promise()}},iframe:{process:function(b){var c=new a.Deferred,d=a("<iframe/>").hide().attr("src",b).css(e(this,"iframe")).on("load",function(){c.resolve(d.show())}).appendTo(this.$instance.find("."+this.namespace+"-content"));return c.promise()}},text:{process:function(b){return a("<div>",{text:b})}}},functionAttributes:["beforeOpen","afterOpen","beforeContent","afterContent","beforeClose","afterClose"],readElementConfig:function(b,c){var d=this,e=new RegExp("^data-"+c+"-(.*)"),f={};return b&&b.attributes&&a.each(b.attributes,function(){var b=this.name.match(e);if(b){var c=this.value,g=a.camelCase(b[1]);if(a.inArray(g,d.functionAttributes)>=0)c=new Function(c);else try{c=a.parseJSON(c)}catch(h){}f[g]=c}}),f},extend:function(b,c){var d=function(){this.constructor=b};return d.prototype=this.prototype,b.prototype=new d,b.__super__=this.prototype,a.extend(b,this,c),b.defaults=b.prototype,b},attach:function(b,c,d){var e=this;"object"!=typeof c||c instanceof a!=!1||d||(d=c,c=void 0),d=a.extend({},d);var f=d.namespace||e.defaults.namespace,g=a.extend({},e.defaults,e.readElementConfig(b[0],f),d);return b.on(g.openTrigger+"."+g.namespace,g.filter,function(f){var h=a.extend({$source:b,$currentTarget:a(this)},e.readElementConfig(b[0],g.namespace),e.readElementConfig(this,g.namespace),d);new e(c,h).open(f)}),b},current:function(){var a=this.opened();return a[a.length-1]||null},opened:function(){var b=this;return d(),a.grep(c,function(a){return a instanceof b})},close:function(){var a=this.current();return a?a.close():void 0},_onReady:function(){var b=this;b.autoBind&&(b.attach(a(document),{filter:b.autoBind}),a(b.autoBind).filter("[data-featherlight-filter]").each(function(){b.attach(a(this))}))},_callbackChain:{onKeyUp:function(a,b){return 27===b.keyCode?(this.closeOnEsc&&this.$instance.find("."+this.namespace+"-close:first").click(),!1):a(b)},onResize:function(a,b){if(this.$content.naturalWidth){var c=this.$content.naturalWidth,d=this.$content.naturalHeight;this.$content.css("width","").css("height","");var e=Math.max(c/parseInt(this.$content.parent().css("width"),10),d/parseInt(this.$content.parent().css("height"),10));e>1&&this.$content.css("width",""+c/e+"px").css("height",""+d/e+"px")}return a(b)},afterContent:function(a,b){var c=a(b);return this.onResize(b),c}}}),a.featherlight=b,a.fn.featherlight=function(a,c){return b.attach(this,a,c)},a(document).ready(function(){b._onReady()})}(jQuery);
|