slint/tools/slintpad
Joshua Goins 2a5c3ad440
Some checks failed
autofix.ci / format_fix (push) Has been cancelled
autofix.ci / lint_typecheck (push) Has been cancelled
autofix.ci / ci (push) Has been cancelled
Slint: Properly size Slint logo link in About dialog for Firefox
For some reason the link wasn't sized correctly, it's smaller than the
logo and looks buggy. Setting this as an inline-block fixes this.

I tested this on Firefox and Chromium, it doesn't appear to be an issue
on Chrome but this fix doesn't regress there either.
2025-12-16 17:50:16 +01:00
..
src Slint: Properly size Slint logo link in About dialog for Firefox 2025-12-16 17:50:16 +01:00
static Slintpad: fix spinner being a png instead of a svg 2023-10-11 14:10:33 +02:00
styles Slint: Properly size Slint logo link in About dialog for Firefox 2025-12-16 17:50:16 +01:00
tests SlintPad: Replace web menubar with Slint menubar 2025-08-14 17:18:38 +02:00
.gitignore Setup a Playwright smoke test for Slintpad (#6874) 2024-11-22 15:52:31 +02:00
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 slintpad: Update monaco editor and other dependencies 2024-09-26 10:33:12 +02:00
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 Setup a Playwright smoke test for Slintpad (#6874) 2024-11-22 15:52:31 +02:00
preview.html slintpad: Move into tools/slintpad (#2435) 2023-03-29 16:32:30 +02:00
README.md Remove license header from .md/.mdx files 2025-12-04 21:58:09 +01:00
tsconfig.default.json lsp: Get signalled by the preview 2023-11-03 22:14:20 +01:00
tsconfig.json slintpad: Move into tools/slintpad (#2435) 2023-03-29 16:32:30 +02:00
vite.config.mts chore(deps): Update Vite to 5.4.8 2024-10-07 17:33:18 +03: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).

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.