Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

Implement About window #125

Closed
1 of 2 tasks
Tracked by #2970
gbraad opened this issue Jan 31, 2022 · 2 comments · Fixed by #131
Closed
1 of 2 tasks
Tracked by #2970

Implement About window #125

gbraad opened this issue Jan 31, 2022 · 2 comments · Fixed by #131

Comments

@gbraad
Copy link
Collaborator

gbraad commented Jan 31, 2022

This solves and handles

This is what I looked like in the Windows client:
image

@gbraad
Copy link
Collaborator Author

gbraad commented Feb 1, 2022

import ReactDOM from "react-dom";
import "@patternfly/react-core/dist/styles/base.css";
import "./fonts.css";

import React from "react";
import { Bullseye } from "@patternfly/react-core";

class AboutWindow extends React.Component {
  constructor(props) {
    super(props);
    this.state = {};
  }

  render() {
    const alignLeft = {
      float: "left",
      fontWeight: "bold"
    }

    const alignRight = {
      float: "right"
    }

    const clearBoth = {
      clear: "both"
    }

    return (
      <div style={{ margin: "20px" }}>
        <Bullseye>
          {
            <img
              alt="logo"
              src="https://github.com/code-ready/tray-windows/blob/master/Resources/Logo-Red_Hat-CodeReady_Containers-B-Standard-RGB.png?raw=true"
              width="480"
            />
          }
        </Bullseye>
        <div style={{ margin: "20px" }}>
          <div style={clearBoth}>
            <span style={alignLeft}>Red Hat CodeReady Containers version</span>
            <span style={alignRight} id="crcVersion">1.99-dev.1</span>
          </div>
          <div style={clearBoth}>
            <span style={alignLeft}>Red Hat OpenShift Container Platform</span>
            <span style={alignRight} id="ocpVersion">4.10.0</span>
          </div>
          <div style={clearBoth}>
            <span style={alignLeft}>Tray version</span>
            <span style={alignRight} id="crcVersion">0.9.0</span>
          </div>
        </div>
      </div>
    );
  }
}

const rootElement = document.getElementById("root");
ReactDOM.render(<AboutWindow />, rootElement);

image

https://codesandbox.io/s/musing-khorana-shjzq?file=/index.js

@gbraad
Copy link
Collaborator Author

gbraad commented Feb 1, 2022

The version of the embedded bundle is an interesting 'problem' for the team to talk about. With the new client this is not bundled anymore

@gbraad gbraad linked a pull request Feb 4, 2022 that will close this issue
@gbraad gbraad mentioned this issue Feb 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant