Skip to content

Latest commit

 

History

History
 
 

slintpad

SlintPad

This directory contains the frontend code for SlintPad, the online code editor which is hosted on https://slint-ui.com/editor (last stable) and https://slint-ui.com/snapshots/master/editor (nightly).

To try it out locally type this in this directory:

## only need to run this once
npm install
npm run build:wasm_preview   # Build the wasm interpreter used by the preview
npm run build:wasm_lsp       # Build the wasm LSP used by the text editor

## Run this to refresh slintpad
npm run build                # Build the web UI code
cp -r ../../api/wasm-interpreter/pkg dist/wasm-interpreter # To make the LSP available
npx vite preview             # Start a server serving the slintpad UI

Documentation

The index.html page contains a code editor and every key press reload the preview. The preview.html page contains only the preview and the code must be given via query parameter.