Tags: tidbyt/pixlet
Tags
schema: Allow handlers to be in separate files (#1074) Allow handler functions for schema fields to be imported from different files. Previously we were referencing handler functions by the function name. Now we hold onto the Starlark reference so we can always find the function, even if it's imported from a different file.
Add ID field for sounds (#1073) Both the path and the contents of a notification sound could conceivably change without the sound being semantically different. For example, `ding.mp3` could get renamed to `ding1.mp3`. Or a developer may re-encode `ding.mp3` to make it sound better. In both cases, we need some sort of ID to keep a handle on the sound and know what to play.
Serve GIFs as well as WebP (#1065) Saw #1005 and thought it was a fun little challenge. Tested that this worked locally for: - Previewing with WebP (default) - Previewing with GIF (passing --gif flag) - Updating config using either format - Exporting image using either format Inspected the images shown and confirmed that it does generate a WebP or GIF file as appropriate, and that the src element is set to the appropriate image type.
Add notifications and sounds to schema (#1064) * Add notifications and sounds to schema Add the ability to specific app notifications and sounds in the schema. Here is an example: ```starlark def get_schema(): return schema.Schema( version = "1", notifications = [ schema.Notification( id = "notificationid", name = "Notification", desc = "A Notification", icon = "notification", sounds = [ schema.Sound( title = "Ding!", file = ding_mp3, ), ], ), ], ) ``` This change makes the `Schema` and `SchemaJSON` fields of `Applet` public, so that embedders can inspect the schema and access the sound files that are referenced by `schema.Sound`. * Add Bazel build files to gitignore Bazel files are generated as part of Tidbyt's internal development process but are not used for the open source build.
PreviousNext