-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(site-status): automatically fetch status for domain (#1547)
* fix(site-status): automatically fetch status for domain * refactor(site-status): decruft * test(site-status): test green
- Loading branch information
1 parent
9494e3e
commit 971214d
Showing
12 changed files
with
368 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
"@rhds/elements": patch | ||
--- | ||
`<rh-site-status>`: automatically fetch status for the current domain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<form id="demo-form"> | ||
<rh-site-status id="status"></rh-site-status> | ||
<label for="domain"></label> | ||
<pf-select id="domain"> | ||
<pf-option>redhat.com</pf-option> | ||
<pf-option>access.redhat.com</pf-option> | ||
<pf-option>bugzilla.redhat.com</pf-option> | ||
<pf-option>cloud.redhat.com</pf-option> | ||
<pf-option>connect.redhat.com</pf-option> | ||
<pf-option>console.redhat.com</pf-option> | ||
<pf-option>developers.redhat.com</pf-option> | ||
<pf-option>docs.redhat.com</pf-option> | ||
<pf-option>intelligence.redhat.com</pf-option> | ||
</pf-select> | ||
</form> | ||
|
||
<script type="module"> | ||
import '@rhds/elements/rh-site-status/rh-site-status.js'; | ||
import '@patternfly/elements/pf-select/pf-select.js'; | ||
document.getElementById('domain').addEventListener('change', function(event) { | ||
document.getElementById('status').__TESTING_ONLY_DONT_USE_OR_WELL_TELL_YOUR_BOSS__domain__ = event.target.value; | ||
}) | ||
</script> | ||
|
||
<style> | ||
#demo-form { | ||
display: flex; | ||
gap: var(--rh-space-md, 8px); | ||
& #domain { | ||
flex: 1; | ||
} | ||
} | ||
</style> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,9 @@ | ||
{% renderOverview %} | ||
<rh-site-status></rh-site-status> | ||
{% endrenderOverview %} | ||
{% renderInstall %}{% endrenderInstall %} | ||
|
||
{% band header="Usage" %}{% endband %} | ||
## Usage | ||
|
||
{% renderSlots %}{% endrenderSlots %} | ||
```html | ||
<rh-site-status></rh-site-status> | ||
``` | ||
|
||
{% renderAttributes %}{% endrenderAttributes %} | ||
|
||
{% renderMethods %}{% endrenderMethods %} | ||
|
||
{% renderEvents %}{% endrenderEvents %} | ||
|
||
{% renderCssCustomProperties %}{% endrenderCssCustomProperties %} | ||
|
||
{% renderCssParts %}{% endrenderCssParts %} | ||
{% renderCodeDocs hideDescription=true %}{% endrenderCodeDocs %} |
Oops, something went wrong.