2.3.2 • Published 1 day ago

@sibvisions/reactui v2.3.2

Weekly downloads
-
License
Apache-2.0 licens...
Repository
-
Last release
1 day ago

JVx ReactUI Client

The JVx ReactUI Client is a web application for JVx applications. It is used to dynamically render work-screens, created with the JVx framework. All layouts of JVx are supported. The client has two different menu-layouts and a login mechanism. It is possible to either run the ReactUI as standalone web application or as library to create your own react-projects or to even embed it into an existing project.

Requirements

  • Node version: 12.1.0 or later
  • Java version: 6 or later (for the JVx application)
  • A JVx application, running on a Java application (Jetty, Tomcat, ...) server, using JVx mobile UI
  • If you use ReactUI as lib you will need React 16.8.0 (for Hooks)

Bundling

There are two options to use bundling with webpack.

  1. Production Bundle run npm run bundle to create a production bundle. URL configuration is then required in your app where reactUI is used as lib. Does not accept config.json!
  2. Development Bundle run npm run devbundle to create a development bundle. URL configuration is possible but config.json is also allowed.

Getting Started

  • Clone the git repository, open it in your development environment of choice and run npm install to download the dependencies.
  • Run the command npm start to start reactUI. A new tab will open in your browser.
  • If the web application can not connect to the server there are different approaches to fix this issue, Depending on whether you want to connect to the server by a config.json file or URL

    1. config.json File

      Add a file called config.json in your public folder of your project. This file will be used to send the required data to the server during the startup-request.

      Example:

      {
          "appName": "[application name here]",
          "baseUrl": "[baseUrl here]",
          "username": "[username here]",
          "password": "[password here]",
          "deviceMode": "[deviceMode]",
          "langCode": "[language (en, de)]",
          "logoBig": "[path to logo in public directory]",
          "logoSmall": "[path to logo in public directory]",
          "logoLogin": "[path to logo in public directory]"
          "theme": "[theme here]",
          "colorScheme": "[color-scheme here]"
      }
    2. URL

      The parameters which are set in the config.json file, can also be set in the url, simply put the parameter after the first "/" of your url.

      Example:

      http://localhost:3000/?language=de&appName=vxdemo&baseUrl=http%3A%2F%2Flocalhost%3A80%2Fservices%2Fmobile/#

      You can see that parameters are the same names as in the config.json and are combined by a "&". The url gets prioritized over the config.json file, if you happen to have both of those options!

      It is also important to put a "#" after the last of your parameters, because we use the Hashrouter of react-router-dom!!

If everything works out as planned, you will be redirected to the login:

connected-login

After you logged in or if you have a valid username, password combination you will be redirected to home:

connected-home

2.3.2

1 day ago

2.2.10

24 days ago

2.2.5

10 months ago

2.2.7

10 months ago

2.2.6

10 months ago

2.2.9

6 months ago

2.2.8

10 months ago

2.2.4

11 months ago

2.2.1

1 year ago

2.2.0

1 year ago

2.2.3

1 year ago

2.2.2

1 year ago

2.1.2

1 year ago

2.1.1

1 year ago

1.0.54

1 year ago

1.0.53

1 year ago

1.0.44

1 year ago

1.0.43

1 year ago

1.0.48

1 year ago

1.0.47

1 year ago

1.0.46

1 year ago

1.0.45

1 year ago

1.0.49

1 year ago

1.0.51

1 year ago

1.0.50

1 year ago

1.0.52

1 year ago

1.0.39

2 years ago

1.0.38

2 years ago

1.0.40

2 years ago

1.0.42

2 years ago

1.0.41

2 years ago

1.0.37

2 years ago

1.0.36

2 years ago

1.0.35

2 years ago

1.0.19

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.22

2 years ago

1.0.21

2 years ago

1.0.20

2 years ago

1.0.26

2 years ago

1.0.25

2 years ago

1.0.24

2 years ago

1.0.23

2 years ago

1.0.29

2 years ago

1.0.28

2 years ago

1.0.27

2 years ago

1.0.33

2 years ago

1.0.32

2 years ago

1.0.31

2 years ago

1.0.30

2 years ago

1.0.34

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago