This repository was archived by the owner on Jul 30, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +40
-0
lines changed
components/Client/StatusStripe
plugin-client-default/src Expand file tree Collapse file tree 3 files changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2022 The Kubernetes Authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import React from 'react'
18
+ import { homepage } from '@kui-shell/client/package.json'
19
+
20
+ import Icons from '../../spi/Icons'
21
+
22
+ export default function GitHubIcon ( ) {
23
+ return (
24
+ < a
25
+ target = "_blank"
26
+ rel = "noopener noreferrer"
27
+ title = "Visit our GitHub page"
28
+ href = { homepage }
29
+ className = "kui--status-stripe-element-clickable kui--status-stripe-element"
30
+ >
31
+ < Icons icon = "Github" className = "somewhat-larger-text" />
32
+ </ a >
33
+ )
34
+ }
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ export { default as TabContent } from './components/Client/TabContent'
36
36
export { default as TabModel , uuid as allocateTabUUID } from './components/Client/TabModel'
37
37
export { default as StatusStripe } from './components/Client/StatusStripe'
38
38
export { default as CurrentWorkingDirectory } from './components/Client/StatusStripe/CurrentWorkingDirectory'
39
+ export { default as GitHubIcon } from './components/Client/StatusStripe/GitHubIcon'
39
40
export { default as MadeWithKui } from './components/Client/StatusStripe/MadeWithKui'
40
41
export { default as SpaceFiller } from './components/Client/StatusStripe/SpaceFiller'
41
42
export { default as MeterWidgets } from './components/Client/StatusStripe/MeterWidgets'
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ import { Capabilities } from '@kui-shell/core'
20
20
import {
21
21
Kui ,
22
22
KuiProps ,
23
+ Settings ,
24
+ GitHubIcon ,
23
25
ContextWidgets ,
24
26
MeterWidgets ,
25
27
CurrentWorkingDirectory ,
@@ -80,6 +82,7 @@ export default function renderMain(props: KuiProps) {
80
82
return (
81
83
< Kui
82
84
noHelp
85
+ noSettings
83
86
version = { version }
84
87
productName = { productName }
85
88
lightweightTables
@@ -123,6 +126,8 @@ export default function renderMain(props: KuiProps) {
123
126
{ /* !isPopup && <OpenWhiskGridWidget /> */ }
124
127
{ Capabilities . inBrowser ( ) && < ProxyOfflineIndicator /> }
125
128
{ ! isPopup && ! Capabilities . inBrowser ( ) && < UpdateChecker /> }
129
+ < Settings />
130
+ < GitHubIcon />
126
131
</ MeterWidgets >
127
132
</ Kui >
128
133
)
You can’t perform that action at this time.
0 commit comments