From 5e2c86bc8bbdec688c887bc0b965eb080ed38e5b Mon Sep 17 00:00:00 2001 From: lw Date: Thu, 12 Dec 2024 19:27:36 +0700 Subject: [PATCH] Update project, category name --- docs/assets/js/most-loved-projects.js | 2 +- docs/assets/js/projects.js | 2 +- src/assets/js-code/most-loved-projects.js | 8 ++++---- src/assets/js-code/projects.js | 10 +++++----- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/docs/assets/js/most-loved-projects.js b/docs/assets/js/most-loved-projects.js index 4a51086..c8592ac 100644 --- a/docs/assets/js/most-loved-projects.js +++ b/docs/assets/js/most-loved-projects.js @@ -1 +1 @@ -!function(f){"use strict";window.dotinsights=window.dotinsights||{},dotinsights.Projects=dotinsights.Projects||{},dotinsights.FilteredProjects=dotinsights.FilteredProjects||[],dotinsights.Query=dotinsights.Query||{itemsPerPage:50,maxNumPages:1,page:1,foundItems:0},dotinsights.Pagination=dotinsights.Pagination||{},window.innerWidth<561?dotinsights.Pagination.midSize=2:dotinsights.Pagination.midSize=3,window.innerWidth<768?dotinsights.Query.itemsPerPage=10:dotinsights.Query.itemsPerPage=50;var g=window.dotinsights.Helpers,s=f("#project-form-filter"),t=s.find(".search-submit"),e=null,p=f("#most-loved-projects-table tbody"),n=f("#most-loved-projects-pagination"),o={};function r(t,e){var i=o[t.project.toLowerCase()]??1/0,s=o[e.project.toLowerCase()]??1/0;return i!==s?i-s:t.project.localeCompare(e.project)}function a(t=!1){for(var e=(dotinsights.Query.page-1)*dotinsights.Query.itemsPerPage+1,i="",s=(s=e+dotinsights.Query.itemsPerPage)>dotinsights.Query.foundItems?dotinsights.Query.foundItems+1:s,o=e;o'+o+"",a="project-layer",a=(a+=r.layer?" project-layer-color--"+g.sanitizeKey(r.layer):"","string"==typeof r.layer?''+r.layer+"":'--'),l=""!==r.token?r.token:'--',d="./assets/images/projects/"+r.project_slug+".png",c="";r.categories.map(function(t,e){c=(c+=0'+t.name+""}),c='

'+c+"

",i=(i=(i=(i=(i=(i=(i+='')+('
'+n+'
'+r.project+'

'+r.project+"

"+c+"
"))+(''+a+"")+(''+l+""))+(''+u(r)+""))+(''+h(r)+""))+(''+'
Layer:
'+'
'+a+'
Token:
'+l+'
Github:
'+u(n=r)+'
Twitter:
'+h(n)+"
"))+(''+function(t){var e=dotinsights.VotedProjects.includes(t.project_id),i="button btn-vote";i+=e?" unvote-this":" vote-this";return''+dotinsights.NumberUtil.formatWithCommas(0)+""}(r)+"")+""}t?p.append(i):p.html(i)}function l(){var t="",e=dotinsights.Query.maxNumPages;if(1",1');for(r=0;r")+(s[r]===i?''+s[r]+"":''+s[r]+"")+"";i'),t+=""}n.html(t)}function h(t){var e;return t.twitter&&""!==t.twitter&&"N/A"!==t.twitter?(e=(e=(e=t.twitter.replace("https://twitter.com/","@")).replace("https://mobile.twitter.com/","@")).replace("https://x.com/","@"),e=dotinsights.StringUtil.rtrim(e,"/"),''+e+""):'--'}function u(t){return t.github&&""!==t.github&&"N/A"!==t.github?'':'--'}["Koni Stack","Across","Particle","Avail Nexus","SubWallet","Polygon AggLayer","Optimism Superchain","ZKsync Elastic Chain","Arbitrum Orbit","UniswapX","1inch","Safe","Biconomy","EigenLayer","Hyperlane","Everclear","Arcana","OneBalance","Rhinestone","Okto","Espresso System","Agoric","Orb Labs","Near"].forEach((t,e)=>{o[t.toLowerCase()]=e}),dotinsights.FilteredProjects.sort(r),f(document.body).on("dotinsights/EcosystemMap/Loaded",function(){var m,v,y,t=dotinsights.Projects.slice(),t=(t.sort(r),dotinsights.FilteredProjects=t,dotinsights.FilteredProjects.length);function e(){y.empty();var t=y.width(),e=[],i={},s=!1,o=0,r=0,n=1,a=(window.innerWidth<768?n=.5:window.innerWidth<1200&&(n=.8),2115-window.innerWidth);a*=n,a=Math.max(a,700),y.height(a);for(var l=0;l',h=(u=(u+='')+("

"+p.project+'

'+h+"
"),f(u+=""));h.css({width:2*p.displayR,height:2*p.displayR,top:p.y-p.displayR,left:p.x-p.displayR}),h.css("--circle-size",2*p.displayR+"px"),y.append(h)}}dotinsights.Query.page=1,dotinsights.Query.foundItems=t,dotinsights.Query.maxNumPages=0dotinsights.Query.foundItems?dotinsights.Query.foundItems+1:s,o=e;o'+o+"
",a="project-layer",a=(a+=r.layer?" project-layer-color--"+g.sanitizeKey(r.layer):"","string"==typeof r.layer?''+r.layer+"":'--'),l=""!==r.token?r.token:'--',d="./assets/images/projects/"+r.project_slug+".png",c="";r.categories.map(function(t,e){c=(c+=0'+t.name+""}),c='

'+c+"

",i=(i=(i=(i=(i=(i=(i+='')+('
'+n+'
'+r.project+'

'+r.project+"

"+c+"
"))+(''+a+"")+(''+l+""))+(''+u(r)+""))+(''+h(r)+""))+(''+'
Layer:
'+'
'+a+'
Token:
'+l+'
Github:
'+u(n=r)+'
Twitter:
'+h(n)+"
"))+(''+function(t){var e=dotinsights.VotedProjects.includes(t.project_id),i="button btn-vote";i+=e?" unvote-this":" vote-this";return''+dotinsights.NumberUtil.formatWithCommas(0)+""}(r)+"")+""}t?p.append(i):p.html(i)}function l(){var t="",e=dotinsights.Query.maxNumPages;if(1",1');for(r=0;r")+(s[r]===i?''+s[r]+"":''+s[r]+"")+"";i'),t+=""}n.html(t)}function h(t){var e;return t.twitter&&""!==t.twitter&&"N/A"!==t.twitter?(e=(e=(e=t.twitter.replace("https://twitter.com/","@")).replace("https://mobile.twitter.com/","@")).replace("https://x.com/","@"),e=dotinsights.StringUtil.rtrim(e,"/"),''+e+""):'--'}function u(t){return t.github&&""!==t.github&&"N/A"!==t.github?'':'--'}["Koni Stack","Across","Particle Network","Avail Nexus","SubWallet","AggLayer (Polygon)","Optimism Superchain","ZKsync","Arbitrum Orbit","UniswapX","1inch","Safe","Biconomy","EigenLayer","Hyperlane","Everclear","Arcana","OneBalance","Rhinestone","Okto","Espresso","Agoric","Orb Labs","Near"].forEach((t,e)=>{o[t.toLowerCase()]=e}),dotinsights.FilteredProjects.sort(r),f(document.body).on("dotinsights/EcosystemMap/Loaded",function(){var m,v,y,t=dotinsights.Projects.slice(),t=(t.sort(r),dotinsights.FilteredProjects=t,dotinsights.FilteredProjects.length);function e(){y.empty();var t=y.width(),e=[],i={},s=!1,o=0,r=0,n=1,a=(window.innerWidth<768?n=.5:window.innerWidth<1200&&(n=.8),2115-window.innerWidth);a*=n,a=Math.max(a,700),y.height(a);for(var l=0;l',h=(u=(u+='')+("

"+p.project+'

'+h+"
"),f(u+=""));h.css({width:2*p.displayR,height:2*p.displayR,top:p.y-p.displayR,left:p.x-p.displayR}),h.css("--circle-size",2*p.displayR+"px"),y.append(h)}}dotinsights.Query.page=1,dotinsights.Query.foundItems=t,dotinsights.Query.maxNumPages=0{var e=[];if(0t.trim()).forEach(t=>{c.sanitizeKey(t)===e&&(i=t)}),i}(i,s[i][0].category),projects:o});o.order=d.hasOwnProperty(i)?d[i]:999,e.push(o)}}var n=(e=dotinsights.ArrayUtil.sortByKey(e,"order","ASC")).length;dotinsights.FilteredProjects=e,dotinsights.Query.page=1,dotinsights.Query.foundItems=n,dotinsights.Query.maxNumPages=0dotinsights.Query.foundItems?dotinsights.Query.foundItems+1:s,o=e;o

'+d+''+r+"

")+'
';for(var l=0;l')+('
'+g.project+'
'))+('

'+g.project+"

")+"";i+="
"}t?h.append(i):h.html(i),h.find(".tm-animation").waypoint(function(){var t=this.element||m(this);m(t).addClass("animate")},{offset:"100%"})}m(document.body).on("dotinsights/EcosystemMap/Loaded",function(){!async function(){await n(dotinsights.Projects),function(){for(var t=dotinsights.Projects.length,e=m("#project-categories-filter"),i='All projects'+t+"",s=0;s'+o.name+''+n.length+""}e.html(i)}(),a()}()}),o.on("keyup",".search-field",function(){clearTimeout(e),e=setTimeout(function(){t.addClass("updating-icon"),setTimeout(function(){t.removeClass("updating-icon"),m(document.body).trigger("dotinsights/EcosystemMap/Searching")},300)},700)}),o.on("submit",function(t){return clearTimeout(e),e=setTimeout(function(){m(document.body).trigger("dotinsights/EcosystemMap/Searching")},700),!1}),m(document.body).on("dotinsights/EcosystemMap/Searching",function(){!async function(){var t=o.find('input[name="s"]').val(),e=o.find('input[name="cat"]').val(),i=[],s=[];""!==t&&s.push({key:"project",value:t,operator:"like"});""!==e&&s.push({key:"category_slugs",value:e,operator:"in"});0{var e=[];if(0t.trim()).forEach(t=>{c.sanitizeKey(t)===e&&(i=t)}),i}(i,s[i][0].category),projects:o});o.order=d.hasOwnProperty(i)?d[i]:999,e.push(o)}}var n=(e=dotinsights.ArrayUtil.sortByKey(e,"order","ASC")).length;dotinsights.FilteredProjects=e,dotinsights.Query.page=1,dotinsights.Query.foundItems=n,dotinsights.Query.maxNumPages=0dotinsights.Query.foundItems?dotinsights.Query.foundItems+1:s,o=e;o

'+d+''+r+"

")+'
';for(var l=0;l')+('
'+g.project+'
'))+('

'+g.project+"

")+"";i+="
"}t?h.append(i):h.html(i),h.find(".tm-animation").waypoint(function(){var t=this.element||m(this);m(t).addClass("animate")},{offset:"100%"})}m(document.body).on("dotinsights/EcosystemMap/Loaded",function(){!async function(){await n(dotinsights.Projects),function(){for(var t=dotinsights.Projects.length,e=m("#project-categories-filter"),i='All projects'+t+"",s=0;s'+o.name+''+n.length+""}e.html(i)}(),a()}()}),o.on("keyup",".search-field",function(){clearTimeout(e),e=setTimeout(function(){t.addClass("updating-icon"),setTimeout(function(){t.removeClass("updating-icon"),m(document.body).trigger("dotinsights/EcosystemMap/Searching")},300)},700)}),o.on("submit",function(t){return clearTimeout(e),e=setTimeout(function(){m(document.body).trigger("dotinsights/EcosystemMap/Searching")},700),!1}),m(document.body).on("dotinsights/EcosystemMap/Searching",function(){!async function(){var t=o.find('input[name="s"]').val(),e=o.find('input[name="cat"]').val(),i=[],s=[];""!==t&&s.push({key:"project",value:t,operator:"like"});""!==e&&s.push({key:"category_slugs",value:e,operator:"in"});0