![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@kiali/kiali-ui
Advanced tools
:toc: macro :toc-title:
toc::[] = Kiali UI
== Introduction
A UI for the Kiali Istio Observability Project
== Technologies
[NOTE]
On some platforms, yarn start
may fail with an error like Error: ENOSPC: System limit for number of file watchers reached
. To fix this, you need to increase the limit of file watchers on your system. The command may vary depending on the platform, please refer to link:https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers[these instructions].
A new browser window should automatically open.
But, if it doesn't then use:
http://localhost:3000
This launches a development environment that instantly reloads any changes to the browser for rapid development.
== Directory Structure
build
: Production build outputpublic
: Home of index.htmlsrc
: Source and test codesrc/actions
: Redux actionssrc/app
: React top level componentsrc/assets
: Images and other assetssrc/config
: Configurationsrc/containers
: [.line-through]#Redux connected containers# Deprecatedsrc/components
: React Componentssrc/fonts
: Fontssrc/images
: Patternfly Imagessrc/pages
: Top level pages and nested componentssrc/reducers
: Redux reducerssrc/services
: Api servicessrc/store
: Redux store definitionssrc/types
: Typescript definitions for all kinds of typessrc/utils
: Various Utilities== Developing
We use yarn
as the package manager, if adding dependencies to package.json
make sure you install them with yarn
and commit the yarn.lock
file.
=== Testing with Kiali
When developing, it is usual to run this application outside of https://github.com/kiali/kiali[kiali].
package.json
with the url of kiali.
[source, json]If Kiali is configured with a specific web root, make sure to append it to the URL. On many setups with Kubernetes, the web root will be /kiali
by default.
yarn start
and try it!
[source, bash]$ curl -u admin:admin http://localhost:3000/api Namespaces: [default istio-system kube-public kube-system myproject openshift openshift-infra openshift-node]
Namespace: default Services [docker-registry kubernetes router]
=== Styling
https://www.patternfly.org/[PatternFly] is the main UI components framework. It defines style based on SASS preprocessor.
All Patternfly build assets are copied to src
.
Any React component may have its related SCSS file (such as App.scss
- this one includes all PatternFly Sass along with
PatternFly React Sass extensions).
Once Sass compiles, the resulting CSS can be found next to its SCSS counterpart (ex: src/app/App.css
).
Note:
Only static assets which are import
'ed into your application will be included in your resulting build output.
=== RCUE Styling To use the https://redhat-rcue.github.io/[RCUE] styled css instead of normal Patternfly
=== Style Code Guide
See the link:./STYLE_GUIDE.adoc[STYLE CODE GUIDE file].
yarn test
is valid,
but since some tests are using link:https://facebook.github.io/jest/docs/en/snapshot-testing.html[snapshots] the preferred command is to update them in the same time:
[source,shell]Then hit a
to run all tests.
After running the tests, if any snapshot has been modified (check git status), the diff should be reviewed to make sure it's an intentional or trivial change. Modified snapshots must be part of the commit so that they're reviewed collectively and won't make CI build fail.
== Testing Libraries for Vulnerabilities
We use https://snyk.io/[Snyk] for JS vulnerability testing. Snyke will run automatically on every commit pushed to kiali-ui
.
== Production Builds
Use yarn build
which will bundle the build artifacts using webpack into the build
directory.
Which will then launch a browser with your graphical source map displayed.
== License and Copyright See the link:./LICENSE[LICENSE file].
FAQs
React UI for [Kiali](https://github.com/kiali/kiali).
We found that @kiali/kiali-ui demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.