Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(demo): embed web-client with fake API stubs as a demo #109

Merged
merged 40 commits into from
May 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
cba7fc5
feat(demo): embed web-client with fake API stubs as a demo
andrewazores May 1, 2023
b20a328
use relative, not percent, iframe height for chromium compat
andrewazores May 2, 2023
3b2789f
remove unused import
andrewazores May 2, 2023
ecf7f12
formatting
andrewazores May 2, 2023
1d25313
add formatter
andrewazores May 2, 2023
6164dc3
apply formatting
andrewazores May 2, 2023
6282bd8
fix font loading
andrewazores May 2, 2023
db02616
add loading indicator and some intro text
andrewazores May 2, 2023
c78c5a1
use miragejs models for targets and recordings
andrewazores May 2, 2023
be507c3
use model for rules
andrewazores May 2, 2023
6310862
stub out some GraphQL queries
andrewazores May 2, 2023
e7b37e2
stub out recording archiving, deleting, and graphql querying of archives
andrewazores May 2, 2023
0f27209
update message
andrewazores May 2, 2023
ff1170f
stub HTML reports
andrewazores May 2, 2023
d5d6aa2
stub mbean metrics
andrewazores May 2, 2023
86599e5
set response timing to 0 (immediate)
andrewazores May 2, 2023
23f46cc
add yarn install to ensure requirements installed
andrewazores May 5, 2023
cb3f063
update web-client version
andrewazores May 5, 2023
02d2e57
Hack in a history patch to load iframe dashboard
andrewazores May 5, 2023
419b7fe
handle Automated Analysis card GraphQL queries
andrewazores May 5, 2023
c513ea6
stub out fake JSON reports result
andrewazores May 5, 2023
ed6511e
trim report json
andrewazores May 5, 2023
6ca281f
stub out custom targets
andrewazores May 5, 2023
3c7c2eb
remove package-lock in favour of yarn.lock
andrewazores May 5, 2023
1b1431f
correct patch path strip
andrewazores May 5, 2023
49c7460
ignore yarnrc
andrewazores May 5, 2023
bbe8a28
update yarn.lock
andrewazores May 9, 2023
eec0736
stub out recording metadata labels
andrewazores May 9, 2023
2dd8f1c
remove unnecessary ignore
andrewazores May 9, 2023
aa383e7
update demo assets
andrewazores May 9, 2023
dd02ddd
emit ws notification on recording create
andrewazores May 9, 2023
c249891
apply extra labels on creation
andrewazores May 9, 2023
3f38d55
var -> let
andrewazores May 9, 2023
8c4d2e0
add thuan's suggestion of loading spinner
andrewazores May 9, 2023
4b5ab1f
fixup! add thuan's suggestion of loading spinner
andrewazores May 9, 2023
3da98f4
formatting
andrewazores May 9, 2023
caa246a
apply border to demo iframe
andrewazores May 9, 2023
6ce8a51
stub out response for All Archives view
andrewazores May 9, 2023
5528244
fix missing archived recording size
andrewazores May 9, 2023
58bc2f0
parseable version string
andrewazores May 9, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ _site
.jekyll-metadata
vendor
**/.DS_Store

demo/node_modules/
demo/.yarn/
demo/.yarnrc.yml
demo/.pnp.cjs
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,9 @@ to install project dependencies.
- `bundle exec jekyll serve --watch --livereload --open-url --future --config _config.yml,_config-dev.yml`

This will start a local development server, open your default browser pointing to the local build on that server, with the server watching for project filesystem changes and hot-reloading the browser when changes are detected and rebuilt.

### Updating Demo

```bash
$ bash build-demo.bash cryostat-v2.3
```
1 change: 1 addition & 0 deletions _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<div class="trigger">
<a class="page-link" href="/get-started/">Get Started</a>
<a class="page-link" href="/guides/">Guides</a>
<a class="page-link" href="/demo/">Demo</a>
<a class="page-link" href="/blog/">Blog</a>
</div>
</nav>
Expand Down
20 changes: 20 additions & 0 deletions _layouts/demo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="{{ page.lang | default: site.lang | default: "en" }}">

{%- include head.html -%}

<body>

{%- include header.html -%}

<main class="page-content" aria-label="Content">
{{ content }}
</main>

{%- include footer.html -%}
{%- include redhat-footer.html -%}
{%- include scripts.html -%}
{%- include rh-analytics-footer.html -%}
</body>

