@patternfly/quickstarts 2.2.3 → 2.3.1
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 +4 -4
- package/dist/ConsoleShared/src/components/markdown-extensions/inline-clipboard-extension.d.ts +1 -1
- package/dist/ConsoleShared/src/components/markdown-extensions/multiline-clipboard-extension.d.ts +1 -1
- package/dist/HelpTopicDrawer.d.ts +8 -2
- package/dist/QuickStartDrawer.d.ts +21 -2
- package/dist/controller/QuickStartTaskHeader.d.ts +1 -1
- package/dist/index.es.js +14 -13
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +14 -13
- 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/quickstarts-base.css +24 -24
- package/dist/quickstarts-full.es.js +14 -13
- package/dist/quickstarts-full.es.js.map +1 -1
- package/dist/quickstarts.css +24 -24
- package/dist/quickstarts.min.css +1 -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 +39 -0
- package/src/ConsoleShared/src/components/markdown-extensions/multiline-clipboard-extension.tsx +44 -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,97 @@
|
|
|
1
|
+
apiVersion: console.openshift.io/v1
|
|
2
|
+
kind: ConsoleQuickStart
|
|
3
|
+
metadata:
|
|
4
|
+
name: sample-application
|
|
5
|
+
spec:
|
|
6
|
+
version: 4.7
|
|
7
|
+
displayName: Getting started with a sample
|
|
8
|
+
durationMinutes: 10
|
|
9
|
+
icon: ''
|
|
10
|
+
description: Is this the first time you’ve used OpenShift? Let's start with a simple
|
|
11
|
+
sample app to learn the basics.
|
|
12
|
+
prerequisites: ['']
|
|
13
|
+
introduction: '### This Quick Start shows you how to deploy a sample application
|
|
14
|
+
to OpenShift.'
|
|
15
|
+
tasks:
|
|
16
|
+
- title: Creating a sample application
|
|
17
|
+
description: |-
|
|
18
|
+
### To create a sample application:
|
|
19
|
+
1. Using the perspective switcher at the top of the navigation, go to **</> Developer**.
|
|
20
|
+
2. Go to the **+Add** page in the navigation.
|
|
21
|
+
3. Using the project drop-down list, select the project you would like to create the sample application in. You can also create a new one if you’d like.
|
|
22
|
+
4. Click **Samples** to create an application from a code sample.
|
|
23
|
+
5. Click on the **Node.js** card.
|
|
24
|
+
6. Scroll down and click **Create**.
|
|
25
|
+
|
|
26
|
+
The **Topology** view will load with your new sample application. The application is represented by the light grey area with the white border. The deployment is a white circle.
|
|
27
|
+
review:
|
|
28
|
+
instructions: |-
|
|
29
|
+
#### To verify the application was successfully created:
|
|
30
|
+
1. Do you see a **sample-app** application?
|
|
31
|
+
2. Do you see a **nodejs-sample** deployment?
|
|
32
|
+
failedTaskHelp: This task isn’t verified yet. Try the task again.
|
|
33
|
+
summary:
|
|
34
|
+
success: You have created a sample application!
|
|
35
|
+
failed: Try the steps again.
|
|
36
|
+
- title: Viewing build status
|
|
37
|
+
description: |-
|
|
38
|
+
### To view the build status of the sample application:
|
|
39
|
+
1. Hover over the icon on the bottom left quadrant of the **nodejs-sample** deployment to see the build status in a tooltip.
|
|
40
|
+
2. Click on the icon for quick access to the build log.
|
|
41
|
+
|
|
42
|
+
You should be able to see the log stream of the **nodejs-sample-1** build on the **Build Details** page.
|
|
43
|
+
review:
|
|
44
|
+
instructions: |-
|
|
45
|
+
#### To verify the build is complete:
|
|
46
|
+
Wait for the build to complete. It may take a few minutes. Do you see a **Completed** badge on the page header?
|
|
47
|
+
failedTaskHelp: This task isn’t verified yet. Try the task again.
|
|
48
|
+
summary:
|
|
49
|
+
success: Your sample app is now built!
|
|
50
|
+
failed: Try the steps again.
|
|
51
|
+
- title: Viewing the associated Git repo
|
|
52
|
+
description: |
|
|
53
|
+
### To view the associated code:
|
|
54
|
+
1. If you aren't already there, go to the **Topology** page in the navigation.
|
|
55
|
+
2. The icon on the bottom right quadrant of the **nodejs-sample** deployment represents the Git repo of the associated code. The icon shown can be for Bitbucket, GitHub, GitLab or generic Git. Click on it to navigate to the associated Git repository.
|
|
56
|
+
review:
|
|
57
|
+
instructions: |-
|
|
58
|
+
#### Verify you can see the code associated with the sample app:
|
|
59
|
+
Was a new browser tab opened with https://github.com/sclorg/nodejs-ex?
|
|
60
|
+
failedTaskHelp: This task isn’t verified yet. Try the task again.
|
|
61
|
+
summary:
|
|
62
|
+
success: You have viewed the associated Git repo.
|
|
63
|
+
failed: Try the steps again.
|
|
64
|
+
- title: Viewing the pod status
|
|
65
|
+
description: |-
|
|
66
|
+
### To view the pod status:
|
|
67
|
+
1. Click on the browser tab with OpenShift. Notice that the **nodejs-sample** deployment has a pod donut imposed on the circle, representing the pod status
|
|
68
|
+
2. Hover over the pod donut.
|
|
69
|
+
|
|
70
|
+
You should now see the pod status in a tooltip.
|
|
71
|
+
review:
|
|
72
|
+
instructions: |-
|
|
73
|
+
#### To verify you see the pod status:
|
|
74
|
+
Do you see the number of associated pods and their statuses?
|
|
75
|
+
failedTaskHelp: This task isn’t verified yet. Try the task again.
|
|
76
|
+
summary:
|
|
77
|
+
success: You have viewed the pod status for your app!
|
|
78
|
+
failed: Try the steps again.
|
|
79
|
+
- title: Running the sample application
|
|
80
|
+
description: |-
|
|
81
|
+
### To run the sample application:
|
|
82
|
+
1. The icon on the top right quadrant of the **nodejs-sample** deployment represents the route URL. Click on it to open the URL and run the application.
|
|
83
|
+
|
|
84
|
+
The application will be run in a new tab.
|
|
85
|
+
review:
|
|
86
|
+
instructions: |-
|
|
87
|
+
#### To verify your sample application is running:
|
|
88
|
+
1. Make sure you are in the new tab.
|
|
89
|
+
2. Does the page have a **Welcome to your Node.js application on OpenShift** title?
|
|
90
|
+
failedTaskHelp: This task isn’t verified yet. Try the task again.
|
|
91
|
+
summary:
|
|
92
|
+
success: You have run your sample app!
|
|
93
|
+
failed: Try the steps again.
|
|
94
|
+
conclusion: Your sample application is deployed and ready! To add health checks
|
|
95
|
+
to your sample app, take the **Adding health checks to your sample application**
|
|
96
|
+
quick start
|
|
97
|
+
nextQuickStart: [add-healthchecks]
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
apiVersion: console.openshift.io/v1
|
|
2
|
+
kind: ConsoleQuickStart
|
|
3
|
+
metadata:
|
|
4
|
+
name: serverless-application
|
|
5
|
+
spec:
|
|
6
|
+
version: 4.7
|
|
7
|
+
displayName: Exploring Serverless applications
|
|
8
|
+
icon: data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2UwMzQwMDt9LmNscy0ye2ZpbGw6I2NlMmUwMDt9LmNscy0ze2ZpbGw6bm9uZTt9LmNscy00e2ZpbGw6I2ZmZjt9LmNscy01e2ZpbGw6I2RjZGNkYzt9LmNscy02e2ZpbGw6I2FhYTt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPlJlZF9IYXQtT3BlbnNoaWZ0NC1DYXRhbG9nX0ljb25zLVNlcnZlcmxlc3M8L3RpdGxlPjxjaXJjbGUgY2xhc3M9ImNscy0xIiBjeD0iNTAiIGN5PSI1MCIgcj0iNTAiLz48cGF0aCBjbGFzcz0iY2xzLTIiIGQ9Ik04NS4zNiwxNC42NEE1MCw1MCwwLDAsMSwxNC42NCw4NS4zNloiLz48cGF0aCBjbGFzcz0iY2xzLTMiIGQ9Ik00MC41Nyw0Ny40MmEzLjg5LDMuODksMCwxLDAsMy44OCwzLjg4QTMuODksMy44OSwwLDAsMCw0MC41Nyw0Ny40MloiLz48cGF0aCBjbGFzcz0iY2xzLTMiIGQ9Ik0yMS40Miw0Ny40MkEzLjg5LDMuODksMCwxLDAsMjUuMyw1MS4zLDMuODksMy44OSwwLDAsMCwyMS40Miw0Ny40MloiLz48cGF0aCBjbGFzcz0iY2xzLTQiIGQ9Ik01MC4wOSw0OC44NmgtLjE4YTQuMTEsNC4xMSwwLDAsMS0zLjI2LTEuNjMsNy42OSw3LjY5LDAsMCwwLTEyLjE2LDAsNC4xMyw0LjEzLDAsMCwxLTMuMjYsMS42M0gzMWE0LjA5LDQuMDksMCwwLDEtMy4yNS0xLjYzQTcuNjksNy42OSwwLDAsMCwxNCw1MS45M2gwVjY0LjZhMi43OSwyLjc5LDAsMCwwLDIuNzksMi43OWgxNS44TDUxLjM0LDQ4LjY2QTQsNCwwLDAsMSw1MC4wOSw0OC44NloiLz48cGF0aCBjbGFzcz0iY2xzLTUiIGQ9Ik03OC4wNSw0NC4yNWE3LjY1LDcuNjUsMCwwLDAtNS44NSwzQTQuMSw0LjEsMCwwLDEsNjksNDguODZoLS4xOWE0LjEzLDQuMTMsMCwwLDEtMy4yNi0xLjYzLDcuNjksNy42OSwwLDAsMC0xMi4xNiwwLDQuMTYsNC4xNiwwLDAsMS0yLDEuNDNMMzIuNjEsNjcuMzlIODMuMTlBMi43OSwyLjc5LDAsMCwwLDg2LDY0LjZWNTIuMDdBNy43Nyw3Ljc3LDAsMCwwLDc4LjA1LDQ0LjI1WiIvPjxwYXRoIGNsYXNzPSJjbHMtNiIgZD0iTTIxLjEsNjNoMTBhMS44MywxLjgzLDAsMSwwLDAtMy42NmgtMTBhMS44MywxLjgzLDAsMCwwLDAsMy42NloiLz48Y2lyY2xlIGNsYXNzPSJjbHMtNCIgY3g9IjQwLjU3IiBjeT0iMzcuNzMiIHI9IjIuMTUiLz48Y2lyY2xlIGNsYXNzPSJjbHMtNCIgY3g9IjQwLjU3IiBjeT0iMjguMjMiIHI9IjEuMzUiLz48Y2lyY2xlIGNsYXNzPSJjbHMtNCIgY3g9IjU5LjcyIiBjeT0iMjguMjMiIHI9IjEuMzUiLz48Y2lyY2xlIGNsYXNzPSJjbHMtNCIgY3g9IjIxLjQyIiBjeT0iMzcuNzMiIHI9IjIuMTUiLz48Y2lyY2xlIGNsYXNzPSJjbHMtNCIgY3g9IjUwIiBjeT0iNDMuNDUiIHI9IjIuOTMiLz48Y2lyY2xlIGNsYXNzPSJjbHMtNCIgY3g9IjY4Ljg5IiBjeT0iNDMuNDUiIHI9IjIuOTMiLz48Y2lyY2xlIGNsYXNzPSJjbHMtNCIgY3g9IjMxLjA5IiBjeT0iNDMuNDUiIHI9IjIuOTMiLz48Y2lyY2xlIGNsYXNzPSJjbHMtNiIgY3g9Ijc3Ljk0IiBjeT0iNTQuMzEiIHI9IjIuMTUiLz48Y2lyY2xlIGNsYXNzPSJjbHMtNiIgY3g9IjY4LjkxIiBjeT0iNTQuMzEiIHI9IjIuMTUiLz48Y2lyY2xlIGNsYXNzPSJjbHMtNCIgY3g9Ijc3Ljk0IiBjeT0iMzcuNzMiIHI9IjIuMTUiLz48Y2lyY2xlIGNsYXNzPSJjbHMtNCIgY3g9IjU5LjcyIiBjeT0iMzcuNzMiIHI9IjIuMTUiLz48Y2lyY2xlIGNsYXNzPSJjbHMtNCIgY3g9IjUwIiBjeT0iMzMuMSIgcj0iMy4wMSIvPjxjaXJjbGUgY2xhc3M9ImNscy00IiBjeD0iMzEuMDkiIGN5PSIzMy4xIiByPSIzLjAxIi8+PGNpcmNsZSBjbGFzcz0iY2xzLTQiIGN4PSI2OC44OSIgY3k9IjMzLjEiIHI9IjMuMDEiLz48L3N2Zz4=
|
|
9
|
+
durationMinutes: 15
|
|
10
|
+
description: Learn how to create a Serverless application.
|
|
11
|
+
prerequisites: ['']
|
|
12
|
+
introduction: This quick start guides you through creating and using a serverless application.
|
|
13
|
+
tasks:
|
|
14
|
+
- title: Creating a serverless application
|
|
15
|
+
description: |-
|
|
16
|
+
### To create a serverless application:
|
|
17
|
+
1. From the **Developer** perspective, in the navigation menu, click [+Add](/add).
|
|
18
|
+
2. At the top of the page, in the **Projects** list, select a project to create the application in.
|
|
19
|
+
3. Click **From Git**.
|
|
20
|
+
4. In the **Git Repo URL** field, type `https://github.com/sclorg/django-ex.git`.
|
|
21
|
+
5. Under Resources, select **Knative Service**.
|
|
22
|
+
6. At the end of the page, click **Create**.
|
|
23
|
+
|
|
24
|
+
The **Topology** view displays your new Serverless application. The application is represented by the light gray area with the white border. The Knative Service is the darker gray area with the dotted border. The Pod ring in the middle represents the revision.
|
|
25
|
+
review:
|
|
26
|
+
instructions: |-
|
|
27
|
+
#### To verify the application was successfully created:
|
|
28
|
+
From the **Topology** view, look for your new application. Wait for the build to complete. It may take a few minutes.
|
|
29
|
+
|
|
30
|
+
After the build completes, a green checkmark appears in the lower-left corner of the service. Your application will say “No Revisions” in the center.
|
|
31
|
+
|
|
32
|
+
Do you see the completed application and build?
|
|
33
|
+
failedTaskHelp:
|
|
34
|
+
This task isn’t verified yet. Try the task again, or [read more](https://docs.openshift.com/container-platform/4.6/serverless/serving-creating-managing-apps.html#creating-serverless-applications-using-the-openshift-container-platform-web-console)
|
|
35
|
+
about this topic.
|
|
36
|
+
summary:
|
|
37
|
+
success: You just created a Serverless app!
|
|
38
|
+
failed: Try the steps again.
|
|
39
|
+
- title: Demoing scalability
|
|
40
|
+
description: |
|
|
41
|
+
### To see your application scale:
|
|
42
|
+
1. From the **Display Options** list at the top of the **Topology** view, click **Pod Count**.
|
|
43
|
+
2. Wait for the Pod count to scale down to zero Pods. Scaling down may take a few minutes.
|
|
44
|
+
3. Click the **Route URL** icon in the upper-right corner of the Knative Service panel. The application opens in a new tab.
|
|
45
|
+
4. Close the new browser tab and return to the **Topology** view.
|
|
46
|
+
|
|
47
|
+
In the **Topology** view, you can see that your application scaled up to one Pod to accommodate your request. After a few minutes, your application scales back down to zero Pods.
|
|
48
|
+
review:
|
|
49
|
+
instructions: |-
|
|
50
|
+
#### To verify the application scaled down:
|
|
51
|
+
1. Click the revision inside your service. The badges under the Pod ring and at the top of the side panel should be (REV).
|
|
52
|
+
2. Click the **Details** tab in the side panel.
|
|
53
|
+
|
|
54
|
+
Is the Pod ring autoscaled to zero?
|
|
55
|
+
failedTaskHelp:
|
|
56
|
+
This task isn’t verified yet. Try the task again, or [read more](https://docs.openshift.com/container-platform/4.6/applications/application_life_cycle_management/odc-viewing-application-composition-using-topology-view.html#odc-scaling-application-pods-and-checking-builds-and-routes_viewing-application-composition-using-topology-view)
|
|
57
|
+
about this topic.
|
|
58
|
+
summary:
|
|
59
|
+
success: You just scaled up your application to accomodate a traffic request!
|
|
60
|
+
failed: Try the steps again.
|
|
61
|
+
- title: Connecting an event source to your Knative Service
|
|
62
|
+
description: |-
|
|
63
|
+
### To connect an event source to your Knative Service:
|
|
64
|
+
1. On the **Topology** View, hover over your service with your cursor. You should see a blue arrow.
|
|
65
|
+
2. Click and drag the blue arrow, then drop it anywhere outside the service.
|
|
66
|
+
3. In the list that appears, click **Event Source**.
|
|
67
|
+
4. Under the **Type** field, click **PingSource**.
|
|
68
|
+
5. In the **Data** field, type `This message is from PingSource`. This message is posted when the service is called.
|
|
69
|
+
6. In the **Schedule** field, type `* * * * *`. This means that the PingSource will make a call every minute.
|
|
70
|
+
7. In the **Application** field, select **Sample Serverless App**.
|
|
71
|
+
8. Click **Create**.
|
|
72
|
+
review:
|
|
73
|
+
instructions: |-
|
|
74
|
+
#### To verify that the event connected to your Knative service:
|
|
75
|
+
|
|
76
|
+
Go to the **Topology** view.
|
|
77
|
+
|
|
78
|
+
Do you see a PingSource connected by a gray line to the side of your application?
|
|
79
|
+
failedTaskHelp:
|
|
80
|
+
This task isn’t verified yet. Try the task again, or [read more](https://docs.openshift.com/container-platform/4.6/serverless/event_sources/knative-event-sources.html)
|
|
81
|
+
about this topic.
|
|
82
|
+
summary:
|
|
83
|
+
success: You just wired an Event Source to your Knative Service!
|
|
84
|
+
failed: Try the steps again.
|
|
85
|
+
- title: Forcing a new revision and set traffic distribution
|
|
86
|
+
description: |-
|
|
87
|
+
### To force a revision and set traffic distribution:
|
|
88
|
+
|
|
89
|
+
1. In **Topology**, click on the revision inside your service to view its details. The badges under the Pod ring and at the top of the detail panel should be (REV).
|
|
90
|
+
2. In the side panel, click on the **Resources** tab.
|
|
91
|
+
3. Scroll down and click on the configuration associated with your service.
|
|
92
|
+
4. Go to the resource’s **YAML** tab.
|
|
93
|
+
5. Scroll all the way down until you see `timeoutSeconds`.
|
|
94
|
+
6. Change the value from `300` to `30` and click **Save**.
|
|
95
|
+
7. Go back to the **Topology** view.
|
|
96
|
+
8. Click on your service. The badge at the top of the side panel should be (KSVC).
|
|
97
|
+
9. In the side panel, click on the **Resources** tab.
|
|
98
|
+
10. Next to **Revisions**, click **Set Traffic Distribution**.
|
|
99
|
+
11. Click **Add Revision**.
|
|
100
|
+
12. In the **Revision** dropdown, select the new revision.
|
|
101
|
+
13. In the **Split** column, set both revisions to **50**.
|
|
102
|
+
14. Click **Save**.
|
|
103
|
+
|
|
104
|
+
You should now be able to watch as the Pod rings for each revision scale up and down each time the application is pinged.
|
|
105
|
+
review:
|
|
106
|
+
instructions: |-
|
|
107
|
+
#### To verify that you forced a new revision and set traffic distribution:
|
|
108
|
+
|
|
109
|
+
Make sure you are still in **Topology** view.
|
|
110
|
+
|
|
111
|
+
Do you see two revisions in your Knative Service?
|
|
112
|
+
failedTaskHelp:
|
|
113
|
+
This task isn’t verified yet. Try the task again, or [read more](https://docs.openshift.com/container-platform/4.6/serverless/knative_serving/splitting-traffic-between-revisions.html)
|
|
114
|
+
about this topic.
|
|
115
|
+
summary:
|
|
116
|
+
success: You just set a traffic distribution for your Serverless app!
|
|
117
|
+
failed: Try the steps again.
|
|
118
|
+
- title: Deleting your application
|
|
119
|
+
description: |-
|
|
120
|
+
### To delete the application you just created:
|
|
121
|
+
|
|
122
|
+
1. Click your application’s name. The badge at the top of the side panel should be (A).
|
|
123
|
+
2. At the top of the resource details panel, click on the **Actions** list.
|
|
124
|
+
3. Click **Delete application**.
|
|
125
|
+
4. To confirm deletion, type the application’s name in the **Name** field, and then click **Delete**.
|
|
126
|
+
review:
|
|
127
|
+
instructions: |-
|
|
128
|
+
#### To verify you deleted your application: :
|
|
129
|
+
|
|
130
|
+
Make sure you are still in **Topology** view.
|
|
131
|
+
|
|
132
|
+
Has the Sample Serverless App been removed?
|
|
133
|
+
failedTaskHelp:
|
|
134
|
+
This task is not verified yet. Try the task again, or [read more](https://docs.openshift.com/container-platform/4.6/applications/application_life_cycle_management/odc-deleting-applications.html)
|
|
135
|
+
about this topic.
|
|
136
|
+
summary:
|
|
137
|
+
success: You just deleted your Serverless app!
|
|
138
|
+
failed: Try the steps again.
|
|
139
|
+
conclusion: You just learned how to use Serverless applications in your cluster!
|
|
140
|
+
To learn more about building Serverless apps, take a look at our [Knative Cookbook](https://redhat-developer-demos.github.io/knative-tutorial/knative-tutorial/index.html).
|
|
141
|
+
nextQuickStart: ['']
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { QuickStart } from '@patternfly/quickstarts';
|
|
2
|
+
import { explorePipelinesQuickStart } from './mocks/json/explore-pipeline-quickstart';
|
|
3
|
+
import { exploreServerlessQuickStart } from './mocks/json/explore-serverless-quickstart';
|
|
4
|
+
import { monitorSampleAppQuickStart } from './mocks/json/monitor-sampleapp-quickstart';
|
|
5
|
+
|
|
6
|
+
export const allQuickStarts: QuickStart[] = [
|
|
7
|
+
explorePipelinesQuickStart,
|
|
8
|
+
exploreServerlessQuickStart,
|
|
9
|
+
monitorSampleAppQuickStart,
|
|
10
|
+
];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { QuickStart } from '@patternfly/quickstarts';
|
|
2
|
+
import { allQuickStarts } from './quick-start-test-data';
|
|
3
|
+
|
|
4
|
+
export const getQuickStarts = (): QuickStart[] => allQuickStarts;
|
|
5
|
+
|
|
6
|
+
export const contextValues = {
|
|
7
|
+
allQuickStarts,
|
|
8
|
+
activeQuickStartID: '',
|
|
9
|
+
startQuickStart: () => {},
|
|
10
|
+
restartQuickStart: () => {},
|
|
11
|
+
};
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import './styles/style.scss';
|
|
2
|
+
|
|
3
|
+
export * from './QuickStartCatalogPage';
|
|
4
|
+
export * from './catalog';
|
|
5
|
+
export * from './ConsoleInternal/components/utils';
|
|
6
|
+
export * from './QuickStartDrawer';
|
|
7
|
+
export * from './HelpTopicDrawer';
|
|
8
|
+
export * from './utils/const';
|
|
9
|
+
export * from './utils/quick-start-context';
|
|
10
|
+
export * from './utils/quick-start-types';
|
|
11
|
+
export * from './utils/help-topic-context';
|
|
12
|
+
export * from './utils/help-topic-types';
|
|
13
|
+
export * from './utils/quick-start-utils';
|
|
14
|
+
export * from './utils/useLocalStorage';
|
|
15
|
+
export * from './utils/asciidoc-procedure-parser';
|
|
16
|
+
export { default as QuickStartPanelContent } from './QuickStartPanelContent';
|
|
17
|
+
export { default as QuickStartCloseModal } from './QuickStartCloseModal';
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"No results found": "No results found",
|
|
3
|
+
"No results match the filter criteria. Remove filters or clear all filters to show results.": "No results match the filter criteria. Remove filters or clear all filters to show results.",
|
|
4
|
+
"Clear all filters": "Clear all filters",
|
|
5
|
+
"Quick Starts": "Quick Starts",
|
|
6
|
+
"Complete ({{statusCount, number}})": "Complete ({{statusCount, number}})",
|
|
7
|
+
"In progress ({{statusCount, number}})": "In progress ({{statusCount, number}})",
|
|
8
|
+
"Not started ({{statusCount, number}})": "Not started ({{statusCount, number}})",
|
|
9
|
+
"Filter by keyword...": "Filter by keyword...",
|
|
10
|
+
"Select filter": "Select filter",
|
|
11
|
+
"Status": "Status",
|
|
12
|
+
"{{count, number}} item": "{{count, number}} item",
|
|
13
|
+
"{{count, number}} item_plural": "{{count, number}} items",
|
|
14
|
+
"Prerequisites ({{totalPrereqs}})": "Prerequisites ({{totalPrereqs}})",
|
|
15
|
+
"View Prerequisites ({{totalPrereqs}})": "View Prerequisites ({{totalPrereqs}})",
|
|
16
|
+
"Prerequisites": "Prerequisites",
|
|
17
|
+
"Show prerequisites": "Show prerequisites",
|
|
18
|
+
"Complete": "Complete",
|
|
19
|
+
"In progress": "In progress",
|
|
20
|
+
"Not started": "Not started",
|
|
21
|
+
"{{duration, number}} minutes": "{{duration, number}} minutes",
|
|
22
|
+
"One or more verifications did not pass during this quick start. Revisit the tasks or the help links, and then try again.": "One or more verifications did not pass during this quick start. Revisit the tasks or the help links, and then try again.",
|
|
23
|
+
"Start {{nextQSDisplayName}} quick start": "Start {{nextQSDisplayName}} quick start",
|
|
24
|
+
"Start": "Start",
|
|
25
|
+
"Continue": "Continue",
|
|
26
|
+
"Next": "Next",
|
|
27
|
+
"Close": "Close",
|
|
28
|
+
"Back": "Back",
|
|
29
|
+
"Restart": "Restart",
|
|
30
|
+
"In this quick start, you will complete {{count, number}} task": "In this quick start, you will complete {{count, number}} task",
|
|
31
|
+
"In this quick start, you will complete {{count, number}} task_plural": "In this quick start, you will complete {{count, number}} tasks",
|
|
32
|
+
"{{taskIndex, number}}": "{{taskIndex, number}}",
|
|
33
|
+
"Check your work": "Check your work",
|
|
34
|
+
"Yes": "Yes",
|
|
35
|
+
"No": "No",
|
|
36
|
+
"{{index, number}} of {{tasks, number}}": "{{index, number}} of {{tasks, number}}",
|
|
37
|
+
"Leave quick start?": "Leave quick start?",
|
|
38
|
+
"Cancel": "Cancel",
|
|
39
|
+
"Leave": "Leave",
|
|
40
|
+
"Your progress will be saved.": "Your progress will be saved.",
|
|
41
|
+
"Not available": "Not available",
|
|
42
|
+
"Copy to clipboard": "Copy to clipboard",
|
|
43
|
+
"Successfully copied to clipboard!": "Successfully copied to clipboard!",
|
|
44
|
+
"Type": "Quick start",
|
|
45
|
+
"{{type}} • {{duration, number}} minutes": "{{type}} • {{duration, number}} minutes"
|
|
46
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// Base element styles.
|
|
2
|
+
// Please DO NOT add rules of this type.
|
|
3
|
+
.pfext-quick-start-panel-content__body {
|
|
4
|
+
dl {
|
|
5
|
+
margin: 0px; }
|
|
6
|
+
|
|
7
|
+
// match pf4 styling / table col head styling
|
|
8
|
+
dt {
|
|
9
|
+
font-weight: var(--pf-global--FontWeight--bold); }
|
|
10
|
+
|
|
11
|
+
dd {
|
|
12
|
+
margin-bottom: 20px; }
|
|
13
|
+
|
|
14
|
+
dd:last-child {
|
|
15
|
+
margin-bottom: 0px; }
|
|
16
|
+
|
|
17
|
+
input[type="number"] {
|
|
18
|
+
-webkit-appearance: textfield;
|
|
19
|
+
appearance: textfield;
|
|
20
|
+
max-width: 100px;
|
|
21
|
+
&::-webkit-inner-spin-button,
|
|
22
|
+
&::-webkit-outer-spin-button {
|
|
23
|
+
-webkit-appearance: none;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
input[type="radio"] {
|
|
28
|
+
margin-right: 7px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.pf-c-list {
|
|
32
|
+
--pf-c-list--PaddingLeft: 20px;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// drawer
|
|
37
|
+
.pfext-quick-start-panel-content__header,
|
|
38
|
+
.pfext-quick-start-panel-content__body,
|
|
39
|
+
// catalog gallery wrapper
|
|
40
|
+
.pfext-page-layout__content,
|
|
41
|
+
// catalog item prereq popover
|
|
42
|
+
.pfext-popover__base {
|
|
43
|
+
--pf-global--FontSize--md: 14px;
|
|
44
|
+
--pf-global--FontSize--sm: 13px;
|
|
45
|
+
|
|
46
|
+
ul {
|
|
47
|
+
list-style-type: disc;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
input[type='radio'],
|
|
51
|
+
input[type='checkbox'] {
|
|
52
|
+
margin-top: 1px !important;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
.pf-theme-dark {
|
|
2
|
+
.pfext-catalog-item-icon__img--large {
|
|
3
|
+
// Not perfect, but gives a better result for colors than just inverting
|
|
4
|
+
// by inverts to switch b/w, then rotates to get colors approximately back
|
|
5
|
+
filter: brightness(1.5) invert(1) hue-rotate(180deg) saturate(4);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
// duration color was gray on white but on the blue header, only white text works
|
|
9
|
+
.pfext-quick-start-panel-content__header--blue-white .pfext-quick-start-panel-content__duration {
|
|
10
|
+
color: var(--pf-global--Color--light-100);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.pfext-quick-start-task-header__subtitle {
|
|
14
|
+
color: var(--pf-global--palette--black-200) !important;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.pfext-quick-start-task-header__task-icon-init {
|
|
18
|
+
background-color: var(--pf-global--primary-color--300);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.pfext-quick-start-task-header__tryagain {
|
|
22
|
+
color: var(--pf-global--palette--black-200) !important;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.pfext-markdown-view pre {
|
|
26
|
+
background-color: var(--pf-global--BackgroundColor--100);
|
|
27
|
+
border-color: var(--pf-global--BorderColor--100);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.pfext-markdown-view code {
|
|
31
|
+
color: var(--pf-global--Color--100);
|
|
32
|
+
background-color: var(--pf-global--palette--black-600);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.pfext-markdown-view .pf-c-code-block,
|
|
36
|
+
.pfext-markdown-view .pf-c-code-block code {
|
|
37
|
+
background-color: var(--pf-global--BackgroundColor--400);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:where(.pfext-markdown-view) .pf-c-clipboard-copy.pf-m-inline {
|
|
41
|
+
--pf-c-clipboard-copy--m-inline--BackgroundColor: var(--pf-global--BackgroundColor--400);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// Make the cards light on dark background. It would be better to use pf-c-page__main-section variable but we aren't using a page section here.
|
|
45
|
+
.pfext-page-layout__content {
|
|
46
|
+
background-color: var(--pf-global--BackgroundColor--200);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.pfext-quick-start-catalog__gallery-item .pf-c-card {
|
|
50
|
+
--pf-c-card--BackgroundColor: var(--pf-global--BackgroundColor--100);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// Alerts currently has the wrong background in the PF dark stylesheet. This can be removed once that is fixed.
|
|
54
|
+
.pf-c-alert {
|
|
55
|
+
--pf-c-alert--BackgroundColor: var(--pf-global--palette--black-700);
|
|
56
|
+
--pf-c-alert--m-inline--BackgroundColor: var(--pf-global--palette--black-700);
|
|
57
|
+
--pf-c-alert--m-inline--m-success--BackgroundColor: var(--pf-global--palette--black-700);
|
|
58
|
+
--pf-c-alert--m-inline--m-danger--BackgroundColor: var(--pf-global--palette--black-700);
|
|
59
|
+
--pf-c-alert--m-inline--m-warning--BackgroundColor: var(--pf-global--palette--black-700);
|
|
60
|
+
--pf-c-alert--m-inline--m-info--BackgroundColor: var(--pf-global--palette--black-700);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Contains a number of bootstrap styles that were implicitly in use within the markdown sections.
|
|
2
|
+
|
|
3
|
+
Before we had a dependency on bootstrap-sass and pulled in several of their styles.
|
|
4
|
+
|
|
5
|
+
"bootstrap-sass": "^3.3.7",
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
.pfext-markdown-view {
|
|
9
|
+
@import './ConsoleInternal/style/vars';
|
|
10
|
+
@import 'patternfly/dist/sass/patternfly/variables';
|
|
11
|
+
@import 'bootstrap-sass/assets/stylesheets/bootstrap/variables';
|
|
12
|
+
@import 'bootstrap-sass/assets/stylesheets/bootstrap/mixins';
|
|
13
|
+
@import 'patternfly/dist/sass/patternfly/bootstrap-mixin-overrides';
|
|
14
|
+
|
|
15
|
+
@import 'bootstrap-sass/assets/stylesheets/bootstrap/type';
|
|
16
|
+
@import 'bootstrap-sass/assets/stylesheets/bootstrap/code';
|
|
17
|
+
@import 'bootstrap-sass/assets/stylesheets/bootstrap/tables';
|
|
18
|
+
}
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Now we try to contain to a smaller subset and copy it in directly.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Code (inline and block)
|
|
3
|
+
// --------------------------------------------------
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
// Inline and block code styles
|
|
7
|
+
code,
|
|
8
|
+
pre {
|
|
9
|
+
font-family: $font-family-monospace;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// Inline code
|
|
13
|
+
code {
|
|
14
|
+
padding: 2px 4px;
|
|
15
|
+
font-size: 90%;
|
|
16
|
+
color: $code-color;
|
|
17
|
+
background-color: $code-bg;
|
|
18
|
+
border-radius: $border-radius-base;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// Blocks of code
|
|
22
|
+
pre {
|
|
23
|
+
display: block;
|
|
24
|
+
padding: (($line-height-computed - 1) / 2);
|
|
25
|
+
margin: 0 0 ($line-height-computed / 2);
|
|
26
|
+
font-size: ($font-size-base - 1); // 14px to 13px
|
|
27
|
+
line-height: $line-height-base;
|
|
28
|
+
color: $pre-color;
|
|
29
|
+
word-break: break-all;
|
|
30
|
+
word-wrap: break-word;
|
|
31
|
+
background-color: $pre-bg;
|
|
32
|
+
border: 1px solid $pre-border-color;
|
|
33
|
+
border-radius: $border-radius-base;
|
|
34
|
+
|
|
35
|
+
// Account for some code outputs that place code tags in pre tags
|
|
36
|
+
code {
|
|
37
|
+
padding: 0;
|
|
38
|
+
font-size: inherit;
|
|
39
|
+
color: inherit;
|
|
40
|
+
white-space: pre-wrap;
|
|
41
|
+
background-color: transparent;
|
|
42
|
+
border-radius: 0;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Tables
|
|
3
|
+
// --------------------------------------------------
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
table {
|
|
7
|
+
background-color: $table-bg;
|
|
8
|
+
|
|
9
|
+
// Table cell sizing
|
|
10
|
+
//
|
|
11
|
+
// Reset default table behavior
|
|
12
|
+
|
|
13
|
+
col[class*="col-"] {
|
|
14
|
+
position: static; // Prevent border hiding in Firefox and IE9-11 (see https://github.com/twbs/bootstrap/issues/11623)
|
|
15
|
+
display: table-column;
|
|
16
|
+
float: none;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
td,
|
|
20
|
+
th {
|
|
21
|
+
&[class*="col-"] {
|
|
22
|
+
position: static; // Prevent border hiding in Firefox and IE9-11 (see https://github.com/twbs/bootstrap/issues/11623)
|
|
23
|
+
display: table-cell;
|
|
24
|
+
float: none;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
caption {
|
|
30
|
+
padding-top: $table-cell-padding;
|
|
31
|
+
padding-bottom: $table-cell-padding;
|
|
32
|
+
color: $text-muted;
|
|
33
|
+
text-align: left;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
th {
|
|
37
|
+
text-align: left;
|
|
38
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Typography
|
|
3
|
+
// --------------------------------------------------
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
// Headings
|
|
7
|
+
// -------------------------
|
|
8
|
+
|
|
9
|
+
h1, h2, h3, h4, h5, h6,
|
|
10
|
+
.h1, .h2, .h3, .h4, .h5, .h6 {
|
|
11
|
+
font-family: $headings-font-family;
|
|
12
|
+
font-weight: $headings-font-weight;
|
|
13
|
+
line-height: $headings-line-height;
|
|
14
|
+
color: $headings-color;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
h1, .h1,
|
|
18
|
+
h2, .h2,
|
|
19
|
+
h3, .h3 {
|
|
20
|
+
margin-top: $line-height-computed;
|
|
21
|
+
margin-bottom: ($line-height-computed / 2);
|
|
22
|
+
}
|
|
23
|
+
h4, .h4,
|
|
24
|
+
h5, .h5,
|
|
25
|
+
h6, .h6 {
|
|
26
|
+
margin-top: ($line-height-computed / 2);
|
|
27
|
+
margin-bottom: ($line-height-computed / 2);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
h1, .h1 { font-size: $font-size-h1; }
|
|
31
|
+
h2, .h2 { font-size: $font-size-h2; }
|
|
32
|
+
h3, .h3 { font-size: $font-size-h3; }
|
|
33
|
+
h4, .h4 { font-size: $font-size-h4; }
|
|
34
|
+
h5, .h5 { font-size: $font-size-h5; }
|
|
35
|
+
h6, .h6 { font-size: $font-size-h6; }
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
// Body text
|
|
39
|
+
// -------------------------
|
|
40
|
+
|
|
41
|
+
p {
|
|
42
|
+
margin: 0 0 ($line-height-computed / 2);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
// Lists
|
|
47
|
+
// -------------------------
|
|
48
|
+
|
|
49
|
+
// Unordered and Ordered lists
|
|
50
|
+
ul,
|
|
51
|
+
ol {
|
|
52
|
+
margin-top: 0;
|
|
53
|
+
margin-bottom: ($line-height-computed / 2);
|
|
54
|
+
ul,
|
|
55
|
+
ol {
|
|
56
|
+
margin-bottom: 0;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// Description Lists
|
|
61
|
+
dl {
|
|
62
|
+
margin-top: 0; // Remove browser default
|
|
63
|
+
margin-bottom: $line-height-computed;
|
|
64
|
+
}
|
|
65
|
+
dt,
|
|
66
|
+
dd {
|
|
67
|
+
line-height: $line-height-base;
|
|
68
|
+
}
|
|
69
|
+
dt {
|
|
70
|
+
font-weight: 700;
|
|
71
|
+
}
|
|
72
|
+
dd {
|
|
73
|
+
margin-left: 0; // Undo browser default
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// Blockquotes
|
|
77
|
+
blockquote {
|
|
78
|
+
padding: ($line-height-computed / 2) $line-height-computed;
|
|
79
|
+
margin: 0 0 $line-height-computed;
|
|
80
|
+
font-size: $blockquote-font-size;
|
|
81
|
+
border-left: 5px solid $blockquote-border-color;
|
|
82
|
+
|
|
83
|
+
p,
|
|
84
|
+
ul,
|
|
85
|
+
ol {
|
|
86
|
+
&:last-child {
|
|
87
|
+
margin-bottom: 0;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|