@patternfly/quickstarts 2.2.1 → 2.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -20
- package/dist/ConsoleShared/src/components/markdown-extensions/code-extension.d.ts +7 -0
- package/dist/ConsoleShared/src/components/markdown-extensions/index.d.ts +1 -0
- package/dist/HelpTopicDrawer.d.ts +8 -2
- package/dist/QuickStartDrawer.d.ts +21 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +127 -21
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +126 -19
- package/dist/index.js.map +1 -1
- package/dist/patternfly-docs/quick-starts/design-guidelines/design-guidelines.md +105 -0
- package/dist/patternfly-docs/quick-starts/design-guidelines/img/card-elements copy.png +0 -0
- package/dist/patternfly-docs/quick-starts/design-guidelines/img/card-elements.png +0 -0
- package/dist/patternfly-docs/quick-starts/design-guidelines/img/catalog-elements.png +0 -0
- package/dist/patternfly-docs/quick-starts/design-guidelines/img/check-your-work.png +0 -0
- package/dist/patternfly-docs/quick-starts/design-guidelines/img/introduction-screen.png +0 -0
- package/dist/patternfly-docs/quick-starts/design-guidelines/img/mixed-catalog.png +0 -0
- package/dist/patternfly-docs/quick-starts/design-guidelines/img/prerequisites.png +0 -0
- package/dist/patternfly-docs/quick-starts/design-guidelines/img/qs-context.png +0 -0
- package/dist/patternfly-docs/quick-starts/design-guidelines/img/side-panel-elements.png +0 -0
- package/dist/patternfly-docs/quick-starts/design-guidelines/img/side-panel-resized.png +0 -0
- package/dist/patternfly-docs/quick-starts/design-guidelines/img/side-panel.png +0 -0
- package/dist/patternfly-docs/quick-starts/design-guidelines/img/task-no.png +0 -0
- package/dist/patternfly-docs/quick-starts/design-guidelines/img/task-yes.png +0 -0
- package/dist/patternfly-docs/quick-starts/design-guidelines/img/task.png +0 -0
- package/dist/patternfly-docs/quick-starts/examples/Basic.jsx +73 -0
- package/dist/patternfly-docs/quick-starts/examples/HelpTopic.jsx +53 -0
- package/dist/patternfly-docs/quick-starts/examples/about.md +77 -0
- package/dist/patternfly-docs/quick-starts/examples/basic.md +27 -0
- package/dist/patternfly-docs/quick-starts/examples/example-data/example-help-topics.js +173 -0
- package/dist/patternfly-docs/quick-starts/examples/example-data/example-quickstarts.js +215 -0
- package/dist/patternfly-docs/quick-starts/examples/example-data/index.js +15 -0
- package/dist/patternfly-docs/quick-starts/examples/help-topics.md +25 -0
- package/dist/patternfly-docs/quick-starts/examples/img/catalog.png +0 -0
- package/dist/patternfly-docs/quick-starts/examples/img/help-topic.png +0 -0
- package/dist/patternfly-docs/quick-starts/examples/img/side-panel.png +0 -0
- package/dist/patternfly-nested.css +11 -1
- package/dist/quickstarts-base.css +49 -11
- package/dist/quickstarts-full.es.js +451 -305
- package/dist/quickstarts-full.es.js.map +1 -1
- package/dist/quickstarts-standalone.css +5 -15
- package/dist/quickstarts-standalone.min.css +1 -1
- package/dist/quickstarts.css +49 -11
- package/dist/quickstarts.min.css +1 -1
- package/dist/utils/asciidoc-procedure-parser.d.ts +12 -0
- package/dist/utils/help-topic-types.d.ts +7 -1
- package/package.json +11 -4
- package/src/ConsoleInternal/components/_icon-and-text.scss +14 -0
- package/src/ConsoleInternal/components/_markdown-view.scss +19 -0
- package/src/ConsoleInternal/components/catalog/_catalog.scss +390 -0
- package/src/ConsoleInternal/components/markdown-view.tsx +305 -0
- package/src/ConsoleInternal/components/utils/_status-box.scss +58 -0
- package/src/ConsoleInternal/components/utils/camel-case-wrap.tsx +33 -0
- package/src/ConsoleInternal/components/utils/index.tsx +3 -0
- package/src/ConsoleInternal/components/utils/router.ts +47 -0
- package/src/ConsoleInternal/components/utils/status-box.tsx +94 -0
- package/src/ConsoleInternal/module/k8s/types.ts +53 -0
- package/src/ConsoleShared/index.ts +1 -0
- package/src/ConsoleShared/src/components/index.ts +7 -0
- package/src/ConsoleShared/src/components/layout/PageLayout.scss +29 -0
- package/src/ConsoleShared/src/components/markdown-extensions/MarkdownCopyClipboard.tsx +93 -0
- package/src/ConsoleShared/src/components/markdown-extensions/__tests__/MarkdownCopyClipboard.spec.tsx +25 -0
- package/src/ConsoleShared/src/components/markdown-extensions/__tests__/test-data.ts +5 -0
- package/src/ConsoleShared/src/components/markdown-extensions/admonition-extension.tsx +66 -0
- package/src/ConsoleShared/src/components/markdown-extensions/code-extension.tsx +25 -0
- package/src/ConsoleShared/src/components/markdown-extensions/const.ts +3 -0
- package/src/ConsoleShared/src/components/markdown-extensions/index.ts +5 -0
- package/src/ConsoleShared/src/components/markdown-extensions/inline-clipboard-extension.tsx +45 -0
- package/src/ConsoleShared/src/components/markdown-extensions/multiline-clipboard-extension.tsx +50 -0
- package/src/ConsoleShared/src/components/markdown-extensions/showdown-extension.scss +52 -0
- package/src/ConsoleShared/src/components/markdown-extensions/utils.ts +3 -0
- package/src/ConsoleShared/src/components/markdown-highlight-extension/MarkdownHighlightExtension.tsx +64 -0
- package/src/ConsoleShared/src/components/markdown-highlight-extension/highlight-consts.ts +9 -0
- package/src/ConsoleShared/src/components/markdown-highlight-extension/index.ts +1 -0
- package/src/ConsoleShared/src/components/modal/Modal.scss +3 -0
- package/src/ConsoleShared/src/components/modal/Modal.tsx +19 -0
- package/src/ConsoleShared/src/components/modal/index.ts +1 -0
- package/src/ConsoleShared/src/components/popper/Portal.tsx +23 -0
- package/src/ConsoleShared/src/components/popper/SimplePopper.tsx +90 -0
- package/src/ConsoleShared/src/components/popper/index.ts +2 -0
- package/src/ConsoleShared/src/components/spotlight/InteractiveSpotlight.tsx +58 -0
- package/src/ConsoleShared/src/components/spotlight/Spotlight.tsx +35 -0
- package/src/ConsoleShared/src/components/spotlight/StaticSpotlight.tsx +32 -0
- package/src/ConsoleShared/src/components/spotlight/index.ts +1 -0
- package/src/ConsoleShared/src/components/spotlight/spotlight.scss +63 -0
- package/src/ConsoleShared/src/components/status/GenericStatus.tsx +33 -0
- package/src/ConsoleShared/src/components/status/NotStartedIcon.tsx +27 -0
- package/src/ConsoleShared/src/components/status/PopoverStatus.tsx +42 -0
- package/src/ConsoleShared/src/components/status/Status.tsx +38 -0
- package/src/ConsoleShared/src/components/status/StatusIconAndText.tsx +42 -0
- package/src/ConsoleShared/src/components/status/icons.tsx +77 -0
- package/src/ConsoleShared/src/components/status/index.tsx +1 -0
- package/src/ConsoleShared/src/components/status/statuses.tsx +36 -0
- package/src/ConsoleShared/src/components/status/types.ts +7 -0
- package/src/ConsoleShared/src/components/utils/FallbackImg.tsx +20 -0
- package/src/ConsoleShared/src/components/utils/index.ts +1 -0
- package/src/ConsoleShared/src/constants/index.ts +1 -0
- package/src/ConsoleShared/src/constants/ui.ts +1 -0
- package/src/ConsoleShared/src/hooks/index.ts +6 -0
- package/src/ConsoleShared/src/hooks/scroll.ts +52 -0
- package/src/ConsoleShared/src/hooks/useBoundingClientRect.ts +18 -0
- package/src/ConsoleShared/src/hooks/useEventListener.ts +14 -0
- package/src/ConsoleShared/src/hooks/useForceRender.ts +6 -0
- package/src/ConsoleShared/src/hooks/useResizeObserver.ts +20 -0
- package/src/ConsoleShared/src/hooks/useScrollShadows.ts +45 -0
- package/src/ConsoleShared/src/index.ts +4 -0
- package/src/ConsoleShared/src/utils/index.ts +1 -0
- package/src/ConsoleShared/src/utils/useCombineRefs.ts +17 -0
- package/src/HelpTopicDrawer.tsx +124 -0
- package/src/HelpTopicPanelContent.tsx +152 -0
- package/src/QuickStartCatalogPage.tsx +190 -0
- package/src/QuickStartCloseModal.tsx +47 -0
- package/src/QuickStartController.tsx +113 -0
- package/src/QuickStartDrawer.scss +11 -0
- package/src/QuickStartDrawer.tsx +265 -0
- package/src/QuickStartMarkdownView.tsx +75 -0
- package/src/QuickStartPanelContent.scss +46 -0
- package/src/QuickStartPanelContent.tsx +153 -0
- package/src/__tests__/quick-start-utils.spec.tsx +16 -0
- package/src/catalog/Catalog/QuickStartCatalogHeader.tsx +18 -0
- package/src/catalog/Catalog/QuickStartCatalogSection.tsx +9 -0
- package/src/catalog/Catalog/QuickStartCatalogToolbar.tsx +12 -0
- package/src/catalog/Catalog/index.ts +3 -0
- package/src/catalog/QuickStartCatalog.scss +8 -0
- package/src/catalog/QuickStartCatalog.tsx +42 -0
- package/src/catalog/QuickStartTile.scss +11 -0
- package/src/catalog/QuickStartTile.tsx +105 -0
- package/src/catalog/QuickStartTileDescription.scss +29 -0
- package/src/catalog/QuickStartTileDescription.tsx +79 -0
- package/src/catalog/QuickStartTileFooter.tsx +101 -0
- package/src/catalog/QuickStartTileFooterExternal.tsx +40 -0
- package/src/catalog/QuickStartTileHeader.scss +12 -0
- package/src/catalog/QuickStartTileHeader.tsx +77 -0
- package/src/catalog/Toolbar/QuickStartCatalogFilter.scss +25 -0
- package/src/catalog/Toolbar/QuickStartCatalogFilter.tsx +34 -0
- package/src/catalog/Toolbar/QuickStartCatalogFilterItems.tsx +199 -0
- package/src/catalog/__tests__/QuickStartCatalog.spec.tsx +35 -0
- package/src/catalog/__tests__/QuickStartTile.spec.tsx +38 -0
- package/src/catalog/__tests__/QuickStartTileDescription.spec.tsx +44 -0
- package/src/catalog/index.ts +9 -0
- package/src/controller/QuickStartConclusion.tsx +63 -0
- package/src/controller/QuickStartContent.scss +12 -0
- package/src/controller/QuickStartContent.tsx +72 -0
- package/src/controller/QuickStartFooter.scss +13 -0
- package/src/controller/QuickStartFooter.tsx +128 -0
- package/src/controller/QuickStartIntroduction.scss +35 -0
- package/src/controller/QuickStartIntroduction.tsx +66 -0
- package/src/controller/QuickStartTaskHeader.scss +58 -0
- package/src/controller/QuickStartTaskHeader.tsx +116 -0
- package/src/controller/QuickStartTaskHeaderList.scss +17 -0
- package/src/controller/QuickStartTaskHeaderList.tsx +35 -0
- package/src/controller/QuickStartTaskReview.scss +30 -0
- package/src/controller/QuickStartTaskReview.tsx +81 -0
- package/src/controller/QuickStartTasks.scss +89 -0
- package/src/controller/QuickStartTasks.tsx +75 -0
- package/src/controller/__tests__/QuickStartConclusion.spec.tsx +95 -0
- package/src/controller/__tests__/QuickStartContent.spec.tsx +52 -0
- package/src/controller/__tests__/QuickStartFooter.spec.tsx +148 -0
- package/src/controller/__tests__/QuickStartTaskHeader.spec.tsx +56 -0
- package/src/controller/__tests__/QuickStartTaskReview.spec.tsx +45 -0
- package/src/controller/__tests__/QuickStartTasks.spec.tsx +81 -0
- package/src/data/mocks/json/explore-pipeline-quickstart.ts +66 -0
- package/src/data/mocks/json/explore-serverless-quickstart.ts +90 -0
- package/src/data/mocks/json/monitor-sampleapp-quickstart.ts +77 -0
- package/src/data/mocks/json/tour-icons.ts +3 -0
- package/src/data/mocks/yamls/add-healthchecks-quickstart.yaml +67 -0
- package/src/data/mocks/yamls/explore-pipeline-quickstart.yaml +57 -0
- package/src/data/mocks/yamls/explore-serverless-quickstart.yaml +83 -0
- package/src/data/mocks/yamls/install-associate-pipeline-quickstart.yaml +74 -0
- package/src/data/mocks/yamls/monitor-sampleapp-quickstart.yaml +66 -0
- package/src/data/mocks/yamls/sample-application-quickstart.yaml +97 -0
- package/src/data/mocks/yamls/serverless-application-quickstart.yaml +141 -0
- package/src/data/quick-start-test-data.ts +10 -0
- package/src/data/test-utils.ts +11 -0
- package/src/declaration.d.ts +2 -0
- package/src/index.ts +17 -0
- package/src/locales/en/quickstart.json +46 -0
- package/src/styles/_base.scss +54 -0
- package/src/styles/_dark-custom-override.scss +62 -0
- package/src/styles/legacy-bootstrap/README.md +21 -0
- package/src/styles/legacy-bootstrap/_code.scss +44 -0
- package/src/styles/legacy-bootstrap/_tables.scss +38 -0
- package/src/styles/legacy-bootstrap/_type.scss +90 -0
- package/src/styles/legacy-bootstrap/_variables.scss +48 -0
- package/src/styles/legacy-bootstrap.scss +5 -0
- package/src/styles/patternfly-global-entry.ts +1 -0
- package/src/styles/patternfly-global.scss +28 -0
- package/src/styles/patternfly-nested-entry.ts +1 -0
- package/src/styles/patternfly-nested.scss +18 -0
- package/src/styles/quickstarts-standalone-entry.ts +1 -0
- package/src/styles/quickstarts-standalone.scss +7 -0
- package/src/styles/style.scss +12 -0
- package/src/styles/vendor-entry.ts +1 -0
- package/src/styles/vendor.scss +7 -0
- package/src/utils/PluralResolver.ts +356 -0
- package/src/utils/asciidoc-procedure-parser.ts +132 -0
- package/src/utils/const.ts +10 -0
- package/src/utils/help-topic-context.tsx +74 -0
- package/src/utils/help-topic-types.ts +16 -0
- package/src/utils/quick-start-context.tsx +477 -0
- package/src/utils/quick-start-types.ts +72 -0
- package/src/utils/quick-start-utils.ts +92 -0
- package/src/utils/useLocalStorage.ts +38 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
.pfext-quick-start-panel-content {
|
|
2
|
+
&__header {
|
|
3
|
+
position: sticky;
|
|
4
|
+
top: 0px;
|
|
5
|
+
background: inherit;
|
|
6
|
+
z-index: var(--pf-global--ZIndex--xs);
|
|
7
|
+
&__shadow {
|
|
8
|
+
box-shadow: var(--pf-global--BoxShadow--sm-bottom);
|
|
9
|
+
}
|
|
10
|
+
&--blue-white {
|
|
11
|
+
background-color: var(--pf-global--palette--blue-400);
|
|
12
|
+
.pfext-quick-start-panel-content__title {
|
|
13
|
+
color: var(--pf-global--Color--light-100);
|
|
14
|
+
}
|
|
15
|
+
.pfext-quick-start-panel-content__duration {
|
|
16
|
+
color: var(--pf-global--Color--light-200);
|
|
17
|
+
}
|
|
18
|
+
.pfext-quick-start-panel-content__close-button {
|
|
19
|
+
button {
|
|
20
|
+
color: var(--pf-global--Color--light-100) !important;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
&__body {
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
}
|
|
29
|
+
&__title {
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
flex-wrap: wrap;
|
|
33
|
+
}
|
|
34
|
+
&__duration {
|
|
35
|
+
display: inline-block;
|
|
36
|
+
font-size: var(--pf-global--FontSize--md);
|
|
37
|
+
font-weight: 400;
|
|
38
|
+
line-height: 1;
|
|
39
|
+
color: #9c9c9c;
|
|
40
|
+
}
|
|
41
|
+
&__footer {
|
|
42
|
+
&__shadow {
|
|
43
|
+
box-shadow: var(--pf-global--BoxShadow--sm-top);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import './QuickStartPanelContent.scss';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import {
|
|
4
|
+
DrawerActions,
|
|
5
|
+
DrawerCloseButton,
|
|
6
|
+
DrawerHead,
|
|
7
|
+
DrawerPanelBody,
|
|
8
|
+
DrawerPanelContent,
|
|
9
|
+
Title,
|
|
10
|
+
} from '@patternfly/react-core';
|
|
11
|
+
import { css } from '@patternfly/react-styles';
|
|
12
|
+
import * as ReactDOM from 'react-dom';
|
|
13
|
+
import { Shadows, useScrollShadows } from '@console/shared';
|
|
14
|
+
import QuickStartController from './QuickStartController';
|
|
15
|
+
import { QuickStartContext, QuickStartContextValues } from './utils/quick-start-context';
|
|
16
|
+
import { QuickStart } from './utils/quick-start-types';
|
|
17
|
+
import { camelize } from './utils/quick-start-utils';
|
|
18
|
+
|
|
19
|
+
type HandleClose = () => void;
|
|
20
|
+
|
|
21
|
+
type QuickStartPanelContentProps = {
|
|
22
|
+
quickStarts: QuickStart[];
|
|
23
|
+
activeQuickStartID: string;
|
|
24
|
+
handleClose: HandleClose;
|
|
25
|
+
appendTo?: HTMLElement | (() => HTMLElement);
|
|
26
|
+
isResizable?: boolean;
|
|
27
|
+
showClose?: boolean;
|
|
28
|
+
headerVariant?: '' | 'blue-white';
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
const getElement = (appendTo: HTMLElement | (() => HTMLElement)) => {
|
|
32
|
+
if (typeof appendTo === 'function') {
|
|
33
|
+
return appendTo();
|
|
34
|
+
}
|
|
35
|
+
return appendTo;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
const useScrollTopOnTaskNumberChange = (node: HTMLElement, taskNumber: number): void => {
|
|
39
|
+
React.useEffect(() => {
|
|
40
|
+
if (node) {
|
|
41
|
+
node.scrollTo({ top: 0, behavior: 'smooth' });
|
|
42
|
+
}
|
|
43
|
+
}, [taskNumber, node]);
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
const QuickStartPanelContent: React.FC<QuickStartPanelContentProps> = ({
|
|
47
|
+
quickStarts = [],
|
|
48
|
+
handleClose,
|
|
49
|
+
activeQuickStartID,
|
|
50
|
+
appendTo,
|
|
51
|
+
isResizable = true,
|
|
52
|
+
showClose = true,
|
|
53
|
+
headerVariant = '',
|
|
54
|
+
...props
|
|
55
|
+
}) => {
|
|
56
|
+
const { getResource, activeQuickStartState } = React.useContext<QuickStartContextValues>(
|
|
57
|
+
QuickStartContext,
|
|
58
|
+
);
|
|
59
|
+
const [contentRef, setContentRef] = React.useState<HTMLDivElement>();
|
|
60
|
+
const shadows = useScrollShadows(contentRef);
|
|
61
|
+
const quickStart = quickStarts.find((qs) => qs.metadata.name === activeQuickStartID);
|
|
62
|
+
const taskNumber = activeQuickStartState?.taskNumber;
|
|
63
|
+
useScrollTopOnTaskNumberChange(contentRef, taskNumber as number);
|
|
64
|
+
const nextQuickStarts: QuickStart[] = quickStarts.filter((qs: QuickStart) =>
|
|
65
|
+
quickStart?.spec.nextQuickStart?.includes(qs.metadata.name),
|
|
66
|
+
);
|
|
67
|
+
|
|
68
|
+
const headerClasses = css('pfext-quick-start-panel-content__header', {
|
|
69
|
+
'pfext-quick-start-panel-content__header__shadow':
|
|
70
|
+
shadows === Shadows.top || shadows === Shadows.both,
|
|
71
|
+
'pfext-quick-start-panel-content__header--blue-white': headerVariant === 'blue-white',
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
const footerClass = css({
|
|
75
|
+
'pfext-quick-start-panel-content__footer__shadow':
|
|
76
|
+
shadows === Shadows.bottom || shadows === Shadows.both,
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
const getStep = () => {
|
|
80
|
+
const tasks = quickStart.spec.tasks.length;
|
|
81
|
+
if (Number.parseInt(taskNumber as string, 10) === -1) {
|
|
82
|
+
return 'intro';
|
|
83
|
+
}
|
|
84
|
+
if (Number.parseInt(taskNumber as string, 10) === tasks) {
|
|
85
|
+
return 'conclusion';
|
|
86
|
+
}
|
|
87
|
+
return Number.parseInt(taskNumber as string, 10) + 1;
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
const content = quickStart ? (
|
|
91
|
+
<DrawerPanelContent
|
|
92
|
+
isResizable={isResizable}
|
|
93
|
+
className="pfext-quick-start__base"
|
|
94
|
+
data-testid={`qs-drawer-${camelize(quickStart.spec.displayName)}`}
|
|
95
|
+
data-qs={`qs-step-${getStep()}`}
|
|
96
|
+
data-test="quickstart drawer"
|
|
97
|
+
{...props}
|
|
98
|
+
>
|
|
99
|
+
<div className={headerClasses}>
|
|
100
|
+
<DrawerHead>
|
|
101
|
+
<div className="pfext-quick-start-panel-content__title">
|
|
102
|
+
<Title
|
|
103
|
+
headingLevel="h1"
|
|
104
|
+
size="xl"
|
|
105
|
+
className="pfext-quick-start-panel-content__name"
|
|
106
|
+
style={{ marginRight: 'var(--pf-global--spacer--md)' }}
|
|
107
|
+
>
|
|
108
|
+
{quickStart?.spec.displayName}{' '}
|
|
109
|
+
<small className="pfext-quick-start-panel-content__duration">
|
|
110
|
+
{quickStart?.spec.durationMinutes
|
|
111
|
+
? getResource(
|
|
112
|
+
'{{type}} • {{duration, number}} minutes',
|
|
113
|
+
quickStart?.spec.durationMinutes,
|
|
114
|
+
)
|
|
115
|
+
.replace('{{duration, number}}', quickStart?.spec.durationMinutes)
|
|
116
|
+
.replace('{{type}}', getResource('Type'))
|
|
117
|
+
: getResource('Type')}
|
|
118
|
+
</small>
|
|
119
|
+
</Title>
|
|
120
|
+
</div>
|
|
121
|
+
{showClose && (
|
|
122
|
+
<DrawerActions>
|
|
123
|
+
<DrawerCloseButton
|
|
124
|
+
onClick={handleClose}
|
|
125
|
+
className="pfext-quick-start-panel-content__close-button"
|
|
126
|
+
data-testid="qs-drawer-close"
|
|
127
|
+
/>
|
|
128
|
+
</DrawerActions>
|
|
129
|
+
)}
|
|
130
|
+
</DrawerHead>
|
|
131
|
+
</div>
|
|
132
|
+
<DrawerPanelBody
|
|
133
|
+
hasNoPadding
|
|
134
|
+
className="pfext-quick-start-panel-content__body"
|
|
135
|
+
data-test="content"
|
|
136
|
+
>
|
|
137
|
+
<QuickStartController
|
|
138
|
+
quickStart={quickStart}
|
|
139
|
+
nextQuickStarts={nextQuickStarts}
|
|
140
|
+
footerClass={footerClass}
|
|
141
|
+
contentRef={setContentRef}
|
|
142
|
+
/>
|
|
143
|
+
</DrawerPanelBody>
|
|
144
|
+
</DrawerPanelContent>
|
|
145
|
+
) : null;
|
|
146
|
+
|
|
147
|
+
if (appendTo) {
|
|
148
|
+
return ReactDOM.createPortal(content, getElement(appendTo));
|
|
149
|
+
}
|
|
150
|
+
return content;
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
export default QuickStartPanelContent;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { allQuickStarts } from '../data/quick-start-test-data';
|
|
2
|
+
import { getQuickStartByName, isDisabledQuickStart } from '../utils/quick-start-utils';
|
|
3
|
+
|
|
4
|
+
describe('quick-start-utils', () => {
|
|
5
|
+
it('should return the quick start corresponding to the id for getQuickStartByName function', () => {
|
|
6
|
+
const mockID = allQuickStarts[0].metadata.name;
|
|
7
|
+
const quickStart = getQuickStartByName(mockID, allQuickStarts);
|
|
8
|
+
expect(quickStart.metadata.name === mockID).toBe(true);
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
it('should filter out disabled quick starts', () => {
|
|
12
|
+
const disabledQuickStarts = [allQuickStarts[0].metadata.name]; // setting allQuickStart[0] as disabled
|
|
13
|
+
expect(isDisabledQuickStart(allQuickStarts[1], disabledQuickStarts)).toBe(false);
|
|
14
|
+
expect(isDisabledQuickStart(allQuickStarts[0], disabledQuickStarts)).toBe(true);
|
|
15
|
+
});
|
|
16
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
export type QuickStartCatalogHeaderProps = {
|
|
4
|
+
title: string;
|
|
5
|
+
hint?: string;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export const QuickStartCatalogHeader: React.FC<QuickStartCatalogHeaderProps> = ({
|
|
9
|
+
title,
|
|
10
|
+
hint,
|
|
11
|
+
}) => (
|
|
12
|
+
<div className="pfext-page-layout__header">
|
|
13
|
+
<h1 data-pf-content="true" className="pfext-page-layout__title">
|
|
14
|
+
{title}
|
|
15
|
+
</h1>
|
|
16
|
+
{hint && <div className="pfext-page-layout__hint">{hint}</div>}
|
|
17
|
+
</div>
|
|
18
|
+
);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
export type QuickStartCatalogSectionProps = {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
export const QuickStartCatalogSection: React.FC<QuickStartCatalogSectionProps> = ({ children }) => (
|
|
8
|
+
<div className="pfext-page-layout__content">{children}</div>
|
|
9
|
+
);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Toolbar } from '@patternfly/react-core';
|
|
3
|
+
|
|
4
|
+
export type QuickStartCatalogToolbarProps = {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export const QuickStartCatalogToolbar: React.FC<QuickStartCatalogToolbarProps> = ({ children }) => (
|
|
9
|
+
<Toolbar usePageInsets className="pfext-quick-start-catalog-filter__flex">
|
|
10
|
+
{children}
|
|
11
|
+
</Toolbar>
|
|
12
|
+
);
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Gallery, GalleryItem } from '@patternfly/react-core';
|
|
3
|
+
import { QuickStartContext, QuickStartContextValues } from '../utils/quick-start-context';
|
|
4
|
+
import { QuickStart } from '../utils/quick-start-types';
|
|
5
|
+
import { getQuickStartStatus } from '../utils/quick-start-utils';
|
|
6
|
+
import QuickStartTile from './QuickStartTile';
|
|
7
|
+
|
|
8
|
+
import './QuickStartCatalog.scss';
|
|
9
|
+
|
|
10
|
+
type QuickStartCatalogProps = {
|
|
11
|
+
quickStarts: QuickStart[];
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const QuickStartCatalog: React.FC<QuickStartCatalogProps> = ({ quickStarts }) => {
|
|
15
|
+
const { activeQuickStartID, allQuickStartStates } = React.useContext<QuickStartContextValues>(
|
|
16
|
+
QuickStartContext,
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
return (
|
|
20
|
+
<div className="pfext-page-layout__content">
|
|
21
|
+
<Gallery className="pfext-quick-start-catalog__gallery" hasGutter>
|
|
22
|
+
{quickStarts.map((quickStart) => {
|
|
23
|
+
const {
|
|
24
|
+
metadata: { name: id },
|
|
25
|
+
} = quickStart;
|
|
26
|
+
|
|
27
|
+
return (
|
|
28
|
+
<GalleryItem key={id} className="pfext-quick-start-catalog__gallery-item">
|
|
29
|
+
<QuickStartTile
|
|
30
|
+
quickStart={quickStart}
|
|
31
|
+
isActive={id === activeQuickStartID}
|
|
32
|
+
status={getQuickStartStatus(allQuickStartStates, id)}
|
|
33
|
+
/>
|
|
34
|
+
</GalleryItem>
|
|
35
|
+
);
|
|
36
|
+
})}
|
|
37
|
+
</Gallery>
|
|
38
|
+
</div>
|
|
39
|
+
);
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export default QuickStartCatalog;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { CatalogTile } from '@patternfly/react-catalog-view-extension';
|
|
3
|
+
import RocketIcon from '@patternfly/react-icons/dist/js/icons/rocket-icon';
|
|
4
|
+
import { FallbackImg } from '@console/shared';
|
|
5
|
+
import { QuickStartContext, QuickStartContextValues } from '../utils/quick-start-context';
|
|
6
|
+
import { QuickStart, QuickStartStatus } from '../utils/quick-start-types';
|
|
7
|
+
import { camelize } from '../utils/quick-start-utils';
|
|
8
|
+
import QuickStartTileDescription from './QuickStartTileDescription';
|
|
9
|
+
import QuickStartTileFooter from './QuickStartTileFooter';
|
|
10
|
+
import QuickStartTileFooterExternal from './QuickStartTileFooterExternal';
|
|
11
|
+
import QuickStartTileHeader from './QuickStartTileHeader';
|
|
12
|
+
|
|
13
|
+
import './QuickStartTile.scss';
|
|
14
|
+
|
|
15
|
+
type QuickStartTileProps = {
|
|
16
|
+
quickStart: QuickStart;
|
|
17
|
+
status: QuickStartStatus;
|
|
18
|
+
isActive: boolean;
|
|
19
|
+
onClick?: () => void;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
const QuickStartTile: React.FC<QuickStartTileProps> = ({
|
|
23
|
+
quickStart,
|
|
24
|
+
status,
|
|
25
|
+
isActive,
|
|
26
|
+
onClick = () => {},
|
|
27
|
+
}) => {
|
|
28
|
+
const {
|
|
29
|
+
metadata: { name: id },
|
|
30
|
+
spec: { icon, tasks, displayName, description, durationMinutes, prerequisites, link, type },
|
|
31
|
+
} = quickStart;
|
|
32
|
+
|
|
33
|
+
const { setActiveQuickStart, footer } = React.useContext<QuickStartContextValues>(
|
|
34
|
+
QuickStartContext,
|
|
35
|
+
);
|
|
36
|
+
|
|
37
|
+
const ref = React.useRef<HTMLDivElement>(null);
|
|
38
|
+
|
|
39
|
+
let quickStartIcon: React.ReactNode;
|
|
40
|
+
if (typeof icon === 'object') {
|
|
41
|
+
quickStartIcon = icon;
|
|
42
|
+
} else {
|
|
43
|
+
quickStartIcon = (
|
|
44
|
+
<FallbackImg
|
|
45
|
+
className="pfext-catalog-item-icon__img--large"
|
|
46
|
+
src={icon as string}
|
|
47
|
+
alt=""
|
|
48
|
+
fallback={<RocketIcon />}
|
|
49
|
+
/>
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
const footerComponent =
|
|
54
|
+
footer && footer.show === false ? null : link ? (
|
|
55
|
+
<QuickStartTileFooterExternal link={link} quickStartId={id} />
|
|
56
|
+
) : (
|
|
57
|
+
<QuickStartTileFooter quickStartId={id} status={status} totalTasks={tasks?.length} />
|
|
58
|
+
);
|
|
59
|
+
|
|
60
|
+
const handleClick = (e: React.SyntheticEvent<HTMLElement, Event>) => {
|
|
61
|
+
if (ref.current?.contains(e.target as Node)) {
|
|
62
|
+
if (link) {
|
|
63
|
+
window.open(link.href);
|
|
64
|
+
} else {
|
|
65
|
+
setActiveQuickStart(id, tasks?.length);
|
|
66
|
+
}
|
|
67
|
+
onClick();
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
return (
|
|
72
|
+
<div ref={ref}>
|
|
73
|
+
<CatalogTile
|
|
74
|
+
// @ts-ignore
|
|
75
|
+
component="div"
|
|
76
|
+
style={{
|
|
77
|
+
cursor: 'pointer',
|
|
78
|
+
}}
|
|
79
|
+
icon={quickStartIcon}
|
|
80
|
+
className="pfext-quick-start-tile"
|
|
81
|
+
data-testid={`qs-card-${camelize(displayName)}`}
|
|
82
|
+
featured={isActive}
|
|
83
|
+
title={
|
|
84
|
+
<QuickStartTileHeader
|
|
85
|
+
name={displayName}
|
|
86
|
+
status={status}
|
|
87
|
+
duration={durationMinutes}
|
|
88
|
+
type={type}
|
|
89
|
+
quickStartId={id}
|
|
90
|
+
/>
|
|
91
|
+
}
|
|
92
|
+
onClick={handleClick}
|
|
93
|
+
// https://github.com/patternfly/patternfly-react/issues/7039
|
|
94
|
+
href="#"
|
|
95
|
+
data-test={`tile ${id}`}
|
|
96
|
+
description={
|
|
97
|
+
<QuickStartTileDescription description={description} prerequisites={prerequisites} />
|
|
98
|
+
}
|
|
99
|
+
footer={footerComponent}
|
|
100
|
+
/>
|
|
101
|
+
</div>
|
|
102
|
+
);
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
export default QuickStartTile;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
.pfext-quick-start-tile {
|
|
2
|
+
&-description {
|
|
3
|
+
display: -webkit-box;
|
|
4
|
+
overflow: hidden;
|
|
5
|
+
-webkit-box-orient: vertical;
|
|
6
|
+
-webkit-line-clamp: 3;
|
|
7
|
+
|
|
8
|
+
p {
|
|
9
|
+
margin: 0 0 11.5px;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&-prerequisites {
|
|
14
|
+
display: inline-flex;
|
|
15
|
+
&__text {
|
|
16
|
+
margin-right: var(--pf-global--spacer--sm);
|
|
17
|
+
font-size: var(--pf-global--FontSize--md);
|
|
18
|
+
margin-top: 11.5px;
|
|
19
|
+
margin-bottom: 11.5px;
|
|
20
|
+
font-family: var(--pf-global--FontFamily--heading--sans-serif);
|
|
21
|
+
font-weight: var(--pf-global--FontWeight--normal);
|
|
22
|
+
line-height: 1.1;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&-list {
|
|
26
|
+
padding-left: 20px;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import {
|
|
3
|
+
Button,
|
|
4
|
+
Popover,
|
|
5
|
+
Text,
|
|
6
|
+
TextList,
|
|
7
|
+
TextListItem,
|
|
8
|
+
TextVariants,
|
|
9
|
+
} from '@patternfly/react-core';
|
|
10
|
+
import InfoCircleIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
|
|
11
|
+
import QuickStartMarkdownView from '../QuickStartMarkdownView';
|
|
12
|
+
import { QuickStartContext, QuickStartContextValues } from '../utils/quick-start-context';
|
|
13
|
+
|
|
14
|
+
import './QuickStartTileDescription.scss';
|
|
15
|
+
|
|
16
|
+
type QuickStartTileDescriptionProps = {
|
|
17
|
+
description: string;
|
|
18
|
+
prerequisites?: string[];
|
|
19
|
+
};
|
|
20
|
+
const QuickStartTileDescription: React.FC<QuickStartTileDescriptionProps> = ({
|
|
21
|
+
description,
|
|
22
|
+
prerequisites,
|
|
23
|
+
}) => {
|
|
24
|
+
const { getResource } = React.useContext<QuickStartContextValues>(QuickStartContext);
|
|
25
|
+
const prereqs = prerequisites?.filter((p) => p);
|
|
26
|
+
return (
|
|
27
|
+
<>
|
|
28
|
+
<QuickStartMarkdownView
|
|
29
|
+
content={description}
|
|
30
|
+
className="pfext-quick-start-tile-description"
|
|
31
|
+
/>
|
|
32
|
+
{prereqs?.length > 0 && (
|
|
33
|
+
<div className="pfext-quick-start-tile-prerequisites">
|
|
34
|
+
<Text component={TextVariants.h5} className="pfext-quick-start-tile-prerequisites__text">
|
|
35
|
+
{getResource('Prerequisites ({{totalPrereqs}})').replace(
|
|
36
|
+
'{{totalPrereqs}}',
|
|
37
|
+
prereqs.length,
|
|
38
|
+
)}{' '}
|
|
39
|
+
</Text>
|
|
40
|
+
<Popover
|
|
41
|
+
aria-label={getResource('Prerequisites')}
|
|
42
|
+
headerContent={getResource('Prerequisites')}
|
|
43
|
+
className="pfext-quick-start__base"
|
|
44
|
+
bodyContent={
|
|
45
|
+
<div className="pfext-popover__base">
|
|
46
|
+
<TextList
|
|
47
|
+
aria-label={getResource('Prerequisites')}
|
|
48
|
+
className="pfext-quick-start-tile-prerequisites-list"
|
|
49
|
+
>
|
|
50
|
+
{prereqs.map((prerequisite, index) => (
|
|
51
|
+
// eslint-disable-next-line react/no-array-index-key
|
|
52
|
+
<TextListItem key={index}>
|
|
53
|
+
<QuickStartMarkdownView content={prerequisite} />
|
|
54
|
+
</TextListItem>
|
|
55
|
+
))}
|
|
56
|
+
</TextList>
|
|
57
|
+
</div>
|
|
58
|
+
}
|
|
59
|
+
>
|
|
60
|
+
<Button
|
|
61
|
+
variant="link"
|
|
62
|
+
isInline
|
|
63
|
+
className="pfext-quick-start-tile-prerequisites__icon"
|
|
64
|
+
data-testid="qs-card-prereqs"
|
|
65
|
+
onClick={(e) => {
|
|
66
|
+
e.preventDefault();
|
|
67
|
+
e.stopPropagation();
|
|
68
|
+
}}
|
|
69
|
+
aria-label={getResource('Show prerequisites')}
|
|
70
|
+
>
|
|
71
|
+
<InfoCircleIcon />
|
|
72
|
+
</Button>
|
|
73
|
+
</Popover>
|
|
74
|
+
</div>
|
|
75
|
+
)}
|
|
76
|
+
</>
|
|
77
|
+
);
|
|
78
|
+
};
|
|
79
|
+
export default QuickStartTileDescription;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Button, Flex, FlexItem } from '@patternfly/react-core';
|
|
3
|
+
import { QuickStartContext, QuickStartContextValues } from '../utils/quick-start-context';
|
|
4
|
+
import { QuickStartStatus } from '../utils/quick-start-types';
|
|
5
|
+
|
|
6
|
+
type QuickStartTileFooterProps = {
|
|
7
|
+
quickStartId: string;
|
|
8
|
+
status: string;
|
|
9
|
+
totalTasks?: number;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const QuickStartTileFooter: React.FC<QuickStartTileFooterProps> = ({
|
|
13
|
+
quickStartId,
|
|
14
|
+
status,
|
|
15
|
+
totalTasks,
|
|
16
|
+
}) => {
|
|
17
|
+
const { getResource } = React.useContext<QuickStartContextValues>(QuickStartContext);
|
|
18
|
+
const { activeQuickStartID, startQuickStart, restartQuickStart } = React.useContext<
|
|
19
|
+
QuickStartContextValues
|
|
20
|
+
>(QuickStartContext);
|
|
21
|
+
|
|
22
|
+
const start = React.useCallback(
|
|
23
|
+
(e: React.SyntheticEvent) => {
|
|
24
|
+
e.preventDefault();
|
|
25
|
+
e.stopPropagation();
|
|
26
|
+
startQuickStart(quickStartId, totalTasks);
|
|
27
|
+
},
|
|
28
|
+
[quickStartId, startQuickStart, totalTasks],
|
|
29
|
+
);
|
|
30
|
+
|
|
31
|
+
const restart = React.useCallback(
|
|
32
|
+
(e: React.SyntheticEvent) => {
|
|
33
|
+
e.preventDefault();
|
|
34
|
+
e.stopPropagation();
|
|
35
|
+
restartQuickStart(quickStartId, totalTasks);
|
|
36
|
+
},
|
|
37
|
+
[quickStartId, restartQuickStart, totalTasks],
|
|
38
|
+
);
|
|
39
|
+
|
|
40
|
+
return (
|
|
41
|
+
<Flex justifyContent={{ default: 'justifyContentSpaceBetween' }}>
|
|
42
|
+
{status === QuickStartStatus.NOT_STARTED && (
|
|
43
|
+
<FlexItem>
|
|
44
|
+
<Button
|
|
45
|
+
onClick={start}
|
|
46
|
+
variant="link"
|
|
47
|
+
isInline
|
|
48
|
+
data-testid="qs-card-notStarted-start"
|
|
49
|
+
id={`${quickStartId}-start`}
|
|
50
|
+
aria-labelledby={`${quickStartId}-start ${quickStartId}`}
|
|
51
|
+
>
|
|
52
|
+
{getResource('Start')}
|
|
53
|
+
</Button>
|
|
54
|
+
</FlexItem>
|
|
55
|
+
)}
|
|
56
|
+
{status === QuickStartStatus.IN_PROGRESS && activeQuickStartID !== quickStartId && (
|
|
57
|
+
<FlexItem>
|
|
58
|
+
<Button
|
|
59
|
+
variant="link"
|
|
60
|
+
isInline
|
|
61
|
+
data-testid="qs-card-inProgress-resume"
|
|
62
|
+
id={`${quickStartId}-continue`}
|
|
63
|
+
aria-labelledby={`${quickStartId}-continue ${quickStartId}`}
|
|
64
|
+
>
|
|
65
|
+
{getResource('Continue')}
|
|
66
|
+
</Button>
|
|
67
|
+
</FlexItem>
|
|
68
|
+
)}
|
|
69
|
+
{status === QuickStartStatus.COMPLETE && (
|
|
70
|
+
<FlexItem>
|
|
71
|
+
<Button
|
|
72
|
+
onClick={restart}
|
|
73
|
+
variant="link"
|
|
74
|
+
isInline
|
|
75
|
+
data-testid="qs-card-complete-restart"
|
|
76
|
+
id={`${quickStartId}-restart`}
|
|
77
|
+
aria-labelledby={`${quickStartId}-restart ${quickStartId}`}
|
|
78
|
+
>
|
|
79
|
+
{getResource('Restart')}
|
|
80
|
+
</Button>
|
|
81
|
+
</FlexItem>
|
|
82
|
+
)}
|
|
83
|
+
{status === QuickStartStatus.IN_PROGRESS && (
|
|
84
|
+
<FlexItem>
|
|
85
|
+
<Button
|
|
86
|
+
onClick={restart}
|
|
87
|
+
variant="link"
|
|
88
|
+
isInline
|
|
89
|
+
data-testid="qs-card-inProgress-restart"
|
|
90
|
+
id={`${quickStartId}-restart`}
|
|
91
|
+
aria-labelledby={`${quickStartId}-restart ${quickStartId}`}
|
|
92
|
+
>
|
|
93
|
+
{getResource('Restart')}
|
|
94
|
+
</Button>
|
|
95
|
+
</FlexItem>
|
|
96
|
+
)}
|
|
97
|
+
</Flex>
|
|
98
|
+
);
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
export default QuickStartTileFooter;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Button, Flex, FlexItem } from '@patternfly/react-core';
|
|
3
|
+
import ExternalLinkAltIcon from '@patternfly/react-icons/dist/js/icons/external-link-alt-icon';
|
|
4
|
+
import { QuickStartExternal } from '../utils/quick-start-types';
|
|
5
|
+
|
|
6
|
+
type QuickStartTileFooterProps = {
|
|
7
|
+
link: QuickStartExternal;
|
|
8
|
+
quickStartId?: string;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
const QuickStartTileFooterExternal: React.FC<QuickStartTileFooterProps> = ({
|
|
12
|
+
link,
|
|
13
|
+
quickStartId,
|
|
14
|
+
}) => {
|
|
15
|
+
const { href, text } = link;
|
|
16
|
+
|
|
17
|
+
return (
|
|
18
|
+
<Flex justifyContent={{ default: 'justifyContentSpaceBetween' }}>
|
|
19
|
+
<FlexItem>
|
|
20
|
+
<Button
|
|
21
|
+
component="a"
|
|
22
|
+
href={href}
|
|
23
|
+
target="_blank"
|
|
24
|
+
rel="noopener noreferrer"
|
|
25
|
+
variant="link"
|
|
26
|
+
aria-label={`Open documentation in new window`}
|
|
27
|
+
isInline
|
|
28
|
+
icon={<ExternalLinkAltIcon />}
|
|
29
|
+
iconPosition="right"
|
|
30
|
+
id={quickStartId}
|
|
31
|
+
aria-labelledby={`${quickStartId}-external ${quickStartId}`}
|
|
32
|
+
>
|
|
33
|
+
{text || href}
|
|
34
|
+
</Button>
|
|
35
|
+
</FlexItem>
|
|
36
|
+
</Flex>
|
|
37
|
+
);
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export default QuickStartTileFooterExternal;
|