diff --git a/1.0/404.html b/1.0/404.html index 6839e6b..66e57cc 100644 --- a/1.0/404.html +++ b/1.0/404.html @@ -1,4 +1,4 @@ -404: This page could not be found
Twingate Inc.
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 6839e6b..66e57cc 100644 --- a/1.0/404/index.html +++ b/1.0/404/index.html @@ -1,4 +1,4 @@ -404: This page could not be found
Twingate Inc.
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/w8r_GMOui9yyWyFHrru-M/new.json b/1.0/_next/data/rXbgqYdgmmBEEPEYyJ2k7/new.json similarity index 100% rename from 1.0/_next/data/w8r_GMOui9yyWyFHrru-M/new.json rename to 1.0/_next/data/rXbgqYdgmmBEEPEYyJ2k7/new.json diff --git a/1.0/_next/data/rXbgqYdgmmBEEPEYyJ2k7/new/ZXVyb3BlLXdlc3QyLWRvY2tlci5wa2cuZGV2L3R3aW5nYXRlLWxhYnMvdGctYWdlbnRsZXNzLWltYWdlcy90Zy1jaHJvbWU6ZGV2.json b/1.0/_next/data/rXbgqYdgmmBEEPEYyJ2k7/new/ZXVyb3BlLXdlc3QyLWRvY2tlci5wa2cuZGV2L3R3aW5nYXRlLWxhYnMvdGctYWdlbnRsZXNzLWltYWdlcy90Zy1jaHJvbWU6ZGV2.json new file mode 100644 index 0000000..b440426 --- /dev/null +++ b/1.0/_next/data/rXbgqYdgmmBEEPEYyJ2k7/new/ZXVyb3BlLXdlc3QyLWRvY2tlci5wa2cuZGV2L3R3aW5nYXRlLWxhYnMvdGctYWdlbnRsZXNzLWltYWdlcy90Zy1jaHJvbWU6ZGV2.json @@ -0,0 +1 @@ +{"pageProps":{"workspace":["ZXVyb3BlLXdlc3QyLWRvY2tlci5wa2cuZGV2L3R3aW5nYXRlLWxhYnMvdGctYWdlbnRsZXNzLWltYWdlcy90Zy1jaHJvbWU6ZGV2"]},"__N_SSG":true} \ No newline at end of file diff --git a/1.0/_next/data/w8r_GMOui9yyWyFHrru-M/new/dGctY2hyb21lOmRldg==.json b/1.0/_next/data/w8r_GMOui9yyWyFHrru-M/new/dGctY2hyb21lOmRldg==.json deleted file mode 100644 index 893d307..0000000 --- a/1.0/_next/data/w8r_GMOui9yyWyFHrru-M/new/dGctY2hyb21lOmRldg==.json +++ /dev/null @@ -1 +0,0 @@ -{"pageProps":{"workspace":["dGctY2hyb21lOmRldg=="]},"__N_SSG":true} \ No newline at end of file diff --git a/1.0/_next/static/chunks/pages/new/[[...workspace]]-19b452ede279214a.js b/1.0/_next/static/chunks/pages/new/[[...workspace]]-19b452ede279214a.js deleted file mode 100644 index 6bbc780..0000000 --- a/1.0/_next/static/chunks/pages/new/[[...workspace]]-19b452ede279214a.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 m},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),u=JSON.parse('{"wZ":[{"description":"Google Chrome with Twingate Zero-Trust Network Access.","docker_registry":"https://europe-west2-docker.pkg.dev/twingate-labs/tg-agentless-images/","image_src":"chromium.png","name":"tg-chrome:dev","run_config":{"hostname":"kasm"},"exec_config":{},"categories":["Browser"],"friendly_name":"Twingate Chrome","architecture":["amd64"],"compatibility":["1.13.x","1.14.x","1.15.x"],"uncompressed_size_mb":2170,"notes":"For setup instructions please refer to Twingate documentation at https://[TODO]","sha":"cd34b06b345465d06ec03ecc00d94e61fc0d8e8e"}]}'),m=!0;function p(e){let{workspace:l}=e,t=(0,n.useRef)(null),m=(0,n.useRef)(null),p=(0,n.useRef)(null),[h,x]=(0,n.useState)(null),[b,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="",m.current.value="",x(null),g(null),w(null),S(k);else if(l&&l[0]){let e=u.wZ.find(e=>e.name===atob(l[0]));if(delete e.sha,p.current.value=e.description,t.current.value=e.name,m.current.value=e.friendly_name,e.categories){let a=[];e.categories.map(e=>a.push({label:e,value:e})),x(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 O={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=E(e.friendly_name)+"."+j,S(e)}},[j]);let T=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})),x(a)},I=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 E(e){var l=e.toString().toLowerCase();return(l=(l=(l=l.split(/\&+/).join("-and-")).split(/[^a-z0-9]/).join("-")).split(/-+/).join("-")).trim("-")}let R=()=>{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,E(C.friendly_name)+".zip")})},A=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=E(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:A,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:m,name:"friendly_name",onChange:A,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:T,styles:O,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:A,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:A,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:I,styles:O,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.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:R,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:["Twingate Inc."," ",(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/chunks/pages/new/[[...workspace]]-337d8c93be21fd8f.js b/1.0/_next/static/chunks/pages/new/[[...workspace]]-337d8c93be21fd8f.js new file mode 100644 index 0000000..424cc3b --- /dev/null +++ b/1.0/_next/static/chunks/pages/new/[[...workspace]]-337d8c93be21fd8f.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 m},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),u=JSON.parse('{"wZ":[{"description":"Google Chrome with Twingate Zero-Trust Network Access.","docker_registry":"https://europe-west2-docker.pkg.dev/twingate-labs/tg-agentless-images/","image_src":"chromium.png","name":"europe-west2-docker.pkg.dev/twingate-labs/tg-agentless-images/tg-chrome:dev","run_config":{"hostname":"kasm"},"exec_config":{},"categories":["Browser"],"friendly_name":"Twingate Chrome","architecture":["amd64"],"compatibility":["1.13.x","1.14.x","1.15.x"],"uncompressed_size_mb":2170,"notes":"For setup instructions please refer to Twingate documentation at https://[TODO]","sha":"3245dee9413d2e48ca09e48de7406bdcf8bc763c"}]}'),m=!0;function p(e){let{workspace:l}=e,t=(0,n.useRef)(null),m=(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="",m.current.value="",b(null),g(null),w(null),S(k);else if(l&&l[0]){let e=u.wZ.find(e=>e.name===atob(l[0]));if(delete e.sha,p.current.value=e.description,t.current.value=e.name,m.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 O={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=E(e.friendly_name)+"."+j,S(e)}},[j]);let T=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)},I=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 E(e){var l=e.toString().toLowerCase();return(l=(l=(l=l.split(/\&+/).join("-and-")).split(/[^a-z0-9]/).join("-")).split(/-+/).join("-")).trim("-")}let R=()=>{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,E(C.friendly_name)+".zip")})},A=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=E(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:A,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:m,name:"friendly_name",onChange:A,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:T,styles:O,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:A,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:A,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:I,styles:O,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:R,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:["Twingate Inc."," ",(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/w8r_GMOui9yyWyFHrru-M/_buildManifest.js b/1.0/_next/static/rXbgqYdgmmBEEPEYyJ2k7/_buildManifest.js similarity index 86% rename from 1.0/_next/static/w8r_GMOui9yyWyFHrru-M/_buildManifest.js rename to 1.0/_next/static/rXbgqYdgmmBEEPEYyJ2k7/_buildManifest.js index 1cb6dce..9b3eca9 100644 --- a/1.0/_next/static/w8r_GMOui9yyWyFHrru-M/_buildManifest.js +++ b/1.0/_next/static/rXbgqYdgmmBEEPEYyJ2k7/_buildManifest.js @@ -1 +1 @@ -self.__BUILD_MANIFEST={__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":["static/css/7c9e31c2156353a4.css","static/chunks/pages/index-0232135f3416a57b.js"],"/_error":["static/chunks/pages/_error-8353112a01355ec2.js"],"/new/[[...workspace]]":["static/chunks/484-ea12e2f7cb01c6ad.js","static/chunks/pages/new/[[...workspace]]-19b452ede279214a.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-0232135f3416a57b.js"],"/_error":["static/chunks/pages/_error-8353112a01355ec2.js"],"/new/[[...workspace]]":["static/chunks/484-ea12e2f7cb01c6ad.js","static/chunks/pages/new/[[...workspace]]-337d8c93be21fd8f.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/w8r_GMOui9yyWyFHrru-M/_ssgManifest.js b/1.0/_next/static/rXbgqYdgmmBEEPEYyJ2k7/_ssgManifest.js similarity index 100% rename from 1.0/_next/static/w8r_GMOui9yyWyFHrru-M/_ssgManifest.js rename to 1.0/_next/static/rXbgqYdgmmBEEPEYyJ2k7/_ssgManifest.js diff --git a/1.0/index.html b/1.0/index.html index e7ee937..e970611 100644 --- a/1.0/index.html +++ b/1.0/index.html @@ -1 +1 @@ -Kasm Workspaces
Twingate Inc.
Workspace Registry

WorkspacesKasm Version

No workspaces found

\ No newline at end of file +Kasm Workspaces
Twingate Inc.
Workspace Registry

WorkspacesKasm Version

No workspaces found

\ No newline at end of file diff --git a/1.0/list.json b/1.0/list.json index 9178ddc..9953893 100644 --- a/1.0/list.json +++ b/1.0/list.json @@ -1 +1 @@ -{"name":"Twingate Inc.","workspacecount":1,"icon":"/img/logo.svg","description":"Repository for Kasm Workspace images for Twingate.","list_url":"https://kasm.tg-labs.net/","contact_url":"https://github.com/Twingate-Labs/kasm-registry/issues","modified":1719229524098,"workspaces":[{"description":"Google Chrome with Twingate Zero-Trust Network Access.","docker_registry":"https://europe-west2-docker.pkg.dev/twingate-labs/tg-agentless-images/","image_src":"chromium.png","name":"tg-chrome:dev","run_config":{"hostname":"kasm"},"exec_config":{},"categories":["Browser"],"friendly_name":"Twingate Chrome","architecture":["amd64"],"compatibility":["1.13.x","1.14.x","1.15.x"],"uncompressed_size_mb":2170,"notes":"For setup instructions please refer to Twingate documentation at https://[TODO]","sha":"cd34b06b345465d06ec03ecc00d94e61fc0d8e8e"}]} \ No newline at end of file +{"name":"Twingate Inc.","workspacecount":1,"icon":"/img/logo.svg","description":"Repository for Kasm Workspace images for Twingate.","list_url":"https://kasm.tg-labs.net/","contact_url":"https://github.com/Twingate-Labs/kasm-registry/issues","modified":1719237594408,"workspaces":[{"description":"Google Chrome with Twingate Zero-Trust Network Access.","docker_registry":"https://europe-west2-docker.pkg.dev/twingate-labs/tg-agentless-images/","image_src":"chromium.png","name":"europe-west2-docker.pkg.dev/twingate-labs/tg-agentless-images/tg-chrome:dev","run_config":{"hostname":"kasm"},"exec_config":{},"categories":["Browser"],"friendly_name":"Twingate Chrome","architecture":["amd64"],"compatibility":["1.13.x","1.14.x","1.15.x"],"uncompressed_size_mb":2170,"notes":"For setup instructions please refer to Twingate documentation at https://[TODO]","sha":"3245dee9413d2e48ca09e48de7406bdcf8bc763c"}]} \ No newline at end of file diff --git a/1.0/new/dGctY2hyb21lOmRldg==/index.html b/1.0/new/ZXVyb3BlLXdlc3QyLWRvY2tlci5wa2cuZGV2L3R3aW5nYXRlLWxhYnMvdGctYWdlbnRsZXNzLWltYWdlcy90Zy1jaHJvbWU6ZGV2/index.html similarity index 96% rename from 1.0/new/dGctY2hyb21lOmRldg==/index.html rename to 1.0/new/ZXVyb3BlLXdlc3QyLWRvY2tlci5wa2cuZGV2L3R3aW5nYXRlLWxhYnMvdGctYWdlbnRsZXNzLWltYWdlcy90Zy1jaHJvbWU6ZGV2/index.html index c793399..31b92d7 100644 --- a/1.0/new/dGctY2hyb21lOmRldg==/index.html +++ b/1.0/new/ZXVyb3BlLXdlc3QyLWRvY2tlci5wa2cuZGV2L3R3aW5nYXRlLWxhYnMvdGctYWdlbnRsZXNzLWltYWdlcy90Zy1jaHJvbWU6ZGV2/index.html @@ -1,4 +1,4 @@ -Kasm Workspaces
Twingate Inc.
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
Twingate Inc.
Edit
{
+Kasm Workspaces
Twingate Inc.
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
Twingate Inc.
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 87f71ad..2b25b2c 100644 --- a/1.0/new/index.html +++ b/1.0/new/index.html @@ -1,4 +1,4 @@ -Kasm Workspaces
Twingate Inc.
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
Twingate Inc.
Edit
{
+Kasm Workspaces
Twingate Inc.
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
Twingate Inc.
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