This commit is contained in:
rickkoliser
2023-01-05 11:09:34 +00:00
parent 893c8ee69a
commit 0821b90476
21 changed files with 113 additions and 0 deletions

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[820],{1981:function(n,_,u){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_error",function(){return u(67)}])}},function(n){n.O(0,[774,888,179],function(){return n(n.s=1981)}),_N_E=n.O()}]);

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{5557:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(2567)}])},2567:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return d}});var n=t(5893),i=t(7294),a=t(9008),r=t.n(a),c=function(e){let{Component:s,pageProps:t,app:i}=e;return(0,n.jsx)("div",{className:"w-[245px] h-[88px] transition-all relative cursor-pointer group flex p-2 items-center justify-center bg-slate-100/90 dark:bg-slate-900/90 shadow rounded hover:shadow-xl hover:bg-gradient-to-r hover:from-slate-900 hover:to-cyan-800 hover:text-white",children:(0,n.jsx)("div",{className:"w-full h-full",children:(0,n.jsxs)("div",{className:"show-grid flex h-full items-center",children:[(0,n.jsx)("div",{className:"kasmcard-img flex h-full mx-4 items-center justify-center",children:(0,n.jsx)("img",{className:"w-[50px] max-h-[66px]",src:"icons/"+i.image_src})}),(0,n.jsxs)("div",{className:"kasmcard-detail settingPad",children:[(0,n.jsx)("h5",{className:"text-base",children:i.friendly_name}),(0,n.jsx)("p",{className:"text-xs opacity-50",children:i.categories&&i.categories[0]||"Unknown"})]})]})})})},o=t(7160),l=t.n(o);function d(e){let{searchText:s}=e,[t,a]=(0,i.useState)(null);(0,i.useEffect)(()=>{fetch("list.json").then(e=>e.json()).then(e=>{a(e)})},[]);let o=t&&t.apps&&t.apps.length>0?[...t.apps]:[],d=s&&s.toLowerCase();return s&&""!==s&&(o=o.filter(e=>{let s=e.categories&&e.categories.length>0?e.categories.filter(e=>e.toLowerCase().includes(d)):[];return e.name.toLowerCase().includes(d)||s.length>0})),(0,n.jsxs)("div",{className:"",children:[(0,n.jsxs)(r(),{children:[(0,n.jsx)("title",{children:"Kasm Apps"}),(0,n.jsx)("meta",{name:"description",content:"List of apps for Kasm Webspaces"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsxs)("main",{className:"p-20",children:[(0,n.jsxs)("h1",{className:"flex text-2xl justify-center mb-10",children:["Applications: ",(0,n.jsx)("span",{className:"",children:t&&t.appcount})]}),(0,n.jsxs)("div",{className:"flex flex-wrap gap-1 justify-center",children:[o&&o.length>0&&o.map(function(e,s){return(0,n.jsx)(c,{app:e},e.sha)}),o&&0===o.length&&(0,n.jsxs)("p",{children:["No applications found ",""!==s&&'matching "'+s+'"']})]}),(0,n.jsx)("div",{className:l().grid})]})]})}},7160:function(e){e.exports={container:"Home_container__bCOhY",main:"Home_main__nLjiQ",footer:"Home_footer____T7K",title:"Home_title__T09hD",description:"Home_description__41Owk",code:"Home_code__suPER",grid:"Home_grid__GxQ85",card:"Home_card___LpL1",logo:"Home_logo__27_tb"}},9008:function(e,s,t){e.exports=t(3121)}},function(e){e.O(0,[774,888,179],function(){return e(e.s=5557)}),_N_E=e.O()}]);