crc-org / crc-react-components Goto Github PK
View Code? Open in Web Editor NEWShared components for CodeReady Containers
License: Apache License 2.0
Shared components for CodeReady Containers
License: Apache License 2.0
Add card:
Visualize this as a carousel that slides left and right?
We use componentWillReceiveProps
in several component:
componentWillReceiveProps
is deprecated and generate warning, see more on https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html
If types are introduced it is suggested to fix:
const isStarting = this.state.CrcStatus === "Starting";
suggested to be
const isBusy = (this.state.CrcStatus === "Starting") || (this.state.CrcStatus === "Stopping");
pf-icon-on | fa-power-off
pf-icon-paused | fa-pause-circle
pf-icon-delete | fa-trash
To prevent issues with the pull-secret, the component could perform basic validation.
When the pull secret has been pasted, it is checked for JSON
-wellformedness. If not, the outer edge can turn red, and a callback can be given/variable set isValid = false
;
It could even be possible to read basic data from the pull-secret. As the pull-secret takes the form of:
{
"auths": {
"cloud.openshift.com": {
"auth": "b3B...Q==",
"email": "[email protected]"
},
"quay.io": {
"auth": "b3B...Q==",
"email": "[email protected]"
},
"registry.connect.redhat.com": {
"auth": "NTA...w==",
"email": "[email protected]"
},
"registry.redhat.io": {
"auth": "NTA...w==",
"email": "[email protected]"
}
}
}
we could show:
Provided pull-secret belongs to:
Email: g***d@r***t.com
Note: this could additionally state that the 'validness' (not expired) will be checked by the cluster.
Has values for podmanVersion
Allow
... to allow opening a dialog using the new PullSecretInputCard
.
Should be part of crc-org/tray-electron#129
Alternatively we may provide type definition *.d.ts
for this components.
pf-icon pf-icon-memory
| fa-memory
pf-icon-cpu
| fa-microchip
pf-container-node | fa-hdd
pficon-key | fa-key
Use icons to represent state:
This is a nasty workaround for now to make the components aware of the minimum values specific to presets, as the API does not return this:
and causing:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.