diff --git a/1.0/404.html b/1.0/404.html index 0eef9ba..9467749 100644 --- a/1.0/404.html +++ b/1.0/404.html @@ -1,4 +1,4 @@ -404: This page could not be found
Your Registry Name
Workspace Registry

404

This page could not be found.

\ No newline at end of file + }

404

This page could not be found.

\ No newline at end of file diff --git a/1.0/404/index.html b/1.0/404/index.html index 0eef9ba..9467749 100644 --- a/1.0/404/index.html +++ b/1.0/404/index.html @@ -1,4 +1,4 @@ -404: This page could not be found
Your Registry Name
Workspace Registry

404

This page could not be found.

\ No newline at end of file + }

404

This page could not be found.

\ No newline at end of file diff --git a/1.0/_next/data/3v3H-mbiEFyGyTInMhv4f/new/a2FzbXdlYi92cy1jb2RlOmRldmVsb3A=.json b/1.0/_next/data/3v3H-mbiEFyGyTInMhv4f/new/a2FzbXdlYi92cy1jb2RlOmRldmVsb3A=.json deleted file mode 100644 index 5ba63f4..0000000 --- a/1.0/_next/data/3v3H-mbiEFyGyTInMhv4f/new/a2FzbXdlYi92cy1jb2RlOmRldmVsb3A=.json +++ /dev/null @@ -1 +0,0 @@ -{"pageProps":{"workspace":["a2FzbXdlYi92cy1jb2RlOmRldmVsb3A="]},"__N_SSG":true} \ No newline at end of file diff --git a/1.0/_next/data/3v3H-mbiEFyGyTInMhv4f/new.json b/1.0/_next/data/gi7FltjmmdR0HXdahKf5p/new.json similarity index 100% rename from 1.0/_next/data/3v3H-mbiEFyGyTInMhv4f/new.json rename to 1.0/_next/data/gi7FltjmmdR0HXdahKf5p/new.json diff --git a/1.0/_next/data/3v3H-mbiEFyGyTInMhv4f/new/a2FzbXdlYi9jaHJvbWl1bTpkZXZlbG9w.json b/1.0/_next/data/gi7FltjmmdR0HXdahKf5p/new/a2FzbXdlYi9jaHJvbWl1bTpkZXZlbG9w.json similarity index 100% rename from 1.0/_next/data/3v3H-mbiEFyGyTInMhv4f/new/a2FzbXdlYi9jaHJvbWl1bTpkZXZlbG9w.json rename to 1.0/_next/data/gi7FltjmmdR0HXdahKf5p/new/a2FzbXdlYi9jaHJvbWl1bTpkZXZlbG9w.json diff --git a/1.0/_next/static/chunks/pages/new/[[...workspace]]-a70f6be4d9c82ede.js b/1.0/_next/static/chunks/pages/new/[[...workspace]]-a70f6be4d9c82ede.js deleted file mode 100644 index 750a209..0000000 --- a/1.0/_next/static/chunks/pages/new/[[...workspace]]-a70f6be4d9c82ede.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[858],{4873:function(e,l,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/new/[[...workspace]]",function(){return a(5790)}])},5790:function(e,l,a){"use strict";a.r(l),a.d(l,{__N_SSG:function(){return u},default:function(){return p}});var s=a(5893),t=a(9008),r=a.n(t),i=a(7294),n=a(3162),o=a(8813),c=a(3157),d=a(1163),m=JSON.parse('{"wZ":[{"description":"Chromium is a free and open-source browser, primarily developed and maintained by Google.","docker_registry":"https://index.docker.io/v1/","image_src":"chromium.png","name":"kasmweb/chromium:develop","run_config":{"hostname":"kasm"},"exec_config":{"go":{"cmd":"bash -c \'/dockerstartup/custom_startup.sh --go --url \\"$KASM_URL\\"\'"},"assign":{"cmd":"bash -c \'/dockerstartup/custom_startup.sh --assign --url \\"$KASM_URL\\"\'"}},"categories":["Browser"],"friendly_name":"Chromium","architecture":["amd64","arm64"],"compatibility":["1.13.x"],"uncompressed_size_mb":2170,"sha":"c47aba1be459ed66fc58bca2fb6a3c797dd26ca1"},{"description":"Visual Studio Code is a code editor redefined and optimized for building and debugging modern web and cloud applications.","docker_registry":"https://index.docker.io/v1/","name":"kasmweb/vs-code:develop","image_src":"vs-code.png","categories":["Development"],"friendly_name":"Visual Studio Code","architecture":["amd64","arm64"],"compatibility":["1.13.x"],"uncompressed_size_mb":2240,"sha":"d62ec86ebe90c01627ebee1cb2df3e95df0babdd"}]}'),u=!0;function p(e){let{workspace:l}=e,t=(0,i.useRef)(null),u=(0,i.useRef)(null),p=(0,i.useRef)(null),[b,h]=(0,i.useState)(null),[x,g]=(0,i.useState)(null),[v,w]=(0,i.useState)(null),[j,y]=(0,i.useState)("png"),[N,_]=(0,i.useState)(null),k={friendly_name:null,image_src:null,description:null,name:null,cores:2,memory:2768,gpu_count:0,cpu_allocation_method:"Inherit",docker_registry:"https://index.docker.io/v1/",categories:[],require_gpu:!1,enabled:!0,image_type:"Container"},[C,S]=(0,i.useState)(k);(0,d.useRouter)(),(0,i.useEffect)(()=>{if(null===l)p.current.value="",t.current.value="",u.current.value="",h(null),g(null),w(null),S(k);else if(l&&l[0]){let e=m.wZ.find(e=>e.name===atob(l[0]));if(delete e.sha,p.current.value=e.description,t.current.value=e.name,u.current.value=e.friendly_name,e.categories){let a=[];e.categories.map(e=>a.push({label:e,value:e})),h(a)}if(e.architecture){let s=[];e.architecture.map(e=>s.push({label:e,value:e})),g(s)}_("../../icons/"+e.image_src),S({...C,...e})}},[l]);let R={control:(e,l)=>({...e,background:"#f1f5f9",borderRadius:"0.5rem",borderColor:"#94a3b8"}),multiValue(e,l){let{data:a}=l;return{...e,backgroundColor:"#dde6f1"}}};(0,i.useEffect)(()=>{if(C&&C.friendly_name){let e={...C};e.image_src=A(e.friendly_name)+"."+j,S(e)}},[j]);let L=e=>{let l={...C};l.categories=e.map(e=>e.value),S(l);let a=[];l.categories.map(e=>a.push({label:e,value:e})),h(a)},O=e=>{let l={...C};l.architecture=e.map(e=>e.value),S(l);let a=[];l.architecture.map(e=>a.push({label:e,value:e})),g(a)};function A(e){var l=e.toString().toLowerCase();return(l=(l=(l=l.split(/\&+/).join("-and-")).split(/[^a-z0-9]/).join("-")).split(/-+/).join("-")).trim("-")}let E=()=>{var e=a(5733);let l=new e,s=l.folder(C.friendly_name);if(s.file("workspace.json",JSON.stringify(C,null,2)),v)s.file(C.image_src,v.file);else if(N){let t=fetch(N).then(e=>e.blob());s.file(C.image_src,t)}l.generateAsync({type:"blob"}).then(function(e){(0,n.saveAs)(e,A(C.friendly_name)+".zip")})},I=e=>{let l={...C};l[e.target.name]=e.target.value,"icon"===e.target.name&&(delete l.icon,w({value:e.target.value,file:e.target.files[0]}),y(e.target.value.substr(e.target.value.lastIndexOf(".")+1)),_(null)),l.friendly_name&&(l.image_src=A(l.friendly_name)+"."+j),S(l)};return(0,s.jsxs)("div",{className:"",children:[(0,s.jsxs)(r(),{children:[(0,s.jsx)("title",{children:"Kasm Workspaces"}),(0,s.jsx)("meta",{name:"description",content:"List of workspaces for Kasm Webspaces"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsxs)("div",{className:"flex flex-col lg:flex-row w-full my-20 max-w-6xl text-sm rounded-xl overflow-hidden mx-auto",children:[(0,s.jsxs)("div",{className:"w-full lg:w-1/2 p-16 bg-slate-300",children:[(0,s.jsx)("h1",{className:"text-2xl font-medium mb-2",children:"Add Workspace"}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("p",{className:"mb-8 opacity-70",children:'This page is designed to allow admins to generate the JSON they need to upload to the "workspaces" directory. It also allows end users to see what settings are needed if they want to manually copy them into a new workspace.'}),(0,s.jsx)("label",{className:"mb-2 font-medium",children:"Icon"}),(0,s.jsx)("input",{type:"file",name:"icon",onChange:I,className:"mb-2 p-2 rounded-lg bg-slate-100 border border-solid border-slate-400"}),(0,s.jsx)("p",{className:"mb-6 opacity-70",children:"Select the image to use, image will be renamed when it's downloaded."}),(0,s.jsx)("label",{className:"mb-2 font-medium",children:"Friendly Name"}),(0,s.jsx)("input",{ref:u,name:"friendly_name",onChange:I,className:"mb-2 p-2 rounded-lg bg-slate-100 border border-solid border-slate-400"}),(0,s.jsx)("p",{className:"mb-6 opacity-70",children:"This is the name that will show for users"}),(0,s.jsx)("label",{className:"mb-2 font-medium",children:"Categories"}),(0,s.jsx)(o.Z,{instanceId:"1",name:"categories",isMulti:!0,options:[{value:"Browser",label:"Browser"},{value:"Communication",label:"Communication"},{value:"Desktop",label:"Desktop"},{value:"Development",label:"Development"},{value:"Games",label:"Games"},{value:"Multimedia",label:"Multimedia"},{value:"Office",label:"Office"},{value:"Privacy",label:"Privacy"},{value:"Productivity",label:"Productivity"},{value:"Remote Access",label:"Remote Access"}],onChange:L,styles:R,value:b}),(0,s.jsx)("p",{className:"mb-6 mt-2 opacity-70",children:"You can select from the available option or create new ones."}),(0,s.jsx)("label",{className:"mb-2 font-medium",children:"Description"}),(0,s.jsx)("input",{ref:p,name:"description",onChange:I,className:"mb-2 p-2 rounded-lg bg-slate-100 border border-solid border-slate-400"}),(0,s.jsx)("p",{className:"mb-6 opacity-70",children:"A short description about the workspace"}),(0,s.jsx)("label",{className:"mb-2 font-medium",children:"Docker Image"}),(0,s.jsx)("input",{ref:t,name:"name",onChange:I,className:"mb-2 p-2 rounded-lg bg-slate-100 border border-solid border-slate-400"}),(0,s.jsxs)("p",{className:"mb-6 opacity-70",children:["The docker image to use, i.e. ",(0,s.jsx)("code",{className:"text-xs p-1 px-2 rounded bg-white/40",children:"kasmweb/filezilla:develop"})]}),(0,s.jsx)("label",{className:"mb-2 font-medium",children:"Architecture"}),(0,s.jsx)(c.ZP,{instanceId:"2",name:"architecture",isMulti:!0,options:[{value:"amd64",label:"amd64"},{value:"arm64",label:"arm64"}],onChange:O,styles:R,value:x}),(0,s.jsx)("p",{className:"mb-6 mt-2 opacity-70",children:"You can select from the available option or create new ones."})]})]}),(0,s.jsxs)("div",{className:"w-full lg:w-1/2 p-16 bg-slate-100",children:[(0,s.jsx)(f,{workspace:C,icon:v,inlineImage:N}),(0,s.jsx)("pre",{className:"my-8 overflow-y-auto text-xs",children:JSON.stringify({...C},null,2)}),(0,s.jsx)("button",{onClick:E,className:"p-4 relative z-10 px-5 bg-cyan-700 border-t border-white/20 border-solid hover:bg-slate-900 transition m-2 rounded items-center text-white/70 flex cursor-pointer",children:"Download"})]})]})]})}function f(e){let{workspace:l,icon:a,inlineImage:t}=e,[r,n]=(0,i.useState)(!1),o=null;if(a){let c=new Blob([a.file]);o=URL.createObjectURL(c),l.image_src=o}return(0,s.jsx)("div",{className:"rounded-xl group w-full shadow max-w-xs relative overflow-hidden h-[100px] border border-solid flex flex-col justify-between bg-slate-300 border-slate-400/50",children:(0,s.jsxs)("div",{className:"absolute top-0 left-0 right-0 h-[200px] transition-all"+(r?" -translate-y-1/2":""),children:[(0,s.jsxs)("div",{onClick:()=>n(!0),className:"h-[100px] p-4 relative overflow-hidden cursor-pointer",children:[(0,s.jsx)("img",{className:"h-[90px] group-hover:scale-150 transition-all absolute left-2 top-1",src:l.image_src,onError(e){null!==t&&(e.target.src=t)},alt:l.friendly_name}),(0,s.jsxs)("div",{className:"flex-col pl-28",children:[(0,s.jsx)("div",{className:"font-bold",children:l.friendly_name||"Friendly Name"}),(0,s.jsxs)("div",{className:"text-xs mb-2 flex gap-2",children:["Your Registry Name"," ",(0,s.jsx)("span",{children:void 0})]}),(0,s.jsx)("div",{className:" h-8"})]}),(0,s.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 bg-slate-400/20 h-8 text-[10px] flex items-center justify-center",children:[l.architecture&&l.architecture.map((e,l)=>(0,s.jsx)("span",{className:"p-2 py-0 m-[1px] inline-block rounded bg-slate-400/70",children:e},"arch"+l)),l.categories.map((e,l)=>(0,s.jsx)("span",{className:"p-2 py-0 m-[1px] inline-block rounded bg-slate-300/90",children:e},"cat"+l))]}),!1]}),(0,s.jsxs)("div",{className:"h-[100px] text-xs relative p-2 pl-4 flex",children:[(0,s.jsx)("button",{className:"absolute right-2 top-2 bg-slate-100 rounded-full flex justify-center items-center h-6 w-6",onClick:()=>n(!1),children:(0,s.jsx)("svg",{style:{height:"14px"},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",children:(0,s.jsx)("path",{d:"M310.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 210.7 54.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L114.7 256 9.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 301.3 265.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L205.3 256 310.6 150.6z"})})}),(0,s.jsxs)("div",{className:"flex flex-col flex-grow",children:[(0,s.jsx)("div",{className:"font-bold",children:l.friendly_name})," ",l.description]}),(0,s.jsxs)("div",{className:"flex flex-col justify-end gap-1",children:[(0,s.jsx)("div",{className:"text-xs text-color w-full p-4 py-1 rounded-lg bg-black/5 flex justify-center items-center",children:"Edit"}),(0,s.jsx)("button",{className:"text-xs w-full p-4 py-1 rounded-lg flex justify-center items-center bg-blue-500 font-bold text-white",children:"Install"})]})]})]})})}}},function(e){e.O(0,[484,774,888,179],function(){return e(e.s=4873)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/1.0/_next/static/chunks/pages/new/[[...workspace]]-b6c215a732a46f3d.js b/1.0/_next/static/chunks/pages/new/[[...workspace]]-b6c215a732a46f3d.js new file mode 100644 index 0000000..cdee059 --- /dev/null +++ b/1.0/_next/static/chunks/pages/new/[[...workspace]]-b6c215a732a46f3d.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[858],{4873:function(e,l,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/new/[[...workspace]]",function(){return a(5790)}])},5790:function(e,l,a){"use strict";a.r(l),a.d(l,{__N_SSG:function(){return u},default:function(){return p}});var s=a(5893),t=a(9008),r=a.n(t),n=a(7294),i=a(3162),o=a(8813),c=a(3157),d=a(1163),m=JSON.parse('{"wZ":[{"description":"Chromium is a free and open-source browser, primarily developed and maintained by Google.","docker_registry":"https://index.docker.io/v1/","image_src":"chromium.png","name":"kasmweb/chromium:develop","run_config":{"hostname":"kasm"},"exec_config":{"go":{"cmd":"bash -c \'/dockerstartup/custom_startup.sh --go --url \\"$KASM_URL\\"\'"},"assign":{"cmd":"bash -c \'/dockerstartup/custom_startup.sh --assign --url \\"$KASM_URL\\"\'"}},"categories":["Browser"],"friendly_name":"Chromium","architecture":["amd64","arm64"],"compatibility":["1.13.x"],"uncompressed_size_mb":2170,"sha":"c47aba1be459ed66fc58bca2fb6a3c797dd26ca1"}]}'),u=!0;function p(e){let{workspace:l}=e,t=(0,n.useRef)(null),u=(0,n.useRef)(null),p=(0,n.useRef)(null),[h,b]=(0,n.useState)(null),[x,g]=(0,n.useState)(null),[v,w]=(0,n.useState)(null),[j,y]=(0,n.useState)("png"),[N,_]=(0,n.useState)(null),k={friendly_name:null,image_src:null,description:null,name:null,cores:2,memory:2768,gpu_count:0,cpu_allocation_method:"Inherit",docker_registry:"https://index.docker.io/v1/",categories:[],require_gpu:!1,enabled:!0,image_type:"Container"},[C,S]=(0,n.useState)(k);(0,d.useRouter)(),(0,n.useEffect)(()=>{if(null===l)p.current.value="",t.current.value="",u.current.value="",b(null),g(null),w(null),S(k);else if(l&&l[0]){let e=m.wZ.find(e=>e.name===atob(l[0]));if(delete e.sha,p.current.value=e.description,t.current.value=e.name,u.current.value=e.friendly_name,e.categories){let a=[];e.categories.map(e=>a.push({label:e,value:e})),b(a)}if(e.architecture){let s=[];e.architecture.map(e=>s.push({label:e,value:e})),g(s)}_("../../icons/"+e.image_src),S({...C,...e})}},[l]);let R={control:(e,l)=>({...e,background:"#f1f5f9",borderRadius:"0.5rem",borderColor:"#94a3b8"}),multiValue(e,l){let{data:a}=l;return{...e,backgroundColor:"#dde6f1"}}};(0,n.useEffect)(()=>{if(C&&C.friendly_name){let e={...C};e.image_src=A(e.friendly_name)+"."+j,S(e)}},[j]);let L=e=>{let l={...C};l.categories=e.map(e=>e.value),S(l);let a=[];l.categories.map(e=>a.push({label:e,value:e})),b(a)},O=e=>{let l={...C};l.architecture=e.map(e=>e.value),S(l);let a=[];l.architecture.map(e=>a.push({label:e,value:e})),g(a)};function A(e){var l=e.toString().toLowerCase();return(l=(l=(l=l.split(/\&+/).join("-and-")).split(/[^a-z0-9]/).join("-")).split(/-+/).join("-")).trim("-")}let E=()=>{var e=a(5733);let l=new e,s=l.folder(C.friendly_name);if(s.file("workspace.json",JSON.stringify(C,null,2)),v)s.file(C.image_src,v.file);else if(N){let t=fetch(N).then(e=>e.blob());s.file(C.image_src,t)}l.generateAsync({type:"blob"}).then(function(e){(0,i.saveAs)(e,A(C.friendly_name)+".zip")})},I=e=>{let l={...C};l[e.target.name]=e.target.value,"icon"===e.target.name&&(delete l.icon,w({value:e.target.value,file:e.target.files[0]}),y(e.target.value.substr(e.target.value.lastIndexOf(".")+1)),_(null)),l.friendly_name&&(l.image_src=A(l.friendly_name)+"."+j),S(l)};return(0,s.jsxs)("div",{className:"",children:[(0,s.jsxs)(r(),{children:[(0,s.jsx)("title",{children:"Kasm Workspaces"}),(0,s.jsx)("meta",{name:"description",content:"List of workspaces for Kasm Webspaces"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsxs)("div",{className:"flex flex-col lg:flex-row w-full my-20 max-w-6xl text-sm rounded-xl overflow-hidden mx-auto",children:[(0,s.jsxs)("div",{className:"w-full lg:w-1/2 p-16 bg-slate-300",children:[(0,s.jsx)("h1",{className:"text-2xl font-medium mb-2",children:"Add Workspace"}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("p",{className:"mb-8 opacity-70",children:'This page is designed to allow admins to generate the JSON they need to upload to the "workspaces" directory. It also allows end users to see what settings are needed if they want to manually copy them into a new workspace.'}),(0,s.jsx)("label",{className:"mb-2 font-medium",children:"Icon"}),(0,s.jsx)("input",{type:"file",name:"icon",onChange:I,className:"mb-2 p-2 rounded-lg bg-slate-100 border border-solid border-slate-400"}),(0,s.jsx)("p",{className:"mb-6 opacity-70",children:"Select the image to use, image will be renamed when it's downloaded."}),(0,s.jsx)("label",{className:"mb-2 font-medium",children:"Friendly Name"}),(0,s.jsx)("input",{ref:u,name:"friendly_name",onChange:I,className:"mb-2 p-2 rounded-lg bg-slate-100 border border-solid border-slate-400"}),(0,s.jsx)("p",{className:"mb-6 opacity-70",children:"This is the name that will show for users"}),(0,s.jsx)("label",{className:"mb-2 font-medium",children:"Categories"}),(0,s.jsx)(o.Z,{instanceId:"1",name:"categories",isMulti:!0,options:[{value:"Browser",label:"Browser"},{value:"Communication",label:"Communication"},{value:"Desktop",label:"Desktop"},{value:"Development",label:"Development"},{value:"Games",label:"Games"},{value:"Multimedia",label:"Multimedia"},{value:"Office",label:"Office"},{value:"Privacy",label:"Privacy"},{value:"Productivity",label:"Productivity"},{value:"Remote Access",label:"Remote Access"}],onChange:L,styles:R,value:h}),(0,s.jsx)("p",{className:"mb-6 mt-2 opacity-70",children:"You can select from the available option or create new ones."}),(0,s.jsx)("label",{className:"mb-2 font-medium",children:"Description"}),(0,s.jsx)("input",{ref:p,name:"description",onChange:I,className:"mb-2 p-2 rounded-lg bg-slate-100 border border-solid border-slate-400"}),(0,s.jsx)("p",{className:"mb-6 opacity-70",children:"A short description about the workspace"}),(0,s.jsx)("label",{className:"mb-2 font-medium",children:"Docker Image"}),(0,s.jsx)("input",{ref:t,name:"name",onChange:I,className:"mb-2 p-2 rounded-lg bg-slate-100 border border-solid border-slate-400"}),(0,s.jsxs)("p",{className:"mb-6 opacity-70",children:["The docker image to use, i.e. ",(0,s.jsx)("code",{className:"text-xs p-1 px-2 rounded bg-white/40",children:"kasmweb/filezilla:develop"})]}),(0,s.jsx)("label",{className:"mb-2 font-medium",children:"Architecture"}),(0,s.jsx)(c.ZP,{instanceId:"2",name:"architecture",isMulti:!0,options:[{value:"amd64",label:"amd64"},{value:"arm64",label:"arm64"}],onChange:O,styles:R,value:x}),(0,s.jsx)("p",{className:"mb-6 mt-2 opacity-70",children:"You can select from the available option or create new ones."})]})]}),(0,s.jsxs)("div",{className:"w-full lg:w-1/2 p-16 bg-slate-100",children:[(0,s.jsx)(f,{workspace:C,icon:v,inlineImage:N}),(0,s.jsx)("pre",{className:"my-8 overflow-y-auto text-xs",children:JSON.stringify({...C},null,2)}),(0,s.jsx)("button",{onClick:E,className:"p-4 relative z-10 px-5 bg-cyan-700 border-t border-white/20 border-solid hover:bg-slate-900 transition m-2 rounded items-center text-white/70 flex cursor-pointer",children:"Download"})]})]})]})}function f(e){let{workspace:l,icon:a,inlineImage:t}=e,[r,i]=(0,n.useState)(!1),o=null;if(a){let c=new Blob([a.file]);o=URL.createObjectURL(c),l.image_src=o}return(0,s.jsx)("div",{className:"rounded-xl group w-full shadow max-w-xs relative overflow-hidden h-[100px] border border-solid flex flex-col justify-between bg-slate-300 border-slate-400/50",children:(0,s.jsxs)("div",{className:"absolute top-0 left-0 right-0 h-[200px] transition-all"+(r?" -translate-y-1/2":""),children:[(0,s.jsxs)("div",{onClick:()=>i(!0),className:"h-[100px] p-4 relative overflow-hidden cursor-pointer",children:[(0,s.jsx)("img",{className:"h-[90px] group-hover:scale-150 transition-all absolute left-2 top-1",src:l.image_src,onError(e){null!==t&&(e.target.src=t)},alt:l.friendly_name}),(0,s.jsxs)("div",{className:"flex-col pl-28",children:[(0,s.jsx)("div",{className:"font-bold",children:l.friendly_name||"Friendly Name"}),(0,s.jsxs)("div",{className:"text-xs mb-2 flex gap-2",children:["Your Registry Name"," ",(0,s.jsx)("span",{children:void 0})]}),(0,s.jsx)("div",{className:" h-8"})]}),(0,s.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 bg-slate-400/20 h-8 text-[10px] flex items-center justify-center",children:[l.architecture&&l.architecture.map((e,l)=>(0,s.jsx)("span",{className:"p-2 py-0 m-[1px] inline-block rounded bg-slate-400/70",children:e},"arch"+l)),l.categories.map((e,l)=>(0,s.jsx)("span",{className:"p-2 py-0 m-[1px] inline-block rounded bg-slate-300/90",children:e},"cat"+l))]}),!1]}),(0,s.jsxs)("div",{className:"h-[100px] text-xs relative p-2 pl-4 flex",children:[(0,s.jsx)("button",{className:"absolute right-2 top-2 bg-slate-100 rounded-full flex justify-center items-center h-6 w-6",onClick:()=>i(!1),children:(0,s.jsx)("svg",{style:{height:"14px"},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",children:(0,s.jsx)("path",{d:"M310.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 210.7 54.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L114.7 256 9.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 301.3 265.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L205.3 256 310.6 150.6z"})})}),(0,s.jsxs)("div",{className:"flex flex-col flex-grow",children:[(0,s.jsx)("div",{className:"font-bold",children:l.friendly_name})," ",l.description]}),(0,s.jsxs)("div",{className:"flex flex-col justify-end gap-1",children:[(0,s.jsx)("div",{className:"text-xs text-color w-full p-4 py-1 rounded-lg bg-black/5 flex justify-center items-center",children:"Edit"}),(0,s.jsx)("button",{className:"text-xs w-full p-4 py-1 rounded-lg flex justify-center items-center bg-blue-500 font-bold text-white",children:"Install"})]})]})]})})}}},function(e){e.O(0,[484,774,888,179],function(){return e(e.s=4873)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/1.0/_next/static/3v3H-mbiEFyGyTInMhv4f/_buildManifest.js b/1.0/_next/static/gi7FltjmmdR0HXdahKf5p/_buildManifest.js similarity index 86% rename from 1.0/_next/static/3v3H-mbiEFyGyTInMhv4f/_buildManifest.js rename to 1.0/_next/static/gi7FltjmmdR0HXdahKf5p/_buildManifest.js index a7d80c5..8219ba3 100644 --- a/1.0/_next/static/3v3H-mbiEFyGyTInMhv4f/_buildManifest.js +++ b/1.0/_next/static/gi7FltjmmdR0HXdahKf5p/_buildManifest.js @@ -1 +1 @@ -self.__BUILD_MANIFEST={__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":["static/css/7c9e31c2156353a4.css","static/chunks/pages/index-9416961d9ac86df9.js"],"/_error":["static/chunks/pages/_error-8353112a01355ec2.js"],"/new/[[...workspace]]":["static/chunks/484-ea12e2f7cb01c6ad.js","static/chunks/pages/new/[[...workspace]]-a70f6be4d9c82ede.js"],sortedPages:["/","/_app","/_error","/new/[[...workspace]]"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file +self.__BUILD_MANIFEST={__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":["static/css/7c9e31c2156353a4.css","static/chunks/pages/index-9416961d9ac86df9.js"],"/_error":["static/chunks/pages/_error-8353112a01355ec2.js"],"/new/[[...workspace]]":["static/chunks/484-ea12e2f7cb01c6ad.js","static/chunks/pages/new/[[...workspace]]-b6c215a732a46f3d.js"],sortedPages:["/","/_app","/_error","/new/[[...workspace]]"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/1.0/_next/static/3v3H-mbiEFyGyTInMhv4f/_ssgManifest.js b/1.0/_next/static/gi7FltjmmdR0HXdahKf5p/_ssgManifest.js similarity index 100% rename from 1.0/_next/static/3v3H-mbiEFyGyTInMhv4f/_ssgManifest.js rename to 1.0/_next/static/gi7FltjmmdR0HXdahKf5p/_ssgManifest.js diff --git a/1.0/icons/vs-code.png b/1.0/icons/vs-code.png deleted file mode 100644 index 51dcb60..0000000 Binary files a/1.0/icons/vs-code.png and /dev/null differ diff --git a/1.0/index.html b/1.0/index.html index 987547b..bba9d1a 100644 --- a/1.0/index.html +++ b/1.0/index.html @@ -1 +1 @@ -Kasm Workspaces
Your Registry Name
Workspace Registry

Workspaces

No workspaces found

\ No newline at end of file +Kasm Workspaces
Your Registry Name
Workspace Registry

Workspaces

No workspaces found

\ No newline at end of file diff --git a/1.0/list.json b/1.0/list.json index 3b4ef95..255a841 100644 --- a/1.0/list.json +++ b/1.0/list.json @@ -1 +1 @@ -{"name":"Your Registry Name","workspacecount":2,"icon":"/img/logo.svg","description":"A brief description of the registries purpose.","list_url":"https://username.github.io/kasm-registry/","contact_url":"https://github.com/username/kasm-registry/issues","modified":1680787013163,"workspaces":[{"description":"Chromium is a free and open-source browser, primarily developed and maintained by Google.","docker_registry":"https://index.docker.io/v1/","image_src":"chromium.png","name":"kasmweb/chromium:develop","run_config":{"hostname":"kasm"},"exec_config":{"go":{"cmd":"bash -c '/dockerstartup/custom_startup.sh --go --url \"$KASM_URL\"'"},"assign":{"cmd":"bash -c '/dockerstartup/custom_startup.sh --assign --url \"$KASM_URL\"'"}},"categories":["Browser"],"friendly_name":"Chromium","architecture":["amd64","arm64"],"compatibility":["1.13.x"],"uncompressed_size_mb":2170,"sha":"c47aba1be459ed66fc58bca2fb6a3c797dd26ca1"},{"description":"Visual Studio Code is a code editor redefined and optimized for building and debugging modern web and cloud applications.","docker_registry":"https://index.docker.io/v1/","name":"kasmweb/vs-code:develop","image_src":"vs-code.png","categories":["Development"],"friendly_name":"Visual Studio Code","architecture":["amd64","arm64"],"compatibility":["1.13.x"],"uncompressed_size_mb":2240,"sha":"d62ec86ebe90c01627ebee1cb2df3e95df0babdd"}]} \ No newline at end of file +{"name":"Your Registry Name","workspacecount":1,"icon":"/img/logo.svg","description":"A brief description of the registries purpose.","list_url":"https://username.github.io/kasm-registry/","contact_url":"https://github.com/username/kasm-registry/issues","modified":1680796193089,"workspaces":[{"description":"Chromium is a free and open-source browser, primarily developed and maintained by Google.","docker_registry":"https://index.docker.io/v1/","image_src":"chromium.png","name":"kasmweb/chromium:develop","run_config":{"hostname":"kasm"},"exec_config":{"go":{"cmd":"bash -c '/dockerstartup/custom_startup.sh --go --url \"$KASM_URL\"'"},"assign":{"cmd":"bash -c '/dockerstartup/custom_startup.sh --assign --url \"$KASM_URL\"'"}},"categories":["Browser"],"friendly_name":"Chromium","architecture":["amd64","arm64"],"compatibility":["1.13.x"],"uncompressed_size_mb":2170,"sha":"c47aba1be459ed66fc58bca2fb6a3c797dd26ca1"}]} \ No newline at end of file diff --git a/1.0/new/a2FzbXdlYi92cy1jb2RlOmRldmVsb3A=/index.html b/1.0/new/a2FzbXdlYi92cy1jb2RlOmRldmVsb3A=/index.html deleted file mode 100644 index c2aaf7b..0000000 --- a/1.0/new/a2FzbXdlYi92cy1jb2RlOmRldmVsb3A=/index.html +++ /dev/null @@ -1,15 +0,0 @@ -Kasm Workspaces
Your Registry Name
Workspace Registry

Add Workspace

This page is designed to allow admins to generate the JSON they need to upload to the "workspaces" directory. It also allows end users to see what settings are needed if they want to manually copy them into a new workspace.

Select the image to use, image will be renamed when it's downloaded.

This is the name that will show for users

Select...

You can select from the available option or create new ones.

A short description about the workspace

The docker image to use, i.e. kasmweb/filezilla:develop

Select...

You can select from the available option or create new ones.

Friendly Name
Your Registry Name
Edit
{
-  "friendly_name": null,
-  "image_src": null,
-  "description": null,
-  "name": null,
-  "cores": 2,
-  "memory": 2768,
-  "gpu_count": 0,
-  "cpu_allocation_method": "Inherit",
-  "docker_registry": "https://index.docker.io/v1/",
-  "categories": [],
-  "require_gpu": false,
-  "enabled": true,
-  "image_type": "Container"
-}
\ No newline at end of file diff --git a/1.0/new/a2FzbXdlYi9jaHJvbWl1bTpkZXZlbG9w/index.html b/1.0/new/a2FzbXdlYi9jaHJvbWl1bTpkZXZlbG9w/index.html index b5a93f3..a65f8e2 100644 --- a/1.0/new/a2FzbXdlYi9jaHJvbWl1bTpkZXZlbG9w/index.html +++ b/1.0/new/a2FzbXdlYi9jaHJvbWl1bTpkZXZlbG9w/index.html @@ -1,4 +1,4 @@ -Kasm Workspaces
Your Registry Name
Workspace Registry

Add Workspace

This page is designed to allow admins to generate the JSON they need to upload to the "workspaces" directory. It also allows end users to see what settings are needed if they want to manually copy them into a new workspace.

Select the image to use, image will be renamed when it's downloaded.

This is the name that will show for users

Select...

You can select from the available option or create new ones.

A short description about the workspace

The docker image to use, i.e. kasmweb/filezilla:develop

Select...

You can select from the available option or create new ones.

Friendly Name
Your Registry Name
Edit
{
+Kasm Workspaces
Your Registry Name
Workspace Registry

Add Workspace

This page is designed to allow admins to generate the JSON they need to upload to the "workspaces" directory. It also allows end users to see what settings are needed if they want to manually copy them into a new workspace.

Select the image to use, image will be renamed when it's downloaded.

This is the name that will show for users

Select...

You can select from the available option or create new ones.

A short description about the workspace

The docker image to use, i.e. kasmweb/filezilla:develop

Select...

You can select from the available option or create new ones.

Friendly Name
Your Registry Name
Edit
{
   "friendly_name": null,
   "image_src": null,
   "description": null,
@@ -12,4 +12,4 @@
   "require_gpu": false,
   "enabled": true,
   "image_type": "Container"
-}
\ No newline at end of file +}
\ No newline at end of file diff --git a/1.0/new/index.html b/1.0/new/index.html index a4eb1bd..abdd8a0 100644 --- a/1.0/new/index.html +++ b/1.0/new/index.html @@ -1,4 +1,4 @@ -Kasm Workspaces
Your Registry Name
Workspace Registry

Add Workspace

This page is designed to allow admins to generate the JSON they need to upload to the "workspaces" directory. It also allows end users to see what settings are needed if they want to manually copy them into a new workspace.

Select the image to use, image will be renamed when it's downloaded.

This is the name that will show for users

Select...

You can select from the available option or create new ones.

A short description about the workspace

The docker image to use, i.e. kasmweb/filezilla:develop

Select...

You can select from the available option or create new ones.

Friendly Name
Your Registry Name
Edit
{
+Kasm Workspaces
Your Registry Name
Workspace Registry

Add Workspace

This page is designed to allow admins to generate the JSON they need to upload to the "workspaces" directory. It also allows end users to see what settings are needed if they want to manually copy them into a new workspace.

Select the image to use, image will be renamed when it's downloaded.

This is the name that will show for users

Select...

You can select from the available option or create new ones.

A short description about the workspace

The docker image to use, i.e. kasmweb/filezilla:develop

Select...

You can select from the available option or create new ones.

Friendly Name
Your Registry Name
Edit
{
   "friendly_name": null,
   "image_src": null,
   "description": null,
@@ -12,4 +12,4 @@
   "require_gpu": false,
   "enabled": true,
   "image_type": "Container"
-}
\ No newline at end of file +}
\ No newline at end of file