docs(readme): addng more readiness for the docs #37
Annotations
10 errors and 10 warnings
lint:
docs/assets/main.js#L1
Replace `"use·strict"` with `'use·strict'`
|
lint:
docs/assets/main.js#L2
Replace `"use·strict";(()=>{var·Pe=Object.create;var·ne=Object.defineProperty;var·Ie=Object.getOwnPropertyDescriptor;var·Oe=Object.getOwnPropertyNames;var·_e=Object.getPrototypeOf,Re=Object.prototype.hasOwnProperty;var·Me=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var·Fe=(t,e,n,r)=>{if(e&&typeof·e=="object"||typeof·e=="function")for(let·i·of·Oe(e))!Re.call(t,i)&&i!==n&&ne(t,i,{get:()=>e[i],enumerable:!(r=Ie(e,i))||r.enumerable});return·t};var·De=(t,e,n)=>(n=t!=null?Pe(_e(t)):{},Fe(e||!t||!t.__esModule?ne(n,"default",{value:t,enumerable:!0}):n,t));var·ae=Me((se,oe)=>{(function(){var·t=function(e){var·n=new·t.Builder;return·n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),n.searchPipeline.add(t.stemmer),e.call(n,n),n.build()};t.version="2.3.9";t.utils={},t.utils.warn=function(e){return·function(n){e.console&&console.warn&&console.warn(n)}}(this),t.utils.asString=function(e){return·e==null?"":e.toString()},t.utils.clone=function(e){if(e==null)return·e;for(var·n=Object.create(null),r=Object.keys(e),i=0;i<r.length;i++){var·s=r[i],o=e[s];if(Array.isArray(o)){n[s]=o.slice();continue}if(typeof·o=="string"||typeof·o=="number"||typeof·o=="boolean"){n[s]=o;continue}throw·new·TypeError("clone·is·not·deep·and·does·not·support·nested·objects")}return·n},t.FieldRef=function(e,n,r){this.docRef=e,this.fieldName=n,this._stringValue=r},t.FieldRef.joiner="/",t.FieldRef.fromString=function(e){var·n=e.indexOf(t.FieldRef.joiner);if(n===-1)throw"malformed·field·ref·string";var·r=e.slice(0,n),i=e.slice(n+1);return·new·t.FieldRef(i,r,e)},t.FieldRef.prototype.toString=function(){return·this._stringValue==null&&(this._stringValue=this.fieldName+t.FieldRef.joiner+this.docRef),this._stringValue};t.Set=function(e){if(this.elements=Object.create(null),e){this.length=e.length;for(var·n=0;n<this.length;n++)this.elements[e[n]]=!0}else·this.length=0},t.Set.complete={intersect:function(e){return·e},union:function(){return·this},contains:function(){return!0}},t.Set.empty={intersect:function(){return·this},union:function(e){return·e},contains:function(){return!1}},t.Set.prototype.contains=function(e){return!!this.elements[e]},t.Set.prototype.intersect=function(e){var·n,r,i,s=[];if(e===t.Set.complete)return·this;if(e===t.Set.empty)return·e;this.length<e.length?(n=this,r=e):(n=e,r=this),i=Object.keys(n.elements);for(var·o=0;o<i.length;o++){var·a=i[o];a·in·r.elements&&s.push(a)}return·new·t.Set(s)},t.Set.prototype.union=function(e){return·e===t.Set.complete?t.Set.complete:e===t.Set.empty?this:new·t.Set(Object.keys(this.elements).concat(Object.keys(e.elements)))},t.idf=function(e,n){var·r=0;for(var·i·in·e)i!="_index"&&(r+=Object.keys(e[i]).length);var·s=(n-r+.5)/(r+.5);return·Math.log(1+Math.abs(s))},t.Token=function(e,n){this.str=e||"",this.metadata=n||{}},t.Token.prototype.toString=function(){return·this.str},t.Token.prototype.update=function(e){return·this.str=e(this.str,this.metadata),this},t.Token.prototype.clone=function(e){return·e=e||function(n){return·n},new·t.Token(e(this.str,this.metadata),this.metadata)};t.tokenizer=function(e,n){if(e==null||e==null)return[];if(Array.isArray(e))return·e.map(function(v){return·new·t.Token(t.utils.asString(v).toLowerCase(),t.utils.clone(n))});for(var·r=e.toString().toLowerCase(),i=r.length,s=[],o=0,a=0;o<=i;o++){var·l=r.charAt(o),u=o-a;if(l.match(t.tokenizer.separator)||o==i){if(u>0){var·d=t.utils.clone(n)||{};d.position=[a,u],d.index=s.length,s.push(new·t.Token(r.slice(a,o),d))}a=o+1}}return·s},t.tokenizer.separator=/[\s\-]+/;t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions=Object.create(null),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(` with `'use·strict';⏎(()·=>·{⏎··var·Pe·=·Object.create;⏎··var·ne·=·Object.defineProperty;⏎··var·Ie·=·Object.getOwnPropertyDescriptor;⏎··var·Oe·=·Object.getOwnPropertyNames;⏎··var·_e·=·Object.g
|
lint:
docs/assets/main.js#L3
Replace `e)},t.Pipeline.load=function(e){var·n=new·t.Pipeline;return·e.forEach(function(r){var·i=t.Pipeline.registeredFunctions[r];if(i)n.add(i);else·throw·new·Error("Cannot·load·unregistered·function:·"+r)}),n},t.Pipeline.prototype.add=function(){var·e=Array.prototype.slice.call(arguments);e.forEach(function(n){t.Pipeline.warnIfFunctionNotRegistered(n),this._stack.push(n)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var·r=this._stack.indexOf(e);if(r==-1)throw·new·Error("Cannot·find·existingFn");r=r+1,this._stack.splice(r,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var·r=this._stack.indexOf(e);if(r==-1)throw·new·Error("Cannot·find·existingFn");this._stack.splice(r,0,n)},t.Pipeline.prototype.remove=function(e){var·n=this._stack.indexOf(e);n!=-1&&this._stack.splice(n,1)},t.Pipeline.prototype.run=function(e){for(var·n=this._stack.length,r=0;r<n;r++){for(var·i=this._stack[r],s=[],o=0;o<e.length;o++){var·a=i(e[o],o,e);if(!(a==null||a===""))if(Array.isArray(a))for(var·l=0;l<a.length;l++)s.push(a[l]);else·s.push(a)}e=s}return·e},t.Pipeline.prototype.runString=function(e,n){var·r=new·t.Token(e,n);return·this.run([r]).map(function(i){return·i.toString()})},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(e){this._magnitude=0,this.elements=e||[]},t.Vector.prototype.positionForIndex=function(e){if(this.elements.length==0)return·0;for(var·n=0,r=this.elements.length/2,i=r-n,s=Math.floor(i/2),o=this.elements[s*2];i>1&&(o<e&&(n=s),o>e&&(r=s),o!=e);)i=r-n,s=n+Math.floor(i/2),o=this.elements[s*2];if(o==e||o>e)return·s*2;if(o<e)return(s+1)*2},t.Vector.prototype.insert=function(e,n){this.upsert(e,n,function(){throw"duplicate·index"})},t.Vector.prototype.upsert=function(e,n,r){this._magnitude=0;var·i=this.positionForIndex(e);this.elements[i]==e?this.elements[i+1]=r(this.elements[i+1],n):this.elements.splice(i,0,e,n)},t.Vector.prototype.magnitude=function(){if(this._magnitude)return·this._magnitude;for(var·e=0,n=this.elements.length,r=1;r<n;r+=2){var·i=this.elements[r];e+=i*i}return·this._magnitude=Math.sqrt(e)},t.Vector.prototype.dot=function(e){for(var·n=0,r=this.elements,i=e.elements,s=r.length,o=i.length,a=0,l=0,u=0,d=0;u<s&&d<o;)a=r[u],l=i[d],a<l?u+=2:a>l?d+=2:a==l&&(n+=r[u+1]*i[d+1],u+=2,d+=2);return·n},t.Vector.prototype.similarity=function(e){return·this.dot(e)/this.magnitude()||0},t.Vector.prototype.toArray=function(){for(var·e=new·Array(this.elements.length/2),n=1,r=0;n<this.elements.length;n+=2,r++)e[r]=this.elements[n];return·e},t.Vector.prototype.toJSON=function(){return·this.elements};t.stemmer=function(){var·e={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"},n={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},r="[^aeiou]",i="[aeiouy]",s=r+"[^aeiouy]*",o=i+"[aeiou]*",a="^("+s+")?"+o+s,l="^("+s+")?"+o+s+"("+o+")?$",u="^("+s+")?"+o+s+o+s,d="^("+s+")?"+i,v=new·RegExp(a),f=new·RegExp(u),b=new·RegExp(l),g=new·RegExp(d),L=/^(.+?)(ss|i)es$/,p=/^(.+?)([^s])s$/,m=/^(.+?)eed$/,S=/^(.+?)(ed|ing)$/,w=/.$/,k=/(at|bl|iz)$/,_=new·RegExp("([^aeiouylsz])\\1$"),H=new·RegExp("^"+s+i+"[^aeiouwxy]$"),A=/^(.+?[^aeiou])y$/,j=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,$=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,N=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,q=/^(.+?)(s|t)(ion)$/,P=/^(.+?)e$/,z=/ll$/,W=new·RegExp("^"+s+i+"[^aeiouwxy]$"),V=function(c){var·y,I,T,h,x,O,M;if(c.length<3)return·c;if(T=c.substr(0,1),T=="y"&&(c=T.toUpperCase()+c.substr(1)),h=L,x=p,h.test(c)?c=c.replace(h,"$1$2"):x.test(c)&&(c=c.replace(x,"$1$2")),h=m,x=S,h.test(c)){var·E=
|
lint:
docs/assets/main.js#L3
'define' is not defined
|
lint:
docs/assets/main.js#L3
'define' is not defined
|
lint:
docs/assets/main.js#L3
'HTMLDetailsElement' is not defined
|
lint:
docs/assets/main.js#L3
'location' is not defined
|
lint:
docs/assets/main.js#L3
'location' is not defined
|
lint:
docs/assets/main.js#L3
'HTMLElement' is not defined
|
lint:
docs/assets/main.js#L3
'DecompressionStream' is not defined
|
lint:
docs/assets/main.js#L2
Unexpected use of comma operator
|
lint:
docs/assets/main.js#L2
Expected '===' and instead saw '=='
|
lint:
docs/assets/main.js#L2
Expected '===' and instead saw '=='
|
lint:
docs/assets/main.js#L2
Arrow function should not return assignment
|
lint:
docs/assets/main.js#L2
Unexpected use of comma operator
|
lint:
docs/assets/main.js#L2
Unexpected use of comma operator
|
lint:
docs/assets/main.js#L2
Unexpected use of comma operator
|
lint:
docs/assets/main.js#L2
Expected '===' and instead saw '=='
|
lint:
docs/assets/main.js#L2
Expected '===' and instead saw '=='
|
lint:
docs/assets/main.js#L2
Expected '===' and instead saw '=='
|