From d3f978f06ad51f8bfe078d0ce01460ff73fd1a37 Mon Sep 17 00:00:00 2001 From: AydanPirani Date: Mon, 25 Sep 2023 00:10:41 +0000 Subject: [PATCH] deploy: HackIllinois/adonix@e8de99cb7bec86a0223d4a7fb3426f9d0f717e26 --- assets/main.bundle.js | 2 +- index.html | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/assets/main.bundle.js b/assets/main.bundle.js index c795380..d0cc400 100644 --- a/assets/main.bundle.js +++ b/assets/main.bundle.js @@ -209,4 +209,4 @@ function print() { __p += __j.call(arguments, '') } "lastname": "doe", "email": "johndoe@provider.com" }`,type:"json"}]},version:"0.0.0",filename:"src/services/user/user-router.ts",groupTitle:"User",name:"PostUser",header:{fields:{Header:[{group:"Header",type:"String",optional:!1,field:"Authorization",isArray:!1,description:"

JWT token.

"}]},examples:[{title:"Example Headers:",content:'{"Authorization": "loremipsumdolorsitamet"}',type:"json"}]},error:{fields:{"400: Bad Request":[{group:"400: Bad Request",type:"string",optional:!1,field:"NoToken",isArray:!1,description:"

No token passed in request.

"}],"401: Unauthorized":[{group:"401: Unauthorized",type:"string",optional:!1,field:"InvalidToken",isArray:!1,description:"

Invalid token (not API-signed).

"}],"403: Forbidden":[{group:"403: Forbidden",type:"string",optional:!1,field:"TokenExpired",isArray:!1,description:"

Expired token.

"}],"500: Internal Server Error":[{group:"500: Internal Server Error",type:"string",optional:!1,field:"InternalError",isArray:!1,description:"

Server error.

"}]},examples:[{title:"Example Error Response:",content:`HTTP/1.1 400 Bad Request -{"error": "NoToken"}`,type:"json"}]}}];const he={name:"Adonix Endpoint Documentation",version:"0.1.0",description:"Intended for API users",title:"Adonix Endpoint Documentation",url:"https://adonix.hackillinois.org",sampleUrl:!1,defaultVersion:"0.0.0",apidoc:"0.3.0",generator:{name:"apidoc",time:"Sun Sep 24 2023 20:07:17 GMT+0000 (Coordinated Universal Time)",url:"https://apidocjs.com",version:"1.2.0"}};dt();const Pe=u().compile(g()("#template-header").html()),Re=u().compile(g()("#template-footer").html()),q=u().compile(g()("#template-article").html()),me=u().compile(g()("#template-compare-article").html()),de=u().compile(g()("#template-generator").html()),ve=u().compile(g()("#template-project").html()),Me=u().compile(g()("#template-sections").html()),We=u().compile(g()("#template-sidenav").html()),Ue={aloneDisplay:!1,showRequiredLabels:!1,withGenerator:!0,withCompare:!0};he.template=Object.assign(Ue,(Ke=he.template)!=null?Ke:{}),he.template.forceLanguage&&At(he.template.forceLanguage);const Ye=(0,s.groupBy)(Le,re=>re.group),et={};g().each(Ye,(re,ne)=>{et[re]=(0,s.groupBy)(ne,le=>le.name)});const at=[];g().each(et,(re,ne)=>{let le=[];g().each(ne,(ae,_e)=>{const ke=_e[0].title;ke&&le.push(ke.toLowerCase()+"#~#"+ae)}),le.sort(),he.order&&(le=be(le,he.order,"#~#")),le.forEach(ae=>{const ke=ae.split("#~#")[1];ne[ke].forEach(Ne=>{at.push(Ne)})})}),Le=at;let gt={};const Wt={};let Ot={};Ot[he.version]=1,g().each(Le,(re,ne)=>{gt[ne.group]=1,Wt[ne.group]=ne.groupTitle||ne.group,Ot[ne.version]=1}),gt=Object.keys(gt),gt.sort(),he.order&&(gt=we(Wt,he.order)),Ot=Object.keys(Ot),Ot.sort(r().compare),Ot.reverse();const Rt=[];gt.forEach(re=>{Rt.push({group:re,isHeader:!0,title:Wt[re]});let ne="";Le.forEach(le=>{le.group===re&&(ne!==le.name?Rt.push({title:le.title,group:re,name:le.name,type:le.type,version:le.version,url:le.url}):Rt.push({title:le.title,group:re,hidden:!0,name:le.name,type:le.type,version:le.version,url:le.url}),ne=le.name)})});function pn(re,ne,le){let ae=!1;if(!ne)return ae;const _e=ne.match(/(.+?)<\/h(1|2)>/gi);return _e&&_e.forEach(function(ke){const Ne=ke.substring(2,3),lt=ke.replace(/<.+?>/g,""),xt=ke.match(/id="api-([^-]+)(?:-(.+))?"/),Pt=xt?xt[1]:null,vt=xt?xt[2]:null;Ne==="1"&<&&Pt&&(re.splice(le,0,{group:Pt,isHeader:!0,title:lt,isFixed:!0}),le++,ae=!0),Ne==="2"&<&&Pt&&vt&&(re.splice(le,0,{group:Pt,name:vt,isHeader:!1,title:lt,isFixed:!1,version:"1.0"}),le++)}),ae}let hn;if(he.header&&(hn=pn(Rt,he.header.content,0),hn||Rt.unshift({group:"_header",isHeader:!0,title:he.header.title==null?yt("General"):he.header.title,isFixed:!0})),he.footer){const re=Rt.length;hn=pn(Rt,he.footer.content,Rt.length),!hn&&he.footer.title!=null&&Rt.splice(re,0,{group:"_footer",isHeader:!0,title:he.footer.title,isFixed:!0})}const Rn=he.title?he.title:"apiDoc: "+he.name+" - "+he.version;g()(document).attr("title",Rn),g()("#loader").remove();const Mn={nav:Rt};g()("#sidenav").append(We(Mn)),g()("#generator").append(de(he)),(0,s.extend)(he,{versions:Ot}),g()("#project").append(ve(he)),he.header&&g()("#header").append(Pe(he.header)),he.footer&&(g()("#footer").append(Re(he.footer)),he.template.aloneDisplay&&document.getElementById("api-_footer").classList.add("hide"));const Bt={};let Bn="";gt.forEach(function(re){const ne=[];let le="",ae={},_e=re,ke="";Bt[re]={},Le.forEach(function(Ne){re===Ne.group&&(le!==Ne.name?(Le.forEach(function(lt){re===lt.group&&Ne.name===lt.name&&(Object.prototype.hasOwnProperty.call(Bt[Ne.group],Ne.name)||(Bt[Ne.group][Ne.name]=[]),Bt[Ne.group][Ne.name].push(lt.version))}),ae={article:Ne,versions:Bt[Ne.group][Ne.name]}):ae={article:Ne,hidden:!0,versions:Bt[Ne.group][Ne.name]},he.sampleUrl&&he.sampleUrl===!0&&(he.sampleUrl=window.location.origin),he.url&&ae.article.url.substr(0,4).toLowerCase()!=="http"&&(ae.article.url=he.url+ae.article.url),se(ae,Ne),Ne.groupTitle&&(_e=Ne.groupTitle),Ne.groupDescription&&(ke=Ne.groupDescription),ne.push({article:q(ae),group:Ne.group,name:Ne.name,aloneDisplay:he.template.aloneDisplay}),le=Ne.name)}),ae={group:re,title:_e,description:ke,articles:ne,aloneDisplay:he.template.aloneDisplay},Bn+=Me(ae)}),g()("#sections").append(Bn),he.template.aloneDisplay||(document.body.dataset.spy="scroll",g()("body").scrollspy({target:"#scrollingNav"})),g()(".form-control").on("focus change",function(){g()(this).removeClass("border-danger")}),g()(".sidenav").find("a").on("click",function(re){re.preventDefault();const ne=this.getAttribute("href");if(he.template.aloneDisplay){const le=document.querySelector(".sidenav > li.active");le&&le.classList.remove("active"),this.parentNode.classList.add("active")}else{const le=document.querySelector(ne);le&&g()("html,body").animate({scrollTop:le.offsetTop},400)}window.location.hash=ne});function St(re){let ne=!1;return g().each(re,le=>{ne=ne||(0,s.some)(re[le],ae=>ae.type)}),ne}function kn(){g()('button[data-toggle="popover"]').popover().click(function(ne){ne.preventDefault()});const re=g()("#version strong").html();if(g()("#sidenav li").removeClass("is-new"),he.template.withCompare&&g()("#sidenav li[data-version='"+re+"']").each(function(){const ne=g()(this).data("group"),le=g()(this).data("name"),ae=g()("#sidenav li[data-group='"+ne+"'][data-name='"+le+"']").length,_e=g()("#sidenav li[data-group='"+ne+"'][data-name='"+le+"']").index(g()(this));(ae===1||_e===ae-1)&&g()(this).addClass("is-new")}),g()(".nav-tabs-examples a").click(function(ne){ne.preventDefault(),g()(this).tab("show")}),g()(".nav-tabs-examples").find("a:first").tab("show"),g()(".sample-request-content-type-switch").change(function(){g()(this).val()==="body-form-data"?(g()("#sample-request-body-json-input-"+g()(this).data("id")).hide(),g()("#sample-request-body-form-input-"+g()(this).data("id")).show()):(g()("#sample-request-body-form-input-"+g()(this).data("id")).hide(),g()("#sample-request-body-json-input-"+g()(this).data("id")).show())}),he.template.aloneDisplay&&(g()(".show-group").click(function(){const ne="."+g()(this).attr("data-group")+"-group",le="."+g()(this).attr("data-group")+"-article";g()(".show-api-group").addClass("hide"),g()(ne).removeClass("hide"),g()(".show-api-article").addClass("hide"),g()(le).removeClass("hide")}),g()(".show-api").click(function(){const ne=this.getAttribute("href").substring(1),le=document.getElementById("version").textContent.trim(),ae=`.${this.dataset.name}-article`,_e=`[id="${ne}-${le}"]`,ke=`.${this.dataset.group}-group`;g()(".show-api-group").addClass("hide"),g()(ke).removeClass("hide"),g()(".show-api-article").addClass("hide");let Ne=g()(ae);g()(_e).length&&(Ne=g()(_e).parent()),Ne.removeClass("hide"),ne.match(/_(header|footer)/)&&document.getElementById(ne).classList.remove("hide")})),he.template.aloneDisplay||g()("body").scrollspy("refresh"),he.template.aloneDisplay){const ne=decodeURI(window.location.hash);if(ne!=null&&ne.length!==0){const le=document.getElementById("version").textContent.trim(),ae=document.querySelector(`li .${ne.slice(1)}-init`),_e=document.querySelector(`li[data-version="${le}"] .show-api.${ne.slice(1)}-init`);let ke=ae;_e&&(ke=_e),ke.click()}}}function U(re){typeof re=="undefined"?re=g()("#version strong").html():g()("#version strong").html(re),g()("article").addClass("hide"),g()("#sidenav li:not(.nav-fixed)").addClass("hide");const ne={};document.querySelectorAll("article[data-version]").forEach(le=>{const ae=le.dataset.group,_e=le.dataset.name,ke=le.dataset.version,Ne=ae+_e;!ne[Ne]&&r().lte(ke,re)&&(ne[Ne]=!0,document.querySelector(`article[data-group="${ae}"][data-name="${_e}"][data-version="${ke}"]`).classList.remove("hide"),document.querySelector(`#sidenav li[data-group="${ae}"][data-name="${_e}"][data-version="${ke}"]`).classList.remove("hide"),document.querySelector(`#sidenav li.nav-header[data-group="${ae}"]`).classList.remove("hide"))}),g()("article[data-version]").each(function(le){const ae=g()(this).data("group");g()("section#api-"+ae).removeClass("hide"),g()("section#api-"+ae+" article:visible").length===0?g()("section#api-"+ae).addClass("hide"):g()("section#api-"+ae).removeClass("hide")})}if(U(),g()("#versions li.version a").on("click",function(re){re.preventDefault(),U(g()(this).html())}),g()("#compareAllWithPredecessor").on("click",ee),g()("article .versions li.version a").on("click",Q),g().urlParam=function(re){const ne=new RegExp("[\\?&]"+re+"=([^&#]*)").exec(window.location.href);return ne&&ne[1]?ne[1]:null},g().urlParam("compare")&&g()("#compareAllWithPredecessor").trigger("click"),window.location.hash){const re=decodeURI(window.location.hash);g()(re).length>0&&g()("html,body").animate({scrollTop:parseInt(g()(re).offset().top)},0)}document.querySelector('[data-toggle="offcanvas"]').addEventListener("click",function(){const re=document.querySelector(".row-offcanvas");re&&re.classList.toggle("active")}),g()("#scrollingNav .sidenav-search input.search").focus(),g()('[data-action="filter-search"]').on("keyup",V(re=>{const ne=re.currentTarget.value.toLowerCase();g()(".sidenav a.nav-list-item").filter((le,ae)=>g()(ae).toggle(g()(ae).text().toLowerCase().indexOf(ne)>-1))},200)),g()("span.search-reset").on("click",function(){g()("#scrollingNav .sidenav-search input.search").val("").focus(),g()(".sidenav").find("a.nav-list-item").show()});function V(re,ne){let le=null;return(...ae)=>{clearTimeout(le),le=setTimeout(re.bind(this,...ae),ne||0)}}function Q(re){re.preventDefault();const ne=g()(this).parents("article"),le=g()(this).html(),ae=ne.find(".version"),_e=ae.find("strong").html();ae.find("strong").html(le);const ke=ne.data("group"),Ne=ne.data("name"),lt=ne.data("version"),xt=ne.data("compare-version");if(xt!==le&&!(!xt&<===le)){if(xt&&Bt[ke][Ne][0]===le||lt===le)Te(ke,Ne,lt);else{let Pt={},vt={};g().each(et[ke][Ne],function(ar,Vn){Vn.version===lt&&(Pt=Vn),Vn.version===le&&(vt=Vn)});const st={article:Pt,compare:vt,versions:Bt[ke][Ne]};st.article.id=st.article.group+"-"+st.article.name+"-"+st.article.version,st.article.id=st.article.id.replace(/\./g,"_"),st.compare.id=st.compare.group+"-"+st.compare.name+"-"+st.compare.version,st.compare.id=st.compare.id.replace(/\./g,"_");let nt=Pt;nt.header&&nt.header.fields&&(st._hasTypeInHeaderFields=St(nt.header.fields)),nt.parameter&&nt.parameter.fields&&(st._hasTypeInParameterFields=St(nt.parameter.fields)),nt.error&&nt.error.fields&&(st._hasTypeInErrorFields=St(nt.error.fields)),nt.success&&nt.success.fields&&(st._hasTypeInSuccessFields=St(nt.success.fields)),nt.info&&nt.info.fields&&(st._hasTypeInInfoFields=St(nt.info.fields)),nt=vt,st._hasTypeInHeaderFields!==!0&&nt.header&&nt.header.fields&&(st._hasTypeInHeaderFields=St(nt.header.fields)),st._hasTypeInParameterFields!==!0&&nt.parameter&&nt.parameter.fields&&(st._hasTypeInParameterFields=St(nt.parameter.fields)),st._hasTypeInErrorFields!==!0&&nt.error&&nt.error.fields&&(st._hasTypeInErrorFields=St(nt.error.fields)),st._hasTypeInSuccessFields!==!0&&nt.success&&nt.success.fields&&(st._hasTypeInSuccessFields=St(nt.success.fields)),st._hasTypeInInfoFields!==!0&&nt.info&&nt.info.fields&&(st._hasTypeInInfoFields=St(nt.info.fields));const pi=me(st);ne.after(pi),ne.next().find(".versions li.version a").on("click",Q),g()("#sidenav li[data-group='"+ke+"'][data-name='"+Ne+"'][data-version='"+_e+"']").addClass("has-modifications"),ne.remove()}kn(),m().highlightAll()}}function ee(re){re.preventDefault(),g()("article:visible .versions").each(function(){const le=g()(this).parents("article").data("version");let ae=null;g()(this).find("li.version a").each(function(){g()(this).html(){Object.keys(re).forEach(_e=>{re[_e].replace(/_/g," ")===ae&&le.push(_e)})}),Object.keys(re).forEach(ae=>{le.indexOf(ae)===-1&&le.push(ae)}),le}kn()}})()})(); +{"error": "NoToken"}`,type:"json"}]}}];const he={name:"Adonix Endpoint Documentation",version:"0.1.0",description:"Intended for API users",title:"Adonix Endpoint Documentation",url:"https://adonix.hackillinois.org",sampleUrl:!1,defaultVersion:"0.0.0",apidoc:"0.3.0",generator:{name:"apidoc",time:"Mon Sep 25 2023 00:10:39 GMT+0000 (Coordinated Universal Time)",url:"https://apidocjs.com",version:"1.2.0"}};dt();const Pe=u().compile(g()("#template-header").html()),Re=u().compile(g()("#template-footer").html()),q=u().compile(g()("#template-article").html()),me=u().compile(g()("#template-compare-article").html()),de=u().compile(g()("#template-generator").html()),ve=u().compile(g()("#template-project").html()),Me=u().compile(g()("#template-sections").html()),We=u().compile(g()("#template-sidenav").html()),Ue={aloneDisplay:!1,showRequiredLabels:!1,withGenerator:!0,withCompare:!0};he.template=Object.assign(Ue,(Ke=he.template)!=null?Ke:{}),he.template.forceLanguage&&At(he.template.forceLanguage);const Ye=(0,s.groupBy)(Le,re=>re.group),et={};g().each(Ye,(re,ne)=>{et[re]=(0,s.groupBy)(ne,le=>le.name)});const at=[];g().each(et,(re,ne)=>{let le=[];g().each(ne,(ae,_e)=>{const ke=_e[0].title;ke&&le.push(ke.toLowerCase()+"#~#"+ae)}),le.sort(),he.order&&(le=be(le,he.order,"#~#")),le.forEach(ae=>{const ke=ae.split("#~#")[1];ne[ke].forEach(Ne=>{at.push(Ne)})})}),Le=at;let gt={};const Wt={};let Ot={};Ot[he.version]=1,g().each(Le,(re,ne)=>{gt[ne.group]=1,Wt[ne.group]=ne.groupTitle||ne.group,Ot[ne.version]=1}),gt=Object.keys(gt),gt.sort(),he.order&&(gt=we(Wt,he.order)),Ot=Object.keys(Ot),Ot.sort(r().compare),Ot.reverse();const Rt=[];gt.forEach(re=>{Rt.push({group:re,isHeader:!0,title:Wt[re]});let ne="";Le.forEach(le=>{le.group===re&&(ne!==le.name?Rt.push({title:le.title,group:re,name:le.name,type:le.type,version:le.version,url:le.url}):Rt.push({title:le.title,group:re,hidden:!0,name:le.name,type:le.type,version:le.version,url:le.url}),ne=le.name)})});function pn(re,ne,le){let ae=!1;if(!ne)return ae;const _e=ne.match(/(.+?)<\/h(1|2)>/gi);return _e&&_e.forEach(function(ke){const Ne=ke.substring(2,3),lt=ke.replace(/<.+?>/g,""),xt=ke.match(/id="api-([^-]+)(?:-(.+))?"/),Pt=xt?xt[1]:null,vt=xt?xt[2]:null;Ne==="1"&<&&Pt&&(re.splice(le,0,{group:Pt,isHeader:!0,title:lt,isFixed:!0}),le++,ae=!0),Ne==="2"&<&&Pt&&vt&&(re.splice(le,0,{group:Pt,name:vt,isHeader:!1,title:lt,isFixed:!1,version:"1.0"}),le++)}),ae}let hn;if(he.header&&(hn=pn(Rt,he.header.content,0),hn||Rt.unshift({group:"_header",isHeader:!0,title:he.header.title==null?yt("General"):he.header.title,isFixed:!0})),he.footer){const re=Rt.length;hn=pn(Rt,he.footer.content,Rt.length),!hn&&he.footer.title!=null&&Rt.splice(re,0,{group:"_footer",isHeader:!0,title:he.footer.title,isFixed:!0})}const Rn=he.title?he.title:"apiDoc: "+he.name+" - "+he.version;g()(document).attr("title",Rn),g()("#loader").remove();const Mn={nav:Rt};g()("#sidenav").append(We(Mn)),g()("#generator").append(de(he)),(0,s.extend)(he,{versions:Ot}),g()("#project").append(ve(he)),he.header&&g()("#header").append(Pe(he.header)),he.footer&&(g()("#footer").append(Re(he.footer)),he.template.aloneDisplay&&document.getElementById("api-_footer").classList.add("hide"));const Bt={};let Bn="";gt.forEach(function(re){const ne=[];let le="",ae={},_e=re,ke="";Bt[re]={},Le.forEach(function(Ne){re===Ne.group&&(le!==Ne.name?(Le.forEach(function(lt){re===lt.group&&Ne.name===lt.name&&(Object.prototype.hasOwnProperty.call(Bt[Ne.group],Ne.name)||(Bt[Ne.group][Ne.name]=[]),Bt[Ne.group][Ne.name].push(lt.version))}),ae={article:Ne,versions:Bt[Ne.group][Ne.name]}):ae={article:Ne,hidden:!0,versions:Bt[Ne.group][Ne.name]},he.sampleUrl&&he.sampleUrl===!0&&(he.sampleUrl=window.location.origin),he.url&&ae.article.url.substr(0,4).toLowerCase()!=="http"&&(ae.article.url=he.url+ae.article.url),se(ae,Ne),Ne.groupTitle&&(_e=Ne.groupTitle),Ne.groupDescription&&(ke=Ne.groupDescription),ne.push({article:q(ae),group:Ne.group,name:Ne.name,aloneDisplay:he.template.aloneDisplay}),le=Ne.name)}),ae={group:re,title:_e,description:ke,articles:ne,aloneDisplay:he.template.aloneDisplay},Bn+=Me(ae)}),g()("#sections").append(Bn),he.template.aloneDisplay||(document.body.dataset.spy="scroll",g()("body").scrollspy({target:"#scrollingNav"})),g()(".form-control").on("focus change",function(){g()(this).removeClass("border-danger")}),g()(".sidenav").find("a").on("click",function(re){re.preventDefault();const ne=this.getAttribute("href");if(he.template.aloneDisplay){const le=document.querySelector(".sidenav > li.active");le&&le.classList.remove("active"),this.parentNode.classList.add("active")}else{const le=document.querySelector(ne);le&&g()("html,body").animate({scrollTop:le.offsetTop},400)}window.location.hash=ne});function St(re){let ne=!1;return g().each(re,le=>{ne=ne||(0,s.some)(re[le],ae=>ae.type)}),ne}function kn(){g()('button[data-toggle="popover"]').popover().click(function(ne){ne.preventDefault()});const re=g()("#version strong").html();if(g()("#sidenav li").removeClass("is-new"),he.template.withCompare&&g()("#sidenav li[data-version='"+re+"']").each(function(){const ne=g()(this).data("group"),le=g()(this).data("name"),ae=g()("#sidenav li[data-group='"+ne+"'][data-name='"+le+"']").length,_e=g()("#sidenav li[data-group='"+ne+"'][data-name='"+le+"']").index(g()(this));(ae===1||_e===ae-1)&&g()(this).addClass("is-new")}),g()(".nav-tabs-examples a").click(function(ne){ne.preventDefault(),g()(this).tab("show")}),g()(".nav-tabs-examples").find("a:first").tab("show"),g()(".sample-request-content-type-switch").change(function(){g()(this).val()==="body-form-data"?(g()("#sample-request-body-json-input-"+g()(this).data("id")).hide(),g()("#sample-request-body-form-input-"+g()(this).data("id")).show()):(g()("#sample-request-body-form-input-"+g()(this).data("id")).hide(),g()("#sample-request-body-json-input-"+g()(this).data("id")).show())}),he.template.aloneDisplay&&(g()(".show-group").click(function(){const ne="."+g()(this).attr("data-group")+"-group",le="."+g()(this).attr("data-group")+"-article";g()(".show-api-group").addClass("hide"),g()(ne).removeClass("hide"),g()(".show-api-article").addClass("hide"),g()(le).removeClass("hide")}),g()(".show-api").click(function(){const ne=this.getAttribute("href").substring(1),le=document.getElementById("version").textContent.trim(),ae=`.${this.dataset.name}-article`,_e=`[id="${ne}-${le}"]`,ke=`.${this.dataset.group}-group`;g()(".show-api-group").addClass("hide"),g()(ke).removeClass("hide"),g()(".show-api-article").addClass("hide");let Ne=g()(ae);g()(_e).length&&(Ne=g()(_e).parent()),Ne.removeClass("hide"),ne.match(/_(header|footer)/)&&document.getElementById(ne).classList.remove("hide")})),he.template.aloneDisplay||g()("body").scrollspy("refresh"),he.template.aloneDisplay){const ne=decodeURI(window.location.hash);if(ne!=null&&ne.length!==0){const le=document.getElementById("version").textContent.trim(),ae=document.querySelector(`li .${ne.slice(1)}-init`),_e=document.querySelector(`li[data-version="${le}"] .show-api.${ne.slice(1)}-init`);let ke=ae;_e&&(ke=_e),ke.click()}}}function U(re){typeof re=="undefined"?re=g()("#version strong").html():g()("#version strong").html(re),g()("article").addClass("hide"),g()("#sidenav li:not(.nav-fixed)").addClass("hide");const ne={};document.querySelectorAll("article[data-version]").forEach(le=>{const ae=le.dataset.group,_e=le.dataset.name,ke=le.dataset.version,Ne=ae+_e;!ne[Ne]&&r().lte(ke,re)&&(ne[Ne]=!0,document.querySelector(`article[data-group="${ae}"][data-name="${_e}"][data-version="${ke}"]`).classList.remove("hide"),document.querySelector(`#sidenav li[data-group="${ae}"][data-name="${_e}"][data-version="${ke}"]`).classList.remove("hide"),document.querySelector(`#sidenav li.nav-header[data-group="${ae}"]`).classList.remove("hide"))}),g()("article[data-version]").each(function(le){const ae=g()(this).data("group");g()("section#api-"+ae).removeClass("hide"),g()("section#api-"+ae+" article:visible").length===0?g()("section#api-"+ae).addClass("hide"):g()("section#api-"+ae).removeClass("hide")})}if(U(),g()("#versions li.version a").on("click",function(re){re.preventDefault(),U(g()(this).html())}),g()("#compareAllWithPredecessor").on("click",ee),g()("article .versions li.version a").on("click",Q),g().urlParam=function(re){const ne=new RegExp("[\\?&]"+re+"=([^&#]*)").exec(window.location.href);return ne&&ne[1]?ne[1]:null},g().urlParam("compare")&&g()("#compareAllWithPredecessor").trigger("click"),window.location.hash){const re=decodeURI(window.location.hash);g()(re).length>0&&g()("html,body").animate({scrollTop:parseInt(g()(re).offset().top)},0)}document.querySelector('[data-toggle="offcanvas"]').addEventListener("click",function(){const re=document.querySelector(".row-offcanvas");re&&re.classList.toggle("active")}),g()("#scrollingNav .sidenav-search input.search").focus(),g()('[data-action="filter-search"]').on("keyup",V(re=>{const ne=re.currentTarget.value.toLowerCase();g()(".sidenav a.nav-list-item").filter((le,ae)=>g()(ae).toggle(g()(ae).text().toLowerCase().indexOf(ne)>-1))},200)),g()("span.search-reset").on("click",function(){g()("#scrollingNav .sidenav-search input.search").val("").focus(),g()(".sidenav").find("a.nav-list-item").show()});function V(re,ne){let le=null;return(...ae)=>{clearTimeout(le),le=setTimeout(re.bind(this,...ae),ne||0)}}function Q(re){re.preventDefault();const ne=g()(this).parents("article"),le=g()(this).html(),ae=ne.find(".version"),_e=ae.find("strong").html();ae.find("strong").html(le);const ke=ne.data("group"),Ne=ne.data("name"),lt=ne.data("version"),xt=ne.data("compare-version");if(xt!==le&&!(!xt&<===le)){if(xt&&Bt[ke][Ne][0]===le||lt===le)Te(ke,Ne,lt);else{let Pt={},vt={};g().each(et[ke][Ne],function(ar,Vn){Vn.version===lt&&(Pt=Vn),Vn.version===le&&(vt=Vn)});const st={article:Pt,compare:vt,versions:Bt[ke][Ne]};st.article.id=st.article.group+"-"+st.article.name+"-"+st.article.version,st.article.id=st.article.id.replace(/\./g,"_"),st.compare.id=st.compare.group+"-"+st.compare.name+"-"+st.compare.version,st.compare.id=st.compare.id.replace(/\./g,"_");let nt=Pt;nt.header&&nt.header.fields&&(st._hasTypeInHeaderFields=St(nt.header.fields)),nt.parameter&&nt.parameter.fields&&(st._hasTypeInParameterFields=St(nt.parameter.fields)),nt.error&&nt.error.fields&&(st._hasTypeInErrorFields=St(nt.error.fields)),nt.success&&nt.success.fields&&(st._hasTypeInSuccessFields=St(nt.success.fields)),nt.info&&nt.info.fields&&(st._hasTypeInInfoFields=St(nt.info.fields)),nt=vt,st._hasTypeInHeaderFields!==!0&&nt.header&&nt.header.fields&&(st._hasTypeInHeaderFields=St(nt.header.fields)),st._hasTypeInParameterFields!==!0&&nt.parameter&&nt.parameter.fields&&(st._hasTypeInParameterFields=St(nt.parameter.fields)),st._hasTypeInErrorFields!==!0&&nt.error&&nt.error.fields&&(st._hasTypeInErrorFields=St(nt.error.fields)),st._hasTypeInSuccessFields!==!0&&nt.success&&nt.success.fields&&(st._hasTypeInSuccessFields=St(nt.success.fields)),st._hasTypeInInfoFields!==!0&&nt.info&&nt.info.fields&&(st._hasTypeInInfoFields=St(nt.info.fields));const pi=me(st);ne.after(pi),ne.next().find(".versions li.version a").on("click",Q),g()("#sidenav li[data-group='"+ke+"'][data-name='"+Ne+"'][data-version='"+_e+"']").addClass("has-modifications"),ne.remove()}kn(),m().highlightAll()}}function ee(re){re.preventDefault(),g()("article:visible .versions").each(function(){const le=g()(this).parents("article").data("version");let ae=null;g()(this).find("li.version a").each(function(){g()(this).html(){Object.keys(re).forEach(_e=>{re[_e].replace(/_/g," ")===ae&&le.push(_e)})}),Object.keys(re).forEach(ae=>{le.indexOf(ae)===-1&&le.push(ae)}),le}kn()}})()})(); diff --git a/index.html b/index.html index 1d790a7..5f2a529 100644 --- a/index.html +++ b/index.html @@ -5,15 +5,15 @@ - - - - - - - - - + + + + + + + + + @@ -1042,6 +1042,6 @@

{{__ "Request Body"}}

- +