File tree Expand file tree Collapse file tree 7 files changed +34
-36
lines changed
web/scss/components/Hello Expand file tree Collapse file tree 7 files changed +34
-36
lines changed Original file line number Diff line number Diff line change @@ -8,38 +8,32 @@ layout:
88 2 :
99 position : default
1010 maximized : true
11- 3 :
12- position : default
13- maximized : true
1411 inverseColors : true
1512---
1613
17- <img alt =" CodeFlare Icon " src =" @kui-shell/client/icons/svg/codeflare.svg " width =" 80 " height =" 80 " />
18-
19- ---
20-
21- <!-- TODO find some content to place here? -->
14+ <!-- <img alt="CodeFlare Icon" src="@kui-shell/client/icons/svg/codeflare.svg" width="80" height="80" /> -->
2215
23- ---
24-
25- === "Job Runs"
16+ === "Profiles"
2617
2718 ```shell
2819 ---
2920 execute: now
3021 maximize: true
3122 outputOnly: true
3223 ---
33- codeflare get run
24+ codeflare get profile
3425 ```
3526
36- === "Profiles"
27+ ---
28+
29+ === "Job Runs"
3730
3831 ```shell
3932 ---
4033 execute: now
4134 maximize: true
4235 outputOnly: true
4336 ---
44- codeflare get profile
37+ codeflare get run
4538 ```
39+
Original file line number Diff line number Diff line change @@ -26,8 +26,6 @@ import { productTitle } from "@kui-shell/client/config.d/name.json"
2626
2727import CodeFlareWidget from "./CodeFlareWidget"
2828
29- import "../web/scss/guidebooks/welcome.scss"
30-
3129/**
3230 * We will set this bit when the user dismisses the Welcome to Kui
3331 * tab, so as to avoid opening it again and bothering that user for
Original file line number Diff line number Diff line change 1414 * limitations under the License.
1515 */
1616
17- @import " @kui-shell/plugin-client-common/web/scss/components/Terminal/mixins" ;
18- @import " @kui-shell/plugin-client-common/web/scss/components/TopLevelTab/mixins" ;
17+ import { Arguments } from "@kui-shell/core"
1918
20- @include TopLevelTab {
21- & .codeflare--welcome-guidebook {
22- @include Split (3 ) {
23- grid-template-rows : 80px 1fr ;
24- grid-template-columns : 80px 1fr ;
25- grid-template-areas : " T1 T2" " T3 T3" ;
26- }
27- }
19+ import "../../web/scss/components/Hello/_index.scss"
20+
21+ export default function hello ( args : Arguments ) {
22+ return args . REPL . qexec ( "commentary --readonly -f /kui/client/hello.md" )
2823}
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ export default function registerCodeflareCommands(registrar: Registrar) {
4747 registrar . listen ( "/codeflare/get/run" , ( args ) => import ( "./run/get" ) . then ( ( _ ) => _ . default ( args ) ) , { needsUI : true } )
4848
4949 // launch our hello guidebook
50- registrar . listen ( "/codeflare/hello" , ( args ) => args . REPL . qexec ( "commentary --readonly -f /kui/client/welcome.md" ) , {
50+ registrar . listen ( "/codeflare/hello" , ( args ) => import ( "./hello" ) . then ( ( _ ) => _ . default ( args ) ) , {
5151 needsUI : true ,
5252 outputOnly : true ,
5353 } )
Original file line number Diff line number Diff line change @@ -19,8 +19,6 @@ import { Profiles } from "madwizard"
1919import { Arguments } from "@kui-shell/core"
2020import { Grid , GridItem , Tile } from "@patternfly/react-core"
2121
22- import "../../../web/scss/components/Welcome/_index.scss"
23-
2422// eslint-disable-next-line @typescript-eslint/no-unused-vars
2523export default async function getProfiles ( args : Arguments ) {
2624 const profiles = await Profiles . list ( { } )
@@ -30,7 +28,7 @@ export default async function getProfiles(args: Arguments) {
3028 < Grid hasGutter className = "codeflare--grid" >
3129 { profiles . map ( ( _ ) => (
3230 < GridItem key = { _ . profile . name } >
33- < Tile className = "codeflare--tile" title = { _ . profile . name } />
31+ < Tile isSelected className = "codeflare--tile" title = { _ . profile . name } />
3432 </ GridItem >
3533 ) ) }
3634 </ Grid >
Original file line number Diff line number Diff line change @@ -24,8 +24,6 @@ import { Arguments, ReactResponse } from "@kui-shell/core"
2424import { width , height } from "../dashboard"
2525import { getJobDefinition } from "../description"
2626
27- import "../../../web/scss/components/Welcome/_index.scss"
28-
2927async function openDashboard ( this : Arguments [ "REPL" ] , evt : React . MouseEvent < HTMLDivElement > ) {
3028 const runDir = evt . currentTarget . getAttribute ( "data-run-dir" )
3129 if ( runDir ) {
Original file line number Diff line number Diff line change 1414 * limitations under the License.
1515 */
1616
17+ @import " @kui-shell/plugin-client-common/web/scss/components/Terminal/mixins" ;
18+ @import " @kui-shell/plugin-client-common/web/scss/components/TopLevelTab/mixins" ;
19+
20+ @include TopLevelTab {
21+ & .codeflare--welcome-guidebook {
22+ @include Split (2 ) {
23+ grid-template-rows : 1fr ;
24+ grid-template-columns : 1fr 4fr ;
25+ grid-template-areas : " T1 T2" ;
26+ }
27+ }
28+ }
29+
1730$gap : 3px ;
31+ $cell : 1.5em ;
1832
1933@mixin Grid {
20- .codeflare--grid {
34+ .pf-l-grid. codeflare--grid {
2135 @content ;
2236 }
2337}
@@ -39,13 +53,14 @@ $gap: 3px;
3953 padding : 1em ;
4054 flex : 1 ;
4155 grid-auto-rows : max-content ;
42- grid-template-columns : repeat (auto-fit , minmax ( 25 px , max-content ) );
56+ grid-template-columns : repeat (auto-fit , $cell );
4357}
4458
4559@include Mini {
46- grid-gap : 2 * $gap ;
60+ grid-gap : $gap ;
4761 @include Tile {
4862 padding : $gap ;
63+ height : $cell ;
4964 }
5065}
5166
@@ -81,5 +96,5 @@ $gap: 3px;
8196
8297.pf-c-tile__title {
8398 color : var (--color-tile-title );
84- font-weight : 500 ;
99+ font-size : 0.6875 rem ;
85100}
You can’t perform that action at this time.
0 commit comments