diff --git a/404.html b/404.html index f5d9b59..ed63730 100644 --- a/404.html +++ b/404.html @@ -1,4 +1,4 @@ -404: This page could not be found
Kasm Technologies
Application Database

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/404/index.html b/404/index.html index f5d9b59..ed63730 100644 --- a/404/index.html +++ b/404/index.html @@ -1,4 +1,4 @@ -404: This page could not be found
Kasm Technologies
Application Database

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/_next/data/OESA_O2AOXWAJnUion9nG/addapp.json b/_next/data/OESA_O2AOXWAJnUion9nG/addapp.json new file mode 100644 index 0000000..5b858b7 --- /dev/null +++ b/_next/data/OESA_O2AOXWAJnUion9nG/addapp.json @@ -0,0 +1 @@ +{"pageProps":{"app":null},"__N_SSG":true} \ No newline at end of file diff --git a/_next/static/DapfsOc3R6g7cILUFlhuJ/_ssgManifest.js b/_next/static/DapfsOc3R6g7cILUFlhuJ/_ssgManifest.js deleted file mode 100644 index 0511aa8..0000000 --- a/_next/static/DapfsOc3R6g7cILUFlhuJ/_ssgManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__SSG_MANIFEST=new Set,self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB(); \ No newline at end of file diff --git a/_next/static/DapfsOc3R6g7cILUFlhuJ/_buildManifest.js b/_next/static/OESA_O2AOXWAJnUion9nG/_buildManifest.js similarity index 86% rename from _next/static/DapfsOc3R6g7cILUFlhuJ/_buildManifest.js rename to _next/static/OESA_O2AOXWAJnUion9nG/_buildManifest.js index e0fe75d..6ad650a 100644 --- a/_next/static/DapfsOc3R6g7cILUFlhuJ/_buildManifest.js +++ b/_next/static/OESA_O2AOXWAJnUion9nG/_buildManifest.js @@ -1 +1 @@ -self.__BUILD_MANIFEST={__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":["static/css/7c9e31c2156353a4.css","static/chunks/pages/index-a1885aa46ead7816.js"],"/_error":["static/chunks/pages/_error-8353112a01355ec2.js"],"/addapp/[[...app]]":["static/chunks/484-ea12e2f7cb01c6ad.js","static/chunks/pages/addapp/[[...app]]-88acc1b83c0b9a49.js"],sortedPages:["/","/_app","/_error","/addapp/[[...app]]"]},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-a1885aa46ead7816.js"],"/_error":["static/chunks/pages/_error-8353112a01355ec2.js"],"/addapp/[[...app]]":["static/chunks/484-ea12e2f7cb01c6ad.js","static/chunks/pages/addapp/[[...app]]-60c9cedc56d2e877.js"],sortedPages:["/","/_app","/_error","/addapp/[[...app]]"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/_next/static/OESA_O2AOXWAJnUion9nG/_ssgManifest.js b/_next/static/OESA_O2AOXWAJnUion9nG/_ssgManifest.js new file mode 100644 index 0000000..bb892c9 --- /dev/null +++ b/_next/static/OESA_O2AOXWAJnUion9nG/_ssgManifest.js @@ -0,0 +1 @@ +self.__SSG_MANIFEST=new Set(["\u002Faddapp\u002F[[...app]]"]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB() \ No newline at end of file diff --git a/_next/static/chunks/pages/_app-0978202e6ccfa1a9.js b/_next/static/chunks/pages/_app-0978202e6ccfa1a9.js deleted file mode 100644 index e513556..0000000 --- a/_next/static/chunks/pages/_app-0978202e6ccfa1a9.js +++ /dev/null @@ -1,5 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{4184:function(e,t){var n; /*! - Copyright (c) 2018 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/ !function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t{});let o=r&&void 0!==r.locale?r.locale:e&&e.locale;d[t+"%"+n+(o?"%"+o:"")]=!0}let y=i.default.forwardRef(function(e,t){let n,r;let{href:y,as:v,children:m,prefetch:b,passHref:x,replace:g,shallow:E,scroll:O,locale:j,onClick:C,onMouseEnter:_,onTouchStart:N,legacyBehavior:w=!0!==Boolean(!0)}=e,R=o(e,["href","as","children","prefetch","passHref","replace","shallow","scroll","locale","onClick","onMouseEnter","onTouchStart","legacyBehavior"]);n=m,w&&("string"==typeof n||"number"==typeof n)&&(n=i.default.createElement("a",null,n));let S=!1!==b,L=i.default.useContext(u.RouterContext),T=i.default.useContext(l.AppRouterContext);T&&(L=T);let{href:P,as:k}=i.default.useMemo(()=>{let[e,t]=s.resolveHref(L,y,!0);return{href:e,as:v?s.resolveHref(L,v):t||e}},[L,y,v]),M=i.default.useRef(P),A=i.default.useRef(k);w&&(r=i.default.Children.only(n));let D=w?r&&"object"==typeof r&&r.ref:t,[H,I,U]=c.useIntersection({rootMargin:"200px"}),V=i.default.useCallback(e=>{(A.current!==k||M.current!==P)&&(U(),A.current=k,M.current=P),H(e),D&&("function"==typeof D?D(e):"object"==typeof D&&(D.current=e))},[k,D,P,U,H]);i.default.useEffect(()=>{let e=I&&S&&s.isLocalURL(P),t=void 0!==j?j:L&&L.locale,n=d[P+"%"+k+(t?"%"+t:"")];e&&!n&&h(L,P,k,{locale:t})},[k,P,I,j,S,L]);let q={ref:V,onClick(e){w||"function"!=typeof C||C(e),w&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),e.defaultPrevented||function(e,t,n,r,o,a,u,l,c,f){let{nodeName:p}=e.currentTarget,d="A"===p.toUpperCase();if(d&&(function(e){let{target:t}=e.currentTarget;return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!s.isLocalURL(n)))return;e.preventDefault();let h=()=>{"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:a,locale:l,scroll:u}):t[o?"replace":"push"](r||n,{forceOptimisticNavigation:!f})};c?i.default.startTransition(h):h()}(e,L,P,k,g,E,O,j,Boolean(T),S)},onMouseEnter(e){w||"function"!=typeof _||_(e),w&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),!(!S&&T)&&s.isLocalURL(P)&&h(L,P,k,{priority:!0})},onTouchStart(e){w||"function"!=typeof N||N(e),w&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),!(!S&&T)&&s.isLocalURL(P)&&h(L,P,k,{priority:!0})}};if(!w||x||"a"===r.type&&!("href"in r.props)){let F=void 0!==j?j:L&&L.locale,Z=L&&L.isLocaleDomain&&f.getDomainLocale(k,F,L.locales,L.domainLocales);q.href=Z||p.addBasePath(a.addLocale(k,F,L&&L.defaultLocale))}return w?i.default.cloneElement(r,q):i.default.createElement("a",Object.assign({},R,q),n)});t.default=y,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9246:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useIntersection=function(e){let{rootRef:t,rootMargin:n,disabled:u}=e,l=u||!i,[c,f]=r.useState(!1),[p,d]=r.useState(null);r.useEffect(()=>{if(i){if(!l&&!c&&p&&p.tagName){let e=function(e,t,n){let{id:r,observer:o,elements:i}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=a.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=s.get(r)))return t;let o=new Map,i=new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e);return t={id:n,observer:i,elements:o},a.push(n),s.set(n,t),t}(n);return i.set(e,t),o.observe(e),function(){if(i.delete(e),o.unobserve(e),0===i.size){o.disconnect(),s.delete(r);let t=a.findIndex(e=>e.root===r.root&&e.margin===r.margin);t>-1&&a.splice(t,1)}}}(p,e=>e&&f(e),{root:null==t?void 0:t.current,rootMargin:n});return e}}else if(!c){let r=o.requestIdleCallback(()=>f(!0));return()=>o.cancelIdleCallback(r)}},[p,l,n,t,c]);let h=r.useCallback(()=>{f(!1)},[]);return[d,c,h]};var r=n(7294),o=n(4686);let i="function"==typeof IntersectionObserver,s=new Map,a=[];("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8245:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TemplateContext=t.GlobalLayoutRouterContext=t.LayoutRouterContext=t.AppRouterContext=void 0;var r=(0,n(2648).Z)(n(7294));let o=r.default.createContext(null);t.AppRouterContext=o;let i=r.default.createContext(null);t.LayoutRouterContext=i;let s=r.default.createContext(null);t.GlobalLayoutRouterContext=s;let a=r.default.createContext(null);t.TemplateContext=a},8805:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var r=n(5893);n(6774);var o=function(){return(0,r.jsxs)("ul",{className:"bg-bubbles",children:[(0,r.jsx)("li",{}),(0,r.jsx)("li",{}),(0,r.jsx)("li",{}),(0,r.jsx)("li",{}),(0,r.jsx)("li",{}),(0,r.jsx)("li",{}),(0,r.jsx)("li",{}),(0,r.jsx)("li",{}),(0,r.jsx)("li",{}),(0,r.jsx)("li",{})]})},i=n(1664),s=n.n(i),a=n(1163),u=n(4379);function l(e){let{searchText:t,changeSearch:n}=e,i=()=>{var e=document.createElement("textarea");e.innerText=l,document.body.appendChild(e),e.select(),document.execCommand("copy"),e.remove(),u.fn.info("URL successfully copied to clipboard","Copy URL",4e3)},l="https://registry.kasmweb.com/list.json",c=(0,a.useRouter)();return(0,r.jsxs)("header",{className:"relative font-light overflow-hidden bg-gradient-to-tr from-slate-900 to-cyan-800 p-8 xl:px-32 text-white gap-5 md:gap-0 flex flex-wrap justify-center items-center",children:[(0,r.jsx)(o,{}),(0,r.jsxs)("div",{className:"relative z-10",children:[(0,r.jsx)("div",{className:"text-3xl",children:"Kasm Technologies"}),(0,r.jsxs)("div",{className:"text-sm uppercase w-full flex justify-between",children:[(0,r.jsx)("span",{className:"opacity-70",children:"A"}),(0,r.jsx)("span",{className:"opacity-70",children:"p"}),(0,r.jsx)("span",{className:"opacity-70",children:"p"}),(0,r.jsx)("span",{className:"opacity-70",children:"l"}),(0,r.jsx)("span",{className:"opacity-70",children:"i"}),(0,r.jsx)("span",{className:"opacity-70",children:"c"}),(0,r.jsx)("span",{className:"opacity-70",children:"a"}),(0,r.jsx)("span",{className:"opacity-70",children:"t"}),(0,r.jsx)("span",{className:"opacity-70",children:"i"}),(0,r.jsx)("span",{className:"opacity-70",children:"o"}),(0,r.jsx)("span",{className:"opacity-70",children:"n"}),(0,r.jsx)("span",{children:"\xa0"}),(0,r.jsx)("span",{className:"opacity-40",children:"D"}),(0,r.jsx)("span",{className:"opacity-40",children:"a"}),(0,r.jsx)("span",{className:"opacity-40",children:"t"}),(0,r.jsx)("span",{className:"opacity-40",children:"a"}),(0,r.jsx)("span",{className:"opacity-40",children:"b"}),(0,r.jsx)("span",{className:"opacity-40",children:"a"}),(0,r.jsx)("span",{className:"opacity-40",children:"s"}),(0,r.jsx)("span",{className:"opacity-40",children:"e"})]})]}),(0,r.jsxs)("nav",{className:"relative z-10 mx-12",children:[(0,r.jsx)(s(),{href:"/",className:"p-4 inline-block rounded-full border border-solid"+("/"==c.pathname?" border-white/30":" border-transparent"),children:"Library"}),(0,r.jsx)(s(),{href:"/addapp",className:"p-4 inline-block rounded-full border border-solid"+("/addapp"==c.pathname?" bg-black/10 border-white/30":" border-transparent"),children:"Add App"})]}),(0,r.jsx)("div",{className:"grow flex justify-center relative z-10",children:(0,r.jsx)("div",{className:"bg-black/10 shadow border border-1 border-white/30 rounded flex w-full max-w-md",children:(0,r.jsx)("input",{name:"search",className:"bg-transparent shadow-inner text-lg font-light w-full p-4 placeholder:text-white/40",placeholder:"Search for application",type:"text",value:t,onChange:n})})}),(0,r.jsxs)("button",{className:"p-4 relative z-10 px-5 bg-cyan-700 border-t border-white/20 border-solid hover:bg-slate-900 transition shadow-lg m-2 rounded items-center text-white/70 flex cursor-pointer",onClick(){i()},children:[(0,r.jsx)("span",{className:"mr-3",children:"App Registry Link"}),(0,r.jsx)("svg",{style:{height:"14px",fill:"#fff"},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:(0,r.jsx)("path",{d:"M224 0c-35.3 0-64 28.7-64 64V288c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H224zM64 160c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H288c35.3 0 64-28.7 64-64V384H288v64H64V224h64V160H64z"})})]})]})}function c(){return(0,r.jsx)("footer",{})}function f(e){let{children:t,searchText:n,changeSearch:o}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l,{searchText:n,changeSearch:o}),(0,r.jsx)("main",{children:t}),(0,r.jsx)(c,{}),(0,r.jsx)(u.mh,{})]})}n(144);var p=n(7294),d=function(e){let{Component:t,pageProps:n}=e,[o,i]=(0,p.useState)(""),s=e=>{i(e.target.value)};return(0,r.jsx)(f,{searchText:o,changeSearch:s,children:(0,r.jsx)(t,{searchText:o,...n})})}},5293:function(e){!function(){"use strict";var t={864:function(e){var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise(function(n,r){function o(n){e.removeListener(t,i),r(n)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}y(e,t,i,{once:!0}),"error"!==t&&"function"==typeof e.on&&y(e,"error",o,{once:!0})})},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var s=10;function a(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function l(e,t,n,r){if(a(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),s=i[t]),void 0===s)s=i[t]=n,++e._eventsCount;else if("function"==typeof s?s=i[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(o=u(e))>0&&s.length>o&&!s.warned){s.warned=!0;var o,i,s,l=Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,console&&console.warn&&console.warn(l)}return e}function c(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=c.bind(r);return o.listener=n,r.wrapFn=o,o}function p(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=Array(e.length),n=0;n0&&(s=t[0]),s instanceof Error)throw s;var s,a=Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)r(u,this,t);else for(var l=u.length,c=h(u,l),n=0;n=0;i--)if(n[i]===t||n[i].listener===t){s=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return p(this,e,!0)},i.prototype.rawListeners=function(e){return p(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},i.prototype.listenerCount=d,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}},s=!0;try{t[e](i,i.exports,r),s=!1}finally{s&&delete n[e]}return i.exports}r.ab="//";var o=r(864);e.exports=o}()},144:function(){},6774:function(){},1664:function(e,t,n){e.exports=n(1551)},1163:function(e,t,n){e.exports=n(880)},2703:function(e,t,n){"use strict";var r=n(414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,s){if(s!==r){var a=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},5697:function(e,t,n){e.exports=n(2703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9230:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n(7294)),i=a(n(5697)),s=a(n(4184));function a(e){return e&&e.__esModule?e:{default:e}}function u(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}n.d(t,{Z:function(){return r}})},9611:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,{Z:function(){return r}})}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[774,179],function(){return t(1118),t(880)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/_app-28b884be4cfbf041.js b/_next/static/chunks/pages/_app-28b884be4cfbf041.js new file mode 100644 index 0000000..ca2a06e --- /dev/null +++ b/_next/static/chunks/pages/_app-28b884be4cfbf041.js @@ -0,0 +1,5 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{4184:function(e,t){var n; /*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/ !function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t{});let o=r&&void 0!==r.locale?r.locale:e&&e.locale;d[t+"%"+n+(o?"%"+o:"")]=!0}let y=i.default.forwardRef(function(e,t){let n,r;let{href:y,as:v,children:m,prefetch:b,passHref:x,replace:g,shallow:E,scroll:O,locale:j,onClick:C,onMouseEnter:_,onTouchStart:N,legacyBehavior:w=!0!==Boolean(!0)}=e,R=o(e,["href","as","children","prefetch","passHref","replace","shallow","scroll","locale","onClick","onMouseEnter","onTouchStart","legacyBehavior"]);n=m,w&&("string"==typeof n||"number"==typeof n)&&(n=i.default.createElement("a",null,n));let S=!1!==b,L=i.default.useContext(u.RouterContext),T=i.default.useContext(l.AppRouterContext);T&&(L=T);let{href:P,as:k}=i.default.useMemo(()=>{let[e,t]=s.resolveHref(L,y,!0);return{href:e,as:v?s.resolveHref(L,v):t||e}},[L,y,v]),M=i.default.useRef(P),A=i.default.useRef(k);w&&(r=i.default.Children.only(n));let D=w?r&&"object"==typeof r&&r.ref:t,[H,I,U]=c.useIntersection({rootMargin:"200px"}),V=i.default.useCallback(e=>{(A.current!==k||M.current!==P)&&(U(),A.current=k,M.current=P),H(e),D&&("function"==typeof D?D(e):"object"==typeof D&&(D.current=e))},[k,D,P,U,H]);i.default.useEffect(()=>{let e=I&&S&&s.isLocalURL(P),t=void 0!==j?j:L&&L.locale,n=d[P+"%"+k+(t?"%"+t:"")];e&&!n&&h(L,P,k,{locale:t})},[k,P,I,j,S,L]);let q={ref:V,onClick(e){w||"function"!=typeof C||C(e),w&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),e.defaultPrevented||function(e,t,n,r,o,a,u,l,c,f){let{nodeName:p}=e.currentTarget,d="A"===p.toUpperCase();if(d&&(function(e){let{target:t}=e.currentTarget;return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!s.isLocalURL(n)))return;e.preventDefault();let h=()=>{"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:a,locale:l,scroll:u}):t[o?"replace":"push"](r||n,{forceOptimisticNavigation:!f})};c?i.default.startTransition(h):h()}(e,L,P,k,g,E,O,j,Boolean(T),S)},onMouseEnter(e){w||"function"!=typeof _||_(e),w&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),!(!S&&T)&&s.isLocalURL(P)&&h(L,P,k,{priority:!0})},onTouchStart(e){w||"function"!=typeof N||N(e),w&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),!(!S&&T)&&s.isLocalURL(P)&&h(L,P,k,{priority:!0})}};if(!w||x||"a"===r.type&&!("href"in r.props)){let F=void 0!==j?j:L&&L.locale,Z=L&&L.isLocaleDomain&&f.getDomainLocale(k,F,L.locales,L.domainLocales);q.href=Z||p.addBasePath(a.addLocale(k,F,L&&L.defaultLocale))}return w?i.default.cloneElement(r,q):i.default.createElement("a",Object.assign({},R,q),n)});t.default=y,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9246:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useIntersection=function(e){let{rootRef:t,rootMargin:n,disabled:u}=e,l=u||!i,[c,f]=r.useState(!1),[p,d]=r.useState(null);r.useEffect(()=>{if(i){if(!l&&!c&&p&&p.tagName){let e=function(e,t,n){let{id:r,observer:o,elements:i}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=a.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=s.get(r)))return t;let o=new Map,i=new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e);return t={id:n,observer:i,elements:o},a.push(n),s.set(n,t),t}(n);return i.set(e,t),o.observe(e),function(){if(i.delete(e),o.unobserve(e),0===i.size){o.disconnect(),s.delete(r);let t=a.findIndex(e=>e.root===r.root&&e.margin===r.margin);t>-1&&a.splice(t,1)}}}(p,e=>e&&f(e),{root:null==t?void 0:t.current,rootMargin:n});return e}}else if(!c){let r=o.requestIdleCallback(()=>f(!0));return()=>o.cancelIdleCallback(r)}},[p,l,n,t,c]);let h=r.useCallback(()=>{f(!1)},[]);return[d,c,h]};var r=n(7294),o=n(4686);let i="function"==typeof IntersectionObserver,s=new Map,a=[];("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8245:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TemplateContext=t.GlobalLayoutRouterContext=t.LayoutRouterContext=t.AppRouterContext=void 0;var r=(0,n(2648).Z)(n(7294));let o=r.default.createContext(null);t.AppRouterContext=o;let i=r.default.createContext(null);t.LayoutRouterContext=i;let s=r.default.createContext(null);t.GlobalLayoutRouterContext=s;let a=r.default.createContext(null);t.TemplateContext=a},8805:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var r=n(5893);n(6774);var o=function(){return(0,r.jsxs)("ul",{className:"bg-bubbles",children:[(0,r.jsx)("li",{}),(0,r.jsx)("li",{}),(0,r.jsx)("li",{}),(0,r.jsx)("li",{}),(0,r.jsx)("li",{}),(0,r.jsx)("li",{}),(0,r.jsx)("li",{}),(0,r.jsx)("li",{}),(0,r.jsx)("li",{}),(0,r.jsx)("li",{})]})},i=n(1664),s=n.n(i),a=n(1163),u=n(4379);function l(e){let{searchText:t,changeSearch:n}=e,i=()=>{var e=document.createElement("textarea");e.innerText=l,document.body.appendChild(e),e.select(),document.execCommand("copy"),e.remove(),u.fn.info("URL successfully copied to clipboard","Copy URL",4e3)},l="https://registry.kasmweb.com/list.json",c=(0,a.useRouter)();return(0,r.jsxs)("header",{className:"relative font-light overflow-hidden bg-gradient-to-tr from-slate-900 to-cyan-800 p-8 xl:px-32 text-white gap-5 md:gap-0 flex flex-wrap justify-center items-center",children:[(0,r.jsx)(o,{}),(0,r.jsxs)("div",{className:"relative z-10",children:[(0,r.jsx)("div",{className:"text-3xl",children:"Kasm Technologies"}),(0,r.jsxs)("div",{className:"text-sm uppercase w-full flex justify-between",children:[(0,r.jsx)("span",{className:"opacity-70",children:"A"}),(0,r.jsx)("span",{className:"opacity-70",children:"p"}),(0,r.jsx)("span",{className:"opacity-70",children:"p"}),(0,r.jsx)("span",{className:"opacity-70",children:"l"}),(0,r.jsx)("span",{className:"opacity-70",children:"i"}),(0,r.jsx)("span",{className:"opacity-70",children:"c"}),(0,r.jsx)("span",{className:"opacity-70",children:"a"}),(0,r.jsx)("span",{className:"opacity-70",children:"t"}),(0,r.jsx)("span",{className:"opacity-70",children:"i"}),(0,r.jsx)("span",{className:"opacity-70",children:"o"}),(0,r.jsx)("span",{className:"opacity-70",children:"n"}),(0,r.jsx)("span",{children:"\xa0"}),(0,r.jsx)("span",{className:"opacity-40",children:"D"}),(0,r.jsx)("span",{className:"opacity-40",children:"a"}),(0,r.jsx)("span",{className:"opacity-40",children:"t"}),(0,r.jsx)("span",{className:"opacity-40",children:"a"}),(0,r.jsx)("span",{className:"opacity-40",children:"b"}),(0,r.jsx)("span",{className:"opacity-40",children:"a"}),(0,r.jsx)("span",{className:"opacity-40",children:"s"}),(0,r.jsx)("span",{className:"opacity-40",children:"e"})]})]}),(0,r.jsxs)("nav",{className:"relative z-10 mx-12",children:[(0,r.jsx)(s(),{href:"/",className:"p-4 inline-block rounded-full border border-solid"+("/"==c.pathname?" border-white/30":" border-transparent"),children:"Library"}),(0,r.jsx)(s(),{href:"/addapp",className:"p-4 inline-block rounded-full border border-solid"+(c.pathname.startsWith("/addapp")?" bg-black/10 border-white/30":" border-transparent"),children:"Add App"})]}),(0,r.jsx)("div",{className:"grow flex justify-center relative z-10",children:(0,r.jsx)("div",{className:"bg-black/10 shadow border border-1 border-white/30 rounded flex w-full max-w-md",children:(0,r.jsx)("input",{name:"search",className:"bg-transparent shadow-inner text-lg font-light w-full p-4 placeholder:text-white/40",placeholder:"Search for application",type:"text",value:t,onChange:n})})}),(0,r.jsxs)("button",{className:"p-4 relative z-10 px-5 bg-cyan-700 border-t border-white/20 border-solid hover:bg-slate-900 transition shadow-lg m-2 rounded items-center text-white/70 flex cursor-pointer",onClick(){i()},children:[(0,r.jsx)("span",{className:"mr-3",children:"App Registry Link"}),(0,r.jsx)("svg",{style:{height:"14px",fill:"#fff"},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:(0,r.jsx)("path",{d:"M224 0c-35.3 0-64 28.7-64 64V288c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H224zM64 160c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H288c35.3 0 64-28.7 64-64V384H288v64H64V224h64V160H64z"})})]})]})}function c(){return(0,r.jsx)("footer",{})}function f(e){let{children:t,searchText:n,changeSearch:o}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l,{searchText:n,changeSearch:o}),(0,r.jsx)("main",{children:t}),(0,r.jsx)(c,{}),(0,r.jsx)(u.mh,{})]})}n(144);var p=n(7294),d=function(e){let{Component:t,pageProps:n}=e,[o,i]=(0,p.useState)(""),s=e=>{i(e.target.value)};return(0,r.jsx)(f,{searchText:o,changeSearch:s,children:(0,r.jsx)(t,{searchText:o,...n})})}},5293:function(e){!function(){"use strict";var t={864:function(e){var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise(function(n,r){function o(n){e.removeListener(t,i),r(n)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}y(e,t,i,{once:!0}),"error"!==t&&"function"==typeof e.on&&y(e,"error",o,{once:!0})})},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var s=10;function a(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function l(e,t,n,r){if(a(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),s=i[t]),void 0===s)s=i[t]=n,++e._eventsCount;else if("function"==typeof s?s=i[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(o=u(e))>0&&s.length>o&&!s.warned){s.warned=!0;var o,i,s,l=Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,console&&console.warn&&console.warn(l)}return e}function c(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=c.bind(r);return o.listener=n,r.wrapFn=o,o}function p(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=Array(e.length),n=0;n0&&(s=t[0]),s instanceof Error)throw s;var s,a=Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)r(u,this,t);else for(var l=u.length,c=h(u,l),n=0;n=0;i--)if(n[i]===t||n[i].listener===t){s=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return p(this,e,!0)},i.prototype.rawListeners=function(e){return p(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},i.prototype.listenerCount=d,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}},s=!0;try{t[e](i,i.exports,r),s=!1}finally{s&&delete n[e]}return i.exports}r.ab="//";var o=r(864);e.exports=o}()},144:function(){},6774:function(){},1664:function(e,t,n){e.exports=n(1551)},1163:function(e,t,n){e.exports=n(880)},2703:function(e,t,n){"use strict";var r=n(414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,s){if(s!==r){var a=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},5697:function(e,t,n){e.exports=n(2703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9230:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n(7294)),i=a(n(5697)),s=a(n(4184));function a(e){return e&&e.__esModule?e:{default:e}}function u(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}n.d(t,{Z:function(){return r}})},9611:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,{Z:function(){return r}})}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[774,179],function(){return t(1118),t(880)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/addapp/[[...app]]-60c9cedc56d2e877.js b/_next/static/chunks/pages/addapp/[[...app]]-60c9cedc56d2e877.js new file mode 100644 index 0000000..427aa78 --- /dev/null +++ b/_next/static/chunks/pages/addapp/[[...app]]-60c9cedc56d2e877.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[542],{7056:function(e,l,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/addapp/[[...app]]",function(){return a(7811)}])},7811: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),n=a.n(t),i=a(7294),r=a(3162),o=a(8813),c=a(3157),d=a(1163),u={hO:[]},m=!0;function p(e){let{app:l}=e;function t(e){var l=e.toString().toLowerCase();return(l=(l=(l=l.split(/\&+/).join("-and-")).split(/[^a-z0-9]/).join("-")).split(/-+/).join("-")).trim("-")}let m=()=>{var e=a(5733);let l=new e,s=l.folder(O.friendly_name);if(s.file("app.json",JSON.stringify(O,null,2)),N)s.file(O.image_src,N.file);else if(k){let n=fetch(k).then(e=>e.blob());s.file(O.image_src,n)}l.generateAsync({type:"blob"}).then(function(e){(0,r.saveAs)(e,t(O.friendly_name)+".zip")})},p=(0,i.useRef)(null),h=(0,i.useRef)(null),x=(0,i.useRef)(null),[b,g]=(0,i.useState)(null),[v,j]=(0,i.useState)(null),[N,y]=(0,i.useState)(null),[w,_]=(0,i.useState)("png"),[k,C]=(0,i.useState)(null),S={friendly_name:null,image_src:null,description:null,name:null,cores:1,memory:1024,gpu_count:0,cpu_allocation_method:"Inherit",docker_registry:"https://index.docker.io/v1/",categories:[],require_gpu:!1,enabled:!0,image_type:"Container"},[O,A]=(0,i.useState)(S);(0,d.useRouter)(),(0,i.useEffect)(()=>{if(console.log(l),null===l)x.current.value="",p.current.value="",h.current.value="",g(null),j(null),y(null),A(S);else if(l&&l[0]){let e=u.hO.find(e=>e.name===atob(l[0]));if(delete e.sha,x.current.value=e.description,p.current.value=e.name,h.current.value=e.friendly_name,e.categories){let a=[];e.categories.map(e=>a.push({label:e,value:e})),g(a)}if(e.architecture){let s=[];e.architecture.map(e=>s.push({label:e,value:e})),j(s)}C("../../icons/"+e.image_src),A({...O,...e})}},[l]);let E={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(O&&O.friendly_name){let e={...O};e.image_src=t(e.friendly_name)+"."+w,A(e)}},[w]);let R=e=>{let l={...O};l.categories=e.map(e=>e.value),A(l);let a=[];l.categories.map(e=>a.push({label:e,value:e})),g(a)},I=e=>{let l={...O};l.architecture=e.map(e=>e.value),A(l);let a=[];l.architecture.map(e=>a.push({label:e,value:e})),j(a)},L=e=>{let l={...O};l[e.target.name]=e.target.value,"icon"===e.target.name&&(delete l.icon,y({value:e.target.value,file:e.target.files[0]}),_(e.target.value.substr(e.target.value.lastIndexOf(".")+1)),C(null)),l.friendly_name&&(l.image_src=t(l.friendly_name)+"."+w),A(l)};return(0,s.jsxs)("div",{className:"",children:[(0,s.jsxs)(n(),{children:[(0,s.jsx)("title",{children:"Kasm Apps"}),(0,s.jsx)("meta",{name:"description",content:"List of apps 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 Application"}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("p",{className:"mb-8 opacity-70",children:"This will help you generate the JSON file you need to upload to the App directory."}),(0,s.jsx)("label",{className:"mb-2 font-medium",children:"Icon"}),(0,s.jsx)("input",{type:"file",name:"icon",onChange:L,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:h,name:"friendly_name",onChange:L,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:R,styles:E,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:x,name:"description",onChange:L,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 application"}),(0,s.jsx)("label",{className:"mb-2 font-medium",children:"Docker Image"}),(0,s.jsx)("input",{ref:p,name:"name",onChange:L,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:E,value:v}),(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,{app:O,icon:N,inlineImage:k}),(0,s.jsx)("pre",{className:"my-8 overflow-y-auto text-xs",children:JSON.stringify({...O},null,2)}),(0,s.jsx)("button",{onClick:m,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{app:l,icon:a,inlineImage:t}=e,[n,r]=(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"+(n?" -translate-y-1/2":""),children:[(0,s.jsxs)("div",{onClick:()=>r(!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:["Kasm Technologies"," ",(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:()=>r(!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=7056)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/addapp/[[...app]]-88acc1b83c0b9a49.js b/_next/static/chunks/pages/addapp/[[...app]]-88acc1b83c0b9a49.js deleted file mode 100644 index a18a6ec..0000000 --- a/_next/static/chunks/pages/addapp/[[...app]]-88acc1b83c0b9a49.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[542],{7056:function(e,l,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/addapp/[[...app]]",function(){return a(6037)}])},6037:function(e,l,a){"use strict";a.r(l),a.d(l,{default:function(){return m}});var s=a(5893),t=a(9008),i=a.n(t),n=a(7294),r=a(3162),o=a(8813),c=a(3157),d=a(1163);function m(){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 l=()=>{var l=a(5733);let s=new l,t=s.folder(_.friendly_name);if(t.file("app.json",JSON.stringify(_,null,2)),g)t.file(_.image_src,g.file);else if(N){let i=fetch(N).then(e=>e.blob());t.file(_.image_src,i)}s.generateAsync({type:"blob"}).then(function(l){(0,r.saveAs)(l,e(_.friendly_name)+".zip")})},t=(0,n.useRef)(null),m=(0,n.useRef)(null),p=(0,n.useRef)(null),[f,h]=(0,n.useState)(null),[x,b]=(0,n.useState)(null),[g,v]=(0,n.useState)(null),[j,y]=(0,n.useState)("png"),[N,w]=(0,n.useState)(null),[_,k]=(0,n.useState)({friendly_name:null,image_src:null,description:null,name:null,cores:1,memory:1024,gpu_count:0,cpu_allocation_method:"Inherit",docker_registry:"https://index.docker.io/v1/",categories:[],require_gpu:!1,enabled:!0,image_type:"Container"}),C=(0,d.useRouter)(),{app:S}=C.query;(0,n.useEffect)(()=>{fetch("../../list.json").then(e=>e.json()).then(e=>{if(S&&S[0]){let l=e.apps.find(e=>e.name===atob(S[0]));if(delete l.sha,p.current.value=l.description,t.current.value=l.name,m.current.value=l.friendly_name,l.categories){let a=[];l.categories.map(e=>a.push({label:e,value:e})),h(a)}if(l.architecture){let s=[];l.architecture.map(e=>s.push({label:e,value:e})),b(s)}w("../../icons/"+l.image_src),k({..._,...l})}})},[S]);let A={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(_&&_.friendly_name){let l={..._};l.image_src=e(l.friendly_name)+"."+j,k(l)}},[j]);let E=e=>{let l={..._};l.categories=e.map(e=>e.value),k(l);let a=[];l.categories.map(e=>a.push({label:e,value:e})),h(a)},O=e=>{let l={..._};l.architecture=e.map(e=>e.value),k(l);let a=[];l.architecture.map(e=>a.push({label:e,value:e})),b(a)},R=l=>{let a={..._};a[l.target.name]=l.target.value,"icon"===l.target.name&&(delete a.icon,v({value:l.target.value,file:l.target.files[0]}),y(l.target.value.substr(l.target.value.lastIndexOf(".")+1))),a.friendly_name&&(a.image_src=e(a.friendly_name)+"."+j),k(a)};return(0,s.jsxs)("div",{className:"",children:[(0,s.jsxs)(i(),{children:[(0,s.jsx)("title",{children:"Kasm Apps"}),(0,s.jsx)("meta",{name:"description",content:"List of apps 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 Application"}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("p",{className:"mb-8 opacity-70",children:"This will help you generate the JSON file you need to upload to the App directory."}),(0,s.jsx)("label",{className:"mb-2 font-medium",children:"Icon"}),(0,s.jsx)("input",{type:"file",name:"icon",onChange:R,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:R,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,{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:E,styles:A,value:f}),(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:R,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 application"}),(0,s.jsx)("label",{className:"mb-2 font-medium",children:"Docker Image"}),(0,s.jsx)("input",{ref:t,name:"name",onChange:R,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,{name:"architecture",isMulti:!0,options:[{value:"amd64",label:"amd64"},{value:"arm64",label:"arm64"}],onChange:O,styles:A,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)(u,{app:_,icon:g,inlineImage:N}),(0,s.jsx)("pre",{className:"my-8 overflow-y-auto text-xs",children:JSON.stringify({..._},null,2)}),(0,s.jsx)("button",{onClick:l,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 u(e){let{app:l,icon:a,inlineImage:t}=e,[i,r]=(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"+(i?" -translate-y-1/2":""),children:[(0,s.jsxs)("div",{onClick:()=>r(!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=>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:["Kasm Technologies"," ",(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:()=>r(!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=7056)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/addapp/[[...app]]/index.html b/addapp/[[...app]]/index.html deleted file mode 100644 index a281ca3..0000000 --- a/addapp/[[...app]]/index.html +++ /dev/null @@ -1,15 +0,0 @@ -Kasm Apps
Kasm Technologies
Application Database

Add Application

This will help you generate the JSON file you need to upload to the App directory.

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 application

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

Select...

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

Friendly Name
Kasm Technologies
Edit
{
-  "friendly_name": null,
-  "image_src": null,
-  "description": null,
-  "name": null,
-  "cores": 1,
-  "memory": 1024,
-  "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/addapp/index.html b/addapp/index.html new file mode 100644 index 0000000..13253cc --- /dev/null +++ b/addapp/index.html @@ -0,0 +1,15 @@ +Kasm Apps
Kasm Technologies
Application Database

Add Application

This will help you generate the JSON file you need to upload to the App directory.

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 application

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

Select...

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

Friendly Name
Kasm Technologies
Edit
{
+  "friendly_name": null,
+  "image_src": null,
+  "description": null,
+  "name": null,
+  "cores": 1,
+  "memory": 1024,
+  "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/index.html b/index.html index 341f404..69ce7c6 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -Kasm Apps
Kasm Technologies
Application Database

Applications:

No applications found

\ No newline at end of file +Kasm Apps
Kasm Technologies
Application Database

Applications:

No applications found

\ No newline at end of file diff --git a/list.json b/list.json index fd61c89..4e212e0 100644 --- a/list.json +++ b/list.json @@ -1 +1 @@ -{"name":"Kasm Technologies","appcount":0,"schema_version":1,"icon":"/img/logo.svg","description":"The official store for Kasm supported applications.","list_url":"https://registry.kasmweb.com/list.json","contact_url":"https://kasmweb.com/support","modified":1673343769304,"apps":[]} \ No newline at end of file +{"name":"Kasm Technologies","appcount":0,"schema_version":1,"icon":"/img/logo.svg","description":"The official store for Kasm supported applications.","list_url":"https://registry.kasmweb.com/list.json","contact_url":"https://kasmweb.com/support","modified":1673358424073,"apps":[]} \ No newline at end of file