@knime/jsonforms v1.12.3
KNIME JSONForms integration
This repository contains the frontend components of the KNIME JSONForms integration that is based on Vue. It is built as a Vue library and used in KNIME Analytics Platform and/or KNIME Hub.
Installation
To install the @knime/jsonforms package, you can use npm:
npm install @knime/jsonformsUsage
The vue component controlling the JSONForms instance can be imported as follows:
import { JsonFormsDialog } from "@knime/jsonforms";It requires renderers as property, which can be constructed using a variety of defaults.
Those default components are divided into layouts and controls:
import { controls, layouts } from "@jsonforms/testing";Use the toRenderers method to construct the final list of renderers once the chosen controls/layouts are modified in the desired way. A modification might entail replacing the tester by which this renderer is used by jsonforms or wrapping a control using higher order vue components.
Combined example:
<script setup lang="ts">
import {
controls,
layouts,
JsonFormsDialog
toRenderers
} from "@knime/jsonforms"
const renderers = toRenderers([/**
Add newly constructed renderers here
*/], [
controls.dropdownRenderer,
controls.textRenderer
], [
layouts.sectionRenderer
])
</script>
<template>
<JsonFormsDialog :data="..." ... :renderers="renderers" />
</template>Testing
Types and utility methods for testing are made available in the following way:
import * from "@knime/jsonforms/testing"Development
Prerequisites
- Install Node.js, see version in package.json.
Newer versions may also work, but have not been tested.
Install dependencies
pnpm installand then use the following commands. For detailed explanations see Vue CLI docs:
Testing
Run unit- and integration-tests individually by
pnpm test:unit
pnpm test:integrationYou can generate a coverage report with
pnpm coverage:unit
pnpm coverage:integrationThe 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
pnpm auditBuilding
To build the package, use the following command:
pnpm buildJoin the Community!
5 months ago
5 months ago
5 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago