Commit graph

313 commits

Author SHA1 Message Date
Simon Hausmann
cf9601e270 Fix up license header checker to permit file with third-party copyright 2024-11-26 15:09:58 +01:00
Tobias Hunger
10edaaa7f1 reuse: Update to a newer reuse version
Update from reuse 2 as packaged by Ubuntu to reuse 5
from pypi.

This moves configuration from .reuse/dep5 into REUSE.toml.

Make sure to only have one entry per license with all
the file under that license in one place.

This does change some licenses in demos and examples from
our triple-license to MIT. I *think* those were meant to
be under MIT all along as all docs and examples are supposed
to be MIT.
2024-11-22 09:24:39 +01:00
Olivier Goffart
5bd20def0e Experimental support for MenuBar
Introduces `MenuBar{ ... }` that can be put in a Window
2024-11-20 09:25:37 +01:00
Nigel Breslaw
ebd1c2eb09
Put back missing _templates to fix nightly snapshots 2024-11-16 00:30:29 +02:00
Nigel Breslaw
08d90a5f13
Next gen docs for 1.9 (#6766)
Co-authored-by: Aurindam Jana <aurindam.jana@slint.dev>
Co-authored-by: Tobias Hunger <tobias.hunger@slint.dev>
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
2024-11-14 15:52:35 +01:00
Simon Hausmann
a98d4709be Move printer demo and energy-monitor into new top-level demos/ folder
These are showing off use-cases for Slint, but they're not examples showing individual Slint features.

Also removed the old printerdemo while at it.
2024-10-25 12:09:32 +02:00
Aurindam Jana
463031b6d8
Use Editor in Docs (#6451) 2024-10-14 15:19:29 +02:00
Nigel Breslaw
a218c945ad
Use Biome across monorepo and for Slintpad (#6080)
Puts a shared biome.json in the root.
Deletes the prettier config files.
Deletes the unused pre-commit hooks.
Applies biome linting and formatting to the slintpad project.
2024-09-11 13:07:55 +02:00
Nigel Breslaw
fe55b0cb32
refactor: Tidy the vscode project (#5936)
Removed unused images.
Sets NPM versions to exact version e.g 8.2.1, not ^8.0.0. (prepare for dependabot).
Update all dependencies.
Use npm clean-install instead of npm install. This means an up to date package-lock.json file must exist in the project. Ensuring local development and the CI are repeatable builds that use the same dependency packages.
2024-08-26 12:04:49 +02:00
Simon Hausmann
7f62249bc3
Provide pre-generated release notes with tables for downloadable assets (#5899)
Co-authored-by: Olivier Goffart <olivier.goffart@slint.dev>
2024-08-22 16:05:21 +02:00
Nigel Breslaw
be02f6e046
Replace eslint and prettier with biome.js
Biome is a Rust based replacement for eslint and prettier and runs much faster.
2024-08-22 15:29:57 +02:00
Simon Hausmann
38045a8327
Support npmrc in the license header check 2024-08-22 08:13:28 +02:00
Nigel Breslaw
ab49903a06
Use pnpm to build the vscode extension (#5888)
Replaces npm with pnpm for building the extension.
2024-08-21 15:55:12 +02:00
Nathan Collins
5e49d7f687 Zephyr: move the demo to examples/printerdemo
Given that the Zephyr demo now uses this UI instead of the "_mcu"
version it makes sense to relocate the code too.
2024-08-07 15:26:32 +02:00
Simon Hausmann
c76f9fe795 Include experimental API in the C++ snapshot docs 2024-07-11 11:42:18 +02:00
Simon Hausmann
27dc6e53c0
API review: enable all features in the C++ docs (#5592)
And make sure that functions excluded when freestanding is enabled are included in the docs.
2024-07-11 08:29:51 +02:00
Nathan Collins
538387b3d6 Zephyr: apply license headers
The Zephyr VERSION file is excluded as this simply specifies the version
of the Zephyr applicaiton, and the documentation doesn't say how
comments should be specified or if they are supported.
2024-07-08 16:46:33 +02:00
Simon Hausmann
6d79ca1a05 Document the SLINT_FEATURE_XXX pre-processor variables
and sync them with the existing features.
2024-07-04 13:39:13 +02:00
Simon Hausmann
4591ad8d57 Add plumbing for system testing 2024-06-13 04:03:17 -07:00
Simon Hausmann
355a8ab62b Attempt to upgrade the docs build to latest Ubuntu 24.04 in GH Actions
This might bring in a newer version of clang-format. We don't need to install `clang-format` as GH sets up /usr/bin/clang-format according to their toolset.json file.
2024-06-10 02:25:40 -07:00
Tobias Hunger
d9224cd58f janitor: Use more workspace dependencies 2024-06-04 14:58:29 +02:00
Tobias Hunger
199a7286a8 tree-sitter: Relicense grammar.js to MIT
Code is generated from grammar.js, which gets built into a library. That
library gets loaded by a text editor. So someone might argue that the GPL might
infect that text editor.

We do not want that argument to come up, so let's use MIT for that code.
2024-06-03 11:11:35 +02:00
Aurindam Jana
3523e86359
Simplify commercial license (#3063)
Base the commercial license on the Royalty-free license adding clauses pertaining to the fees.
2024-05-31 14:06:17 +02:00
Aurindam Jana
9a3aa265d5
Update Royalty-free license (#5257)
Add clarification that Application may not expose Slint APIs.
2024-05-31 10:53:19 +02:00
Olivier Goffart
475ced0a62 C++ testing API: Intreoduce the ElementHandle 2024-04-22 11:28:12 +02:00
Olivier Goffart
808b1ef946 Add a function to mark translated strings as dirty 2024-04-18 19:23:57 +02:00
Simon Hausmann
63f1114ff2 Run Node.js tests with the testing backend
Add the ability to depend on the testing backend and opt into it
when running tests/cases, like we do for the other drivers.

The testing backend dependency is removed in the packaging step, as
we don't publish i-slint-backend-testing.
2024-04-16 07:05:03 +02:00
Aurindam Jana
0cfeec1a31
Update Slint Community License (#4994)
Updated the version from 1.1 to 1.2 
Renamed the header to "Slint Royalty-free Desktop, Mobile, and Web Applications License"
Added definition of "Mobile Application" and grant of right
Moved "Limitations" to 3rd section and "License Conditions - Attributions" to 2nd section
Added flexibility to choose between showing "MadeWithSlint" as a dialog/splash screen or on a public webpage
Moved the para on copyright notices to section under "Limitations"
2024-04-15 15:18:55 +02:00
Chris Chinchilla
7afa34a7e1
Rename tutorial to quickstart (#4941) 2024-04-04 13:26:24 +02:00
Olivier Goffart
80b2ac1375 Fix use of deprecated symbols
The toml_edit dependency is required for reading board_config.toml
2024-03-11 17:51:36 +01:00
Tobias Hunger
d26a9536f7 janitor: Update prettier configuration
The newwest evrsion seems to ignore the toml file, so
use the yaml flavor instead.
2024-03-11 17:07:23 +01:00
Simon Hausmann
77f0cd9eac Fix license header check for Pipfiles 2024-03-07 10:08:12 +01:00
Olivier Goffart
5a43f3b8af Janitor: dependency updates 2024-01-22 12:36:32 +01:00
Olivier Goffart
daa40f43cd Android: Use java code to show or hide the keyboard
instead of coding it all in JNI

This uses build.rs to compile the java code into bytecode that is then
embedded in the binary and loaded at runtime
2024-01-21 09:21:41 +01:00
Simon Hausmann
5e23dbe765 Fix reuse compliance check
Current versions of the reuse tool don't allow inline copyright and licsense information in SVG and CSV files anymore. Move those into the dep5 file.
2024-01-18 15:11:43 +01:00
Olivier Goffart
5aa6b424e3 Janitor: Optimize usage of is_dir/is_file
As suggested in https://github.com/slint-ui/slint/issues/4219

Closes #4219
2023-12-27 10:36:25 +01:00
Carter Hunt Fogelman
ff27bc79ae Wrap all non-test uses of in a BufWriter/BufReader for efficiency 2023-12-27 09:15:53 +01:00
Simon Hausmann
73024beb98 Begin wrapping the component compiler 2023-12-21 12:57:35 +01:00
Simon Hausmann
84fd6dc08c Clean up Node.js port build system
- Instead of building index.js with esbuild and generating types with
  tsc, use tsc to build index.js and index.d.ts.
- Use ts-node instead of swc for typescript based tests, as that
  works with es modules.
- Remove "syntax_check" target from package.json as that's now
  implied with "compile".
- Sadly this requires one "as any" cast as tsc somehow fails to
  determine the right type info for node-fetch.

Unfortunately index.js can't be an ES module without breaking
compatiblity. It would imply that the Node.js port can't be used with
require() anymore. So even thought that would simplify things further,
it's not part of this PR.
2023-11-21 07:20:21 +01:00
Olivier Goffart
89fc27e73c xtask: Check that dev dependencies don't have a version
otherwise can't be uploaded to crates.io

And we have to do last minute patchup like 0b70cbc9a9
2023-11-13 18:37:16 +01:00
Simon Hausmann
50c4d23526 Make it possible to build installable node packages
When creating an npm package, substitute workspace fields, so that the resulting Cargo.toml
can actually be used.

Also added a --git=sha1 option to generate snapshot-friendly
packages that add `git = ...; rev = ...`
for all slint dependencies.

This revers the previously added publish step, this doesn't have to be
in the xtask.
2023-11-01 11:05:33 +01:00
Simon Hausmann
8a52de6b1e Initial attempt at GH action for publishing npm package 2023-10-31 15:19:04 +01:00
Olivier Goffart
0c529cd345 janitor: Some no-brainer deps update 2023-10-27 19:11:38 +02:00
Olivier Goffart
b88a3caacd swrenderer: Put the rotation feature behind a freature gate
We're not ready to make the API public as we want to have the API as
part of the Window rather than part of the renderer
2023-10-09 18:07:23 +02:00
Olivier Goffart
86968d6f80 Dependencies update 2023-10-02 20:27:25 +02:00
Tobias Hunger
85e1c6020b janitor: Use workspace dependnecies for the slint crates
This moves most of the version information we need to update into one
place.

Note that the workplace dependency features are in *addition* to any
feature set when using the workspace dependency. So we have all
workspace dependencies defined with `no-default-features = true`.
2023-09-25 16:34:16 +02:00
Tobias Hunger
d6695c55cb Janitor: Use cargo workspace package data more 2023-09-25 16:34:16 +02:00
Aurindam Jana
e01e9685be
Update Slint logo folder with new design (#3432)
This PR updates the logos and branding guideline of Slint to match the new website design. The new logos are a 1:1 replacement of the old logos except for the circular logo. In the new logo design, there isn't a separate circular logo, as the square logo with circular crop can be used. Further, the logo folder also contains logos in CMYK for use in printed materials. The PMS is just the color value in the naming and can be used where Pantome colors are required. The README has been updated to explain which logos to use when as well as the Slint "blue" color.
2023-09-11 16:41:06 +02:00
J-P Nurmi
5ce11e302a
vscode: add "wrap in element" code action (#3420) 2023-09-07 12:11:14 +02:00
tronical
b8b9db4e42 Bump version number to 1.3.0 2023-09-05 15:46:36 +02:00