Deploying to gh-pages from @ gareththered/kasm-registry@3e9fc6e4e5 🚀

This commit is contained in:
2026-01-15 07:26:51 +00:00
parent ae9f7f33c3
commit f873ab10f3
34 changed files with 72 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(2111)}])}},function(n){n.O(0,[888,774,179],function(){return n(n.s=1981)}),_N_E=n.O()}]);

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(2042)}])},2042:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return x}});var r=t(5893),a=t(7294),n=t(9008),i=t.n(n),l=t(1163),o=function(e){let{Component:s,pageProps:t,workspace:a}=e,n=(0,l.useRouter)(),i=e=>{n.push({pathname:"/new/[workspace]",query:{workspace:btoa(e.friendly_name)}})};return(0,r.jsx)("div",{onClick:()=>i(a),className:"w-[245px] h-[88px] transition-all relative cursor-pointer group flex p-2 items-center justify-center bg-slate-100/90 shadow rounded hover:shadow-xl hover:bg-gradient-to-r hover:from-[#162d48] hover:to-[#2980b9] hover:text-white",children:(0,r.jsx)("div",{className:"w-full h-full",children:(0,r.jsxs)("div",{className:"show-grid flex h-full items-center",children:[(0,r.jsx)("div",{className:"kasmcard-img flex h-full mx-4 items-center justify-center",children:(0,r.jsx)("img",{className:"w-[50px] max-h-[66px]",src:"icons/"+a.image_src})}),(0,r.jsxs)("div",{className:"kasmcard-detail settingPad",children:[(0,r.jsx)("h5",{className:"text-base",children:a.friendly_name}),(0,r.jsx)("p",{className:"text-xs opacity-50",children:a.categories&&a.categories[0]||"Unknown"})]})]})})})},c=t(4609),d=t.n(c);function x(e){let{searchText:s}=e,[t,n]=(0,a.useState)(null),[l,c]=(0,a.useState)(null),[x,h]=(0,a.useState)(null);(0,a.useEffect)(()=>{let e=localStorage.getItem("version")||null;fetch("list.json").then(e=>e.json()).then(s=>{let t=[];s.workspaces.forEach(e=>{e.compatibility&&e.compatibility.forEach(e=>{let s=parseFloat(e.version);-1===t.indexOf(s)&&t.push(s)})});let r=t.sort((e,s)=>e-s).reverse();c(r),null===e&&(e=r[0],localStorage.setItem("version",e)),h(e),n(s)})},[]);let m=e=>{localStorage.setItem("version",e),h(e)},p=t&&t.workspaces&&t.workspaces.length>0?[...t.workspaces]:[];p=p.filter(e=>e.compatibility.some(e=>e.version===x+".x"));let u=s&&s.toLowerCase();return s&&""!==s&&(p=p.filter(e=>{let s=e.categories&&e.categories.length>0?e.categories.filter(e=>e.toLowerCase().includes(u)):[];return e.name.toLowerCase().includes(u)||s.length>0})),(0,r.jsxs)("div",{className:"",children:[(0,r.jsxs)(i(),{children:[(0,r.jsx)("title",{children:"Kasm Workspaces"}),(0,r.jsx)("meta",{name:"description",content:"List of workspaces for Kasm Webspaces"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsxs)("main",{className:"p-8 py-10 xl:px-20",children:[(0,r.jsxs)("h1",{className:"flex flex-wrap-reverse uppercase tracking-widest justify-center mb-10 gap-5",children:[(0,r.jsxs)("span",{className:"flex items-center text-lg bg-slate-100/90 rounded overflow-hidden shadow",children:[(0,r.jsx)("span",{className:"flex px-3 text-xs opacity-100",children:"Workspaces"}),(0,r.jsx)("span",{className:"text-white p-3 py-1 flex bg-[#2980b9]",children:p&&p.length})]}),(0,r.jsxs)("span",{className:"flex items-center text-lg bg-slate-100/90 rounded overflow-hidden shadow",children:[(0,r.jsx)("span",{className:"flex px-3 text-xs opacity-100",children:"Kasm Version"}),(0,r.jsx)("span",{className:"text-white gap-3 p-3 py-1 flex items-center bg-[#2980b9]",children:l&&l.map(e=>(0,r.jsx)("div",{className:"cursor-pointer "+(+e==+x?"text-white":"text-white/50 text-xs"),onClick:()=>m(e),children:e},e))})]})]}),(0,r.jsxs)("div",{className:"flex flex-wrap gap-1 justify-center",children:[p&&p.length>0&&p.map(function(e,s){return(0,r.jsx)(o,{workspace:e},e.sha)}),p&&0===p.length&&(0,r.jsxs)("p",{children:["No workspaces found ",""!==s&&'matching "'+s+'"']})]}),(0,r.jsx)("div",{className:d().grid})]})]})}},4609:function(e){e.exports={container:"Home_container__d256j",main:"Home_main__VkIEL",footer:"Home_footer__yFiaX",title:"Home_title__hYX6j",description:"Home_description__uXNdx",code:"Home_code__VVrIr",grid:"Home_grid__AVljO",card:"Home_card__E5spL",logo:"Home_logo__IOQAX"}},9008:function(e,s,t){e.exports=t(3867)}},function(e){e.O(0,[888,774,179],function(){return e(e.s=5557)}),_N_E=e.O()}]);

File diff suppressed because one or more lines are too long