slint/tools/slintpad
Olivier Goffart 88697c68bb Remove license header from .md/.mdx files
They should be in the lines, but the problem is that this causes issues
in the .mdx files.

License header doesn't really make sense for .md files anyway
2025-12-04 21:58:09 +01:00
..
src Slintpad: preserve query URL parameters when sharing link 2025-09-26 10:25:05 +02:00
static
styles
tests SlintPad: Replace web menubar with Slint menubar 2025-08-14 17:18:38 +02:00
.gitignore
biome.json build(deps): bump @biomejs/biome from 2.2.6 to 2.3.2 (#9926) 2025-11-03 10:47:12 +02:00
index.html
package.json build(deps): bump the npm-patch-updates group with 5 updates (#10142) 2025-11-24 09:25:20 +02:00
playwright.config.ts
preview.html
README.md Remove license header from .md/.mdx files 2025-12-04 21:58:09 +01:00
tsconfig.default.json
tsconfig.json
vite.config.mts

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).

You need to install the following components:

To try it out locally type this in this directory:

## only need to run this once
pnpm install
pnpm build:wasm_interpreter  # Build the wasm interpreter used in `preview.html`
pnpm build:wasm_lsp          # Build the wasm LSP used by the text editor

## Run this to refresh slintpad (dev mode!)
pnpm start                   # Run in development mode

## Run this to refresh slintpad (build mode!)
pnpm build                   # Build the web UI code
pnpm 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.