This commit is contained in:
rickkoliser
2023-01-10 09:42:50 +00:00
parent 3f7885984a
commit dd349787a1
23 changed files with 61 additions and 50 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -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 p}});var n=t(5893),a=t(7294),i=t(9008),r=t.n(i),c=t(1163),o=function(e){let{Component:s,pageProps:t,app:a}=e,i=(0,c.useRouter)(),r=e=>{i.push({pathname:"/addapp/[app]",query:{app:btoa(e.name)}})};return(0,n.jsx)("div",{onClick:()=>r(a),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/"+a.image_src})}),(0,n.jsxs)("div",{className:"kasmcard-detail settingPad",children:[(0,n.jsx)("h5",{className:"text-base",children:a.friendly_name}),(0,n.jsx)("p",{className:"text-xs opacity-50",children:a.categories&&a.categories[0]||"Unknown"})]})]})})})},l=t(7160),d=t.n(l);function p(e){let{searchText:s}=e,[t,i]=(0,a.useState)(null);(0,a.useEffect)(()=>{fetch("list.json").then(e=>e.json()).then(e=>{i(e)})},[]);let c=t&&t.apps&&t.apps.length>0?[...t.apps]:[],l=s&&s.toLowerCase();return s&&""!==s&&(c=c.filter(e=>{let s=e.categories&&e.categories.length>0?e.categories.filter(e=>e.toLowerCase().includes(l)):[];return e.name.toLowerCase().includes(l)||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:[c&&c.length>0&&c.map(function(e,s){return(0,n.jsx)(o,{app:e},e.sha)}),c&&0===c.length&&(0,n.jsxs)("p",{children:["No applications found ",""!==s&&'matching "'+s+'"']})]}),(0,n.jsx)("div",{className:d().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()}]);
@@ -1 +0,0 @@
(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()}]);