-
Notifications
You must be signed in to change notification settings - Fork 0
/
component---src-pages-index-js-7743c808181892447581.js
2 lines (2 loc) · 15.2 KB
/
component---src-pages-index-js-7743c808181892447581.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{169:function(e,t,a){"use strict";a.r(t);var r=a(0),n=a.n(r),i=a(181),l=a(176),c=a(182),s=a.n(c);var o=function(){return n.a.createElement(s.a,null,n.a.createElement("link",{href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono|IBM+Plex+Sans:300,400,700&display=swap",rel:"stylesheet"}),n.a.createElement("link",{href:"https://1.www.s81c.com/common/v18/css/www.css",rel:"stylesheet"}),n.a.createElement("link",{href:"https://1.www.s81c.com/common/v19a/css/www.css",rel:"stylesheet"}),n.a.createElement("script",{src:"https://code.jquery.com/jquery-3.4.1.min.js"}),n.a.createElement("script",{src:"https://1.www.s81c.com/common/v18/js/www.js"}),n.a.createElement("script",{src:"https://1.www.s81c.com/common/v19a/js/www.js"}))},m=a(251),u=a.n(m),d=function(e){var t=window.Countly=window.Countly||{};t.q=t.q||[],t.q.push(["add_event",e])},p=function(e){var t=e.title,a=e.command,r=n.a.useState(!1),i=r[0],l=r[1];return n.a.createElement("div",{className:"kui-codepaste",onClick:function(e){u()(a),l(!0),setTimeout(function(){return l(!1)},2500),d({key:"copy-code",count:1,segmentation:{item:t}})}},n.a.createElement("h3",{className:"ibm-type-a"},t),n.a.createElement("button",{className:"kui-codecopy"},n.a.createElement("span",{className:"ibm-type-b ibm-type-mono kui-codecopy-content"},i?"Copied":a),n.a.createElement("img",{src:"ui/copy.svg",alt:"Copy"})))},g=(a(44),function(e){var t=n.a.Children.toArray(e.children)[0].props,a=n.a.useState({currentIndex:0,currentVideo:t.reference,currentSubtitle:t.subtitle}),r=a[0],i=a[1],l=function(t,a){t.preventDefault();var r=n.a.Children.toArray(e.children)[a].props;i({currentIndex:a,currentVideo:r.reference,currentSubtitle:r.subtitle}),d({key:"landing-tab",count:1,segmentation:{item:a}})};return n.a.createElement("div",{className:"kui-examples-bg"},n.a.createElement("section",{className:"ibm-grid-container kui-examples-container"},n.a.createElement("div",{className:"ibm-grid-col-lg-16-1"}),n.a.createElement("div",{className:"ibm-grid-col-lg-16-4 ibm-grid-col-md-8-4 ibm-grid-col-sm-4-3"},n.a.createElement("h2",{className:"ibm-type-e"},"With Kui, you can save up to 5x of your time by running a single command.")),n.a.createElement("div",{className:"ibm-grid-col-lg-11"}),n.a.createElement("div",{className:"ibm-grid-col-lg-16-1"}),n.a.createElement("div",{className:"ibm-grid-col-lg-16-14 kui-examples-tabs"},n.a.createElement("div",{className:"ibm-text-tabs"},n.a.createElement("ul",{role:"tablist",className:"ibm-tabs","aria-label":"Tab navigation"},n.a.Children.map(e.children,function(e,t){return n.a.cloneElement(e,{index:t,active:t===r.currentIndex,onClick:l})})))),n.a.createElement("div",{className:"ibm-grid-col-lg-16-1"}),n.a.createElement("div",{className:"ibm-grid-col-lg-16-1"}),n.a.createElement("div",{className:"ibm-grid-col-lg-16-14"},n.a.createElement("img",{className:"kui-examples-image",src:r.currentVideo,alt:r.currentSubtitle,width:"100%"}),n.a.createElement("p",{className:"kui-video-subtitle"},r.currentSubtitle)),n.a.createElement("div",{className:"ibm-grid-col-lg-16-1"}),n.a.createElement("div",{className:"ibm-grid-col-lg-16-1"})))}),b=function(e){var t=e.title,a=e.index,r=e.active,i=e.reference,l=e.subtitle,c=e.onClick;return n.a.createElement("li",{className:"ibm-tab",role:"presentation",onClick:function(e){return c(e,a)},index:a},n.a.createElement("a",Object.assign({},r?{"aria-selected":"true",className:"ibm-active"}:{},{role:"tab",href:i,"data-subtitle":l}),t))};a(98);var E=function(){switch(function(){var e=n.a.useState(),t=e[0],a=e[1];return n.a.useEffect(function(){var e=navigator.userAgent;e.match(/Macintosh/i)?a("macos"):e.match(/Windows/i)?a("windows"):e.match(/Linux/i)&&a("linux")},[]),t}()){case"macos":return n.a.createElement(v,{url:"https://dmg.kui-shell.org",text:"Download for macOS"});case"windows":return n.a.createElement(v,{url:"https://win32-zip.kui-shell.org",text:"Download for Windows"});case"linux":return n.a.createElement(v,{url:"https://linux-zip.kui-shell.org",text:"Download for Linux .zip"});default:return null}},v=function(e){var t=e.url,a=e.text;return n.a.createElement("a",{href:t,className:"kui-resources-link kui-download-link"},n.a.createElement("span",null,a),n.a.createElement("img",{src:"./ui/download.svg",alt:"download"}))},h=a(253),f=a.n(h),w=function(){return n.a.createElement("div",{className:"ibm-grid-col-lg-16-14"},n.a.createElement(f.a,{query:"(orientation: portrait)"},n.a.createElement("video",{muted:!0,controls:!0,className:"kui-hero-video",poster:"videos/KUI_Vertical_poster.jpg"},n.a.createElement("source",{src:"videos/KUI_Vertical.mp4",type:"video/mp4"}),"Your browser does not support the video tag.")),n.a.createElement(f.a,{query:"(orientation: landscape)"},n.a.createElement("video",{muted:!0,controls:!0,className:"kui-hero-video horizontal",poster:"videos/KUI_Horizontal_poster.jpg"},n.a.createElement("source",{src:"videos/KUI_Horizontal.mp4",type:"video/mp4"}),"Your browser does not support the video tag.")))},y=a(254),k=a.n(y),N=(a(256),a(202),a(257)),x=a.n(N),S=a(258),I=a.n(S),M=a(276),j=function(e){return!(e&&e.value&&e.lastUpdate)||Object(M.differenceInSeconds)(e.lastUpdate,new Date)>3600},C=function(e){var t=localStorage.getItem(e);return JSON.parse(t)},q=function(e,t){var a=JSON.stringify({value:t,lastUpdate:new Date});localStorage.setItem(e,a)},K=function(){var e=x()(k.a.mark(function e(){var t,a;return k.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=C("kui.lastUpdate"),j(t)){e.next=3;break}return e.abrupt("return",t.value);case 3:return e.next=5,I.a.get("https://api.github.com/repos/IBM/kui/releases/latest");case 5:if(200!==(a=e.sent).status){e.next=11;break}return q("kui.lastUpdate",a.data.name),e.abrupt("return",a.data.name);case 11:throw new Error("Error trying to get the latest Github release");case 12:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),O=function(e){var t=e.defaultVersion,a=n.a.useState({version:t}),r=a[0],i=a[1];return n.a.useEffect(function(){function e(){return(e=x()(k.a.mark(function e(){var t;return k.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,K();case 2:(t=e.sent)&&t!==r.version&&i({version:t});case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),n.a.createElement("span",null,"Version ",r.version,", Apache-2.0 License")};a(166),t.default=function(){return n.a.createElement(i.a,null,n.a.createElement(l.a,{title:"Kui",keywords:["kui","kubernetes","docker","openshift"]}),n.a.createElement(o,null),n.a.createElement("section",{className:"kui-top"},n.a.createElement("div",{className:"ibm-grid-container"},n.a.createElement("div",{className:"ibm-grid-col-lg-16-1"}),n.a.createElement("div",{className:"ibm-grid-col-lg-16-12 ibm-grid-col-md-8-6"},n.a.createElement("h2",{className:"kui-tagline"},"kui is a terminal",n.a.createElement("br",null),"with visualizations",n.a.createElement("br",null),"by and for developers",n.a.createElement("br",null))),n.a.createElement("div",{className:"ibm-grid-col-lg-16-3"}),n.a.createElement("div",{className:"ibm-grid-col-lg-16-1"}),n.a.createElement("div",{className:"ibm-grid-col-lg-16-3 kui-version ibm-type-a"},n.a.createElement("div",{className:"divider"}),n.a.createElement(O,{defaultVersion:"2.0.5"}))),n.a.createElement("div",{className:"ibm-grid-container"},n.a.createElement("div",{className:"ibm-grid-col-lg-16-1"}),n.a.createElement(w,null),n.a.createElement("div",{className:"ibm-grid-col-lg-16-1"})),n.a.createElement("div",{className:"ibm-grid-container"},n.a.createElement("div",{className:"ibm-grid-col-lg-16-1"}),n.a.createElement("ul",{className:"ibm-grid-col-lg-16-10 ibm-grid-col-md-8-4 kui-packages"},n.a.createElement(p,{title:"Bash",command:"curl -sL https://raw.githubusercontent.com/IBM/kui/master/tools/install.sh | sh"})),n.a.createElement("ul",{className:"ibm-grid-col-lg-16-4 ibm-grid-col-md-8-4 kui-links"},n.a.createElement("h3",{className:"ibm-type-a"},"Resources"),n.a.createElement(E,null),n.a.createElement("a",{href:"https://github.com/IBM/kui/releases",className:"kui-resources-link"},n.a.createElement("span",null,"All Downloads"),n.a.createElement("img",{src:"ui/pagelink.svg",alt:"Link"}))),n.a.createElement("div",{className:"ibm-grid-col-lg-16-1"}))),n.a.createElement(g,null,n.a.createElement(b,{title:"Nice output",reference:"images/nice-tables.png",subtitle:"Nicer output visualization to increase productivity"}),n.a.createElement(b,{title:"Output details",reference:"images/sidecar.png",subtitle:"Fast access to the resources details"}),n.a.createElement(b,{title:"K8s Contexts",reference:"images/contexts.png",subtitle:"Change your K8s context with 1 click"})),n.a.createElement("section",{className:"kui-marketing-container"},n.a.createElement("div",{className:"ibm-grid-container kui-marketing"},n.a.createElement("div",{className:"ibm-grid-col-lg-16-4 ibm-grid-col-md-8-4 "},n.a.createElement("h2",{className:"ibm-type-f"},"A Modern and open take on the terminal"),n.a.createElement("div",{className:"divider divider-black"})),n.a.createElement("div",{className:"ibm-grid-col-lg-16-4 ibm-grid-col-md-8-4"},n.a.createElement("div",{className:"ibm-type-b"},n.a.createElement("h3",{className:"ibm-type-b"},"Compatibility"),"Kui is designed for the open cloud. It works with any Kubernetes or OpenWhisk provider.")),n.a.createElement("div",{className:"ibm-grid-col-lg-16-4 ibm-grid-col-md-8-4"},n.a.createElement("div",{className:"ibm-type-b"},n.a.createElement("h3",{className:"ibm-type-b"},"By DevOps, for DevOps"),"Kui was created by and for developers and systems operators, based on decades of experience with terminals and consoles. We feel your pain. Try it and tell us what you think.")),n.a.createElement("div",{className:"ibm-grid-col-lg-16-4 ibm-grid-col-md-8-4"},n.a.createElement("div",{className:"ibm-type-b"},n.a.createElement("h3",{className:"ibm-type-b"},"Our commitment"),"Kui is built for stability, coded on a solid TypeScript foundation and covered by thousands of tests. We will evolve Kui rapidly, based on your feedback, and keep it flexible with an open extension mechanism.")))))}},172:function(e,t,a){var r;e.exports=(r=a(175))&&r.default||r},173:function(e,t,a){"use strict";a.d(t,"b",function(){return u});var r=a(0),n=a.n(r),i=a(5),l=a.n(i),c=a(43),s=a.n(c);a.d(t,"a",function(){return s.a});a(172);var o=n.a.createContext({});function m(e){var t=e.staticQueryData,a=e.data,r=e.query,i=e.render,l=a?a.data:t[r]&&t[r].data;return n.a.createElement(n.a.Fragment,null,l&&i(l),!l&&n.a.createElement("div",null,"Loading (StaticQuery)"))}var u=function(e){var t=e.data,a=e.query,r=e.render,i=e.children;return n.a.createElement(o.Consumer,null,function(e){return n.a.createElement(m,{data:t,query:a,render:r||i,staticQueryData:e})})};u.propTypes={data:l.a.object,query:l.a.string.isRequired,render:l.a.func,children:l.a.func}},174:function(e){e.exports={data:{site:{siteMetadata:{title:"Kui"}}}}},175:function(e,t,a){"use strict";a.r(t);a(44);var r=a(0),n=a.n(r),i=a(5),l=a.n(i),c=a(68),s=function(e){var t=e.location,a=e.pageResources;return a?n.a.createElement(c.a,Object.assign({location:t,pageResources:a},a.json)):null};s.propTypes={location:l.a.shape({pathname:l.a.string.isRequired}).isRequired},t.default=s},176:function(e,t,a){"use strict";var r=a(177),n=a(0),i=a.n(n),l=a(5),c=a.n(l),s=a(182),o=a.n(s);function m(e){var t=e.description,a=e.lang,n=e.meta,l=e.keywords,c=e.title,s=r.data.site,m=t||s.siteMetadata.description,u={"@context":"http://schema.org","@type":"SoftwareApplication",name:c,description:m,alternateName:c,applicationCategory:"Tool",about:t,audience:{audienceType:"Developers"},author:s.siteMetadata.author,keywords:l,license:"https://github.com/IBM/kui/blob/master/LICENSE",operatingSystem:["OSX","Windows","Linux"],offers:[{description:"Free",price:0,priceCurrency:"USD"}],screenshot:"https://www.kui-shell.org/images/screenshot.jpg",image:"https://www.kui-shell.org/images/screenshot.jpg"};return i.a.createElement(o.a,{htmlAttributes:{lang:a},title:c,titleTemplate:"%s",meta:[{name:"description",content:m},{property:"og:title",content:c},{property:"og:description",content:m},{property:"og:type",content:"website"},{property:"og:image",content:"https://www.kui-shell.org/images/screenshot.jpg"},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:creator",content:s.siteMetadata.author},{name:"twitter:title",content:c},{name:"twitter:description",content:m},{property:"twitter:image:src",content:"https://www.kui-shell.org/images/screenshot.jpg"}].concat(l.length>0?{name:"keywords",content:l.join(", ")}:[]).concat(n)},i.a.createElement("script",{type:"application/ld+json"},JSON.stringify(u)))}m.defaultProps={lang:"en",meta:[],keywords:[],description:""},m.propTypes={description:c.a.string,lang:c.a.string,meta:c.a.arrayOf(c.a.object),keywords:c.a.arrayOf(c.a.string),title:c.a.string.isRequired},t.a=m},177:function(e){e.exports={data:{site:{siteMetadata:{title:"Kui",description:"Kui is an open-source, graphical terminal designed for developers.",author:"@IBMResearch"}}}}},181:function(e,t,a){"use strict";var r=a(174),n=a(0),i=a.n(n),l=a(5),c=a.n(l),s=a(173),o=function(){return i.a.createElement("a",{href:"/"},"Home")},m=function(){return i.a.createElement("a",{href:"https://github.com/IBM/kui",target:"_blank",rel:"noopener noreferrer"},"GitHub")},u=function(){return i.a.createElement("a",{href:"https://github.com/IBM/kui/blob/master/docs/installation.md",target:"_blank",rel:"noopener noreferrer"},"Documentation")},d=function(){return i.a.createElement("header",{className:"kui-main-nav"},i.a.createElement("div",{className:"ibm-grid-container"},i.a.createElement("div",{className:"ibm-grid-col-lg-16-16 kui-nav-border"}),i.a.createElement("div",{className:"ibm-grid-col-lg-16-1 ibm-grid-col-md-8-1 ibm-grid-col-sm-4-1"},i.a.createElement("h1",null,"Kui_")),i.a.createElement("div",{className:"ibm-grid-col-lg-16-9 ibm-grid-col-md-8-2 ibm-grid-col-sm-4-0"}),i.a.createElement("div",{className:"ibm-grid-col-lg-16-6 ibm-grid-col-md-8-5 ibm-grid-col-sm-4-3"},i.a.createElement("button",{className:"icon-button mobile-menu"},i.a.createElement("img",{src:"ui/menu.svg",alt:"Menu"})),i.a.createElement("nav",null,i.a.createElement("ul",{className:"kui-link-list"},i.a.createElement("li",null,i.a.createElement(m,null)),i.a.createElement("li",null,i.a.createElement(u,null)))))))},p=function(){return i.a.createElement("footer",{className:"kui-footer"},i.a.createElement("div",{className:"ibm-grid-container"},i.a.createElement("div",{className:"ibm-grid-col-lg-16-12 ibm-grid-col-md-8-5"},i.a.createElement("ul",{className:"kui-link-list"},i.a.createElement("li",null,i.a.createElement(o,null)),i.a.createElement("li",null,i.a.createElement(m,null)),i.a.createElement("li",null,i.a.createElement(u,null))),i.a.createElement("small",{className:"copyright"},"2019")),i.a.createElement("div",{className:"ibm-grid-col-lg-16-4 ibm-grid-col-md-8-3 kui-madebyibm"},"Made for the world by IBM")))},g=(a(164),function(e){var t=e.children;return i.a.createElement(s.b,{query:"755544856",render:function(e){return i.a.createElement(i.a.Fragment,null,i.a.createElement(d,{siteTitle:e.site.siteMetadata.title}),i.a.createElement("main",null,t),i.a.createElement(p,{siteTitle:e.site.siteMetadata.title}))},data:r})});g.propTypes={children:c.a.node.isRequired};t.a=g}}]);
//# sourceMappingURL=component---src-pages-index-js-7743c808181892447581.js.map