0.1.23 • Published 3 years ago

knime-ui-table v0.1.23

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
3 years ago

KNIME-Table for KNIME® Analytics Platform & WebPortal

This repository contains the table component used by the WebPortal and by the Table view for the Analytics Platform. It is based on the Vue JavaScript framework. The knime-ui-table repository is included into those projects as a git submodule. It itself uses webapps-common as submodule.

Development

Prerequisites

Newer versions may also work, but have not been tested.

Pull the contained git submodules with

git submodule update --init

Install dependencies

npm install

and then use the following commands. For detailed explanations see Vue CLI docs:

Launch development server

Compiles all JavaScript sources, assets, … and starts a local web server with a demo app for development. Includes hot-reloading, so code changes will be visible in the browser immediately.

npm run demo

Testing

Running unit tests

This project contains unit tests written with jest. They are run with

npm run test:unit

During development, you can use npm run test:unit -- --watch to have the unit tests run automatically whenever a source file changes.

You can generate a coverage report with

npm run coverage

The output can be found in the coverage folder. It contains a browseable html report as well as raw coverage data in LCOV and Clover format, which can be used in analysis software (SonarQube, Jenkins, …).

Running security audit

npm provides a check against known security issues of used dependencies. Run it by calling

npm audit

Logging

You can log using the global consola variable (which the embedding application needs to provide).

See https://github.com/nuxt/consola for details.

Building

To build the PageBuilder as Vue library, use the following command:

npm run build

Results are saved to /dist.

Embedding the KNIME-Table in your Vue application

TODO

Requirements

The KNIME-Table expects that the embedding app provides the following:

  • Vue and Consola compatible to the versions defined in package.json
  • global window.Vue object
  • global window.consola instance for logging
  • CSS variables as defined in the webapps-common project. They are not included in the build in order to avoid duplication.
  • calls the method 'initStore' as described in the next section, before PageBuilder store actions and the component are being used

Usage example

For example, in a Nuxt app, the following middleware registers the PageBuilder component globally and initializes the PageBuilder store:

0.1.10

3 years ago

0.1.11

3 years ago

0.1.12

3 years ago

0.1.13

3 years ago

0.1.14

3 years ago

0.1.15

3 years ago

0.1.20

3 years ago

0.1.21

3 years ago

0.1.22

3 years ago

0.1.23

3 years ago

0.1.16

3 years ago

0.1.17

3 years ago

0.1.18

3 years ago

0.1.19

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago