From b5db6857a8dcde278acbc1f16ec1d80703e2930a Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Tue, 7 May 2019 15:14:07 +0200 Subject: [PATCH] fix: add missing linkjuice built We lost this when we moved the site into the monorepo because all `dist` folders were ignored. Co-Authored-By: PascalPrecht --- site/.gitignore | 1 + site/themes/embark/source/js/linkjuice/dist/linkjuice.min.js | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 site/themes/embark/source/js/linkjuice/dist/linkjuice.min.js diff --git a/site/.gitignore b/site/.gitignore index b73eda280..91d176bcf 100644 --- a/site/.gitignore +++ b/site/.gitignore @@ -2,4 +2,5 @@ public db.json debug.log !/yarn.lock +!themes/embark/source/js/linkjuice/dist diff --git a/site/themes/embark/source/js/linkjuice/dist/linkjuice.min.js b/site/themes/embark/source/js/linkjuice/dist/linkjuice.min.js new file mode 100644 index 000000000..2e96eca3f --- /dev/null +++ b/site/themes/embark/source/js/linkjuice/dist/linkjuice.min.js @@ -0,0 +1,3 @@ +/*! linkjuice v1.0.1 | (c) 2016 @toddmotto | https://github.com/toddmotto/linkjuice */ +!function(e,n){if("function"==typeof define&&define.amd)define(["exports"],n);else if("undefined"!=typeof exports)n(exports);else{var t={exports:{}};n(t.exports),e.linkjuice=t.exports}}(this,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});{var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t=void 0,o=void 0,r=void 0,i=function(e,n){return'\n \n '+n+""+e.innerHTML+"\n "},u=function(e){return''+e.innerHTML+""},c=function(e,n){return e.id?(e.innerHTML=n(e,r),void 0):(console.warn("No ID for element",e),void 0)},f=function(e,n,t){for(var o=t;--e>=0;)Array.isArray(o[o.length-1])||o.push([]),o=o[o.length-1];o.push(n)},s=function(e){var n=/^H[1-6]$/,t=[];return e.filter(function(e){return!n.test(e.tagName)}).length>0?(console.warn("Nested table of contents is only possible with regular header tags"),t):(e.forEach(function(e){return f(parseInt(e.tagName.substr(1),10)-1,e,t)}),t)},l=function d(e,n){var t=e.map(function(e){return Array.isArray(e)?d(e,n):"
  • "+n(e)+"
  • "}).join("");return""},a=function(e,f){var a=f.contentFn,d=void 0===a?i:a,p=f.icon,y=void 0===p?"#":p,v=f.selectors,m=void 0===v?["h2","h3","h4","h5","h6"]:v,h=f.tableOfContents,b=void 0===h?!1:h;if(t=document.querySelector(e)){if(r=y,o=Array.prototype.slice.call(t.querySelectorAll(m.join(","))),"object"===("undefined"==typeof b?"undefined":n(b))&&null!==b){var g=document.querySelector(b.selector);if(!g)return console.warn("No table of contents element found for the specified selector"),void 0;var S=b.nested===!0?s(o):o,j="function"==typeof b.contentFn?b.contentFn:u;g.innerHTML=l(S,j)}o.map(function(e){return c(e,d)})}};e.init=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a(e,n)}}}); +