Supported misc components
+-
+
email
Open default e-mail software on your OS with subject and body
+
diff --git a/docs/en/design-buttons.html b/docs/en/design-buttons.html index 92d4bf4..69bfe76 100644 --- a/docs/en/design-buttons.html +++ b/docs/en/design-buttons.html @@ -217,6 +217,19 @@ + + +
@@ -331,6 +344,7 @@Vue.js component for social share. A simple way to share a link on the pages of your website in the most popular (and not so) social networks. Powered by goodshare.js project.
email
Open default e-mail software on your OS with subject and bodyInit bundle after Vue.js in your main JavaScript file:
// ./src/js/script.js
-import Vue from 'vue'
+import Vue from "vue";
// Import vue-goodshare bundle
-import VueGoodshare from 'vue-goodshare'
+import VueGoodshare from "vue-goodshare";
const app = new Vue({
- el: '#app',
+ el: "#app",
components: {
VueGoodshare
}
-})
+});
@@ -414,7 +427,7 @@No results matching " var gitbook = gitbook || []; gitbook.push(function() { - gitbook.page.hasChanged({"page":{"title":"Bundle of share elements","level":"2.2","depth":1,"next":{"title":"Buttons","level":"3.1","depth":1,"path":"design-buttons.md","ref":"design-buttons.md","articles":[]},"previous":{"title":"Single share element","level":"2.1","depth":1,"path":"using-component-single.md","ref":"using-component-single.md","articles":[]},"dir":"ltr"},"config":{"plugins":["theme-vuejs-2","fontsettings","github"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"github":{"url":"https://github.com/koddr/vue-goodshare"},"fontsettings":{"family":"sans","size":2,"theme":"white"},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":false,"twitter":false,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-vuejs-2":{},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"vue-goodshare — Vue.js component for social share","language":"en","links":{"sharing":{"facebook":false,"twitter":false}},"gitbook":"*"},"file":{"path":"using-component-bundle.md","mtime":"2017-11-06T18:14:23.561Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-11-07T19:26:24.631Z"},"basePath":".","book":{"language":"en"}}); + gitbook.page.hasChanged({"page":{"title":"Bundle of share elements","level":"2.2","depth":1,"next":{"title":"Buttons","level":"3.1","depth":1,"path":"design-buttons.md","ref":"design-buttons.md","articles":[]},"previous":{"title":"Single share element","level":"2.1","depth":1,"path":"using-component-single.md","ref":"using-component-single.md","articles":[]},"dir":"ltr"},"config":{"plugins":["theme-vuejs-2","fontsettings","github"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"github":{"url":"https://github.com/koddr/vue-goodshare"},"fontsettings":{"family":"sans","size":2,"theme":"white"},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":false,"twitter":false,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-vuejs-2":{},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"vue-goodshare — Vue.js component for social share","language":"en","links":{"sharing":{"facebook":false,"twitter":false}},"gitbook":"*"},"file":{"path":"using-component-bundle.md","mtime":"2018-09-05T07:35:15.964Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-09-05T07:36:29.393Z"},"basePath":".","book":{"language":"en"}}); }); diff --git a/docs/en/using-component-single.html b/docs/en/using-component-single.html index 12663de..ee00b01 100644 --- a/docs/en/using-component-single.html +++ b/docs/en/using-component-single.html @@ -217,6 +217,19 @@ + + +
- + + + + + Misc components + + + + +
@@ -309,32 +322,32 @@
Single share element
Includes only needed social networks and/or mobile messengers.
-See lists of supported Social networks and Mobile messengers.
+See lists of supported Social networks, Mobile messengers or Misc components.
// ./src/js/script.js -import Vue from 'vue' +import Vue from "vue"; // Import vue-goodshare single elements -import VueGoodshareFacebook from 'vue-goodshare/src/providers/Facebook.vue' +import VueGoodshareFacebook from "vue-goodshare/src/providers/Facebook.vue"; const app = new Vue({ - el: '#app', + el: "#app", components: { VueGoodshareFacebook } -}) +});
Add components to HTML template (with attributes):
<!-- ./index.html --> <div id="app"> - <vue-goodshare-facebook - page_url="https://github.com" + <vue-goodshare-facebook + page_url="https://github.com" title_social="Facebook" has_counter - has_icon + has_icon ></vue-goodshare-facebook> </div> @@ -385,7 +398,7 @@
No results matching " var gitbook = gitbook || []; gitbook.push(function() { - gitbook.page.hasChanged({"page":{"title":"Single share element","level":"2.1","depth":1,"next":{"title":"Bundle of share elements","level":"2.2","depth":1,"path":"using-component-bundle.md","ref":"using-component-bundle.md","articles":[]},"previous":{"title":"Installation","level":"1.2","depth":1,"path":"installation.md","ref":"installation.md","articles":[]},"dir":"ltr"},"config":{"plugins":["theme-vuejs-2","fontsettings","github"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"github":{"url":"https://github.com/koddr/vue-goodshare"},"fontsettings":{"family":"sans","size":2,"theme":"white"},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":false,"twitter":false,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-vuejs-2":{},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"vue-goodshare — Vue.js component for social share","language":"en","links":{"sharing":{"facebook":false,"twitter":false}},"gitbook":"*"},"file":{"path":"using-component-single.md","mtime":"2017-11-06T18:15:42.509Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-11-07T19:26:24.631Z"},"basePath":".","book":{"language":"en"}}); + gitbook.page.hasChanged({"page":{"title":"Single share element","level":"2.1","depth":1,"next":{"title":"Bundle of share elements","level":"2.2","depth":1,"path":"using-component-bundle.md","ref":"using-component-bundle.md","articles":[]},"previous":{"title":"Installation","level":"1.2","depth":1,"path":"installation.md","ref":"installation.md","articles":[]},"dir":"ltr"},"config":{"plugins":["theme-vuejs-2","fontsettings","github"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"github":{"url":"https://github.com/koddr/vue-goodshare"},"fontsettings":{"family":"sans","size":2,"theme":"white"},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":false,"twitter":false,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-vuejs-2":{},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"vue-goodshare — Vue.js component for social share","language":"en","links":{"sharing":{"facebook":false,"twitter":false}},"gitbook":"*"},"file":{"path":"using-component-single.md","mtime":"2018-09-05T07:32:22.594Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-09-05T07:36:29.393Z"},"basePath":".","book":{"language":"en"}}); }); diff --git a/docs/gitbook/gitbook-plugin-fontsettings/fontsettings.js b/docs/gitbook/gitbook-plugin-fontsettings/fontsettings.js index ff7be71..5300980 100644 --- a/docs/gitbook/gitbook-plugin-fontsettings/fontsettings.js +++ b/docs/gitbook/gitbook-plugin-fontsettings/fontsettings.js @@ -1,240 +1,241 @@ -require(['gitbook', 'jquery'], function(gitbook, $) { - // Configuration - var MAX_SIZE = 4, - MIN_SIZE = 0, - BUTTON_ID; - - // Current fontsettings state - var fontState; - - // Default themes - var THEMES = [ - { - config: 'white', - text: 'White', - id: 0 - }, - { - config: 'sepia', - text: 'Sepia', - id: 1 - }, - { - config: 'night', - text: 'Night', - id: 2 - } - ]; - - // Default font families - var FAMILIES = [ - { - config: 'serif', - text: 'Serif', - id: 0 - }, - { - config: 'sans', - text: 'Sans', - id: 1 - } - ]; - - // Return configured themes - function getThemes() { - return THEMES; +require(["gitbook", "jquery"], function(gitbook, $) { + // Configuration + var MAX_SIZE = 4, + MIN_SIZE = 0, + BUTTON_ID; + + // Current fontsettings state + var fontState; + + // Default themes + var THEMES = [ + { + config: "white", + text: "White", + id: 0 + }, + { + config: "sepia", + text: "Sepia", + id: 1 + }, + { + config: "night", + text: "Night", + id: 2 } - - // Modify configured themes - function setThemes(themes) { - THEMES = themes; - updateButtons(); - } - - // Return configured font families - function getFamilies() { - return FAMILIES; - } - - // Modify configured font families - function setFamilies(families) { - FAMILIES = families; - updateButtons(); + ]; + + // Default font families + var FAMILIES = [ + { + config: "serif", + text: "Serif", + id: 0 + }, + { + config: "sans", + text: "Sans", + id: 1 } - - // Save current font settings - function saveFontSettings() { - gitbook.storage.set('fontState', fontState); - update(); - } - - // Increase font size - function enlargeFontSize(e) { - e.preventDefault(); - if (fontState.size >= MAX_SIZE) return; - - fontState.size++; - saveFontSettings(); - } - - // Decrease font size - function reduceFontSize(e) { - e.preventDefault(); - if (fontState.size <= MIN_SIZE) return; - - fontState.size--; - saveFontSettings(); - } - - // Change font family - function changeFontFamily(configName, e) { - if (e && e instanceof Event) { - e.preventDefault(); - } - - var familyId = getFontFamilyId(configName); - fontState.family = familyId; - saveFontSettings(); - } - - // Change type of color theme - function changeColorTheme(configName, e) { - if (e && e instanceof Event) { - e.preventDefault(); - } - - var $book = gitbook.state.$book; - - // Remove currently applied color theme - if (fontState.theme !== 0) - $book.removeClass('color-theme-'+fontState.theme); - - // Set new color theme - var themeId = getThemeId(configName); - fontState.theme = themeId; - if (fontState.theme !== 0) - $book.addClass('color-theme-'+fontState.theme); - - saveFontSettings(); + ]; + + // Return configured themes + function getThemes() { + return THEMES; + } + + // Modify configured themes + function setThemes(themes) { + THEMES = themes; + updateButtons(); + } + + // Return configured font families + function getFamilies() { + return FAMILIES; + } + + // Modify configured font families + function setFamilies(families) { + FAMILIES = families; + updateButtons(); + } + + // Save current font settings + function saveFontSettings() { + gitbook.storage.set("fontState", fontState); + update(); + } + + // Increase font size + function enlargeFontSize(e) { + e.preventDefault(); + if (fontState.size >= MAX_SIZE) return; + + fontState.size++; + saveFontSettings(); + } + + // Decrease font size + function reduceFontSize(e) { + e.preventDefault(); + if (fontState.size <= MIN_SIZE) return; + + fontState.size--; + saveFontSettings(); + } + + // Change font family + function changeFontFamily(configName, e) { + if (e && e instanceof Event) { + e.preventDefault(); } - // Return the correct id for a font-family config key - // Default to first font-family - function getFontFamilyId(configName) { - // Search for plugin configured font family - var configFamily = $.grep(FAMILIES, function(family) { - return family.config == configName; - })[0]; - // Fallback to default font family - return (!!configFamily)? configFamily.id : 0; - } + var familyId = getFontFamilyId(configName); + fontState.family = familyId; + saveFontSettings(); + } - // Return the correct id for a theme config key - // Default to first theme - function getThemeId(configName) { - // Search for plugin configured theme - var configTheme = $.grep(THEMES, function(theme) { - return theme.config == configName; - })[0]; - // Fallback to default theme - return (!!configTheme)? configTheme.id : 0; + // Change type of color theme + function changeColorTheme(configName, e) { + if (e && e instanceof Event) { + e.preventDefault(); } - function update() { - var $book = gitbook.state.$book; - - $('.font-settings .font-family-list li').removeClass('active'); - $('.font-settings .font-family-list li:nth-child('+(fontState.family+1)+')').addClass('active'); - - $book[0].className = $book[0].className.replace(/\bfont-\S+/g, ''); - $book.addClass('font-size-'+fontState.size); - $book.addClass('font-family-'+fontState.family); - - if(fontState.theme !== 0) { - $book[0].className = $book[0].className.replace(/\bcolor-theme-\S+/g, ''); - $book.addClass('color-theme-'+fontState.theme); - } + var $book = gitbook.state.$book; + + // Remove currently applied color theme + if (fontState.theme !== 0) + $book.removeClass("color-theme-" + fontState.theme); + + // Set new color theme + var themeId = getThemeId(configName); + fontState.theme = themeId; + if (fontState.theme !== 0) $book.addClass("color-theme-" + fontState.theme); + + saveFontSettings(); + } + + // Return the correct id for a font-family config key + // Default to first font-family + function getFontFamilyId(configName) { + // Search for plugin configured font family + var configFamily = $.grep(FAMILIES, function(family) { + return family.config == configName; + })[0]; + // Fallback to default font family + return !!configFamily ? configFamily.id : 0; + } + + // Return the correct id for a theme config key + // Default to first theme + function getThemeId(configName) { + // Search for plugin configured theme + var configTheme = $.grep(THEMES, function(theme) { + return theme.config == configName; + })[0]; + // Fallback to default theme + return !!configTheme ? configTheme.id : 0; + } + + function update() { + var $book = gitbook.state.$book; + + $(".font-settings .font-family-list li").removeClass("active"); + $( + ".font-settings .font-family-list li:nth-child(" + + (fontState.family + 1) + + ")" + ).addClass("active"); + + $book[0].className = $book[0].className.replace(/\bfont-\S+/g, ""); + $book.addClass("font-size-" + fontState.size); + $book.addClass("font-family-" + fontState.family); + + if (fontState.theme !== 0) { + $book[0].className = $book[0].className.replace(/\bcolor-theme-\S+/g, ""); + $book.addClass("color-theme-" + fontState.theme); } + } + + function init(config) { + // Search for plugin configured font family + var configFamily = getFontFamilyId(config.family), + configTheme = getThemeId(config.theme); + + // Instantiate font state object + fontState = gitbook.storage.get("fontState", { + size: config.size || 2, + family: configFamily, + theme: configTheme + }); - function init(config) { - // Search for plugin configured font family - var configFamily = getFontFamilyId(config.family), - configTheme = getThemeId(config.theme); - - // Instantiate font state object - fontState = gitbook.storage.get('fontState', { - size: config.size || 2, - family: configFamily, - theme: configTheme - }); - - update(); - } + update(); + } - function updateButtons() { - // Remove existing fontsettings buttons - if (!!BUTTON_ID) { - gitbook.toolbar.removeButton(BUTTON_ID); - } - - // Create buttons in toolbar - BUTTON_ID = gitbook.toolbar.createButton({ - icon: 'fa fa-font', - label: 'Font Settings', - className: 'font-settings', - dropdown: [ - [ - { - text: 'A', - className: 'font-reduce', - onClick: reduceFontSize - }, - { - text: 'A', - className: 'font-enlarge', - onClick: enlargeFontSize - } - ], - $.map(FAMILIES, function(family) { - family.onClick = function(e) { - return changeFontFamily(family.config, e); - }; - - return family; - }), - $.map(THEMES, function(theme) { - theme.onClick = function(e) { - return changeColorTheme(theme.config, e); - }; - - return theme; - }) - ] - }); + function updateButtons() { + // Remove existing fontsettings buttons + if (!!BUTTON_ID) { + gitbook.toolbar.removeButton(BUTTON_ID); } - // Init configuration at start - gitbook.events.bind('start', function(e, config) { - var opts = config.fontsettings; - - // Generate buttons at start - updateButtons(); - - // Init current settings - init(opts); + // Create buttons in toolbar + BUTTON_ID = gitbook.toolbar.createButton({ + icon: "fa fa-font", + label: "Font Settings", + className: "font-settings", + dropdown: [ + [ + { + text: "A", + className: "font-reduce", + onClick: reduceFontSize + }, + { + text: "A", + className: "font-enlarge", + onClick: enlargeFontSize + } + ], + $.map(FAMILIES, function(family) { + family.onClick = function(e) { + return changeFontFamily(family.config, e); + }; + + return family; + }), + $.map(THEMES, function(theme) { + theme.onClick = function(e) { + return changeColorTheme(theme.config, e); + }; + + return theme; + }) + ] }); - - // Expose API - gitbook.fontsettings = { - enlargeFontSize: enlargeFontSize, - reduceFontSize: reduceFontSize, - setTheme: changeColorTheme, - setFamily: changeFontFamily, - getThemes: getThemes, - setThemes: setThemes, - getFamilies: getFamilies, - setFamilies: setFamilies - }; + } + + // Init configuration at start + gitbook.events.bind("start", function(e, config) { + var opts = config.fontsettings; + + // Generate buttons at start + updateButtons(); + + // Init current settings + init(opts); + }); + + // Expose API + gitbook.fontsettings = { + enlargeFontSize: enlargeFontSize, + reduceFontSize: reduceFontSize, + setTheme: changeColorTheme, + setFamily: changeFontFamily, + getThemes: getThemes, + setThemes: setThemes, + getFamilies: getFamilies, + setFamilies: setFamilies + }; }); - - diff --git a/docs/gitbook/gitbook-plugin-fontsettings/website.css b/docs/gitbook/gitbook-plugin-fontsettings/website.css index 26591fe..1e98916 100644 --- a/docs/gitbook/gitbook-plugin-fontsettings/website.css +++ b/docs/gitbook/gitbook-plugin-fontsettings/website.css @@ -103,7 +103,12 @@ .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal hr { background-color: inherit; } -.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal blockquote { +.book.color-theme-1 + .book-body + .page-wrapper + .page-inner + section.normal + blockquote { border-color: inherit; } .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre, @@ -112,19 +117,48 @@ color: #657b83; border-color: #f8df9c; } -.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal .highlight { +.book.color-theme-1 + .book-body + .page-wrapper + .page-inner + section.normal + .highlight { background-color: inherit; } -.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal table th, -.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal table td { +.book.color-theme-1 + .book-body + .page-wrapper + .page-inner + section.normal + table + th, +.book.color-theme-1 + .book-body + .page-wrapper + .page-inner + section.normal + table + td { border-color: #f5d06c; } -.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal table tr { +.book.color-theme-1 + .book-body + .page-wrapper + .page-inner + section.normal + table + tr { color: inherit; background-color: #fdf6e3; border-color: #444444; } -.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal table tr:nth-child(2n) { +.book.color-theme-1 + .book-body + .page-wrapper + .page-inner + section.normal + table + tr:nth-child(2n) { background-color: #fbeecb; } .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal { @@ -151,7 +185,12 @@ .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal hr { background-color: #373b4e; } -.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal blockquote { +.book.color-theme-2 + .book-body + .page-wrapper + .page-inner + section.normal + blockquote { border-color: #373b4e; } .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre, @@ -160,19 +199,48 @@ background: #2d3143; border-color: #2d3143; } -.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal .highlight { +.book.color-theme-2 + .book-body + .page-wrapper + .page-inner + section.normal + .highlight { background-color: #282a39; } -.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal table th, -.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal table td { +.book.color-theme-2 + .book-body + .page-wrapper + .page-inner + section.normal + table + th, +.book.color-theme-2 + .book-body + .page-wrapper + .page-inner + section.normal + table + td { border-color: #3b3f54; } -.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal table tr { +.book.color-theme-2 + .book-body + .page-wrapper + .page-inner + section.normal + table + tr { color: #b6c2d2; background-color: #2d3143; border-color: #3b3f54; } -.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal table tr:nth-child(2n) { +.book.color-theme-2 + .book-body + .page-wrapper + .page-inner + section.normal + table + tr:nth-child(2n) { background-color: #35394b; } .book.color-theme-1 .book-header { diff --git a/docs/gitbook/gitbook-plugin-github/plugin.js b/docs/gitbook/gitbook-plugin-github/plugin.js index 14810ce..0a976f7 100644 --- a/docs/gitbook/gitbook-plugin-github/plugin.js +++ b/docs/gitbook/gitbook-plugin-github/plugin.js @@ -1,14 +1,14 @@ -require([ 'gitbook' ], function (gitbook) { - gitbook.events.bind('start', function (e, config) { - var githubURL = config.github.url; +require(["gitbook"], function(gitbook) { + gitbook.events.bind("start", function(e, config) { + var githubURL = config.github.url; - gitbook.toolbar.createButton({ - icon: 'fa fa-github', - label: 'GitHub', - position: 'right', - onClick: function() { - window.open(githubURL) - } - }); + gitbook.toolbar.createButton({ + icon: "fa fa-github", + label: "GitHub", + position: "right", + onClick: function() { + window.open(githubURL); + } }); + }); }); diff --git a/docs/gitbook/gitbook-plugin-highlight/website.css b/docs/gitbook/gitbook-plugin-highlight/website.css index 6674448..e09766e 100644 --- a/docs/gitbook/gitbook-plugin-highlight/website.css +++ b/docs/gitbook/gitbook-plugin-highlight/website.css @@ -26,28 +26,105 @@ .book .book-body .page-wrapper .page-inner section.normal code .hljs-regexp, .book .book-body .page-wrapper .page-inner section.normal pre .hljs-deletion, .book .book-body .page-wrapper .page-inner section.normal code .hljs-deletion, -.book .book-body .page-wrapper .page-inner section.normal pre .ruby .hljs-constant, -.book .book-body .page-wrapper .page-inner section.normal code .ruby .hljs-constant, -.book .book-body .page-wrapper .page-inner section.normal pre .xml .hljs-tag .hljs-title, -.book .book-body .page-wrapper .page-inner section.normal code .xml .hljs-tag .hljs-title, +.book + .book-body + .page-wrapper + .page-inner + section.normal + pre + .ruby + .hljs-constant, +.book + .book-body + .page-wrapper + .page-inner + section.normal + code + .ruby + .hljs-constant, +.book + .book-body + .page-wrapper + .page-inner + section.normal + pre + .xml + .hljs-tag + .hljs-title, +.book + .book-body + .page-wrapper + .page-inner + section.normal + code + .xml + .hljs-tag + .hljs-title, .book .book-body .page-wrapper .page-inner section.normal pre .xml .hljs-pi, .book .book-body .page-wrapper .page-inner section.normal code .xml .hljs-pi, -.book .book-body .page-wrapper .page-inner section.normal pre .xml .hljs-doctype, -.book .book-body .page-wrapper .page-inner section.normal code .xml .hljs-doctype, -.book .book-body .page-wrapper .page-inner section.normal pre .html .hljs-doctype, -.book .book-body .page-wrapper .page-inner section.normal code .html .hljs-doctype, +.book + .book-body + .page-wrapper + .page-inner + section.normal + pre + .xml + .hljs-doctype, +.book + .book-body + .page-wrapper + .page-inner + section.normal + code + .xml + .hljs-doctype, +.book + .book-body + .page-wrapper + .page-inner + section.normal + pre + .html + .hljs-doctype, +.book + .book-body + .page-wrapper + .page-inner + section.normal + code + .html + .hljs-doctype, .book .book-body .page-wrapper .page-inner section.normal pre .css .hljs-id, .book .book-body .page-wrapper .page-inner section.normal code .css .hljs-id, .book .book-body .page-wrapper .page-inner section.normal pre .css .hljs-class, .book .book-body .page-wrapper .page-inner section.normal code .css .hljs-class, .book .book-body .page-wrapper .page-inner section.normal pre .css .hljs-pseudo, -.book .book-body .page-wrapper .page-inner section.normal code .css .hljs-pseudo { +.book + .book-body + .page-wrapper + .page-inner + section.normal + code + .css + .hljs-pseudo { color: #c82829; } .book .book-body .page-wrapper .page-inner section.normal pre .hljs-number, .book .book-body .page-wrapper .page-inner section.normal code .hljs-number, -.book .book-body .page-wrapper .page-inner section.normal pre .hljs-preprocessor, -.book .book-body .page-wrapper .page-inner section.normal code .hljs-preprocessor, +.book + .book-body + .page-wrapper + .page-inner + section.normal + pre + .hljs-preprocessor, +.book + .book-body + .page-wrapper + .page-inner + section.normal + code + .hljs-preprocessor, .book .book-body .page-wrapper .page-inner section.normal pre .hljs-pragma, .book .book-body .page-wrapper .page-inner section.normal code .hljs-pragma, .book .book-body .page-wrapper .page-inner section.normal pre .hljs-built_in, @@ -60,10 +137,42 @@ .book .book-body .page-wrapper .page-inner section.normal code .hljs-constant { color: #f5871f; } -.book .book-body .page-wrapper .page-inner section.normal pre .ruby .hljs-class .hljs-title, -.book .book-body .page-wrapper .page-inner section.normal code .ruby .hljs-class .hljs-title, -.book .book-body .page-wrapper .page-inner section.normal pre .css .hljs-rules .hljs-attribute, -.book .book-body .page-wrapper .page-inner section.normal code .css .hljs-rules .hljs-attribute { +.book + .book-body + .page-wrapper + .page-inner + section.normal + pre + .ruby + .hljs-class + .hljs-title, +.book + .book-body + .page-wrapper + .page-inner + section.normal + code + .ruby + .hljs-class + .hljs-title, +.book + .book-body + .page-wrapper + .page-inner + section.normal + pre + .css + .hljs-rules + .hljs-attribute, +.book + .book-body + .page-wrapper + .page-inner + section.normal + code + .css + .hljs-rules + .hljs-attribute { color: #eab700; } .book .book-body .page-wrapper .page-inner section.normal pre .hljs-string, @@ -71,43 +180,186 @@ .book .book-body .page-wrapper .page-inner section.normal pre .hljs-value, .book .book-body .page-wrapper .page-inner section.normal code .hljs-value, .book .book-body .page-wrapper .page-inner section.normal pre .hljs-inheritance, -.book .book-body .page-wrapper .page-inner section.normal code .hljs-inheritance, +.book + .book-body + .page-wrapper + .page-inner + section.normal + code + .hljs-inheritance, .book .book-body .page-wrapper .page-inner section.normal pre .hljs-header, .book .book-body .page-wrapper .page-inner section.normal code .hljs-header, .book .book-body .page-wrapper .page-inner section.normal pre .hljs-addition, .book .book-body .page-wrapper .page-inner section.normal code .hljs-addition, -.book .book-body .page-wrapper .page-inner section.normal pre .ruby .hljs-symbol, -.book .book-body .page-wrapper .page-inner section.normal code .ruby .hljs-symbol, +.book + .book-body + .page-wrapper + .page-inner + section.normal + pre + .ruby + .hljs-symbol, +.book + .book-body + .page-wrapper + .page-inner + section.normal + code + .ruby + .hljs-symbol, .book .book-body .page-wrapper .page-inner section.normal pre .xml .hljs-cdata, -.book .book-body .page-wrapper .page-inner section.normal code .xml .hljs-cdata { +.book + .book-body + .page-wrapper + .page-inner + section.normal + code + .xml + .hljs-cdata { color: #718c00; } -.book .book-body .page-wrapper .page-inner section.normal pre .css .hljs-hexcolor, -.book .book-body .page-wrapper .page-inner section.normal code .css .hljs-hexcolor { +.book + .book-body + .page-wrapper + .page-inner + section.normal + pre + .css + .hljs-hexcolor, +.book + .book-body + .page-wrapper + .page-inner + section.normal + code + .css + .hljs-hexcolor { color: #3e999f; } .book .book-body .page-wrapper .page-inner section.normal pre .hljs-function, .book .book-body .page-wrapper .page-inner section.normal code .hljs-function, -.book .book-body .page-wrapper .page-inner section.normal pre .python .hljs-decorator, -.book .book-body .page-wrapper .page-inner section.normal code .python .hljs-decorator, -.book .book-body .page-wrapper .page-inner section.normal pre .python .hljs-title, -.book .book-body .page-wrapper .page-inner section.normal code .python .hljs-title, -.book .book-body .page-wrapper .page-inner section.normal pre .ruby .hljs-function .hljs-title, -.book .book-body .page-wrapper .page-inner section.normal code .ruby .hljs-function .hljs-title, -.book .book-body .page-wrapper .page-inner section.normal pre .ruby .hljs-title .hljs-keyword, -.book .book-body .page-wrapper .page-inner section.normal code .ruby .hljs-title .hljs-keyword, +.book + .book-body + .page-wrapper + .page-inner + section.normal + pre + .python + .hljs-decorator, +.book + .book-body + .page-wrapper + .page-inner + section.normal + code + .python + .hljs-decorator, +.book + .book-body + .page-wrapper + .page-inner + section.normal + pre + .python + .hljs-title, +.book + .book-body + .page-wrapper + .page-inner + section.normal + code + .python + .hljs-title, +.book + .book-body + .page-wrapper + .page-inner + section.normal + pre + .ruby + .hljs-function + .hljs-title, +.book + .book-body + .page-wrapper + .page-inner + section.normal + code + .ruby + .hljs-function + .hljs-title, +.book + .book-body + .page-wrapper + .page-inner + section.normal + pre + .ruby + .hljs-title + .hljs-keyword, +.book + .book-body + .page-wrapper + .page-inner + section.normal + code + .ruby + .hljs-title + .hljs-keyword, .book .book-body .page-wrapper .page-inner section.normal pre .perl .hljs-sub, .book .book-body .page-wrapper .page-inner section.normal code .perl .hljs-sub, -.book .book-body .page-wrapper .page-inner section.normal pre .javascript .hljs-title, -.book .book-body .page-wrapper .page-inner section.normal code .javascript .hljs-title, -.book .book-body .page-wrapper .page-inner section.normal pre .coffeescript .hljs-title, -.book .book-body .page-wrapper .page-inner section.normal code .coffeescript .hljs-title { +.book + .book-body + .page-wrapper + .page-inner + section.normal + pre + .javascript + .hljs-title, +.book + .book-body + .page-wrapper + .page-inner + section.normal + code + .javascript + .hljs-title, +.book + .book-body + .page-wrapper + .page-inner + section.normal + pre + .coffeescript + .hljs-title, +.book + .book-body + .page-wrapper + .page-inner + section.normal + code + .coffeescript + .hljs-title { color: #4271ae; } .book .book-body .page-wrapper .page-inner section.normal pre .hljs-keyword, .book .book-body .page-wrapper .page-inner section.normal code .hljs-keyword, -.book .book-body .page-wrapper .page-inner section.normal pre .javascript .hljs-function, -.book .book-body .page-wrapper .page-inner section.normal code .javascript .hljs-function { +.book + .book-body + .page-wrapper + .page-inner + section.normal + pre + .javascript + .hljs-function, +.book + .book-body + .page-wrapper + .page-inner + section.normal + code + .javascript + .hljs-function { color: #8959a8; } .book .book-body .page-wrapper .page-inner section.normal pre .hljs, @@ -117,12 +369,40 @@ color: #4d4d4c; padding: 0.5em; } -.book .book-body .page-wrapper .page-inner section.normal pre .coffeescript .javascript, -.book .book-body .page-wrapper .page-inner section.normal code .coffeescript .javascript, +.book + .book-body + .page-wrapper + .page-inner + section.normal + pre + .coffeescript + .javascript, +.book + .book-body + .page-wrapper + .page-inner + section.normal + code + .coffeescript + .javascript, .book .book-body .page-wrapper .page-inner section.normal pre .javascript .xml, .book .book-body .page-wrapper .page-inner section.normal code .javascript .xml, -.book .book-body .page-wrapper .page-inner section.normal pre .tex .hljs-formula, -.book .book-body .page-wrapper .page-inner section.normal code .tex .hljs-formula, +.book + .book-body + .page-wrapper + .page-inner + section.normal + pre + .tex + .hljs-formula, +.book + .book-body + .page-wrapper + .page-inner + section.normal + code + .tex + .hljs-formula, .book .book-body .page-wrapper .page-inner section.normal pre .xml .javascript, .book .book-body .page-wrapper .page-inner section.normal code .xml .javascript, .book .book-body .page-wrapper .page-inner section.normal pre .xml .vbscript, @@ -130,7 +410,14 @@ .book .book-body .page-wrapper .page-inner section.normal pre .xml .css, .book .book-body .page-wrapper .page-inner section.normal code .xml .css, .book .book-body .page-wrapper .page-inner section.normal pre .xml .hljs-cdata, -.book .book-body .page-wrapper .page-inner section.normal code .xml .hljs-cdata { +.book + .book-body + .page-wrapper + .page-inner + section.normal + code + .xml + .hljs-cdata { opacity: 0.5; } .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre, @@ -148,151 +435,933 @@ Orginal Style from ethanschoonover.com/solarized (c) Jeremy Hull
o;o++){for(var r=t[o],s=0;i>s&&(r=this._stack[s](r,o,t),void 0!==r);s++);void 0!==r&&e.push(r)}return e},t.Pipeline.prototype.reset=function(){this._stack=[]},t.Pipeline.prototype.toJSON=function(){return this._stack.map(function(e){return t.Pipeline.warnIfFunctionNotRegistered(e),e.label})},t.Vector=function(){this._magnitude=null,this.list=void 0,this.length=0},t.Vector.Node=function(t,e,n){this.idx=t,this.val=e,this.next=n},t.Vector.prototype.insert=function(e,n){this._magnitude=void 0;var i=this.list;if(!i)return this.list=new t.Vector.Node(e,n,i),this.length++;if(e n.idx?n=n.next:(i+=e.val*n.val,e=e.next,n=n.next);return i},t.Vector.prototype.similarity=function(t){return this.dot(t)/(this.magnitude()*t.magnitude())},t.SortedSet=function(){this.length=0,this.elements=[]},t.SortedSet.load=function(t){var e=new this;return e.elements=t,e.length=t.length,e},t.SortedSet.prototype.add=function(){var t,e;for(t=0;t 1;){if(r===t)return o;t>r&&(e=o),r>t&&(n=o),i=n-e,o=e+Math.floor(i/2),r=this.elements[o]}return r===t?o:-1},t.SortedSet.prototype.locationFor=function(t){for(var e=0,n=this.elements.length,i=n-e,o=e+Math.floor(i/2),r=this.elements[o];i>1;)t>r&&(e=o),r>t&&(n=o),i=n-e,o=e+Math.floor(i/2),r=this.elements[o];return r>t?o:t>r?o+1:void 0},t.SortedSet.prototype.intersect=function(e){for(var n=new t.SortedSet,i=0,o=0,r=this.length,s=e.length,a=this.elements,h=e.elements;;){if(i>r-1||o>s-1)break;a[i]!==h[o]?a[i] h[o]&&o++:(n.add(a[i]),i++,o++)}return n},t.SortedSet.prototype.clone=function(){var e=new t.SortedSet;return e.elements=this.toArray(),e.length=e.elements.length,e},t.SortedSet.prototype.union=function(t){var e,n,i;return this.length>=t.length?(e=this,n=t):(e=t,n=this),i=e.clone(),i.add.apply(i,n.toArray()),i},t.SortedSet.prototype.toJSON=function(){return this.toArray()},t.Index=function(){this._fields=[],this._ref="id",this.pipeline=new t.Pipeline,this.documentStore=new t.Store,this.tokenStore=new t.TokenStore,this.corpusTokens=new t.SortedSet,this.eventEmitter=new t.EventEmitter,this._idfCache={},this.on("add","remove","update",function(){this._idfCache={}}.bind(this))},t.Index.prototype.on=function(){var t=Array.prototype.slice.call(arguments);return this.eventEmitter.addListener.apply(this.eventEmitter,t)},t.Index.prototype.off=function(t,e){return this.eventEmitter.removeListener(t,e)},t.Index.load=function(e){e.version!==t.version&&t.utils.warn("version mismatch: current "+t.version+" importing "+e.version);var n=new this;return n._fields=e.fields,n._ref=e.ref,n.documentStore=t.Store.load(e.documentStore),n.tokenStore=t.TokenStore.load(e.tokenStore),n.corpusTokens=t.SortedSet.load(e.corpusTokens),n.pipeline=t.Pipeline.load(e.pipeline),n},t.Index.prototype.field=function(t,e){var e=e||{},n={name:t,boost:e.boost||1};return this._fields.push(n),this},t.Index.prototype.ref=function(t){return this._ref=t,this},t.Index.prototype.add=function(e,n){var i={},o=new t.SortedSet,r=e[this._ref],n=void 0===n?!0:n;this._fields.forEach(function(n){var r=this.pipeline.run(t.tokenizer(e[n.name]));i[n.name]=r,t.SortedSet.prototype.add.apply(o,r)},this),this.documentStore.set(r,o),t.SortedSet.prototype.add.apply(this.corpusTokens,o.toArray());for(var s=0;s 0&&(i=1+Math.log(this.documentStore.length/n)),this._idfCache[e]=i},t.Index.prototype.search=function(e){var n=this.pipeline.run(t.tokenizer(e)),i=new t.Vector,o=[],r=this._fields.reduce(function(t,e){return t+e.boost},0),s=n.some(function(t){return this.tokenStore.has(t)},this);if(!s)return[];n.forEach(function(e,n,s){var a=1/s.length*this._fields.length*r,h=this,l=this.tokenStore.expand(e).reduce(function(n,o){var r=h.corpusTokens.indexOf(o),s=h.idf(o),l=1,u=new t.SortedSet;if(o!==e){var c=Math.max(3,o.length-e.length);l=1/Math.log(c)}return r>-1&&i.insert(r,a*s*l),Object.keys(h.tokenStore.get(o)).forEach(function(t){u.add(t)}),n.union(u)},new t.SortedSet);o.push(l)},this);var a=o.reduce(function(t,e){return t.intersect(e)});return a.map(function(t){return{ref:t,score:i.similarity(this.documentVector(t))}},this).sort(function(t,e){return e.score-t.score})},t.Index.prototype.documentVector=function(e){for(var n=this.documentStore.get(e),i=n.length,o=new t.Vector,r=0;i>r;r++){var s=n.elements[r],a=this.tokenStore.get(s)[e].tf,h=this.idf(s);o.insert(this.corpusTokens.indexOf(s),a*h)}return o},t.Index.prototype.toJSON=function(){return{version:t.version,fields:this._fields,ref:this._ref,documentStore:this.documentStore.toJSON(),tokenStore:this.tokenStore.toJSON(),corpusTokens:this.corpusTokens.toJSON(),pipeline:this.pipeline.toJSON()}},t.Index.prototype.use=function(t){var e=Array.prototype.slice.call(arguments,1);e.unshift(this),t.apply(this,e)},t.Store=function(){this.store={},this.length=0},t.Store.load=function(e){var n=new this;return n.length=e.length,n.store=Object.keys(e.store).reduce(function(n,i){return n[i]=t.SortedSet.load(e.store[i]),n},{}),n},t.Store.prototype.set=function(t,e){this.has(t)||this.length++,this.store[t]=e},t.Store.prototype.get=function(t){return this.store[t]},t.Store.prototype.has=function(t){return t in this.store},t.Store.prototype.remove=function(t){this.has(t)&&(delete this.store[t],this.length--)},t.Store.prototype.toJSON=function(){return{store:this.store,length:this.length}},t.stemmer=function(){var t={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},e={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},n="[^aeiou]",i="[aeiouy]",o=n+"[^aeiouy]*",r=i+"[aeiou]*",s="^("+o+")?"+r+o,a="^("+o+")?"+r+o+"("+r+")?$",h="^("+o+")?"+r+o+r+o,l="^("+o+")?"+i,u=new RegExp(s),c=new RegExp(h),f=new RegExp(a),d=new RegExp(l),p=/^(.+?)(ss|i)es$/,m=/^(.+?)([^s])s$/,v=/^(.+?)eed$/,y=/^(.+?)(ed|ing)$/,g=/.$/,S=/(at|bl|iz)$/,w=new RegExp("([^aeiouylsz])\\1$"),x=new RegExp("^"+o+i+"[^aeiouwxy]$"),k=/^(.+?[^aeiou])y$/,b=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,E=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,_=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,F=/^(.+?)(s|t)(ion)$/,O=/^(.+?)e$/,P=/ll$/,N=new RegExp("^"+o+i+"[^aeiouwxy]$"),T=function(n){var i,o,r,s,a,h,l;if(n.length<3)return n;if(r=n.substr(0,1),"y"==r&&(n=r.toUpperCase()+n.substr(1)),s=p,a=m,s.test(n)?n=n.replace(s,"$1$2"):a.test(n)&&(n=n.replace(a,"$1$2")),s=v,a=y,s.test(n)){var T=s.exec(n);s=u,s.test(T[1])&&(s=g,n=n.replace(s,""))}else if(a.test(n)){var T=a.exec(n);i=T[1],a=d,a.test(i)&&(n=i,a=S,h=w,l=x,a.test(n)?n+="e":h.test(n)?(s=g,n=n.replace(s,"")):l.test(n)&&(n+="e"))}if(s=k,s.test(n)){var T=s.exec(n);i=T[1],n=i+"i"}if(s=b,s.test(n)){var T=s.exec(n);i=T[1],o=T[2],s=u,s.test(i)&&(n=i+t[o])}if(s=E,s.test(n)){var T=s.exec(n);i=T[1],o=T[2],s=u,s.test(i)&&(n=i+e[o])}if(s=_,a=F,s.test(n)){var T=s.exec(n);i=T[1],s=c,s.test(i)&&(n=i)}else if(a.test(n)){var T=a.exec(n);i=T[1]+T[2],a=c,a.test(i)&&(n=i)}if(s=O,s.test(n)){var T=s.exec(n);i=T[1],s=c,a=f,h=N,(s.test(i)||a.test(i)&&!h.test(i))&&(n=i)}return s=P,a=c,s.test(n)&&a.test(n)&&(s=g,n=n.replace(s,"")),"y"==r&&(n=r.toLowerCase()+n.substr(1)),n};return T}(),t.Pipeline.registerFunction(t.stemmer,"stemmer"),t.stopWordFilter=function(e){return e&&t.stopWordFilter.stopWords[e]!==e?e:void 0},t.stopWordFilter.stopWords={a:"a",able:"able",about:"about",across:"across",after:"after",all:"all",almost:"almost",also:"also",am:"am",among:"among",an:"an",and:"and",any:"any",are:"are",as:"as",at:"at",be:"be",because:"because",been:"been",but:"but",by:"by",can:"can",cannot:"cannot",could:"could",dear:"dear",did:"did","do":"do",does:"does",either:"either","else":"else",ever:"ever",every:"every","for":"for",from:"from",get:"get",got:"got",had:"had",has:"has",have:"have",he:"he",her:"her",hers:"hers",him:"him",his:"his",how:"how",however:"however",i:"i","if":"if","in":"in",into:"into",is:"is",it:"it",its:"its",just:"just",least:"least",let:"let",like:"like",likely:"likely",may:"may",me:"me",might:"might",most:"most",must:"must",my:"my",neither:"neither",no:"no",nor:"nor",not:"not",of:"of",off:"off",often:"often",on:"on",only:"only",or:"or",other:"other",our:"our",own:"own",rather:"rather",said:"said",say:"say",says:"says",she:"she",should:"should",since:"since",so:"so",some:"some",than:"than",that:"that",the:"the",their:"their",them:"them",then:"then",there:"there",these:"these",they:"they","this":"this",tis:"tis",to:"to",too:"too",twas:"twas",us:"us",wants:"wants",was:"was",we:"we",were:"were",what:"what",when:"when",where:"where",which:"which","while":"while",who:"who",whom:"whom",why:"why",will:"will","with":"with",would:"would",yet:"yet",you:"you",your:"your"},t.Pipeline.registerFunction(t.stopWordFilter,"stopWordFilter"),t.trimmer=function(t){var e=t.replace(/^\W+/,"").replace(/\W+$/,"");return""===e?void 0:e},t.Pipeline.registerFunction(t.trimmer,"trimmer"),t.TokenStore=function(){this.root={docs:{}},this.length=0},t.TokenStore.load=function(t){var e=new this;return e.root=t.root,e.length=t.length,e},t.TokenStore.prototype.add=function(t,e,n){var n=n||this.root,i=t[0],o=t.slice(1);return i in n||(n[i]={docs:{}}),0===o.length?(n[i].docs[e.ref]=e,void(this.length+=1)):this.add(o,e,n[i])},t.TokenStore.prototype.has=function(t){if(!t)return!1;for(var e=this.root,n=0;n o; + o++ + ) { + for ( + var r = t[o], s = 0; + i > s && ((r = this._stack[s](r, o, t)), void 0 !== r); + s++ + ); + void 0 !== r && e.push(r); + } + return e; + }), + (t.Pipeline.prototype.reset = function() { + this._stack = []; + }), + (t.Pipeline.prototype.toJSON = function() { + return this._stack.map(function(e) { + return t.Pipeline.warnIfFunctionNotRegistered(e), e.label; + }); + }), + (t.Vector = function() { + (this._magnitude = null), (this.list = void 0), (this.length = 0); + }), + (t.Vector.Node = function(t, e, n) { + (this.idx = t), (this.val = e), (this.next = n); + }), + (t.Vector.prototype.insert = function(e, n) { + this._magnitude = void 0; + var i = this.list; + if (!i) return (this.list = new t.Vector.Node(e, n, i)), this.length++; + if (e < i.idx) + return (this.list = new t.Vector.Node(e, n, i)), this.length++; + for (var o = i, r = i.next; void 0 != r; ) { + if (e < r.idx) + return (o.next = new t.Vector.Node(e, n, r)), this.length++; + (o = r), (r = r.next); + } + return (o.next = new t.Vector.Node(e, n, r)), this.length++; + }), + (t.Vector.prototype.magnitude = function() { + if (this._magnitude) return this._magnitude; + for (var t, e = this.list, n = 0; e; ) + (t = e.val), (n += t * t), (e = e.next); + return (this._magnitude = Math.sqrt(n)); + }), + (t.Vector.prototype.dot = function(t) { + for (var e = this.list, n = t.list, i = 0; e && n; ) + e.idx < n.idx + ? (e = e.next) + : e.idx > n.idx + ? (n = n.next) + : ((i += e.val * n.val), (e = e.next), (n = n.next)); + return i; + }), + (t.Vector.prototype.similarity = function(t) { + return this.dot(t) / (this.magnitude() * t.magnitude()); + }), + (t.SortedSet = function() { + (this.length = 0), (this.elements = []); + }), + (t.SortedSet.load = function(t) { + var e = new this(); + return (e.elements = t), (e.length = t.length), e; + }), + (t.SortedSet.prototype.add = function() { + var t, e; + for (t = 0; t < arguments.length; t++) + (e = arguments[t]), + ~this.indexOf(e) || this.elements.splice(this.locationFor(e), 0, e); + this.length = this.elements.length; + }), + (t.SortedSet.prototype.toArray = function() { + return this.elements.slice(); + }), + (t.SortedSet.prototype.map = function(t, e) { + return this.elements.map(t, e); + }), + (t.SortedSet.prototype.forEach = function(t, e) { + return this.elements.forEach(t, e); + }), + (t.SortedSet.prototype.indexOf = function(t) { + for ( + var e = 0, + n = this.elements.length, + i = n - e, + o = e + Math.floor(i / 2), + r = this.elements[o]; + i > 1; + + ) { + if (r === t) return o; + t > r && (e = o), + r > t && (n = o), + (i = n - e), + (o = e + Math.floor(i / 2)), + (r = this.elements[o]); + } + return r === t ? o : -1; + }), + (t.SortedSet.prototype.locationFor = function(t) { + for ( + var e = 0, + n = this.elements.length, + i = n - e, + o = e + Math.floor(i / 2), + r = this.elements[o]; + i > 1; + + ) + t > r && (e = o), + r > t && (n = o), + (i = n - e), + (o = e + Math.floor(i / 2)), + (r = this.elements[o]); + return r > t ? o : t > r ? o + 1 : void 0; + }), + (t.SortedSet.prototype.intersect = function(e) { + for ( + var n = new t.SortedSet(), + i = 0, + o = 0, + r = this.length, + s = e.length, + a = this.elements, + h = e.elements; + ; + + ) { + if (i > r - 1 || o > s - 1) break; + a[i] !== h[o] + ? a[i] < h[o] + ? i++ + : a[i] > h[o] && o++ + : (n.add(a[i]), i++, o++); + } + return n; + }), + (t.SortedSet.prototype.clone = function() { + var e = new t.SortedSet(); + return (e.elements = this.toArray()), (e.length = e.elements.length), e; + }), + (t.SortedSet.prototype.union = function(t) { + var e, n, i; + return ( + this.length >= t.length ? ((e = this), (n = t)) : ((e = t), (n = this)), + (i = e.clone()), + i.add.apply(i, n.toArray()), + i + ); + }), + (t.SortedSet.prototype.toJSON = function() { + return this.toArray(); + }), + (t.Index = function() { + (this._fields = []), + (this._ref = "id"), + (this.pipeline = new t.Pipeline()), + (this.documentStore = new t.Store()), + (this.tokenStore = new t.TokenStore()), + (this.corpusTokens = new t.SortedSet()), + (this.eventEmitter = new t.EventEmitter()), + (this._idfCache = {}), + this.on( + "add", + "remove", + "update", + function() { + this._idfCache = {}; + }.bind(this) + ); + }), + (t.Index.prototype.on = function() { + var t = Array.prototype.slice.call(arguments); + return this.eventEmitter.addListener.apply(this.eventEmitter, t); + }), + (t.Index.prototype.off = function(t, e) { + return this.eventEmitter.removeListener(t, e); + }), + (t.Index.load = function(e) { + e.version !== t.version && + t.utils.warn( + "version mismatch: current " + t.version + " importing " + e.version + ); + var n = new this(); + return ( + (n._fields = e.fields), + (n._ref = e.ref), + (n.documentStore = t.Store.load(e.documentStore)), + (n.tokenStore = t.TokenStore.load(e.tokenStore)), + (n.corpusTokens = t.SortedSet.load(e.corpusTokens)), + (n.pipeline = t.Pipeline.load(e.pipeline)), + n + ); + }), + (t.Index.prototype.field = function(t, e) { + var e = e || {}, + n = { name: t, boost: e.boost || 1 }; + return this._fields.push(n), this; + }), + (t.Index.prototype.ref = function(t) { + return (this._ref = t), this; + }), + (t.Index.prototype.add = function(e, n) { + var i = {}, + o = new t.SortedSet(), + r = e[this._ref], + n = void 0 === n ? !0 : n; + this._fields.forEach(function(n) { + var r = this.pipeline.run(t.tokenizer(e[n.name])); + (i[n.name] = r), t.SortedSet.prototype.add.apply(o, r); + }, this), + this.documentStore.set(r, o), + t.SortedSet.prototype.add.apply(this.corpusTokens, o.toArray()); + for (var s = 0; s < o.length; s++) { + var a = o.elements[s], + h = this._fields.reduce(function(t, e) { + var n = i[e.name].length; + if (!n) return t; + var o = i[e.name].filter(function(t) { + return t === a; + }).length; + return t + (o / n) * e.boost; + }, 0); + this.tokenStore.add(a, { ref: r, tf: h }); + } + n && this.eventEmitter.emit("add", e, this); + }), + (t.Index.prototype.remove = function(t, e) { + var n = t[this._ref], + e = void 0 === e ? !0 : e; + if (this.documentStore.has(n)) { + var i = this.documentStore.get(n); + this.documentStore.remove(n), + i.forEach(function(t) { + this.tokenStore.remove(t, n); + }, this), + e && this.eventEmitter.emit("remove", t, this); + } + }), + (t.Index.prototype.update = function(t, e) { + var e = void 0 === e ? !0 : e; + this.remove(t, !1), + this.add(t, !1), + e && this.eventEmitter.emit("update", t, this); + }), + (t.Index.prototype.idf = function(t) { + var e = "@" + t; + if (Object.prototype.hasOwnProperty.call(this._idfCache, e)) + return this._idfCache[e]; + var n = this.tokenStore.count(t), + i = 1; + return ( + n > 0 && (i = 1 + Math.log(this.documentStore.length / n)), + (this._idfCache[e] = i) + ); + }), + (t.Index.prototype.search = function(e) { + var n = this.pipeline.run(t.tokenizer(e)), + i = new t.Vector(), + o = [], + r = this._fields.reduce(function(t, e) { + return t + e.boost; + }, 0), + s = n.some(function(t) { + return this.tokenStore.has(t); + }, this); + if (!s) return []; + n.forEach(function(e, n, s) { + var a = (1 / s.length) * this._fields.length * r, + h = this, + l = this.tokenStore.expand(e).reduce(function(n, o) { + var r = h.corpusTokens.indexOf(o), + s = h.idf(o), + l = 1, + u = new t.SortedSet(); + if (o !== e) { + var c = Math.max(3, o.length - e.length); + l = 1 / Math.log(c); + } + return ( + r > -1 && i.insert(r, a * s * l), + Object.keys(h.tokenStore.get(o)).forEach(function(t) { + u.add(t); + }), + n.union(u) + ); + }, new t.SortedSet()); + o.push(l); + }, this); + var a = o.reduce(function(t, e) { + return t.intersect(e); + }); + return a + .map(function(t) { + return { ref: t, score: i.similarity(this.documentVector(t)) }; + }, this) + .sort(function(t, e) { + return e.score - t.score; + }); + }), + (t.Index.prototype.documentVector = function(e) { + for ( + var n = this.documentStore.get(e), + i = n.length, + o = new t.Vector(), + r = 0; + i > r; + r++ + ) { + var s = n.elements[r], + a = this.tokenStore.get(s)[e].tf, + h = this.idf(s); + o.insert(this.corpusTokens.indexOf(s), a * h); + } + return o; + }), + (t.Index.prototype.toJSON = function() { + return { + version: t.version, + fields: this._fields, + ref: this._ref, + documentStore: this.documentStore.toJSON(), + tokenStore: this.tokenStore.toJSON(), + corpusTokens: this.corpusTokens.toJSON(), + pipeline: this.pipeline.toJSON() + }; + }), + (t.Index.prototype.use = function(t) { + var e = Array.prototype.slice.call(arguments, 1); + e.unshift(this), t.apply(this, e); + }), + (t.Store = function() { + (this.store = {}), (this.length = 0); + }), + (t.Store.load = function(e) { + var n = new this(); + return ( + (n.length = e.length), + (n.store = Object.keys(e.store).reduce(function(n, i) { + return (n[i] = t.SortedSet.load(e.store[i])), n; + }, {})), + n + ); + }), + (t.Store.prototype.set = function(t, e) { + this.has(t) || this.length++, (this.store[t] = e); + }), + (t.Store.prototype.get = function(t) { + return this.store[t]; + }), + (t.Store.prototype.has = function(t) { + return t in this.store; + }), + (t.Store.prototype.remove = function(t) { + this.has(t) && (delete this.store[t], this.length--); + }), + (t.Store.prototype.toJSON = function() { + return { store: this.store, length: this.length }; + }), + (t.stemmer = (function() { + var t = { + ational: "ate", + tional: "tion", + enci: "ence", + anci: "ance", + izer: "ize", + bli: "ble", + alli: "al", + entli: "ent", + eli: "e", + ousli: "ous", + ization: "ize", + ation: "ate", + ator: "ate", + alism: "al", + iveness: "ive", + fulness: "ful", + ousness: "ous", + aliti: "al", + iviti: "ive", + biliti: "ble", + logi: "log" + }, + e = { + icate: "ic", + ative: "", + alize: "al", + iciti: "ic", + ical: "ic", + ful: "", + ness: "" + }, + n = "[^aeiou]", + i = "[aeiouy]", + o = n + "[^aeiouy]*", + r = i + "[aeiou]*", + s = "^(" + o + ")?" + r + o, + a = "^(" + o + ")?" + r + o + "(" + r + ")?$", + h = "^(" + o + ")?" + r + o + r + o, + l = "^(" + o + ")?" + i, + u = new RegExp(s), + c = new RegExp(h), + f = new RegExp(a), + d = new RegExp(l), + p = /^(.+?)(ss|i)es$/, + m = /^(.+?)([^s])s$/, + v = /^(.+?)eed$/, + y = /^(.+?)(ed|ing)$/, + g = /.$/, + S = /(at|bl|iz)$/, + w = new RegExp("([^aeiouylsz])\\1$"), + x = new RegExp("^" + o + i + "[^aeiouwxy]$"), + k = /^(.+?[^aeiou])y$/, + b = /^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/, + E = /^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/, + _ = /^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/, + F = /^(.+?)(s|t)(ion)$/, + O = /^(.+?)e$/, + P = /ll$/, + N = new RegExp("^" + o + i + "[^aeiouwxy]$"), + T = function(n) { + var i, o, r, s, a, h, l; + if (n.length < 3) return n; + if ( + ((r = n.substr(0, 1)), + "y" == r && (n = r.toUpperCase() + n.substr(1)), + (s = p), + (a = m), + s.test(n) + ? (n = n.replace(s, "$1$2")) + : a.test(n) && (n = n.replace(a, "$1$2")), + (s = v), + (a = y), + s.test(n)) + ) { + var T = s.exec(n); + (s = u), s.test(T[1]) && ((s = g), (n = n.replace(s, ""))); + } else if (a.test(n)) { + var T = a.exec(n); + (i = T[1]), + (a = d), + a.test(i) && + ((n = i), + (a = S), + (h = w), + (l = x), + a.test(n) + ? (n += "e") + : h.test(n) + ? ((s = g), (n = n.replace(s, ""))) + : l.test(n) && (n += "e")); + } + if (((s = k), s.test(n))) { + var T = s.exec(n); + (i = T[1]), (n = i + "i"); + } + if (((s = b), s.test(n))) { + var T = s.exec(n); + (i = T[1]), (o = T[2]), (s = u), s.test(i) && (n = i + t[o]); + } + if (((s = E), s.test(n))) { + var T = s.exec(n); + (i = T[1]), (o = T[2]), (s = u), s.test(i) && (n = i + e[o]); + } + if (((s = _), (a = F), s.test(n))) { + var T = s.exec(n); + (i = T[1]), (s = c), s.test(i) && (n = i); + } else if (a.test(n)) { + var T = a.exec(n); + (i = T[1] + T[2]), (a = c), a.test(i) && (n = i); + } + if (((s = O), s.test(n))) { + var T = s.exec(n); + (i = T[1]), + (s = c), + (a = f), + (h = N), + (s.test(i) || (a.test(i) && !h.test(i))) && (n = i); + } + return ( + (s = P), + (a = c), + s.test(n) && a.test(n) && ((s = g), (n = n.replace(s, ""))), + "y" == r && (n = r.toLowerCase() + n.substr(1)), + n + ); + }; + return T; + })()), + t.Pipeline.registerFunction(t.stemmer, "stemmer"), + (t.stopWordFilter = function(e) { + return e && t.stopWordFilter.stopWords[e] !== e ? e : void 0; + }), + (t.stopWordFilter.stopWords = { + a: "a", + able: "able", + about: "about", + across: "across", + after: "after", + all: "all", + almost: "almost", + also: "also", + am: "am", + among: "among", + an: "an", + and: "and", + any: "any", + are: "are", + as: "as", + at: "at", + be: "be", + because: "because", + been: "been", + but: "but", + by: "by", + can: "can", + cannot: "cannot", + could: "could", + dear: "dear", + did: "did", + do: "do", + does: "does", + either: "either", + else: "else", + ever: "ever", + every: "every", + for: "for", + from: "from", + get: "get", + got: "got", + had: "had", + has: "has", + have: "have", + he: "he", + her: "her", + hers: "hers", + him: "him", + his: "his", + how: "how", + however: "however", + i: "i", + if: "if", + in: "in", + into: "into", + is: "is", + it: "it", + its: "its", + just: "just", + least: "least", + let: "let", + like: "like", + likely: "likely", + may: "may", + me: "me", + might: "might", + most: "most", + must: "must", + my: "my", + neither: "neither", + no: "no", + nor: "nor", + not: "not", + of: "of", + off: "off", + often: "often", + on: "on", + only: "only", + or: "or", + other: "other", + our: "our", + own: "own", + rather: "rather", + said: "said", + say: "say", + says: "says", + she: "she", + should: "should", + since: "since", + so: "so", + some: "some", + than: "than", + that: "that", + the: "the", + their: "their", + them: "them", + then: "then", + there: "there", + these: "these", + they: "they", + this: "this", + tis: "tis", + to: "to", + too: "too", + twas: "twas", + us: "us", + wants: "wants", + was: "was", + we: "we", + were: "were", + what: "what", + when: "when", + where: "where", + which: "which", + while: "while", + who: "who", + whom: "whom", + why: "why", + will: "will", + with: "with", + would: "would", + yet: "yet", + you: "you", + your: "your" + }), + t.Pipeline.registerFunction(t.stopWordFilter, "stopWordFilter"), + (t.trimmer = function(t) { + var e = t.replace(/^\W+/, "").replace(/\W+$/, ""); + return "" === e ? void 0 : e; + }), + t.Pipeline.registerFunction(t.trimmer, "trimmer"), + (t.TokenStore = function() { + (this.root = { docs: {} }), (this.length = 0); + }), + (t.TokenStore.load = function(t) { + var e = new this(); + return (e.root = t.root), (e.length = t.length), e; + }), + (t.TokenStore.prototype.add = function(t, e, n) { + var n = n || this.root, + i = t[0], + o = t.slice(1); + return ( + i in n || (n[i] = { docs: {} }), + 0 === o.length + ? ((n[i].docs[e.ref] = e), void (this.length += 1)) + : this.add(o, e, n[i]) + ); + }), + (t.TokenStore.prototype.has = function(t) { + if (!t) return !1; + for (var e = this.root, n = 0; n < t.length; n++) { + if (!e[t[n]]) return !1; + e = e[t[n]]; + } + return !0; + }), + (t.TokenStore.prototype.getNode = function(t) { + if (!t) return {}; + for (var e = this.root, n = 0; n < t.length; n++) { + if (!e[t[n]]) return {}; + e = e[t[n]]; + } + return e; + }), + (t.TokenStore.prototype.get = function(t, e) { + return this.getNode(t, e).docs || {}; + }), + (t.TokenStore.prototype.count = function(t, e) { + return Object.keys(this.get(t, e)).length; + }), + (t.TokenStore.prototype.remove = function(t, e) { + if (t) { + for (var n = this.root, i = 0; i < t.length; i++) { + if (!(t[i] in n)) return; + n = n[t[i]]; + } + delete n.docs[e]; + } + }), + (t.TokenStore.prototype.expand = function(t, e) { + var n = this.getNode(t), + i = n.docs || {}, + e = e || []; + return ( + Object.keys(i).length && e.push(t), + Object.keys(n).forEach(function(n) { + "docs" !== n && e.concat(this.expand(t + n, e)); + }, this), + e + ); + }), + (t.TokenStore.prototype.toJSON = function() { + return { root: this.root, length: this.length }; + }), + (function(t, e) { + "function" == typeof define && define.amd + ? define(e) + : "object" == typeof exports + ? (module.exports = e()) + : (t.lunr = e()); + })(this, function() { + return t; + }); +})(); diff --git a/docs/gitbook/gitbook-plugin-lunr/search-lunr.js b/docs/gitbook/gitbook-plugin-lunr/search-lunr.js index d6ec76f..213cb84 100644 --- a/docs/gitbook/gitbook-plugin-lunr/search-lunr.js +++ b/docs/gitbook/gitbook-plugin-lunr/search-lunr.js @@ -1,59 +1,59 @@ -require([ - 'gitbook', - 'jquery' -], function(gitbook, $) { - // Define global search engine - function LunrSearchEngine() { - this.index = null; - this.store = {}; - this.name = 'LunrSearchEngine'; +require(["gitbook", "jquery"], function(gitbook, $) { + // Define global search engine + function LunrSearchEngine() { + this.index = null; + this.store = {}; + this.name = "LunrSearchEngine"; + } + + // Initialize lunr by fetching the search index + LunrSearchEngine.prototype.init = function() { + var that = this; + var d = $.Deferred(); + + $.getJSON(gitbook.state.basePath + "/search_index.json").then(function( + data + ) { + // eslint-disable-next-line no-undef + that.index = lunr.Index.load(data.index); + that.store = data.store; + d.resolve(); + }); + + return d.promise(); + }; + + // Search for a term and return results + LunrSearchEngine.prototype.search = function(q, offset, length) { + var that = this; + var results = []; + + if (this.index) { + results = $.map(this.index.search(q), function(result) { + var doc = that.store[result.ref]; + + return { + title: doc.title, + url: doc.url, + body: doc.summary || doc.body + }; + }); } - // Initialize lunr by fetching the search index - LunrSearchEngine.prototype.init = function() { - var that = this; - var d = $.Deferred(); - - $.getJSON(gitbook.state.basePath+'/search_index.json') - .then(function(data) { - // eslint-disable-next-line no-undef - that.index = lunr.Index.load(data.index); - that.store = data.store; - d.resolve(); - }); - - return d.promise(); - }; - - // Search for a term and return results - LunrSearchEngine.prototype.search = function(q, offset, length) { - var that = this; - var results = []; - - if (this.index) { - results = $.map(this.index.search(q), function(result) { - var doc = that.store[result.ref]; - - return { - title: doc.title, - url: doc.url, - body: doc.summary || doc.body - }; - }); - } - - return $.Deferred().resolve({ - query: q, - results: results.slice(0, length), - count: results.length - }).promise(); - }; - - // Set gitbook research - gitbook.events.bind('start', function(e, config) { - var engine = gitbook.search.getEngine(); - if (!engine) { - gitbook.search.setEngine(LunrSearchEngine, config); - } - }); + return $.Deferred() + .resolve({ + query: q, + results: results.slice(0, length), + count: results.length + }) + .promise(); + }; + + // Set gitbook research + gitbook.events.bind("start", function(e, config) { + var engine = gitbook.search.getEngine(); + if (!engine) { + gitbook.search.setEngine(LunrSearchEngine, config); + } + }); }); diff --git a/docs/gitbook/gitbook-plugin-search/lunr.min.js b/docs/gitbook/gitbook-plugin-search/lunr.min.js index 6aa6bc7..db8976c 100644 --- a/docs/gitbook/gitbook-plugin-search/lunr.min.js +++ b/docs/gitbook/gitbook-plugin-search/lunr.min.js @@ -4,4 +4,811 @@ * MIT Licensed * @license */ -!function(){var t=function(e){var n=new t.Index;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),e&&e.call(n,n),n};t.version="0.5.12",t.utils={},t.utils.warn=function(t){return function(e){t.console&&console.warn&&console.warn(e)}}(this),t.EventEmitter=function(){this.events={}},t.EventEmitter.prototype.addListener=function(){var t=Array.prototype.slice.call(arguments),e=t.pop(),n=t;if("function"!=typeof e)throw new TypeError("last argument must be a function");n.forEach(function(t){this.hasHandler(t)||(this.events[t]=[]),this.events[t].push(e)},this)},t.EventEmitter.prototype.removeListener=function(t,e){if(this.hasHandler(t)){var n=this.events[t].indexOf(e);this.events[t].splice(n,1),this.events[t].length||delete this.events[t]}},t.EventEmitter.prototype.emit=function(t){if(this.hasHandler(t)){var e=Array.prototype.slice.call(arguments,1);this.events[t].forEach(function(t){t.apply(void 0,e)})}},t.EventEmitter.prototype.hasHandler=function(t){return t in this.events},t.tokenizer=function(t){return arguments.length&&null!=t&&void 0!=t?Array.isArray(t)?t.map(function(t){return t.toLowerCase()}):t.toString().trim().toLowerCase().split(/[\s\-]+/):[]},t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions={},t.Pipeline.registerFunction=function(e,n){n in this.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+n),e.label=n,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegistered=function(e){var n=e.label&&e.label in this.registeredFunctions;n||t.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},t.Pipeline.load=function(e){var n=new t.Pipeline;return e.forEach(function(e){var i=t.Pipeline.registeredFunctions[e];if(!i)throw new Error("Cannot load un-registered function: "+e);n.add(i)}),n},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(e){t.Pipeline.warnIfFunctionNotRegistered(e),this._stack.push(e)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var i=this._stack.indexOf(e);if(-1==i)throw new Error("Cannot find existingFn");i+=1,this._stack.splice(i,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var i=this._stack.indexOf(e);if(-1==i)throw new Error("Cannot find existingFn");this._stack.splice(i,0,n)},t.Pipeline.prototype.remove=function(t){var e=this._stack.indexOf(t);-1!=e&&this._stack.splice(e,1)},t.Pipeline.prototype.run=function(t){for(var e=[],n=t.length,i=this._stack.length,o=0;n>o;o++){for(var r=t[o],s=0;i>s&&(r=this._stack[s](r,o,t),void 0!==r);s++);void 0!==r&&e.push(r)}return e},t.Pipeline.prototype.reset=function(){this._stack=[]},t.Pipeline.prototype.toJSON=function(){return this._stack.map(function(e){return t.Pipeline.warnIfFunctionNotRegistered(e),e.label})},t.Vector=function(){this._magnitude=null,this.list=void 0,this.length=0},t.Vector.Node=function(t,e,n){this.idx=t,this.val=e,this.next=n},t.Vector.prototype.insert=function(e,n){this._magnitude=void 0;var i=this.list;if(!i)return this.list=new t.Vector.Node(e,n,i),this.length++;if(e n.idx?n=n.next:(i+=e.val*n.val,e=e.next,n=n.next);return i},t.Vector.prototype.similarity=function(t){return this.dot(t)/(this.magnitude()*t.magnitude())},t.SortedSet=function(){this.length=0,this.elements=[]},t.SortedSet.load=function(t){var e=new this;return e.elements=t,e.length=t.length,e},t.SortedSet.prototype.add=function(){var t,e;for(t=0;t 1;){if(r===t)return o;t>r&&(e=o),r>t&&(n=o),i=n-e,o=e+Math.floor(i/2),r=this.elements[o]}return r===t?o:-1},t.SortedSet.prototype.locationFor=function(t){for(var e=0,n=this.elements.length,i=n-e,o=e+Math.floor(i/2),r=this.elements[o];i>1;)t>r&&(e=o),r>t&&(n=o),i=n-e,o=e+Math.floor(i/2),r=this.elements[o];return r>t?o:t>r?o+1:void 0},t.SortedSet.prototype.intersect=function(e){for(var n=new t.SortedSet,i=0,o=0,r=this.length,s=e.length,a=this.elements,h=e.elements;;){if(i>r-1||o>s-1)break;a[i]!==h[o]?a[i] h[o]&&o++:(n.add(a[i]),i++,o++)}return n},t.SortedSet.prototype.clone=function(){var e=new t.SortedSet;return e.elements=this.toArray(),e.length=e.elements.length,e},t.SortedSet.prototype.union=function(t){var e,n,i;return this.length>=t.length?(e=this,n=t):(e=t,n=this),i=e.clone(),i.add.apply(i,n.toArray()),i},t.SortedSet.prototype.toJSON=function(){return this.toArray()},t.Index=function(){this._fields=[],this._ref="id",this.pipeline=new t.Pipeline,this.documentStore=new t.Store,this.tokenStore=new t.TokenStore,this.corpusTokens=new t.SortedSet,this.eventEmitter=new t.EventEmitter,this._idfCache={},this.on("add","remove","update",function(){this._idfCache={}}.bind(this))},t.Index.prototype.on=function(){var t=Array.prototype.slice.call(arguments);return this.eventEmitter.addListener.apply(this.eventEmitter,t)},t.Index.prototype.off=function(t,e){return this.eventEmitter.removeListener(t,e)},t.Index.load=function(e){e.version!==t.version&&t.utils.warn("version mismatch: current "+t.version+" importing "+e.version);var n=new this;return n._fields=e.fields,n._ref=e.ref,n.documentStore=t.Store.load(e.documentStore),n.tokenStore=t.TokenStore.load(e.tokenStore),n.corpusTokens=t.SortedSet.load(e.corpusTokens),n.pipeline=t.Pipeline.load(e.pipeline),n},t.Index.prototype.field=function(t,e){var e=e||{},n={name:t,boost:e.boost||1};return this._fields.push(n),this},t.Index.prototype.ref=function(t){return this._ref=t,this},t.Index.prototype.add=function(e,n){var i={},o=new t.SortedSet,r=e[this._ref],n=void 0===n?!0:n;this._fields.forEach(function(n){var r=this.pipeline.run(t.tokenizer(e[n.name]));i[n.name]=r,t.SortedSet.prototype.add.apply(o,r)},this),this.documentStore.set(r,o),t.SortedSet.prototype.add.apply(this.corpusTokens,o.toArray());for(var s=0;s 0&&(i=1+Math.log(this.documentStore.length/n)),this._idfCache[e]=i},t.Index.prototype.search=function(e){var n=this.pipeline.run(t.tokenizer(e)),i=new t.Vector,o=[],r=this._fields.reduce(function(t,e){return t+e.boost},0),s=n.some(function(t){return this.tokenStore.has(t)},this);if(!s)return[];n.forEach(function(e,n,s){var a=1/s.length*this._fields.length*r,h=this,l=this.tokenStore.expand(e).reduce(function(n,o){var r=h.corpusTokens.indexOf(o),s=h.idf(o),l=1,u=new t.SortedSet;if(o!==e){var c=Math.max(3,o.length-e.length);l=1/Math.log(c)}return r>-1&&i.insert(r,a*s*l),Object.keys(h.tokenStore.get(o)).forEach(function(t){u.add(t)}),n.union(u)},new t.SortedSet);o.push(l)},this);var a=o.reduce(function(t,e){return t.intersect(e)});return a.map(function(t){return{ref:t,score:i.similarity(this.documentVector(t))}},this).sort(function(t,e){return e.score-t.score})},t.Index.prototype.documentVector=function(e){for(var n=this.documentStore.get(e),i=n.length,o=new t.Vector,r=0;i>r;r++){var s=n.elements[r],a=this.tokenStore.get(s)[e].tf,h=this.idf(s);o.insert(this.corpusTokens.indexOf(s),a*h)}return o},t.Index.prototype.toJSON=function(){return{version:t.version,fields:this._fields,ref:this._ref,documentStore:this.documentStore.toJSON(),tokenStore:this.tokenStore.toJSON(),corpusTokens:this.corpusTokens.toJSON(),pipeline:this.pipeline.toJSON()}},t.Index.prototype.use=function(t){var e=Array.prototype.slice.call(arguments,1);e.unshift(this),t.apply(this,e)},t.Store=function(){this.store={},this.length=0},t.Store.load=function(e){var n=new this;return n.length=e.length,n.store=Object.keys(e.store).reduce(function(n,i){return n[i]=t.SortedSet.load(e.store[i]),n},{}),n},t.Store.prototype.set=function(t,e){this.has(t)||this.length++,this.store[t]=e},t.Store.prototype.get=function(t){return this.store[t]},t.Store.prototype.has=function(t){return t in this.store},t.Store.prototype.remove=function(t){this.has(t)&&(delete this.store[t],this.length--)},t.Store.prototype.toJSON=function(){return{store:this.store,length:this.length}},t.stemmer=function(){var t={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},e={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},n="[^aeiou]",i="[aeiouy]",o=n+"[^aeiouy]*",r=i+"[aeiou]*",s="^("+o+")?"+r+o,a="^("+o+")?"+r+o+"("+r+")?$",h="^("+o+")?"+r+o+r+o,l="^("+o+")?"+i,u=new RegExp(s),c=new RegExp(h),f=new RegExp(a),d=new RegExp(l),p=/^(.+?)(ss|i)es$/,m=/^(.+?)([^s])s$/,v=/^(.+?)eed$/,y=/^(.+?)(ed|ing)$/,g=/.$/,S=/(at|bl|iz)$/,w=new RegExp("([^aeiouylsz])\\1$"),x=new RegExp("^"+o+i+"[^aeiouwxy]$"),k=/^(.+?[^aeiou])y$/,b=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,E=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,_=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,F=/^(.+?)(s|t)(ion)$/,O=/^(.+?)e$/,P=/ll$/,N=new RegExp("^"+o+i+"[^aeiouwxy]$"),T=function(n){var i,o,r,s,a,h,l;if(n.length<3)return n;if(r=n.substr(0,1),"y"==r&&(n=r.toUpperCase()+n.substr(1)),s=p,a=m,s.test(n)?n=n.replace(s,"$1$2"):a.test(n)&&(n=n.replace(a,"$1$2")),s=v,a=y,s.test(n)){var T=s.exec(n);s=u,s.test(T[1])&&(s=g,n=n.replace(s,""))}else if(a.test(n)){var T=a.exec(n);i=T[1],a=d,a.test(i)&&(n=i,a=S,h=w,l=x,a.test(n)?n+="e":h.test(n)?(s=g,n=n.replace(s,"")):l.test(n)&&(n+="e"))}if(s=k,s.test(n)){var T=s.exec(n);i=T[1],n=i+"i"}if(s=b,s.test(n)){var T=s.exec(n);i=T[1],o=T[2],s=u,s.test(i)&&(n=i+t[o])}if(s=E,s.test(n)){var T=s.exec(n);i=T[1],o=T[2],s=u,s.test(i)&&(n=i+e[o])}if(s=_,a=F,s.test(n)){var T=s.exec(n);i=T[1],s=c,s.test(i)&&(n=i)}else if(a.test(n)){var T=a.exec(n);i=T[1]+T[2],a=c,a.test(i)&&(n=i)}if(s=O,s.test(n)){var T=s.exec(n);i=T[1],s=c,a=f,h=N,(s.test(i)||a.test(i)&&!h.test(i))&&(n=i)}return s=P,a=c,s.test(n)&&a.test(n)&&(s=g,n=n.replace(s,"")),"y"==r&&(n=r.toLowerCase()+n.substr(1)),n};return T}(),t.Pipeline.registerFunction(t.stemmer,"stemmer"),t.stopWordFilter=function(e){return e&&t.stopWordFilter.stopWords[e]!==e?e:void 0},t.stopWordFilter.stopWords={a:"a",able:"able",about:"about",across:"across",after:"after",all:"all",almost:"almost",also:"also",am:"am",among:"among",an:"an",and:"and",any:"any",are:"are",as:"as",at:"at",be:"be",because:"because",been:"been",but:"but",by:"by",can:"can",cannot:"cannot",could:"could",dear:"dear",did:"did","do":"do",does:"does",either:"either","else":"else",ever:"ever",every:"every","for":"for",from:"from",get:"get",got:"got",had:"had",has:"has",have:"have",he:"he",her:"her",hers:"hers",him:"him",his:"his",how:"how",however:"however",i:"i","if":"if","in":"in",into:"into",is:"is",it:"it",its:"its",just:"just",least:"least",let:"let",like:"like",likely:"likely",may:"may",me:"me",might:"might",most:"most",must:"must",my:"my",neither:"neither",no:"no",nor:"nor",not:"not",of:"of",off:"off",often:"often",on:"on",only:"only",or:"or",other:"other",our:"our",own:"own",rather:"rather",said:"said",say:"say",says:"says",she:"she",should:"should",since:"since",so:"so",some:"some",than:"than",that:"that",the:"the",their:"their",them:"them",then:"then",there:"there",these:"these",they:"they","this":"this",tis:"tis",to:"to",too:"too",twas:"twas",us:"us",wants:"wants",was:"was",we:"we",were:"were",what:"what",when:"when",where:"where",which:"which","while":"while",who:"who",whom:"whom",why:"why",will:"will","with":"with",would:"would",yet:"yet",you:"you",your:"your"},t.Pipeline.registerFunction(t.stopWordFilter,"stopWordFilter"),t.trimmer=function(t){var e=t.replace(/^\W+/,"").replace(/\W+$/,"");return""===e?void 0:e},t.Pipeline.registerFunction(t.trimmer,"trimmer"),t.TokenStore=function(){this.root={docs:{}},this.length=0},t.TokenStore.load=function(t){var e=new this;return e.root=t.root,e.length=t.length,e},t.TokenStore.prototype.add=function(t,e,n){var n=n||this.root,i=t[0],o=t.slice(1);return i in n||(n[i]={docs:{}}),0===o.length?(n[i].docs[e.ref]=e,void(this.length+=1)):this.add(o,e,n[i])},t.TokenStore.prototype.has=function(t){if(!t)return!1;for(var e=this.root,n=0;n o; + o++ + ) { + for ( + var r = t[o], s = 0; + i > s && ((r = this._stack[s](r, o, t)), void 0 !== r); + s++ + ); + void 0 !== r && e.push(r); + } + return e; + }), + (t.Pipeline.prototype.reset = function() { + this._stack = []; + }), + (t.Pipeline.prototype.toJSON = function() { + return this._stack.map(function(e) { + return t.Pipeline.warnIfFunctionNotRegistered(e), e.label; + }); + }), + (t.Vector = function() { + (this._magnitude = null), (this.list = void 0), (this.length = 0); + }), + (t.Vector.Node = function(t, e, n) { + (this.idx = t), (this.val = e), (this.next = n); + }), + (t.Vector.prototype.insert = function(e, n) { + this._magnitude = void 0; + var i = this.list; + if (!i) return (this.list = new t.Vector.Node(e, n, i)), this.length++; + if (e < i.idx) + return (this.list = new t.Vector.Node(e, n, i)), this.length++; + for (var o = i, r = i.next; void 0 != r; ) { + if (e < r.idx) + return (o.next = new t.Vector.Node(e, n, r)), this.length++; + (o = r), (r = r.next); + } + return (o.next = new t.Vector.Node(e, n, r)), this.length++; + }), + (t.Vector.prototype.magnitude = function() { + if (this._magnitude) return this._magnitude; + for (var t, e = this.list, n = 0; e; ) + (t = e.val), (n += t * t), (e = e.next); + return (this._magnitude = Math.sqrt(n)); + }), + (t.Vector.prototype.dot = function(t) { + for (var e = this.list, n = t.list, i = 0; e && n; ) + e.idx < n.idx + ? (e = e.next) + : e.idx > n.idx + ? (n = n.next) + : ((i += e.val * n.val), (e = e.next), (n = n.next)); + return i; + }), + (t.Vector.prototype.similarity = function(t) { + return this.dot(t) / (this.magnitude() * t.magnitude()); + }), + (t.SortedSet = function() { + (this.length = 0), (this.elements = []); + }), + (t.SortedSet.load = function(t) { + var e = new this(); + return (e.elements = t), (e.length = t.length), e; + }), + (t.SortedSet.prototype.add = function() { + var t, e; + for (t = 0; t < arguments.length; t++) + (e = arguments[t]), + ~this.indexOf(e) || this.elements.splice(this.locationFor(e), 0, e); + this.length = this.elements.length; + }), + (t.SortedSet.prototype.toArray = function() { + return this.elements.slice(); + }), + (t.SortedSet.prototype.map = function(t, e) { + return this.elements.map(t, e); + }), + (t.SortedSet.prototype.forEach = function(t, e) { + return this.elements.forEach(t, e); + }), + (t.SortedSet.prototype.indexOf = function(t) { + for ( + var e = 0, + n = this.elements.length, + i = n - e, + o = e + Math.floor(i / 2), + r = this.elements[o]; + i > 1; + + ) { + if (r === t) return o; + t > r && (e = o), + r > t && (n = o), + (i = n - e), + (o = e + Math.floor(i / 2)), + (r = this.elements[o]); + } + return r === t ? o : -1; + }), + (t.SortedSet.prototype.locationFor = function(t) { + for ( + var e = 0, + n = this.elements.length, + i = n - e, + o = e + Math.floor(i / 2), + r = this.elements[o]; + i > 1; + + ) + t > r && (e = o), + r > t && (n = o), + (i = n - e), + (o = e + Math.floor(i / 2)), + (r = this.elements[o]); + return r > t ? o : t > r ? o + 1 : void 0; + }), + (t.SortedSet.prototype.intersect = function(e) { + for ( + var n = new t.SortedSet(), + i = 0, + o = 0, + r = this.length, + s = e.length, + a = this.elements, + h = e.elements; + ; + + ) { + if (i > r - 1 || o > s - 1) break; + a[i] !== h[o] + ? a[i] < h[o] + ? i++ + : a[i] > h[o] && o++ + : (n.add(a[i]), i++, o++); + } + return n; + }), + (t.SortedSet.prototype.clone = function() { + var e = new t.SortedSet(); + return (e.elements = this.toArray()), (e.length = e.elements.length), e; + }), + (t.SortedSet.prototype.union = function(t) { + var e, n, i; + return ( + this.length >= t.length ? ((e = this), (n = t)) : ((e = t), (n = this)), + (i = e.clone()), + i.add.apply(i, n.toArray()), + i + ); + }), + (t.SortedSet.prototype.toJSON = function() { + return this.toArray(); + }), + (t.Index = function() { + (this._fields = []), + (this._ref = "id"), + (this.pipeline = new t.Pipeline()), + (this.documentStore = new t.Store()), + (this.tokenStore = new t.TokenStore()), + (this.corpusTokens = new t.SortedSet()), + (this.eventEmitter = new t.EventEmitter()), + (this._idfCache = {}), + this.on( + "add", + "remove", + "update", + function() { + this._idfCache = {}; + }.bind(this) + ); + }), + (t.Index.prototype.on = function() { + var t = Array.prototype.slice.call(arguments); + return this.eventEmitter.addListener.apply(this.eventEmitter, t); + }), + (t.Index.prototype.off = function(t, e) { + return this.eventEmitter.removeListener(t, e); + }), + (t.Index.load = function(e) { + e.version !== t.version && + t.utils.warn( + "version mismatch: current " + t.version + " importing " + e.version + ); + var n = new this(); + return ( + (n._fields = e.fields), + (n._ref = e.ref), + (n.documentStore = t.Store.load(e.documentStore)), + (n.tokenStore = t.TokenStore.load(e.tokenStore)), + (n.corpusTokens = t.SortedSet.load(e.corpusTokens)), + (n.pipeline = t.Pipeline.load(e.pipeline)), + n + ); + }), + (t.Index.prototype.field = function(t, e) { + var e = e || {}, + n = { name: t, boost: e.boost || 1 }; + return this._fields.push(n), this; + }), + (t.Index.prototype.ref = function(t) { + return (this._ref = t), this; + }), + (t.Index.prototype.add = function(e, n) { + var i = {}, + o = new t.SortedSet(), + r = e[this._ref], + n = void 0 === n ? !0 : n; + this._fields.forEach(function(n) { + var r = this.pipeline.run(t.tokenizer(e[n.name])); + (i[n.name] = r), t.SortedSet.prototype.add.apply(o, r); + }, this), + this.documentStore.set(r, o), + t.SortedSet.prototype.add.apply(this.corpusTokens, o.toArray()); + for (var s = 0; s < o.length; s++) { + var a = o.elements[s], + h = this._fields.reduce(function(t, e) { + var n = i[e.name].length; + if (!n) return t; + var o = i[e.name].filter(function(t) { + return t === a; + }).length; + return t + (o / n) * e.boost; + }, 0); + this.tokenStore.add(a, { ref: r, tf: h }); + } + n && this.eventEmitter.emit("add", e, this); + }), + (t.Index.prototype.remove = function(t, e) { + var n = t[this._ref], + e = void 0 === e ? !0 : e; + if (this.documentStore.has(n)) { + var i = this.documentStore.get(n); + this.documentStore.remove(n), + i.forEach(function(t) { + this.tokenStore.remove(t, n); + }, this), + e && this.eventEmitter.emit("remove", t, this); + } + }), + (t.Index.prototype.update = function(t, e) { + var e = void 0 === e ? !0 : e; + this.remove(t, !1), + this.add(t, !1), + e && this.eventEmitter.emit("update", t, this); + }), + (t.Index.prototype.idf = function(t) { + var e = "@" + t; + if (Object.prototype.hasOwnProperty.call(this._idfCache, e)) + return this._idfCache[e]; + var n = this.tokenStore.count(t), + i = 1; + return ( + n > 0 && (i = 1 + Math.log(this.documentStore.length / n)), + (this._idfCache[e] = i) + ); + }), + (t.Index.prototype.search = function(e) { + var n = this.pipeline.run(t.tokenizer(e)), + i = new t.Vector(), + o = [], + r = this._fields.reduce(function(t, e) { + return t + e.boost; + }, 0), + s = n.some(function(t) { + return this.tokenStore.has(t); + }, this); + if (!s) return []; + n.forEach(function(e, n, s) { + var a = (1 / s.length) * this._fields.length * r, + h = this, + l = this.tokenStore.expand(e).reduce(function(n, o) { + var r = h.corpusTokens.indexOf(o), + s = h.idf(o), + l = 1, + u = new t.SortedSet(); + if (o !== e) { + var c = Math.max(3, o.length - e.length); + l = 1 / Math.log(c); + } + return ( + r > -1 && i.insert(r, a * s * l), + Object.keys(h.tokenStore.get(o)).forEach(function(t) { + u.add(t); + }), + n.union(u) + ); + }, new t.SortedSet()); + o.push(l); + }, this); + var a = o.reduce(function(t, e) { + return t.intersect(e); + }); + return a + .map(function(t) { + return { ref: t, score: i.similarity(this.documentVector(t)) }; + }, this) + .sort(function(t, e) { + return e.score - t.score; + }); + }), + (t.Index.prototype.documentVector = function(e) { + for ( + var n = this.documentStore.get(e), + i = n.length, + o = new t.Vector(), + r = 0; + i > r; + r++ + ) { + var s = n.elements[r], + a = this.tokenStore.get(s)[e].tf, + h = this.idf(s); + o.insert(this.corpusTokens.indexOf(s), a * h); + } + return o; + }), + (t.Index.prototype.toJSON = function() { + return { + version: t.version, + fields: this._fields, + ref: this._ref, + documentStore: this.documentStore.toJSON(), + tokenStore: this.tokenStore.toJSON(), + corpusTokens: this.corpusTokens.toJSON(), + pipeline: this.pipeline.toJSON() + }; + }), + (t.Index.prototype.use = function(t) { + var e = Array.prototype.slice.call(arguments, 1); + e.unshift(this), t.apply(this, e); + }), + (t.Store = function() { + (this.store = {}), (this.length = 0); + }), + (t.Store.load = function(e) { + var n = new this(); + return ( + (n.length = e.length), + (n.store = Object.keys(e.store).reduce(function(n, i) { + return (n[i] = t.SortedSet.load(e.store[i])), n; + }, {})), + n + ); + }), + (t.Store.prototype.set = function(t, e) { + this.has(t) || this.length++, (this.store[t] = e); + }), + (t.Store.prototype.get = function(t) { + return this.store[t]; + }), + (t.Store.prototype.has = function(t) { + return t in this.store; + }), + (t.Store.prototype.remove = function(t) { + this.has(t) && (delete this.store[t], this.length--); + }), + (t.Store.prototype.toJSON = function() { + return { store: this.store, length: this.length }; + }), + (t.stemmer = (function() { + var t = { + ational: "ate", + tional: "tion", + enci: "ence", + anci: "ance", + izer: "ize", + bli: "ble", + alli: "al", + entli: "ent", + eli: "e", + ousli: "ous", + ization: "ize", + ation: "ate", + ator: "ate", + alism: "al", + iveness: "ive", + fulness: "ful", + ousness: "ous", + aliti: "al", + iviti: "ive", + biliti: "ble", + logi: "log" + }, + e = { + icate: "ic", + ative: "", + alize: "al", + iciti: "ic", + ical: "ic", + ful: "", + ness: "" + }, + n = "[^aeiou]", + i = "[aeiouy]", + o = n + "[^aeiouy]*", + r = i + "[aeiou]*", + s = "^(" + o + ")?" + r + o, + a = "^(" + o + ")?" + r + o + "(" + r + ")?$", + h = "^(" + o + ")?" + r + o + r + o, + l = "^(" + o + ")?" + i, + u = new RegExp(s), + c = new RegExp(h), + f = new RegExp(a), + d = new RegExp(l), + p = /^(.+?)(ss|i)es$/, + m = /^(.+?)([^s])s$/, + v = /^(.+?)eed$/, + y = /^(.+?)(ed|ing)$/, + g = /.$/, + S = /(at|bl|iz)$/, + w = new RegExp("([^aeiouylsz])\\1$"), + x = new RegExp("^" + o + i + "[^aeiouwxy]$"), + k = /^(.+?[^aeiou])y$/, + b = /^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/, + E = /^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/, + _ = /^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/, + F = /^(.+?)(s|t)(ion)$/, + O = /^(.+?)e$/, + P = /ll$/, + N = new RegExp("^" + o + i + "[^aeiouwxy]$"), + T = function(n) { + var i, o, r, s, a, h, l; + if (n.length < 3) return n; + if ( + ((r = n.substr(0, 1)), + "y" == r && (n = r.toUpperCase() + n.substr(1)), + (s = p), + (a = m), + s.test(n) + ? (n = n.replace(s, "$1$2")) + : a.test(n) && (n = n.replace(a, "$1$2")), + (s = v), + (a = y), + s.test(n)) + ) { + var T = s.exec(n); + (s = u), s.test(T[1]) && ((s = g), (n = n.replace(s, ""))); + } else if (a.test(n)) { + var T = a.exec(n); + (i = T[1]), + (a = d), + a.test(i) && + ((n = i), + (a = S), + (h = w), + (l = x), + a.test(n) + ? (n += "e") + : h.test(n) + ? ((s = g), (n = n.replace(s, ""))) + : l.test(n) && (n += "e")); + } + if (((s = k), s.test(n))) { + var T = s.exec(n); + (i = T[1]), (n = i + "i"); + } + if (((s = b), s.test(n))) { + var T = s.exec(n); + (i = T[1]), (o = T[2]), (s = u), s.test(i) && (n = i + t[o]); + } + if (((s = E), s.test(n))) { + var T = s.exec(n); + (i = T[1]), (o = T[2]), (s = u), s.test(i) && (n = i + e[o]); + } + if (((s = _), (a = F), s.test(n))) { + var T = s.exec(n); + (i = T[1]), (s = c), s.test(i) && (n = i); + } else if (a.test(n)) { + var T = a.exec(n); + (i = T[1] + T[2]), (a = c), a.test(i) && (n = i); + } + if (((s = O), s.test(n))) { + var T = s.exec(n); + (i = T[1]), + (s = c), + (a = f), + (h = N), + (s.test(i) || (a.test(i) && !h.test(i))) && (n = i); + } + return ( + (s = P), + (a = c), + s.test(n) && a.test(n) && ((s = g), (n = n.replace(s, ""))), + "y" == r && (n = r.toLowerCase() + n.substr(1)), + n + ); + }; + return T; + })()), + t.Pipeline.registerFunction(t.stemmer, "stemmer"), + (t.stopWordFilter = function(e) { + return e && t.stopWordFilter.stopWords[e] !== e ? e : void 0; + }), + (t.stopWordFilter.stopWords = { + a: "a", + able: "able", + about: "about", + across: "across", + after: "after", + all: "all", + almost: "almost", + also: "also", + am: "am", + among: "among", + an: "an", + and: "and", + any: "any", + are: "are", + as: "as", + at: "at", + be: "be", + because: "because", + been: "been", + but: "but", + by: "by", + can: "can", + cannot: "cannot", + could: "could", + dear: "dear", + did: "did", + do: "do", + does: "does", + either: "either", + else: "else", + ever: "ever", + every: "every", + for: "for", + from: "from", + get: "get", + got: "got", + had: "had", + has: "has", + have: "have", + he: "he", + her: "her", + hers: "hers", + him: "him", + his: "his", + how: "how", + however: "however", + i: "i", + if: "if", + in: "in", + into: "into", + is: "is", + it: "it", + its: "its", + just: "just", + least: "least", + let: "let", + like: "like", + likely: "likely", + may: "may", + me: "me", + might: "might", + most: "most", + must: "must", + my: "my", + neither: "neither", + no: "no", + nor: "nor", + not: "not", + of: "of", + off: "off", + often: "often", + on: "on", + only: "only", + or: "or", + other: "other", + our: "our", + own: "own", + rather: "rather", + said: "said", + say: "say", + says: "says", + she: "she", + should: "should", + since: "since", + so: "so", + some: "some", + than: "than", + that: "that", + the: "the", + their: "their", + them: "them", + then: "then", + there: "there", + these: "these", + they: "they", + this: "this", + tis: "tis", + to: "to", + too: "too", + twas: "twas", + us: "us", + wants: "wants", + was: "was", + we: "we", + were: "were", + what: "what", + when: "when", + where: "where", + which: "which", + while: "while", + who: "who", + whom: "whom", + why: "why", + will: "will", + with: "with", + would: "would", + yet: "yet", + you: "you", + your: "your" + }), + t.Pipeline.registerFunction(t.stopWordFilter, "stopWordFilter"), + (t.trimmer = function(t) { + var e = t.replace(/^\W+/, "").replace(/\W+$/, ""); + return "" === e ? void 0 : e; + }), + t.Pipeline.registerFunction(t.trimmer, "trimmer"), + (t.TokenStore = function() { + (this.root = { docs: {} }), (this.length = 0); + }), + (t.TokenStore.load = function(t) { + var e = new this(); + return (e.root = t.root), (e.length = t.length), e; + }), + (t.TokenStore.prototype.add = function(t, e, n) { + var n = n || this.root, + i = t[0], + o = t.slice(1); + return ( + i in n || (n[i] = { docs: {} }), + 0 === o.length + ? ((n[i].docs[e.ref] = e), void (this.length += 1)) + : this.add(o, e, n[i]) + ); + }), + (t.TokenStore.prototype.has = function(t) { + if (!t) return !1; + for (var e = this.root, n = 0; n < t.length; n++) { + if (!e[t[n]]) return !1; + e = e[t[n]]; + } + return !0; + }), + (t.TokenStore.prototype.getNode = function(t) { + if (!t) return {}; + for (var e = this.root, n = 0; n < t.length; n++) { + if (!e[t[n]]) return {}; + e = e[t[n]]; + } + return e; + }), + (t.TokenStore.prototype.get = function(t, e) { + return this.getNode(t, e).docs || {}; + }), + (t.TokenStore.prototype.count = function(t, e) { + return Object.keys(this.get(t, e)).length; + }), + (t.TokenStore.prototype.remove = function(t, e) { + if (t) { + for (var n = this.root, i = 0; i < t.length; i++) { + if (!(t[i] in n)) return; + n = n[t[i]]; + } + delete n.docs[e]; + } + }), + (t.TokenStore.prototype.expand = function(t, e) { + var n = this.getNode(t), + i = n.docs || {}, + e = e || []; + return ( + Object.keys(i).length && e.push(t), + Object.keys(n).forEach(function(n) { + "docs" !== n && e.concat(this.expand(t + n, e)); + }, this), + e + ); + }), + (t.TokenStore.prototype.toJSON = function() { + return { root: this.root, length: this.length }; + }), + (function(t, e) { + "function" == typeof define && define.amd + ? define(e) + : "object" == typeof exports + ? (module.exports = e()) + : (t.lunr = e()); + })(this, function() { + return t; + }); +})(); diff --git a/docs/gitbook/gitbook-plugin-search/search-engine.js b/docs/gitbook/gitbook-plugin-search/search-engine.js index 5088346..024230c 100644 --- a/docs/gitbook/gitbook-plugin-search/search-engine.js +++ b/docs/gitbook/gitbook-plugin-search/search-engine.js @@ -1,50 +1,49 @@ -require([ - 'gitbook', - 'jquery' -], function(gitbook, $) { - // Global search objects - var engine = null; - var initialized = false; - - // Set a new search engine - function setEngine(Engine, config) { - initialized = false; - engine = new Engine(config); - - init(config); - } - - // Initialize search engine with config - function init(config) { - if (!engine) throw new Error('No engine set for research. Set an engine using gitbook.research.setEngine(Engine).'); - - return engine.init(config) - .then(function() { - initialized = true; - gitbook.events.trigger('search.ready'); - }); - } - - // Launch search for query q - function query(q, offset, length) { - if (!initialized) throw new Error('Search has not been initialized'); - return engine.search(q, offset, length); - } - - // Get stats about search - function getEngine() { - return engine? engine.name : null; - } - - function isInitialized() { - return initialized; - } - - // Initialize gitbook.search - gitbook.search = { - setEngine: setEngine, - getEngine: getEngine, - query: query, - isInitialized: isInitialized - }; -}); \ No newline at end of file +require(["gitbook", "jquery"], function(gitbook, $) { + // Global search objects + var engine = null; + var initialized = false; + + // Set a new search engine + function setEngine(Engine, config) { + initialized = false; + engine = new Engine(config); + + init(config); + } + + // Initialize search engine with config + function init(config) { + if (!engine) + throw new Error( + "No engine set for research. Set an engine using gitbook.research.setEngine(Engine)." + ); + + return engine.init(config).then(function() { + initialized = true; + gitbook.events.trigger("search.ready"); + }); + } + + // Launch search for query q + function query(q, offset, length) { + if (!initialized) throw new Error("Search has not been initialized"); + return engine.search(q, offset, length); + } + + // Get stats about search + function getEngine() { + return engine ? engine.name : null; + } + + function isInitialized() { + return initialized; + } + + // Initialize gitbook.search + gitbook.search = { + setEngine: setEngine, + getEngine: getEngine, + query: query, + isInitialized: isInitialized + }; +}); diff --git a/docs/gitbook/gitbook-plugin-search/search.js b/docs/gitbook/gitbook-plugin-search/search.js index 7a0c232..dbe8451 100644 --- a/docs/gitbook/gitbook-plugin-search/search.js +++ b/docs/gitbook/gitbook-plugin-search/search.js @@ -1,213 +1,211 @@ -require([ - 'gitbook', - 'jquery' -], function(gitbook, $) { - var MAX_RESULTS = 15; - var MAX_DESCRIPTION_SIZE = 500; - - var usePushState = (typeof history.pushState !== 'undefined'); - - // DOM Elements - var $body = $('body'); - var $bookSearchResults; - var $searchInput; - var $searchList; - var $searchTitle; - var $searchResultsCount; - var $searchQuery; - - // Throttle search - function throttle(fn, wait) { - var timeout; - - return function() { - var ctx = this, args = arguments; - if (!timeout) { - timeout = setTimeout(function() { - timeout = null; - fn.apply(ctx, args); - }, wait); - } - }; - } - - function displayResults(res) { - $bookSearchResults.addClass('open'); - - var noResults = res.count == 0; - $bookSearchResults.toggleClass('no-results', noResults); - - // Clear old results - $searchList.empty(); - - // Display title for research - $searchResultsCount.text(res.count); - $searchQuery.text(res.query); - - // Create an - element for each result - res.results.forEach(function(res) { - var $li = $('
- ', { - 'class': 'search-results-item' - }); - - var $title = $('
'); - - var $link = $('', { - 'href': gitbook.state.basePath + '/' + res.url, - 'text': res.title - }); - - var content = res.body.trim(); - if (content.length > MAX_DESCRIPTION_SIZE) { - content = content.slice(0, MAX_DESCRIPTION_SIZE).trim()+'...'; - } - var $content = $('
').html(content); - - $link.appendTo($title); - $title.appendTo($li); - $content.appendTo($li); - $li.appendTo($searchList); - }); - } +require(["gitbook", "jquery"], function(gitbook, $) { + var MAX_RESULTS = 15; + var MAX_DESCRIPTION_SIZE = 500; + + var usePushState = typeof history.pushState !== "undefined"; + + // DOM Elements + var $body = $("body"); + var $bookSearchResults; + var $searchInput; + var $searchList; + var $searchTitle; + var $searchResultsCount; + var $searchQuery; + + // Throttle search + function throttle(fn, wait) { + var timeout; + + return function() { + var ctx = this, + args = arguments; + if (!timeout) { + timeout = setTimeout(function() { + timeout = null; + fn.apply(ctx, args); + }, wait); + } + }; + } + + function displayResults(res) { + $bookSearchResults.addClass("open"); + + var noResults = res.count == 0; + $bookSearchResults.toggleClass("no-results", noResults); + + // Clear old results + $searchList.empty(); + + // Display title for research + $searchResultsCount.text(res.count); + $searchQuery.text(res.query); + + // Create an
- element for each result + res.results.forEach(function(res) { + var $li = $("
- ", { + class: "search-results-item" + }); + + var $title = $("
"); + + var $link = $("", { + href: gitbook.state.basePath + "/" + res.url, + text: res.title + }); + + var content = res.body.trim(); + if (content.length > MAX_DESCRIPTION_SIZE) { + content = content.slice(0, MAX_DESCRIPTION_SIZE).trim() + "..."; + } + var $content = $("
").html(content); + + $link.appendTo($title); + $title.appendTo($li); + $content.appendTo($li); + $li.appendTo($searchList); + }); + } - function launchSearch(q) { - // Add class for loading - $body.addClass('with-search'); - $body.addClass('search-loading'); + function launchSearch(q) { + // Add class for loading + $body.addClass("with-search"); + $body.addClass("search-loading"); - // Launch search query - throttle(gitbook.search.query(q, 0, MAX_RESULTS) + // Launch search query + throttle( + gitbook.search + .query(q, 0, MAX_RESULTS) .then(function(results) { - displayResults(results); + displayResults(results); }) .always(function() { - $body.removeClass('search-loading'); - }), 1000); + $body.removeClass("search-loading"); + }), + 1000 + ); + } + + function closeSearch() { + $body.removeClass("with-search"); + $bookSearchResults.removeClass("open"); + } + + function launchSearchFromQueryString() { + var q = getParameterByName("q"); + if (q && q.length > 0) { + // Update search input + $searchInput.val(q); + + // Launch search + launchSearch(q); } - - function closeSearch() { - $body.removeClass('with-search'); - $bookSearchResults.removeClass('open'); - } - - function launchSearchFromQueryString() { - var q = getParameterByName('q'); - if (q && q.length > 0) { - // Update search input - $searchInput.val(q); - - // Launch search - launchSearch(q); - } + } + + function bindSearch() { + // Bind DOM + $searchInput = $("#book-search-input input"); + $bookSearchResults = $("#book-search-results"); + $searchList = $bookSearchResults.find(".search-results-list"); + $searchTitle = $bookSearchResults.find(".search-results-title"); + $searchResultsCount = $searchTitle.find(".search-results-count"); + $searchQuery = $searchTitle.find(".search-query"); + + // Launch query based on input content + function handleUpdate() { + var q = $searchInput.val(); + + if (q.length == 0) { + closeSearch(); + } else { + launchSearch(q); + } } - function bindSearch() { - // Bind DOM - $searchInput = $('#book-search-input input'); - $bookSearchResults = $('#book-search-results'); - $searchList = $bookSearchResults.find('.search-results-list'); - $searchTitle = $bookSearchResults.find('.search-results-title'); - $searchResultsCount = $searchTitle.find('.search-results-count'); - $searchQuery = $searchTitle.find('.search-query'); - - // Launch query based on input content - function handleUpdate() { - var q = $searchInput.val(); - - if (q.length == 0) { - closeSearch(); - } - else { - launchSearch(q); - } - } - - // Detect true content change in search input - // Workaround for IE < 9 - var propertyChangeUnbound = false; - $searchInput.on('propertychange', function(e) { - if (e.originalEvent.propertyName == 'value') { - handleUpdate(); - } - }); - - // HTML5 (IE9 & others) - $searchInput.on('input', function(e) { - // Unbind propertychange event for IE9+ - if (!propertyChangeUnbound) { - $(this).unbind('propertychange'); - propertyChangeUnbound = true; - } - - handleUpdate(); - }); - - // Push to history on blur - $searchInput.on('blur', function(e) { - // Update history state - if (usePushState) { - var uri = updateQueryString('q', $(this).val()); - history.pushState({ path: uri }, null, uri); - } - }); - } + // Detect true content change in search input + // Workaround for IE < 9 + var propertyChangeUnbound = false; + $searchInput.on("propertychange", function(e) { + if (e.originalEvent.propertyName == "value") { + handleUpdate(); + } + }); - gitbook.events.on('page.change', function() { - bindSearch(); - closeSearch(); + // HTML5 (IE9 & others) + $searchInput.on("input", function(e) { + // Unbind propertychange event for IE9+ + if (!propertyChangeUnbound) { + $(this).unbind("propertychange"); + propertyChangeUnbound = true; + } - // Launch search based on query parameter - if (gitbook.search.isInitialized()) { - launchSearchFromQueryString(); - } + handleUpdate(); }); - gitbook.events.on('search.ready', function() { - bindSearch(); - - // Launch search from query param at start - launchSearchFromQueryString(); + // Push to history on blur + $searchInput.on("blur", function(e) { + // Update history state + if (usePushState) { + var uri = updateQueryString("q", $(this).val()); + history.pushState({ path: uri }, null, uri); + } }); + } - function getParameterByName(name) { - var url = window.location.href; - name = name.replace(/[\[\]]/g, '\\$&'); - var regex = new RegExp('[?&]' + name + '(=([^]*)|&|#|$)', 'i'), - results = regex.exec(url); - if (!results) return null; - if (!results[2]) return ''; - return decodeURIComponent(results[2].replace(/\+/g, ' ')); - } + gitbook.events.on("page.change", function() { + bindSearch(); + closeSearch(); - function updateQueryString(key, value) { - value = encodeURIComponent(value); - - var url = window.location.href; - var re = new RegExp('([?&])' + key + '=.*?(&|#|$)(.*)', 'gi'), - hash; - - if (re.test(url)) { - if (typeof value !== 'undefined' && value !== null) - return url.replace(re, '$1' + key + '=' + value + '$2$3'); - else { - hash = url.split('#'); - url = hash[0].replace(re, '$1$3').replace(/(&|\?)$/, ''); - if (typeof hash[1] !== 'undefined' && hash[1] !== null) - url += '#' + hash[1]; - return url; - } - } - else { - if (typeof value !== 'undefined' && value !== null) { - var separator = url.indexOf('?') !== -1 ? '&' : '?'; - hash = url.split('#'); - url = hash[0] + separator + key + '=' + value; - if (typeof hash[1] !== 'undefined' && hash[1] !== null) - url += '#' + hash[1]; - return url; - } - else - return url; - } + // Launch search based on query parameter + if (gitbook.search.isInitialized()) { + launchSearchFromQueryString(); + } + }); + + gitbook.events.on("search.ready", function() { + bindSearch(); + + // Launch search from query param at start + launchSearchFromQueryString(); + }); + + function getParameterByName(name) { + var url = window.location.href; + name = name.replace(/[\[\]]/g, "\\$&"); + var regex = new RegExp("[?&]" + name + "(=([^]*)|&|#|$)", "i"), + results = regex.exec(url); + if (!results) return null; + if (!results[2]) return ""; + return decodeURIComponent(results[2].replace(/\+/g, " ")); + } + + function updateQueryString(key, value) { + value = encodeURIComponent(value); + + var url = window.location.href; + var re = new RegExp("([?&])" + key + "=.*?(&|#|$)(.*)", "gi"), + hash; + + if (re.test(url)) { + if (typeof value !== "undefined" && value !== null) + return url.replace(re, "$1" + key + "=" + value + "$2$3"); + else { + hash = url.split("#"); + url = hash[0].replace(re, "$1$3").replace(/(&|\?)$/, ""); + if (typeof hash[1] !== "undefined" && hash[1] !== null) + url += "#" + hash[1]; + return url; + } + } else { + if (typeof value !== "undefined" && value !== null) { + var separator = url.indexOf("?") !== -1 ? "&" : "?"; + hash = url.split("#"); + url = hash[0] + separator + key + "=" + value; + if (typeof hash[1] !== "undefined" && hash[1] !== null) + url += "#" + hash[1]; + return url; + } else return url; } + } }); diff --git a/docs/gitbook/gitbook-plugin-sharing/buttons.js b/docs/gitbook/gitbook-plugin-sharing/buttons.js index 709a4e4..28502f7 100644 --- a/docs/gitbook/gitbook-plugin-sharing/buttons.js +++ b/docs/gitbook/gitbook-plugin-sharing/buttons.js @@ -1,90 +1,108 @@ -require(['gitbook', 'jquery'], function(gitbook, $) { - var SITES = { - 'facebook': { - 'label': 'Facebook', - 'icon': 'fa fa-facebook', - 'onClick': function(e) { - e.preventDefault(); - window.open('http://www.facebook.com/sharer/sharer.php?s=100&p[url]='+encodeURIComponent(location.href)); - } - }, - 'twitter': { - 'label': 'Twitter', - 'icon': 'fa fa-twitter', - 'onClick': function(e) { - e.preventDefault(); - window.open('http://twitter.com/home?status='+encodeURIComponent(document.title+' '+location.href)); - } - }, - 'google': { - 'label': 'Google+', - 'icon': 'fa fa-google-plus', - 'onClick': function(e) { - e.preventDefault(); - window.open('https://plus.google.com/share?url='+encodeURIComponent(location.href)); - } - }, - 'weibo': { - 'label': 'Weibo', - 'icon': 'fa fa-weibo', - 'onClick': function(e) { - e.preventDefault(); - window.open('http://service.weibo.com/share/share.php?content=utf-8&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)); - } - }, - 'instapaper': { - 'label': 'Instapaper', - 'icon': 'fa fa-instapaper', - 'onClick': function(e) { - e.preventDefault(); - window.open('http://www.instapaper.com/text?u='+encodeURIComponent(location.href)); - } - }, - 'vk': { - 'label': 'VK', - 'icon': 'fa fa-vk', - 'onClick': function(e) { - e.preventDefault(); - window.open('http://vkontakte.ru/share.php?url='+encodeURIComponent(location.href)); - } - } - }; +require(["gitbook", "jquery"], function(gitbook, $) { + var SITES = { + facebook: { + label: "Facebook", + icon: "fa fa-facebook", + onClick: function(e) { + e.preventDefault(); + window.open( + "http://www.facebook.com/sharer/sharer.php?s=100&p[url]=" + + encodeURIComponent(location.href) + ); + } + }, + twitter: { + label: "Twitter", + icon: "fa fa-twitter", + onClick: function(e) { + e.preventDefault(); + window.open( + "http://twitter.com/home?status=" + + encodeURIComponent(document.title + " " + location.href) + ); + } + }, + google: { + label: "Google+", + icon: "fa fa-google-plus", + onClick: function(e) { + e.preventDefault(); + window.open( + "https://plus.google.com/share?url=" + + encodeURIComponent(location.href) + ); + } + }, + weibo: { + label: "Weibo", + icon: "fa fa-weibo", + onClick: function(e) { + e.preventDefault(); + window.open( + "http://service.weibo.com/share/share.php?content=utf-8&url=" + + encodeURIComponent(location.href) + + "&title=" + + encodeURIComponent(document.title) + ); + } + }, + instapaper: { + label: "Instapaper", + icon: "fa fa-instapaper", + onClick: function(e) { + e.preventDefault(); + window.open( + "http://www.instapaper.com/text?u=" + + encodeURIComponent(location.href) + ); + } + }, + vk: { + label: "VK", + icon: "fa fa-vk", + onClick: function(e) { + e.preventDefault(); + window.open( + "http://vkontakte.ru/share.php?url=" + + encodeURIComponent(location.href) + ); + } + } + }; + gitbook.events.bind("start", function(e, config) { + var opts = config.sharing; + // Create dropdown menu + var menu = $.map(opts.all, function(id) { + var site = SITES[id]; - gitbook.events.bind('start', function(e, config) { - var opts = config.sharing; - - // Create dropdown menu - var menu = $.map(opts.all, function(id) { - var site = SITES[id]; - - return { - text: site.label, - onClick: site.onClick - }; - }); + return { + text: site.label, + onClick: site.onClick + }; + }); - // Create main button with dropdown - if (menu.length > 0) { - gitbook.toolbar.createButton({ - icon: 'fa fa-share-alt', - label: 'Share', - position: 'right', - dropdown: [menu] - }); - } + // Create main button with dropdown + if (menu.length > 0) { + gitbook.toolbar.createButton({ + icon: "fa fa-share-alt", + label: "Share", + position: "right", + dropdown: [menu] + }); + } - // Direct actions to share - $.each(SITES, function(sideId, site) { - if (!opts[sideId]) return; + // Direct actions to share + $.each(SITES, function(sideId, site) { + if (!opts[sideId]) return; - gitbook.toolbar.createButton({ - icon: site.icon, - label: site.text, - position: 'right', - onClick: site.onClick - }); - }); + gitbook.toolbar.createButton({ + icon: site.icon, + label: site.text, + position: "right", + onClick: site.onClick + }); }); + }); }); diff --git a/docs/gitbook/gitbook-plugin-theme-vuejs-2/vue.css b/docs/gitbook/gitbook-plugin-theme-vuejs-2/vue.css index 534f19a..0fb8448 100644 --- a/docs/gitbook/gitbook-plugin-theme-vuejs-2/vue.css +++ b/docs/gitbook/gitbook-plugin-theme-vuejs-2/vue.css @@ -1,9 +1,9 @@ -@import url('https://fonts.googleapis.com/css?family=Roboto+Mono|Source+Sans+Pro:300,400,600'); +@import url("https://fonts.googleapis.com/css?family=Roboto+Mono|Source+Sans+Pro:300,400,600"); body { letter-spacing: 0; color: #34495e; - font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif; + font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif; font-size: 15px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; @@ -13,7 +13,7 @@ body { /* LANGS.md index page */ .book-langs-index { - font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif; + font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif; } .book-langs-index .inner .languages { @@ -30,15 +30,16 @@ li a { } /* set correct fonts on sidebar and main page */ -.book .book-body .page-wrapper .page-inner section.normal, .book-summary { - font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif; +.book .book-body .page-wrapper .page-inner section.normal, +.book-summary { + font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif; } /* sidebar */ .book-summary ul.summary li a, .book-summary ul.summary li span { color: #7f8c8d; - font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif; + font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif; } .book .book-summary ul.summary li span { @@ -90,8 +91,9 @@ li a { margin: 0; } -.markdown-section code, .markdown-section pre { - font-family: 'Roboto Mono', Monaco, courier, monospace; +.markdown-section code, +.markdown-section pre { + font-family: "Roboto Mono", Monaco, courier, monospace; -webkit-font-smoothing: initial; -moz-osx-font-smoothing: initial; background-color: #f8f8f8; @@ -110,13 +112,15 @@ span[class^="hljs-"] { display: block; } -.markdown-section code:after, .markdown-section code:before { +.markdown-section code:after, +.markdown-section code:before { content: none; letter-spacing: 0.05em; } -code, pre { - font-family: 'Roboto Mono', Monaco, courier, monospace; +code, +pre { + font-family: "Roboto Mono", Monaco, courier, monospace; font-size: 0.8em; background-color: #f8f8f8; -webkit-font-smoothing: initial; @@ -158,19 +162,19 @@ pre code.lang-css:after { } pre code.lang-html:after { - content: 'HTML'; + content: "HTML"; } pre code.lang-js:after { - content: 'JS'; + content: "JS"; } pre code.lang-bash:after { - content: 'Shell'; + content: "Shell"; } pre code.lang-css:after { - content: 'CSS'; + content: "CSS"; } .content img { diff --git a/docs/gitbook/gitbook.js b/docs/gitbook/gitbook.js index 13077b4..857e4c8 100644 --- a/docs/gitbook/gitbook.js +++ b/docs/gitbook/gitbook.js @@ -1,4 +1,6928 @@ -!function e(t,n,r){function o(s,a){if(!n[s]){if(!t[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(i)return i(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[s]={exports:{}};t[s][0].call(l.exports,function(e){var n=t[s][1][e];return o(n?n:e)},l,l.exports,e,t,n,r)}return n[s].exports}for(var i="function"==typeof require&&require,s=0;s
0&&t-1 in e)}function o(e,t,n){return de.isFunction(t)?de.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?de.grep(e,function(e){return e===t!==n}):"string"!=typeof t?de.grep(e,function(e){return se.call(t,e)>-1!==n}):je.test(t)?de.filter(t,e,n):(t=de.filter(t,e),de.grep(e,function(e){return se.call(t,e)>-1!==n&&1===e.nodeType}))}function i(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function s(e){var t={};return de.each(e.match(qe)||[],function(e,n){t[n]=!0}),t}function a(e){return e}function u(e){throw e}function c(e,t,n){var r;try{e&&de.isFunction(r=e.promise)?r.call(e).done(t).fail(n):e&&de.isFunction(r=e.then)?r.call(e,t,n):t.call(void 0,e)}catch(e){n.call(void 0,e)}}function l(){te.removeEventListener("DOMContentLoaded",l),e.removeEventListener("load",l),de.ready()}function f(){this.expando=de.expando+f.uid++}function p(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Ie.test(e)?JSON.parse(e):e)}function h(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(Pe,"-$&").toLowerCase(),n=e.getAttribute(r),"string"==typeof n){try{n=p(n)}catch(e){}Re.set(e,t,n)}else n=void 0;return n}function d(e,t,n,r){var o,i=1,s=20,a=r?function(){return r.cur()}:function(){return de.css(e,t,"")},u=a(),c=n&&n[3]||(de.cssNumber[t]?"":"px"),l=(de.cssNumber[t]||"px"!==c&&+u)&&$e.exec(de.css(e,t));if(l&&l[3]!==c){c=c||l[3],n=n||[],l=+u||1;do i=i||".5",l/=i,de.style(e,t,l+c);while(i!==(i=a()/u)&&1!==i&&--s)}return n&&(l=+l||+u||0,o=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=l,r.end=o)),o}function g(e){var t,n=e.ownerDocument,r=e.nodeName,o=Ue[r];return o?o:(t=n.body.appendChild(n.createElement(r)),o=de.css(t,"display"),t.parentNode.removeChild(t),"none"===o&&(o="block"),Ue[r]=o,o)}function m(e,t){for(var n,r,o=[],i=0,s=e.length;i -1)o&&o.push(i);else if(c=de.contains(i.ownerDocument,i),s=v(f.appendChild(i),"script"),c&&y(s),n)for(l=0;i=s[l++];)Ve.test(i.type||"")&&n.push(i);return f}function b(){return!0}function w(){return!1}function T(){try{return te.activeElement}catch(e){}}function C(e,t,n,r,o,i){var s,a;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=void 0);for(a in t)C(e,a,n,r,t[a],i);return e}if(null==r&&null==o?(o=n,r=n=void 0):null==o&&("string"==typeof n?(o=r,r=void 0):(o=r,r=n,n=void 0)),o===!1)o=w;else if(!o)return e;return 1===i&&(s=o,o=function(e){return de().off(e),s.apply(this,arguments)},o.guid=s.guid||(s.guid=de.guid++)),e.each(function(){de.event.add(this,t,o,r,n)})}function j(e,t){return de.nodeName(e,"table")&&de.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e:e}function k(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function E(e){var t=rt.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function S(e,t){var n,r,o,i,s,a,u,c;if(1===t.nodeType){if(Fe.hasData(e)&&(i=Fe.access(e),s=Fe.set(t,i),c=i.events)){delete s.handle,s.events={};for(o in c)for(n=0,r=c[o].length;n1&&"string"==typeof d&&!pe.checkClone&&nt.test(d))return e.each(function(n){var i=e.eq(n);g&&(t[0]=d.call(this,n,i.html())),A(i,t,r,o)});if(p&&(i=x(t,e[0].ownerDocument,!1,e,o),s=i.firstChild,1===i.childNodes.length&&(i=s),s||o)){for(a=de.map(v(i,"script"),k),u=a.length;f =0&&n
C.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[$]=!0,e}function o(e){var t=L.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function i(e,t){for(var n=e.split("|"),r=n.length;r--;)C.attrHandle[n[r]]=t}function s(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function a(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function u(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function c(e){return function(t){return"form"in t?t.parentNode&&t.disabled===!1?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&je(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function l(e){return r(function(t){return t=+t,r(function(n,r){for(var o,i=e([],n.length,t),s=i.length;s--;)n[o=i[s]]&&(n[o]=!(r[o]=n[o]))})})}function f(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function p(){}function h(e){for(var t=0,n=e.length,r="";t 1?function(t,n,r){for(var o=e.length;o--;)if(!e[o](t,n,r))return!1;return!0}:e[0]}function m(e,n,r){for(var o=0,i=n.length;o-1&&(r[c]=!(s[c]=f))}}else x=v(x===s?x.splice(d,x.length):x),i?i(null,s,x,u):K.apply(s,x)})}function x(e){for(var t,n,r,o=e.length,i=C.relative[e[0].type],s=i||C.relative[" "],a=i?1:0,u=d(function(e){return e===t},s,!0),c=d(function(e){return ee(t,e)>-1},s,!0),l=[function(e,n,r){var o=!i&&(r||n!==A)||((t=n).nodeType?u(e,n,r):c(e,n,r));return t=null,o}];a 1&&g(l),a>1&&h(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(ae,"$1"),n,a 0,i=e.length>0,s=function(r,s,a,u,c){var l,f,p,h=0,d="0",g=r&&[],m=[],y=A,x=r||i&&C.find.TAG("*",c),b=B+=null==y?1:Math.random()||.1,w=x.length;for(c&&(A=s===L||s||c);d!==w&&null!=(l=x[d]);d++){if(i&&l){for(f=0,s||l.ownerDocument===L||(O(l),a=!F);p=e[f++];)if(p(l,s||L,a)){u.push(l);break}c&&(B=b)}o&&((l=!p&&l)&&h--,r&&g.push(l))}if(h+=d,o&&d!==h){for(f=0;p=n[f++];)p(g,m,s,a);if(r){if(h>0)for(;d--;)g[d]||m[d]||(m[d]=Q.call(u));m=v(m)}K.apply(u,m),c&&!r&&m.length>0&&h+n.length>1&&t.uniqueSort(u)}return c&&(B=b,A=y),g};return o?r(s):s}var w,T,C,j,k,E,S,N,A,q,D,O,L,H,F,R,I,P,M,$="sizzle"+1*new Date,W=e.document,B=0,_=0,U=n(),z=n(),X=n(),V=function(e,t){return e===t&&(D=!0),0},G={}.hasOwnProperty,Y=[],Q=Y.pop,J=Y.push,K=Y.push,Z=Y.slice,ee=function(e,t){for(var n=0,r=e.length;n +~]|"+ne+")"+ne+"*"),le=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),fe=new RegExp(ie),pe=new RegExp("^"+re+"$"),he={ID:new RegExp("^#("+re+")"),CLASS:new RegExp("^\\.("+re+")"),TAG:new RegExp("^("+re+"|[*])"),ATTR:new RegExp("^"+oe),PSEUDO:new RegExp("^"+ie),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},de=/^(?:input|select|textarea|button)$/i,ge=/^h\d$/i,me=/^[^{]+\{\s*\[native \w/,ve=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ye=/[+~]/,xe=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),be=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},we=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,Te=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},Ce=function(){O()},je=d(function(e){return e.disabled===!0&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{K.apply(Y=Z.call(W.childNodes),W.childNodes),Y[W.childNodes.length].nodeType}catch(e){K={apply:Y.length?function(e,t){J.apply(e,Z.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}T=t.support={},k=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},O=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:W;return r!==L&&9===r.nodeType&&r.documentElement?(L=r,H=L.documentElement,F=!k(L),W!==L&&(n=L.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",Ce,!1):n.attachEvent&&n.attachEvent("onunload",Ce)),T.attributes=o(function(e){return e.className="i",!e.getAttribute("className")}),T.getElementsByTagName=o(function(e){return e.appendChild(L.createComment("")),!e.getElementsByTagName("*").length}),T.getElementsByClassName=me.test(L.getElementsByClassName),T.getById=o(function(e){return H.appendChild(e).id=$,!L.getElementsByName||!L.getElementsByName($).length}),T.getById?(C.filter.ID=function(e){var t=e.replace(xe,be);return function(e){return e.getAttribute("id")===t}},C.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&F){var n=t.getElementById(e);return n?[n]:[]}}):(C.filter.ID=function(e){var t=e.replace(xe,be);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},C.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&F){var n,r,o,i=t.getElementById(e);if(i){if(n=i.getAttributeNode("id"),n&&n.value===e)return[i];for(o=t.getElementsByName(e),r=0;i=o[r++];)if(n=i.getAttributeNode("id"),n&&n.value===e)return[i]}return[]}}),C.find.TAG=T.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):T.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[o++];)1===n.nodeType&&r.push(n);return r}return i},C.find.CLASS=T.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&F)return t.getElementsByClassName(e)},I=[],R=[],(T.qsa=me.test(L.querySelectorAll))&&(o(function(e){H.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&R.push("[*^$]="+ne+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||R.push("\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+$+"-]").length||R.push("~="),e.querySelectorAll(":checked").length||R.push(":checked"),e.querySelectorAll("a#"+$+"+*").length||R.push(".#.+[+~]")}),o(function(e){e.innerHTML="";var t=L.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&R.push("name"+ne+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&R.push(":enabled",":disabled"),H.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&R.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),R.push(",.*:")})),(T.matchesSelector=me.test(P=H.matches||H.webkitMatchesSelector||H.mozMatchesSelector||H.oMatchesSelector||H.msMatchesSelector))&&o(function(e){T.disconnectedMatch=P.call(e,"*"),P.call(e,"[s!='']:x"),I.push("!=",ie)}),R=R.length&&new RegExp(R.join("|")),I=I.length&&new RegExp(I.join("|")),t=me.test(H.compareDocumentPosition),M=t||me.test(H.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},V=t?function(e,t){if(e===t)return D=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!T.sortDetached&&t.compareDocumentPosition(e)===n?e===L||e.ownerDocument===W&&M(W,e)?-1:t===L||t.ownerDocument===W&&M(W,t)?1:q?ee(q,e)-ee(q,t):0:4&n?-1:1)}:function(e,t){if(e===t)return D=!0,0;var n,r=0,o=e.parentNode,i=t.parentNode,a=[e],u=[t];if(!o||!i)return e===L?-1:t===L?1:o?-1:i?1:q?ee(q,e)-ee(q,t):0;if(o===i)return s(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;a[r]===u[r];)r++;return r?s(a[r],u[r]):a[r]===W?-1:u[r]===W?1:0},L):L},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==L&&O(e),n=n.replace(le,"='$1']"),T.matchesSelector&&F&&!X[n+" "]&&(!I||!I.test(n))&&(!R||!R.test(n)))try{var r=P.call(e,n);if(r||T.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return t(n,L,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==L&&O(e),M(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==L&&O(e);var n=C.attrHandle[t.toLowerCase()],r=n&&G.call(C.attrHandle,t.toLowerCase())?n(e,t,!F):void 0;return void 0!==r?r:T.attributes||!F?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.escape=function(e){return(e+"").replace(we,Te)},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,o=0;if(D=!T.detectDuplicates,q=!T.sortStable&&e.slice(0),e.sort(V),D){for(;t=e[o++];)t===e[o]&&(r=n.push(o));for(;r--;)e.splice(n[r],1)}return q=null,e},j=t.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=j(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=j(t);return n},C=t.selectors={cacheLength:50,createPseudo:r,match:he,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(xe,be),e[3]=(e[3]||e[4]||e[5]||"").replace(xe,be),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return he.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&fe.test(n)&&(t=E(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(xe,be).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=U[e+" "];return t||(t=new RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&U(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(o){var i=t.attr(o,e);return null==i?"!="===n:!n||(i+="","="===n?i===r:"!="===n?i!==r:"^="===n?r&&0===i.indexOf(r):"*="===n?r&&i.indexOf(r)>-1:"$="===n?r&&i.slice(-r.length)===r:"~="===n?(" "+i.replace(se," ")+" ").indexOf(r)>-1:"|="===n&&(i===r||i.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,n,r,o){var i="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,n,u){var c,l,f,p,h,d,g=i!==s?"nextSibling":"previousSibling",m=t.parentNode,v=a&&t.nodeName.toLowerCase(),y=!u&&!a,x=!1;if(m){if(i){for(;g;){for(p=t;p=p[g];)if(a?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;d=g="only"===e&&!d&&"nextSibling"}return!0}if(d=[s?m.firstChild:m.lastChild],s&&y){for(p=m,f=p[$]||(p[$]={}),l=f[p.uniqueID]||(f[p.uniqueID]={}),c=l[e]||[],h=c[0]===B&&c[1],x=h&&c[2],p=h&&m.childNodes[h];p=++h&&p&&p[g]||(x=h=0)||d.pop();)if(1===p.nodeType&&++x&&p===t){l[e]=[B,h,x];break}}else if(y&&(p=t,f=p[$]||(p[$]={}),l=f[p.uniqueID]||(f[p.uniqueID]={}),c=l[e]||[],h=c[0]===B&&c[1],x=h),x===!1)for(;(p=++h&&p&&p[g]||(x=h=0)||d.pop())&&((a?p.nodeName.toLowerCase()!==v:1!==p.nodeType)||!++x||(y&&(f=p[$]||(p[$]={}),l=f[p.uniqueID]||(f[p.uniqueID]={}),l[e]=[B,x]),p!==t)););return x-=o,x===r||x%r===0&&x/r>=0}}},PSEUDO:function(e,n){var o,i=C.pseudos[e]||C.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return i[$]?i(n):i.length>1?(o=[e,e,"",n],C.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,o=i(e,n),s=o.length;s--;)r=ee(e,o[s]),e[r]=!(t[r]=o[s])}):function(e){return i(e,0,o)}):i}},pseudos:{not:r(function(e){var t=[],n=[],o=S(e.replace(ae,"$1"));return o[$]?r(function(e,t,n,r){for(var i,s=o(e,null,r,[]),a=e.length;a--;)(i=s[a])&&(e[a]=!(t[a]=i))}):function(e,r,i){return t[0]=e,o(t,null,i,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){ -return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(xe,be),function(t){return(t.textContent||t.innerText||j(t)).indexOf(e)>-1}}),lang:r(function(e){return pe.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(xe,be).toLowerCase(),function(t){var n;do if(n=F?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===H},focus:function(e){return e===L.activeElement&&(!L.hasFocus||L.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:c(!1),disabled:c(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!C.pseudos.empty(e)},header:function(e){return ge.test(e.nodeName)},input:function(e){return de.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:l(function(){return[0]}),last:l(function(e,t){return[t-1]}),eq:l(function(e,t,n){return[n<0?n+t:n]}),even:l(function(e,t){for(var n=0;n =0;)e.push(r);return e}),gt:l(function(e,t,n){for(var r=n<0?n+t:n;++r 2&&"ID"===(s=i[0]).type&&9===t.nodeType&&F&&C.relative[i[1].type]){if(t=(C.find.ID(s.matches[0].replace(xe,be),t)||[])[0],!t)return n;c&&(t=t.parentNode),e=e.slice(i.shift().value.length)}for(o=he.needsContext.test(e)?0:i.length;o--&&(s=i[o],!C.relative[a=s.type]);)if((u=C.find[a])&&(r=u(s.matches[0].replace(xe,be),ye.test(i[0].type)&&f(t.parentNode)||t))){if(i.splice(o,1),e=r.length&&h(i),!e)return K.apply(n,r),n;break}}return(c||S(e,l))(r,t,!F,n,!t||ye.test(e)&&f(t.parentNode)||t),n},T.sortStable=$.split("").sort(V).join("")===$,T.detectDuplicates=!!D,O(),T.sortDetached=o(function(e){return 1&e.compareDocumentPosition(L.createElement("fieldset"))}),o(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||i("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),T.attributes&&o(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||i("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),o(function(e){return null==e.getAttribute("disabled")})||i(te,function(e,t,n){var r;if(!n)return e[t]===!0?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(e);de.find=xe,de.expr=xe.selectors,de.expr[":"]=de.expr.pseudos,de.uniqueSort=de.unique=xe.uniqueSort,de.text=xe.getText,de.isXMLDoc=xe.isXML,de.contains=xe.contains,de.escapeSelector=xe.escape;var be=function(e,t,n){for(var r=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&de(e).is(n))break;r.push(e)}return r},we=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},Te=de.expr.match.needsContext,Ce=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,je=/^.[^:#\[\.,]*$/;de.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?de.find.matchesSelector(r,e)?[r]:[]:de.find.matches(e,de.grep(t,function(e){return 1===e.nodeType}))},de.fn.extend({find:function(e){var t,n,r=this.length,o=this;if("string"!=typeof e)return this.pushStack(de(e).filter(function(){for(t=0;t 1?de.uniqueSort(n):n},filter:function(e){return this.pushStack(o(this,e||[],!1))},not:function(e){return this.pushStack(o(this,e||[],!0))},is:function(e){return!!o(this,"string"==typeof e&&Te.test(e)?de(e):e||[],!1).length}});var ke,Ee=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Se=de.fn.init=function(e,t,n){var r,o;if(!e)return this;if(n=n||ke,"string"==typeof e){if(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:Ee.exec(e),!r||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof de?t[0]:t,de.merge(this,de.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:te,!0)),Ce.test(r[1])&&de.isPlainObject(t))for(r in t)de.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return o=te.getElementById(r[2]),o&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):de.isFunction(e)?void 0!==n.ready?n.ready(e):e(de):de.makeArray(e,this)};Se.prototype=de.fn,ke=de(te);var Ne=/^(?:parents|prev(?:Until|All))/,Ae={children:!0,contents:!0,next:!0,prev:!0};de.fn.extend({has:function(e){var t=de(e,this),n=t.length;return this.filter(function(){for(var e=0;e -1:1===n.nodeType&&de.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(i.length>1?de.uniqueSort(i):i)},index:function(e){return e?"string"==typeof e?se.call(de(e),this[0]):se.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(de.uniqueSort(de.merge(this.get(),de(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),de.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return be(e,"parentNode")},parentsUntil:function(e,t,n){return be(e,"parentNode",n)},next:function(e){return i(e,"nextSibling")},prev:function(e){return i(e,"previousSibling")},nextAll:function(e){return be(e,"nextSibling")},prevAll:function(e){return be(e,"previousSibling")},nextUntil:function(e,t,n){return be(e,"nextSibling",n)},prevUntil:function(e,t,n){return be(e,"previousSibling",n)},siblings:function(e){return we((e.parentNode||{}).firstChild,e)},children:function(e){return we(e.firstChild)},contents:function(e){return e.contentDocument||de.merge([],e.childNodes)}},function(e,t){de.fn[e]=function(n,r){var o=de.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(o=de.filter(r,o)),this.length>1&&(Ae[e]||de.uniqueSort(o),Ne.test(e)&&o.reverse()),this.pushStack(o)}});var qe=/[^\x20\t\r\n\f]+/g;de.Callbacks=function(e){e="string"==typeof e?s(e):de.extend({},e);var t,n,r,o,i=[],a=[],u=-1,c=function(){for(o=e.once,r=t=!0;a.length;u=-1)for(n=a.shift();++u -1;)i.splice(n,1),n<=u&&u--}),this},has:function(e){return e?de.inArray(e,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return o=a=[],i=n="",this},disabled:function(){return!i},lock:function(){return o=a=[],n||t||(i=n=""),this},locked:function(){return!!o},fireWith:function(e,n){return o||(n=n||[],n=[e,n.slice?n.slice():n],a.push(n),t||c()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},de.extend({Deferred:function(t){var n=[["notify","progress",de.Callbacks("memory"),de.Callbacks("memory"),2],["resolve","done",de.Callbacks("once memory"),de.Callbacks("once memory"),0,"resolved"],["reject","fail",de.Callbacks("once memory"),de.Callbacks("once memory"),1,"rejected"]],r="pending",o={state:function(){return r},always:function(){return i.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var e=arguments;return de.Deferred(function(t){de.each(n,function(n,r){var o=de.isFunction(e[r[4]])&&e[r[4]];i[r[1]](function(){var e=o&&o.apply(this,arguments);e&&de.isFunction(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,o?[e]:arguments)})}),e=null}).promise()},then:function(t,r,o){function i(t,n,r,o){return function(){var c=this,l=arguments,f=function(){var e,f;if(!(t =s&&(r!==u&&(c=void 0,l=[e]),n.rejectWith(c,l))}};t?p():(de.Deferred.getStackHook&&(p.stackTrace=de.Deferred.getStackHook()),e.setTimeout(p))}}var s=0;return de.Deferred(function(e){n[0][3].add(i(0,e,de.isFunction(o)?o:a,e.notifyWith)),n[1][3].add(i(0,e,de.isFunction(t)?t:a)),n[2][3].add(i(0,e,de.isFunction(r)?r:u))}).promise()},promise:function(e){return null!=e?de.extend(e,o):o}},i={};return de.each(n,function(e,t){var s=t[2],a=t[5];o[t[1]]=s.add,a&&s.add(function(){r=a},n[3-e][2].disable,n[0][2].lock),s.add(t[3].fire),i[t[0]]=function(){return i[t[0]+"With"](this===i?void 0:this,arguments),this},i[t[0]+"With"]=s.fireWith}),o.promise(i),t&&t.call(i,i),i},when:function(e){var t=arguments.length,n=t,r=Array(n),o=re.call(arguments),i=de.Deferred(),s=function(e){return function(n){r[e]=this,o[e]=arguments.length>1?re.call(arguments):n,--t||i.resolveWith(r,o)}};if(t<=1&&(c(e,i.done(s(n)).resolve,i.reject),"pending"===i.state()||de.isFunction(o[n]&&o[n].then)))return i.then();for(;n--;)c(o[n],s(n),i.reject);return i.promise()}});var De=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;de.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&De.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},de.readyException=function(t){e.setTimeout(function(){throw t})};var Oe=de.Deferred();de.fn.ready=function(e){return Oe.then(e).catch(function(e){de.readyException(e)}),this},de.extend({isReady:!1,readyWait:1,holdReady:function(e){e?de.readyWait++:de.ready(!0)},ready:function(e){(e===!0?--de.readyWait:de.isReady)||(de.isReady=!0,e!==!0&&--de.readyWait>0||Oe.resolveWith(te,[de]))}}),de.ready.then=Oe.then,"complete"===te.readyState||"loading"!==te.readyState&&!te.documentElement.doScroll?e.setTimeout(de.ready):(te.addEventListener("DOMContentLoaded",l),e.addEventListener("load",l));var Le=function(e,t,n,r,o,i,s){var a=0,u=e.length,c=null==n;if("object"===de.type(n)){o=!0;for(a in n)Le(e,t,a,n[a],!0,i,s)}else if(void 0!==r&&(o=!0,de.isFunction(r)||(s=!0),c&&(s?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(de(e),n)})),t))for(;a1,null,!0)},removeData:function(e){return this.each(function(){Re.remove(this,e)})}}),de.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Fe.get(e,t),n&&(!r||de.isArray(n)?r=Fe.access(e,t,de.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=de.queue(e,t),r=n.length,o=n.shift(),i=de._queueHooks(e,t),s=function(){de.dequeue(e,t)};"inprogress"===o&&(o=n.shift(),r--),o&&("fx"===t&&n.unshift("inprogress"),delete i.stop,o.call(e,s,i)),!r&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Fe.get(e,n)||Fe.access(e,n,{empty:de.Callbacks("once memory").add(function(){Fe.remove(e,[t+"queue",n])})})}}),de.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length\x20\t\r\n\f]+)/i,Ve=/^$|\/(?:java|ecma)script/i,Ge={option:[1,""],thead:[1," ","
"],col:[2,""],tr:[2,"
"," ","
"],td:[3,""],_default:[0,"",""]};Ge.optgroup=Ge.option,Ge.tbody=Ge.tfoot=Ge.colgroup=Ge.caption=Ge.thead,Ge.th=Ge.td;var Ye=/<|?\w+;/;!function(){var e=te.createDocumentFragment(),t=e.appendChild(te.createElement("div")),n=te.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),pe.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="",pe.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var Qe=te.documentElement,Je=/^key/,Ke=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ze=/^([^.]*)(?:\.(.+)|)/;de.event={global:{},add:function(e,t,n,r,o){var i,s,a,u,c,l,f,p,h,d,g,m=Fe.get(e);if(m)for(n.handler&&(i=n,n=i.handler,o=i.selector),o&&de.find.matchesSelector(Qe,o),n.guid||(n.guid=de.guid++),(u=m.events)||(u=m.events={}),(s=m.handle)||(s=m.handle=function(t){return"undefined"!=typeof de&&de.event.triggered!==t.type?de.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(qe)||[""],c=t.length;c--;)a=Ze.exec(t[c])||[],h=g=a[1],d=(a[2]||"").split(".").sort(),h&&(f=de.event.special[h]||{},h=(o?f.delegateType:f.bindType)||h,f=de.event.special[h]||{},l=de.extend({type:h,origType:g,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&de.expr.match.needsContext.test(o),namespace:d.join(".")},i),(p=u[h])||(p=u[h]=[],p.delegateCount=0,f.setup&&f.setup.call(e,r,d,s)!==!1||e.addEventListener&&e.addEventListener(h,s)),f.add&&(f.add.call(e,l),l.handler.guid||(l.handler.guid=n.guid)),o?p.splice(p.delegateCount++,0,l):p.push(l),de.event.global[h]=!0)},remove:function(e,t,n,r,o){var i,s,a,u,c,l,f,p,h,d,g,m=Fe.hasData(e)&&Fe.get(e);if(m&&(u=m.events)){for(t=(t||"").match(qe)||[""],c=t.length;c--;)if(a=Ze.exec(t[c])||[],h=g=a[1],d=(a[2]||"").split(".").sort(),h){for(f=de.event.special[h]||{},h=(r?f.delegateType:f.bindType)||h,p=u[h]||[],a=a[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=i=p.length;i--;)l=p[i],!o&&g!==l.origType||n&&n.guid!==l.guid||a&&!a.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(p.splice(i,1),l.selector&&p.delegateCount--,f.remove&&f.remove.call(e,l));s&&!p.length&&(f.teardown&&f.teardown.call(e,d,m.handle)!==!1||de.removeEvent(e,h,m.handle),delete u[h])}else for(h in u)de.event.remove(e,h+t[c],n,r,!0);de.isEmptyObject(u)&&Fe.remove(e,"handle events")}},dispatch:function(e){var t,n,r,o,i,s,a=de.event.fix(e),u=new Array(arguments.length),c=(Fe.get(this,"events")||{})[a.type]||[],l=de.event.special[a.type]||{};for(u[0]=a,t=1;t
"," =1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||c.disabled!==!0)){for(i=[],s={},n=0;n-1:de.find(o,this,null,[c]).length),s[o]&&i.push(r);i.length&&a.push({elem:c,handlers:i})}return c=this,u \x20\t\r\n\f]*)[^>]*)\/>/gi,tt=/ diff --git a/src/docs/en/SUMMARY.md b/src/docs/en/SUMMARY.md index 91912ce..a28b69e 100644 --- a/src/docs/en/SUMMARY.md +++ b/src/docs/en/SUMMARY.md @@ -4,7 +4,7 @@ # vue-goodshare -![npm version](https://badge.fury.io/js/vue-goodshare.svg) [![vue js site](https://img.shields.io/badge/Vue.js-2.4.x_or_newer-blue.svg?style=flat)](https://vuejs.org) [![license](https://img.shields.io/badge/license-MIT-red.svg?style=flat)](https://github.com/koddr/vue-goodshare/blob/master/LICENSE) +![npm version](https://badge.fury.io/js/vue-goodshare.svg) [![vue js site](https://img.shields.io/badge/Vue.js-2.5.x_or_newer-blue.svg?style=flat)](https://vuejs.org) [![license](https://img.shields.io/badge/license-MIT-red.svg?style=flat)](https://github.com/koddr/vue-goodshare/blob/master/LICENSE) > Vue.js component for social share. A simple way to share a link on the pages of your website in the most popular (and not so) social networks. Powered by [goodshare.js](https://github.com/koddr/goodshare.js) project. @@ -26,10 +26,11 @@ - [Social networks](supported-social-networks.md) - [Mobile messengers](supported-social-messengers.md) +- [Misc components](supported-misc-components.md) ### Your assistance will help make project even better! - + - [Donate with PayPal](https://www.paypal.me/koddr/9.99usd) - [Donate with Yandex.Money](https://money.yandex.ru/to/41001601525977/599) - + #### Thanks for supporting! diff --git a/src/docs/en/supported-misc-components.md b/src/docs/en/supported-misc-components.md new file mode 100644 index 0000000..41d62d8 --- /dev/null +++ b/src/docs/en/supported-misc-components.md @@ -0,0 +1,3 @@ +# Supported misc components + +- `email` Open default e-mail software on your OS with subject and body diff --git a/src/docs/en/using-component-bundle.md b/src/docs/en/using-component-bundle.md index 7028fb2..fe0d4d9 100644 --- a/src/docs/en/using-component-bundle.md +++ b/src/docs/en/using-component-bundle.md @@ -2,20 +2,20 @@ Init bundle after Vue.js in your main JavaScript file: -``` js +```js // ./src/js/script.js -import Vue from 'vue' +import Vue from "vue"; // Import vue-goodshare bundle -import VueGoodshare from 'vue-goodshare' +import VueGoodshare from "vue-goodshare"; const app = new Vue({ - el: '#app', + el: "#app", components: { VueGoodshare } -}) +}); ``` ### The most popular social networks around the World @@ -24,7 +24,7 @@ const app = new Vue({ Add component to HTML template (without attributes): -``` html +```html @@ -44,7 +44,7 @@ And result is: Add component to HTML template (with `bundle="ru"` attribute): -``` html +```html@@ -66,7 +66,7 @@ And result is: Add component to HTML template (with `bundle="mobile"` attribute): -``` html +```htmldiff --git a/src/docs/en/using-component-single.md b/src/docs/en/using-component-single.md index 4635179..d41cd5c 100644 --- a/src/docs/en/using-component-single.md +++ b/src/docs/en/using-component-single.md @@ -2,38 +2,38 @@ Includes **only needed** social networks and/or mobile messengers. -> See lists of supported [Social networks](supported-social-networks.md) and [Mobile messengers](supported-social-messengers.md). +> See lists of supported [Social networks](supported-social-networks.md), [Mobile messengers](supported-social-messengers.md) or [Misc components](supported-misc-components.md). -``` js +```js // ./src/js/script.js -import Vue from 'vue' +import Vue from "vue"; // Import vue-goodshare single elements -import VueGoodshareFacebook from 'vue-goodshare/src/providers/Facebook.vue' +import VueGoodshareFacebook from "vue-goodshare/src/providers/Facebook.vue"; const app = new Vue({ - el: '#app', + el: "#app", components: { VueGoodshareFacebook } -}) +}); ``` Add components to HTML template (with attributes): -``` html +```html-``` diff --git a/src/fonts/config.json b/src/fonts/config.json index 51d9322..958dff6 100755 --- a/src/fonts/config.json +++ b/src/fonts/config.json @@ -139,12 +139,11 @@ "src": "custom_icons", "selected": true, "svg": { - "path": "M265 215.2C215.6 264.6 252.2 348.3 324.1 348.3S432.5 264.6 383.2 215.2C370.4 202.4 344.4 191.8 324.1 191.8 303.8 191.4 277.8 201.9 265 215.2ZM625.7 209C583.3 251.3 595.2 324.5 648.1 344.4 729.3 374.8 797.6 276 736.3 214.7 708.1 186.5 651.2 184.3 625.7 209ZM156.5 517.6C123.5 559.1 41 708.6 41 729.7 41 742.5 46.7 757.9 55.1 766.3 81.1 792.3 110.7 780.4 141.1 733.2L170.6 686.1 223.5 726.2C298.9 784 381.4 808.6 500.4 808.6S701.9 784 777.3 726.2L830.2 686.1 859.8 733.2C890.2 780.4 919.8 792.3 945.8 766.3 969.1 742.9 962.1 712.1 911.8 623.9 835.1 491.6 817.5 477.5 777.3 516.3 764.6 529.1 761 546.7 765.4 567 777.3 622.6 692.2 683.4 568.8 709.4 420.2 739 216.5 651.7 235.4 567 240.3 547.2 236.8 529.5 223.5 516.3 198.9 491.6 179 492.9 156.5 517.6Z", + "path": + "M265 215.2C215.6 264.6 252.2 348.3 324.1 348.3S432.5 264.6 383.2 215.2C370.4 202.4 344.4 191.8 324.1 191.8 303.8 191.4 277.8 201.9 265 215.2ZM625.7 209C583.3 251.3 595.2 324.5 648.1 344.4 729.3 374.8 797.6 276 736.3 214.7 708.1 186.5 651.2 184.3 625.7 209ZM156.5 517.6C123.5 559.1 41 708.6 41 729.7 41 742.5 46.7 757.9 55.1 766.3 81.1 792.3 110.7 780.4 141.1 733.2L170.6 686.1 223.5 726.2C298.9 784 381.4 808.6 500.4 808.6S701.9 784 777.3 726.2L830.2 686.1 859.8 733.2C890.2 780.4 919.8 792.3 945.8 766.3 969.1 742.9 962.1 712.1 911.8 623.9 835.1 491.6 817.5 477.5 777.3 516.3 764.6 529.1 761 546.7 765.4 567 777.3 622.6 692.2 683.4 568.8 709.4 420.2 739 216.5 651.7 235.4 567 240.3 547.2 236.8 529.5 223.5 516.3 198.9 491.6 179 492.9 156.5 517.6Z", "width": 1000 }, - "search": [ - "moimir" - ] + "search": ["moimir"] }, { "uid": "531359183f9fedb14b23666f1308591f", @@ -165,12 +164,11 @@ "src": "custom_icons", "selected": true, "svg": { - "path": "M214.7 527.3C308.6 507.1 295.9 394.6 293.2 369.9 288.4 332 243.8 265.9 183.4 271.2 107.6 278.2 96.6 388 96.6 388 86 438.7 121.3 547.6 214.7 527.3M389.3 338.6C441.4 338.6 483.2 278.7 483.2 205 483.2 131 441.4 71.4 389.3 71.4 337.7 71.4 295.4 131.4 295.4 205 295.4 279.1 337.7 338.6 389.3 338.6M613.3 347.4C683 356.7 727.1 282.6 736.3 226.2 745.6 170.2 700.6 104.9 651.7 93.9 602.3 82.5 541 161.4 535.3 213 528.2 276 543.7 338.6 613.3 347.4M888 441.8C888 414.9 866 334.2 783.1 334.2 700.2 334.2 689.2 410.5 689.2 464.7 689.2 516.3 693.6 588.2 796.3 586 899.5 583.3 888 468.7 888 441.8M783.1 677.7C783.1 677.7 675.5 594.8 612.9 504.9 527.8 372.6 407 426.4 366.8 493.8 326.7 561.3 264.1 603.6 255.3 615.1 246.5 626.1 125.7 691.4 152.6 810.4 179.5 929.5 273.4 927.2 273.4 927.2S342.6 933.9 423.3 916.2C504 898.1 573.2 920.6 573.2 920.6S761 983.7 812.6 862.4C863.8 740.7 783.1 677.7 783.1 677.7", + "path": + "M214.7 527.3C308.6 507.1 295.9 394.6 293.2 369.9 288.4 332 243.8 265.9 183.4 271.2 107.6 278.2 96.6 388 96.6 388 86 438.7 121.3 547.6 214.7 527.3M389.3 338.6C441.4 338.6 483.2 278.7 483.2 205 483.2 131 441.4 71.4 389.3 71.4 337.7 71.4 295.4 131.4 295.4 205 295.4 279.1 337.7 338.6 389.3 338.6M613.3 347.4C683 356.7 727.1 282.6 736.3 226.2 745.6 170.2 700.6 104.9 651.7 93.9 602.3 82.5 541 161.4 535.3 213 528.2 276 543.7 338.6 613.3 347.4M888 441.8C888 414.9 866 334.2 783.1 334.2 700.2 334.2 689.2 410.5 689.2 464.7 689.2 516.3 693.6 588.2 796.3 586 899.5 583.3 888 468.7 888 441.8M783.1 677.7C783.1 677.7 675.5 594.8 612.9 504.9 527.8 372.6 407 426.4 366.8 493.8 326.7 561.3 264.1 603.6 255.3 615.1 246.5 626.1 125.7 691.4 152.6 810.4 179.5 929.5 273.4 927.2 273.4 927.2S342.6 933.9 423.3 916.2C504 898.1 573.2 920.6 573.2 920.6S761 983.7 812.6 862.4C863.8 740.7 783.1 677.7 783.1 677.7", "width": 1000 }, - "search": [ - "baidu" - ] + "search": ["baidu"] }, { "uid": "4d54878a5a66cf822ed6383a06f6a3a2", @@ -179,12 +177,11 @@ "src": "custom_icons", "selected": true, "svg": { - "path": "M531.7 63.8C790.3 63.8 1000 273.5 1000 532.2S790.3 1000.6 531.7 1000.6C273 1000.6 63.3 790.9 63.3 532.2 63.3 465.8 78.1 403.6 103 346.5L103 346.4 0 243.5C47 134.5 134 47 242.6-0.6H242.9L345.7 102.2C402.7 77.5 465.6 63.8 531.7 63.8M753.8 612.5C690.7 640.1 640.2 691 612.9 754.3L790.7 791.1 753.8 612.5ZM483.9 726.7C530.9 617.7 618 530.2 726.5 482.6H726.6L345.8 102.4 345.6 102.3C236.9 150 149.9 237.4 103 346.4L483.9 726.7Z", + "path": + "M531.7 63.8C790.3 63.8 1000 273.5 1000 532.2S790.3 1000.6 531.7 1000.6C273 1000.6 63.3 790.9 63.3 532.2 63.3 465.8 78.1 403.6 103 346.5L103 346.4 0 243.5C47 134.5 134 47 242.6-0.6H242.9L345.7 102.2C402.7 77.5 465.6 63.8 531.7 63.8M753.8 612.5C690.7 640.1 640.2 691 612.9 754.3L790.7 791.1 753.8 612.5ZM483.9 726.7C530.9 617.7 618 530.2 726.5 482.6H726.6L345.8 102.4 345.6 102.3C236.9 150 149.9 237.4 103 346.4L483.9 726.7Z", "width": 1000 }, - "search": [ - "livejournal" - ] + "search": ["livejournal"] }, { "uid": "2c6404a34a80e5217f3e625270be6644", @@ -193,12 +190,11 @@ "src": "custom_icons", "selected": true, "svg": { - "path": "M955.5 577.1C926.3 815.7 746.5 838.7 714.7 849.1 701 853.5 580 883.7 422.7 870.6 405.3 890.8 382.3 917.2 365.6 935.1 335.2 967.9 316.5 998.3 284.6 988.4 258.3 980.3 259.8 940.3 259.8 940.3L259.9 841.5C259.8 841.5 259.8 841.5 259.7 841.5 29.6 776.7 33 538.1 35.6 410.7 38.2 283.4 62.9 180.7 133.1 110.5 259.2-5.2 517.8 10.4 517.8 10.4 737.2 11.4 835.6 82.9 860 105.3 940.9 175.5 985.7 331.1 955.5 577.1ZM808.8 155C788.2 136.3 699.3 80.5 513.8 79.6 513.8 79.6 294.1 65.2 187.4 161.8 128.1 220.4 108.1 307.6 105.9 413.9 103.7 520.3 92.3 723.4 286.9 777.5 287.3 777.6 286.6 777.4 286.9 777.5 286.9 777.5 286.2 928.3 286.1 941.6 286 950.8 287.5 957.2 292.9 958.5 296.7 959.4 302.4 957.5 307.2 952.6 338.3 921.3 437.9 801.2 437.9 801.2 571.5 809.9 677.9 783.5 689.3 779.8 716.2 771.2 861.9 758.6 886.6 559.3 912.1 353.9 877.3 213.6 808.8 155ZM593.4 419.9C591 371.2 566.3 345.8 519.3 343.2M671.7 426.5C672.8 381.2 659.4 343.3 631.5 312.9 603.6 282.4 564.8 265.6 515.2 262M778.1 419.6C777.5 341 754 279.1 707.6 233.8 661.2 188.6 603.5 165.7 534.5 165.2M374.9 409.8C374.9 409.8 373.4 392.4 385 383L408.1 364.7C419.5 355.9 426.8 334.5 415.1 313.7 408.6 302 395.7 281.2 386.1 268.2 375.9 254.3 352.3 226 352.2 225.9 340.8 212.4 324.1 209.2 306.4 218.4 306.3 218.4 306.1 218.5 306 218.5 289.3 228 273.7 240.6 259.1 256.6 259 256.8 259 256.8 258.9 256.9 247.9 270.1 241.7 283 240.2 295.6 239.9 297.1 239.7 299 239.8 301.3 239.8 306.8 240.6 312.3 242.3 317.7L242.9 318.1C248.5 337.7 262.2 370.2 292.2 424.5 311.6 459.7 331.4 489.1 351.2 513.8 361.5 526.9 373.2 540.4 386.8 554 387.3 554.5 387.7 554.9 388.2 555.4 388.6 555.8 389.1 556.3 389.5 556.7 389.5 556.7 389.5 556.7 389.5 556.7L389.5 556.7C390 557.2 390.4 557.6 390.9 558.1 391.3 558.5 391.8 559 392.2 559.4 405.9 573 419.3 584.7 432.4 595.1 457.2 614.8 486.5 634.6 521.8 654.1 576 684 608.6 697.8 628.1 703.3L628.5 703.9C633.9 705.7 639.4 706.5 645 706.4 647.2 706.5 649.1 706.4 650.6 706.1 663.3 704.5 676.2 698.3 689.3 687.4 689.5 687.3 689.5 687.2 689.6 687.1 705.6 672.5 718.3 656.9 727.7 640.2 727.7 640.1 727.8 639.9 727.8 639.8 737 622.2 733.9 605.4 720.4 594 720.3 594 691.9 570.3 678.1 560.2 665 550.6 644.2 537.7 632.6 531.1 611.7 519.5 590.4 526.8 581.6 538.2L563.3 561.2C553.9 572.8 536.4 571.3 536.4 571.3 409 538.8 374.9 409.8 374.9 409.8Z", + "path": + "M955.5 577.1C926.3 815.7 746.5 838.7 714.7 849.1 701 853.5 580 883.7 422.7 870.6 405.3 890.8 382.3 917.2 365.6 935.1 335.2 967.9 316.5 998.3 284.6 988.4 258.3 980.3 259.8 940.3 259.8 940.3L259.9 841.5C259.8 841.5 259.8 841.5 259.7 841.5 29.6 776.7 33 538.1 35.6 410.7 38.2 283.4 62.9 180.7 133.1 110.5 259.2-5.2 517.8 10.4 517.8 10.4 737.2 11.4 835.6 82.9 860 105.3 940.9 175.5 985.7 331.1 955.5 577.1ZM808.8 155C788.2 136.3 699.3 80.5 513.8 79.6 513.8 79.6 294.1 65.2 187.4 161.8 128.1 220.4 108.1 307.6 105.9 413.9 103.7 520.3 92.3 723.4 286.9 777.5 287.3 777.6 286.6 777.4 286.9 777.5 286.9 777.5 286.2 928.3 286.1 941.6 286 950.8 287.5 957.2 292.9 958.5 296.7 959.4 302.4 957.5 307.2 952.6 338.3 921.3 437.9 801.2 437.9 801.2 571.5 809.9 677.9 783.5 689.3 779.8 716.2 771.2 861.9 758.6 886.6 559.3 912.1 353.9 877.3 213.6 808.8 155ZM593.4 419.9C591 371.2 566.3 345.8 519.3 343.2M671.7 426.5C672.8 381.2 659.4 343.3 631.5 312.9 603.6 282.4 564.8 265.6 515.2 262M778.1 419.6C777.5 341 754 279.1 707.6 233.8 661.2 188.6 603.5 165.7 534.5 165.2M374.9 409.8C374.9 409.8 373.4 392.4 385 383L408.1 364.7C419.5 355.9 426.8 334.5 415.1 313.7 408.6 302 395.7 281.2 386.1 268.2 375.9 254.3 352.3 226 352.2 225.9 340.8 212.4 324.1 209.2 306.4 218.4 306.3 218.4 306.1 218.5 306 218.5 289.3 228 273.7 240.6 259.1 256.6 259 256.8 259 256.8 258.9 256.9 247.9 270.1 241.7 283 240.2 295.6 239.9 297.1 239.7 299 239.8 301.3 239.8 306.8 240.6 312.3 242.3 317.7L242.9 318.1C248.5 337.7 262.2 370.2 292.2 424.5 311.6 459.7 331.4 489.1 351.2 513.8 361.5 526.9 373.2 540.4 386.8 554 387.3 554.5 387.7 554.9 388.2 555.4 388.6 555.8 389.1 556.3 389.5 556.7 389.5 556.7 389.5 556.7 389.5 556.7L389.5 556.7C390 557.2 390.4 557.6 390.9 558.1 391.3 558.5 391.8 559 392.2 559.4 405.9 573 419.3 584.7 432.4 595.1 457.2 614.8 486.5 634.6 521.8 654.1 576 684 608.6 697.8 628.1 703.3L628.5 703.9C633.9 705.7 639.4 706.5 645 706.4 647.2 706.5 649.1 706.4 650.6 706.1 663.3 704.5 676.2 698.3 689.3 687.4 689.5 687.3 689.5 687.2 689.6 687.1 705.6 672.5 718.3 656.9 727.7 640.2 727.7 640.1 727.8 639.9 727.8 639.8 737 622.2 733.9 605.4 720.4 594 720.3 594 691.9 570.3 678.1 560.2 665 550.6 644.2 537.7 632.6 531.1 611.7 519.5 590.4 526.8 581.6 538.2L563.3 561.2C553.9 572.8 536.4 571.3 536.4 571.3 409 538.8 374.9 409.8 374.9 409.8Z", "width": 1000 }, - "search": [ - "viber" - ] + "search": ["viber"] }, { "uid": "4e1cc4185bff69b32e174f550d51ba6e", @@ -207,12 +203,11 @@ "src": "custom_icons", "selected": true, "svg": { - "path": "M978.5 432.4C978.5 218.3 763.8 44.1 500 44.1 236.2 44.1 21.6 218.3 21.6 432.4 21.6 624.3 191.8 785.1 421.7 815.5 437.3 818.8 458.5 825.7 463.8 839 468.7 851.1 467 870.1 465.4 882.3 465.4 882.3 459.8 916.1 458.6 923.3 456.5 935.4 448.9 970.6 500 949.1 551.1 927.5 775.5 786.8 875.9 671.3H875.9C945.2 595.2 978.5 518.1 978.5 432.4ZM340 546.7C340 551.8 335.9 556 330.7 556H196.6 196.6C194.1 556 191.9 555 190.2 553.4 190.1 553.4 190.1 553.3 190.1 553.3 190 553.2 190 553.2 189.9 553.1 188.3 551.5 187.3 549.2 187.3 546.7V546.7 338.3C187.3 333.1 191.5 328.9 196.6 328.9H230.2C235.3 328.9 239.5 333.1 239.5 338.3V503.8H330.7C335.9 503.8 340 508 340 513.1V546.7ZM420.9 546.7C420.9 551.9 416.8 556 411.6 556H378C372.9 556 368.7 551.9 368.7 546.7V338.2C368.7 333.1 372.9 328.9 378 328.9H411.6C416.8 328.9 420.9 333.1 420.9 338.2V546.7ZM651.9 546.7C651.9 551.9 647.8 556 642.6 556H609C608.2 556 607.4 555.9 606.7 555.7 606.6 555.7 606.6 555.7 606.5 555.7 606.3 555.6 606.1 555.5 605.9 555.5 605.8 555.4 605.7 555.4 605.6 555.4 605.5 555.3 605.3 555.2 605.2 555.2 605 555.1 604.9 555 604.7 554.9 604.6 554.9 604.5 554.9 604.4 554.8 604.3 554.7 604.1 554.6 603.9 554.5 603.8 554.4 603.8 554.4 603.8 554.4 602.9 553.8 602.1 553 601.4 552.1L505.8 422.9V546.7C505.8 551.8 501.6 556 496.4 556H462.9C457.7 556 453.6 551.8 453.6 546.7V338.2C453.6 333.1 457.7 328.9 462.9 328.9H496.4C496.5 328.9 496.6 329 496.8 329 496.9 329 497.1 329 497.2 329 497.4 329 497.6 329 497.7 329 497.9 329.1 498 329.1 498.1 329.1 498.3 329.1 498.5 329.2 498.7 329.2 498.8 329.2 498.9 329.3 499 329.3 499.2 329.3 499.4 329.4 499.5 329.5 499.6 329.5 499.7 329.6 499.8 329.6 500 329.7 500.2 329.7 500.4 329.8 500.5 329.9 500.6 329.9 500.7 330 500.8 330 501 330.1 501.2 330.2 501.3 330.3 501.4 330.3 501.4 330.4 501.6 330.5 501.8 330.6 501.9 330.7 502 330.8 502.1 330.9 502.2 330.9 502.3 331.1 502.5 331.2 502.7 331.3 502.7 331.4 502.8 331.4 502.8 331.5 503 331.7 503.2 331.9 503.4 332.1L503.5 332.1C503.7 332.4 504 332.7 504.2 333.1L599.7 462.1V338.2C599.7 333.1 603.9 328.9 609 328.9H642.6C647.8 328.9 651.9 333.1 651.9 338.2V546.7ZM837.2 371.8C837.2 377 833.1 381.1 827.9 381.1H736.8V416.4H827.9C833.1 416.4 837.2 420.5 837.2 425.7V459.2C837.2 464.4 833.1 468.6 827.9 468.6H736.8V503.8H827.9C833.1 503.8 837.2 508 837.2 513.1V546.7C837.2 551.8 833.1 556 827.9 556H693.9 693.9C691.4 556 689.1 555 687.4 553.4 687.4 553.4 687.3 553.3 687.3 553.3 687.2 553.2 687.2 553.2 687.2 553.1 685.6 551.5 684.6 549.2 684.6 546.7V546.7 338.3 338.3C684.6 335.8 685.5 333.5 687.1 331.8 687.2 331.8 687.2 331.7 687.3 331.7 687.3 331.6 687.4 331.6 687.4 331.6 689.1 329.9 691.3 328.9 693.9 328.9H693.9 827.9C833.1 328.9 837.2 333.1 837.2 338.3V371.8Z", + "path": + "M978.5 432.4C978.5 218.3 763.8 44.1 500 44.1 236.2 44.1 21.6 218.3 21.6 432.4 21.6 624.3 191.8 785.1 421.7 815.5 437.3 818.8 458.5 825.7 463.8 839 468.7 851.1 467 870.1 465.4 882.3 465.4 882.3 459.8 916.1 458.6 923.3 456.5 935.4 448.9 970.6 500 949.1 551.1 927.5 775.5 786.8 875.9 671.3H875.9C945.2 595.2 978.5 518.1 978.5 432.4ZM340 546.7C340 551.8 335.9 556 330.7 556H196.6 196.6C194.1 556 191.9 555 190.2 553.4 190.1 553.4 190.1 553.3 190.1 553.3 190 553.2 190 553.2 189.9 553.1 188.3 551.5 187.3 549.2 187.3 546.7V546.7 338.3C187.3 333.1 191.5 328.9 196.6 328.9H230.2C235.3 328.9 239.5 333.1 239.5 338.3V503.8H330.7C335.9 503.8 340 508 340 513.1V546.7ZM420.9 546.7C420.9 551.9 416.8 556 411.6 556H378C372.9 556 368.7 551.9 368.7 546.7V338.2C368.7 333.1 372.9 328.9 378 328.9H411.6C416.8 328.9 420.9 333.1 420.9 338.2V546.7ZM651.9 546.7C651.9 551.9 647.8 556 642.6 556H609C608.2 556 607.4 555.9 606.7 555.7 606.6 555.7 606.6 555.7 606.5 555.7 606.3 555.6 606.1 555.5 605.9 555.5 605.8 555.4 605.7 555.4 605.6 555.4 605.5 555.3 605.3 555.2 605.2 555.2 605 555.1 604.9 555 604.7 554.9 604.6 554.9 604.5 554.9 604.4 554.8 604.3 554.7 604.1 554.6 603.9 554.5 603.8 554.4 603.8 554.4 603.8 554.4 602.9 553.8 602.1 553 601.4 552.1L505.8 422.9V546.7C505.8 551.8 501.6 556 496.4 556H462.9C457.7 556 453.6 551.8 453.6 546.7V338.2C453.6 333.1 457.7 328.9 462.9 328.9H496.4C496.5 328.9 496.6 329 496.8 329 496.9 329 497.1 329 497.2 329 497.4 329 497.6 329 497.7 329 497.9 329.1 498 329.1 498.1 329.1 498.3 329.1 498.5 329.2 498.7 329.2 498.8 329.2 498.9 329.3 499 329.3 499.2 329.3 499.4 329.4 499.5 329.5 499.6 329.5 499.7 329.6 499.8 329.6 500 329.7 500.2 329.7 500.4 329.8 500.5 329.9 500.6 329.9 500.7 330 500.8 330 501 330.1 501.2 330.2 501.3 330.3 501.4 330.3 501.4 330.4 501.6 330.5 501.8 330.6 501.9 330.7 502 330.8 502.1 330.9 502.2 330.9 502.3 331.1 502.5 331.2 502.7 331.3 502.7 331.4 502.8 331.4 502.8 331.5 503 331.7 503.2 331.9 503.4 332.1L503.5 332.1C503.7 332.4 504 332.7 504.2 333.1L599.7 462.1V338.2C599.7 333.1 603.9 328.9 609 328.9H642.6C647.8 328.9 651.9 333.1 651.9 338.2V546.7ZM837.2 371.8C837.2 377 833.1 381.1 827.9 381.1H736.8V416.4H827.9C833.1 416.4 837.2 420.5 837.2 425.7V459.2C837.2 464.4 833.1 468.6 827.9 468.6H736.8V503.8H827.9C833.1 503.8 837.2 508 837.2 513.1V546.7C837.2 551.8 833.1 556 827.9 556H693.9 693.9C691.4 556 689.1 555 687.4 553.4 687.4 553.4 687.3 553.3 687.3 553.3 687.2 553.2 687.2 553.2 687.2 553.1 685.6 551.5 684.6 549.2 684.6 546.7V546.7 338.3 338.3C684.6 335.8 685.5 333.5 687.1 331.8 687.2 331.8 687.2 331.7 687.3 331.7 687.3 331.6 687.4 331.6 687.4 331.6 689.1 329.9 691.3 328.9 693.9 328.9H693.9 827.9C833.1 328.9 837.2 333.1 837.2 338.3V371.8Z", "width": 1000 }, - "search": [ - "line" - ] + "search": ["line"] }, { "uid": "53e4dcfebfa750ed80f668346930c97a", @@ -221,12 +216,11 @@ "src": "custom_icons", "selected": true, "svg": { - "path": "M264.4 100.1C209.1 100.1 155.3 100.1 100 100.1 100 367.9 100 634.2 100 899.8 262.5 899.8 423.5 899.8 583.7 899.8 583.7 847.2 583.7 796.2 583.7 742.9 476.9 742.9 371.4 742.9 264.4 742.9 264.4 527.3 264.4 314.2 264.4 100.1ZM744.5 420.6C744.5 581.5 744.5 740.9 744.5 899.9 797.4 899.9 848.8 899.9 900 899.9 900 739.2 900 580.3 900 420.6 847.6 420.6 796.2 420.6 744.5 420.6L744.5 420.6ZM899.8 100.2C847.7 100.2 796.8 100.2 744.6 100.2 744.6 153.1 744.6 204.5 744.6 255.3 797.5 255.3 848.8 255.3 899.8 255.3 899.8 202.8 899.8 152 899.8 100.2Z", + "path": + "M264.4 100.1C209.1 100.1 155.3 100.1 100 100.1 100 367.9 100 634.2 100 899.8 262.5 899.8 423.5 899.8 583.7 899.8 583.7 847.2 583.7 796.2 583.7 742.9 476.9 742.9 371.4 742.9 264.4 742.9 264.4 527.3 264.4 314.2 264.4 100.1ZM744.5 420.6C744.5 581.5 744.5 740.9 744.5 899.9 797.4 899.9 848.8 899.9 900 899.9 900 739.2 900 580.3 900 420.6 847.6 420.6 796.2 420.6 744.5 420.6L744.5 420.6ZM899.8 100.2C847.7 100.2 796.8 100.2 744.6 100.2 744.6 153.1 744.6 204.5 744.6 255.3 797.5 255.3 848.8 255.3 899.8 255.3 899.8 202.8 899.8 152 899.8 100.2Z", "width": 1000 }, - "search": [ - "liveinternet" - ] + "search": ["liveinternet"] }, { "uid": "35636ab76ae0afdfc7297ae554564a2d", @@ -235,12 +229,17 @@ "src": "custom_icons", "selected": true, "svg": { - "path": "M645.5 338.7L785.4 182.8H846.6L1000.2 253.3 830.5 304.6 814.8 426.5 602.4 640.4 485.3 639.3 444.1 753.3 442.6 910.4 290.9 867.3 469.6 548 0.2 283.9 364.2 332.1 177.7 89.9 645.5 338.7Z", + "path": + "M645.5 338.7L785.4 182.8H846.6L1000.2 253.3 830.5 304.6 814.8 426.5 602.4 640.4 485.3 639.3 444.1 753.3 442.6 910.4 290.9 867.3 469.6 548 0.2 283.9 364.2 332.1 177.7 89.9 645.5 338.7Z", "width": 1000 }, - "search": [ - "surfingbird" - ] + "search": ["surfingbird"] + }, + { + "uid": "a17986e457f3d85f26c9c240dfd6a4ba", + "css": "email", + "code": 59407, + "src": "mfglabs" }, { "uid": "12c9a4544882b310013afa9d8290535a", @@ -249,12 +248,11 @@ "src": "custom_icons", "selected": false, "svg": { - "path": "M645.6 338.7L785.6 182.7H846.7L1000.4 253.2 830.7 304.6 815 426.5 602.5 640.5 485.3 639.4 444.1 753.4 442.6 910.6 290.9 867.5 469.6 548 0 283.8 364.2 332 177.6 89.8 645.6 338.7Z", + "path": + "M645.6 338.7L785.6 182.7H846.7L1000.4 253.2 830.7 304.6 815 426.5 602.5 640.5 485.3 639.4 444.1 753.4 442.6 910.6 290.9 867.5 469.6 548 0 283.8 364.2 332 177.6 89.8 645.6 338.7Z", "width": 1000 }, - "search": [ - "surfingbird" - ] + "search": ["surfingbird"] } ] -} \ No newline at end of file +} diff --git a/src/fonts/fontello.eot b/src/fonts/fontello.eot index f649788..fb48e93 100755 Binary files a/src/fonts/fontello.eot and b/src/fonts/fontello.eot differ diff --git a/src/fonts/fontello.svg b/src/fonts/fontello.svg index bc43c9f..6deeb1a 100755 --- a/src/fonts/fontello.svg +++ b/src/fonts/fontello.svg @@ -1,7 +1,7 @@- +