</html>
23 changes: 23 additions & 0 deletions _sass/core/demo.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.linear-dot-spinner {
width: 2em;
aspect-ratio: 4;
background: radial-gradient(circle closest-side, #73BCF7 90%, #0000) 0/calc(100%/3) 100% space;
clip-path: inset(0 100% 0 0);
animation: linear-dot-spinner-animate 1s steps(4) infinite;
}

@keyframes linear-dot-spinner-animate {
to {
clip-path: inset(0 -34% 0 0)
}
}

.demo-iframe {
opacity: 0;
box-sizing: border-box;
width: 100%;
height: 50em;
scale: 0.98;
border: 1px solid;
border-radius: 4px;
}
1 change: 1 addition & 0 deletions assets/css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

@import "core/cryostat";
@import "core/blog";
@import "core/demo";

@import "includes/redhat-footer";
@import "includes/back-to-top.scss";
Expand Down
1 change: 1 addition & 0 deletions assets/demo/site/393.e5a9eabb40cd5f66.bundle.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/demo/site/app.5719b38e10b241d3.bundle.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/demo/site/app.ed4d56b063ab502d.bundle.css

Large diffs are not rendered by default.

Binary file added assets/demo/site/favicon.ico
Binary file not shown.
Binary file added assets/demo/site/fonts/RedHatDisplay-Bold.woff
Binary file not shown.
Binary file added assets/demo/site/fonts/RedHatDisplay-Bold.woff2
Binary file not shown.
Binary file added assets/demo/site/fonts/RedHatDisplay-Medium.woff
Binary file not shown.
Binary file not shown.
Binary file added assets/demo/site/fonts/RedHatDisplay-Regular.woff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added assets/demo/site/fonts/RedHatMonoVF-updated.woff2
Binary file not shown.
Binary file added assets/demo/site/fonts/RedHatText-Medium.woff
Binary file not shown.
Binary file added assets/demo/site/fonts/RedHatText-Medium.woff2
Binary file not shown.
Binary file added assets/demo/site/fonts/RedHatText-Regular.woff
Binary file not shown.
Binary file added assets/demo/site/fonts/RedHatText-Regular.woff2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added assets/demo/site/fonts/overpass-bold-italic.woff2
Binary file not shown.
Binary file added assets/demo/site/fonts/overpass-bold.woff
Binary file not shown.
Binary file added assets/demo/site/fonts/overpass-bold.woff2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added assets/demo/site/fonts/overpass-extrabold.woff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added assets/demo/site/fonts/overpass-extralight.woff
Binary file not shown.
Binary file added assets/demo/site/fonts/overpass-extralight.woff2
Binary file not shown.
Binary file added assets/demo/site/fonts/overpass-heavy-italic.woff
Binary file not shown.
Binary file not shown.
Binary file added assets/demo/site/fonts/overpass-heavy.woff
Binary file not shown.
Binary file added assets/demo/site/fonts/overpass-heavy.woff2
Binary file not shown.
Binary file added assets/demo/site/fonts/overpass-italic.woff
Binary file not shown.
Binary file added assets/demo/site/fonts/overpass-italic.woff2
Binary file not shown.
Binary file added assets/demo/site/fonts/overpass-light-italic.woff
Binary file not shown.
Binary file not shown.
Binary file added assets/demo/site/fonts/overpass-light.woff
Binary file not shown.
Binary file added assets/demo/site/fonts/overpass-light.woff2
Binary file not shown.
Binary file added assets/demo/site/fonts/overpass-mono-bold.woff
Binary file not shown.
Binary file added assets/demo/site/fonts/overpass-mono-bold.woff2
Binary file not shown.
Binary file added assets/demo/site/fonts/overpass-mono-light.woff
Binary file not shown.
Binary file added assets/demo/site/fonts/overpass-mono-light.woff2
Binary file not shown.
Binary file added assets/demo/site/fonts/overpass-mono-regular.woff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added assets/demo/site/fonts/overpass-regular.woff
Binary file not shown.
Binary file added assets/demo/site/fonts/overpass-regular.woff2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added assets/demo/site/fonts/overpass-semibold.woff
Binary file not shown.
Binary file added assets/demo/site/fonts/overpass-semibold.woff2
Binary file not shown.
Binary file added assets/demo/site/fonts/overpass-thin-italic.woff
Binary file not shown.
Binary file added assets/demo/site/fonts/overpass-thin-italic.woff2
Binary file not shown.
Binary file added assets/demo/site/fonts/overpass-thin.woff
Binary file not shown.
Binary file added assets/demo/site/fonts/overpass-thin.woff2
Binary file not shown.
Binary file added assets/demo/site/fonts/pficon.woff
Binary file not shown.
Binary file added assets/demo/site/fonts/pficon.woff2
Binary file not shown.
Binary file added assets/demo/site/images/about_background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/demo/site/images/cryostat_logo_hori_rgb_default.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/demo/site/images/cryostat_logo_hori_rgb_reverse.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading