This is a monorepo containing the JSON Forms extended Vuetify renderers, webcomponent, VS Code extension and an example application.
See jsonforms-vuetify-webcomponent.netlify.app for the deployed example application.
The example application is based on JSON Forms Vuetify Renderers example project but adds more examples to demonstrate the additioanal renderers that are included in the webcomponent, like TemplateLayout Renderer
See jsonforms.io and the main repository for more information about JSON Forms.
See the README of the Vue Vuetify renderer set for detailed instructions on how to consume and use the JSON Forms Vue Vuetify renderer set.
Use Node 18.x
pnpm i --frozen-lockfile
pnpm run build
pnpm run renderers:watch
pnpm run wc:dev
pnpm run example:dev
pnpm run example:build
pnpm run tooling:build
pnpm run tooling:vsix
Recommendations:
pnpm run renderers:watch
combined with pnpm run example:dev
.pnpm run renderers:watch
combined with pnpm run wc:dev
.pnpm run build
combined with pnpm run example:build
.
Then serve the built application from example/dist
with a web server of your choice, e.g. npx http-server example/dist
.The webcomponent is used in the VS Code extension project and it is available for preview from the VisualStudio Marketplace
Build a nginx image that hosts the jsonforms vuetify webcomponent and its demo HTML page.
git clone https://github.com/kchobantonov/jsonforms-vuetify-webcomponent.git
docker build -f Dockerfile -t jsonforms-vuetify-webcomponent:latest .
docker run --rm -p 8080:80 jsonforms-vuetify-webcomponent:latest
Open http://localhost:8080/demo.html
For example if we use version 3.1.0-alpha.3
of the webcomponent then using the below HTML snippet we can renders the demo form.
<vuetify-json-forms id="vuetify-json-forms"></vuetify-json-forms>
<script>
let demo = {
properties: {
firstName: {
type: "string",
description: "The person's first name.",
},
lastName: {
type: "string",
description: "The person's last name.",
},
age: {
description:
"Age in years which must be equal to or greater than zero.",
type: "integer",
minimum: 0,
},
},
};
var form = document.getElementById("vuetify-json-forms");
form.setAttribute("schema", JSON.stringify(demo));
</script>
<script
type="text/javascript"
src="https://cdn.jsdelivr.net/npm/@chobantonov/jsonforms-vuetify-webcomponent@3.1.0-alpha.3/dist/vuetify-json-forms.min.js"
></script>
The JSON Forms Vuetify WebComponent project is built and tested via Github actions on Linux.
Current status: