* build(deps): bump the npm-patch-updates group with 13 updates Bumps the npm-patch-updates group with 13 updates: | Package | From | To | | --- | --- | --- | | [html-react-parser](https://github.com/remarkablemark/html-react-parser) | `5.2.8` | `5.2.10` | | [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) | `19.2.2` | `19.2.6` | | [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom) | `19.2.2` | `19.2.3` | | [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/tree/HEAD/packages/plugin-react) | `5.1.0` | `5.1.1` | | [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) | `4.0.8` | `4.0.10` | | [@lumino/default-theme](https://github.com/jupyterlab/lumino) | `2.1.10` | `2.1.11` | | [@lumino/widgets](https://github.com/jupyterlab/lumino) | `2.7.1` | `2.7.2` | | [@astrojs/markdown-remark](https://github.com/withastro/astro/tree/HEAD/packages/markdown/remark) | `6.3.8` | `6.3.9` | | [@astrojs/mdx](https://github.com/withastro/astro/tree/HEAD/packages/integrations/mdx) | `4.3.10` | `4.3.11` | | [@biomejs/biome](https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome) | `2.3.4` | `2.3.6` | | [astro-embed](https://github.com/delucis/astro-embed/tree/HEAD/packages/astro-embed) | `0.9.1` | `0.9.2` | | [astro](https://github.com/withastro/astro/tree/HEAD/packages/astro) | `5.15.6` | `5.15.9` | | [cspell](https://github.com/streetsidesoftware/cspell/tree/HEAD/packages/cspell) | `9.3.0` | `9.3.2` | Updates `html-react-parser` from 5.2.8 to 5.2.10 - [Release notes](https://github.com/remarkablemark/html-react-parser/releases) - [Changelog](https://github.com/remarkablemark/html-react-parser/blob/master/CHANGELOG.md) - [Commits](https://github.com/remarkablemark/html-react-parser/compare/v5.2.8...v5.2.10) Updates `@types/react` from 19.2.2 to 19.2.6 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react) Updates `@types/react-dom` from 19.2.2 to 19.2.3 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom) Updates `@vitejs/plugin-react` from 5.1.0 to 5.1.1 - [Release notes](https://github.com/vitejs/vite-plugin-react/releases) - [Changelog](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite-plugin-react/commits/plugin-react@5.1.1/packages/plugin-react) Updates `vitest` from 4.0.8 to 4.0.10 - [Release notes](https://github.com/vitest-dev/vitest/releases) - [Commits](https://github.com/vitest-dev/vitest/commits/v4.0.10/packages/vitest) Updates `@lumino/default-theme` from 2.1.10 to 2.1.11 - [Release notes](https://github.com/jupyterlab/lumino/releases) - [Changelog](https://github.com/jupyterlab/lumino/blob/main/CHANGELOG.md) - [Commits](https://github.com/jupyterlab/lumino/compare/@lumino/default-theme@2.1.10...@lumino/default-theme@2.1.11) Updates `@lumino/widgets` from 2.7.1 to 2.7.2 - [Release notes](https://github.com/jupyterlab/lumino/releases) - [Changelog](https://github.com/jupyterlab/lumino/blob/main/CHANGELOG.md) - [Commits](https://github.com/jupyterlab/lumino/compare/@lumino/widgets@2.7.1...@lumino/widgets@2.7.2) Updates `@astrojs/markdown-remark` from 6.3.8 to 6.3.9 - [Release notes](https://github.com/withastro/astro/releases) - [Changelog](https://github.com/withastro/astro/blob/main/packages/markdown/remark/CHANGELOG.md) - [Commits](https://github.com/withastro/astro/commits/@astrojs/markdown-remark@6.3.9/packages/markdown/remark) Updates `@astrojs/mdx` from 4.3.10 to 4.3.11 - [Release notes](https://github.com/withastro/astro/releases) - [Changelog](https://github.com/withastro/astro/blob/main/packages/integrations/mdx/CHANGELOG.md) - [Commits](https://github.com/withastro/astro/commits/@astrojs/mdx@4.3.11/packages/integrations/mdx) Updates `@biomejs/biome` from 2.3.4 to 2.3.6 - [Release notes](https://github.com/biomejs/biome/releases) - [Changelog](https://github.com/biomejs/biome/blob/main/packages/@biomejs/biome/CHANGELOG.md) - [Commits](https://github.com/biomejs/biome/commits/@biomejs/biome@2.3.6/packages/@biomejs/biome) Updates `astro-embed` from 0.9.1 to 0.9.2 - [Release notes](https://github.com/delucis/astro-embed/releases) - [Changelog](https://github.com/delucis/astro-embed/blob/main/packages/astro-embed/CHANGELOG.md) - [Commits](https://github.com/delucis/astro-embed/commits/astro-embed@0.9.2/packages/astro-embed) Updates `astro` from 5.15.6 to 5.15.9 - [Release notes](https://github.com/withastro/astro/releases) - [Changelog](https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md) - [Commits](https://github.com/withastro/astro/commits/astro@5.15.9/packages/astro) Updates `cspell` from 9.3.0 to 9.3.2 - [Release notes](https://github.com/streetsidesoftware/cspell/releases) - [Changelog](https://github.com/streetsidesoftware/cspell/blob/main/packages/cspell/CHANGELOG.md) - [Commits](https://github.com/streetsidesoftware/cspell/commits/v9.3.2/packages/cspell) --- updated-dependencies: - dependency-name: html-react-parser dependency-version: 5.2.10 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: npm-patch-updates - dependency-name: "@types/react" dependency-version: 19.2.6 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: npm-patch-updates - dependency-name: "@types/react-dom" dependency-version: 19.2.3 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: npm-patch-updates - dependency-name: "@vitejs/plugin-react" dependency-version: 5.1.1 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: npm-patch-updates - dependency-name: vitest dependency-version: 4.0.10 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: npm-patch-updates - dependency-name: "@lumino/default-theme" dependency-version: 2.1.11 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: npm-patch-updates - dependency-name: "@lumino/widgets" dependency-version: 2.7.2 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: npm-patch-updates - dependency-name: "@astrojs/markdown-remark" dependency-version: 6.3.9 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: npm-patch-updates - dependency-name: "@astrojs/mdx" dependency-version: 4.3.11 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: npm-patch-updates - dependency-name: "@biomejs/biome" dependency-version: 2.3.6 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: npm-patch-updates - dependency-name: astro-embed dependency-version: 0.9.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: npm-patch-updates - dependency-name: astro dependency-version: 5.15.9 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: npm-patch-updates - dependency-name: cspell dependency-version: 9.3.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: npm-patch-updates ... Signed-off-by: dependabot[bot] <support@github.com> * [autofix.ci] apply automated fixes * Fix glob security alert --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Nigel Breslaw <nigel.breslaw@slint.dev> |
||
|---|---|---|
| .. | ||
| src | ||
| static | ||
| styles | ||
| tests | ||
| .gitignore | ||
| biome.json | ||
| index.html | ||
| package.json | ||
| playwright.config.ts | ||
| preview.html | ||
| README.md | ||
| 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.
-
?load_url=query argument make it possible to load the .slint code directly from an URL. If the slint code contains relative path for imports or images, they are loaded relative to that slint file. That way it is possible to load code from github (via raw.githubusercontent) or gists.Example: this loads the printerdemo.slint file from the github URL
-
?snippet=query argument, followed by the URL-encoded slint code, will simply load this code.Example: a simple code with "Hello Slint"
-
?style=query argument, followed by the name of the style to use.Example: The "Hello Slint" using different styles
-
?gz=Like?snippet=but compressed with gzip and base64 encoded. -
?lib=lib_name=<url>query argument, followed by the name of the library and the URL to load it from.Example: The to use the
@materiallibrary: