From 787441d4bf39529384b68e7a9b026e703ad4740a Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Fri, 14 Sep 2018 16:09:12 +0300 Subject: [PATCH] docs: use the bundle dist file. --- js/tests/index.html | 2 +- js/tests/karma.conf.js | 2 +- site/_includes/scripts.html | 6 ++---- site/docs/4.1/assets/js/vendor/popper.min.js | 5 ----- site/docs/4.1/examples/album/index.html | 3 +-- site/docs/4.1/examples/blog/index.html | 3 +-- site/docs/4.1/examples/carousel/index.html | 3 +-- site/docs/4.1/examples/checkout/index.html | 3 +-- site/docs/4.1/examples/cover/index.html | 3 +-- site/docs/4.1/examples/dashboard/index.html | 3 +-- site/docs/4.1/examples/jumbotron/index.html | 3 +-- site/docs/4.1/examples/navbar-bottom/index.html | 3 +-- site/docs/4.1/examples/navbar-fixed/index.html | 3 +-- site/docs/4.1/examples/navbar-static/index.html | 3 +-- site/docs/4.1/examples/navbars/index.html | 3 +-- site/docs/4.1/examples/offcanvas/index.html | 3 +-- site/docs/4.1/examples/pricing/index.html | 3 +-- site/docs/4.1/examples/product/index.html | 3 +-- site/docs/4.1/examples/starter-template/index.html | 3 +-- site/docs/4.1/examples/sticky-footer-navbar/index.html | 3 +-- site/docs/4.1/examples/tooltip-viewport/index.html | 3 +-- 21 files changed, 21 insertions(+), 45 deletions(-) delete mode 100644 site/docs/4.1/assets/js/vendor/popper.min.js diff --git a/js/tests/index.html b/js/tests/index.html index 95d72d87a7..ce4a0e3081 100644 --- a/js/tests/index.html +++ b/js/tests/index.html @@ -19,7 +19,7 @@ document.write(' - + diff --git a/js/tests/karma.conf.js b/js/tests/karma.conf.js index e32c2e2fd0..070606a521 100644 --- a/js/tests/karma.conf.js +++ b/js/tests/karma.conf.js @@ -46,7 +46,7 @@ const customLaunchers = { } } -let files = ['site/docs/4.1/assets/js/vendor/popper.min.js'] +let files = ['node_modules/popper.js/dist/umd/popper.min.js'] const conf = { basePath: '../..', port: 9876, diff --git a/site/_includes/scripts.html b/site/_includes/scripts.html index 92c6d01cd6..5880fcf814 100644 --- a/site/_includes/scripts.html +++ b/site/_includes/scripts.html @@ -1,12 +1,10 @@ - - {%- if site.github -%} - + {%- else -%} - + {%- endif -%} {%- if page.layout == "docs" -%} diff --git a/site/docs/4.1/assets/js/vendor/popper.min.js b/site/docs/4.1/assets/js/vendor/popper.min.js deleted file mode 100644 index 1e7159877d..0000000000 --- a/site/docs/4.1/assets/js/vendor/popper.min.js +++ /dev/null @@ -1,5 +0,0 @@ -/* - Copyright (C) Federico Zivolo 2018 - Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT). - */(function(e,t){'object'==typeof exports&&'undefined'!=typeof module?module.exports=t():'function'==typeof define&&define.amd?define(t):e.Popper=t()})(this,function(){'use strict';function e(e){return e&&'[object Function]'==={}.toString.call(e)}function t(e,t){if(1!==e.nodeType)return[];var o=getComputedStyle(e,null);return t?o[t]:o}function o(e){return'HTML'===e.nodeName?e:e.parentNode||e.host}function n(e){if(!e)return document.body;switch(e.nodeName){case'HTML':case'BODY':return e.ownerDocument.body;case'#document':return e.body;}var i=t(e),r=i.overflow,p=i.overflowX,s=i.overflowY;return /(auto|scroll|overlay)/.test(r+s+p)?e:n(o(e))}function r(e){return 11===e?re:10===e?pe:re||pe}function p(e){if(!e)return document.documentElement;for(var o=r(10)?document.body:null,n=e.offsetParent;n===o&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&'BODY'!==i&&'HTML'!==i?-1!==['TD','TABLE'].indexOf(n.nodeName)&&'static'===t(n,'position')?p(n):n:e?e.ownerDocument.documentElement:document.documentElement}function s(e){var t=e.nodeName;return'BODY'!==t&&('HTML'===t||p(e.firstElementChild)===e)}function d(e){return null===e.parentNode?e:d(e.parentNode)}function a(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var o=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,n=o?e:t,i=o?t:e,r=document.createRange();r.setStart(n,0),r.setEnd(i,0);var l=r.commonAncestorContainer;if(e!==l&&t!==l||n.contains(i))return s(l)?l:p(l);var f=d(e);return f.host?a(f.host,t):a(e,d(t).host)}function l(e){var t=1=o.clientWidth&&n>=o.clientHeight}),l=0a[e]&&!t.escapeWithReference&&(n=Q(f[o],a[e]-('right'===e?f.width:f.height))),ae({},o,n)}};return l.forEach(function(e){var t=-1===['left','top'].indexOf(e)?'secondary':'primary';f=le({},f,m[t](e))}),e.offsets.popper=f,e},priority:['left','right','top','bottom'],padding:5,boundariesElement:'scrollParent'},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,o=t.popper,n=t.reference,i=e.placement.split('-')[0],r=$,p=-1!==['top','bottom'].indexOf(i),s=p?'right':'bottom',d=p?'left':'top',a=p?'width':'height';return o[s]r(n[s])&&(e.offsets.popper[d]=r(n[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,o){var n;if(!q(e.instance.modifiers,'arrow','keepTogether'))return e;var i=o.element;if('string'==typeof i){if(i=e.instance.popper.querySelector(i),!i)return e;}else if(!e.instance.popper.contains(i))return console.warn('WARNING: `arrow.element` must be child of its popper element!'),e;var r=e.placement.split('-')[0],p=e.offsets,s=p.popper,d=p.reference,a=-1!==['left','right'].indexOf(r),l=a?'height':'width',f=a?'Top':'Left',m=f.toLowerCase(),h=a?'left':'top',c=a?'bottom':'right',u=S(i)[l];d[c]-us[c]&&(e.offsets.popper[m]+=d[m]+u-s[c]),e.offsets.popper=g(e.offsets.popper);var b=d[m]+d[l]/2-u/2,y=t(e.instance.popper),w=parseFloat(y['margin'+f],10),E=parseFloat(y['border'+f+'Width'],10),v=b-e.offsets.popper[m]-w-E;return v=J(Q(s[l]-u,v),0),e.arrowElement=i,e.offsets.arrow=(n={},ae(n,m,Z(v)),ae(n,h,''),n),e},element:'[x-arrow]'},flip:{order:600,enabled:!0,fn:function(e,t){if(W(e.instance.modifiers,'inner'))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var o=v(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),n=e.placement.split('-')[0],i=T(n),r=e.placement.split('-')[1]||'',p=[];switch(t.behavior){case he.FLIP:p=[n,i];break;case he.CLOCKWISE:p=V(n);break;case he.COUNTERCLOCKWISE:p=V(n,!0);break;default:p=t.behavior;}return p.forEach(function(s,d){if(n!==s||p.length===d+1)return e;n=e.placement.split('-')[0],i=T(n);var a=e.offsets.popper,l=e.offsets.reference,f=$,m='left'===n&&f(a.right)>f(l.left)||'right'===n&&f(a.left)f(l.top)||'bottom'===n&&f(a.top)f(o.right),g=f(a.top)f(o.bottom),b='left'===n&&h||'right'===n&&c||'top'===n&&g||'bottom'===n&&u,y=-1!==['top','bottom'].indexOf(n),w=!!t.flipVariations&&(y&&'start'===r&&h||y&&'end'===r&&c||!y&&'start'===r&&g||!y&&'end'===r&&u);(m||b||w)&&(e.flipped=!0,(m||b)&&(n=p[d+1]),w&&(r=G(r)),e.placement=n+(r?'-'+r:''),e.offsets.popper=le({},e.offsets.popper,D(e.instance.popper,e.offsets.reference,e.placement)),e=P(e.instance.modifiers,e,'flip'))}),e},behavior:'flip',padding:5,boundariesElement:'viewport'},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,o=t.split('-')[0],n=e.offsets,i=n.popper,r=n.reference,p=-1!==['left','right'].indexOf(o),s=-1===['top','left'].indexOf(o);return i[p?'left':'top']=r[o]-(s?i[p?'width':'height']:0),e.placement=T(t),e.offsets.popper=g(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!q(e.instance.modifiers,'hide','preventOverflow'))return e;var t=e.offsets.reference,o=C(e.instance.modifiers,function(e){return'preventOverflow'===e.name}).boundaries;if(t.bottomo.right||t.top>o.bottom||t.right - - + diff --git a/site/docs/4.1/examples/blog/index.html b/site/docs/4.1/examples/blog/index.html index fef06c4766..cffde77372 100644 --- a/site/docs/4.1/examples/blog/index.html +++ b/site/docs/4.1/examples/blog/index.html @@ -217,8 +217,7 @@ - - + - - + diff --git a/site/docs/4.1/examples/checkout/index.html b/site/docs/4.1/examples/checkout/index.html index 0dda89ef86..127c1cacb5 100644 --- a/site/docs/4.1/examples/checkout/index.html +++ b/site/docs/4.1/examples/checkout/index.html @@ -239,8 +239,7 @@ - - + - - + diff --git a/site/docs/4.1/examples/dashboard/index.html b/site/docs/4.1/examples/dashboard/index.html index 3578f7a747..f633a6fde4 100644 --- a/site/docs/4.1/examples/dashboard/index.html +++ b/site/docs/4.1/examples/dashboard/index.html @@ -259,8 +259,7 @@ - - + diff --git a/site/docs/4.1/examples/jumbotron/index.html b/site/docs/4.1/examples/jumbotron/index.html index 03a2875da9..53d2f56697 100644 --- a/site/docs/4.1/examples/jumbotron/index.html +++ b/site/docs/4.1/examples/jumbotron/index.html @@ -97,7 +97,6 @@ - - + diff --git a/site/docs/4.1/examples/navbar-bottom/index.html b/site/docs/4.1/examples/navbar-bottom/index.html index bc0f63e647..58a7a410da 100644 --- a/site/docs/4.1/examples/navbar-bottom/index.html +++ b/site/docs/4.1/examples/navbar-bottom/index.html @@ -54,7 +54,6 @@ - - + diff --git a/site/docs/4.1/examples/navbar-fixed/index.html b/site/docs/4.1/examples/navbar-fixed/index.html index 10dc37d939..385349208c 100644 --- a/site/docs/4.1/examples/navbar-fixed/index.html +++ b/site/docs/4.1/examples/navbar-fixed/index.html @@ -55,7 +55,6 @@ - - + diff --git a/site/docs/4.1/examples/navbar-static/index.html b/site/docs/4.1/examples/navbar-static/index.html index c654bca51c..d723bb439f 100644 --- a/site/docs/4.1/examples/navbar-static/index.html +++ b/site/docs/4.1/examples/navbar-static/index.html @@ -55,7 +55,6 @@ - - + diff --git a/site/docs/4.1/examples/navbars/index.html b/site/docs/4.1/examples/navbars/index.html index 9abe510853..bad52ca0ea 100644 --- a/site/docs/4.1/examples/navbars/index.html +++ b/site/docs/4.1/examples/navbars/index.html @@ -341,7 +341,6 @@ - - + diff --git a/site/docs/4.1/examples/offcanvas/index.html b/site/docs/4.1/examples/offcanvas/index.html index 7dae17a8a4..3c830d4663 100644 --- a/site/docs/4.1/examples/offcanvas/index.html +++ b/site/docs/4.1/examples/offcanvas/index.html @@ -151,8 +151,7 @@ - - + diff --git a/site/docs/4.1/examples/pricing/index.html b/site/docs/4.1/examples/pricing/index.html index 5ae570aad4..204b3b18cd 100644 --- a/site/docs/4.1/examples/pricing/index.html +++ b/site/docs/4.1/examples/pricing/index.html @@ -128,8 +128,7 @@ - - + - - + - - + diff --git a/site/docs/4.1/examples/sticky-footer-navbar/index.html b/site/docs/4.1/examples/sticky-footer-navbar/index.html index 8a66601cc1..01a1c52704 100644 --- a/site/docs/4.1/examples/sticky-footer-navbar/index.html +++ b/site/docs/4.1/examples/sticky-footer-navbar/index.html @@ -65,7 +65,6 @@ - - + diff --git a/site/docs/4.1/examples/tooltip-viewport/index.html b/site/docs/4.1/examples/tooltip-viewport/index.html index fabe12ddf3..ed99242083 100644 --- a/site/docs/4.1/examples/tooltip-viewport/index.html +++ b/site/docs/4.1/examples/tooltip-viewport/index.html @@ -38,8 +38,7 @@ - - +