slint/tools/online_editor
Tobias Hunger 248212711e online editor: Fix preview rendering sub components instead of main one
I had the mental model of "updating the preview with the new code" since
that is how the LSP works. That is of course wrong here: The Previewer always
compiles again from scratch.

So always feed the main source file to the preview, not the currently
edited one.

Fixes: #2057
2023-01-12 18:45:17 +01:00
..
cypress chore: Configure prettier and reformat the online_editor 2022-11-03 10:51:07 +01:00
src online editor: Fix preview rendering sub components instead of main one 2023-01-12 18:45:17 +01:00
static Redo online_editor (#1593) 2022-09-07 17:08:55 +02:00
styles online editor: Shrink border around the preview 2023-01-12 13:04:58 +01:00
.eslintrc.yml chore: Configure prettier and reformat the online_editor 2022-11-03 10:51:07 +01:00
.gitignore Ignore the generated pkg/ directory 2020-10-12 11:26:15 +02:00
cypress.config.ts chore: Configure prettier and reformat the online_editor 2022-11-03 10:51:07 +01:00
index.html chore: Configure prettier and reformat the online_editor 2022-11-03 10:51:07 +01:00
package.json Bump version number to 0.3.4 2022-12-16 09:36:15 +00:00
preview.html chore: Configure prettier and reformat the online_editor 2022-11-03 10:51:07 +01:00
README.md chore: Configure prettier and reformat the online_editor 2022-11-03 10:51:07 +01:00
tsconfig.default.json chore: Configure prettier and reformat the online_editor 2022-11-03 10:51:07 +01:00
tsconfig.json chore: Configure prettier and reformat the online_editor 2022-11-03 10:51:07 +01:00
vite.config.js chore: Configure prettier and reformat the online_editor 2022-11-03 10:51:07 +01:00

Slint Online Editor

This directory contains the frontend code for the online code editor which is hosted in 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:

npm install
npm start

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.