slint/tools/slintpad
2023-06-26 12:50:02 +00:00
..
cypress Domain: slint-ui.com -> slint.dev 2023-06-16 10:55:08 +02:00
src tools: Fix property editor rendering input too big 2023-06-23 13:03:05 +02:00
static slintpad: Update color scheme and logo 2023-06-23 13:03:05 +02:00
styles tools: Fix property editor rendering input too big 2023-06-23 13:03:05 +02:00
.eslintrc.yml slintpad: Move into tools/slintpad (#2435) 2023-03-29 16:32:30 +02:00
.gitignore slintpad: Make vite work properly again 2023-04-24 21:51:25 +02:00
cypress.config.ts Domain: slint-ui.com -> slint.dev 2023-06-16 10:55:08 +02:00
index.html slintpad: Make vite work properly again 2023-04-24 21:51:25 +02:00
package.json Bump version number to 1.1.1 2023-06-26 12:50:02 +00:00
preview.html slintpad: Move into tools/slintpad (#2435) 2023-03-29 16:32:30 +02:00
README.md Domain: slint-ui.com -> slint.dev 2023-06-16 10:55:08 +02:00
tsconfig.default.json Slintpad: Update monaco-editor 2023-05-02 11:13:30 +02:00
tsconfig.json slintpad: Move into tools/slintpad (#2435) 2023-03-29 16:32:30 +02:00
vite.config.ts Domain: slint-ui.com -> slint.dev 2023-06-16 10:55:08 +02:00

SlintPad

This directory contains the frontend code for SlintPad, the online code editor which is hosted on https://slint.dev/editor (last stable) and https://slint.dev/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 (dev mode!)
npm run start                # Run in development mode

## Run this to refresh slintpad (build mode!)
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.