Commit graph

23 commits

Author SHA1 Message Date
Oleh Kulish
58447c99e7
Add error handling for the slide puzzle example (#7917)
* Add impl From<PlatformError> for JsValue
2025-03-25 10:07:16 +01:00
Olivier Goffart
11dea135f7 Domain: slint-ui.com -> slint.dev 2023-06-16 10:55:08 +02:00
Aurindam Jana
e4338300de
Change license for examples to MIT (#2887) 2023-06-15 11:23:17 +02:00
Simon Hausmann
5c3aa0f46d Rename "Online Editor" to "SlintPad" 2023-03-29 08:57:40 +02:00
Olivier Goffart
4f3d0954fe Online code editor: add a "load_demo" url argument
that loads the demo based on the current version of the editor
2023-01-25 11:11:57 +01:00
Tobias Hunger
4230ac2572
Update copyright information to reflect name change
Also run resue over the codebase and fix complaints from that tool.
2022-02-09 10:27:47 +01:00
Olivier Goffart
7a735a48db Use an external CSS for the demos 2022-02-08 14:10:39 +01:00
Olivier Goffart
1425ef63de Change the Url from sixtyfps.io to slint-ui.com
Also, change the URL of the logo in the docs
2022-02-08 08:52:46 +01:00
Olivier Goffart
00ff5e21a7 Update git repository URL 2022-02-08 08:26:21 +01:00
Olivier Goffart
40fc7422ea Style the demo index.html with a dark background
Note that the slide_puzzle is a bit different because it tries to
fill the viewport with the canvas
2022-02-03 16:41:56 +01:00
Olivier Goffart
3594c20153 Replace SixtyFPS in many locations (Uppercase) 2022-02-02 15:49:18 +01:00
Olivier Goffart
d706d63ce1 Replace references to the .60 files that are now renamed with .slint 2022-02-02 10:12:31 +01:00
Tobias Hunger
0fc176a408 Document some licenses in a REUSE compliant way 2022-01-19 11:25:21 +01:00
Olivier Goffart
013eee351c Wasm demos: add touch-action: none to all canvas
So that the Slider, Flickabke and such works on android/chrome
2021-08-20 09:33:49 +02:00
Tobias Hunger
aea4ecca99 Apply pre-commit hooks to all files 2021-08-17 22:38:16 +02:00
Olivier Goffart
40afcd4070 Fix the spinner for the slide puzzle firefox
The layout of the html here is a bit different for the slize puzzle
than for other demo because it is using a display: grid.
As a result, placing the spinner in the grid would cause the canvas
to be resized when the spinner goes away, with firefox. Since we don't
get resize event when the canvas gets resized withtout the whole page
being resized, the scaling and coordinate were off.

So put the spinner outside of the grid
2021-08-13 10:19:42 +02:00
Olivier Goffart
429e5bdb07 Add link to SixtyFPS homepage from the wasm demo pages 2021-08-12 14:19:29 +02:00
Simon Hausmann
bdf7912a4d Apply the loading spinner from the plotter example to the slide puzzle 2021-08-12 10:15:20 +02:00
Simon Hausmann
7773678e22 Simplify wasm "startup" code
Apply the simplification of 2398d00e6f to all
index.html files we use. An async function
can be called directly.
2021-04-14 09:36:33 +02:00
Simon Hausmann
e614fb3bb1 Remove manual plaster font loading for the slide puzzle wasm version
Since commit 727c9a19f7 the plaster font is included in the
wasm binary.
2021-04-14 09:35:19 +02:00
Olivier Goffart
261b2cb533 Make the link to the source point to the directory instead of the .60 2020-12-11 09:20:01 +01:00
Olivier Goffart
29771f9591 Slider demo: make sure that it is always fullscreen 2020-12-08 16:13:14 +01:00
Olivier Goffart
3f6f16c633 Also simplify wasm build for the slide puzzle 2020-12-08 12:39:47 +01:00
Renamed from examples/slide_puzzle/wasm/static/index.html (Browse further)