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

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

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

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
!function(){"use strict";var t,e,n,r,o,u,f={},i={};function c(t){var e=i[t];if(void 0!==e)return e.exports;var n=i[t]={exports:{}},r=!0;try{f[t].call(n.exports,n,n.exports,c),r=!1}finally{r&&delete i[t]}return n.exports}c.m=f,t=[],c.O=function(e,n,r,o){if(n){o=o||0;for(var u=t.length;u>0&&t[u-1][2]>o;u--)t[u]=t[u-1];t[u]=[n,r,o];return}for(var f=1/0,u=0;u<t.length;u++){for(var n=t[u][0],r=t[u][1],o=t[u][2],i=!0,l=0;l<n.length;l++)f>=o&&Object.keys(c.O).every(function(t){return c.O[t](n[l])})?n.splice(l--,1):(i=!1,o<f&&(f=o));if(i){t.splice(u--,1);var a=r();void 0!==a&&(e=a)}}return e},c.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return c.d(e,{a:e}),e},n=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},c.t=function(t,r){if(1&r&&(t=this(t)),8&r||"object"==typeof t&&t&&(4&r&&t.__esModule||16&r&&"function"==typeof t.then))return t;var o=Object.create(null);c.r(o);var u={};e=e||[null,n({}),n([]),n(n)];for(var f=2&r&&t;"object"==typeof f&&!~e.indexOf(f);f=n(f))Object.getOwnPropertyNames(f).forEach(function(e){u[e]=function(){return t[e]}});return u.default=function(){return t},c.d(o,u),o},c.d=function(t,e){for(var n in e)c.o(e,n)&&!c.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(t){if("object"==typeof window)return window}}(),c.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},c.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},c.p="/kasm-registry/1.1/_next/",r={272:0},c.O.j=function(t){return 0===r[t]},o=function(t,e){var n,o,u=e[0],f=e[1],i=e[2],l=0;if(u.some(function(t){return 0!==r[t]})){for(n in f)c.o(f,n)&&(c.m[n]=f[n]);if(i)var a=i(c)}for(t&&t(e);l<u.length;l++)o=u[l],c.o(r,o)&&r[o]&&r[o][0](),r[o]=0;return c.O(a)},(u=self.webpackChunk_N_E=self.webpackChunk_N_E||[]).forEach(o.bind(null,0)),u.push=o.bind(null,u.push.bind(u))}();