Coder Social home page Coder Social logo

ibolton336 / static-report Goto Github PK

View Code? Open in Web Editor NEW

This project forked from konveyor/static-report

0.0 0.0 0.0 6.62 MB

Static UI to browse Konveyor analysis output locally

License: Apache License 2.0

JavaScript 1.28% Go 2.65% TypeScript 92.19% CSS 1.73% HTML 1.18% Dockerfile 0.97%

static-report's Introduction

Static Report

Static Report is a user interface for the output generated by analyzer-lsp. As the name suggests, it's completely static in nature, and does not talk to any external APIs.

It is packaged within kantra to generate visual reports.

Developing / Contributing

How it works?

As stated in the introduction, the interface is completely static in nature. All of the data displayed in the UI resides in public/output.js file. It is empty by default when you build the project. In order to display actual output of an analysis, output.js must contain data generated from that analysis. The analyzer generates output in the YAML format. Learn more about the analysis output format here.

The contents of the YAML output need to be converted into the specific format expected in output.js. We provide analyzer-output-parser tool to do exactly that. It takes YAML output generated by the analyzer as input, along with some other options, and generates an output.js file. When you place this file in public/output.js, the UI will display the actual report.

Running in development mode

We have tested following steps with npm version 9.8.1

This is useful for iterative development.

To run the project in development mode:

  • Install dependencies:

    npm clean-install
  • Run the project:

    npm start

    This will open the UI in your browser. Replace public/output.js file with one generated for an actual analysis.

Running in production mode

This is how the project gets packaged in kantra.

  • Install dependencies:

    npm clean-install
  • Build the project:

    CI=true PUBLIC_URL=. npm run build

    This will generate a build directory. Among other files, it contains - output.js and index.html. Replace the output.js file with one generated for an actual analysis and open index.html in your browser.

Code of Conduct

Refer to Konveyor's Code of Conduct here.

static-report's People

Contributors

pranavgaikwad avatar djzager avatar carlosthe19916 avatar rromannissen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.