website-utilities 1.0.265 → 1.0.268
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/deploy.d.ts +1 -0
- package/deploy.js +3 -0
- package/index.compiled.css +1 -1
- package/index.css +13 -10
- package/index.js +1 -1
- package/package.json +51 -5
- package/index.sh +0 -52
package/deploy.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/deploy.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// -*- coding: utf-8 -*-
|
|
3
|
+
'use strict';if(typeof module!=='undefined'&&module!==null&&eval('typeof require')!=='undefined'&&eval('require')!==null&&'main'in eval('require')&&eval('typeof require.main')!=='undefined'&&eval('require.main')!==null){var ORIGINAL_MAIN_MODULE=module;if(module!==eval('require.main')&&'paths'in module&&'paths'in eval('require.main')&&typeof __dirname!=='undefined'&&__dirname!==null)module.paths=eval('require.main.paths').concat(module.paths.filter(function(path){return eval('require.main.paths').includes(path)}))};(()=>{"use strict";var e={r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},o={};e.r(o);const c=require("child_process"),i=require("path"),t=(e,o={})=>(0,c.execSync)(e,{encoding:"utf-8",shell:"/bin/bash",...o});if(t("git branch").includes("* master")){console.info("Build new web page."),t("yarn build");const e=t("pwd"),o=(0,i.resolve)(e,"../",`${(0,i.basename)(e)}.github.io`);let c="./",d="./";t("git branch").includes("gh-pages")?(console.info("Checkout distribution branch."),t("git checkout gh-pages")):o?(c=`${o}/build/`,d=o):console.warn("No website target found."),console.info("Update page data."),t(`\n rsync './build/' '${c}' $ILU_RSYNC_DEFAULT_ARGUMENTS --exclude=CNAME --exclude='.*' --exclude=node_modules --exclude=readme.md --exclude=./build\n `),t("rm --recursive --force ./build"),console.info("Upload compiled webpage"),t("git pull",{cwd:d}),t("git add --all",{cwd:d}),t("git commit --message 'Automatic page build update.'",{cwd:d}),t("git push",{cwd:d}),t("git branch").includes("gh-pages")?console.info("Switch back to source directory."):(console.info("Switch back to master branch."),t("git checkout master"))}module.exports=o})();
|
package/index.compiled.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* !/usr/bin/env css
|
|
2
|
-
-*- coding: utf-8 -*- */@font-face{font-family:open-sans;src:url(font.compiled/open-sans-light.woff2?md5=[chunkhash]) format("woff2"),url(font.compiled/open-sans-light.woff?md5=[chunkhash]) format("woff");font-weight:300;font-style:normal}@font-face{font-family:open-sans;src:url(font.compiled/open-sans-light-italic.woff2?md5=[chunkhash]) format("woff2"),url(font.compiled/open-sans-light-italic.woff?md5=[chunkhash]) format("woff");font-weight:300;font-style:italic}@font-face{font-family:open-sans;src:url(font.compiled/open-sans-regular.woff2?md5=[chunkhash]) format("woff2"),url(font.compiled/open-sans-regular.woff?md5=[chunkhash]) format("woff");font-weight:400;font-style:normal}@font-face{font-family:open-sans;src:url(font.compiled/open-sans-italic.woff2?md5=[chunkhash]) format("woff2"),url(font.compiled/open-sans-italic.woff?md5=[chunkhash]) format("woff");font-weight:400;font-style:italic}@font-face{font-family:open-sans;src:url(font.compiled/open-sans-semi-bold.woff2?md5=[chunkhash]) format("woff2"),url(font.compiled/open-sans-semi-bold.woff?md5=[chunkhash]) format("woff");font-weight:600;font-style:normal}@font-face{font-family:open-sans;src:url(font.compiled/open-sans-semi-bold-italic.woff2?md5=[chunkhash]) format("woff2"),url(font.compiled/open-sans-semi-bold-italic.woff?md5=[chunkhash]) format("woff");font-weight:600;font-style:italic}@font-face{font-family:open-sans;src:url(font.compiled/open-sans-bold.woff2?md5=[chunkhash]) format("woff2"),url(font.compiled/open-sans-bold.woff?md5=[chunkhash]) format("woff");font-weight:700;font-style:normal}@font-face{font-family:open-sans;src:url(font.compiled/open-sans-bold-italic.woff2?md5=[chunkhash]) format("woff2"),url(font.compiled/open-sans-bold-italic.woff?md5=[chunkhash]) format("woff");font-weight:700;font-style:italic}@font-face{font-family:open-sans;src:url(font.compiled/open-sans-extra-bold.woff2?md5=[chunkhash]) format("woff2"),url(font.compiled/open-sans-extra-bold.woff?md5=[chunkhash]) format("woff");font-weight:800;font-style:normal}@font-face{font-family:open-sans;src:url(font.compiled/open-sans-extra-bold-italic.woff2?md5=[chunkhash]) format("woff2"),url(font.compiled/open-sans-extra-bold-italic.woff?md5=[chunkhash]) format("woff");font-weight:800;font-style:italic}@font-face{font-family:open-sans-condensed;src:url(font.compiled/open-sans-condensed-bold.woff2?md5=[chunkhash]) format("woff2"),url(font.compiled/open-sans-condensed-bold.woff?md5=[chunkhash]) format("woff");font-weight:700;font-style:normal}@font-face{font-family:open-sans-condensed;src:url(font.compiled/open-sans-condensed-light.woff2?md5=[chunkhash]) format("woff2"),url(font.compiled/open-sans-condensed-light.woff?md5=[chunkhash]) format("woff");font-weight:300;font-style:normal}@font-face{font-family:open-sans-condensed;src:url(font.compiled/open-sans-condensed-light-italic.woff2?md5=[chunkhash]) format("woff2"),url(font.compiled/open-sans-condensed-light-italic.woff?md5=[chunkhash]) format("woff");font-weight:300;font-style:italic}@font-face{font-family:Glyphicons Halflings;src:url(font.compiled/glyphicons-halflings-regular.woff2?md5=[chunkhash]) format("woff2"),url(font.compiled/glyphicons-halflings-regular.woff?md5=[chunkhash]) format("woff")}@font-face{font-family:Glyphicons Social Regular;src:url(font.compiled/glyphicons-halflings-social-regular.woff2?md5=[chunkhash]) format("woff2"),url(font.compiled/glyphicons-halflings-social-regular.woff?md5=[chunkhash]) format("woff")}.wu{--default-space:20px;--extra-extra-small-width:360px;--extra-small-width:500px;--small-width:768px;--medium-width:992px;--large-width:1200px;@custom-media --extra-extra-small (min-width: 360px);@custom-media --extra-small (min-width: 500px);@custom-media --small (min-width: 768px);@custom-media --medium (min-width: 992px);@custom-media --large (min-width: 1200px);--background-color:#fff;--disabled-color:#eee;--font-color:#555;--border-color:#ccc;--font-family:"Open Sans",open-sans,sans-serif;--font-family-condensed:"Open Sans Condensed",open-sans-condensed,sans-serif;margin:0;font-family:var(--font-family);font-size:14px}.wu-lang-replacement,.wu lang-replacement{display:none}.wu-h1,.wu-h2,.wu-h3,.wu-h4,.wu-h5,.wu-h6,.wu h1,.wu h2,.wu h3,.wu h4,.wu h5,.wu h6{font-family:var(--font-family);line-height:1.1}.wu-h1,.wu-h2,.wu h1,.wu h2{font-family:var(--font-family-condensed);font-weight:400;font-size:3em}.wu-h2,.wu h2{font-size:2em}.wu a,.wu a:focus,.wu a:hover,.wu a:visited,a.wu-a,a.wu-a:focus,a.wu-a:hover,a.wu-a:visited{outline:none;text-decoration:none}.tools-disable-scrolling{height:100%!important;overflow:hidden!important}.wu-action,.wu .action{cursor:pointer}.wu-window-loading-cover,.wu .window-loading-cover{background-color:var(--background-color);position:fixed;height:100%;width:100%;z-index:1002!important;}.wu-window-loading-cover>div,.wu .window-loading-cover>div{position:absolute;top:50%;left:50%}.wu-icon,.wu-icon-social,.wu .icon,.wu .icon-social{font-family:Glyphicons Halflings,sans-serif;font-style:normal;font-weight:400;line-height:1;color:#1d1d1b;display:inline-block;padding-left:30px;position:relative;text-decoration:none;top:1px;vertical-align:middle;zoom:1;}.wu-icon:before,.wu-icon-social:before,.wu .icon:before,.wu .icon-social:before{display:inline-block;font:24px/1em Glyphicons Social Regular,sans-serif;font-style:normal;font-weight:400;left:0;margin:0 5px 0 0;position:absolute;text-transform:none;top:0;zoom:1}.wu-icon-arrow-left:before,.wu .icon-arrow-left:before{content:"\E091"}.wu-icon-social-white:before,.wu .icon-social-white:before{color:#fff}.wu-icon-social-pinterest:before,.wu .icon-social-pinterest:before{content:"\E001"}.wu-icon-social-dropbox:before,.wu .icon-social-dropbox:before{content:"\E002"}.wu-icon-social-google_plus:before,.wu .icon-social-google_plus:before{content:"\E003"}.wu-icon-social-jolicloud:before,.wu .icon-social-jolicloud:before{content:"\E004"}.wu-icon-social-yahoo:before,.wu .icon-social-yahoo:before{content:"\E005"}.wu-icon-social-blogger:before,.wu .icon-social-blogger:before{content:"\E006"}.wu-icon-social-picasa:before,.wu .icon-social-picasa:before{content:"\E007"}.wu-icon-social-amazon:before,.wu .icon-social-amazon:before{content:"\E008"}.wu-icon-social-tumblr:before,.wu .icon-social-tumblr:before{content:"\E009"}.wu-icon-social-wordpress:before,.wu .icon-social-wordpress:before{content:"\E010"}.wu-icon-social-instapaper:before,.wu .icon-social-instapaper:before{content:"\E011"}.wu-icon-social-evernote:before,.wu .icon-social-evernote:before{content:"\E012"}.wu-icon-social-xing:before,.wu .icon-social-xing:before{content:"\E013"}.wu-icon-social-zootool:before,.wu .icon-social-zootool:before{content:"\E014"}.wu-icon-social-dribbble:before,.wu .icon-social-dribbble:before{content:"\E015"}.wu-icon-social-deviantart:before,.wu .icon-social-deviantart:before{content:"\E016"}.wu-icon-social-read_it_later:before,.wu .icon-social-read_it_later:before{content:"\E017"}.wu-icon-social-linked_in:before,.wu .icon-social-linked_in:before{content:"\E018"}.wu-icon-social-forrst:before,.wu .icon-social-forrst:before{content:"\E019"}.wu-icon-social-pinboard:before,.wu .icon-social-pinboard:before{content:"\E020"}.wu-icon-social-behance:before,.wu .icon-social-behance:before{content:"\E021"}.wu-icon-social-github:before,.wu .icon-social-github:before{content:"\E022"}.wu-icon-social-youtube:before,.wu .icon-social-youtube:before{content:"\E023"}.wu-icon-social-skitch:before,.wu .icon-social-skitch:before{content:"\E024"}.wu-icon-social-foursquare:before,.wu .icon-social-foursquare:before{content:"\E025"}.wu-icon-social-quora:before,.wu .icon-social-quora:before{content:"\E026"}.wu-icon-social-badoo:before,.wu .icon-social-badoo:before{content:"\E027"}.wu-icon-social-spotify:before,.wu .icon-social-spotify:before{content:"\E028"}.wu-icon-social-stumbleupon:before,.wu .icon-social-stumbleupon:before{content:"\E029"}.wu-icon-social-readability:before,.wu .icon-social-readability:before{content:"\E030"}.wu-icon-social-facebook:before,.wu .icon-social-facebook:before{content:"\E031"}.wu-icon-social-twitter:before,.wu .icon-social-twitter:before{content:"\E032"}.wu-icon-social-instagram:before,.wu .icon-social-instagram:before{content:"\E033"}.wu-icon-social-posterous_spaces:before,.wu .icon-social-posterous_spaces:before{content:"\E034"}.wu-icon-social-vimeo:before,.wu .icon-social-vimeo:before{content:"\E035"}.wu-icon-social-flickr:before,.wu .icon-social-flickr:before{content:"\E036"}.wu-icon-social-last_fm:before,.wu .icon-social-last_fm:before{content:"\E037"}.wu-icon-social-rss:before,.wu .icon-social-rss:before{content:"\E038"}.wu-icon-social-skype:before,.wu .icon-social-skype:before{content:"\E039"}.wu-icon-social-e-mail:before,.wu .icon-social-e-mail:before{content:"\E040"}.wu-icon-social-vine:before,.wu .icon-social-vine:before{content:"\E041"}.wu-icon-social-myspace:before,.wu .icon-social-myspace:before{content:"\E042"}.wu-icon-social-goodreads:before,.wu .icon-social-goodreads:before{content:"\E043"}.wu-icon-social-apple:before,.wu .icon-social-apple:before{content:"\F8FF"}.wu-icon-social-windows:before,.wu .icon-social-windows:before{content:"\E045"}.wu-icon-social-yelp:before,.wu .icon-social-yelp:before{content:"\E046"}.wu-icon-social-playstation:before,.wu .icon-social-playstation:before{content:"\E047"}.wu-icon-social-xbox:before,.wu .icon-social-xbox:before{content:"\E048"}.wu-icon-social-android:before,.wu .icon-social-android:before{content:"\E049"}.wu-icon-social-ios:before,.wu .icon-social-ios:before{content:"\E050"}.wu-select,.wu .select{position:relative;}.wu-select__arrow,.wu .select__arrow{position:absolute;top:3px;right:15px;pointer-events:none;}.wu-select__arrow span,.wu .select__arrow span{vertical-align:bottom;font-size:10px}.wu-select select,.wu .select select{position:static!important;padding-left:7px!important;padding-right:25px!important;}.wu-select select::-ms-expand,.wu .select select::-ms-expand{display:none}.wu-checkbox,.wu .checkbox{margin-top:2px;padding-top:3px;}.wu-checkbox label,.wu .checkbox label{padding-left:40px;}.wu-checkbox label .checkbox__wrapper,.wu .checkbox label .checkbox__wrapper{margin-top:-2px;margin-left:-40px;position:absolute;}.wu-checkbox label .checkbox__wrapper .checkbox__wrapper__styled,.wu .checkbox label .checkbox__wrapper .checkbox__wrapper__styled{border-radius:4px;border:2px solid var(--border-color);cursor:pointer;float:right;height:25px;padding:0;width:25px;}.wu-checkbox label .checkbox__wrapper .checkbox__wrapper__styled .checkbox__wrapper__styled__checked,.wu .checkbox label .checkbox__wrapper .checkbox__wrapper__styled .checkbox__wrapper__styled__checked{background:transparent;border:3px solid var(--font-color);border-top:none;border-right:none;height:8px;left:4px;opacity:0;position:absolute;top:5px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);width:13px}.wu-checkbox label .checkbox__wrapper input[type=checkbox],.wu .checkbox label .checkbox__wrapper input[type=checkbox]{display:none;}.wu-checkbox label .checkbox__wrapper input[type=checkbox]:checked~span.checkbox-styled>span.checkbox-styled-checked,.wu .checkbox label .checkbox__wrapper input[type=checkbox]:checked~span.checkbox-styled>span.checkbox-styled-checked{opacity:1}.wu-checkbox label .checkbox__wrapper input[type=checkbox]:disabled~span.checkbox-styled,.wu .checkbox label .checkbox__wrapper input[type=checkbox]:disabled~span.checkbox-styled{background-color:var(--disabled-color)}.tools-hidden-on-javascript-enabled{display:none}.tools-visible-on-javascript-enabled{display:inline;display:initial}@-webkit-keyframes spinner-line-fade-more{0%,to{opacity:0}1%{opacity:1}}@keyframes spinner-line-fade-more{0%,to{opacity:0}1%{opacity:1}}@-webkit-keyframes spinner-line-fade-quick{0%,39%,to{opacity:.25}40%{opacity:1}}@keyframes spinner-line-fade-quick{0%,39%,to{opacity:.25}40%{opacity:1}}@-webkit-keyframes spinner-line-fade-default{0%,to{opacity:.22}1%{opacity:1}}@keyframes spinner-line-fade-default{0%,to{opacity:.22}1%{opacity:1}}
|
|
2
|
+
-*- coding: utf-8 -*- */@font-face{font-family:open-sans;src:url(font.compiled/open-sans-light.woff2?md5=[chunkhash]) format("woff2"),url(font.compiled/open-sans-light.woff?md5=[chunkhash]) format("woff");font-weight:300;font-style:normal}@font-face{font-family:open-sans;src:url(font.compiled/open-sans-light-italic.woff2?md5=[chunkhash]) format("woff2"),url(font.compiled/open-sans-light-italic.woff?md5=[chunkhash]) format("woff");font-weight:300;font-style:italic}@font-face{font-family:open-sans;src:url(font.compiled/open-sans-regular.woff2?md5=[chunkhash]) format("woff2"),url(font.compiled/open-sans-regular.woff?md5=[chunkhash]) format("woff");font-weight:400;font-style:normal}@font-face{font-family:open-sans;src:url(font.compiled/open-sans-italic.woff2?md5=[chunkhash]) format("woff2"),url(font.compiled/open-sans-italic.woff?md5=[chunkhash]) format("woff");font-weight:400;font-style:italic}@font-face{font-family:open-sans;src:url(font.compiled/open-sans-semi-bold.woff2?md5=[chunkhash]) format("woff2"),url(font.compiled/open-sans-semi-bold.woff?md5=[chunkhash]) format("woff");font-weight:600;font-style:normal}@font-face{font-family:open-sans;src:url(font.compiled/open-sans-semi-bold-italic.woff2?md5=[chunkhash]) format("woff2"),url(font.compiled/open-sans-semi-bold-italic.woff?md5=[chunkhash]) format("woff");font-weight:600;font-style:italic}@font-face{font-family:open-sans;src:url(font.compiled/open-sans-bold.woff2?md5=[chunkhash]) format("woff2"),url(font.compiled/open-sans-bold.woff?md5=[chunkhash]) format("woff");font-weight:700;font-style:normal}@font-face{font-family:open-sans;src:url(font.compiled/open-sans-bold-italic.woff2?md5=[chunkhash]) format("woff2"),url(font.compiled/open-sans-bold-italic.woff?md5=[chunkhash]) format("woff");font-weight:700;font-style:italic}@font-face{font-family:open-sans;src:url(font.compiled/open-sans-extra-bold.woff2?md5=[chunkhash]) format("woff2"),url(font.compiled/open-sans-extra-bold.woff?md5=[chunkhash]) format("woff");font-weight:800;font-style:normal}@font-face{font-family:open-sans;src:url(font.compiled/open-sans-extra-bold-italic.woff2?md5=[chunkhash]) format("woff2"),url(font.compiled/open-sans-extra-bold-italic.woff?md5=[chunkhash]) format("woff");font-weight:800;font-style:italic}@font-face{font-family:open-sans-condensed;src:url(font.compiled/open-sans-condensed-bold.woff2?md5=[chunkhash]) format("woff2"),url(font.compiled/open-sans-condensed-bold.woff?md5=[chunkhash]) format("woff");font-weight:700;font-style:normal}@font-face{font-family:open-sans-condensed;src:url(font.compiled/open-sans-condensed-light.woff2?md5=[chunkhash]) format("woff2"),url(font.compiled/open-sans-condensed-light.woff?md5=[chunkhash]) format("woff");font-weight:300;font-style:normal}@font-face{font-family:open-sans-condensed;src:url(font.compiled/open-sans-condensed-light-italic.woff2?md5=[chunkhash]) format("woff2"),url(font.compiled/open-sans-condensed-light-italic.woff?md5=[chunkhash]) format("woff");font-weight:300;font-style:italic}@font-face{font-family:Glyphicons Halflings;src:url(font.compiled/glyphicons-halflings-regular.woff2?md5=[chunkhash]) format("woff2"),url(font.compiled/glyphicons-halflings-regular.woff?md5=[chunkhash]) format("woff")}@font-face{font-family:Glyphicons Social Regular;src:url(font.compiled/glyphicons-halflings-social-regular.woff2?md5=[chunkhash]) format("woff2"),url(font.compiled/glyphicons-halflings-social-regular.woff?md5=[chunkhash]) format("woff")}.wu{--default-space:20px;--extra-extra-small-width:360px;--extra-small-width:500px;--small-width:768px;--medium-width:992px;--large-width:1200px;@custom-media --extra-extra-small (min-width: 360px);@custom-media --extra-small (min-width: 500px);@custom-media --small (min-width: 768px);@custom-media --medium (min-width: 992px);@custom-media --large (min-width: 1200px);--background-color:#fff;--disabled-color:#eee;--font-color:#555;--border-color:#ccc;--font-family:"Open Sans",open-sans,sans-serif;--font-family-condensed:"Open Sans Condensed",open-sans-condensed,sans-serif;margin:0;font-family:var(--font-family);font-size:14px}.wu-lang-replacement,.wu lang-replacement{display:none}.wu-h1,.wu-h2,.wu-h3,.wu-h4,.wu-h5,.wu-h6,.wu h1,.wu h2,.wu h3,.wu h4,.wu h5,.wu h6{font-family:var(--font-family);line-height:1.1}.wu-h1,.wu-h2,.wu h1,.wu h2{font-family:var(--font-family-condensed);font-weight:400;font-size:3em}.wu-h2,.wu h2{font-size:2em}.wu a,.wu a:focus,.wu a:hover,.wu a:visited,a.wu-a,a.wu-a:focus,a.wu-a:hover,a.wu-a:visited{outline:none;text-decoration:none}.tools-disable-scrolling{height:100%!important;overflow:hidden!important}.wu-action,.wu .action{cursor:pointer}.wu-window-loading-cover,.wu .window-loading-cover{background-color:var(--background-color);position:fixed;height:100%;width:100%;z-index:1002!important;}.wu-window-loading-cover>div,.wu .window-loading-cover>div{position:absolute;top:50%;left:50%}.wu-icon,.wu-icon-social,.wu .icon,.wu .icon-social{font-family:Glyphicons Halflings,sans-serif;font-style:normal;font-weight:400;line-height:1;display:inline-block;position:relative;text-decoration:none;top:1px;vertical-align:middle;zoom:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;}.wu-icon:before,.wu-icon-social:before,.wu .icon:before,.wu .icon-social:before{font-family:Glyphicons Halflings,sans-serif;display:inline-block;left:0;margin:0 5px 0 0;position:absolute;top:0}.wu-icon-arrow-left:before,.wu .icon-arrow-left:before{content:"\E091"}.wu-icon-social:before,.wu .icon-social:before{font:24px/1em Glyphicons Social Regular,sans-serif}.wu-icon-social-white:before,.wu .icon-social-white:before{color:#fff}.wu-icon-social-pinterest:before,.wu .icon-social-pinterest:before{content:"\E001"}.wu-icon-social-dropbox:before,.wu .icon-social-dropbox:before{content:"\E002"}.wu-icon-social-google_plus:before,.wu .icon-social-google_plus:before{content:"\E003"}.wu-icon-social-jolicloud:before,.wu .icon-social-jolicloud:before{content:"\E004"}.wu-icon-social-yahoo:before,.wu .icon-social-yahoo:before{content:"\E005"}.wu-icon-social-blogger:before,.wu .icon-social-blogger:before{content:"\E006"}.wu-icon-social-picasa:before,.wu .icon-social-picasa:before{content:"\E007"}.wu-icon-social-amazon:before,.wu .icon-social-amazon:before{content:"\E008"}.wu-icon-social-tumblr:before,.wu .icon-social-tumblr:before{content:"\E009"}.wu-icon-social-wordpress:before,.wu .icon-social-wordpress:before{content:"\E010"}.wu-icon-social-instapaper:before,.wu .icon-social-instapaper:before{content:"\E011"}.wu-icon-social-evernote:before,.wu .icon-social-evernote:before{content:"\E012"}.wu-icon-social-xing:before,.wu .icon-social-xing:before{content:"\E013"}.wu-icon-social-zootool:before,.wu .icon-social-zootool:before{content:"\E014"}.wu-icon-social-dribbble:before,.wu .icon-social-dribbble:before{content:"\E015"}.wu-icon-social-deviantart:before,.wu .icon-social-deviantart:before{content:"\E016"}.wu-icon-social-read_it_later:before,.wu .icon-social-read_it_later:before{content:"\E017"}.wu-icon-social-linked_in:before,.wu .icon-social-linked_in:before{content:"\E018"}.wu-icon-social-forrst:before,.wu .icon-social-forrst:before{content:"\E019"}.wu-icon-social-pinboard:before,.wu .icon-social-pinboard:before{content:"\E020"}.wu-icon-social-behance:before,.wu .icon-social-behance:before{content:"\E021"}.wu-icon-social-github:before,.wu .icon-social-github:before{content:"\E022"}.wu-icon-social-youtube:before,.wu .icon-social-youtube:before{content:"\E023"}.wu-icon-social-skitch:before,.wu .icon-social-skitch:before{content:"\E024"}.wu-icon-social-foursquare:before,.wu .icon-social-foursquare:before{content:"\E025"}.wu-icon-social-quora:before,.wu .icon-social-quora:before{content:"\E026"}.wu-icon-social-badoo:before,.wu .icon-social-badoo:before{content:"\E027"}.wu-icon-social-spotify:before,.wu .icon-social-spotify:before{content:"\E028"}.wu-icon-social-stumbleupon:before,.wu .icon-social-stumbleupon:before{content:"\E029"}.wu-icon-social-readability:before,.wu .icon-social-readability:before{content:"\E030"}.wu-icon-social-facebook:before,.wu .icon-social-facebook:before{content:"\E031"}.wu-icon-social-twitter:before,.wu .icon-social-twitter:before{content:"\E032"}.wu-icon-social-instagram:before,.wu .icon-social-instagram:before{content:"\E033"}.wu-icon-social-posterous_spaces:before,.wu .icon-social-posterous_spaces:before{content:"\E034"}.wu-icon-social-vimeo:before,.wu .icon-social-vimeo:before{content:"\E035"}.wu-icon-social-flickr:before,.wu .icon-social-flickr:before{content:"\E036"}.wu-icon-social-last_fm:before,.wu .icon-social-last_fm:before{content:"\E037"}.wu-icon-social-rss:before,.wu .icon-social-rss:before{content:"\E038"}.wu-icon-social-skype:before,.wu .icon-social-skype:before{content:"\E039"}.wu-icon-social-e-mail:before,.wu .icon-social-e-mail:before{content:"\E040"}.wu-icon-social-vine:before,.wu .icon-social-vine:before{content:"\E041"}.wu-icon-social-myspace:before,.wu .icon-social-myspace:before{content:"\E042"}.wu-icon-social-goodreads:before,.wu .icon-social-goodreads:before{content:"\E043"}.wu-icon-social-apple:before,.wu .icon-social-apple:before{content:"\F8FF"}.wu-icon-social-windows:before,.wu .icon-social-windows:before{content:"\E045"}.wu-icon-social-yelp:before,.wu .icon-social-yelp:before{content:"\E046"}.wu-icon-social-playstation:before,.wu .icon-social-playstation:before{content:"\E047"}.wu-icon-social-xbox:before,.wu .icon-social-xbox:before{content:"\E048"}.wu-icon-social-android:before,.wu .icon-social-android:before{content:"\E049"}.wu-icon-social-ios:before,.wu .icon-social-ios:before{content:"\E050"}.wu-select,.wu .select{position:relative;}.wu-select__arrow,.wu .select__arrow{position:absolute;top:3px;right:15px;pointer-events:none;}.wu-select__arrow span,.wu .select__arrow span{vertical-align:bottom;font-size:10px}.wu-select select,.wu .select select{position:static!important;padding-left:7px!important;padding-right:25px!important;}.wu-select select::-ms-expand,.wu .select select::-ms-expand{display:none}.wu-checkbox,.wu .checkbox{margin-top:2px;padding-top:3px;}.wu-checkbox label,.wu .checkbox label{padding-left:40px;}.wu-checkbox label .checkbox__wrapper,.wu .checkbox label .checkbox__wrapper{margin-top:-2px;margin-left:-40px;position:absolute;}.wu-checkbox label .checkbox__wrapper .checkbox__wrapper__styled,.wu .checkbox label .checkbox__wrapper .checkbox__wrapper__styled{border-radius:4px;border:2px solid var(--border-color);cursor:pointer;float:right;height:25px;padding:0;width:25px;}.wu-checkbox label .checkbox__wrapper .checkbox__wrapper__styled .checkbox__wrapper__styled__checked,.wu .checkbox label .checkbox__wrapper .checkbox__wrapper__styled .checkbox__wrapper__styled__checked{background:transparent;border:3px solid var(--font-color);border-top:none;border-right:none;height:8px;left:4px;opacity:0;position:absolute;top:5px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);width:13px}.wu-checkbox label .checkbox__wrapper input[type=checkbox],.wu .checkbox label .checkbox__wrapper input[type=checkbox]{display:none;}.wu-checkbox label .checkbox__wrapper input[type=checkbox]:checked~span.checkbox-styled>span.checkbox-styled-checked,.wu .checkbox label .checkbox__wrapper input[type=checkbox]:checked~span.checkbox-styled>span.checkbox-styled-checked{opacity:1}.wu-checkbox label .checkbox__wrapper input[type=checkbox]:disabled~span.checkbox-styled,.wu .checkbox label .checkbox__wrapper input[type=checkbox]:disabled~span.checkbox-styled{background-color:var(--disabled-color)}.tools-hidden-on-javascript-enabled{display:none}.tools-visible-on-javascript-enabled{display:inline;display:initial}@-webkit-keyframes spinner-line-fade-more{0%,to{opacity:0}1%{opacity:1}}@keyframes spinner-line-fade-more{0%,to{opacity:0}1%{opacity:1}}@-webkit-keyframes spinner-line-fade-quick{0%,39%,to{opacity:.25}40%{opacity:1}}@keyframes spinner-line-fade-quick{0%,39%,to{opacity:.25}40%{opacity:1}}@-webkit-keyframes spinner-line-fade-default{0%,to{opacity:.22}1%{opacity:1}}@keyframes spinner-line-fade-default{0%,to{opacity:.22}1%{opacity:1}}
|
package/index.css
CHANGED
|
@@ -295,29 +295,28 @@ a.wu-a:visited,
|
|
|
295
295
|
|
|
296
296
|
line-height: 1;
|
|
297
297
|
|
|
298
|
-
color: #1d1d1b;
|
|
299
298
|
display: inline-block;
|
|
300
|
-
padding-left: 30px;
|
|
301
299
|
position: relative;
|
|
300
|
+
|
|
302
301
|
text-decoration: none;
|
|
302
|
+
|
|
303
303
|
top: 1px;
|
|
304
304
|
vertical-align: middle;
|
|
305
|
+
|
|
305
306
|
zoom: 1;
|
|
306
307
|
|
|
308
|
+
-webkit-font-smoothing: antialiased;
|
|
309
|
+
-moz-osx-font-smoothing: grayscale;
|
|
310
|
+
|
|
307
311
|
&::before {
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
*/
|
|
312
|
+
font-family: "Glyphicons Halflings", sans-serif;
|
|
313
|
+
|
|
311
314
|
display: inline-block;
|
|
312
|
-
|
|
313
|
-
font-style: normal;
|
|
314
|
-
font-weight: normal;
|
|
315
|
+
|
|
315
316
|
left: 0;
|
|
316
317
|
margin: 0 5px 0 0;
|
|
317
318
|
position: absolute;
|
|
318
|
-
text-transform: none;
|
|
319
319
|
top: 0;
|
|
320
|
-
zoom: 1;
|
|
321
320
|
}
|
|
322
321
|
}
|
|
323
322
|
|
|
@@ -328,6 +327,10 @@ a.wu-a:visited,
|
|
|
328
327
|
|
|
329
328
|
.wu-icon-social,
|
|
330
329
|
.wu .icon-social {
|
|
330
|
+
&::before {
|
|
331
|
+
font: 24px/1em "Glyphicons Social Regular", sans-serif;
|
|
332
|
+
}
|
|
333
|
+
|
|
331
334
|
&-white::before { color: #fff; }
|
|
332
335
|
&-pinterest::before { content: "\E001"; }
|
|
333
336
|
&-dropbox::before { content: "\E002"; }
|
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';if(typeof module!=='undefined'&&module!==null&&eval('typeof require')!=='undefined'&&eval('require')!==null&&'main'in eval('require')&&eval('typeof require.main')!=='undefined'&&eval('require.main')!==null){var ORIGINAL_MAIN_MODULE=module;if(module!==eval('require.main')&&'paths'in module&&'paths'in eval('require.main')&&typeof __dirname!=='undefined'&&__dirname!==null)module.paths=eval('require.main.paths').concat(module.paths.filter(function(path){return eval('require.main.paths').includes(path)}))};if(typeof window==='undefined'||window===null)var window=(typeof global==='undefined'||global===null)?{}:global;!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/regenerator"),require("clientnode"));else if("function"==typeof define&&define.amd)define(["@babel/runtime/helpers/asyncToGenerator","@babel/runtime/helpers/extends","@babel/runtime/helpers/inheritsLoose","@babel/runtime/regenerator","clientnode"],e);else{var o="object"==typeof exports?e(require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/regenerator"),require("clientnode")):e(t["@babel/runtime/helpers/asyncToGenerator"],t["@babel/runtime/helpers/extends"],t["@babel/runtime/helpers/inheritsLoose"],t["@babel/runtime/regenerator"],t.clientnode);for(var n in o)("object"==typeof exports?exports:t)[n]=o[n]}}(this,(function(t,e,o,n,i){return function(){"use strict";var r=[,function(e){e.exports=t},function(t){t.exports=e},function(t){t.exports=o},function(t){t.exports=n},function(t){t.exports=i}],a={};function s(t){var e=a[t];if(void 0!==e)return e.exports;var o=a[t]={exports:{}};return r[t](o,o.exports,s),o.exports}s.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(e,{a:e}),e},s.d=function(t,e){for(var o in e)s.o(e,o)&&!s.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var l={};return function(){s.r(l),s.d(l,{WebsiteUtilities:function(){return T},default:function(){return x}});var t=s(1),e=s.n(t),o=s(2),n=s.n(o),i=s(3),r=s.n(i),a=s(4),c=s.n(a),d=s(5),u=s.n(d),p=function(){return p=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},p.apply(this,arguments)},h={lines:12,length:7,width:5,radius:10,scale:1,corners:1,color:"#000",fadeColor:"transparent",animation:"spinner-line-fade-default",rotate:0,direction:1,speed:1,zIndex:2e9,className:"spinner",top:"50%",left:"50%",shadow:"0 0 1px transparent",position:"absolute"},m=function(){function t(t){void 0===t&&(t={}),this.opts=p(p({},h),t)}return t.prototype.spin=function(t){return this.stop(),this.el=document.createElement("div"),this.el.className=this.opts.className,this.el.setAttribute("role","progressbar"),f(this.el,{position:this.opts.position,width:0,zIndex:this.opts.zIndex,left:this.opts.left,top:this.opts.top,transform:"scale("+this.opts.scale+")"}),t&&t.insertBefore(this.el,t.firstChild||null),function(t,e){var o=Math.round(e.corners*e.width*500)/1e3+"px",n="none";!0===e.shadow?n="0 2px 4px #000":"string"==typeof e.shadow&&(n=e.shadow);for(var i=function(t){for(var e=[],o=0,n=t.split(",");o<n.length;o++){var i=n[o].match(/^\s*([a-zA-Z]+\s+)?(-?\d+(\.\d+)?)([a-zA-Z]*)\s+(-?\d+(\.\d+)?)([a-zA-Z]*)(.*)$/);if(null!==i){var r=+i[2],a=+i[5],s=i[4],l=i[7];0!=r||s||(s=l),0!==a||l||(l=s),s===l&&e.push({prefix:i[1]||"",x:r,y:a,xUnits:s,yUnits:l,end:i[8]})}}return e}(n),r=0;r<e.lines;r++){var a=~~(360/e.lines*r+e.rotate),s=f(document.createElement("div"),{position:"absolute",top:-e.width/2+"px",width:e.length+e.width+"px",height:e.width+"px",background:g(e.fadeColor,r),borderRadius:o,transformOrigin:"left",transform:"rotate("+a+"deg) translateX("+e.radius+"px)"}),l=r*e.direction/e.lines/e.speed;l-=1/e.speed;var c=f(document.createElement("div"),{width:"100%",height:"100%",background:g(e.color,r),borderRadius:o,boxShadow:w(i,a),animation:1/e.speed+"s linear "+l+"s infinite "+e.animation});s.appendChild(c),t.appendChild(s)}}(this.el,this.opts),this},t.prototype.stop=function(){return this.el&&("undefined"==typeof requestAnimationFrame?clearTimeout(this.animateId):cancelAnimationFrame(this.animateId),this.el.parentNode&&this.el.parentNode.removeChild(this.el),this.el=void 0),this},t}();function f(t,e){for(var o in e)t.style[o]=e[o];return t}function g(t,e){return"string"==typeof t?t:t[e%t.length]}function w(t,e){for(var o=[],n=0,i=t;n<i.length;n++){var r=i[n],a=v(r.x,r.y,e);o.push(r.prefix+a[0]+r.xUnits+" "+a[1]+r.yUnits+r.end)}return o.join(", ")}function v(t,e,o){var n=Math.round,i=o*Math.PI/180,r=Math.sin(i),a=Math.cos(i);return[n(1e3*(t*a+e*r))/1e3,n(1e3*(-t*r+e*a))/1e3]}function b(t,e){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(o)return(o=o.call(t)).next.bind(o);if(Array.isArray(t)||(o=function(t,e){if(t){if("string"==typeof t)return y(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?y(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){o&&(t=o);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,n=Array(e);o<e;o++)n[o]=t[o];return n}var T=function(t){function o(){for(var e,o=arguments.length,n=Array(o),i=0;i<o;i++)n[i]=arguments[i];return(e=t.call.apply(t,[this].concat(n))||this).options=null,e.$domNodes=null,e.currentMediaQueryMode="",e.currentSectionName="home",e.languageHandler=null,e.startUpAnimationIsComplete=!1,e.viewportIsOnTop=!1,e.windowLoaded=!1,e.windowLoadingSpinner=null,e._onViewportMovesToTop=u().debounce((function(){"hidden"===e.$domNodes.scrollToTopButton.css("visibility")?e.$domNodes.scrollToTopButton.css("opacity",0):(e.options.scrollToTop.button.hideAnimationOptions.always=function(){return e.$domNodes.scrollToTopButton.css({bottom:"-="+e.options.scrollToTop.button.slideDistanceInPixel,display:"none"})},e.$domNodes.scrollToTopButton.finish().animate({bottom:"+="+e.options.scrollToTop.button.slideDistanceInPixel,opacity:0},e.options.scrollToTop.button.hideAnimationOptions))})),e._onViewportMovesAwayFromTop=u().debounce((function(){"hidden"===e.$domNodes.scrollToTopButton.css("visibility")?e.$domNodes.scrollToTopButton.css("opacity",1):e.$domNodes.scrollToTopButton.finish().css({bottom:"+="+e.options.scrollToTop.button.slideDistanceInPixel,display:"block",opacity:0}).animate({bottom:"-="+e.options.scrollToTop.button.slideDistanceInPixel,queue:!1,opacity:1},e.options.scrollToTop.button.showAnimationOptions)})),e}r()(o,t);var i=o.prototype;return i.initialize=function(e){var n,i=this;return void 0===e&&(e={}),t.prototype.initialize.call(this,u().extend(!0,{},o._defaultOptions,e)),this.options.initialSectionName?this.currentSectionName=this.options.initialSectionName:null!=(n=d.globalContext.window.location)&&n.hash&&(this.currentSectionName=d.globalContext.location.hash.substring(1)),this.$domNodes=this.grabDomNodes(this.options.domNodes),this.disableScrolling(),new Promise((function(t){i.$domNodes.windowLoadingSpinner.length&&(i.windowLoadingSpinner=new m(i.options.windowLoadingSpinner),i.windowLoadingSpinner.spin(i.$domNodes.windowLoadingSpinner[0])),i._bindScrollEvents(),i.$domNodes.parent.show();var e=function(){i.windowLoaded||(i.windowLoaded=!0,i._removeLoadingCover().then((function(){i._performStartUpEffects(),t(i)})))};(0,d.$)((function(){u().timeout(e,i.options.windowLoadedTimeoutAfterDocLoadedInMSec)})),i.on(i.$domNodes.window,"load",e),i._bindClickTracking(),i.options.language.logging||(i.options.language.logging=i.options.logging),i.options.activateLanguageSupport&&!i.languageHandler&&(0,d.$)(i.$domNodes.parent).Internationalisation(i.options.language).then((function(t){i.languageHandler=t.data("Internationalisation")})),i._bindNavigationEvents(),i._bindMediaQueryChangeEvents(),i._triggerWindowResizeEvents()}))},i.scrollToTop=function(){return d.globalContext.document&&(0,d.$)("html, body").stop().animate({scrollTop:0},this.options.scrollToTop.options),this},i.disableScrolling=function(){return this.$domNodes.parent.addClass("disable-scrolling").on("touchmove",(function(t){return t.preventDefault()})),this},i.enableScrolling=function(){return this.$domNodes.parent.removeClass(["disable-scrolling","touchmove"]),this.off(this.$domNodes.parent),this},i.track=function(t){if(d.globalContext.window.location&&this.options.tracking){var e=n()({context:d.globalContext.window.location.pathname+"#"+this.currentSectionName},t);(isNaN(e.value)||"number"!=typeof e.value)&&(e.value=1),this.debug('Run tracking code: "event" with arguments:'),this.debug(e);try{this.options.tracking.track(e)}catch(t){this.warn('Problem in tracking "'+u().represent(e)+'": '+u().represent(t))}}return this},i._onChangeMediaQueryMode=function(){},i._onChangeToLargeMode=function(){},i._onChangeToMediumMode=function(){},i._onChangeToSmallMode=function(){},i._onChangeToExtraSmallMode=function(){},i._onSwitchSection=function(t){var e;if(d.globalContext.window.location&&null!=(e=this.options.tracking)&&e.sectionSwitch&&this.currentSectionName!==t){this.currentSectionName=t,this.debug('Run section switch tracking on section "'+this.currentSectionName+'".');try{this.options.tracking.sectionSwitch.call(this,this.currentSectionName)}catch(t){this.warn('Problem due to track section switch to "'+this.currentSectionName+'": '+u().represent(t))}}},i._onStartUpAnimationComplete=function(){this.startUpAnimationIsComplete=!0},i._bindMediaQueryChangeEvents=function(){this.on(this.$domNodes.window,"resize",this._triggerWindowResizeEvents.bind(this))},i._triggerWindowResizeEvents=function(){for(var t=arguments.length,e=Array(t),o=0;o<t;o++)e[o]=arguments[o];for(var n,i,r=b(this.options.mediaQueryClassNameIndicator);!(n=r()).done;)i=n.value,this.$domNodes.mediaQueryIndicator.prependTo(this.$domNodes.parent).addClass("hidden-"+i[1]),this.$domNodes.mediaQueryIndicator.is(":hidden")&&i[0]!==this.currentMediaQueryMode&&(this.fireEvent.apply(this,["changeMediaQueryMode",!1,this,this.currentMediaQueryMode,i[0]].concat(e)),this.fireEvent.apply(this,["changeTo"+u().stringCapitalize(i[0])+"Mode",!1,this,this.currentMediaQueryMode,i[0]].concat(e)),this.currentMediaQueryMode=i[0]),this.$domNodes.mediaQueryIndicator.removeClass("hidden-"+i[1])},i._bindScrollEvents=function(){for(var t=this,e=arguments.length,o=Array(e),n=0;n<e;n++)o[n]=arguments[n];var i=(0,d.$)("body, html").add(this.$domNodes.window);i.on(this.options.knownScrollEventNames.join(" "),(function(e){t.options.switchToManualScrollingIndicator(e)&&i.stop(!0)})),this.on(this.$domNodes.window,"scroll",(function(){t.$domNodes.window.scrollTop()?t.viewportIsOnTop&&(t.viewportIsOnTop=!1,t.fireEvent.apply(t,["viewportMovesAwayFromTop",!1,t].concat(o))):!t.viewportIsOnTop&&(t.viewportIsOnTop=!0,t.fireEvent.apply(t,["viewportMovesToTop",!1,t].concat(o)))})),this.$domNodes.window.scrollTop()?(this.viewportIsOnTop=!1,this.fireEvent.apply(this,["viewportMovesAwayFromTop",!1,this].concat(o))):(this.viewportIsOnTop=!0,this.fireEvent.apply(this,["viewportMovesToTop",!1,this].concat(o)))},i._removeLoadingCover=function(){var t=e()(c().mark((function t(){var e=this;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,u().timeout(this.options.additionalPageLoadingTimeInMilliseconds);case 2:return(0,d.$)(u().stringFormat('[class^="{1}"], [class*=" {1}"]',this.sliceDomNodeSelectorPrefix(this.options.domNodes.startUpAnimationClassPrefix).substr(1))).css(this.options.startUpHide),t.next=5,new Promise((function(t){e.$domNodes.windowLoadingCover.length?(e.enableScrolling(),e.$domNodes.windowLoadingCover.animate(e.options.windowLoadingCoverHideAnimation,{always:function(){return t()}})):t()}));case 5:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),i._performStartUpEffects=function(){var t=e()(c().mark((function t(e){var o,n=this;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===e&&(e=1),this.$domNodes.windowLoadingCover.hide(),this.windowLoadingSpinner&&this.windowLoadingSpinner.stop(),!(0,d.$)(u().stringFormat('[class^="{1}"], [class*=" {1}"]',this.sliceDomNodeSelectorPrefix(this.options.domNodes.startUpAnimationClassPrefix).substr(1))).length){t.next=17;break}return t.next=6,u().timeout(this.options.startUpAnimationElementDelayInMiliseconds);case 6:if(o=!1,(0,d.$)(this.options.domNodes.startUpAnimationClassPrefix+""+e).animate(this.options.startUpShowAnimation,{always:function(){o&&n.fireEvent("startUpAnimationComplete")}}),!(0,d.$)(this.options.domNodes.startUpAnimationClassPrefix+""+(e+1)).length){t.next=14;break}return t.next=12,this._performStartUpEffects(e+1);case 12:t.next=15;break;case 14:o=!0;case 15:t.next=18;break;case 17:this.fireEvent("startUpAnimationComplete");case 18:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),i._bindNavigationEvents=function(){var t=this;d.globalContext.window.addEventListener("hashchange",(function(){t.startUpAnimationIsComplete&&t.fireEvent("switchSection",!1,t,location.hash.substring(1))}),!1),this._bindScrollToTopButton()},i._bindScrollToTopButton=function(){var t=this;this.on(this.$domNodes.scrollToTopButton,"click",(function(e){e.preventDefault(),t.scrollToTop()}))},i._bindClickTracking=function(){var t=this;this.options.tracking&&(this.options.tracking.linkClick&&this.on(this.$domNodes.parent.find("a"),"click",(function(e){return t.options.tracking.linkClick.call(t,(0,d.$)(e.target),e)})),this.options.tracking.buttonClick&&this.on(this.$domNodes.parent.find("button"),"click",(function(e){return t.options.tracking.buttonClick.call(t,(0,d.$)(e.target),e)})))},o}(u());T._defaultOptions={activateLanguageSupport:!0,additionalPageLoadingTimeInMilliseconds:0,domain:"auto",domNodes:{mediaQueryIndicator:'<div class="wu-media-query-indicator">',scrollToTopButton:'a[href="#top"]',startUpAnimationClassPrefix:".wu-start-up-animation-number-",top:"header",windowLoadingCover:".window-loading-cover, .wu-window-loading-cover",windowLoadingSpinner:".window-loading-cover > div, .wu-window-loading-cover > div"},domNodeSelectorInfix:"wu",domNodeSelectorPrefix:"body.{1}",initialSectionName:"home",knownScrollEventNames:["DOMMouseScroll","keyup","mousedown","mousewheel","scroll","touchmove","wheel"],language:{},mediaQueryClassNameIndicator:[["extraSmall","xs"],["small","sm"],["medium","md"],["large","lg"]],name:"WebsiteUtilities",onChangeMediaQueryMode:u().noop,onChangeToExtraSmallMode:u().noop,onChangeToLargeMode:u().noop,onChangeToMediumMode:u().noop,onChangeToSmallMode:u().noop,onViewportMovesAwayFromTop:u().noop,onViewportMovesToTop:u().noop,onSwitchSection:u().noop,onStartUpAnimationComplete:u().noop,scrollToTop:{button:{hideAnimationOptions:{},showAnimationOptions:{},slideDistanceInPixel:30},options:{duration:"fast"}},startUpAnimationElementDelayInMiliseconds:100,startUpHide:{opacity:0},startUpShowAnimation:{opacity:1},switchToManualScrollingIndicator:function(t){return"number"==typeof t.which&&0<t.which||"mousedown"===t.type||"mousewheel"===t.type||"touchmove"===t.type},tracking:{buttonClick:function(t){this.track({event:"buttonClick",eventType:"click",label:t.text(),reference:t.attr("action")||t.attr("target")||t.attr("type")||t.text(),subject:"button",value:parseInt(t.attr("website-analytics-value")),userInteraction:!0})},linkClick:function(t){this.track({event:"linkClick",eventType:"click",label:t.text(),reference:t.attr("href")||t.attr("action")||t.attr("target")||t.attr("type")||t.text(),subject:"link",value:parseInt(t.attr("website-analytics-value")),userInteraction:!0})},sectionSwitch:function(t){this.track({event:"sectionSwitch",eventType:"sectionSwitch",label:t,reference:d.globalContext.window.location.pathname+"#"+t,subject:"url",userInteraction:!1})},track:function(t){var e;null==(e=d.globalContext.dataLayer)||e.push(t)}},windowLoadingCoverHideAnimation:{opacity:0},windowLoadingSpinner:{animation:"spinner-line-fade-quick",className:"spinner",color:"#000",corners:1,direction:1,fadeColor:"transparent",left:"auto",length:23,lines:9,position:"absolute",radius:40,rotate:0,scale:1,shadow:!1,speed:1.1,top:"auto",width:11,zIndex:2e9},windowLoadedTimeoutAfterDocLoadedInMSec:2e3};var x=T;d.$.WebsiteUtilities=function(){for(var t=arguments.length,e=Array(t),o=0;o<t;o++)e[o]=arguments[o];return u().controller(T,e)},d.$.WebsiteUtilities.class=T}(),l}()}));
|
|
1
|
+
'use strict';if(typeof module!=='undefined'&&module!==null&&eval('typeof require')!=='undefined'&&eval('require')!==null&&'main'in eval('require')&&eval('typeof require.main')!=='undefined'&&eval('require.main')!==null){var ORIGINAL_MAIN_MODULE=module;if(module!==eval('require.main')&&'paths'in module&&'paths'in eval('require.main')&&typeof __dirname!=='undefined'&&__dirname!==null)module.paths=eval('require.main.paths').concat(module.paths.filter(function(path){return eval('require.main.paths').includes(path)}))};if(typeof window==='undefined'||window===null)var window=(typeof global==='undefined'||global===null)?{}:global;!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/regenerator"),require("clientnode"));else if("function"==typeof define&&define.amd)define(["@babel/runtime/helpers/asyncToGenerator","@babel/runtime/helpers/extends","@babel/runtime/helpers/inheritsLoose","@babel/runtime/regenerator","clientnode"],e);else{var o="object"==typeof exports?e(require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/regenerator"),require("clientnode")):e(t["@babel/runtime/helpers/asyncToGenerator"],t["@babel/runtime/helpers/extends"],t["@babel/runtime/helpers/inheritsLoose"],t["@babel/runtime/regenerator"],t.clientnode);for(var n in o)("object"==typeof exports?exports:t)[n]=o[n]}}(this,(function(t,e,o,n,i){return function(){"use strict";var r=[,function(e){e.exports=t},function(t){t.exports=e},function(t){t.exports=o},function(t){t.exports=n},function(t){t.exports=i}],s={};function a(t){var e=s[t];if(void 0!==e)return e.exports;var o=s[t]={exports:{}};return r[t](o,o.exports,a),o.exports}a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,{a:e}),e},a.d=function(t,e){for(var o in e)a.o(e,o)&&!a.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var l={};return function(){a.r(l),a.d(l,{WebsiteUtilities:function(){return T},default:function(){return x}});var t=a(1),e=a.n(t),o=a(2),n=a.n(o),i=a(3),r=a.n(i),s=a(4),d=a.n(s),c=a(5),u=a.n(c),p=function(){return p=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},p.apply(this,arguments)},h={lines:12,length:7,width:5,radius:10,scale:1,corners:1,color:"#000",fadeColor:"transparent",animation:"spinner-line-fade-default",rotate:0,direction:1,speed:1,zIndex:2e9,className:"spinner",top:"50%",left:"50%",shadow:"0 0 1px transparent",position:"absolute"},m=function(){function t(t){void 0===t&&(t={}),this.opts=p(p({},h),t)}return t.prototype.spin=function(t){return this.stop(),this.el=document.createElement("div"),this.el.className=this.opts.className,this.el.setAttribute("role","progressbar"),f(this.el,{position:this.opts.position,width:0,zIndex:this.opts.zIndex,left:this.opts.left,top:this.opts.top,transform:"scale("+this.opts.scale+")"}),t&&t.insertBefore(this.el,t.firstChild||null),function(t,e){var o=Math.round(e.corners*e.width*500)/1e3+"px",n="none";!0===e.shadow?n="0 2px 4px #000":"string"==typeof e.shadow&&(n=e.shadow);for(var i=function(t){for(var e=[],o=0,n=t.split(",");o<n.length;o++){var i=n[o].match(/^\s*([a-zA-Z]+\s+)?(-?\d+(\.\d+)?)([a-zA-Z]*)\s+(-?\d+(\.\d+)?)([a-zA-Z]*)(.*)$/);if(null!==i){var r=+i[2],s=+i[5],a=i[4],l=i[7];0!=r||a||(a=l),0!==s||l||(l=a),a===l&&e.push({prefix:i[1]||"",x:r,y:s,xUnits:a,yUnits:l,end:i[8]})}}return e}(n),r=0;r<e.lines;r++){var s=~~(360/e.lines*r+e.rotate),a=f(document.createElement("div"),{position:"absolute",top:-e.width/2+"px",width:e.length+e.width+"px",height:e.width+"px",background:g(e.fadeColor,r),borderRadius:o,transformOrigin:"left",transform:"rotate("+s+"deg) translateX("+e.radius+"px)"}),l=r*e.direction/e.lines/e.speed;l-=1/e.speed;var d=f(document.createElement("div"),{width:"100%",height:"100%",background:g(e.color,r),borderRadius:o,boxShadow:w(i,s),animation:1/e.speed+"s linear "+l+"s infinite "+e.animation});a.appendChild(d),t.appendChild(a)}}(this.el,this.opts),this},t.prototype.stop=function(){return this.el&&("undefined"==typeof requestAnimationFrame?clearTimeout(this.animateId):cancelAnimationFrame(this.animateId),this.el.parentNode&&this.el.parentNode.removeChild(this.el),this.el=void 0),this},t}();function f(t,e){for(var o in e)t.style[o]=e[o];return t}function g(t,e){return"string"==typeof t?t:t[e%t.length]}function w(t,e){for(var o=[],n=0,i=t;n<i.length;n++){var r=i[n],s=v(r.x,r.y,e);o.push(r.prefix+s[0]+r.xUnits+" "+s[1]+r.yUnits+r.end)}return o.join(", ")}function v(t,e,o){var n=Math.round,i=o*Math.PI/180,r=Math.sin(i),s=Math.cos(i);return[n(1e3*(t*s+e*r))/1e3,n(1e3*(-t*r+e*s))/1e3]}function b(t,e){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(o)return(o=o.call(t)).next.bind(o);if(Array.isArray(t)||(o=function(t,e){if(t){if("string"==typeof t)return y(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?y(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){o&&(t=o);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,n=Array(e);o<e;o++)n[o]=t[o];return n}var T=function(t){function o(){for(var e,o=arguments.length,n=Array(o),i=0;i<o;i++)n[i]=arguments[i];return(e=t.call.apply(t,[this].concat(n))||this).options=null,e.$domNodes=null,e.currentMediaQueryMode="",e.currentSectionName="home",e.languageHandler=null,e.startUpAnimationIsComplete=!1,e.viewportIsOnTop=!1,e.windowLoaded=!1,e.windowLoadingSpinner=null,e._onViewportMovesToTop=u().debounce((function(){"hidden"===e.$domNodes.scrollToTopButton.css("visibility")?e.$domNodes.scrollToTopButton.css("opacity",0):(e.options.scrollToTop.button.hideAnimationOptions.always=function(){return e.$domNodes.scrollToTopButton.css({bottom:"-="+e.options.scrollToTop.button.slideDistanceInPixel,display:"none"})},e.$domNodes.scrollToTopButton.finish().animate({bottom:"+="+e.options.scrollToTop.button.slideDistanceInPixel,opacity:0},e.options.scrollToTop.button.hideAnimationOptions))})),e._onViewportMovesAwayFromTop=u().debounce((function(){"hidden"===e.$domNodes.scrollToTopButton.css("visibility")?e.$domNodes.scrollToTopButton.css("opacity",1):e.$domNodes.scrollToTopButton.finish().css({bottom:"+="+e.options.scrollToTop.button.slideDistanceInPixel,display:"block",opacity:0}).animate({bottom:"-="+e.options.scrollToTop.button.slideDistanceInPixel,queue:!1,opacity:1},e.options.scrollToTop.button.showAnimationOptions)})),e}r()(o,t);var i=o.prototype;return i.initialize=function(e){var n=this;return void 0===e&&(e={}),t.prototype.initialize.call(this,u().extend(!0,{},o._defaultOptions,e)),this.$domNodes=this.grabDomNodes(this.options.domNodes),this.disableScrolling(),new Promise((function(t){n.$domNodes.windowLoadingSpinner.length&&(n.windowLoadingSpinner=new m(n.options.windowLoadingSpinner),n.windowLoadingSpinner.spin(n.$domNodes.windowLoadingSpinner[0])),n._bindScrollEvents(),n.$domNodes.parent.show();var e=function(){n.windowLoaded||(n.windowLoaded=!0,n._removeLoadingCover().then((function(){n._performStartUpEffects(),t(n)})))};(0,c.$)((function(){u().timeout(e,n.options.windowLoadedTimeoutAfterDocLoadedInMSec)})),n.on(n.$domNodes.window,"load",e),n._bindClickTracking(),n.options.language.logging||(n.options.language.logging=n.options.logging),n.options.activateLanguageSupport&&!n.languageHandler&&(0,c.$)(n.$domNodes.parent).Internationalisation(n.options.language).then((function(t){n.languageHandler=t.data("Internationalisation")})),n._bindNavigationEvents(),n._bindMediaQueryChangeEvents(),n._triggerWindowResizeEvents()}))},i.scrollToTop=function(){return c.globalContext.document&&(0,c.$)("html, body").stop().animate({scrollTop:0},this.options.scrollToTop.options),this},i.disableScrolling=function(){return this.$domNodes.parent.addClass("disable-scrolling").on("touchmove",(function(t){return t.preventDefault()})),this},i.enableScrolling=function(){return this.$domNodes.parent.removeClass(["disable-scrolling","touchmove"]),this.off(this.$domNodes.parent),this},i.track=function(t){if(c.globalContext.window.location&&this.options.tracking){var e=n()({context:c.globalContext.window.location.pathname+"#"+this.currentSectionName},t);(isNaN(e.value)||"number"!=typeof e.value)&&(e.value=1),this.debug('Run tracking code: "event" with arguments:'),this.debug(e);try{this.options.tracking.track(e)}catch(t){this.warn('Problem in tracking "'+u().represent(e)+'": '+u().represent(t))}}return this},i._onChangeMediaQueryMode=function(){},i._onChangeToLargeMode=function(){},i._onChangeToMediumMode=function(){},i._onChangeToSmallMode=function(){},i._onChangeToExtraSmallMode=function(){},i._onSwitchSection=function(t){var e;if(c.globalContext.window.location&&null!=(e=this.options.tracking)&&e.sectionSwitch&&this.currentSectionName!==t){this.currentSectionName=t,this.debug('Run section switch tracking on section "'+this.currentSectionName+'".');try{this.options.tracking.sectionSwitch.call(this,this.currentSectionName)}catch(t){this.warn('Problem due to track section switch to "'+this.currentSectionName+'": '+u().represent(t))}}},i._onStartUpAnimationComplete=function(){this.startUpAnimationIsComplete=!0},i._bindMediaQueryChangeEvents=function(){this.on(this.$domNodes.window,"resize",this._triggerWindowResizeEvents.bind(this))},i._triggerWindowResizeEvents=function(){for(var t=arguments.length,e=Array(t),o=0;o<t;o++)e[o]=arguments[o];for(var n,i,r=b(this.options.mediaQueryClassNameIndicator);!(n=r()).done;)i=n.value,this.$domNodes.mediaQueryIndicator.prependTo(this.$domNodes.parent).addClass("hidden-"+i[1]),this.$domNodes.mediaQueryIndicator.is(":hidden")&&i[0]!==this.currentMediaQueryMode&&(this.fireEvent.apply(this,["changeMediaQueryMode",!1,this,this.currentMediaQueryMode,i[0]].concat(e)),this.fireEvent.apply(this,["changeTo"+u().stringCapitalize(i[0])+"Mode",!1,this,this.currentMediaQueryMode,i[0]].concat(e)),this.currentMediaQueryMode=i[0]),this.$domNodes.mediaQueryIndicator.removeClass("hidden-"+i[1])},i._bindScrollEvents=function(){for(var t=this,e=arguments.length,o=Array(e),n=0;n<e;n++)o[n]=arguments[n];var i=(0,c.$)("body, html").add(this.$domNodes.window);i.on(this.options.knownScrollEventNames.join(" "),(function(e){t.options.switchToManualScrollingIndicator(e)&&i.stop(!0)})),this.on(this.$domNodes.window,"scroll",(function(){t.$domNodes.window.scrollTop()?t.viewportIsOnTop&&(t.viewportIsOnTop=!1,t.fireEvent.apply(t,["viewportMovesAwayFromTop",!1,t].concat(o))):!t.viewportIsOnTop&&(t.viewportIsOnTop=!0,t.fireEvent.apply(t,["viewportMovesToTop",!1,t].concat(o)))})),this.$domNodes.window.scrollTop()?(this.viewportIsOnTop=!1,this.fireEvent.apply(this,["viewportMovesAwayFromTop",!1,this].concat(o))):(this.viewportIsOnTop=!0,this.fireEvent.apply(this,["viewportMovesToTop",!1,this].concat(o)))},i._removeLoadingCover=function(){var t=e()(d().mark((function t(){var e=this;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,u().timeout(this.options.additionalPageLoadingTimeInMilliseconds);case 2:return(0,c.$)(u().stringFormat('[class^="{1}"], [class*=" {1}"]',this.sliceDomNodeSelectorPrefix(this.options.domNodes.startUpAnimationClassPrefix).substr(1))).css(this.options.startUpHide),t.next=5,new Promise((function(t){e.$domNodes.windowLoadingCover.length?(e.enableScrolling(),e.$domNodes.windowLoadingCover.animate(e.options.windowLoadingCoverHideAnimation,{always:function(){return t()}})):t()}));case 5:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),i._performStartUpEffects=function(){var t=e()(d().mark((function t(e){var o,n=this;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===e&&(e=1),this.$domNodes.windowLoadingCover.hide(),this.windowLoadingSpinner&&this.windowLoadingSpinner.stop(),!(0,c.$)(u().stringFormat('[class^="{1}"], [class*=" {1}"]',this.sliceDomNodeSelectorPrefix(this.options.domNodes.startUpAnimationClassPrefix).substr(1))).length){t.next=17;break}return t.next=6,u().timeout(this.options.startUpAnimationElementDelayInMiliseconds);case 6:if(o=!1,(0,c.$)(this.options.domNodes.startUpAnimationClassPrefix+""+e).animate(this.options.startUpShowAnimation,{always:function(){o&&n.fireEvent("startUpAnimationComplete")}}),!(0,c.$)(this.options.domNodes.startUpAnimationClassPrefix+""+(e+1)).length){t.next=14;break}return t.next=12,this._performStartUpEffects(e+1);case 12:t.next=15;break;case 14:o=!0;case 15:t.next=18;break;case 17:this.fireEvent("startUpAnimationComplete");case 18:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),i._bindNavigationEvents=function(){var t=this;c.globalContext.window.addEventListener("hashchange",(function(){t.startUpAnimationIsComplete&&t.fireEvent("switchSection",!1,t,location.hash.substring(1))}),!1),this._bindScrollToTopButton()},i._bindScrollToTopButton=function(){var t=this;this.on(this.$domNodes.scrollToTopButton,"click",(function(e){e.preventDefault(),t.scrollToTop()}))},i._bindClickTracking=function(){var t=this;this.options.tracking&&(this.options.tracking.linkClick&&this.on(this.$domNodes.parent.find("a"),"click",(function(e){return t.options.tracking.linkClick.call(t,(0,c.$)(e.target),e)})),this.options.tracking.buttonClick&&this.on(this.$domNodes.parent.find("button"),"click",(function(e){return t.options.tracking.buttonClick.call(t,(0,c.$)(e.target),e)})))},o}(u());T._defaultOptions={activateLanguageSupport:!0,additionalPageLoadingTimeInMilliseconds:0,domain:"auto",domNodes:{mediaQueryIndicator:'<div class="wu-media-query-indicator">',scrollToTopButton:'a[href="#top"]',startUpAnimationClassPrefix:".wu-start-up-animation-number-",top:"header",windowLoadingCover:".window-loading-cover, .wu-window-loading-cover",windowLoadingSpinner:".window-loading-cover > div, .wu-window-loading-cover > div"},domNodeSelectorInfix:"wu",domNodeSelectorPrefix:"body.{1}",initialSectionName:"home",knownScrollEventNames:["DOMMouseScroll","keyup","mousedown","mousewheel","scroll","touchmove","wheel"],language:{},mediaQueryClassNameIndicator:[["extraSmall","xs"],["small","sm"],["medium","md"],["large","lg"]],name:"WebsiteUtilities",onChangeMediaQueryMode:u().noop,onChangeToExtraSmallMode:u().noop,onChangeToLargeMode:u().noop,onChangeToMediumMode:u().noop,onChangeToSmallMode:u().noop,onViewportMovesAwayFromTop:u().noop,onViewportMovesToTop:u().noop,onSwitchSection:u().noop,onStartUpAnimationComplete:u().noop,scrollToTop:{button:{hideAnimationOptions:{},showAnimationOptions:{},slideDistanceInPixel:30},options:{duration:"fast"}},startUpAnimationElementDelayInMiliseconds:100,startUpHide:{opacity:0},startUpShowAnimation:{opacity:1},switchToManualScrollingIndicator:function(t){return"number"==typeof t.which&&0<t.which||"mousedown"===t.type||"mousewheel"===t.type||"touchmove"===t.type},tracking:{buttonClick:function(t){this.track({event:"buttonClick",eventType:"click",label:t.text(),reference:t.attr("action")||t.attr("target")||t.attr("type")||t.text(),subject:"button",value:parseInt(t.attr("website-analytics-value")),userInteraction:!0})},linkClick:function(t){this.track({event:"linkClick",eventType:"click",label:t.text(),reference:t.attr("href")||t.attr("action")||t.attr("target")||t.attr("type")||t.text(),subject:"link",value:parseInt(t.attr("website-analytics-value")),userInteraction:!0})},sectionSwitch:function(t){this.track({event:"sectionSwitch",eventType:"sectionSwitch",label:t,reference:c.globalContext.window.location.pathname+"#"+t,subject:"url",userInteraction:!1})},track:function(t){var e;null==(e=c.globalContext.dataLayer)||e.push(t)}},windowLoadingCoverHideAnimation:{opacity:0},windowLoadingSpinner:{animation:"spinner-line-fade-quick",className:"spinner",color:"#000",corners:1,direction:1,fadeColor:"transparent",left:"auto",length:23,lines:9,position:"absolute",radius:40,rotate:0,scale:1,shadow:!1,speed:1.1,top:"auto",width:11,zIndex:2e9},windowLoadedTimeoutAfterDocLoadedInMSec:2e3};var x=T;c.$.WebsiteUtilities=function(){for(var t=arguments.length,e=Array(t),o=0;o<t;o++)e[o]=arguments[o];return u().controller(T,e)},c.$.WebsiteUtilities.class=T}(),l}()}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "website-utilities",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.268",
|
|
4
4
|
"description": "extend your web app",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jquery",
|
|
@@ -19,30 +19,33 @@
|
|
|
19
19
|
"url": "https://torben.website"
|
|
20
20
|
},
|
|
21
21
|
"files": [
|
|
22
|
+
"deploy.d.ts",
|
|
23
|
+
"deploy.js",
|
|
22
24
|
"index.d.ts",
|
|
23
25
|
"index.js",
|
|
24
26
|
"index.css",
|
|
25
27
|
"index.compiled.css",
|
|
26
|
-
"index.sh",
|
|
27
28
|
"font",
|
|
28
29
|
"font.compiled",
|
|
29
30
|
"type.d.ts"
|
|
30
31
|
],
|
|
31
32
|
"bin": {
|
|
32
|
-
"website-utilities": "
|
|
33
|
+
"website-utilities": "deploy.js"
|
|
33
34
|
},
|
|
34
35
|
"repository": {
|
|
35
36
|
"type": "git",
|
|
36
37
|
"url": "https://github.com/thaibault/website-utilities"
|
|
37
38
|
},
|
|
38
39
|
"scripts": {
|
|
39
|
-
"build": "yarn build:types; yarn build:
|
|
40
|
+
"build": "yarn build:types; yarn build:deploy; yarn build:web",
|
|
41
|
+
"build:deploy": "weboptimizer build '{__reference__: \"target:deploy\"}'",
|
|
40
42
|
"build:export": "weboptimizer build '{__reference__: \"target:export\"}'",
|
|
41
|
-
"build:plain": "weboptimizer build",
|
|
42
43
|
"build:types": "weboptimizer build:types",
|
|
44
|
+
"build:web": "weboptimizer build",
|
|
43
45
|
"check": "yarn check:types; yarn lint",
|
|
44
46
|
"check:types": "weboptimizer check:types",
|
|
45
47
|
"clear": "weboptimizer clear",
|
|
48
|
+
"deploy": "./deploy.js",
|
|
46
49
|
"document": "weboptimizer document",
|
|
47
50
|
"lint": "weboptimizer lint",
|
|
48
51
|
"prepare": "yarn build",
|
|
@@ -142,6 +145,9 @@
|
|
|
142
145
|
}
|
|
143
146
|
},
|
|
144
147
|
"injection": {
|
|
148
|
+
"autoExclude": {
|
|
149
|
+
"__append__": "./deploy.ts"
|
|
150
|
+
},
|
|
145
151
|
"external": {
|
|
146
152
|
"implicit": {
|
|
147
153
|
"pattern": {
|
|
@@ -186,6 +192,46 @@
|
|
|
186
192
|
}
|
|
187
193
|
}
|
|
188
194
|
},
|
|
195
|
+
"target:deploy": {
|
|
196
|
+
"assetPattern": {
|
|
197
|
+
"javaScript": {
|
|
198
|
+
"pattern": {
|
|
199
|
+
"#": "This is how we can make our test artefact executable.",
|
|
200
|
+
"__evaluate__": "`#!/usr/bin/env node\n// -*- coding: utf-8 -*-\n${self.generic.assetPattern.javaScript.pattern}{1}`"
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
"exportFormat": {
|
|
205
|
+
"external": "commonjs2",
|
|
206
|
+
"self": "commonjs2"
|
|
207
|
+
},
|
|
208
|
+
"generic": {
|
|
209
|
+
"isWeb": false
|
|
210
|
+
},
|
|
211
|
+
"injection": {
|
|
212
|
+
"entry": {
|
|
213
|
+
"deploy": "./deploy"
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
"module": {
|
|
217
|
+
"optimizer": {
|
|
218
|
+
"babelMinify": {
|
|
219
|
+
"bundle": {
|
|
220
|
+
"transform": {
|
|
221
|
+
"removeConsole": false
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
"module": {
|
|
225
|
+
"removeConsole": false
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
"targetTechnology": {
|
|
231
|
+
"boilerplate": "node",
|
|
232
|
+
"payload": "node"
|
|
233
|
+
}
|
|
234
|
+
},
|
|
189
235
|
"target:export": {
|
|
190
236
|
"module": {
|
|
191
237
|
"preprocessor": {
|
package/index.sh
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# -*- coding: utf-8 -*-
|
|
3
|
-
# region header
|
|
4
|
-
# Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
|
|
5
|
-
|
|
6
|
-
# License
|
|
7
|
-
# This library written by Torben Sickert stand under a creative commons
|
|
8
|
-
# naming 3.0 unported license.
|
|
9
|
-
# See https://creativecommons.org/licenses/by/3.0/deed.de
|
|
10
|
-
# endregion
|
|
11
|
-
exit 0
|
|
12
|
-
# TODO implement in js.
|
|
13
|
-
set -o errexit
|
|
14
|
-
if [[ "$(git branch | grep '* master')" != '' ]]; then
|
|
15
|
-
echo Build new web page.
|
|
16
|
-
npm run build
|
|
17
|
-
if [[ $(git branch | grep 'gh-pages') ]]; then
|
|
18
|
-
echo Checkout distribution branch.
|
|
19
|
-
git checkout gh-pages
|
|
20
|
-
source=build/
|
|
21
|
-
else
|
|
22
|
-
source="../$(basename "$(pwd)")/build/"
|
|
23
|
-
pushd "../$(ls ../ | grep '.github.io')"
|
|
24
|
-
fi
|
|
25
|
-
echo Update page data.
|
|
26
|
-
rsync \
|
|
27
|
-
"$source" ./ \
|
|
28
|
-
$ILU_RSYNC_DEFAULT_ARGUMENTS \
|
|
29
|
-
--exclude=CNAME \
|
|
30
|
-
--exclude='.*' \
|
|
31
|
-
--exclude=node_modules \
|
|
32
|
-
--exclude=readme.md \
|
|
33
|
-
--exclude="$source"
|
|
34
|
-
rm --recursive --force "$source"
|
|
35
|
-
echo Upload compiled webpage
|
|
36
|
-
git pull
|
|
37
|
-
git add --all
|
|
38
|
-
git commit --message 'Automatic page build update.'
|
|
39
|
-
git push
|
|
40
|
-
if [ "$(git branch | grep 'gh-pages')" = '' ]; then
|
|
41
|
-
echo Switch back to source directory.
|
|
42
|
-
popd
|
|
43
|
-
else
|
|
44
|
-
echo Switch back to master branch.
|
|
45
|
-
git checkout master
|
|
46
|
-
fi
|
|
47
|
-
fi
|
|
48
|
-
set +o errexit
|
|
49
|
-
# region vim modline
|
|
50
|
-
# vim: set tabstop=4 shiftwidth=4 expandtab:
|
|
51
|
-
# vim: foldmethod=marker foldmarker=region,endregion:
|
|
52
|
-
# endregion
|